@aidotnet/server-linux-arm64 0.5.2 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/astra-server +2 -2
- package/bin/wwwroot/assets/ClientsPage-CcTgjJ-D.js +11 -0
- package/bin/wwwroot/assets/ModelDetailPage-B9205fOF.js +1 -0
- package/bin/wwwroot/assets/ModelsPage-CAXCnMox.js +1 -0
- package/bin/wwwroot/assets/Page-CsiaycmK.css +1 -0
- package/bin/wwwroot/assets/Page-iMwsVZGv.js +3 -0
- package/bin/wwwroot/assets/PluginsPage-1htR9MlO.js +2 -0
- package/bin/wwwroot/assets/PrivacyPage-C227LcwP.css +1 -0
- package/bin/wwwroot/assets/PrivacyPage-DDrC7ZN2.js +1 -0
- package/bin/wwwroot/assets/ProviderDetailPage-BrLQ3wxI.js +3 -0
- package/bin/wwwroot/assets/ProvidersPage-B19CIw-g.css +1 -0
- package/bin/wwwroot/assets/ProvidersPage-DEwFPi0w.js +2 -0
- package/bin/wwwroot/assets/SettingsPage-BWff0tKT.css +1 -0
- package/bin/wwwroot/assets/SettingsPage-vDXq5KMg.js +1 -0
- package/bin/wwwroot/assets/TokensPage-nnTsXi1X.js +1 -0
- package/bin/wwwroot/assets/TrayPanelPage-BLLZAck0.js +1 -0
- package/bin/wwwroot/assets/arrow-down-Bgpt1Ug2.js +1 -0
- package/bin/wwwroot/assets/arrow-up-DqX0vZ8v.js +1 -0
- package/bin/wwwroot/assets/checkbox-BQx1e8t-.js +1 -0
- package/bin/wwwroot/assets/checkbox-OZlTRG3n.css +1 -0
- package/bin/wwwroot/assets/cloud-download-B-iX6FzV.js +1 -0
- package/bin/wwwroot/assets/confirm-morph-C56YfpDu.css +1 -0
- package/bin/wwwroot/assets/confirm-morph-C93BpFKZ.js +1 -0
- package/bin/wwwroot/assets/download-Bbci4NYa.js +1 -0
- package/bin/wwwroot/assets/ellipsis-O3neUtss.js +1 -0
- package/bin/wwwroot/assets/external-link-BotneeB5.js +1 -0
- package/bin/wwwroot/assets/folder-open-BReAI4XO.js +1 -0
- package/bin/wwwroot/assets/format-CkDcAs-_.js +55 -0
- package/bin/wwwroot/assets/format-Cnf3vGpI.css +1 -0
- package/bin/wwwroot/assets/index-C6Mqffdm.js +15 -0
- package/bin/wwwroot/assets/index-C8BQ1yWd.css +1 -0
- package/bin/wwwroot/assets/log-out-BSESm3Q8.js +1 -0
- package/bin/wwwroot/assets/pencil-C5urmout.js +1 -0
- package/bin/wwwroot/assets/power-rKYGhi1K.js +1 -0
- package/bin/wwwroot/assets/quota-fdOyhiov.js +1 -0
- package/bin/wwwroot/assets/radio-cards-CKDDH2FI.js +1 -0
- package/bin/wwwroot/assets/radio-cards-CxuojLkJ.css +1 -0
- package/bin/wwwroot/assets/rotate-ccw-CJ2l4No1.js +1 -0
- package/bin/wwwroot/assets/use-transform-CJhlgN8s.js +1 -0
- package/bin/wwwroot/assets/useTrayData-CUUZrKRf.js +1 -0
- package/bin/wwwroot/index.html +8 -2
- package/package.json +1 -1
- package/bin/wwwroot/assets/index-CtmOEnFy.js +0 -82
- package/bin/wwwroot/assets/index-DDEz0hKe.css +0 -1
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},c=(n,r,o)=>(o=n==null?{}:e(i(n)),s(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var l=o((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.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.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`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function A(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var j=/\/+/g;function M(e,t){return typeof e==`object`&&e&&e.key!=null?A(``+e.key):t.toString(36)}function N(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(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 P(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,P(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+M(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(j,`$&/`)+`/`),P(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(j,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+M(a,u),c+=P(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+M(a,u++),c+=P(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return P(N(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 F(e,t,n){if(e==null)return e;var r=[],i=0;return P(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function I(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var L=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)};function R(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,L)}catch(e){L(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function ee(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else R(ee.bind(null,e))}var te={map:F,forEach:function(e,t,n){F(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return F(e,function(){t++}),t},toArray:function(e){return F(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=te,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=ee,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=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.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 D(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)E.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 D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:I}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=R,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.0`})),u=o(((e,t)=>{t.exports=l()})),d=o((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})),f=o(((e,t)=>{t.exports=d()})),p=c(u(),1),m=f(),h=p.createContext(void 0),g=e=>{let t=p.useContext(h);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},_=({client:e,children:t})=>(p.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,m.jsx)(h.Provider,{value:e,children:t})),v={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},y=new class{#e=v;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function b(e){setTimeout(e,0)}var x=typeof window>`u`||`Deno`in globalThis;function S(){}function C(e,t){return typeof e==`function`?e(t):e}function w(e){return typeof e==`number`&&e>=0&&e!==1/0}function T(e,t){return Math.max(e+(t||0)-Date.now(),0)}function E(e,t){return typeof e==`function`?e(t):e}function D(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==k(o,t.options))return!1}else if(!j(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function O(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(A(t.options.mutationKey)!==A(a))return!1}else if(!j(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function k(e,t){return(t?.queryKeyHashFn||A)(e)}function A(e){return JSON.stringify(e,(e,t)=>I(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function j(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){if(t.length>e.length)return!1;for(let n=0;n<t.length;n++)if(!j(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!j(e[r],t[r]))return!1;return!0}return!1}var M=Object.prototype.hasOwnProperty;function N(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=F(e)&&F(t);if(!r&&!(I(e)&&I(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:M.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=N(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function P(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function F(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function I(e){if(!L(e))return!1;let t=Object.getPrototypeOf(e),n=t?.constructor;if(n===void 0)return!0;if(typeof n!=`function`)return!1;let r=n.prototype;return!(!L(r)||!r.hasOwnProperty(`isPrototypeOf`)||t!==Object.prototype)}function L(e){return Object.prototype.toString.call(e)===`[object Object]`}function R(e){return new Promise(t=>{y.setTimeout(t,e)})}function ee(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:N(e,t)}function te(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ne(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var re=Symbol();function ie(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===re?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ae(e,t){return typeof e==`function`?e(...t):!!e}function oe(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var se=()=>x,ce=()=>se(),le=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},z=new class extends le{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},ue=b;function de(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=ue,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var fe=de(),pe=new class extends le{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function me(e){return Math.min(1e3*2**e,3e4)}function he(e){return(e??`online`)!==`online`||pe.isOnline()}var ge=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function _e(e){let t=!1,n=0,r,i=`pending`,a,o,s=new Promise((e,t)=>{a=e,o=t});s.catch(S);let c=()=>i!==`pending`,l=t=>{if(!c()){let n=new ge(t);h(n),e.onCancel?.(n)}},u=()=>{t=!0},d=()=>{t=!1},f=()=>z.isFocused()&&(e.networkMode===`always`||pe.isOnline())&&e.canRun(),p=()=>he(e.networkMode)&&e.canRun(),m=e=>{c()||(r?.(),i=`resolved`,a(e))},h=e=>{c()||(r?.(),i=`rejected`,o(e))},g=()=>new Promise(t=>{r=e=>{(c()||f())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,c()||e.onContinue?.()}),_=()=>{if(c())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(m).catch(r=>{if(c())return;let i=e.retry??(ce()?0:3),a=e.retryDelay??me,o=typeof a==`function`?a(n,r):a,s=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!s){h(r);return}n++,e.onFail?.(n,r),R(o).then(()=>f()?void 0:g()).then(()=>{t?h(r):_()})})};return{promise:s,status:()=>i,cancel:l,continue:()=>(r?.(),s),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?_():g().then(_),s)}}var ve=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),w(this.gcTime)&&(this.#e=y.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ce()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(y.clearTimeout(this.#e),this.#e=void 0)}};function ye(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{oe(e,()=>t.signal,()=>n=!0)},u=ie(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?ne:te;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?xe:be,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:be(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function be(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function xe(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var Se=class extends ve{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=Te(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=Te(this.options);e.data!==void 0&&(this.setState(we(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=ee(this.state.data,e,this.options);return this.#c({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#c({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(S).catch(S):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>E(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===re||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>E(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!T(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){let t=this.observers.indexOf(e);t!==-1&&(this.observers.splice(t,1),this.observers.length||(this.#a&&(this.#s||this.state.fetchStatus===`paused`&&this.state.status===`pending`?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#c({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ie(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?ye(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#c({type:`fetch`,meta:a.fetchOptions?.meta});let o=this.#a=_e({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof ge&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#c({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#c({type:`pause`})},onContinue:()=>{this.#c({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await o.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof ge){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#c({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.#a===o&&(this.#a=void 0),this.scheduleGc()}}#c(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Ce(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...we(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),fe.batch(()=>{this.observers.slice().forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Ce(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:he(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function we(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function Te(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Ee=class extends le{#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p=new Set;constructor(e,t){super(),this.options=t,this.#e=e,this.#o=null,this.bindMethods(),this.setOptions(t)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),Oe(this.#t,this.options)?this.#m():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return ke(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return ke(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof E(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!P(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&Ae(this.#t,n,this.options,t)&&this.#m(),this.updateResult(),r&&(this.#t!==n||E(this.options.enabled,this.#t)!==E(t.enabled,this.#t)||E(this.options.staleTime,this.#t)!==E(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||E(this.options.enabled,this.#t)!==E(t.enabled,this.#t)||i!==this.#f)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return P(this.getCurrentResult(),n)||(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),Reflect.get(e,n))})}trackProp(e){this.#p.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t),r=()=>{},i,a=new Promise(e=>{i=e,r=this.#e.getQueryCache().subscribe(i=>{i.type===`updated`&&i.query.queryHash===n.queryHash&&n.state.data!==void 0&&(r(),e(this.createResult(n,t)))})});return Promise.race([n.fetch().then(()=>{let e=this.createResult(n,t);return i?.(e),e}).finally(()=>{r()}),a])}fetch(e){return this.#m({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#m(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(S)),t}#h(e){return!ce()&&E(this.options.enabled,this.#t)!==!1&&w(e)}#g(){this.#b();let e=E(this.options.staleTime,this.#t);if(this.#r.isStale||!this.#h(e))return;let t=T(this.#r.dataUpdatedAt,e)+1;this.#u=y.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return E(this.options.refetchInterval,this.#t)??!1}#v(e){this.#x(),this.#f=e,this.#f!==0&&this.#h(this.#f)&&(this.#d=y.setInterval(()=>{(this.options.refetchIntervalInBackground||z.isFocused())&&this.#m()},this.#f))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#u!==void 0&&(y.clearTimeout(this.#u),this.#u=void 0)}#x(){this.#d!==void 0&&(y.clearInterval(this.#d),this.#d=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&Oe(e,t),o=i&&Ae(e,n,t,r);(a||o)&&(l={...l,...Ce(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#l?.state.data,this.#l):t.placeholderData,e!==void 0&&(m=`success`,d=ee(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#s)d=this.#c;else try{this.#s=t.select,d=t.select(d),d=ee(i?.data,d,t),this.#c=d,this.#o=null}catch(e){this.#o=e}}else d===void 0&&(this.#o=null);this.#o&&(f=this.#o,d=this.#c,p=Date.now(),m=`error`,u=!1);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0;return{status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:je(e,t),refetch:this.refetch,isEnabled:E(t.enabled,e)!==!1}}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);if(this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#l=this.#t),P(t,e))return;this.#r=t;let n=(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#p.size)return!0;let r=new Set(n??this.#p);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})();fe.batch(()=>{n&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}};function De(e,t){return E(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||E(t.retryOnMount,e)!==!1)}function Oe(e,t){return De(e,t)||e.state.data!==void 0&&ke(e,t,t.refetchOnMount)}function ke(e,t,n){if(E(t.enabled,e)!==!1&&E(t.staleTime,e)!==`static`){let r=E(n,e);return r===`always`||r!==!1&&je(e,t)}return!1}function Ae(e,t,n,r){return(e!==t||E(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&je(e,n)}function je(e,t){return E(t.enabled,e)!==!1&&e.isStaleByTime(E(t.staleTime,e))}var Me=class extends ve{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ne(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??(this.state.status===`pending`?this.execute(this.state.variables):Promise.resolve())}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey},r=this.#r=_e({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)}),i=this.state.status===`pending`,a=!r.canStart();try{if(i)t();else{this.#i({type:`pending`,variables:e,isPaused:a}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:a})}let o=await r.start();return await this.#n.config.onSuccess?.(o,e,this.state.context,this,n),await this.options.onSuccess?.(o,e,this.state.context,n),await this.#n.config.onSettled?.(o,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(o,null,e,this.state.context,n),this.#i({type:`success`,data:o}),o}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#r===r&&(this.#r=void 0),this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),fe.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ne(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Pe=class extends le{#e;#t;#n;constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}build(e,t,n){let r=new Me({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Fe(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Fe(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Fe(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Fe(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){fe.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>O(t,e))}findAll(e={}){return this.getAll().filter(t=>O(e,t))}notify(e){fe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return fe.batch(()=>Promise.all(e.map(e=>e.continue().catch(S))))}};function Fe(e){return e.options.scope?.id}var Ie=class extends le{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),P(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&A(t.mutationKey)!==A(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onSubscribe(){this.listeners.size===1&&this.#n&&(this.#n.addObserver(this),this.#i())}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Ne();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){fe.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}};function Le(e,t){let n=new Set(t);return e.filter(e=>!n.has(e))}var Re=class extends le{#e;#t;#n;#r;#i;#a;#o;#s;#c;#l=[];constructor(e,t,n){super(),this.#e=e,this.#r=n,this.#n=[],this.#i=[],this.#t=[],this.setQueries(t)}onSubscribe(){this.listeners.size===1&&this.#i.forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#i.forEach(e=>{e.destroy()})}setQueries(e,t){this.#n=e,this.#r=t,fe.batch(()=>{let e=this.#i,t=this.#p(this.#n);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let n=t.map(e=>e.observer),r=n.map(e=>e.getCurrentResult()),i=e.length!==n.length,a=n.some((t,n)=>t!==e[n]),o=i||a,s=o?!0:r.some((e,t)=>{let n=this.#t[t];return!n||!P(e,n)});(o||s)&&(o&&(this.#l=t,this.#i=n),this.#t=r,this.hasListeners()&&(o&&(Le(e,n).forEach(e=>{e.destroy()}),Le(n,e).forEach(e=>{e.subscribe(t=>{this.#m(e,t)})})),this.#h()))})}getCurrentResult(){return this.#t}getQueries(){return this.#i.map(e=>e.getCurrentQuery())}getObservers(){return this.#i}getOptimisticResult(e,t){let n=this.#p(e),r=n.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),i=n.map(e=>e.defaultedQueryOptions.queryHash);return[r,e=>this.#d(e??r,t,i),()=>this.#u(r,n)]}#u(e,t){let n=new Set;return t.map((r,i)=>{let a=e[i];return r.defaultedQueryOptions.notifyOnChangeProps?a:r.observer.trackResult(a,e=>{n.has(e)||(n.add(e),t.forEach(t=>{t.observer.trackProp(e)}))})})}#d(e,t,n){if(t){let r=this.#c,i=n!==void 0&&r!==void 0&&(r.length!==n.length||n.some((e,t)=>e!==r[t]));return(this.#t!==this.#s||i||t!==this.#o)&&(this.#o=t,this.#s=this.#t,n!==void 0&&(this.#c=n),this.#a=N(this.#a,t(e))),this.#a}return e}#f(){return!this.#r?.combine||this.#i.some((e,t)=>e.options.suspense&&this.#t[t]?.data===void 0)}#p(e){let t=new Map;this.#i.forEach(e=>{let n=e.options.queryHash;if(!n)return;let r=t.get(n);r?r.push(e):t.set(n,[e])});let n=[];return e.forEach(e=>{let r=this.#e.defaultQueryOptions(e),i=t.get(r.queryHash)?.shift()??new Ee(this.#e,r);n.push({defaultedQueryOptions:r,observer:i})}),n}#m(e,t){let n=this.#i.indexOf(e);n!==-1&&(this.#t=this.#t.slice(),this.#t[n]=t,this.#h())}#h(){if(this.hasListeners()){let e=this.#f(),t=this.#a,n=e?t:this.#d(this.#u(this.#t,this.#l),this.#r?.combine);(e||t!==n)&&fe.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},ze=class extends le{#e;constructor(e={}){super(),this.config=e,this.#e=new Map}build(e,t,n){let r=t.queryKey,i=t.queryHash??k(r,t),a=this.get(i);return a||(a=new Se({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){this.#e.get(e.queryHash)===e&&(e.destroy(),this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){fe.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>D(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>D(e,t)):t}notify(e){fe.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){fe.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){fe.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Be=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new ze,this.#t=e.mutationCache||new Pe,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=z.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=pe.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(E(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=C(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return fe.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;fe.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return fe.batch(()=>{let r=n.findAll(e),i=new Set(r);return r.forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,predicate:e=>i.has(e)},t)})}cancelQueries(e,t={}){let n={revert:!0,...t},r=fe.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(S).catch(S)}invalidateQueries(e,t={}){return fe.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=fe.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(S)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(S)}async query(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t),r=n.isStaleByTime(E(t.staleTime,n))?await n.fetch(t):n.state.data,i=t.select;return i?i(r):r}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(E(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(S).catch(S)}infiniteQuery(e){return e._type=`infinite`,this.query(e)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(S).catch(S)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return pe.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(A(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{j(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(A(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{j(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=k(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===re&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},Ve=p.createContext(!1),He=()=>p.useContext(Ve);Ve.Provider;function Ue(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var We=p.createContext(Ue()),Ge=()=>p.useContext(We),Ke=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?ae(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||r)&&(t.isReset()||(e.retryOnMount=!1))},qe=e=>{p.useEffect(()=>{e.clearReset()},[e])},Je=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||ae(n,[e.error,r])),Ye=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},Xe=(e,t)=>e?.suspense&&t.isPending,Ze=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function Qe({queries:e,...t},n){let r=g(n),i=He(),a=Ge(),o=t.subscribed!==!1,s=p.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=i?`isRestoring`:o?`optimistic`:void 0,t}),[e,r,i,o]);s.forEach(e=>{Ye(e);let t=r.getQueryCache().get(e.queryHash);Ke(e,a,t)}),qe(a);let[c]=p.useState(()=>new Re(r,s,t)),[l,u,d]=c.getOptimisticResult(s,t.combine),f=!i&&o;p.useSyncExternalStore(p.useCallback(e=>f?c.subscribe(fe.batchCalls(e)):S,[c,f]),()=>c.getCurrentResult(),()=>c.getCurrentResult()),p.useEffect(()=>{c.setQueries(s,t)},[s,t,c]);let m=l.some((e,t)=>Xe(s[t],e))?l.flatMap((e,t)=>{let n=s[t];return n&&Xe(n,e)?Ze(n,new Ee(r,n),a):[]}):[];if(m.length>0)throw Promise.all(m);let h=l.find((e,t)=>{let n=s[t];return n&&Je({result:e,errorResetBoundary:a,throwOnError:n.throwOnError,query:r.getQueryCache().get(n.queryHash),suspense:n.suspense})});if(h)throw h.error;return u(d())}function $e(e,t,n){let r=He(),i=Ge(),a=g(n),o=a.defaultQueryOptions(e),s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Ye(o),Ke(o,i,s),qe(i);let[l]=p.useState(()=>new t(a,o)),u=l.getOptimisticResult(o),d=!r&&c;if(p.useSyncExternalStore(p.useCallback(e=>{let t=d?l.subscribe(fe.batchCalls(e)):S;return l.updateResult(),t},[l,d]),()=>l.getCurrentResult(),()=>l.getCurrentResult()),p.useEffect(()=>{l.setOptions(o)},[o,l]),Xe(o,u))throw Ze(o,l,i);if(Je({result:u,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw u.error;return o.notifyOnChangeProps?u:l.trackResult(u)}function et(e,t){return $e(e,Ee,t)}function tt(e,t){let n=g(t),r=n.getQueryCache();return p.useSyncExternalStore(p.useCallback(e=>r.subscribe(fe.batchCalls(e)),[r]),()=>n.isFetching(e),()=>n.isFetching(e))}function nt(e,t){let n=g(t),[r]=p.useState(()=>new Ie(n,e));p.useEffect(()=>{r.setOptions(e)},[r,e]);let i=p.useSyncExternalStore(p.useCallback(e=>r.subscribe(fe.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=p.useCallback((...e)=>{r.mutate(e[0],e[1]).catch(S)},[r]);if(i.error&&ae(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var rt=(0,p.createContext)({});function it(e){let t=(0,p.useRef)(null);return t.current===null&&(t.current=e()),t.current}var at=typeof window<`u`?p.useLayoutEffect:p.useEffect,ot=(0,p.createContext)(null);function st(e,t){e.indexOf(t)===-1&&e.push(t)}function ct(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var lt=(e,t,n)=>n>t?t:n<e?e:n,ut={},dt=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),ft=e=>typeof e==`object`&&!!e,pt=e=>/^0[^.\s]+$/u.test(e);function mt(e){let t;return()=>(t===void 0&&(t=e()),t)}var ht=e=>e,gt=(...e)=>e.reduce((e,t)=>n=>t(e(n))),_t=(e,t,n)=>{let r=t-e;return r?(n-e)/r:1},vt=class{constructor(){this.subscriptions=[]}add(e){return st(this.subscriptions,e),()=>this.remove(e)}remove(e){ct(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},yt=e=>e*1e3,bt=e=>e/1e3,xt=(e,t)=>t?1e3/t*e:0,St=(e,t,n)=>{let r=t-e;return((n-e)%r+r)%r+e},Ct=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,wt=1e-7,Tt=12;function Et(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=Ct(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>wt&&++s<Tt);return o}function Dt(e,t,n,r){if(e===t&&n===r)return ht;let i=t=>Et(t,0,1,e,n);return e=>e===0||e===1?e:Ct(i(e),t,r)}var Ot=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,kt=e=>t=>1-e(1-t),At=Dt(.33,1.53,.69,.99),jt=kt(At),Mt=Ot(jt),Nt=e=>e>=1?1:(e*=2)<1?.5*jt(e):.5*(2-2**(-10*(e-1))),Pt=e=>1-Math.sin(Math.acos(e)),Ft=kt(Pt),It=Ot(Pt),Lt=Dt(.42,0,1,1),Rt=Dt(0,0,.58,1),zt=Dt(.42,0,.58,1),Bt=e=>Array.isArray(e)&&typeof e[0]!=`number`;function Vt(e,t){return Bt(e)?e[St(0,e.length,t)]:e}var Ht=e=>Array.isArray(e)&&typeof e[0]==`number`,Ut={linear:ht,easeIn:Lt,easeInOut:zt,easeOut:Rt,circIn:Pt,circInOut:It,circOut:Ft,backIn:jt,backInOut:Mt,backOut:At,anticipate:Nt},Wt=e=>typeof e==`string`,Gt=e=>{if(Ht(e)){e.length;let[t,n,r,i]=e;return Dt(t,n,r,i)}return Wt(e)?(Ut[e],`${e}`,Ut[e]):e},Kt={delta:0,timestamp:0,isProcessing:!1},qt;function Jt(){qt=void 0}var Yt={now:()=>(qt===void 0&&Yt.set(Kt.isProcessing||ut.useManualTiming?Kt.timestamp:performance.now()),qt),set:e=>{qt=e,queueMicrotask(Jt)}},Xt=e=>Math.round(e*1e5)/1e5,Zt=e=>t=>typeof t==`string`&&t.startsWith(e),Qt=Zt(`--`),$t=Zt(`var(--`),en=e=>$t(e)?tn.test(e.split(`/*`)[0].trim()):!1,tn=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function nn(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var rn={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},an={...rn,transform:e=>lt(0,1,e)},on={...rn,default:1},sn=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function cn(e){return e==null}var ln=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,un=(e,t)=>n=>!!(typeof n==`string`&&ln.test(n)&&n.startsWith(e)||t&&!cn(n)&&Object.prototype.hasOwnProperty.call(n,t)),dn=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(sn);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},fn=e=>lt(0,255,e),pn={...rn,transform:e=>Math.round(fn(e))},mn={test:un(`rgb`,`red`),parse:dn(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+pn.transform(e)+`, `+pn.transform(t)+`, `+pn.transform(n)+`, `+Xt(an.transform(r))+`)`};function hn(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var gn={test:un(`#`),parse:hn,transform:mn.transform},_n=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),vn=_n(`deg`),yn=_n(`%`),B=_n(`px`),bn=_n(`vh`),xn=_n(`vw`),Sn={...yn,parse:e=>yn.parse(e)/100,transform:e=>yn.transform(e*100)},Cn={test:un(`hsl`,`hue`),parse:dn(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+yn.transform(Xt(t))+`, `+yn.transform(Xt(n))+`, `+Xt(an.transform(r))+`)`},wn={test:e=>mn.test(e)||gn.test(e)||Cn.test(e),parse:e=>mn.test(e)?mn.parse(e):Cn.test(e)?Cn.parse(e):gn.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?mn.transform(e):Cn.transform(e),getAnimatableNone:e=>{let t=wn.parse(e);return t.alpha=0,wn.transform(t)}},Tn=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,En=new RegExp(sn.source),Dn=new RegExp(Tn.source,`i`);function On(e){return isNaN(e)&&typeof e==`string`&&(En.test(e)||Dn.test(e))}var kn=`number`,An=`color`,jn=`var`,Mn=`var(`,Nn="${}",Pn=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Fn(e){let t=e.toString();return En.test(t)||Dn.test(t)}function In(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(Pn,e=>(wn.test(e)?(r.color.push(a),i.push(An),n.push(wn.parse(e))):e.startsWith(Mn)?(r.var.push(a),i.push(jn),n.push(e)):(r.number.push(a),i.push(kn),n.push(parseFloat(e))),++a,Nn)).split(Nn),indexes:r,types:i}}function Ln(e){return In(e).values}function Rn({split:e,types:t}){let n=e.length;return r=>{let i=``;for(let a=0;a<n;a++)if(i+=e[a],r[a]!==void 0){let e=t[a];i+=e===kn?Xt(r[a]):e===An?wn.transform(r[a]):r[a]}return i}}function zn(e){return Rn(In(e))}var Bn=e=>typeof e==`number`?0:wn.test(e)?wn.getAnimatableNone(e):e,Vn=(e,t)=>typeof e==`number`?t?.trim().endsWith(`/`)?e:0:Bn(e);function Hn(e){let t=In(e);return Rn(t)(t.values.map((e,n)=>Vn(e,t.split[n])))}var Un={test:On,parse:Ln,createTransformer:zn,getAnimatableNone:Hn};function Wn(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function Gn({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=Wn(s,r,e+1/3),a=Wn(s,r,e),o=Wn(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function Kn(e,t){return n=>n>0?t:e}var qn=(e,t,n)=>e+(t-e)*n,Jn=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},Yn=[gn,mn,Cn],Xn=e=>Yn.find(t=>t.test(e));function Zn(e){let t=Xn(e);if(!t)return`${e}`,!1;let n=t.parse(e);return t===Cn&&(n=Gn(n)),n}var Qn=(e,t)=>{let n=Zn(e),r=Zn(t);if(!n||!r)return Kn(e,t);let i={...n};return e=>(i.red=Jn(n.red,r.red,e),i.green=Jn(n.green,r.green,e),i.blue=Jn(n.blue,r.blue,e),i.alpha=qn(n.alpha,r.alpha,e),mn.transform(i))},$n=new Set([`none`,`hidden`]);function er(e,t){return $n.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function tr(e,t){return n=>qn(e,t,n)}function nr(e){return typeof e==`number`?tr:typeof e==`string`?en(e)?Kn:wn.test(e)?Qn:or:Array.isArray(e)?rr:typeof e==`object`?wn.test(e)?Qn:ir:Kn}function rr(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>nr(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function ir(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=nr(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function ar(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var or=(e,t)=>{let n=Un.createTransformer(t),r=In(e),i=In(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?$n.has(e)&&!i.values.length||$n.has(t)&&!r.values.length?er(e,t):gt(rr(ar(r,i),i.values),n):(`${e}${t}`,Kn(e,t))},sr=/^(-?(?:\d+(?:\.\d*)?|\.\d+))([a-z%]*)$/iu;function cr(e,t){let n=sr.exec(e);if(!n)return;let r=sr.exec(t);if(!r||n[2]!==r[2])return;let i=n[2],a=parseFloat(n[1]),o=parseFloat(r[1]);return e=>Xt(qn(a,o,e))+i}function lr(e,t,n){if(typeof e==`number`&&typeof t==`number`&&typeof n==`number`)return qn(e,t,n);if(typeof e==`string`&&typeof t==`string`){let n=cr(e,t);if(n)return n}return nr(e)(e,t)}var ur=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`];function dr(e){let t=new Set,n=new Set,r=!1,i=!1,a=new Set,o={delta:0,timestamp:0,isProcessing:!1};function s(t){a.has(t)&&(n.add(t),e()),t(o)}let c={schedule:(e,i=!1,o=!1)=>{let s=o&&r?t:n;return i&&a.add(e),s.add(e),e},cancel:e=>{n.delete(e),a.delete(e)},process:e=>{if(o=e,r){i=!0;return}r=!0;let a=t;t=n,n=a,t.forEach(s),t.clear(),r=!1,i&&(i=!1,c.process(e))}};return c}var fr=40;function pr(e,t,n={delta:0,timestamp:0,isProcessing:!1}){let r=!1,i=!0,a=()=>r=!0,o=ur.reduce((e,t)=>(e[t]=dr(a),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=ut.useManualTiming,o=a?n.timestamp:performance.now();r=!1,a||(n.delta=i?1e3/60:Math.max(Math.min(o-n.timestamp,fr),1)),n.timestamp=o,n.isProcessing=!0,s.process(n),c.process(n),l.process(n),u.process(n),d.process(n),f.process(n),p.process(n),m.process(n),n.isProcessing=!1,r&&t&&(i=!1,e(h))},g=()=>{r=!0,i=!0,n.isProcessing||e(h)};return{schedule:ur.reduce((e,t)=>{let n=o[t];return e[t]=(e,t=!1,i=!1)=>(r||g(),n.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<ur.length;t++)o[ur[t]].cancel(e)},state:n,steps:o}}var{schedule:mr,cancel:hr,steps:gr}=pr(typeof requestAnimationFrame<`u`?requestAnimationFrame:ht,!0,Kt),_r=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>mr.update(t,e),stop:()=>hr(t),now:()=>Kt.isProcessing?Kt.timestamp:Yt.now()}},vr=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},yr=2e4;function br(e,t=50,n=yr,r){let i=0,a=e.next(i);for(r?.push(a.value);!a.done&&i<n;)i+=t,a=e.next(i),r?.push(a.value);return i>=n?1/0:i}function xr(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(br(r),yr);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:bt(i)}}var Sr={stiffness:100,damping:10,mass:1,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05},Cr=e=>e<0?1/Math.max(1+e,Sr.minDamping):Math.max(1-e,Sr.minDamping);function wr(e,t){if(!(e>1))return 1;let n=Math.sqrt(e*e-1),r=e-n,i=e+n,a=2*n*Math.exp(-t)*(1+t);return Dr(e=>i*Math.exp(-r*e)-r*Math.exp(-i*e)-a,e=>Math.exp(-i*e)-Math.exp(-r*e),t)/t}function Tr(e,t){return e*Math.sqrt(1-t*t)}var Er=12;function Dr(e,t,n){let r=n;for(let n=1;n<Er;n++)r-=e(r)/t(r);return r}var Or=.001;function kr({duration:e=Sr.duration,bounce:t=Sr.bounce}){let n,r;Sr.maxDuration;let i=Cr(t);e=lt(Sr.minDuration,Sr.maxDuration,bt(e)),i<1?(n=t=>{let n=t*i,r=n*e,a=Tr(t,i),o=Math.exp(-r);return Or-n/a*o},r=t=>{let r=t*i*e,a=i*i*t*t*e,o=Math.exp(-r),s=Tr(t*t,i);return(-n(t)+Or>0?-1:1)*-a*o/s}):(n=t=>-.001+Math.exp(-t*e)*(t*e+1),r=t=>Math.exp(-t*e)*(-t*(e*e)));let a=5/e,o=Dr(n,r,a),s=o*wr(i,o*e),c=s*s;return{stiffness:c,damping:i*2*Math.sqrt(c),duration:yt(e)}}var Ar=(e,t)=>(t?e>=0:e>0)&&e<1/0;function jr(e,t){if(Ar(e,t))return e}function Mr(e){let t=jr(e.stiffness),n=jr(e.damping,!0),r=jr(e.mass),i={...e,stiffness:t??Sr.stiffness,damping:n??Sr.damping,mass:r??Sr.mass,isResolvedFromDuration:!1,isTimeDefined:(t??n??r)===void 0&&(e.duration!==void 0||e.bounce!==void 0)};if(i.isTimeDefined){if(e.visualDuration){let t=Cr(e.bounce||0),n=2*Math.PI/(e.visualDuration*1.2)*wr(t,2*Math.PI/1.2);i.stiffness=n*n,i.damping=2*t*Math.sqrt(i.stiffness)}else Object.assign(i,kr(i)),i.isResolvedFromDuration=!0;(!Ar(i.stiffness)||!Ar(i.damping,!0))&&(i.stiffness=Sr.stiffness,i.damping=Sr.damping)}return i}function Nr(e=Sr.visualDuration,t=Sr.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},r=n.keyframes[0],i=n.keyframes[n.keyframes.length-1],a={done:!1,value:r},{stiffness:o,damping:s,mass:c,duration:l,isResolvedFromDuration:u,isTimeDefined:d}=Mr({...n}),f=e=>d?0:-bt(e),p=s/(2*Math.sqrt(o*c)),m=bt(Math.sqrt(o/c)),h=p*m,g={target:i,delta:i-r,velocity:f(n.velocity||0)||0,restSpeed:0,restDelta:0},_=()=>{let e=Math.abs(g.delta)<5;g.restSpeed=n.restSpeed||(e?Sr.restSpeed.granular:Sr.restSpeed.default),g.restDelta=n.restDelta||(e?Sr.restDelta.granular:Sr.restDelta.default)};_();let v,y,b;if(p<1){let e=Tr(m,p),t={A:0,sinC:0,cosC:0,t:-1,env:0,sin:0,cos:0};b=()=>{t.A=(g.velocity+h*g.delta)/e,t.sinC=h*t.A+g.delta*e,t.cosC=h*g.delta-t.A*e};let n=n=>{n!==t.t&&(t.t=n,t.env=Math.exp(-h*n),t.sin=Math.sin(e*n),t.cos=Math.cos(e*n))};v=e=>(n(e),g.target-t.env*(t.A*t.sin+g.delta*t.cos)),y=e=>(n(e),t.env*(t.sinC*t.sin+t.cosC*t.cos))}else if(p===1){v=e=>g.target-Math.exp(-m*e)*(g.delta+(g.velocity+m*g.delta)*e);let e={C:0};b=()=>{e.C=g.velocity+m*g.delta},y=t=>Math.exp(-m*t)*(m*e.C*t-g.velocity)}else{let e=m*Math.sqrt(p*p-1),t=h-e,n=h+e,r=d?1/0:300/e,i=(e,t)=>Math.exp(t>r?-e*r-h*(t-r):-e*t),a={S:0,F:0};b=()=>{let t=(g.velocity+h*g.delta)/e;a.S=(g.delta+t)/2,a.F=(g.delta-t)/2},v=e=>g.target-a.S*i(t,e)-a.F*i(n,e),y=e=>t*a.S*i(t,e)+n*a.F*i(n,e)}b();let x=u&&l||null,S={calculatedDuration:x,retarget:(e,t)=>{g.target=e[e.length-1],g.delta=g.target-e[0],g.velocity=f(t),n.restSpeed&&n.restDelta||_(),S.calculatedDuration=x,a.done=!1,b()},velocity:e=>yt(y(e)),next:e=>{let t=v(e);if(u)a.done=e>=l;else{let n=yt(y(e));a.done=Math.abs(n)<=g.restSpeed&&Math.abs(g.target-t)<=g.restDelta}return a.value=a.done?g.target:t,a},toString:()=>{let e=Math.min(br(S),yr),t=vr(t=>S.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return S}Nr.applyToOptions=e=>{let t=xr(e,100,Nr);return e.ease=t.ease,e.duration=yt(t.duration),e.type=`keyframes`,e};function Pr({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>e<s||e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>{let t=v(e);f.done=Math.abs(t)<=l,f.value=f.done?_:_+t},b,x,S=e=>{p(f.value)&&(b=e,x=Nr({keyframes:[f.value,m(f.value)],velocity:-v(e)/r*1e3,damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return S(0),{calculatedDuration:null,next:e=>{let t=!1;return!x&&b===void 0&&(t=!0,y(e),S(e)),b!==void 0&&e>=b?x.next(e-b):(!t&&y(e),f)}}}function Fr(e,t,n){let r=[],i=n||ut.mix||lr,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=gt(Array.isArray(t)?t[n]||ht:t,a)),r.push(a)}return r}function Ir(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=Fr(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=_t(e[r],e[r+1],n);return s[r](i)};return n?t=>l(lt(e[0],e[a-1],t)):l}function Lr(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=_t(0,t,r);e.push(qn(n,1,i))}}function Rr(e){let t=[0];return Lr(t,e.length-1),t}function zr(e,t){return e.map(e=>e*t)}function Br(e,t){return e.map(()=>t||zt).splice(0,e.length-1)}function Vr({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=Bt(r)?r.map(Gt):Gt(r)||zt,a={done:!1,value:t[0]};if(t.length===2&&!Array.isArray(i)&&(!n||n.length!==2||n[0]===0&&n[1]===1)){let[n,r]=t,o=n===r?void 0:(ut.mix||lr)(n,r);return{calculatedDuration:e,next:t=>(a.value=o?o(i(e>0?lt(0,1,t/e):1)):r,a.done=t>=e,a)}}let o=Ir(zr(n&&n.length===t.length?n:Rr(t),e),t,{ease:Array.isArray(i)?i:Br(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var Hr=5;function Ur(e,t,n){let r=Math.max(t-Hr,0);return xt(n-e(r),t-r)}function Wr(e,t,n=0){return t<=0?n:e.velocity?e.velocity(t):Ur(t=>e.next(t).value,t,e.next(t).value)}var Gr=e=>e!==null;function Kr(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(Gr),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var qr={decay:Pr,inertia:Pr,tween:Vr,keyframes:Vr,spring:Nr};function Jr(e){typeof e.type==`string`&&(e.type=qr[e.type])}function Yr(e,t){return{kind:e,animation:t,timestamp:Yt.now(),frameTimestamp:Kt.timestamp,frameIsProcessing:Kt.isProcessing}}function Xr(e,t,n){let r=globalThis.__MOTION_INSPECT__;if(r)try{r({...Yr(`animation-start`,e),options:n?{...t,...n}:t})}catch{}}function Zr(e,t){let n=globalThis.__MOTION_INSPECT__;if(n)try{n({...Yr(`layout-animation-start`,e),node:t})}catch{}}var Qr=class{constructor(){this.isResolved=!1}get finished(){return this._finished||=this.isResolved?Promise.resolve():new Promise(e=>{this._resolve=e}),this._finished}updateFinished(){this._finished=this._resolve=void 0,this.isResolved=!1}notifyFinished(){this.isResolved=!0,this._resolve?.()}then(e,t){return this.finished.then(e,t)}},$r=e=>e/100,ei=class extends Qr{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==Yt.now()&&this.tick(Yt.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause(),Xr(this,this.options)}initAnimation(){let{options:e}=this;Jr(e);let{type:t=Vr,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||Vr;s!==Vr&&typeof o[0]!=`number`&&(this.mixKeyframes=gt($r,lr(o[0],o[1])),o=[0,100]);let c=s(o===e.keyframes?e:{...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=br(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=lt(0,1,n)*o}let b;_?(this.delayState.value=l[0],b=this.delayState):b=y.next(v),i&&!_&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==Pr&&(b.value=Kr(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return bt(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+bt(e)}get time(){return bt(this.currentTime)}set time(e){e=yt(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state=`paused`,this.holdTime=e,this.tick(e))}getGeneratorVelocity(){return Wr(this.generator,this.currentTime,this.options.velocity)}get speed(){return this.playbackSpeed}set speed(e){let t=this.playbackSpeed!==e;t&&this.driver&&this.updateTime(Yt.now()),this.playbackSpeed=e,t&&this.driver&&(this.time=bt(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=_r,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(Yt.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}},ti=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function ni(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(sn)||[];if(!r)return e;let i=n.replace(r,``),a=+!!ti.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var ri=/\b([a-z-]*)\(.*?\)/gu,ii={...Un,getAnimatableNone:e=>{let t=e.match(ri);return t?t.map(ni).join(` `):e}},ai={...Un,getAnimatableNone:e=>{let t=Un.parse(e);return Un.createTransformer(e)(t.map(e=>typeof e==`number`?0:typeof e==`object`?{...e,alpha:1}:e))}},oi={...rn,transform:Math.round},si={rotate:vn,pathRotation:vn,rotateX:vn,rotateY:vn,rotateZ:vn,scale:on,scaleX:on,scaleY:on,scaleZ:on,skew:vn,skewX:vn,skewY:vn,distance:B,translateX:B,translateY:B,translateZ:B,x:B,y:B,z:B,perspective:B,transformPerspective:B,opacity:an,originX:Sn,originY:Sn,originZ:B},ci={borderWidth:B,borderTopWidth:B,borderRightWidth:B,borderBottomWidth:B,borderLeftWidth:B,borderRadius:B,borderTopLeftRadius:B,borderTopRightRadius:B,borderBottomRightRadius:B,borderBottomLeftRadius:B,width:B,maxWidth:B,height:B,maxHeight:B,top:B,right:B,bottom:B,left:B,inset:B,insetBlock:B,insetBlockStart:B,insetBlockEnd:B,insetInline:B,insetInlineStart:B,insetInlineEnd:B,padding:B,paddingTop:B,paddingRight:B,paddingBottom:B,paddingLeft:B,paddingBlock:B,paddingBlockStart:B,paddingBlockEnd:B,paddingInline:B,paddingInlineStart:B,paddingInlineEnd:B,margin:B,marginTop:B,marginRight:B,marginBottom:B,marginLeft:B,marginBlock:B,marginBlockStart:B,marginBlockEnd:B,marginInline:B,marginInlineStart:B,marginInlineEnd:B,fontSize:B,backgroundPositionX:B,backgroundPositionY:B,...si,zIndex:oi,fillOpacity:an,strokeOpacity:an,numOctaves:oi},li={...ci,color:wn,backgroundColor:wn,outlineColor:wn,fill:wn,stroke:wn,borderColor:wn,borderTopColor:wn,borderRightColor:wn,borderBottomColor:wn,borderLeftColor:wn,filter:ii,WebkitFilter:ii,mask:ai,WebkitMask:ai},ui=e=>li[e],di=new Set([ii,ai]);function fi(e,t){let n=ui(e);return di.has(n)||(n=Un),n.getAnimatableNone?n.getAnimatableNone(t):void 0}function pi(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var mi=e=>e*180/Math.PI,hi=e=>_i(mi(Math.atan2(e[1],e[0]))),gi={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:hi,rotateZ:hi,skewX:e=>mi(Math.atan(e[1])),skewY:e=>mi(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},_i=e=>(e%=360,e<0&&(e+=360),e),vi=hi,yi=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),bi=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),xi={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:yi,scaleY:bi,scale:e=>(yi(e)+bi(e))/2,rotateX:e=>_i(mi(Math.atan2(e[6],e[5]))),rotateY:e=>_i(mi(Math.atan2(-e[2],e[0]))),rotateZ:vi,rotate:vi,skewX:e=>mi(Math.atan(e[4])),skewY:e=>mi(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function Si(e){return+!!e.includes(`scale`)}function Ci(e,t){if(!e||e===`none`)return Si(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=xi,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=gi,i=t}if(!i)return Si(t);let a=r[t],o=i[1].split(`,`).map(Ti);return typeof a==`function`?a(o):o[a]}var wi=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return Ci(n,t)};function Ti(e){return parseFloat(e.trim())}var Ei=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],Di=new Set([...Ei,`pathRotation`]),Oi=e=>e===rn||e===B,ki=new Set([`x`,`y`,`z`]),Ai=Ei.filter(e=>!ki.has(e));function ji(e){let t=[];return Ai.forEach(n=>{let r=e.getValue(n);if(r!==void 0){let e=r.get(),i=+!!n.startsWith(`scale`);if(e===i)return;t.push([n,e]),r.set(i)}}),t}var Mi=new Set([`bottom`,`right`]);function Ni(e,t,n,r,i,a){let o=parseFloat(e);if(!isNaN(o))return o;let{min:s,max:c}=t()[n],l=c-s;return a===`border-box`?l:l-parseFloat(r)-parseFloat(i)}var Pi={width:({width:e,paddingLeft:t=`0`,paddingRight:n=`0`,boxSizing:r},i)=>Ni(e,i,`x`,t,n,r),height:({height:e,paddingTop:t=`0`,paddingBottom:n=`0`,boxSizing:r},i)=>Ni(e,i,`y`,t,n,r),top:({top:e})=>parseFloat(e),left:({left:e})=>parseFloat(e),bottom:({top:e},t)=>{let{y:n}=t();return parseFloat(e)+(n.max-n.min)},right:({left:e},t)=>{let{x:n}=t();return parseFloat(e)+(n.max-n.min)},x:({transform:e})=>Ci(e,`x`),y:({transform:e})=>Ci(e,`y`)};Pi.translateX=Pi.x,Pi.translateY=Pi.y;var Fi=new Set,Ii=!1,Li=!1,Ri=!1;function zi(){if(Li){let e=[],t=new Set,n=new Set;Fi.forEach(r=>{r.needsMeasurement&&(e.push(r),t.add(r.element),Mi.has(r.name)&&n.add(r.element))});let r=new Map;n.forEach(e=>{let t=ji(e);t.length&&(r.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=r.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}Li=!1,Ii=!1,Fi.forEach(e=>e.complete(Ri)),Fi.clear()}function Bi(){Fi.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(Li=!0)})}function Vi(){Ri=!0,Bi(),zi(),Ri=!1}function Hi(e,t,n){if(typeof e==`string`){if(dt(e)||pt(e))return parseFloat(e);if(!Un.test(e)&&Un.test(n))return fi(t,n)}return e??void 0}var Ui=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(Fi.add(this),Ii||(Ii=!0,mr.read(Bi),mr.resolveKeyframes(zi))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=Hi(n.readValue(t,a),t,a);r!==void 0&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}pi(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Fi.delete(this)}cancel(){this.state===`scheduled`&&(Fi.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},Wi=e=>e.startsWith(`--`);function Gi(e,t,n){Wi(t)?e.style.setProperty(t,n):e.style[t]=n}var Ki={};function qi(e,t){let n=mt(e);return()=>Ki[t]??n()}var Ji=qi(()=>window.ScrollTimeline!==void 0,`scrollTimeline`),Yi=qi(()=>{try{document.createElement(`div`).animate({opacity:0},{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),Xi=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,Zi={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:Xi([0,.65,.55,1]),circOut:Xi([.55,0,1,.45]),backIn:Xi([.31,.01,.66,-.59]),backOut:Xi([.33,1.53,.69,.99])};function Qi(e,t){if(e)return typeof e==`function`?Yi()?vr(e,t):`ease-out`:Ht(e)?Xi(e):Array.isArray(e)?e.map(e=>Qi(e,t)||Zi.easeOut):Zi[e]}function $i(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=Qi(s,i);Array.isArray(d)&&(u.easing=d);let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};return l&&(f.pseudoElement=l),e.animate(u,f)}function ea(e){return typeof e==`function`&&`applyToOptions`in e}function ta({type:e,...t}){return ea(e)&&Yi()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var na=class extends Qr{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=ta(e);this.animation=$i(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=Kr(r,this.options,o,this.speed);this.updateMotionValue&&this.updateMotionValue(e),Gi(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()},Xr(this,e,c)}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return bt(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+bt(e)}get time(){return bt(Number(this.animation.currentTime)||0)}set time(e){let t=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=yt(e),t&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`finished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,onAttach:t,observe:n}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&Ji()?(this.animation.timeline=e,t?.(this.animation),ht):n(this)}},ra={anticipate:Nt,backInOut:Mt,circInOut:It};function ia(e){return e in ra}function aa(e){typeof e.ease==`string`&&ia(e.ease)&&(e.ease=ra[e.ease])}var oa=10,sa=class extends na{constructor(e){aa(e),Jr(e),super(e),e.startTime!==void 0&&e.autoplay!==!1&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new ei({...a,autoplay:!1}),s=Math.max(oa,Yt.now()-this.startTime),c=lt(0,oa,s-oa),l=o.sample(s).value,{name:u}=this.options;i&&u&&Gi(i,u,l),t.setWithVelocity(o.sample(Math.max(0,s-c)).value,l,c),o.stop()}},ca=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(Un.test(e)||e===`0`)&&!e.startsWith(`url(`));function la(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function ua(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=ca(i,t),s=ca(a,t);return!o||!s?(o!==s&&`${t}${i}${a}${o?a:i}`,!1):la(e)||(n===`spring`||ea(n))&&r}function da(e){e.duration=0,e.type=`keyframes`}var fa=new Set([`opacity`,`clipPath`,`filter`,`transform`,`backgroundColor`]),pa=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function ma(e){for(let t=0;t<e.length;t++)if(typeof e[t]==`string`&&pa.test(e[t]))return!0;return!1}var ha=new Set([`color`,`backgroundColor`,`outlineColor`,`fill`,`stroke`,`borderColor`,`borderTopColor`,`borderRightColor`,`borderBottomColor`,`borderLeftColor`]),ga=mt(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function _a(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o,keyframes:s}=e;if(!n||!(fa.has(n)||ha.has(n)))return!1;let c=t?.owner?.current;if(!(c instanceof HTMLElement)&&!(c instanceof SVGElement))return!1;let{onUpdate:l,transformTemplate:u}=t.owner.getProps();return ga()&&(fa.has(n)||ha.has(n)&&ma(s))&&(n!==`transform`||!u)&&!l&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var va=40,ya=class extends Qr{constructor(e){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=Yt.now();let{keyframes:t,name:n,motionValue:r,element:i}=e,a=e;a.autoplay??=!0,a.delay??=0,a.type??=`keyframes`,a.repeat??=0,a.repeatDelay??=0,a.repeatType??=`loop`;let o=i?.KeyframeResolver||Ui;this.keyframeResolver=new o(t,(e,t,n)=>this.onKeyframesResolved(e,t,a,!n),n,r,i),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=Yt.now();let u=!0;ua(e,i,a,o)||(u=!1,(ut.instantAnimations||!s)&&l?.(Kr(e,n,t)),e[0]=e[e.length-1],da(n),n.repeat=0);let d=r?this.resolvedAt&&this.resolvedAt-this.createdAt>va?this.resolvedAt:this.createdAt:void 0,{onComplete:f}=n;n.startTime??=d,n.finalKeyframe=t,n.keyframes=e,n.onComplete=()=>{f?.(),this.notifyFinished()};let p=u&&!c&&_a(n),m;if(p){n.element=n.motionValue?.owner?.current;try{m=new sa(n)}catch{m=new ei(n)}}else m=new ei(n);this.pendingTimeline&&=(this.stopTimeline=m.attachTimeline(this.pendingTimeline),void 0),this._animation=m}get finished(){return this._animation?this._animation.finished:super.finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),Vi()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}},ba=class{constructor(e){this.stop=()=>this.runAll(`stop`),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map(e=>e.finished))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let n=0;n<this.animations.length;n++)this.animations[n][e]=t}attachTimeline(e){let t=this.animations.map(t=>t.attachTimeline(e));return()=>{t.forEach((e,t)=>{e&&e(),this.animations[t].stop()})}}get time(){return this.getAll(`time`)}set time(e){this.setAll(`time`,e)}get speed(){return this.getAll(`speed`)}set speed(e){this.setAll(`speed`,e)}get state(){return this.getAll(`state`)}get startTime(){return this.getAll(`startTime`)}get duration(){return xa(this.animations,`duration`)}get iterationDuration(){return xa(this.animations,`iterationDuration`)}runAll(e){this.animations.forEach(t=>t[e]())}play(){this.runAll(`play`)}pause(){this.runAll(`pause`)}cancel(){this.runAll(`cancel`)}complete(){this.runAll(`complete`)}};function xa(e,t){let n=0;for(let r=0;r<e.length;r++){let i=e[r][t];i!==null&&i>n&&(n=i)}return n}var Sa=class extends ba{then(e,t){return this.finished.finally(e).then(()=>{})}};function Ca(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var wa=30,Ta=e=>!isNaN(parseFloat(e)),Ea={current:void 0},Da=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=Yt.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.notifyChange(),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=Yt.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=Ta(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){var n;return e===`change`?this.onChangeSubscribe(t):((n=this.events)[e]||(n[e]=new vt)).add(t)}onChangeSubscribe(e){let{events:t}=this;return!t.change&&!this.changeSubscriber?this.changeSubscriber=e:(t.change||(t.change=new vt,t.change.add(this.changeSubscriber),this.changeSubscriber=void 0),t.change.add(e)),()=>{this.changeSubscriber===e?this.changeSubscriber=void 0:t.change?.remove(e),this.stopIfUnobserved()}}stopIfUnobserved(){mr.read(()=>{!this.changeSubscriber&&!this.events.change?.getSize()&&this.stop()})}clearListeners(){this.changeSubscriber=void 0;for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.notifyChange()}notifyChange(){let{current:e,changeSubscriber:t}=this;t?t(e):this.events.change?.notify(e)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return Ea.current&&Ea.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=Yt.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>wa)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,wa);return xt(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0;let n=!1,r;r=e(()=>{n=!0,this.events.animationComplete?.notify(),this.animation===r&&this.clearAnimation(),t()}),n||(this.animation=r),this.events.animationStart?.notify()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){this.animation=void 0}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function Oa(e,t){return new Da(e,t)}function ka(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function Aa(e,t){let n=e?.[t]??e?.default??e;return n===e?n:ka(n,e)}var ja={type:`spring`,stiffness:500,damping:25,restSpeed:10},Ma=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),Na={type:`keyframes`,duration:.8},Pa={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},Fa=(e,{keyframes:t})=>t.length>2?Na:Di.has(e)?e.startsWith(`scale`)?Ma(t[1]):ja:Pa,Ia=new Set([`when`,`delay`,`delayChildren`,`staggerChildren`,`staggerDirection`,`repeat`,`repeatType`,`repeatDelay`,`from`,`elapsed`]);function La(e){for(let t in e)if(!Ia.has(t))return!0;return!1}var Ra=(e,t,n,r={},i,a)=>o=>{let s=Aa(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=yt(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};La(s)||Object.assign(u,Fa(e,u)),u.duration&&=yt(u.duration),u.repeatDelay&&=yt(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(da(u),u.delay===0&&(d=!0)),(ut.instantAnimations||ut.skipAnimations||i?.shouldSkipAnimations||s.skipAnimations)&&(d=!0,da(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=Kr(u.keyframes,s);if(e!==void 0){mr.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new ei(u):new ya(u)},za=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Ba(e){let t=za.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function Va(e,t,n=1){`${e}`;let[r,i]=Ba(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return dt(e)?parseFloat(e):e}return en(i)?Va(i,t,n+1):i}function Ha(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function Ua(e,t,n,r){let i=t=>typeof t==`function`?t(n===void 0?e.custom:n,...Ha(r)):t;return t=i(t),typeof t==`string`&&(t=e.variants&&e.variants[t]),i(t)}function Wa(e,t,n){return Ua(e.getProps(),t,n,e)}var Ga=(e,t)=>t===`exit`?e.presenceContext?.custom:void 0,Ka=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...Ei]),qa=e=>Array.isArray(e);function Ja(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Oa(n))}function Ya(e){return qa(e)?e[e.length-1]||0:e}function Xa(e,t){let{transitionEnd:n={},transition:r={},...i}=Wa(e,t)||{};i={...i,...n};for(let t in i)Ja(e,t,Ya(i[t]))}var Za=e=>!!(e&&e.getVelocity);function Qa(e){return!!(Za(e)&&e.add)}function $a(e,t){let n=e.getValue(`willChange`);if(Qa(n))return n.add(t);if(!n&&ut.WillChange){let n=new ut.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function eo(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var to=`data-`+eo(`framerAppearId`);function no(e){return e.props[to]}var ro=typeof window<`u`;function io({protectedKeys:e,needsAnimating:t},n){let r=n in e&&!t[n];return t[n]=!1,r}function ao(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?ka(a,c):c;let l=a?.reduceMotion,u=a?.skipAnimations;r&&(a=r);let d=[],f=i&&e.animationState?.getState()[i],p=a?.path;p&&p.animateVisualElement(e,s,a,n,d);for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||f&&io(f,t))continue;let o={delay:n,...Aa(a||{},t)};u&&(o.skipAnimations=!0);let c=r.get();if(c!==void 0&&!r.isAnimating()&&!Array.isArray(i)&&i===c&&!o.velocity){mr.update(()=>r.set(i));continue}let p=!1;if(ro&&window.MotionHandoffAnimation){let n=no(e);if(n){let e=window.MotionHandoffAnimation(n,t,mr);e!==null&&(o.startTime=e,p=!0)}}$a(e,t);let m=l??e.shouldReduceMotion;r.start(Ra(t,r,i,m&&Ka.has(t)?{type:!1}:o,e,p));let h=r.animation;h&&d.push(h)}if(o){let t=()=>mr.update(()=>{o&&Xa(e,o)});d.length?Promise.all(d).then(t):t()}return d}function oo(e,t,n={}){let r=Wa(e,t,Ga(e,n.type)),i=n.transitionOverride||(r?.transition??(e.getDefaultTransition()||{})),a=()=>Promise.all(r?ao(e,r,n):[]),o=(r=0)=>{let{variantChildren:a}=e,{delayChildren:o=0,staggerChildren:s,staggerDirection:c}=i,l=[];return a?.forEach(e=>{e.notify(`AnimationStart`,t),l.push(oo(e,t,{...n,delay:r+(typeof o==`function`?0:o)+Ca(a,e,o,s,c)}).then(()=>e.notify(`AnimationComplete`,t)))}),Promise.all(l)},{when:s}=i;return s?s===`beforeChildren`?a().then(()=>o()):o().then(a):Promise.all([a(),o(n.delay)])}function so(e,t,n={}){return e.notify(`AnimationStart`,t),(Array.isArray(t)?Promise.all(t.map(t=>oo(e,t,n))):typeof t==`string`?oo(e,t,n):Promise.all(ao(e,Wa(e,t,n.custom),n))).then(()=>{e.notify(`AnimationComplete`,t)})}var co={test:e=>e===`auto`,parse:e=>e},lo=e=>t=>t.test(e),uo=[rn,B,yn,vn,xn,bn,co],fo=e=>uo.find(lo(e));function po(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||pt(e)}var mo=new Set([`auto`,`none`,`0`]);function ho(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!mo.has(t)&&Fn(t)&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]!==i&&(e[r]=fi(n,i))}var go=class extends Ui{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),en(r))){let i=Va(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!Ka.has(n)||e.length!==2)return;let[r,i]=e;if(typeof r==`number`&&typeof i==`number`)return;let a=fo(r),o=fo(i);if(nn(r)!==nn(i)&&Pi[n]){this.needsMeasurement=!0;return}if(a!==o){if(Oi(a)&&Oi(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else Pi[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||po(e[t]))&&n.push(t);n.length&&ho(e,n,t)}measure(){let{element:e,name:t}=this;return Pi[t](window.getComputedStyle(e.current),()=>e.measureViewportBox())}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=this.measure(),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&this.motionValue?.jump(r,!1)}measureEndState(){let{element:e,unresolvedKeyframes:t}=this;if(!e||!e.current)return;this.motionValue?.jump(this.measuredOrigin,!1);let n=t.length-1,r=t[n];t[n]=this.measure(),r!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=r),this.removedTransforms?.length&&this.removedTransforms.forEach(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}},_o=[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomRightRadius`,`borderBottomLeftRadius`],vo=[];function yo(e){typeof e.test==`function`&&e.read,bo(e),vo.unshift(e)}function bo(e){ct(vo,e)}function xo(e){return vo.find(t=>t.test(e))}function So(e,t,n={},r){let i=[],{velocity:a}=n,o=n.reduceMotion??r?.shouldReduceMotion;for(let s in t){if(s===`transition`||s===`transitionEnd`)continue;let c=t[s];if(c===void 0)continue;let l=e(s),u=l.get();if(u!==void 0&&!l.isAnimating()&&!Array.isArray(c)&&c===u&&!a){mr.update(()=>l.set(c));continue}l.start(Ra(s,l,c,o&&Ka.has(s)?{type:!1}:n,r)),l.animation&&i.push(l.animation)}let{transitionEnd:s}=t;if(s){let t=()=>mr.update(()=>{for(let t in s)e(t).set(s[t])});i.length?Promise.all(i).then(t):t()}return i}function Co(e,t,n,r,i){return So(r=>{let a=e.get(t,r);if(!a){let o;if(!i){let i=n[r];o=wo(i)??e.read(t,r,i),`${r}`}a=Oa(o,{owner:i}),e(t,{[r]:a})}return a},n,r,i)}function wo(e){let t=Array.isArray(e)?e[0]:void 0;return t===null?void 0:t}function To(e){return ft(e)&&`offsetHeight`in e&&!(`ownerSVGElement`in e)}function Eo(e){return ft(e)&&`ownerSVGElement`in e}var Do=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function Oo(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var ko=class{constructor(e=mr.render){this.step=e,this.values=new Map,this.pending=[],this.numPending=0,this.flush=()=>{let{pending:e,numPending:t}=this;this.numPending=0;for(let n=0;n<t;n++)e[n]()}}set(e,t,n,r){if(this.values.get(e)?.onRemove(),r)for(let e of this.values.values())e.value===r&&(n=e.render);let i=()=>n&&this.schedule(n);t.get()!==void 0&&i();let a=t.on(`change`,i),o=()=>{a(),n&&!r&&this.cancel(n),this.values.get(e)?.onRemove===o&&this.values.delete(e)};return this.values.set(e,{value:t,render:r?void 0:n,onRemove:o}),o}get(e){return this.values.get(e)?.value}release(){let e=new Map;return this.values.forEach((t,n)=>{e.set(n,t.value),t.onRemove()}),this.transformKeys=this.transformValues=void 0,e}schedule(e){let{pending:t,numPending:n}=this;for(let r=0;r<n;r++)if(t[r]===e)return;n||this.step(this.flush),t[this.numPending++]=e}cancel(e){let{pending:t}=this;for(let n=0;n<this.numPending;n++)if(t[n]===e){t[n]=t[--this.numPending];return}}};function Ao(e,{step:t,...n}={}){let r=new WeakMap;return Object.assign((n,i)=>{let a=r.get(n)??new ko(t);r.set(n,a);let o=[];for(let t in i){let r=i[t],s=e(n,a,t,r);o.push(s)}return()=>{for(let e of o)e()}},n,{get:(e,t)=>r.get(e)?.get(t),flush:e=>r.get(e)?.flush(),state:e=>r.get(e)})}var jo={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Mo={};function No(e){let t=``,{transformKeys:n=[],transformValues:r={}}=e;for(let e=0;e<n.length;e++){let i=n[e],a=r[i].get();a!==void 0&&(typeof a==`number`?a:parseFloat(a))!==+!!i.startsWith(`scale`)&&(t+=(t&&` `)+(Mo[i]||(Mo[i]=(jo[i]||i)+`(`))+Do(a,si[i])+`)`)}let i=e.get(`pathRotation`)?.get();return i&&(t+=(t&&` `)+`rotate(`+Do(i,si.pathRotation)+`)`),t||`none`}var Po=new Set([`originX`,`originY`,`originZ`]),Fo=(e,t)=>Do(e.get(t)?.get(),ci[t]),Io=(e,t,n,r)=>{let i,a;if(Di.has(n)){if(n!==`pathRotation`){let e=t.transformKeys??=[];(t.transformValues??={})[n]=r,e.includes(n)||(e.push(n),e.sort((e,t)=>Ei.indexOf(e)-Ei.indexOf(t)))}t.get(`transform`)||(!To(e)&&!t.get(`transformBox`)&&Io(e,t,`transformBox`,new Da(`fill-box`)),t.set(`transform`,new Da(`none`),()=>{e.style.transform=No(t)})),a=t.get(`transform`)}else Po.has(n)?(t.get(`transformOrigin`)||t.set(`transformOrigin`,new Da(``),()=>{let n=Fo(t,`originX`)??`50%`,r=Fo(t,`originY`)??`50%`,i=Fo(t,`originZ`)??0;e.style.transformOrigin=`${n} ${r} ${i}`}),a=t.get(`transformOrigin`)):i=Wi(n)?()=>{e.style.setProperty(n,r.get())}:()=>{e.style[n]=Do(r.get(),ci[n])};return t.set(n,r,i,a)},Lo=e=>To(e)||Eo(e),Ro=(e,t)=>{if(Di.has(t))return wi(e,t);let n=getComputedStyle(e),r=Wi(t)?n.getPropertyValue(t):n[t];return typeof r==`string`&&r.trim()||0},zo=Ao(Io,{test:Lo,read:Ro}),Bo={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},Vo=Ei.length;function Ho(e,t,n){let r=``,i=!0;for(let a=0;a<Vo;a++){let o=Ei[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=Do(s,ci[o]);if(!c){i=!1;let t=Bo[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}let a=e.pathRotation;return a&&(i=!1,r+=`rotate(${Do(a,ci.pathRotation)}) `),r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function Uo(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(Di.has(e)){o=!0;continue}if(Qt(e)){i[e]=n;continue}{let t=Do(n,ci[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=Ho(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}var Wo={offset:`stroke-dashoffset`,array:`stroke-dasharray`},Go={offset:`strokeDashoffset`,array:`strokeDasharray`};function Ko(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?Wo:Go;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var qo=[`transform`,`opacity`,`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function Jo(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(Uo(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;for(let e of qo)d[e]!==void 0&&(f[e]=d[e],delete d[e]);(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox),t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&Ko(d,i,a,o,!1)}function Yo(e,t){if(!(t in e))return!1;let n=Object.getOwnPropertyDescriptor(Object.getPrototypeOf(e),t)||Object.getOwnPropertyDescriptor(e,t);return n&&typeof n.set==`function`}var Xo=(e,t,n,r,i=n)=>{let a=Yo(e,i);!a&&(i.startsWith(`data`)||i.startsWith(`aria`))&&(i=eo(i));let o=ci[n]||ci[i],s=a?()=>{e[i]=Do(r.get(),ci[n])}:()=>{let t=Do(r.get(),o);t==null?e.removeAttribute(i):e.setAttribute(i,String(t))};return t.set(n,r,s)};function Zo(e,t,n,r){return mr.render(()=>e.setAttribute(`pathLength`,`1`)),n===`pathOffset`?t.set(n,r,()=>{let t=r.get();e.setAttribute(`stroke-dashoffset`,`${-t}`)}):(t.get(`stroke-dasharray`)||t.set(`stroke-dasharray`,new Da(`1 1`),()=>{let n=t.get(`pathLength`)?.get()??1,r=t.get(`pathSpacing`)?.get();e.setAttribute(`stroke-dasharray`,`${n} ${r??1-Number(n)}`)}),t.set(n,r,void 0,t.get(`stroke-dasharray`)))}var Qo=Ao((e,t,n,r)=>n.startsWith(`path`)?Zo(e,t,n,r):n.startsWith(`attr`)?Xo(e,t,n,r,$o(n)):(Di.has(n)||Po.has(n)||Wi(n)||n in e.style?Io:Xo)(e,t,n,r),{test:Eo,read:(e,t)=>Di.has(t)?ci[t]?.default||0:Wi(t)||qo.includes(t)?Ro(e,t)||e.getAttribute(eo(t))||0:(t=$o(t),e.getAttribute(eo(t))??e.getAttribute(t)??void 0)});function $o(e){return e.replace(/^attr([A-Z])/,(e,t)=>t.toLowerCase())}function es({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function ts({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function ns(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function rs(e){return e===void 0||e===1}function is({scale:e,scaleX:t,scaleY:n}){return!rs(e)||!rs(t)||!rs(n)}function as(e){return is(e)||os(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function os(e){return ss(e.x)||ss(e.y)}function ss(e){return e&&e!==`0%`}function cs(e,t,n){return n+t*(e-n)}function ls(e,t,n,r,i){return i!==void 0&&(e=cs(e,i,r)),cs(e,n,r)+t}function us(e,t=0,n=1,r,i){e.min=ls(e.min,t,n,r,i),e.max=ls(e.max,t,n,r,i)}function ds(e,{x:t,y:n}){us(e.x,t.translate,t.scale,t.originPoint),us(e.y,n.translate,n.scale,n.originPoint)}var fs=.999999999999,ps=1.0000000000001;function ms(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&(hs(e.x,-a.scroll.offset.x),hs(e.y,-a.scroll.offset.y)),o&&(t.x*=o.x.scale,t.y*=o.y.scale,ds(e,o)),r&&as(a.latestValues)&&vs(e,a.latestValues,a.layout?.layoutBox))}t.x<ps&&t.x>fs&&(t.x=1),t.y<ps&&t.y>fs&&(t.y=1)}function hs(e,t){e.min+=t,e.max+=t}function gs(e,t,n,r,i=.5){us(e,t,n,qn(e.min,e.max,i),r)}function _s(e,t){return typeof e==`string`?parseFloat(e)/100*(t.max-t.min):e}function vs(e,t,n){let r=n??e;gs(e.x,_s(t.x,r.x),t.scaleX,t.scale,t.originX),gs(e.y,_s(t.y,r.y),t.scaleY,t.scale,t.originY)}function ys(e,t){return es(ns(e.getBoundingClientRect(),t))}function bs(e,t,n){let r=ys(e,n),{scroll:i}=t;return i&&(hs(r.x,i.offset.x),hs(r.y,i.offset.y)),r}var xs={},Ss=e=>Eo(e)?Qo:zo,Cs=class{constructor(e,t){this.effect=e,this.current=t,this.KeyframeResolver=go}getValue(e){return this.effect.get(this.current,e)}readValue(e,t){return this.effect.read(this.current,e,t)}render(){this.effect.flush(this.current)}measureViewportBox(){return ys(this.current)}getProps(){return xs}};function ws(e,t,n,r){if(r)return So(e=>r.getValue(e,null),t,n,r);let i=Ss(e);return Co(i,e,t,n,new Cs(i,e))}var Ts=Ao((e,t,n,r)=>t.set(n,r,()=>{e[n]=r.get()}),{test:e=>ft(e),read:(e,t)=>{let n=e[t];return typeof n==`string`||typeof n==`number`?n:void 0}}),{schedule:Es,cancel:Ds}=pr(queueMicrotask,!1),Os={x:!1,y:!1};function ks(){return Os.x||Os.y}function As(e){return e===`x`||e===`y`?Os[e]?null:(Os[e]=!0,()=>{Os[e]=!1}):Os.x||Os.y?null:(Os.x=Os.y=!0,()=>{Os.x=Os.y=!1})}function js(e,t){let n=Oo(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function Ms(e){return!(e.pointerType===`touch`||ks())}function Ns(e,t,n={}){let[r,i,a]=js(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!Ms(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var Ps=(e,t)=>t?e===t||Ps(e,t.parentElement):!1,Fs=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,Is=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function Ls(e){return Is.has(e.tagName)||e.isContentEditable===!0}var Rs=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function zs(e){return Rs.has(e.tagName)||e.isContentEditable===!0}var Bs=new WeakSet;function Vs(e){return t=>{t.key===`Enter`&&e(t)}}function Hs(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var Us=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=Vs(()=>{if(Bs.has(n))return;Hs(n,`down`);let e=Vs(()=>{Hs(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>Hs(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function Ws(e){return Fs(e)&&!ks()}var Gs=new WeakSet;function Ks(e,t,n={}){let[r,i,a]=js(e,n),o=e=>{let r=e.currentTarget;if(!Ws(e)||Gs.has(e))return;Bs.add(r),n.stopPropagation&&Gs.add(e);let a=t(r,e),o={...i,capture:!0},s=(e,t)=>{window.removeEventListener(`pointerup`,c,o),window.removeEventListener(`pointercancel`,l,o),Bs.has(r)&&Bs.delete(r),Ws(e)&&typeof a==`function`&&a(e,{success:t})},c=e=>{s(e,r===window||r===document||n.useGlobalTarget||Ps(r,e.target))},l=e=>{s(e,!1)};window.addEventListener(`pointerup`,c,o),window.addEventListener(`pointercancel`,l,o)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),To(e)&&(e.addEventListener(`focus`,e=>Us(e,i)),!Ls(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}var qs=new WeakMap,Js,Ys=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:Eo(r)&&`getBBox`in r?r.getBBox()[t]:r[n],Xs=Ys(`inline`,`width`,`offsetWidth`),Zs=Ys(`block`,`height`,`offsetHeight`);function Qs({target:e,borderBoxSize:t}){qs.get(e)?.forEach(n=>{n(e,{get width(){return Xs(e,t)},get height(){return Zs(e,t)}})})}function $s(e){e.forEach(Qs)}function ec(){typeof ResizeObserver<`u`&&(Js=new ResizeObserver($s))}function tc(e,t){Js||ec();let n=Oo(e);return n.forEach(e=>{let n=qs.get(e);n||(n=new Set,qs.set(e,n)),n.add(t),Js?.observe(e)}),()=>{n.forEach(e=>{let n=qs.get(e);n?.delete(t),n?.size||Js?.unobserve(e)})}}var nc=new Set,rc;function ic(){rc=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};nc.forEach(t=>t(e))},window.addEventListener(`resize`,rc)}function ac(e){return nc.add(e),rc||ic(),()=>{nc.delete(e),!nc.size&&typeof rc==`function`&&(window.removeEventListener(`resize`,rc),rc=void 0)}}function oc(e,t){return typeof e==`function`?ac(e):tc(e,t)}var sc={value:null,addProjectionMetrics:null};function cc(e){return Eo(e)&&e.tagName===`svg`}function lc(...e){let t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],i=e[1+n],a=e[2+n],o=e[3+n],s=Ir(i,a,o);return t?s(r):s}var uc=e=>typeof e==`number`?e:parseFloat(e),dc=()=>({translate:0,scale:1,origin:0,originPoint:0}),fc=()=>({x:dc(),y:dc()}),pc=()=>({min:0,max:0}),mc=()=>({x:pc(),y:pc()}),hc=new WeakMap;function gc(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function _c(e){return typeof e==`string`||Array.isArray(e)}var vc=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],yc=[`initial`,...vc];function bc(e){if(gc(e.animate))return!0;for(let t=0;t<yc.length;t++)if(_c(e[yc[t]]))return!0;return!1}function xc(e){return!!(bc(e)||e.variants)}function Sc(e,t,n){for(let r in t){let i=t[r],a=n[r];if(Za(i))e.addValue(r,i);else if(Za(a))e.addValue(r,Oa(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,Oa(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var Cc={current:null},wc={current:!1},Tc=typeof window<`u`;function Ec(){if(wc.current=!0,Tc){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Cc.current=e.matches;e.addEventListener(`change`,t),t()}else Cc.current=!1}}var Dc=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],Oc={};function kc(e){Oc=e}function Ac(){return Oc}var jc=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=Ui,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=Yt.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,mr.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=bc(t),this.isVariantNode=xc(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&Za(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];if(this.current=e,hc.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.isVariantNode&&!this.isControllingVariants){let e=this;do e=e.props.inherit!==!1&&e.parent;while(e&&!e.isVariantNode);if(e){let{variantChildren:t}=e;t.add(this),this.removeFromVariantTree=()=>t.delete(this)}}this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(wc.current||Ec(),this.shouldReduceMotion=Cc.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),hr(this.notifyUpdate),hr(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){if(this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)(),t.accelerate&&fa.has(e)&&this.current instanceof HTMLElement){let{factory:n,keyframes:r,times:i,ease:a,duration:o}=t.accelerate,s=new na({element:this.current,name:e,keyframes:r,times:i,ease:a,duration:yt(o)}),c=n(s);this.valueSubscriptions.set(e,()=>{c(),s.cancel()});return}let n=Di.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&mr.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i()})}sortNodePosition(e){return!this.current||!e.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in Oc){let t=Oc[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):mc()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Dc.length;t++){let n=Dc[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=Sc(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}addValue(e,t){let n=this.values.get(e);if(t!==n){n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t);let r=t.get();r!==void 0&&(this.latestValues[e]=r)}}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=Oa(t??this.getDefaultValue?.(e),{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(dt(n)||pt(n))?n=parseFloat(n):typeof n!=`number`&&!Un.test(n)&&Un.test(t)&&(n=fi(e,t)),this.setBaseTarget(e,Za(n)?n.get():n)),Za(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}on(e,t){return this.events[e]||(this.events[e]=new vt),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){Es.render(this.render)}},Mc=class extends jc{constructor(){super(...arguments),this.KeyframeResolver=go}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Za(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},Nc=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function Pc(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}var Fc={};function Ic(e,{layout:t,layoutId:n}){return Di.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!Fc[e]||e===`opacity`)}function Lc(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(Za(r[t])||i&&Za(i[t])||Ic(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function Rc(e){return window.getComputedStyle(e)}var zc=class extends Mc{constructor(){super(...arguments),this.type=`html`,this.renderInstance=Pc}mount(e){e.style,super.mount(e)}readValueFromInstance(e,t){if(Di.has(t))return this.projection?.isProjecting?Si(t):wi(e,t);{let n=Rc(e),r=(Qt(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return ys(e,t)}build(e,t,n){Uo(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return Lc(e,t,n)}},Bc=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),Vc=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function Hc(e,t,n,r){Pc(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(Bc.has(n)?n:eo(n),t.attrs[n])}function Uc(e,t,n){let r=Lc(e,t,n);for(let n in e)if(Za(e[n])||Za(t[n])){let t=Ei.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var Wc=class extends Mc{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=mc}getBaseTargetFromProps(e,t){return Di.has(t)?super.getBaseTargetFromProps(e,t)??Si(t):e[t]}getDefaultValue(e){return Di.has(e)?this.latestValues[e]??Si(e):void 0}readValueFromInstance(e,t){if(Di.has(t)){let e=ui(t);return e&&e.default||0}if(qo.includes(t)){let n=getComputedStyle(e)[t];if(typeof n==`string`&&n)return n.trim()}return t=Bc.has(t)?t:eo(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return Uc(e,t,n)}build(e,t,n){Jo(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){Hc(e,t,n,r)}mount(e){this.isSVGTag=Vc(e.tagName),super.mount(e)}};function Gc(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var Kc=[...vc].reverse();function qc(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>so(e,t,n))),n=Yc(),r=!0,i=!1;function a(a){let{props:o,parent:s,manuallyAnimateOnMount:c}=e,l=r||i,u=[],d=new Set,f={},p=1/0,m=e;do m=m.props.inherit!==!1&&m.parent;while(m&&!m.isControllingVariants);if(Kc.forEach((t,r)=>{let i=n[t],h=o[t],g=m&&m.props[t],_=h===void 0?_c(g)||g===!1?g:void 0:h,v=_c(_),y=t===a?i.isActive:null;y===!1&&(p=r);let b=v&&h===void 0&&!(l&&c);if(i.protectedKeys={...f},!i.isActive&&y===null||!_&&!i.prevProp||gc(_)||typeof _==`boolean`)return;if(t===`exit`&&i.isActive&&y!==!0){f={...f,...i.prevResolvedValues};return}let x=Jc(i.prevProp,_),S=x||v&&(y&&!b||r>p),C=!1,w=Array.isArray(_)?_:[_],T={};if(y!==!1)for(let n of w){let{transition:r,transitionEnd:i,...a}=Wa(e,n,Ga(e,t))||{};T={...T,...a,...i}}let{prevResolvedValues:E}=i;for(let t in{...E,...T}){if(t in f)continue;let n=T[t],r=E[t],a=Array.isArray(n)&&Array.isArray(r)?!Gc(n,r)||x:n!==r;if(a&&n==null)d.add(t);else if(a||n!==void 0&&d.has(t)){S=!0,d.delete(t)&&(C=!0),i.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)}else i.protectedKeys[t]=!0}if(i.prevProp=_,i.prevResolvedValues=T,i.isActive&&(f={...f,...T}),S&&(!(b&&x)||C))for(let n of w){let r={type:t};if(typeof n==`string`&&l&&c&&s?.enteringChildren){let t=Wa(s,n)?.transition?.delayChildren;r.delay=Ca(s.enteringChildren,e,t)}u.push({animation:n,options:r})}}),d.size){let{initial:t}=o,n={},r=typeof t!=`boolean`&&Wa(e,Array.isArray(t)?t[0]:t,e.presenceContext?.custom);r&&r.transition&&(n.transition=r.transition),d.forEach(i=>{let a=e.getValue(i);a&&(a.liveStyle=!0);let s=r&&!Array.isArray(t)?r[i]:void 0,c=e.getBaseTargetFromProps(o,i);n[i]=(s===void 0?c!==void 0&&!Za(c)?c:e.initialValues[i]===void 0?e.baseTarget[i]:void 0:s)??null}),u.push({animation:n})}let h=l&&e.blockInitialAnimation||r&&!c&&(o.initial===!1||o.initial===o.animate);return r=i=!1,!h&&u.length?t(u):Promise.resolve()}function o(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=a(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:a,setActive:o,setAnimateFunction:n=>{t=n(e)},getState:()=>n,reset:()=>{n=Yc(),i=!0}}}function Jc(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!Gc(t,e):!1}function Yc(){let e={};for(let t of vc)e[t]={isActive:t===`animate`,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}};return e}function Xc(e,t){e.min=t.min,e.max=t.max}function Zc(e,t){Xc(e.x,t.x),Xc(e.y,t.y)}function Qc(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var $c=.9999,el=1.0001,tl=-.01,nl=.01;function rl(e){return e.max-e.min}function il(e,t,n){return Math.abs(e-t)<=n}function al(e,t,n,r=.5){e.origin=r,e.originPoint=qn(t.min,t.max,e.origin),e.scale=rl(n)/rl(t),e.translate=qn(n.min,n.max,e.origin)-e.originPoint,(e.scale>=$c&&e.scale<=el||isNaN(e.scale))&&(e.scale=1),(e.translate>=tl&&e.translate<=nl||isNaN(e.translate))&&(e.translate=0)}function ol(e,t,n,r){al(e.x,t.x,n.x,r?r.originX:void 0),al(e.y,t.y,n.y,r?r.originY:void 0)}function sl(e,t,n,r=0){e.min=(r?qn(n.min,n.max,r):n.min)+t.min,e.max=e.min+rl(t)}function cl(e,t,n,r){sl(e.x,t.x,n.x,r?.x),sl(e.y,t.y,n.y,r?.y)}function ll(e,t,n,r=0){let i=r?qn(n.min,n.max,r):n.min;e.min=t.min-i,e.max=e.min+rl(t)}function ul(e,t,n,r){ll(e.x,t.x,n.x,r?.x),ll(e.y,t.y,n.y,r?.y)}function dl(e,t,n,r,i){return e-=t,e=cs(e,1/n,r),i!==void 0&&(e=cs(e,1/i,r)),e}function fl(e,t=0,n=1,r=.5,i,a=e,o=e){if(yn.test(t)&&(t=parseFloat(t),t=qn(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=qn(a.min,a.max,r);e===a&&(s-=t),e.min=dl(e.min,t,n,s,i),e.max=dl(e.max,t,n,s,i)}function pl(e,t,[n,r,i],a,o){fl(e,t[n],t[r],t[i],t.scale,a,o)}var ml=[`x`,`scaleX`,`originX`],hl=[`y`,`scaleY`,`originY`];function gl(e,t,n,r){pl(e.x,t,ml,n?n.x:void 0,r?r.x:void 0),pl(e.y,t,hl,n?n.y:void 0,r?r.y:void 0)}function _l(e){return e.translate===0&&e.scale===1}function vl(e){return _l(e.x)&&_l(e.y)}function yl(e,t){return e.min===t.min&&e.max===t.max}function bl(e,t){return yl(e.x,t.x)&&yl(e.y,t.y)}function xl(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function Sl(e,t){return xl(e.x,t.x)&&xl(e.y,t.y)}function Cl(e){return rl(e.x)/rl(e.y)}function wl(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Tl(e){return[e(`x`),e(`y`)]}function El(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var Dl={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(B.test(e))e=parseFloat(e);else return e}return`${El(e,t.target.x)}% ${El(e,t.target.y)}%`}},Ol={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=Un.parse(e);if(i.length>5)return r;let a=Un.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=qn(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}};function kl(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,pathRotation:i,rotateX:a,rotateY:o,skewX:s,skewY:c}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotate(${i}deg) `),a&&(r+=`rotateX(${a}deg) `),o&&(r+=`rotateY(${o}deg) `),s&&(r+=`skewX(${s}deg) `),c&&(r+=`skewY(${c}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var Al=_o.length,jl=e=>typeof e==`number`||B.test(e);function Ml(e,t,n,r,i,a){i?(e.opacity=qn(0,n.opacity??1,Pl(r)),e.opacityExit=qn(t.opacity??1,0,Fl(r))):a&&(e.opacity=qn(t.opacity??1,n.opacity??1,r));for(let i=0;i<Al;i++){let a=_o[i],o=Nl(t,a),s=Nl(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||jl(o)===jl(s)?(e[a]=Math.max(qn(uc(o),uc(s),r),0),(yn.test(s)||yn.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=qn(t.rotate||0,n.rotate||0,r))}function Nl(e,t){return e[t]===void 0?e.borderRadius:e[t]}var Pl=Il(0,.5,Ft),Fl=Il(.5,.95,ht);function Il(e,t,n){return r=>r<e?0:r>t?1:n(_t(e,t,r))}function Ll(e,t,n){let r=Za(e)?e:Oa(e);return r.start(Ra(``,r,t,n)),r.animation}function Rl(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}var zl=(e,t)=>e.depth-t.depth,Bl=class{constructor(){this.children=[],this.isDirty=!1}add(e){st(this.children,e),this.isDirty=!0}remove(e){ct(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(zl),this.isDirty=!1,this.children.forEach(e)}};function Vl(e,t){let n=Yt.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(hr(r),e(a-t))};return mr.setup(r,!0),()=>hr(r)}function Hl(e){return Za(e)?e.get():e}var Ul=class{constructor(){this.members=[]}add(e){st(this.members,e);for(let t=this.members.length-1;t>=0;t--){let n=this.members[t];if(n===e||n===this.lead||n===this.prevLead)continue;let r=n.instance;(!r||r.isConnected===!1)&&!n.snapshot&&(ct(this.members,n),n.unmount())}e.scheduleRender()}remove(e){if(ct(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){for(let t=this.members.indexOf(e)-1;t>=0;t--){let e=this.members[t];if(e.isPresent!==!1&&e.instance?.isConnected!==!1)return this.promote(e),!0}return!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.updateSnapshot(),e.scheduleRender();let{layoutDependency:r}=n.options,{layoutDependency:i}=e.options;(r===void 0||r!==i)&&(e.resumeFrom=n,t&&(n.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root?.isUpdating&&(e.isLayoutDirty=!0)),e.options.crossfade===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{e.options.onExitComplete?.(),e.resumingFrom?.options.onExitComplete?.()})}scheduleRender(){this.members.forEach(e=>e.instance&&e.scheduleRender(!1))}removeLeadSnapshot(){this.lead?.snapshot&&(this.lead.snapshot=void 0)}},Wl={borderRadius:{...Dl,applyTo:[..._o]},borderTopLeftRadius:Dl,borderTopRightRadius:Dl,borderBottomLeftRadius:Dl,borderBottomRightRadius:Dl,boxShadow:Ol},Gl={hasAnimatedSinceResize:!0,hasEverUpdated:!1};Object.assign(Fc,{...Wl,...Fc});var Kl={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},ql=[``,`X`,`Y`,`Z`],Jl=1e3,Yl=0;function Xl(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function Zl(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=no(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,mr,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&Zl(r)}function Ql({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=Yl++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,sc.value&&(Kl.nodes=Kl.calculatedTargetDeltas=Kl.calculatedProjections=0),this.nodes.forEach(tu),this.nodes.forEach(du),this.nodes.forEach(fu),this.nodes.forEach(nu),sc.addProjectionMetrics&&sc.addProjectionMetrics(Kl)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Bl)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new vt),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=Eo(t)&&!cc(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;mr.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=Vl(i,250),Gl.hasAnimatedSinceResize&&(Gl.hasAnimatedSinceResize=!1,this.nodes.forEach(uu)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||yu,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!Sl(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Aa(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l,t.path)}else t||uu(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),hr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(pu),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zl(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,(typeof t.latestValues.x==`string`||typeof t.latestValues.y==`string`)&&(t.isLayoutDirty=!0),t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){let e=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),e&&this.nodes.forEach(au),this.nodes.forEach(iu);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(ou);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(su),this.nodes.forEach(cu),this.nodes.forEach(lu),this.nodes.forEach($l),this.nodes.forEach(eu)):this.nodes.forEach(ou),this.clearAllSnapshots();let e=Yt.now();Kt.delta=lt(0,1e3/60,e-Kt.timestamp),Kt.timestamp=e,Kt.isProcessing=!0,gr.update.process(Kt),gr.preRender.process(Kt),gr.render.process(Kt),Kt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Es.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(ru),this.sharedNodes.forEach(mu)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,mr.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){mr.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),this.snapshot&&!rl(this.snapshot.measuredBox.x)&&!rl(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutCorrected||=mc(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!vl(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||as(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),Cu(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return mc();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(Tu))){let{scroll:e}=this.root;e&&(hs(t.x,e.offset.x),hs(t.y,e.offset.y))}return t}removeElementScroll(e){let t=mc();if(Zc(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&Zc(t,e),hs(t.x,i.offset.x),hs(t.y,i.offset.y))}return t}applyTransform(e,t=!1,n){let r=n||mc();Zc(r,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&(hs(r.x,-n.scroll.offset.x),hs(r.y,-n.scroll.offset.y)),as(n.latestValues)&&vs(r,n.latestValues,n.layout?.layoutBox)}return as(this.latestValues)&&vs(r,this.latestValues,this.layout?.layoutBox),r}removeTransform(e){let t=mc();Zc(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!as(n.latestValues))continue;let r;n.instance&&(is(n.latestValues)&&n.updateSnapshot(),r=mc(),Zc(r,n.measurePageBox())),gl(t,n.latestValues,n.snapshot?.layoutBox,r)}return as(this.latestValues)&&gl(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Kt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=Kt.timestamp;let a=this.getClosestProjectingParent();!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),(this.relativeTarget||this.targetDelta)&&(this.target||(this.target=mc(),this.targetWithTransforms=mc()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),cl(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Zc(this.target,this.layout.layoutBox),ds(this.target,this.targetDelta)):Zc(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),sc.value&&Kl.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||is(this.parent.latestValues)||os(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget=mc(),this.relativeTargetOrigin=mc(),ul(this.relativeTargetOrigin,t,n,this.options.layoutAnchor||void 0),Zc(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Kt.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;Zc(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;ms(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=mc());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(Qc(this.prevProjectionDelta.x,this.projectionDelta.x),Qc(this.prevProjectionDelta.y,this.projectionDelta.y)),ol(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!wl(this.projectionDelta.x,this.prevProjectionDelta.x)||!wl(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),sc.value&&Kl.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=fc(),this.projectionDelta=fc(),this.projectionDeltaWithTransform=fc()}setAnimationOrigin(e,t=!1,n){let r=this.snapshot,i=r?r.latestValues:{},a={...this.latestValues},o=fc();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let s=mc(),c=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,d=!(!c||u||this.options.crossfade!==!0||this.path.some(vu));this.animationProgress=0;let f,p=n?.interpolateProjection(e);this.mixTargetDelta=t=>{let n=t/1e3,r=p?.(n);r?(o.x.translate=r.x,o.x.scale=qn(e.x.scale,1,n),o.x.origin=e.x.origin,o.x.originPoint=e.x.originPoint,o.y.translate=r.y,o.y.scale=qn(e.y.scale,1,n),o.y.origin=e.y.origin,o.y.originPoint=e.y.originPoint):(hu(o.x,e.x,n),hu(o.y,e.y,n)),this.setTargetDelta(o),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(ul(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),_u(this.relativeTarget,this.relativeTargetOrigin,s,n),f&&bl(this.relativeTarget,f)&&(this.isProjectionDirty=!1),f||=mc(),Zc(f,this.relativeTarget)),c&&(this.animationValues=a,Ml(a,i,this.latestValues,n,d,u)),r&&r.rotate!==void 0&&(this.animationValues||=a,this.animationValues.pathRotation=r.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(hr(this.pendingAnimation),void 0),this.pendingAnimation=mr.update(()=>{Gl.hasAnimatedSinceResize=!0,this.motionValue||=Oa(0),this.motionValue.jump(0,!1),this.currentAnimation=Ll(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),Zr(this.currentAnimation,this),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Jl),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,layout:n,latestValues:r}=e,{target:i}=e;if(t&&i&&n){if(this!==e&&this.layout&&n&&wu(this.options.animationType,this.layout.layoutBox,n.layoutBox)){i=this.target||mc();let t=rl(this.layout.layoutBox.x);i.x.min=e.target.x.min,i.x.max=i.x.min+t;let n=rl(this.layout.layoutBox.y);i.y.min=e.target.y.min,i.y.max=i.y.min+n}Zc(t,i),vs(t,r),ol(this.projectionDeltaWithTransform,this.layoutCorrected,t,r)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ul),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&Xl(`z`,e,r,this.animationValues);for(let t=0;t<ql.length;t++)Xl(`rotate${ql[t]}`,e,r,this.animationValues),Xl(`skew${ql[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=Hl(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=Hl(t?.pointerEvents)||``),this.hasProjected&&!as(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=kl(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in Fc){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=Fc[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?Hl(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(iu),this.root.sharedNodes.clear()}}}function $l(e){e.updateLayout()}function eu(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;if(i===`size`)Tl(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=rl(r);r.min=n[e].min,r.max=r.min+i});else if(i===`x`||i===`y`){let e=i===`x`?`y`:`x`;Xc(a?t.measuredBox[e]:t.layoutBox[e],n[e])}else wu(i,t.layoutBox,n)&&Tl(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=rl(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=fc();ol(o,n,t.layoutBox);let s=fc();a?ol(s,e.applyTransform(r,!0),t.measuredBox):ol(s,n,t.layoutBox);let c=!vl(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=e.options.layoutAnchor||void 0,s=mc();ul(s,t.layoutBox,i.layoutBox,o);let c=mc();ul(c,n,a.layoutBox,o),Sl(s,c)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=c,e.relativeTargetOrigin=s,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function tu(e){sc.value&&Kl.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function nu(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function ru(e){e.clearSnapshot()}function iu(e){e.clearMeasurements()}function au(e){e.isLayoutDirty=!0,e.updateLayout()}function ou(e){e.isLayoutDirty=!1}function su(e){e.isAnimationBlocked&&e.layout&&!e.isLayoutDirty&&(e.snapshot=e.layout,e.isLayoutDirty=!0)}function cu(e){e.relativeTarget&&e.relativeParent?.isLayoutDirty&&(e.currentAnimation?e.isLayoutDirty=!0:(e.targetDelta=void 0,e.removeRelativeTarget()))}function lu(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function uu(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function du(e){e.resolveTargetDelta()}function fu(e){e.calcProjection()}function pu(e){e.resetSkewAndRotation()}function mu(e){e.removeLeadSnapshot()}function hu(e,t,n){e.translate=qn(t.translate,0,n),e.scale=qn(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function gu(e,t,n,r){e.min=qn(t.min,n.min,r),e.max=qn(t.max,n.max,r)}function _u(e,t,n,r){gu(e.x,t.x,n.x,r),gu(e.y,t.y,n.y,r)}function vu(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var yu={duration:.45,ease:[.4,0,.1,1]},bu=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),xu=bu(`applewebkit/`)&&!bu(`chrome/`)?Math.round:ht;function Su(e){e.min=xu(e.min),e.max=xu(e.max)}function Cu(e){Su(e.x),Su(e.y)}function wu(e,t,n){return e===`position`||e===`preserve-aspect`&&!il(Cl(t),Cl(n),.2)}function Tu(e){return e!==e.root&&e.scroll?.wasRoot}var Eu=Ql({attachResizeListener:(e,t)=>Rl(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),Du=e=>!e.isLayoutDirty&&e.willUpdate(!1);function Ou(){let e=new Set,t=new WeakMap,n=()=>e.forEach(Du);return{add:r=>{e.add(r),t.set(r,r.addEventListener(`willUpdate`,n))},remove:r=>{e.delete(r);let i=t.get(r);i&&(i(),t.delete(r)),n()},dirty:n}}var ku={current:void 0},Au=Ql({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!ku.current){let e=new Eu({});e.mount(window),e.setOptions({layoutScroll:!0}),ku.current=e}return ku.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),ju=(0,p.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function Mu(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function Nu(...e){return t=>{let n=!1,r=e.map(e=>{let r=Mu(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Mu(e[t],null)}}}}function Pu(...e){return p.useCallback(Nu(...e),e)}var Fu=class extends p.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(To(t)&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=To(e)&&e.offsetWidth||0,r=To(e)&&e.offsetHeight||0,i=getComputedStyle(t),a=this.props.sizeRef.current;a.height=parseFloat(i.height),a.width=parseFloat(i.width),a.top=t.offsetTop,a.left=t.offsetLeft,a.right=n-a.width-a.left,a.bottom=r-a.height-a.top,a.direction=i.direction}return null}componentDidUpdate(){}render(){return this.props.children}};function Iu({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,p.useId)(),s=(0,p.useRef)(null),c=(0,p.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:`ltr`}),{nonce:l}=(0,p.useContext)(ju),u=Pu(s,a===!1?void 0:e.props?.ref??e?.ref);return(0,p.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m,direction:h}=c.current;if(t||a===!1||!s.current||!e||!u)return;let g=h===`rtl`,_=n===`left`?g?`right: ${p}`:`left: ${f}`:g?`left: ${f}`:`right: ${p}`,v=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let y=document.createElement(`style`);l&&(y.nonce=l);let b=i??document.head;return b.appendChild(y),y.sheet&&y.sheet.insertRule(`
|
|
2
|
-
[data-motion-pop-id="${o}"] {
|
|
3
|
-
position: absolute !important;
|
|
4
|
-
width: ${e}px !important;
|
|
5
|
-
height: ${u}px !important;
|
|
6
|
-
${_}px !important;
|
|
7
|
-
${v}px !important;
|
|
8
|
-
}
|
|
9
|
-
`),()=>{s.current?.removeAttribute(`data-motion-pop-id`),b.contains(y)&&b.removeChild(y)}},[t]),(0,m.jsx)(Fu,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:p.cloneElement(e,{ref:u})})}var Lu=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=it(Ru),d=(0,p.useId)(),f=(0,p.useRef)(n),h=(0,p.useRef)(r);at(()=>{f.current=n,h.current=r});let g=!0,_=(0,p.useMemo)(()=>(g=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>{u.delete(e),!f.current&&!u.size&&h.current?.()})}),[n,u,r]);return a&&g&&(_={..._}),(0,p.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),p.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,m.jsx)(Iu,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,m.jsx)(ot.Provider,{value:_,children:e})};function Ru(){return new Map}function zu(e=!0){let t=(0,p.useContext)(ot);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,p.useId)();(0,p.useEffect)(()=>{if(e)return i(a)},[e]);let o=(0,p.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}function Bu(){return Vu((0,p.useContext)(ot))}function Vu(e){return e===null||e.isPresent}var Hu=e=>e.key||``;function Uu(e){let t=[];return p.Children.forEach(e,e=>{(0,p.isValidElement)(e)&&t.push(e)}),t}var V=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=zu(o),f=(0,p.useMemo)(()=>Uu(e),[e]),h=o&&!u?[]:f.map(Hu),g=(0,p.useRef)(!0),_=it(()=>new Map),v=(0,p.useRef)(new Set),[y,b]=(0,p.useState)(f),[x,S]=(0,p.useState)(f);at(()=>{o&&!u&&!x.length&&d?.()},[u,o,x.length,d]),at(()=>{g.current=!1;for(let e=0;e<x.length;e++){let t=Hu(x[e]);h.includes(t)?(_.delete(t),v.current.delete(t)):_.get(t)!==!0&&_.set(t,!1)}},[x,h.length,h.join(`-`)]);let C=[];if(f!==y){let e=[...f],t=0;for(let n of x){let r=h.indexOf(Hu(n));r===-1?(e.splice(t++,0,n),C.push(n)):t=r+C.length+1}return C.every(e=>_.get(Hu(e)))?e=f:a===`wait`&&(e=C),S(Uu(e)),b(f),null}let{forceRender:w}=(0,p.useContext)(rt);return(0,m.jsx)(m.Fragment,{children:x.map(e=>{let p=Hu(e),y=o&&!u?!1:f===x||h.includes(p);return(0,m.jsx)(Lu,{isPresent:y,initial:!g.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(v.current.has(p))return;if(_.has(p))v.current.add(p),_.set(p,!0);else return;let e=!0;_.forEach(t=>{t||(e=!1)}),e&&(w?.(),b([]),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},p)})})},Wu=(0,p.createContext)(null);function Gu(){let e=(0,p.useRef)(!1);return at(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function Ku(){let e=Gu(),[t,n]=(0,p.useState)(0),r=(0,p.useCallback)(()=>{e.current&&n(t+1)},[t]);return[(0,p.useCallback)(()=>mr.postRender(r),[r]),t]}var qu=e=>e===!0,Ju=e=>qu(e===!0)||e===`id`,Yu=({children:e,id:t,inherit:n=!0})=>{let r=(0,p.useContext)(rt),i=(0,p.useContext)(Wu),[a,o]=Ku(),s=(0,p.useRef)(null),c=r.id||i;s.current===null&&(Ju(n)&&c&&(t=t?c+`-`+t:c),s.current={id:t,group:qu(n)&&r.group||Ou()});let l=(0,p.useMemo)(()=>({...s.current,forceRender:a}),[o]);return(0,m.jsx)(rt.Provider,{value:l,children:e})},Xu=(0,p.createContext)({strict:!1}),Zu={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},Qu=!1;function $u(){if(Qu)return;let e={};for(let t in Zu)e[t]={isEnabled:e=>Zu[t].some(t=>!!e[t])};kc(e),Qu=!0}function ed(){return $u(),Ac()}function td(e){let t=ed();for(let n in e)t[n]={...t[n],...e[n]};kc(t)}function nd({children:e,...t}){let n=(0,p.useContext)(ju);t={...n,...t},t.transition=ka(t.transition,n.transition),t.isStatic=it(()=>t.isStatic);let r=(0,p.useMemo)(()=>t,[JSON.stringify(t.transition),t.transformPagePoint,t.reducedMotion,t.skipAnimations,t.isValidProp]);return(0,m.jsx)(ju.Provider,{value:r,children:e})}var rd=(0,p.createContext)({});function id(e,t){if(bc(e)){let{initial:t,animate:n}=e;return{initial:t===!1||_c(t)?t:void 0,animate:_c(n)?n:void 0}}return e.inherit===!1?{}:t}function ad(e){let{initial:t,animate:n}=id(e,(0,p.useContext)(rd));return(0,p.useMemo)(()=>({initial:t,animate:n}),[od(t),od(n)])}function od(e){return Array.isArray(e)?e.join(` `):e}var sd=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function cd(e,t,n){for(let r in t)!Za(t[r])&&!Ic(r,n)&&(e[r]=t[r])}function ld({transformTemplate:e},t){return(0,p.useMemo)(()=>{let n=sd();return Uo(n,t,e),Object.assign({},n.vars,n.style)},[t])}function ud(e,t){let n=e.style||{},r={};return cd(r,n,e),Object.assign(r,ld(e,t)),r}function dd(e,t){let n={},r=ud(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var fd=()=>({...sd(),attrs:{}});function pd(e,t,n,r){let i=(0,p.useMemo)(()=>{let n=fd();return Jo(n,t,Vc(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};cd(t,e.style,e),i.style={...t,...i.style}}return i}var md=new Set(`animate.exit.variants.initial.style.values.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function hd(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||md.has(e)}function gd(e,t){return e.startsWith(`on`)?!hd(e):t?.(e)??!hd(e)}function _d(e,t,n,r){let i={};for(let a in e)(a!==`values`||typeof e.values!=`object`)&&(Za(e[a])||(gd(a,r)||n===!0&&hd(a)||!t&&!hd(a)||e.draggable&&a.startsWith(`onDrag`))&&(i[a]=e[a]));return i}var vd=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function yd(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(vd.indexOf(e)>-1||/[A-Z]/u.test(e))}function bd(e,t,n,{latestValues:r},i,a=!1,o,s){let c=(o??yd(e)?pd:dd)(t,r,i,e),l=_d(t,typeof e==`string`,a,s),u=e===p.Fragment?{}:{...l,...c,ref:n},{children:d}=t,f=(0,p.useMemo)(()=>Za(d)?d.get():d,[d]);return(0,p.createElement)(e,{...u,children:f})}function xd({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:Sd(n,r,i,e),renderState:t()}}function Sd(e,t,n,r){let i={},a=r(e,{});for(let e in a)i[e]=Hl(a[e]);let{initial:o,animate:s}=e,c=bc(e),l=xc(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!gc(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=Ua(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var Cd=e=>(t,n)=>{let r=(0,p.useContext)(rd),i=(0,p.useContext)(ot),a=()=>xd(e,t,r,i);return n?a():it(a)},wd=Cd({scrapeMotionValuesFromProps:Lc,createRenderState:sd}),Td=Cd({scrapeMotionValuesFromProps:Uc,createRenderState:fd}),Ed=Symbol.for(`motionComponentSymbol`);function Dd(e,t,n){let r=(0,p.useRef)(n);(0,p.useInsertionEffect)(()=>{r.current=n});let i=(0,p.useRef)(null);return(0,p.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var Od=(0,p.createContext)({});function kd(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function Ad(e,t,n,r,i,a){let{visualElement:o}=(0,p.useContext)(rd),s=(0,p.useContext)(Xu),c=(0,p.useContext)(ot),l=(0,p.useContext)(ju),u=l.reducedMotion,d=l.skipAnimations,f=(0,p.useRef)(null),m=(0,p.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),m.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let h=f.current,g=(0,p.useContext)(Od);h&&!h.projection&&i&&(h.type===`html`||h.type===`svg`)&&jd(f.current,n,i,g);let _=(0,p.useRef)(!1);(0,p.useInsertionEffect)(()=>{h&&_.current&&h.update(n,c)});let v=n[to],y=(0,p.useRef)(!!v&&typeof window<`u`&&!window.MotionHandoffIsComplete?.(v)&&window.MotionHasOptimisedAnimation?.(v));return at(()=>{m.current&&h&&(h.animationState?.animateChanges(),h.enteringChildren=void 0)},[]),at(()=>{m.current=!0,h&&(_.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),h.scheduleRenderMicrotask(),y.current&&h.animationState&&h.animationState.animateChanges())}),(0,p.useEffect)(()=>{h&&(!y.current&&h.animationState&&h.animationState.animateChanges(),y.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(v)}),!1),h.enteringChildren=void 0)}),h}function jd(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutAnchor:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:Md(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&kd(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:d,layoutScroll:c,layoutRoot:l,layoutAnchor:u})}function Md(e){if(e)return e.options.allowProjection===!1?Md(e.parent):e.projection}function Nd(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&td(r);let a=n?n===`svg`:yd(e),o=a?Td:wd;function s(n,s){let c,l={...(0,p.useContext)(ju),...n,layoutId:Pd(n)},{isStatic:u,isValidProp:d}=l,f=ad(n),h=o(n,u);if(!u&&typeof window<`u`){Fd(l,r);let t=Id(l);c=t.MeasureLayout,f.visualElement=Ad(e,h,l,i,t.ProjectionNode,a)}return(0,m.jsxs)(rd.Provider,{value:f,children:[c&&f.visualElement?(0,m.jsx)(c,{visualElement:f.visualElement,...l}):null,bd(e,n,Dd(h,f.visualElement,s),h,u,t,a,d)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,p.forwardRef)(s);return c[Ed]=e,c}function Pd({layoutId:e}){let t=(0,p.useContext)(rt).id;return t&&e!==void 0?t+`-`+e:e}function Fd(e,t){(0,p.useContext)(Xu).strict}function Id(e){let{drag:t,layout:n}=ed();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Ld(e,t){if(typeof Proxy>`u`)return Nd;let n=new Map,r=(n,r)=>Nd(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,Nd(a,void 0,e,t)),n.get(a))})}var Rd=(e,t)=>t.isSVG??yd(e)?new Wc(t):new zc(t,{allowProjection:e!==p.Fragment}),zd=class extends Nc{constructor(e){super(e),e.animationState||=qc(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();gc(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},Bd=0,Vd={animation:{Feature:zd},exit:{Feature:class extends Nc{constructor(){super(...arguments),this.id=Bd++}update(){let{presenceContext:e,prevPresenceContext:t,animationState:n}=this.node;if(!e||!n)return;let{isPresent:r,onExitComplete:i}=e,a=t?.isPresent;if(r===a)return;if(r&&a===!1){if(this.exit===!0){let{initial:e}=this.node.getProps();if(e&&!Array.isArray(e)){let{transition:t,transitionEnd:n,...r}=Wa(this.node,e)||{};for(let e in r)this.node.getValue(e)?.jump(r[e])}this.node.blockInitialAnimation=!1,n.reset(),n.animateChanges()}else n.setActive(`exit`,!1);this.exit=void 0;return}let o=this.exit=n.setActive(`exit`,!r);i&&!r&&o.then(()=>{this.exit===o&&(this.exit=!0,i(this.id))})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function Hd(e){return{point:{x:e.pageX,y:e.pageY}}}var Ud=e=>t=>Fs(t)&&e(t,Hd(t));function Wd(e,t,n,r){return Rl(e,t,Ud(n),r)}var Gd=({current:e})=>e?e.ownerDocument.defaultView:null,Kd=(e,t)=>Math.abs(e-t);function qd(e,t){let n=Kd(e.x,t.x),r=Kd(e.y,t.y);return Math.sqrt(n**2+r**2)}var Jd=new Set([`auto`,`scroll`]),Yd=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.hasPendingMove=!1,this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=Xd(this.lastRawMoveEventInfo,this.transformPagePoint));let e=Qd(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=qd(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e;this.history.push({...r,timestamp:Yt.now()});let{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastRawMoveEventInfo=t,this.lastMoveEventInfo=Xd(t,this.transformPagePoint),this.hasPendingMove=!0,mr.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.hasPendingMove&&this.updatePoint(),this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=Qd(e.type===`pointercancel`?this.lastMoveEventInfo:Xd(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!Fs(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=Xd(Hd(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=Kt;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,Qd(s,this.history));let d={passive:!0,capture:!0};this.removeListeners=gt(Wd(this.contextWindow,`pointermove`,this.handlePointerMove,d),Wd(this.contextWindow,`pointerup`,this.handlePointerUp,d),Wd(this.contextWindow,`pointercancel`,this.handlePointerUp,d)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Jd.has(e.overflowX)||Jd.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.addEventListener(`scroll`,this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),mr.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),hr(this.updatePoint)}};function Xd(e,t){return t?{point:t(e.point)}:e}function Zd(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Qd({point:e},t){return{point:e,delta:Zd(e,ef(t)),offset:Zd(e,$d(t)),velocity:tf(t,.1)}}function $d(e){return e[0]}function ef(e){return e[e.length-1]}function tf(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=ef(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>yt(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>yt(t)*2&&(r=e[1]);let a=bt(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function nf(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?qn(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?qn(n,e,r.max):Math.min(e,n)),e}function rf(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function af(e,{top:t,left:n,bottom:r,right:i}){return{x:rf(e.x,n,i),y:rf(e.y,t,r)}}function of(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function sf(e,t){return{x:of(e.x,t.x),y:of(e.y,t.y)}}function cf(e,t){let n=.5,r=rl(e),i=rl(t);return i>r?n=_t(t.min,t.max-r,e.min):r>i&&(n=_t(e.min,e.max-i,t.min)),lt(0,1,n)}function lf(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var uf=.35;function df(e=uf){return e===!1?e=0:e===!0&&(e=uf),{x:ff(e,`left`,`right`),y:ff(e,`top`,`bottom`)}}function ff(e,t,n){return{min:pf(e,t),max:pf(e,n)}}function pf(e,t){return typeof e==`number`?e:e[t]||0}var mf=new WeakMap,hf=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=mc(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(e),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=As(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Tl(e=>{let t=this.getAxisMotionValue(e).get()||0;if(yn.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=rl(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&mr.update(()=>i(e,t),!1,!0),$a(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=yf(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&mr.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new Yd(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:Gd(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&mr.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!vf(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=nf(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&kd(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?af(n.layoutBox,e):!1,this.elastic=df(t),r!==this.constraints&&!kd(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&Tl(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=lf(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!kd(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;r.root&&(r.root.scroll=void 0,r.root.updateScroll());let i=bs(n,r.root,this.visualElement.getTransformPagePoint()),a=sf(r.layout.layoutBox,i);if(t){let e=t(ts(a));this.hasMutatedConstraints=!!e,e&&(a=es(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=Tl(o=>{if(!vf(o,t,this.currentDirection))return;let c=s&&s[o]||{};(a===!0||a===o)&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return $a(this.visualElement,e),n.start(Ra(e,n,0,t,this.visualElement,!1))}stopAnimation(){Tl(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`;return this.visualElement.getProps()[t]||this.visualElement.getValue(e,this.visualElement.latestValues[e]??0)}snapToCursor({clientX:e,clientY:t}){let{drag:n}=this.getProps(),r={x:e,y:t},i=this.visualElement.getTransformPagePoint()?.(r)||r,a=this.visualElement.measureViewportBox();Tl(e=>{if(!vf(e,n,this.currentDirection))return;let t=this.getAxisMotionValue(e),{min:r,max:o}=a[e];t.set((t.get()||0)+i[e]-qn(r,o,.5))})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!kd(t)||!n||!this.constraints)return;this.stopAnimation();let r=this.constraints,i={x:0,y:0};Tl(e=>{let t=this.getAxisMotionValue(e).get();i[e]=cf({min:t,max:t},r[e])});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),Tl(t=>{let n=this.getAxisMotionValue(t);if(!vf(t,e,null)||!n.get())return;let{min:r,max:a}=this.constraints[t];n.set(qn(r,a,i[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;mf.set(this.visualElement,this);let e=this.visualElement.current,t=Wd(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&zs(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();kd(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=_f(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),mr.read(r);let o=Rl(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Tl(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=uf,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function gf(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function _f(e,t,n){let r=oc(e,gf(n)),i=oc(t,gf(n));return()=>{r(),i()}}function vf(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function yf(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var bf=class extends Nc{constructor(e){super(e),this.removeGroupControls=ht,this.removeListeners=ht,this.controls=new hf(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ht}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},xf=e=>(t,n)=>{e&&mr.update(()=>e(t,n),!1,!0)},Sf=class extends Nc{constructor(){super(...arguments),this.removePointerDownListener=ht}onPointerDown(e){this.session=new Yd(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Gd(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:xf(e),onStart:xf(t),onMove:xf(n),onEnd:(e,t)=>{delete this.session,r&&mr.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=Wd(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},Cf=!1,wf=class extends p.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),Cf&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Gl.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),Cf=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||mr.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{visualElement:e,layoutAnchor:t}=this.props,{projection:n}=e;n&&(n.options.layoutAnchor=t,n.root.didUpdate(),Es.postRender(()=>{!n.currentAnimation&&n.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;Cf=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function Tf(e){let[t,n]=zu(),r=(0,p.useContext)(rt);return(0,m.jsx)(wf,{...e,layoutGroup:r,switchLayoutGroup:(0,p.useContext)(Od),isPresent:t,safeToRemove:n})}var Ef={pan:{Feature:Sf},drag:{Feature:bf,ProjectionNode:Au,MeasureLayout:Tf}};function Df(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&mr.postRender(()=>i(t,Hd(t)))}var Of=class extends Nc{mount(){let{current:e}=this.node;e&&(this.unmount=Ns(e,(e,t)=>(Df(this.node,t,`Start`),e=>Df(this.node,e,`End`))))}unmount(){}},kf=class extends Nc{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=gt(Rl(this.node.current,`focus`,()=>this.onFocus()),Rl(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function Af(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&mr.postRender(()=>i(t,Hd(t)))}var jf=class extends Nc{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=Ks(e,(e,t)=>(Af(this.node,t,`Start`),(e,{success:t})=>Af(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},Mf=new WeakMap,Nf=new WeakMap,Pf=e=>{let t=Mf.get(e.target);t&&t(e)},Ff=e=>{e.forEach(Pf)};function If({root:e,...t}){let n=e||document;Nf.has(n)||Nf.set(n,{});let r=Nf.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(Ff,{root:e,...t})),r[i]}function Lf(e,t,n){let r=If(t);return Mf.set(e,n),r.observe(e),()=>{Mf.delete(e),r.unobserve(e)}}var Rf={some:0,all:1},zf=class extends Nc{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.stopObserver?.();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:Rf[r]},o=e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)};this.stopObserver=Lf(this.node.current,a,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(Bf(e,t))&&this.startObserver()}unmount(){this.stopObserver?.(),this.hasEnteredView=!1,this.isInView=!1}};function Bf({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var Vf={inView:{Feature:zf},tap:{Feature:jf},focus:{Feature:kf},hover:{Feature:Of}},Hf={layout:{ProjectionNode:Au,MeasureLayout:Tf}},Uf=Ld({...Vd,...Vf,...Ef,...Hf},Rd);function Wf(e,t,n){(0,p.useInsertionEffect)(()=>e.on(t,n),[e,t,n])}function Gf(e){let t=it(()=>Oa(e)),{isStatic:n}=(0,p.useContext)(ju);if(n){let[,n]=(0,p.useState)(e);(0,p.useEffect)(()=>t.on(`change`,n),[])}return t}function Kf(e,t){let n=Gf(t()),r=()=>n.set(t());return r(),at(()=>{let t=()=>mr.preRender(r,!1,!0),n=e.map(e=>e.on(`change`,t));return()=>{n.forEach(e=>e()),hr(r)}}),n}function qf(e){Ea.current=[],e();let t=Kf(Ea.current,e);return Ea.current=void 0,t}function Jf(e,t,n,r){if(typeof e==`function`)return qf(e);if(n!==void 0&&!Array.isArray(n)&&typeof t!=`function`)return Xf(e,t,n,r);let i=typeof t==`function`?t:lc(t,n,r),a=Array.isArray(e)?Yf(e,i):Yf([e],([e])=>i(e)),o=Array.isArray(e)?void 0:e.accelerate;if(o&&!o.isTransformed&&typeof t!=`function`&&Array.isArray(n)&&r?.clamp!==!1){let e=r?.ease;a.accelerate={...o,times:[0,...t,1],keyframes:[n[0],...n,n[n.length-1]],isTransformed:!0,...e?{ease:Array.isArray(e)?[e[0],...e]:e}:{}}}return a}function Yf(e,t){let n=it(()=>[]);return Kf(e,()=>{n.length=0;let r=e.length;for(let t=0;t<r;t++)n[t]=e[t].get();return t(n)})}function Xf(e,t,n,r){let i=it(()=>Object.keys(n)),a=it(()=>({}));for(let o of i)a[o]=Jf(e,t,n[o],r);return a}function Zf(){!wc.current&&Ec();let[e]=(0,p.useState)(Cc.current);return e}function Qf(e){return typeof e==`object`&&!Array.isArray(e)}function $f(e,t,n,r){return e==null?[]:typeof e==`string`&&Qf(t)?Oo(e,n,r):e instanceof NodeList?Array.from(e):Array.isArray(e)?e.filter(e=>e!=null):[e]}function ep(e,t,n){return e*(t+1)+n*t}function tp(e,t,n,r){return typeof t==`number`?t:t.startsWith(`-`)||t.startsWith(`+`)?Math.max(0,e+parseFloat(t)):t===`<`?n:t.startsWith(`<`)?Math.max(0,n+parseFloat(t.slice(1))):r.get(t)??e}function np(e,t,n){for(let r=0;r<e.length;r++){let i=e[r];i.at>t&&i.at<n&&(ct(e,i),r--)}}function rp(e,t,n,r,i,a){np(e,i,a);for(let o=0;o<t.length;o++)e.push({value:t[o],at:qn(i,a,r[o]),easing:Vt(n,o)})}function ip(e,t,n=0){let r=t+1+t*n;for(let t=0;t<e.length;t++)e[t]=e[t]/r}function ap(e,t){return e.at===t.at?e.value===null?1:t.value===null?-1:0:e.at-t.at}var op=`easeInOut`,sp=20;function cp(e,{defaultTransition:t={},...n}={},r,i){let a=t.duration||.3,o=new Map,s=new Map,c={},l=new Map,u=0,d=0,f=0;for(let n=0;n<e.length;n++){let o=e[n];if(typeof o==`string`){l.set(o,d);continue}if(!Array.isArray(o)){l.set(o.name,tp(d,o.at,u,l));continue}let[p,m,h={}]=o;h.at!==void 0&&(d=tp(d,h.at,u,l));let g=0,_=(e,n,r,o=0,s=0)=>{let c=dp(e),{delay:l=0,times:u=Rr(c),type:p=t.type||`keyframes`,repeat:m,repeatType:h,repeatDelay:_=0,...v}=n,{ease:y=t.ease||`easeOut`,duration:b}=n,x=typeof l==`function`?l(o,s):l,S=c.length,C=ea(p)?p:i?.[p||`keyframes`];if(S<=2&&C){let e=100;if(S===2&&mp(c)){let t=c[1]-c[0];e=Math.abs(t)}let n={...t,...v};b!==void 0&&(n.duration=yt(b));let r=xr(n,e,C);y=r.ease,b=r.duration}b??=a;let w=d+x;u.length===1&&u[0]===0&&(u[1]=1);let T=u.length-c.length;if(T>0&&Lr(u,T),c.length===1&&c.unshift(null),m&&`${m}${sp}`,m&&m<sp){let e=b>0?_/b:0;b=ep(b,m,_);let t=[...c],n=[...u];y=Array.isArray(y)?[...y]:[y];let r=[...y],i=h===`reverse`||h===`mirror`,a=t,o=r;i&&(a=[...t].reverse(),h===`reverse`&&(o=[...r].reverse().map(e=>typeof e==`function`?kt(e):e)));for(let s=0;s<m;s++){let l=i&&s%2==0,d=l?a:t,f=l?o:r,p=(s+1)*(1+e);e>0&&(c.push(c[c.length-1]),u.push(p),y.push(`linear`)),c.push(...d);for(let e=0;e<d.length;e++)u.push(n[e]+p),y.push(e===0?`linear`:Vt(f,e-1))}ip(u,m,e)}let E=w+b;rp(r,c,y,u,w,E),g=Math.max(x+b,g),f=Math.max(E,f)};if(Za(p)){let e=lp(p,s);_(m,h,up(`default`,e))}else{let e=$f(p,m,r,c),t=e.length;for(let n=0;n<t;n++){m=m,h=h;let r=e[n],i=lp(r,s);for(let e in m)_(m[e],fp(h,e),up(e,i),n,t)}}u=d,d+=g}return s.forEach((e,r)=>{for(let i in e){let a=e[i];a.sort(ap);let s=[],c=[],l=[];for(let e=0;e<a.length;e++){let{at:t,value:n,easing:r}=a[e];s.push(n),c.push(_t(0,f,t)),l.push(r||`easeOut`)}c[0]!==0&&(c.unshift(0),s.unshift(s[0]),l.unshift(op)),c[c.length-1]!==1&&(c.push(1),s.push(null)),o.has(r)||o.set(r,{keyframes:{},transition:{}});let u=o.get(r);u.keyframes[i]=s;let{type:d,...p}=t;u.transition[i]={...p,duration:f,ease:l,times:c,...n}}}),o}function lp(e,t){return!t.has(e)&&t.set(e,{}),t.get(e)}function up(e,t){return t[e]||(t[e]=[]),t[e]}function dp(e){return Array.isArray(e)?e:[e]}function fp(e,t){return e&&e[t]?{...e,...e[t]}:{...e}}var pp=e=>typeof e==`number`,mp=e=>e.every(pp);function hp(e,t){return Za(e)||typeof e==`number`||typeof e==`string`&&!Qf(t)}function gp(e,t,n,r){let i=[];if(hp(e,t))i.push(Ll(e,Qf(t)&&t.default||t,n&&(n.default||n)));else{if(e==null)return i;let a=$f(e,t,r),o=a.length;for(let e=0;e<o;e++){let r=a[e],s={...n};`delay`in s&&typeof s.delay==`function`&&(s.delay=s.delay(e,o)),r instanceof Element?i.push(...ws(r,t,s,hc.get(r))):i.push(...Co(xo(r)??Ts,r,t,s))}}return i}function _p(e,t,n){let r=[];return cp(e.map(e=>{if(Array.isArray(e)&&typeof e[0]==`function`){let t=e[0],n=Oa(0);return n.on(`change`,t),e.length===1?[n,[0,1]]:e.length===2?[n,[0,1],e[1]]:[n,e[1],e[2]]}return e}),t,n,{spring:Nr}).forEach(({keyframes:e,transition:t},n)=>{r.push(...gp(n,e,t))}),r}function vp(e){return Array.isArray(e)&&e.some(Array.isArray)}function yp(e={}){let{scope:t,reduceMotion:n,skipAnimations:r}=e;function i(e,i,a){let o=[],s,c={};if(n!==void 0&&(c.reduceMotion=n),r!==void 0&&(c.skipAnimations=r),vp(e)){let{onComplete:n,...r}=i||{};typeof n==`function`&&(s=n),o=_p(e,{...c,...r},t)}else{let{onComplete:n,...r}=a||{};typeof n==`function`&&(s=n),o=gp(e,i,{...c,...r},t)}let l=new Sa(o);return s&&l.finished.then(s),t&&(t.animations.push(l),l.finished.then(()=>{ct(t.animations,l)})),l}return i}var bp=Object.assign(yp(),{addEffect:yo,removeEffect:bo}),xp={some:0,all:1};function Sp(e,t,{root:n,margin:r,amount:i=`some`}={}){let a=Oo(e),o=new WeakMap,s=new IntersectionObserver(e=>{e.forEach(e=>{let n=o.get(e.target);if(e.isIntersecting!==!!n){if(e.isIntersecting){let n=t(e.target,e);typeof n==`function`?o.set(e.target,n):s.unobserve(e.target)}else typeof n==`function`&&(n(e),o.delete(e.target))}})},{root:n,rootMargin:r,threshold:typeof i==`number`?i:xp[i]});return a.forEach(e=>s.observe(e)),()=>s.disconnect()}function Cp(e,{root:t,margin:n,amount:r,once:i=!1,initial:a=!1}={}){let[o,s]=(0,p.useState)(a);return(0,p.useEffect)(()=>{if(!e.current||i&&o)return;let a=()=>(s(!0),i?void 0:()=>s(!1)),c={root:t&&t.current||void 0,margin:n,amount:r};return Sp(e.current,a,c)},[t,e,n,i,r]),o}var H=Uf,wp=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Tp=o(((e,t)=>{t.exports=wp()})),Ep=o((e=>{var t=u();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 r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(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=i,e.browser=function(e){return{$$typeof:o,_reason:e}},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 c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.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,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=d(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,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=d(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.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=d(n,t.crossOrigin);i.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=d(t.as,t.crossOrigin);i.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,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.0`})),Dp=o(((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=Ep()})),Op=o((e=>{var t=Tp(),n=u(),r=Dp();function i(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 a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function d(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}function p(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&p(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function m(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function h(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function g(e){var t=[null,null],n=m(e);return n===null||_(t,e,n.child,{foundSelf:!1}),t}function _(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&_(e,t,n.child,r))return!0;n=n.sibling}return!1}function v(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var y=null,b=null;function x(e,t,n){return e===n||e===t&&(y=e,!0)}function S(e,t,n){return e===n?(b=e,!1):e===t&&(b!==null&&(y=e),!0)}function C(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function w(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var T=Object.assign,E=Symbol.for(`react.element`),D=Symbol.for(`react.transitional.element`),O=Symbol.for(`react.portal`),k=Symbol.for(`react.fragment`),A=Symbol.for(`react.strict_mode`),j=Symbol.for(`react.profiler`),M=Symbol.for(`react.consumer`),N=Symbol.for(`react.context`),P=Symbol.for(`react.forward_ref`),F=Symbol.for(`react.suspense`),I=Symbol.for(`react.suspense_list`),L=Symbol.for(`react.memo`),R=Symbol.for(`react.lazy`),ee=Symbol.for(`react.activity`),te=Symbol.for(`react.legacy_hidden`),ne=Symbol.for(`react.memo_cache_sentinel`),re=Symbol.for(`react.view_transition`),ie=Symbol.for(`react.recoverable`),ae=Symbol.iterator;function oe(e){return typeof e!=`object`||!e?null:(e=ae&&e[ae]||e[`@@iterator`],typeof e==`function`?e:null)}var se=Symbol.for(`react.client.reference`);function ce(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case k:return`Fragment`;case j:return`Profiler`;case A:return`StrictMode`;case F:return`Suspense`;case I:return`SuspenseList`;case ee:return`Activity`;case re:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case O:return`Portal`;case N:return e.displayName||`Context`;case M:return(e._context.displayName||`Context`)+`.Consumer`;case P:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case L:return t=e.displayName||null,t===null?ce(e.type)||`Memo`:t;case R:t=e._payload,e=e._init;try{return ce(e(t))}catch{}}return null}var le=Array.isArray,z=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,de={pending:!1,data:null,method:null,action:null},fe=[],pe=-1;function me(e){return{current:e}}function he(e){0>pe||(e.current=fe[pe],fe[pe]=null,pe--)}function ge(e,t){pe++,fe[pe]=e.current,e.current=t}var _e=me(null),ve=me(null),ye=me(null),be=me(null);function xe(e,t){switch(ge(ye,t),ge(ve,e),ge(_e,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?bp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=bp(t),e=xp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}he(_e),ge(_e,e)}function Se(){he(_e),he(ve),he(ye)}function Ce(e){var t=e.memoizedState;t!==null&&(gh._currentValue=t.memoizedState,ge(be,e)),t=_e.current;var n=xp(t,e.type);t!==n&&(ge(ve,e),ge(_e,n))}function we(e){ve.current===e&&(he(_e),he(ve)),be.current===e&&(he(be),gh._currentValue=de)}var Te,Ee;function De(e){if(Te===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Te=t&&t[1]||``,Ee=-1<e.stack.indexOf(`
|
|
10
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
11
|
-
`+Te+e+Ee}var Oe=!1;function ke(e,t){if(!e||Oe)return``;Oe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
12
|
-
`),l=s.split(`
|
|
13
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
14
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Oe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?De(n):``}function Ae(e,t){switch(e.tag){case 26:case 27:case 5:return De(e.type);case 16:return De(`Lazy`);case 13:return e.child!==t&&t!==null?De(`Suspense Fallback`):De(`Suspense`);case 19:return De(`SuspenseList`);case 0:case 15:return ke(e.type,!1);case 11:return ke(e.type.render,!1);case 1:return ke(e.type,!0);case 31:return De(`Activity`);case 30:return De(`ViewTransition`);default:return``}}function je(e){try{var t=``,n=null;do t+=Ae(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
15
|
-
Error generating stack: `+e.message+`
|
|
16
|
-
`+e.stack}}var Me=Object.prototype.hasOwnProperty,Ne=t.unstable_scheduleCallback,Pe=t.unstable_cancelCallback,Fe=t.unstable_shouldYield,Ie=t.unstable_requestPaint,Le=t.unstable_now,Re=t.unstable_getCurrentPriorityLevel,ze=t.unstable_ImmediatePriority,Be=t.unstable_UserBlockingPriority,Ve=t.unstable_NormalPriority,He=t.unstable_LowPriority,Ue=t.unstable_IdlePriority,We=t.log,Ge=t.unstable_setDisableYieldValue,Ke=null,qe=null;function Je(e){if(typeof We==`function`&&Ge(e),qe&&typeof qe.setStrictMode==`function`)try{qe.setStrictMode(Ke,e)}catch{}}var Ye=Math.clz32?Math.clz32:Qe,Xe=Math.log,Ze=Math.LN2;function Qe(e){return e>>>=0,e===0?32:31-(Xe(e)/Ze|0)|0}var $e=256,et=262144,tt=4194304;function nt(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&-e;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function rt(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=nt(n))):i=nt(o):i=nt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=nt(n))):i=nt(o)):i=nt(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function it(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function at(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-Ye(n),i=1<<r;t|=e[r],n&=~i}return t}function ot(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function st(){var e=tt;return tt<<=1,!(tt&62914560)&&(tt=4194304),e}function ct(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ut(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Ye(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&dt(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function dt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Ye(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ft(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Ye(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function pt(e,t){var n=t&-t;return n=n&42?1:mt(n),(n&(e.suspendedLanes|t))===0?n:0}function mt(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function ht(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function gt(){var e=ue.p;return e===0?(e=window.event,e===void 0?32:Mh(e.type)):e}function _t(e,t){var n=ue.p;try{return ue.p=e,t()}finally{ue.p=n}}var vt=Math.random().toString(36).slice(2),yt=`__reactFiber$`+vt,bt=`__reactProps$`+vt,xt=`__reactContainer$`+vt,St=`__reactEvents$`+vt,Ct=`__reactListeners$`+vt,wt=`__reactHandles$`+vt,Tt=`__reactResources$`+vt,Et=`__reactMarker$`+vt,Dt=`__reactLoad$`+vt;function Ot(e){delete e[yt],delete e[bt],delete e[Ct],delete e[wt]}function kt(e){var t;if(t=e[yt])return t;for(var n=e.parentNode;n;){if(t=n[xt]||n[yt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=xm(e);e!==null;){if(n=e[yt])return n;e=xm(e)}return t}e=n,n=e.parentNode}return null}function At(e){if(e=e[yt]||e[xt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function jt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function Mt(e){var t=e[Tt];return t||=e[Tt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function Nt(e){e[Et]=!0}function Pt(e){e[Dt]=void 0}var Ft=new Set,It={};function Lt(e,t){Rt(e,t),Rt(e+`Capture`,t)}function Rt(e,t){for(It[e]=t,e=0;e<t.length;e++)Ft.add(t[e])}var zt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),Bt={},Vt={};function Ht(e){return Me.call(Vt,e)?!0:Me.call(Bt,e)?!1:zt.test(e)?Vt[e]=!0:(Bt[e]=!0,!1)}var Ut=!1;function Wt(){var e=Ut;return Ut=!1,e}function Gt(e,t,n){if(Ht(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,n)}}}function Kt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,n)}}function qt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,r)}}function Jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Yt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Xt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Zt(e){if(!e._valueTracker){var t=Yt(e)?`checked`:`value`;e._valueTracker=Xt(e,t,``+e[t])}}function Qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Yt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var $t=/[\n"\\]/g;function en(e){return e.replace($t,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function tn(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Jt(t)):e.value!==``+Jt(t)&&(e.value=``+Jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):rn(e,Jt(n)):o===`number`&&e.value==t?rn(e,Jt(e.value)):rn(e,Jt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Jt(s):e.removeAttribute(`name`)}function nn(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Zt(e);return}n=n==null?``:``+Jt(n),t=t==null?n:``+Jt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Zt(e)}function rn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function an(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Jt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function on(e,t,n){if(t!=null&&(t=``+Jt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Jt(n)}function sn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(le(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Zt(e)}function cn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ln=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function un(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||ln.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function dn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Ut=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(un(e,a,r),Ut=!0)}else for(var o in t)t.hasOwnProperty(o)&&un(e,o,t[o])}function fn(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var pn=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`maskType`,`mask-type`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),mn=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function hn(e){return mn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function gn(){}var _n=null;function vn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yn=null,B=null;function bn(e){var t=At(e);if(t&&(e=t.stateNode)){var n=e[bt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(tn(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+en(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[bt]||null;if(!a)throw Error(i(90));tn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Qt(r)}break a;case`textarea`:on(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&an(e,!!n.multiple,t,!1)}}}var xn=!1;function Sn(e,t,n){if(xn)return e(t,n);xn=!0;try{return e(t)}finally{if(xn=!1,(yn!==null||B!==null)&&(Kd(),yn&&(t=yn,e=B,B=yn=null,bn(t),e)))for(t=0;t<e.length;t++)bn(e[t])}}function Cn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[bt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var wn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Tn=!1;if(wn)try{var En={};Object.defineProperty(En,"passive",{get:function(){Tn=!0}}),window.addEventListener(`test`,En,En),window.removeEventListener(`test`,En,En)}catch{Tn=!1}var Dn=null,On=null,kn=null;function An(){if(kn)return kn;var e,t=On,n=t.length,r,i=`value`in Dn?Dn.value:Dn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return kn=i.slice(e,1<r?1-r:void 0)}function jn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Mn(){return!0}function Nn(){return!1}function Pn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?Mn:Nn,this.isPropagationStopped=Nn,this}return T(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=Mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Mn)},persist:function(){},isPersistent:Mn}),t}var Fn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},In=Pn(Fn),Ln=T({},Fn,{view:0,detail:0}),Rn=Pn(Ln),zn,Bn,Vn,Hn=T({},Ln,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:$n,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return`movementX`in e?e.movementX:(e!==Vn&&(Vn&&e.type===`mousemove`?(zn=e.screenX-Vn.screenX,Bn=e.screenY-Vn.screenY):Bn=zn=0,Vn=e),zn)},movementY:function(e){return`movementY`in e?e.movementY:Bn}}),Un=Pn(Hn),Wn=Pn(T({},Hn,{dataTransfer:0})),Gn=Pn(T({},Ln,{relatedTarget:0})),Kn=Pn(T({},Fn,{animationName:0,elapsedTime:0,pseudoElement:0})),qn=Pn(T({},Fn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Jn=Pn(T({},Fn,{data:0})),Yn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Xn={8:`Backspace`,9:`Tab`,12:`Clear`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,19:`Pause`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,45:`Insert`,46:`Delete`,112:`F1`,113:`F2`,114:`F3`,115:`F4`,116:`F5`,117:`F6`,118:`F7`,119:`F8`,120:`F9`,121:`F10`,122:`F11`,123:`F12`,144:`NumLock`,145:`ScrollLock`,224:`Meta`},Zn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Qn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Zn[e])?!!t[e]:!1}function $n(){return Qn}var er=Pn(T({},Ln,{key:function(e){if(e.key){var t=Yn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=jn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Xn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:$n,charCode:function(e){return e.type===`keypress`?jn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?jn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),tr=Pn(T({},Hn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),nr=Pn(T({},Fn,{submitter:0})),rr=Pn(T({},Ln,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:$n})),ir=Pn(T({},Fn,{propertyName:0,elapsedTime:0,pseudoElement:0})),ar=Pn(T({},Hn,{deltaX:function(e){return`deltaX`in e?e.deltaX:`wheelDeltaX`in e?-e.wheelDeltaX:0},deltaY:function(e){return`deltaY`in e?e.deltaY:`wheelDeltaY`in e?-e.wheelDeltaY:`wheelDelta`in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),or=Pn(T({},Fn,{newState:0,oldState:0,source:0})),sr=[9,13,27,32],cr=wn&&`CompositionEvent`in window,lr=null;wn&&`documentMode`in document&&(lr=document.documentMode);var ur=wn&&`TextEvent`in window&&!lr,dr=wn&&(!cr||lr&&8<lr&&11>=lr),fr=` `,pr=!1;function mr(e,t){switch(e){case`keyup`:return sr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function hr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var gr=!1;function _r(e,t){switch(e){case`compositionend`:return hr(t);case`keypress`:return t.which===32?(pr=!0,fr):null;case`textInput`:return e=t.data,e===fr&&pr?null:e;default:return null}}function vr(e,t){if(gr)return e===`compositionend`||!cr&&mr(e,t)?(e=An(),kn=On=Dn=null,gr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return dr&&t.locale!==`ko`?null:t.data;default:return null}}var yr={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function br(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!yr[e.type]:t===`textarea`}function xr(e,t,n,r){yn?B?B.push(r):B=[r]:yn=r,t=rp(t,`onChange`),0<t.length&&(n=new In(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Sr=null,Cr=null;function wr(e){Yf(e,0)}function Tr(e){if(Qt(jt(e)))return e}function Er(e,t){if(e===`change`)return t}var Dr=!1;if(wn){var Or;if(wn){var kr=`oninput`in document;if(!kr){var Ar=document.createElement(`div`);Ar.setAttribute(`oninput`,`return;`),kr=typeof Ar.oninput==`function`}Or=kr}else Or=!1;Dr=Or&&(!document.documentMode||9<document.documentMode)}function jr(){Sr&&(Sr.detachEvent(`onpropertychange`,Mr),Cr=Sr=null)}function Mr(e){if(e.propertyName===`value`&&Tr(Cr)){var t=[];xr(t,Cr,e,vn(e)),Sn(wr,t)}}function Nr(e,t,n){e===`focusin`?(jr(),Sr=t,Cr=n,Sr.attachEvent(`onpropertychange`,Mr)):e===`focusout`&&jr()}function Pr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Tr(Cr)}function Fr(e,t){if(e===`click`)return Tr(t)}function Ir(e,t){if(e===`input`||e===`change`)return Tr(t)}function Lr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Rr=typeof Object.is==`function`?Object.is:Lr;function zr(e,t){if(Rr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!Me.call(t,i)||!Rr(e[i],t[i]))return!1}return!0}function Br(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Vr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Hr(e,t){var n=Vr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Vr(n)}}function Ur(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ur(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Wr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Br(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=Br(e.document)}return t}function Gr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Kr=wn&&`documentMode`in document&&11>=document.documentMode,qr=null,Jr=null,Yr=null,Xr=!1;function Zr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Xr||qr==null||qr!==Br(r)||(r=qr,`selectionStart`in r&&Gr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Yr&&zr(Yr,r)||(Yr=r,r=rp(Jr,`onSelect`),0<r.length&&(t=new In(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=qr)))}function Qr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var $r={animationend:Qr(`Animation`,`AnimationEnd`),animationiteration:Qr(`Animation`,`AnimationIteration`),animationstart:Qr(`Animation`,`AnimationStart`),transitionrun:Qr(`Transition`,`TransitionRun`),transitionstart:Qr(`Transition`,`TransitionStart`),transitioncancel:Qr(`Transition`,`TransitionCancel`),transitionend:Qr(`Transition`,`TransitionEnd`)},ei={},ti={};wn&&(ti=document.createElement(`div`).style,`AnimationEvent`in window||(delete $r.animationend.animation,delete $r.animationiteration.animation,delete $r.animationstart.animation),`TransitionEvent`in window||delete $r.transitionend.transition);function ni(e){if(ei[e])return ei[e];if(!$r[e])return e;var t=$r[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ti)return ei[e]=t[n];return e}var ri=ni(`animationend`),ii=ni(`animationiteration`),ai=ni(`animationstart`),oi=ni(`transitionrun`),si=ni(`transitionstart`),ci=ni(`transitioncancel`),li=ni(`transitionend`),ui=new Map,di=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);di.push(`scrollEnd`);function fi(e,t){ui.set(e,t),Lt(t,[e])}var pi=0;function mi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=Dd.identifierPrefix;var n=pi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function hi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Fd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function gi(e,t){return e=hi(e),t=hi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var _i=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)},vi=[],yi=0,bi=0;function xi(){for(var e=yi,t=bi=yi=0;t<e;){var n=vi[t];vi[t++]=null;var r=vi[t];vi[t++]=null;var i=vi[t];vi[t++]=null;var a=vi[t];if(vi[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Ti(n,i,a)}}function Si(e,t,n,r){vi[yi++]=e,vi[yi++]=t,vi[yi++]=n,vi[yi++]=r,bi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ci(e,t,n,r){return Si(e,t,n,r),Ei(e)}function wi(e,t){return Si(e,null,null,t),Ei(e)}function Ti(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Ye(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ei(e){if(50<Id)throw Id=0,Ld=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Di={};function Oi(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ki(e,t,n,r){return new Oi(e,t,n,r)}function Ai(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ji(e,t){var n=e.alternate;return n===null?(n=ki(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&1206910976,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Mi(e,t){e.flags&=1206910978;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Ni(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ai(r)&&(s=1);else if(typeof r==`string`)s=nh(e,n,_e.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case ee:return e=ki(31,n,t,a),e.elementType=ee,e.lanes=o,e;case k:return Pi(n.children,a,o,t);case A:s=8,a|=24;break;case j:return e=ki(12,n,t,a|2),e.elementType=j,e.lanes=o,e;case F:return e=ki(13,n,t,a),e.elementType=F,e.lanes=o,e;case I:return e=ki(19,n,t,a),e.elementType=I,e.lanes=o,e;case te:case re:return e=a|32,e=ki(30,n,t,e),e.elementType=re,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case N:s=10;break a;case M:s=9;break a;case P:s=11;break a;case L:s=14;break a;case R:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ki(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Pi(e,t,n,r){return e=ki(7,e,r,t),e.lanes=n,e}function Fi(e,t,n){return e=ki(6,e,null,t),e.lanes=n,e}function Ii(e){var t=ki(18,null,null,0);return t.stateNode=e,t}function Li(e,t,n){return t=ki(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ri=new WeakMap;function zi(e,t){if(typeof e==`object`&&e){var n=Ri.get(e);return n===void 0?(t={value:e,source:t,stack:je(t)},Ri.set(e,t),t):n}return{value:e,source:t,stack:je(t)}}var Bi=[],Vi=0,Hi=null,Ui=0,Wi=[],Gi=0,Ki=null,qi=1,Ji=``;function Yi(e,t){Bi[Vi++]=Ui,Bi[Vi++]=Hi,Hi=e,Ui=t}function Xi(e,t,n){Wi[Gi++]=qi,Wi[Gi++]=Ji,Wi[Gi++]=Ki,Ki=e;var r=qi;e=Ji;var i=32-Ye(r)-1;r&=~(1<<i),n+=1;var a=32-Ye(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,qi=1<<32-Ye(t)+i|n<<i|r,Ji=a+e}else qi=1<<a|n<<i|r,Ji=e}function Zi(e){e.return!==null&&(Yi(e,1),Xi(e,1,0))}function Qi(e){for(;e===Hi;)Hi=Bi[--Vi],Bi[Vi]=null,Ui=Bi[--Vi],Bi[Vi]=null;for(;e===Ki;)Ki=Wi[--Gi],Wi[Gi]=null,Ji=Wi[--Gi],Wi[Gi]=null,qi=Wi[--Gi],Wi[Gi]=null}function $i(e,t){Wi[Gi++]=qi,Wi[Gi++]=Ji,Wi[Gi++]=Ki,qi=t.id,Ji=t.overflow,Ki=e}var ea=null,ta=null,na=!1,ra=null,ia=!1,aa=Error(i(519));function oa(e){throw fa(zi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),aa}function sa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[yt]=e,t[bt]=r,n){case`dialog`:Xf(`cancel`,t),Xf(`close`,t);break;case`iframe`:case`object`:case`embed`:Xf(`load`,t);break;case`video`:case`audio`:for(n=0;n<qf.length;n++)Xf(qf[n],t);break;case`source`:Xf(`error`,t);break;case`img`:case`image`:case`link`:Xf(`error`,t),Xf(`load`,t);break;case`details`:Xf(`toggle`,t);break;case`input`:Xf(`invalid`,t),nn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Xf(`invalid`,t);break;case`textarea`:Xf(`invalid`,t),sn(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||lp(t.textContent,n)?(r.popover!=null&&(Xf(`beforetoggle`,t),Xf(`toggle`,t)),r.onScroll!=null&&Xf(`scroll`,t),r.onScrollEnd!=null&&Xf(`scrollend`,t),r.onClick!=null&&(t.onclick=gn),t=!0):t=!1,t||oa(e,!0)}function ca(e){for(ea=e.return;ea;)switch(ea.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:ea=ea.return}}function la(e){if(e!==ea)return!1;if(!na)return ca(e),na=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Cp(e.type,e.memoizedProps)),n=!n),n&&ta&&oa(e),ca(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ta=bm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ta=bm(e)}else t===27?(t=ta,Np(e.type)?(e=ym,ym=null,ta=e):ta=t):ta=ea?vm(e.stateNode.nextSibling):null;return!0}function ua(){ta=ea=null,na=!1}function da(){var e=ra;return e!==null&&(yd===null?yd=e:yd.push.apply(yd,e),ra=null),e}function fa(e){ra===null?ra=[e]:ra.push(e)}var pa=me(null),ma=null,ha=null;function ga(e,t,n){ge(pa,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=pa.current,he(pa)}function va(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function ya(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),va(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),va(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),va(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ba(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;Rr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===be.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[gh]:e.push(gh))}a=a.return}return e!==null&&ya(t,e,n,r),t.flags|=262144,e!==null}function xa(e){for(e=e.firstContext;e!==null;){if(!Rr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){ma=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ca(e){return Ta(ma,e)}function wa(e,t){return ma===null&&Sa(e),Ta(e,t)}function Ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ha===null){if(e===null)throw Error(i(308));ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ha=ha.next=t;return n}var Ea=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},Da=t.unstable_scheduleCallback,Oa=t.unstable_NormalPriority,ka={$$typeof:N,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Aa(){return{controller:new Ea,data:new Map,refCount:0}}function ja(e){e.refCount--,e.refCount===0&&Da(Oa,function(){e.controller.abort()})}function Ma(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Na=null;function Pa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Fa=null,Ia=0,La=0,Ra=null;function za(e,t){if(Fa===null){var n=Fa=[];Ia=0,La=Hf(),Ra={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ia++,t.then(Ba,Ba),t}function Ba(){if(--Ia===0&&(Na=null,Fa!==null)){Ra!==null&&(Ra.status=`fulfilled`);var e=Fa;Fa=null,La=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Va(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var Ha=z.S;z.S=function(e,t){if(Sd=Le(),typeof t==`object`&&t&&typeof t.then==`function`&&za(e,t),Na!==null)for(var n=Of;n!==null;)Ma(n,Na),n=n.next;if(n=e.types,n!==null){for(var r=Of;r!==null;)Ma(r,n),r=r.next;if(La!==0){r=Na,r===null&&(r=Na=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ha!==null&&Ha(e,t)};var Ua=me(null);function Wa(){var e=Ua.current;return e===null?rd.pooledCache:e}function Ga(e,t){t===null?ge(Ua,Ua.current):ge(Ua,t.pool)}function Ka(){var e=Wa();return e===null?null:{parent:ka._currentValue,pool:e}}var qa=Error(i(460)),Ja=Error(i(474)),Ya=Error(i(542)),Xa={then:function(){}};function Za(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Qa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(gn,gn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(gn,gn);else{if(e=rd,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e}throw eo=t,qa}}function $a(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(eo=e,qa):e}}var eo=null;function to(){if(eo===null)throw Error(i(459));var e=eo;return eo=null,e}function no(e){if(e===qa||e===Ya)throw Error(i(483))}var ro=null,io=0;function ao(e){var t=io;return io+=1,ro===null&&(ro=[]),Qa(ro,e,t)}function oo(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function so(e,t){throw t.$$typeof===E?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function co(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ji(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Fi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===k?(e=d(e,t,n.props.children,r,n.key),oo(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===R&&$a(i)===t.type)?(t=a(t,n.props),oo(t,n),t.return=e,t):(t=Ni(n.type,n.key,n.props,null,e.mode,r),oo(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Li(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Fi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case D:return n=Ni(t.type,t.key,t.props,null,e.mode,n),oo(n,t),n.return=e,n;case O:return t=Li(t,e.mode,n),t.return=e,t;case R:return t=$a(t),f(e,t,n)}if(le(t)||oe(t))return t=Pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ao(t),n);if(t.$$typeof===N)return f(e,wa(e,t),n);so(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case D:return n.key===i?l(e,t,n,r):null;case O:return n.key===i?u(e,t,n,r):null;case R:return n=$a(n),p(e,t,n,r)}if(le(n)||oe(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ao(n),r);if(n.$$typeof===N)return p(e,t,wa(e,n),r);so(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case D:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case O:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case R:return r=$a(r),m(e,t,n,r,i)}if(le(r)||oe(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,ao(r),i);if(r.$$typeof===N)return m(e,t,n,wa(t,r),i);so(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),na&&Yi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return na&&Yi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&(_=g.alternate,_!==null&&d.delete(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),na&&Yi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),na&&Yi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return na&&Yi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),na&&Yi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===k&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case D:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===k){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),oo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===R&&$a(l)===r.type){n(e,r.sibling),c=a(r,o.props),oo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===k?(c=Pi(o.props.children,e.mode,c,o.key),oo(c,o),c.return=e,e=c):(c=Ni(o.type,o.key,o.props,null,e.mode,c),oo(c,o),c.return=e,e=c)}return s(e);case O:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Li(o,e.mode,c),c.return=e,e=c}return s(e);case R:return o=$a(o),_(e,r,o,c)}if(le(o))return h(e,r,o,c);if(oe(o)){if(l=oe(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,ao(o),c);if(o.$$typeof===N)return _(e,r,wa(e,o),c);so(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Fi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{io=0;var i=_(e,t,n,r);return ro=null,i}catch(t){if(t===qa||t===Ya)throw t;var a=ki(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var lo=co(!0),uo=co(!1),fo=!1;function po(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function mo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ho(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function go(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,nd&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ei(e),Ti(e,null,n),t}return Si(e,r,t,n),Ei(e)}function _o(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}function vo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var yo=!1;function bo(){if(yo){var e=Ra;if(e!==null)throw e}}function xo(e,t,n,r){yo=!1;var i=e.updateQueue;fo=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(ad&f)===f:(r&f)===f){f!==0&&f===La&&(yo=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=T({},d,f);break a;case 2:fo=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),pd|=o,e.lanes=o,e.memoizedState=d}}function So(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Co(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)So(n[e],t)}var wo=me(null),To=me(0);function Eo(e,t){e=dd,ge(To,e),ge(wo,t),dd=e|t.baseLanes}function Do(){ge(To,dd),ge(wo,wo.current)}function Oo(){dd=To.current,he(wo),he(To)}var ko=me(null),Ao=null;function jo(e){var t=e.alternate;ge(Io,Io.current&1),ge(ko,e),Ao===null&&(t===null||wo.current!==null||t.memoizedState!==null)&&(Ao=e)}function Mo(e){ge(Io,Io.current),ge(ko,e),Ao===null&&(Ao=e)}function No(e){e.tag===22?(ge(Io,Io.current),ge(ko,e),Ao===null&&(Ao=e)):Po()}function Po(){ge(Io,Io.current),ge(ko,ko.current)}function Fo(e){he(ko),Ao===e&&(Ao=null),he(Io)}var Io=me(0);function Lo(e,t){ge(ko,ko.current),ge(Io,t)}function Ro(e){he(Io),he(ko),Ao===e&&(Ao=null)}function zo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||hm(n)||gm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Bo=0,Vo=null,Ho=null,Uo=null,Wo=!1,Go=!1,Ko=!1,qo=0,Jo=0,Yo=null,Xo=0;function Zo(){throw Error(i(321))}function Qo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Rr(e[n],t[n]))return!1;return!0}function $o(e,t,n,r,i,a){return Bo=a,Vo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,z.H=e===null||e.memoizedState===null?gc:_c,Ko=!1,a=n(r,i),Ko=!1,Go&&(a=ts(t,n,r,i)),es(e),a}function es(e){z.H=hc;var t=Ho!==null&&Ho.next!==null;if(Bo=0,Uo=Ho=Vo=null,Wo=!1,Jo=0,Yo=null,t)throw Error(i(300));e===null||Pc||(e=e.dependencies,e!==null&&xa(e)&&(Pc=!0))}function ts(e,t,n,r){Vo=e;var a=0;do{if(Go&&(Yo=null),Jo=0,Go=!1,25<=a)throw Error(i(301));if(a+=1,Uo=Ho=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}z.H=vc,o=t(n,r)}while(Go);return o}function ns(){var e=z.H,t=e.useState()[0];return t=typeof t.then==`function`?ls(t):t,e=e.useState()[0],(Ho===null?null:Ho.memoizedState)!==e&&(Vo.flags|=1024),t}function rs(){var e=qo!==0;return qo=0,e}function is(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function as(e){if(Wo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Wo=!1}Bo=0,Uo=Ho=Vo=null,Go=!1,Jo=qo=0,Yo=null}function os(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Uo===null?Vo.memoizedState=Uo=e:Uo=Uo.next=e,Uo}function ss(){if(Ho===null){var e=Vo.alternate;e=e===null?null:e.memoizedState}else e=Ho.next;var t=Uo===null?Vo.memoizedState:Uo.next;if(t!==null)Uo=t,Ho=e;else{if(e===null)throw Vo.alternate===null?Error(i(467)):Error(i(310));Ho=e,e={memoizedState:Ho.memoizedState,baseState:Ho.baseState,baseQueue:Ho.baseQueue,queue:Ho.queue,next:null},Uo===null?Vo.memoizedState=Uo=e:Uo=Uo.next=e}return Uo}function cs(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ls(e){var t=Jo;return Jo+=1,Yo===null&&(Yo=[]),e=Qa(Yo,e,t),t=Vo,(Uo===null?t.memoizedState:Uo.next)===null&&(t=t.alternate,z.H=t===null||t.memoizedState===null?gc:_c),e}function us(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ls(e);if(e.$$typeof===ie)return;if(e.$$typeof===N)return Ca(e)}throw Error(i(438,String(e)))}function ds(e){var t=null,n=Vo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=Vo.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=cs(),Vo.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=ne;return t.index++,n}function fs(e,t){return typeof t==`function`?t(e):t}function ps(e){return ms(ss(),Ho,e)}function ms(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Bo&f)===f:(ad&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===La&&(d=!0);else if((Bo&p)===p){u=u.next,p===La&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,Vo.lanes|=p,pd|=p;f=u.action,Ko&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,Vo.lanes|=f,pd|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!Rr(o,e.memoizedState)&&(Pc=!0,d&&(n=Ra,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function hs(e){var t=ss(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Rr(o,t.memoizedState)||(Pc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function gs(e,t,n){var r=Vo,a=ss(),o=na;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!Rr((Ho||a).memoizedState,n);if(s&&(a.memoizedState=n,Pc=!0),a=a.queue,Vs(ys.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Uo!==null&&!!(Uo.memoizedState.tag&1),Is(e?9:8,{destroy:void 0},vs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,rd===null)throw Error(i(349));o||Bo&127||_s(r,t,n)}return n}function _s(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Vo.updateQueue,t===null?(t=cs(),Vo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function vs(e,t,n,r){t.value=n,t.getSnapshot=r,bs(t)&&xs(e)}function ys(e,t,n){return n(function(){bs(t)&&xs(e)})}function bs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Rr(e,n)}catch{return!0}}function xs(e){var t=wi(e,2);t!==null&&Vd(t,e,2)}function Ss(e){var t=os();if(typeof e==`function`){var n=e;if(e=n(),Ko){Je(!0);try{n()}finally{Je(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:e},t}function Cs(e,t,n,r){return e.baseState=n,ms(e,Ho,typeof r==`function`?r:fs)}function ws(e,t,n,r,a){if(fc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};z.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ts(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ts(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=z.T,o={};o.types=a===null?null:a.types,z.T=o;try{var s=n(i,r),c=z.S;c!==null&&c(o,s),Es(e,t,s)}catch(n){Os(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),z.T=a}}else try{a=n(i,r),Es(e,t,a)}catch(n){Os(e,t,n)}}function Es(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ds(e,t,n)},function(n){return Os(e,t,n)}):Ds(e,t,n)}function Ds(e,t,n){t.status=`fulfilled`,t.value=n,ks(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ts(e,n)))}function Os(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ks(t),t=t.next;while(t!==r)}e.action=null}function ks(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function As(e,t){return t}function js(e,t){if(na){var n=rd.formState;if(n!==null){a:{var r=Vo;if(na){if(ta){b:{for(var i=ta,a=ia;i.nodeType!==8;){if(!a){i=null;break b}if(i=vm(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ta=vm(i.nextSibling),r=i.data===`F!`;break a}}oa(r)}r=!1}r&&(t=n[0])}}return n=os(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:As,lastRenderedState:t},n.queue=r,n=lc.bind(null,Vo,r),r.dispatch=n,r=Ss(!1),a=dc.bind(null,Vo,!1,r.queue),r=os(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=ws.bind(null,Vo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Ms(e){return Ns(ss(),Ho,e)}function Ns(e,t,n){if(t=ms(e,t,As)[0],e=ps(fs)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ls(t)}catch(e){throw e===qa?Ya:e}else r=t;t=ss();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(Vo.flags|=2048,Is(9,{destroy:void 0},Ps.bind(null,i,n),null)),[r,a,e]}function Ps(e,t){e.action=t}function Fs(e){var t=ss(),n=Ho;if(n!==null)return Ns(t,n,e);ss(),t=t.memoizedState,n=ss();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Is(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=Vo.updateQueue,t===null&&(t=cs(),Vo.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Ls(){return ss().memoizedState}function Rs(e,t,n,r){var i=os();Vo.flags|=e,i.memoizedState=Is(1|t,{destroy:void 0},n,r===void 0?null:r)}function zs(e,t,n,r){var i=ss();r=r===void 0?null:r;var a=i.memoizedState.inst;Ho!==null&&r!==null&&Qo(r,Ho.memoizedState.deps)?i.memoizedState=Is(t,a,n,r):(Vo.flags|=e,i.memoizedState=Is(1|t,a,n,r))}function Bs(e,t){Rs(8390656,8,e,t)}function Vs(e,t){zs(2048,8,e,t)}function Hs(e){Vo.flags|=4;var t=Vo.updateQueue;if(t===null)t=cs(),Vo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Us(e){var t=ss().memoizedState;return Hs({ref:t,nextImpl:e}),function(){if(nd&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Ws(e,t){return zs(4,2,e,t)}function Gs(e,t){return zs(4,4,e,t)}function Ks(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function qs(e,t,n){n=n==null?null:n.concat([e]),zs(4,4,Ks.bind(null,t,e),n)}function Js(){}function Ys(e,t){var n=ss();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Qo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Xs(e,t){var n=ss();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Qo(t,r[1]))return r[0];if(r=e(),Ko){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r}function Zs(e,t,n){return n===void 0||Bo&1073741824&&!(ad&261930)?e.memoizedState=t:(e.memoizedState=n,e=zd(),Vo.lanes|=e,pd|=e,n)}function Qs(e,t,n,r){return Rr(n,t)?n:wo.current===null?!(Bo&106)||Bo&1073741824&&!(ad&261930)?(Pc=!0,e.memoizedState=n):(e=zd(),Vo.lanes|=e,pd|=e,t):(e=Zs(e,n,r),Rr(e,t)||(Pc=!0),e)}function $s(e,t,n,r,i){var a=ue.p;ue.p=a!==0&&8>a?a:8;var o=z.T,s={};s.types=o===null?null:o.types,z.T=s,dc(e,!1,t,n);try{var c=i(),l=z.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?uc(e,t,Va(c,r),Rd(e)):uc(e,t,r,Rd(e))}catch(n){uc(e,t,{then:function(){},status:`rejected`,reason:n},Rd())}finally{ue.p=a,o!==null&&s.types!==null&&(o.types=s.types),z.T=o}}function ec(){}function tc(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=nc(e).queue;$s(e,a,t,de,n===null?ec:function(){return rc(e),n(r)})}function nc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:de,baseState:de,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:de},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:fs,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function rc(e){var t=nc(e);t.next===null&&(t=e.alternate.memoizedState),uc(e,t.next.queue,{},Rd())}function ic(){return Ca(gh)}function ac(){return ss().memoizedState}function oc(){return ss().memoizedState}function sc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Rd();e=ho(n);var r=go(t,e,n);r!==null&&(Vd(r,t,n),_o(r,t,n)),t={cache:Aa()},e.payload=t;return}t=t.return}}function cc(e,t,n){var r=Rd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fc(e)?pc(t,n):(n=Ci(e,t,n,r),n!==null&&(Vd(n,e,r),mc(n,t,r)))}function lc(e,t,n){uc(e,t,n,Rd())}function uc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fc(e))pc(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Rr(s,o))return Si(e,t,i,0),rd===null&&xi(),!1}catch{}if(n=Ci(e,t,i,r),n!==null)return Vd(n,e,r),mc(n,t,r),!0}return!1}function dc(e,t,n,r){if(r={lane:2,revertLane:Hf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fc(e)){if(t)throw Error(i(479))}else t=Ci(e,n,r,2),t!==null&&Vd(t,e,2)}function fc(e){var t=e.alternate;return e===Vo||t!==null&&t===Vo}function pc(e,t){Go=Wo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function mc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ft(e,n)}}var hc={readContext:Ca,use:us,useCallback:Zo,useContext:Zo,useEffect:Zo,useImperativeHandle:Zo,useLayoutEffect:Zo,useInsertionEffect:Zo,useMemo:Zo,useReducer:Zo,useRef:Zo,useState:Zo,useDebugValue:Zo,useDeferredValue:Zo,useTransition:Zo,useSyncExternalStore:Zo,useId:Zo,useHostTransitionStatus:Zo,useFormState:Zo,useActionState:Zo,useOptimistic:Zo,useMemoCache:Zo,useCacheRefresh:Zo,useEffectEvent:Zo},gc={readContext:Ca,use:us,useCallback:function(e,t){return os().memoizedState=[e,t===void 0?null:t],e},useContext:Ca,useEffect:Bs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Rs(4194308,4,Ks.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Rs(4194308,4,e,t)},useInsertionEffect:function(e,t){Rs(4,2,e,t)},useMemo:function(e,t){var n=os();t=t===void 0?null:t;var r=e();if(Ko){Je(!0);try{e()}finally{Je(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=os();if(n!==void 0){var i=n(t);if(Ko){Je(!0);try{n(t)}finally{Je(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=cc.bind(null,Vo,e),[r.memoizedState,e]},useRef:function(e){var t=os();return e={current:e},t.memoizedState=e},useState:function(e){e=Ss(e);var t=e.queue,n=lc.bind(null,Vo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Js,useDeferredValue:function(e,t){return Zs(os(),e,t)},useTransition:function(){var e=Ss(!1);return e=$s.bind(null,Vo,e.queue,!0,!1),os().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Vo,a=os();if(na){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),rd===null)throw Error(i(349));ad&127||_s(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Bs(ys.bind(null,r,o,e),[e]),r.flags|=2048,Is(9,{destroy:void 0},vs.bind(null,r,o,n,t),null),n},useId:function(){var e=os(),t=rd.identifierPrefix;if(na){var n=Ji,r=qi;n=(r&~(1<<32-Ye(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=qo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Xo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:ic,useFormState:js,useActionState:js,useOptimistic:function(e){var t=os();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=dc.bind(null,Vo,!0,n),n.dispatch=t,[e,t]},useMemoCache:ds,useCacheRefresh:function(){return os().memoizedState=sc.bind(null,Vo)},useEffectEvent:function(e){var t=os(),n={impl:e};return t.memoizedState=n,function(){if(nd&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},_c={readContext:Ca,use:us,useCallback:Ys,useContext:Ca,useEffect:Vs,useImperativeHandle:qs,useInsertionEffect:Ws,useLayoutEffect:Gs,useMemo:Xs,useReducer:ps,useRef:Ls,useState:function(){return ps(fs)},useDebugValue:Js,useDeferredValue:function(e,t){return Qs(ss(),Ho.memoizedState,e,t)},useTransition:function(){var e=ps(fs)[0],t=ss().memoizedState;return[typeof e==`boolean`?e:ls(e),t]},useSyncExternalStore:gs,useId:ac,useHostTransitionStatus:ic,useFormState:Ms,useActionState:Ms,useOptimistic:function(e,t){return Cs(ss(),Ho,e,t)},useMemoCache:ds,useCacheRefresh:oc,useEffectEvent:Us},vc={readContext:Ca,use:us,useCallback:Ys,useContext:Ca,useEffect:Vs,useImperativeHandle:qs,useInsertionEffect:Ws,useLayoutEffect:Gs,useMemo:Xs,useReducer:hs,useRef:Ls,useState:function(){return hs(fs)},useDebugValue:Js,useDeferredValue:function(e,t){var n=ss();return Ho===null?Zs(n,e,t):Qs(n,Ho.memoizedState,e,t)},useTransition:function(){var e=hs(fs)[0],t=ss().memoizedState;return[typeof e==`boolean`?e:ls(e),t]},useSyncExternalStore:gs,useId:ac,useHostTransitionStatus:ic,useFormState:Fs,useActionState:Fs,useOptimistic:function(e,t){var n=ss();return Ho===null?(n.baseState=e,[e,n.queue.dispatch]):Cs(n,Ho,e,t)},useMemoCache:ds,useCacheRefresh:oc,useEffectEvent:Us};function yc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:T({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var bc={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Rd(),i=ho(r);i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Vd(t,e,r),_o(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Rd(),i=ho(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=go(e,i,r),t!==null&&(Vd(t,e,r),_o(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Rd(),r=ho(n);r.tag=2,t!=null&&(r.callback=t),t=go(e,r,n),t!==null&&(Vd(t,e,n),_o(t,e,n))}};function xc(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!zr(n,r)||!zr(i,a):!0}function Sc(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&bc.enqueueReplaceState(t,t.state,null)}function Cc(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=T({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function wc(e){_i(e)}function Tc(e){console.error(e)}function Ec(e){_i(e)}function Dc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Oc(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function kc(e,t,n){return n=ho(n),n.tag=3,n.payload={element:null},n.callback=function(){Dc(e,t)},n}function Ac(e){return e=ho(e),e.tag=3,e}function jc(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Oc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Oc(t,n,r),typeof i!=`function`&&(Td===null?Td=new Set([this]):Td.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function Mc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ba(t,n,a,!0),n=ko.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Ao===null?$d():n.alternate===null&&fd===0&&(fd=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Xa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Sf(e,r,a)),!1;case 22:return n.flags|=65536,r===Xa?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Sf(e,r,a)),!1}throw Error(i(435,n.tag))}return Sf(e,r,a),$d(),!1}if(na)return t=ko.current,t===null?(r!==aa&&(t=Error(i(423),{cause:r}),fa(zi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=zi(r,n),a=kc(e.stateNode,r,a),vo(e,a),fd!==4&&(fd=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==aa&&(e=Error(i(422),{cause:r}),fa(zi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=zi(o,n),vd===null?vd=[o]:vd.push(o),fd!==4&&(fd=2),t===null)return!0;r=zi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=kc(n.stateNode,r,e),vo(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(Td===null||!Td.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Ac(a),jc(a,e,n,r),vo(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Nc=Error(i(461)),Pc=!1;function Fc(e,t,n,r){t.child=e===null?uo(t,null,n,r):lo(t,e.child,n,r)}function Ic(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Sa(t),r=$o(e,t,n,o,a,i),s=rs(),e!==null&&!Pc?(is(e,t,i),ul(e,t,i)):(na&&s&&Zi(t),t.flags|=1,Fc(e,t,r,i),t.child)}function Lc(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Ai(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,Rc(e,t,a,r,i)):(e=Ni(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!dl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?zr:n,n(o,r)&&e.ref===t.ref)return ul(e,t,i)}return t.flags|=1,e=ji(a,r),e.ref=t.ref,e.return=t,t.child=e}function Rc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(zr(a,r)&&e.ref===t.ref){if(Pc=!1,t.pendingProps=r=a,dl(e,i))e.flags&131072&&(Pc=!0);else return t.lanes=e.lanes,ul(e,t,i)}}return Kc(e,t,n,r,i)}function zc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Vc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Ga(t,a===null?null:a.cachePool),a===null?Do():Eo(t,a),No(t);else return r=t.lanes=536870912,Vc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ga(t,null),Do(),Po()):(Ga(t,a.cachePool),Eo(t,a),Po(),t.memoizedState=null);return Fc(e,t,i,n),t.child}function Bc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Vc(e,t,n,r,i){var a=Wa();return a=a===null?null:{parent:ka._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ga(t,null),Do(),No(t),e!==null&&ba(e,t,r,!0),t.childLanes=i,null}function Hc(e,t){return t=tl({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Uc(e,t,n){return lo(t,e.child,null,n),e=Hc(t,t.pendingProps),e.flags|=2,Fo(t),t.memoizedState=null,e}function Wc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(na){if(r.mode===`hidden`)return e=Hc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Bc(null,e);if(Mo(t),(e=ta)?(e=mm(e,ia),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ki===null?null:{id:qi,overflow:Ji},retryLane:536870912,hydrationErrors:null},n=Ii(e),n.return=t,t.child=n,ea=t,ta=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return Hc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Mo(t),a){if(t.flags&256)t.flags&=-257,t=Uc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(Pc||ba(e,t,n,!1),a=(n&e.childLanes)!==0,Pc||a){if(wo.current===null){if(r=rd,r!==null&&(s=pt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,wi(e,s),Vd(r,e,s),Nc;$d()}t=Uc(e,t,n)}else e=o.treeContext,ta=vm(s.nextSibling),ea=t,na=!0,ra=null,ia=!1,e!==null&&$i(t,e),t=Hc(t,r),t.flags|=134221824;return t}return e=ji(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Gc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Kc(e,t,n,r,i){return Sa(t),n=$o(e,t,n,r,void 0,i),r=rs(),e!==null&&!Pc?(is(e,t,i),ul(e,t,i)):(na&&r&&Zi(t),t.flags|=1,Fc(e,t,n,i),t.child)}function qc(e,t,n,r,i,a){return Sa(t),t.updateQueue=null,n=ts(t,r,n,i),es(e),r=rs(),e!==null&&!Pc?(is(e,t,a),ul(e,t,a)):(na&&r&&Zi(t),t.flags|=1,Fc(e,t,n,a),t.child)}function Jc(e,t,n,r,i){if(Sa(t),t.stateNode===null){var a=Di,o=n.contextType;typeof o==`object`&&o&&(a=Ca(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=bc,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},po(t),o=n.contextType,a.context=typeof o==`object`&&o?Ca(o):Di,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(yc(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&bc.enqueueReplaceState(a,a.state,null),xo(t,r,a,i),bo(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Cc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Di,typeof u==`object`&&u&&(o=Ca(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Sc(t,a,r,o),fo=!1;var f=t.memoizedState;a.state=f,xo(t,r,a,i),bo(),l=t.memoizedState,s||f!==l||fo?(typeof d==`function`&&(yc(t,n,d,r),l=t.memoizedState),(c=fo||xc(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,mo(e,t),o=t.memoizedProps,u=Cc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Di,typeof l==`object`&&l&&(c=Ca(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Sc(t,a,r,c),fo=!1,f=t.memoizedState,a.state=f,xo(t,r,a,i),bo();var p=t.memoizedState;o!==d||f!==p||fo||e!==null&&e.dependencies!==null&&xa(e.dependencies)?(typeof s==`function`&&(yc(t,n,s,r),p=t.memoizedState),(u=fo||xc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&xa(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,Gc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=lo(t,e.child,null,i),t.child=lo(t,null,n,i)):Fc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=ul(e,t,i),e}function Yc(e,t,n,r){return ua(),t.flags|=256,Fc(e,t,n,r),t.child}var Xc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zc(e){return{baseLanes:e,cachePool:Ka()}}function Qc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=gd),e}function $c(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Io.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(na){if(i?jo(t):Po(),(e=ta)?(e=mm(e,ia),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ki===null?null:{id:qi,overflow:Ji},retryLane:536870912,hydrationErrors:null},n=Ii(e),n.return=t,t.child=n,ea=t,ta=null)):e=null,e===null)throw oa(t);return t.lanes=gm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Po(),i=t.mode,a=tl({mode:`hidden`,children:a},i),r=Pi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Zc(n),r.childLanes=Qc(e,o,n),t.memoizedState=Xc,Bc(null,r)):(jo(t),el(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return rl(e,t,a,o,r,c,s,n)}return i?(Po(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=ji(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Pi(i,a,n,null),i.flags|=2):i=ji(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Bc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Zc(n):(a=i.cachePool,a===null?a=Ka():(s=ka._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Qc(e,o,n),t.memoizedState=Xc,Bc(e.child,r)):(jo(t),n=e.child,e=n.sibling,n=ji(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function el(e,t){return t=tl({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function tl(e,t){return e=ki(22,e,null,t),e.lanes=0,e}function nl(e,t,n){return lo(t,e.child,null,n),e=el(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function rl(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(jo(t),t.flags&=-257,nl(e,t,c)):t.memoizedState===null?(Po(),o=a.fallback,s=t.mode,a=tl({mode:`visible`,children:a.children},s),o=Pi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,lo(t,e.child,null,c),a=t.child,a.memoizedState=Zc(c),a.childLanes=Qc(e,r,c),t.memoizedState=Xc,Bc(null,a)):(Po(),t.child=e.child,t.flags|=128,null);if(jo(t),gm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,fa({value:a,source:null,stack:null})),nl(e,t,c)}if(Pc||ba(e,t,c,!1),r=(c&e.childLanes)!==0,Pc||r){if(wo.current!==null)return nl(e,t,c);if(r=rd,r!==null&&(a=pt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,wi(e,a),Vd(r,e,a),Nc;return hm(o)||$d(),nl(e,t,c)}return hm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ta=vm(o.nextSibling),ea=t,na=!0,ra=null,ia=!1,e!==null&&$i(t,e),t=el(t,a.children),t.flags|=134221824,t)}function il(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),va(e.return,t,n)}function al(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&zo(n)===null&&(t=e),e=e.sibling}return t}function ol(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function sl(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function cl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Io.current;if(t.flags&128)return Lo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Lo(t,o),i===`backwards`&&e!==null?(sl(e),Fc(e,t,r,n),sl(e)):Fc(e,t,r,n),r=na?Ui:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&il(e,n,t);else if(e.tag===19)il(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`backwards`:n=al(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,sl(t)),ol(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&zo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ol(t,!0,n,null,a,r);break;case`together`:ol(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=al(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ol(t,!1,i,n,a,r)}return t.child}function ll(e,t,n){var r=t.pendingProps;return ga(t,t.type,r.value),Fc(e,t,r.children,n),t.child}function ul(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),pd|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ba(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ji(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ji(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function dl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&xa(e)))}function fl(e,t,n){switch(t.tag){case 3:xe(t,t.stateNode.containerInfo),ga(t,ka,e.memoizedState.cache),ua();break;case 27:case 5:Ce(t);break;case 4:xe(t,t.stateNode.containerInfo);break;case 10:ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Mo(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return jo(t),t.flags|=128,null;r=ba(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?$c(e,t,n):(jo(t),e=ul(e,t,n),e===null?null:e.sibling)}jo(t);break;case 19:if(t.flags&128)return cl(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ba(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return cl(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Lo(t,Io.current),r)break;return null;case 22:return t.lanes=0,zc(e,t,n,t.pendingProps);case 24:ga(t,ka,e.memoizedState.cache)}return ul(e,t,n)}function pl(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)Pc=!0;else{if(!dl(e,n)&&!(t.flags&128))return Pc=!1,fl(e,t,n);Pc=!!(e.flags&131072)}}else Pc=!1,na&&t.flags&1048576&&Xi(t,Ui,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=$a(t.elementType),t.type=e,typeof e==`function`)Ai(e)?(r=Cc(e,r),t.tag=1,t=Jc(null,t,e,r,n)):(t.tag=0,t=Kc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===P){t.tag=11,t=Ic(null,t,e,r,n);break a}if(a===L){t.tag=14,t=Lc(null,t,e,r,n);break a}if(a===N){t.tag=10,t.type=e,t=ll(null,t,n);break a}}throw t=ce(e)||e,Error(i(306,t,``))}}return t;case 0:return Kc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Cc(r,t.pendingProps),Jc(e,t,r,a,n);case 3:a:{if(xe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,mo(e,t),xo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ga(t,ka,r),r!==o.cache&&ya(t,[ka],n,!0),bo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Yc(e,t,r,n);break a}if(r!==a){a=zi(Error(i(424)),t),fa(a),t=Yc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ta=vm(e.firstChild),ea=t,na=!0,ra=null,ia=!0,n=uo(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ua(),r===a){t=ul(e,t,n);break a}Fc(e,t,r,n)}t=t.child}return t;case 26:return Gc(e,t),e===null?(n=Hm(t.type,null,t.pendingProps,null))?t.memoizedState=n:na||(t.stateNode=Sp(t.type,t.pendingProps,ye.current,t)):t.memoizedState=Hm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ce(t),e===null&&na&&(r=t.stateNode=wm(t.type,t.pendingProps,ye.current),ea=t,ia=!0,a=ta,Np(t.type)?(ym=a,ta=vm(r.firstChild)):ta=a),Fc(e,t,t.pendingProps.children,n),Gc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&na&&((a=r=ta)&&(r=fm(r,t.type,t.pendingProps,ia),r===null?a=!1:(t.stateNode=r,ea=t,ta=vm(r.firstChild),ia=!1,a=!0)),a||oa(t)),Ce(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Cp(a,o)?r=null:s!==null&&Cp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=$o(e,t,ns,null,null,n),gh._currentValue=a),Gc(e,t),Fc(e,t,r,n),t.child;case 6:return e===null&&na&&((e=n=ta)&&(n=pm(n,t.pendingProps,ia),n===null?e=!1:(t.stateNode=n,ea=t,ta=null,e=!0)),e||oa(t)),null;case 13:return $c(e,t,n);case 4:return xe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=lo(t,null,r,n):Fc(e,t,r,n),t.child;case 11:return Ic(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Gc(e,t),Fc(e,t,r,n),t.child;case 8:return Fc(e,t,t.pendingProps.children,n),t.child;case 12:return Fc(e,t,t.pendingProps.children,n),t.child;case 10:return ll(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Sa(t),a=Ca(a),r=r(a),t.flags|=1,Fc(e,t,r,n),t.child;case 14:return Lc(e,t,t.type,t.pendingProps,n);case 15:return Rc(e,t,t.type,t.pendingProps,n);case 19:return cl(e,t,n);case 31:return Wc(e,t,n);case 22:return zc(e,t,n,t.pendingProps);case 24:return Sa(t),r=Ca(ka),e===null?(a=Wa(),a===null&&(a=rd,o=Aa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},po(t),ga(t,ka,a)):((e.lanes&n)!==0&&(mo(e,t),xo(t,null,null,n),bo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ga(t,ka,r),r!==a.cache&&ya(t,[ka],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ga(t,ka,r))),Fc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:na&&Zi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Gc(e,t),Fc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function ml(e){e.flags|=4}function hl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?rh(t,r):rh(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Xd())e.flags|=8192;else throw eo=Xa,Ja}}else e.flags&=-16777217}function gl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!ih(t)){if(Xd())e.flags|=8192;else throw eo=Xa,Ja}}function _l(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:st(),e.lanes|=t,_d|=t)}function vl(e,t){if(!na)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function yl(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&1206910976,r|=i.flags&1206910976,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function bl(e,t,n){var r=t.pendingProps;switch(Qi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return yl(t),null;case 1:return yl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_a(ka),Se(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(la(t)?ml(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,da())),yl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(ml(t),o===null?(yl(t),hl(t,a,null,r,n)):(yl(t),gl(t,o))):o?o===e.memoizedState?(yl(t),t.flags&=-16777217):(ml(t),yl(t),gl(t,o)):(e=e.memoizedProps,e!==r&&ml(t),yl(t),hl(t,a,e,r,n)),null;case 27:if(we(t),n=ye.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ml(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return yl(t),t.subtreeFlags&=-33554433,null}e=_e.current,la(t)?sa(t,e):(e=wm(a,r,n),t.stateNode=e,ml(t))}return yl(t),t.subtreeFlags&=-33554433,null;case 5:if(we(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&ml(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return yl(t),t.subtreeFlags&=-33554433,null}if(o=_e.current,la(t))sa(t,o);else{var s=yp(ye.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[yt]=t,o[bt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(fp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&ml(t)}}return yl(t),t.subtreeFlags&=-33554433,hl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&ml(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ye.current,la(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ea,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[yt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||lp(e.nodeValue,n)),e||oa(t,!0)}else e=yp(e).createTextNode(r),e[yt]=t,t.stateNode=e}return yl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=la(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[yt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;yl(t),e=!1}else n=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Fo(t),t):(Fo(t),null);if(t.flags&128)throw Error(i(558))}return yl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=la(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[yt]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;yl(t),a=!1}else a=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Fo(t),t):(Fo(t),null)}return Fo(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),_l(t,t.updateQueue),yl(t),null);case 4:return Se(),e===null&&$f(t.stateNode.containerInfo),t.flags|=67108864,yl(t),null;case 10:return _a(t.type),yl(t),null;case 19:if(Ro(t),r=t.memoizedState,r===null)return yl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)vl(r,!1);else{if(fd!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=zo(e),o!==null){for(t.flags|=128,vl(r,!1),e=o.updateQueue,t.updateQueue=e,_l(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Mi(n,e),n=n.sibling;return Lo(t,Io.current&1|2),na&&Yi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Le()>Cd&&(t.flags|=128,a=!0,vl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=zo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,_l(t,e),vl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!na)return yl(t),null}else 2*Le()-r.renderingStartTime>Cd&&n!==536870912&&(t.flags|=128,a=!0,vl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Le(),e.sibling=null,o=Io.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||na?Lo(t,o):(n=o,ge(ko,t),ge(Io,n),Ao===null&&(Ao=t)),na&&Yi(t,r.treeForkCount),e}return yl(t),null;case 22:case 23:return Fo(t),Oo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(yl(t),t.subtreeFlags&6&&(t.flags|=8192)):yl(t),n=t.updateQueue,n!==null&&_l(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&he(Ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(ka),yl(t),null;case 25:return null;case 30:return t.flags|=33554432,yl(t),null}throw Error(i(156,t.tag))}function xl(e,t){switch(Qi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _a(ka),Se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return we(t),null;case 31:if(t.memoizedState!==null){if(Fo(t),t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Fo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ro(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return Se(),null;case 10:return _a(t.type),null;case 22:case 23:return Fo(t),Oo(),e!==null&&he(Ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _a(ka),null;case 25:return null;default:return null}}function Sl(e,t){switch(Qi(t),t.tag){case 3:_a(ka),Se();break;case 26:case 27:case 5:we(t);break;case 4:Se();break;case 31:t.memoizedState!==null&&Fo(t);break;case 13:Fo(t);break;case 19:Ro(t);break;case 10:_a(t.type);break;case 22:case 23:Fo(t),Oo(),e!==null&&he(Ua);break;case 24:_a(ka)}}function Cl(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){xf(t,t.return,e)}}function wl(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){xf(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){xf(t,t.return,e)}}function Tl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Co(t,n)}catch(t){xf(e,e.return,t)}}}function El(e,t,n){n.props=Cc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){xf(e,t,n)}}function Dl(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:var i=e.stateNode,a=mi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Wp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new W(e);p(e.child,!1,sm,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){xf(e,t,n)}}function Ol(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){xf(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){xf(e,t,n)}else n.current=null}}function kl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)lm(e.stateNode,t[n])}function Al(e){for(var t=e.return;t!==null&&(Nl(t)&&lm(e.stateNode,t.stateNode),!Ml(t));)t=t.return}function jl(e){for(var t=e.return;t!==null&&(Nl(t)&&um(e.stateNode,t.stateNode),!Ml(t));)t=t.return}function Ml(e){return e.tag===5||e.tag===3||e.tag===27}function Nl(e){return e&&e.tag===7&&e.stateNode!==null}function Pl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){xf(e,e.return,t)}}function Fl(e,t,n){try{var r=e.stateNode;mp(r,e.type,n,t),r[bt]=t}catch(t){xf(e,e.return,t)}}function Il(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Np(e.type)||e.tag===4}function Ll(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Il(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Np(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Rl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gn)),kl(e,r),Ut=!0;else if(i!==4&&(i===27&&(kl(e,r),r=null,Np(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Rl(e,t,n,r),e=e.sibling;e!==null;)Rl(e,t,n,r),e=e.sibling}function zl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),kl(e,r),Ut=!0;else if(i!==4&&(i===27&&(kl(e,r),r=null,Np(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(zl(e,t,n,r),e=e.sibling;e!==null;)zl(e,t,n,r),e=e.sibling}function Bl(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);fp(t,r,n),t[yt]=e,t[bt]=n}catch(t){xf(e,e.return,t)}}var Vl=!1,Hl=null;function Ul(e){(e.tag===30||e.subtreeFlags&33554432)&&(Vl=!0)}var Wl=null;function Gl(){var e=Wl;return Wl=null,e}var Kl=0;function ql(e,t,n,r,i){return Kl=0,Jl(e.child,t,n,r,i)}function Jl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=zp(o);r.push(s),s.view&&(a=!0)}else a||zp(o).view&&(a=!0);Vl=!0,Ip(o,Kl===0?t:t+`_`+Kl,n),Kl++}else(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&i||Jl(e.child,t,n,r,i)&&(a=!0));e=e.sibling}return a}function Yl(e,t){for(;e!==null;)e.tag===5?Lp(e.stateNode,e.memoizedProps):(e.tag!==22||e.memoizedState===null)&&(e.tag===30&&t||Yl(e.child,t)),e=e.sibling}function Xl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Xl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=gi(t.default,t.share),t!==`none`&&(ql(e,n,t,null,!1)||Yl(e.child,!1))}e=e.sibling}}function Zl(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=mi(r,n),a=gi(r.default,n.paired?r.share:r.enter);a===`none`?Xl(e):ql(e,i,a,null,!1)?(Xl(e),n.paired||t||Bd(e,r.onEnter)):Yl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Zl(e,t),e=e.sibling;else Xl(e)}function Ql(e){if(Hl!==null&&Hl.size!==0){var t=Hl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=gi(n.default,n.share);if(a!==`none`&&(ql(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Bd(e,n.onShare)):Yl(e.child,!1)),t.delete(r),t.size===0)break}}}Ql(e)}e=e.sibling}}}function $l(e){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode),r=Hl===null?void 0:Hl.get(n),i=gi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(ql(e,n,i,null,!1)?r===void 0?Bd(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Hl.delete(n),Bd(e,t.onShare)):Yl(e.child,!1)),Hl!==null&&Ql(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)$l(e),e=e.sibling;else Hl!==null&&Ql(e)}function eu(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode);t=gi(t.default,t.update),e.flags&=-5,t!==`none`&&ql(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&eu(e);e=e.sibling}}function tu(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Yl(e.child,!1))}tu(e)}e=e.sibling}}function nu(e){if(e.tag===30)e.stateNode.paired=null,Yl(e.child,!1),tu(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)nu(e),e=e.sibling;else tu(e)}function ru(e){for(e=e.child;e!==null;)e.tag===30?Yl(e.child,!1):e.subtreeFlags&33554432&&ru(e),e=e.sibling}function iu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Kl<a.length){var l=a[Kl],u=zp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Ip(c,Kl===0?n:n+`_`+Kl,i),s&&e.flags&4||(Wl===null&&(Wl=[]),Wl.push(c,Kl===0?r:r+`_`+Kl,t.memoizedProps)),Kl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:iu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function au(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=mi(n,r),a=gi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Bp)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Kl=0,i=iu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Bd(e,n.onUpdate))}else e.subtreeFlags&33554432&&au(e,t);e=e.sibling}}var ou=!1,su=!1,cu=!1,lu=!1,uu=typeof WeakSet==`function`?WeakSet:Set,du=null,fu=!1,pu=!1,mu=!1,hu=!1;function gu(e,t,n){if(e=e.containerInfo,_p=Th,e=Wr(e),Gr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(vp={focusedElem:e,selectionRange:r},Th=!1,n=(n&335544064)===n,du=t,t=n?9270:1024;du!==null;){if(e=du,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&$l(r[a]);if(e.alternate===null&&e.flags&2)n&&Ul(e),_u(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&$l(r),_u(n);continue}if(r!==null&&r.memoizedState!==null){n&&Ul(e),_u(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,du=r):(n&&eu(e),_u(n))}}Hl=null}function _u(e){for(;du!==null;){var t=du,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=Cc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){xf(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)dm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:dm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=mi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=gi(a.default,a.update),a!==`none`&&ql(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,du=r;break}du=t.return}}function vu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ru(e,n),r&4&&Cl(5,n);break;case 1:if(Ru(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){xf(n,n.return,e)}else{var i=Cc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){xf(n,n.return,e)}}}r&64&&Tl(n),r&512&&Dl(n,n.return);break;case 3:if(Ru(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Co(e,t)}catch(e){xf(n,n.return,e)}}break;case 27:t===null&&r&4&&Bl(n);case 26:case 5:Ru(e,n),t===null&&r&4&&Pl(n),r&512&&Dl(n,n.return);break;case 12:Ru(e,n);break;case 31:Ru(e,n),r&4&&Du(e,n);break;case 13:Ru(e,n),r&4&&Ou(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Tf.bind(null,n),_m(e,n))));break;case 22:if(r=n.memoizedState!==null||ou,!r){var a=t!==null&&t.memoizedState!==null||su;t=ou,i=su,ou=r,(su=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Bu(e,n,r)):Ru(e,n),ou=t,su=i}break;case 30:Ru(e,n),r&512&&Dl(n,n.return);break;case 7:r&512&&Dl(n,n.return);default:Ru(e,n)}}function yu(e,t){for(e=e.child;e!==null;)bu(e,t),e=e.sibling}function bu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){xf(e,e.return,t)}xu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Ut=!0}catch(t){xf(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Fp(s,!0):Fp(e.stateNode,!1)}catch(t){xf(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&yu(e,t);break;default:yu(e,t)}}function xu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:bu(n,r);break a;case 22:n.memoizedState===null&&xu(n,r);break a;default:xu(n,r)}}e=e.sibling}}function Su(e){var t=e.alternate;t!==null&&(e.alternate=null,Su(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ot(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Cu=null,wu=!1;function Tu(e,t,n){for(n=n.child;n!==null;)Eu(e,t,n),n=n.sibling}function Eu(e,t,n){if(qe&&typeof qe.onCommitFiberUnmount==`function`)try{qe.onCommitFiberUnmount(Ke,n)}catch{}switch(n.tag){case 26:su||Ol(n,t),Tu(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!su&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:su||Ol(n,t),jl(n);var r=Cu,i=wu;Np(n.type)&&(Cu=n.stateNode,wu=!1),Tu(e,t,n),Tm(n.stateNode,n.type,n.memoizedProps),Cu=r,wu=i;break;case 5:su||Ol(n,t),jl(n);case 6:if(n.tag===6&&jl(n),r=Cu,i=wu,Cu=null,Tu(e,t,n),Cu=r,wu=i,Cu!==null){if(wu)try{(Cu.nodeType===9?Cu.body:Cu.nodeName===`HTML`?Cu.ownerDocument.body:Cu).removeChild(n.stateNode),Ut=!0}catch(e){xf(n,t,e)}else try{Cu.removeChild(n.stateNode),Ut=!0}catch(e){xf(n,t,e)}}break;case 18:Cu!==null&&(wu?(e=Cu,Pp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Zh(e)):Pp(Cu,n.stateNode));break;case 4:r=Cu,i=wu,Cu=n.stateNode.containerInfo,wu=!0,Tu(e,t,n),Cu=r,wu=i;break;case 0:case 11:case 14:case 15:wl(2,n,t),su||wl(4,n,t),Tu(e,t,n);break;case 1:su||(Ol(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&El(n,t,r)),Tu(e,t,n);break;case 21:Tu(e,t,n);break;case 22:su=(r=su)||n.memoizedState!==null,Tu(e,t,n),su=r;break;case 30:Ol(n,t),Tu(e,t,n);break;case 7:su||Ol(n,t),Tu(e,t,n);break;default:Tu(e,t,n)}}function Du(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Zh(e)}catch(e){xf(t,t.return,e)}}}function Ou(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Zh(e)}catch(e){xf(t,t.return,e)}}function ku(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new uu),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new uu),t;default:throw Error(i(435,e.tag))}}function Au(e,t){var n=ku(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Ef.bind(null,e,t);t.then(r,r)}})}function ju(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Np(l.type)){Cu=l.stateNode,wu=!1;break a}break;case 5:Cu=l.stateNode,wu=!1;break a;case 3:case 4:Cu=l.stateNode.containerInfo,wu=!0;break a}l=l.return}if(Cu===null)throw Error(i(160));Eu(s,c,o),Cu=null,wu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Nu(t,e,n),t=t.sibling}var Mu=null;function Nu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}ju(t,e,n),Pu(e),a&4&&(wl(3,e,e.return),Cl(3,e),wl(5,e,e.return));break;case 1:ju(t,e,n),Pu(e),a&512&&(su||r===null||Ol(r,r.return)),a&64&&ou&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=Mu,ju(t,e,n),Pu(e),a&512&&(su||r===null||Ol(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(ou)e.stateNode=Sp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[Et]||r[yt]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),fp(r,t,n),r[yt]=e,Nt(r),t=r;break a;case`link`:if(o=eh(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),fp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=eh(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),fp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[yt]=e,Nt(r),t=r}e.stateNode=t}}else ou||th(o,e.type,e.stateNode)}else e.stateNode=Ym(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&Fl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||su||t.parentNode.removeChild(t)):a.count--,n===null?ou||th(o,e.type,e.stateNode):Ym(o,n,e.memoizedProps))}break;case 27:ju(t,e,n),Pu(e),a&512&&(su||r===null||Ol(r,r.return)),r!==null&&a&4&&Fl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=cu,cu=!1,ju(t,e,n),cu=o,Pu(e),a&512&&(su||r===null||Ol(r,r.return)),e.flags&32){t=e.stateNode;try{cn(t,``),Ut=!0}catch(t){xf(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,Fl(e,t,r===null?t:r.memoizedProps)),a&1024&&(lu=!0);break;case 6:if(ju(t,e,n),Pu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Ut=!0}catch(t){xf(e,e.return,t)}}break;case 3:if(Ut=!1,$m=null,o=Mu,Mu=km(t.containerInfo),ju(t,e,n),Mu=o,Pu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Zh(t.containerInfo)}catch(t){xf(e,e.return,t)}lu&&(lu=!1,Fu(e)),Ut=!1;break;case 4:a=cu,cu=ou,r=Wt(),o=Mu,Mu=km(e.stateNode.containerInfo),ju(t,e,n),Pu(e),Mu=o,Ut&&pu&&(mu=!0),Ut=r,cu=a;break;case 12:ju(t,e,n),Pu(e);break;case 31:ju(t,e,n),Pu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Au(e,t)));break;case 13:ju(t,e,n),Pu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(xd=Le()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Au(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=ou,l=su,u=cu;ou=c||o,cu=u||o,su=l||s,ju(t,e,n),su=l,cu=u,ou=c,Pu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||ou||su||(t=s||su,n=ou,r=su,ou=o||ou,su=t,zu(e,2),ou=n,su=r),!o&&cu||yu(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Au(e,n))));break;case 19:ju(t,e,n),Pu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Au(e,t)));break;case 30:a&512&&(su||r===null||Ol(r,r.return)),a=Wt(),o=pu,s=(n&335544064)===n,c=e.memoizedProps,pu=s&&gi(c.default,c.update)!==`none`,ju(t,e,n),Pu(e),s&&r!==null&&Ut&&(e.flags|=4),pu=o,Ut=a;break;case 21:break;case 7:a&512&&(su||r===null||Ol(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:ju(t,e,n),Pu(e)}}function Pu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Il(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(Nl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Ml(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;zl(e,Ll(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(cn(l,``),n.flags&=-33),zl(e,Ll(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Rl(e,Ll(e),u,s);break;default:throw Error(i(161))}}catch(t){xf(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Fu(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Fu(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,Th=!0,t.reset(),Th=!1),e=e.sibling}}function Iu(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)Lu(t,e),t=t.sibling;else au(t,!1)}function Lu(e,t){var n=e.alternate;if(n===null)Zl(e,!1);else switch(e.tag){case 3:if(hu=fu=!1,Gl(),Iu(t,e),!fu&&!mu){if(e=Wl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Lp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),hu=!0}Wl=null;break;case 5:Iu(t,e);break;case 4:r=fu,fu=!1,Iu(t,e),fu&&(mu=!0),fu=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Iu(t,e):Zl(e,!1));break;case 30:r=fu,i=Gl(),fu=!1,Iu(t,e),fu&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=mi(a,o),o=mi(n.memoizedProps,o);var s=gi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Kl=0,t=iu(e,n,t,o,s,a,!0),Kl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Bd(e,e.memoizedProps.onUpdate),Wl=i):i!==null&&(i.push.apply(i,Wl),Wl=i),fu=e.flags&32?!0:r;break;default:Iu(t,e)}}function Ru(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)vu(e,t.alternate,t),t=t.sibling}function zu(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:wl(4,n,n.return),zu(n,r);break;case 1:Ol(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&El(n,n.return,i),zu(n,r);break;case 27:r&2&&Tm(n.stateNode,n.type,n.memoizedProps);case 5:Ol(n,n.return),n.tag!==5&&n.tag!==27||jl(n),zu(n,r);break;case 6:jl(n);break;case 26:Ol(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||su||i.parentNode.removeChild(i),zu(n,r);break;case 22:n.memoizedState===null&&zu(n,r);break;case 30:Ol(n,n.return),zu(n,r);break;case 7:Ol(n,n.return);default:zu(n,r)}e=e.sibling}}function Bu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Bu(i,a,n),Cl(4,a);break;case 1:if(Bu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){xf(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)So(l[i],c)}catch(e){xf(r,r.return,e)}}s&&o&64&&Tl(a),Dl(a,a.return);break;case 27:n&2&&Bl(a);case 5:a.tag!==5&&a.tag!==27||Al(a),Bu(i,a,n),s&&r===null&&o&4&&Pl(a),Dl(a,a.return);break;case 6:Al(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||ou||th(km(c.ownerDocument),a.type,c),Bu(i,a,n),s&&r===null&&o&4&&Pl(a),Dl(a,a.return);break;case 12:Bu(i,a,n);break;case 31:Bu(i,a,n),s&&o&4&&Du(i,a);break;case 13:Bu(i,a,n),s&&o&4&&Ou(i,a);break;case 22:a.memoizedState===null&&Bu(i,a,n),Dl(a,a.return);break;case 30:Bu(i,a,n),Dl(a,a.return);break;case 7:Dl(a,a.return);default:Bu(i,a,n)}t=t.sibling}}function Vu(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ja(n))}function Hu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ja(e))}function Uu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)V(e,t,n,r),t=t.sibling;else i&&ru(t)}function V(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&nu(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Uu(e,t,n,r),a&2048&&Cl(9,t);break;case 1:Uu(e,t,n,r);break;case 3:Uu(e,t,n,r),i&&hu&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&ja(a)));break;case 12:if(a&2048){Uu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){xf(t,t.return,e)}}else Uu(e,t,n,r);break;case 31:Uu(e,t,n,r);break;case 13:Uu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&nu(t),o._visibility&2?Uu(e,t,n,r):(o._visibility|=2,Wu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&nu(s),o._visibility&2?Uu(e,t,n,r):Gu(e,t)),a&2048&&Vu(s,t);break;case 24:Uu(e,t,n,r),a&2048&&Hu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Yl(a.child,!0),Yl(t.child,!0))),Uu(e,t,n,r);break;default:Uu(e,t,n,r)}}function Wu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Wu(a,o,s,c,i),Cl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Wu(a,o,s,c,i)):u._visibility&2?Wu(a,o,s,c,i):Gu(a,o),i&&l&2048&&Vu(o.alternate,o);break;case 24:Wu(a,o,s,c,i),i&&l&2048&&Hu(o.alternate,o);break;default:Wu(a,o,s,c,i)}t=t.sibling}}function Gu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Gu(n,r),i&2048&&Vu(r.alternate,r);break;case 24:Gu(n,r),i&2048&&Hu(r.alternate,r);break;default:Gu(n,r)}t=t.sibling}}var Ku=8192;function qu(e,t,n){if(e.subtreeFlags&Ku)for(e=e.child;e!==null;)Ju(e,t,n),e=e.sibling}function Ju(e,t,n){switch(e.tag){case 26:qu(e,t,n),e.flags&Ku&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&oh(n,e)):sh(n,Mu,e.memoizedState,e.memoizedProps));break;case 5:qu(e,t,n),e.flags&Ku&&(e=e.stateNode,(t&335544128)===t&&oh(n,e));break;case 3:case 4:var r=Mu;Mu=km(e.stateNode.containerInfo),qu(e,t,n),Mu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ku,Ku=16777216,qu(e,t,n),Ku=r):qu(e,t,n));break;case 30:if((e.flags&Ku)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Hl===null&&(Hl=new Map),Hl.set(r,i)}qu(e,t,n);break;default:qu(e,t,n)}}function Yu(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Xu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];du=r,$u(r,e)}Yu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Zu(e),e=e.sibling}function Zu(e){switch(e.tag){case 0:case 11:case 15:Xu(e),e.flags&2048&&wl(9,e,e.return);break;case 3:Xu(e);break;case 12:Xu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Qu(e)):Xu(e);break;default:Xu(e)}}function Qu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];du=r,$u(r,e)}Yu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:wl(8,t,t.return),Qu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Qu(t));break;default:Qu(t)}e=e.sibling}}function $u(e,t){for(;du!==null;){var n=du;switch(n.tag){case 0:case 11:case 15:wl(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ja(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,du=r;else a:for(n=e;du!==null;){r=du;var i=r.sibling,a=r.return;if(Su(r),r===n){du=null;break a}if(i!==null){i.return=a,du=i;break a}du=a}}}var ed={getCacheForType:function(e){var t=Ca(ka),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ca(ka).controller.signal}},td=typeof WeakMap==`function`?WeakMap:Map,nd=0,rd=null,id=null,ad=0,od=0,sd=null,cd=!1,ld=!1,ud=!1,dd=0,fd=0,pd=0,md=0,hd=0,gd=0,_d=0,vd=null,yd=null,bd=!1,xd=0,Sd=0,Cd=1/0,wd=null,Td=null,Ed=0,Dd=null,Od=null,kd=0,Ad=0,jd=null,Md=null,Nd=null,Pd=null,Fd=null,Id=0,Ld=null;function Rd(){return nd&2&&ad!==0?ad&-ad:z.T===null?gt():Hf()}function zd(){if(gd===0){if(!(ad&536870912)||na){var e=et;et<<=1,!(et&3932160)&&(et=262144),gd=e}else gd=536870912}return e=ko.current,e!==null&&(e.flags|=32),gd}function Bd(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Wp(mi(e.memoizedProps,n))),Pd===null&&(Pd=[]),Pd.push(t.bind(null,r))}}function Vd(e,t,n){(e===rd&&(od===2||od===9)||e.cancelPendingCommit!==null)&&(Jd(e,0),Gd(e,ad,gd,!1)),lt(e,n),(!(nd&2)||e!==rd)&&(e===rd&&(!(nd&2)&&(md|=n),fd===4&&Gd(e,ad,gd,!1)),Pf(e))}function Hd(e,t,n){if(nd&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||it(e,t),a=r?nf(e,t):ef(e,t,!0),o=r;do{if(a===0){ld&&!r&&Gd(e,t,0,!1);break}if(n=e.current.alternate,o&&!Wd(n)){a=ef(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=vd;var l=c.current.memoizedState.isDehydrated;if(l&&(Jd(c,s).flags|=256),s=ef(c,s,!1),s!==2&&s!==6){if(ud&&!l){c.errorRecoveryDisabledLanes|=o,md|=o,a=4;break a}o=yd,yd=a,o!==null&&(yd===null?yd=o:yd.push.apply(yd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Jd(e,0),Gd(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Gd(r,t,gd,!cd);break a;case 2:yd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=xd+300-Le(),10<a)){if(Gd(r,t,gd,!cd),rt(r,0,!0)!==0)break a;kd=t,r.timeoutHandle=Ep(Ud.bind(null,r,n,yd,wd,bd,t,gd,md,_d,cd,o,`Throttled`,-0,0),a);break a}Ud(r,n,yd,wd,bd,t,gd,md,_d,cd,o,null,-0,0)}break}while(1);Pf(e)}function Ud(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;if(d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:gn},Hl=null,Ju(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=dh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?xd-Le():(a&4194048)===a?Sd-Le():0,m=lh(d,m),m!==null)){kd=a,e.cancelPendingCommit=m(uf.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Gd(e,a,o,!l);return}uf(e,t,a,n,r,i,o,s,c,l,u,d)}function Wd(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Rr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Gd(e,t,n,r){t=at(e,t),t&=~hd,t&=~md,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Ye(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&dt(e,n,t)}function Kd(){return nd&6?!0:(Ff(0,!1),!1)}function qd(){if(id!==null){if(od===0)var e=id.return;else e=id,ha=ma=null,as(e),ro=null,io=0,e=id;for(;e!==null;)Sl(e.alternate,e),e=e.return;id=null}}function Jd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,Op(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),kd=0,qd(),rd=e,id=n=ji(e.current,null),ad=t,od=0,sd=null,cd=!1,ld=it(e,t),ud=!1,_d=gd=hd=md=pd=fd=0,yd=vd=null,bd=!1,dd=at(e,t),xi(),n}function Yd(e,t){Vo=null,z.H=hc,t===qa||t===Ya?(t=to(),od=3):t===Ja?(t=to(),od=4):od=t===Nc?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,sd=t,id===null&&(fd=1,Dc(e,zi(t,e.current)))}function Xd(){var e=ko.current;return e===null?!0:(ad&4194048)===ad?Ao===null:(ad&62914560)===ad||ad&536870912?e===Ao:!1}function Zd(){var e=z.H;return z.H=hc,e===null?hc:e}function Qd(){var e=z.A;return z.A=ed,e}function $d(){fd=4,cd||(ad&4194048)!==ad&&ko.current!==null||(ld=!0),!(pd&134217727)&&!(md&134217727)||rd===null||Gd(rd,ad,gd,!1)}function ef(e,t,n){var r=nd;nd|=2;var i=Zd(),a=Qd();(rd!==e||ad!==t)&&(wd=null,Jd(e,t)),t=!1;var o=fd;a:do try{if(od!==0&&id!==null){var s=id,c=sd;switch(od){case 8:qd(),o=6;break a;case 3:case 2:case 9:case 6:ko.current===null&&(t=!0);var l=od;if(od=0,sd=null,sf(e,s,c,l),n&&ld){o=0;break a}break;default:l=od,od=0,sd=null,sf(e,s,c,l)}}tf(),o=fd;break}catch(t){Yd(e,t)}while(1);return t&&e.shellSuspendCounter++,ha=ma=null,nd=r,z.H=i,z.A=a,id===null&&(rd=null,ad=0,xi()),o}function tf(){for(;id!==null;)af(id)}function nf(e,t){var n=nd;nd|=2;var r=Zd(),a=Qd();rd!==e||ad!==t?(wd=null,Cd=Le()+500,Jd(e,t)):ld=it(e,t);a:do try{if(od!==0&&id!==null){t=id;var o=sd;b:switch(od){case 1:od=0,sd=null,sf(e,t,o,1);break;case 2:case 9:if(Za(o)){od=0,sd=null,of(t);break}t=function(){od!==2&&od!==9||rd!==e||(od=7),Pf(e)},o.then(t,t);break a;case 3:od=7;break a;case 4:od=5;break a;case 7:Za(o)?(od=0,sd=null,of(t)):(od=0,sd=null,sf(e,t,o,7));break;case 5:var s=null;switch(id.tag){case 26:s=id.memoizedState;case 5:case 27:var c=id;if(s?ih(s):c.stateNode.complete){od=0,sd=null;var l=c.sibling;if(l!==null)id=l;else{var u=c.return;u===null?id=null:(id=u,cf(u))}break b}}od=0,sd=null,sf(e,t,o,5);break;case 6:od=0,sd=null,sf(e,t,o,6);break;case 8:qd(),fd=6;break a;default:throw Error(i(462))}}rf();break}catch(t){Yd(e,t)}while(1);return ha=ma=null,z.H=r,z.A=a,nd=n,id===null?(rd=null,ad=0,xi(),fd):0}function rf(){for(;id!==null&&!Fe();)af(id)}function af(e){var t=pl(e.alternate,e,dd);e.memoizedProps=e.pendingProps,t===null?cf(e):id=t}function of(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=qc(n,t,t.pendingProps,t.type,void 0,ad);break;case 11:t=qc(n,t,t.pendingProps,t.type.render,t.ref,ad);break;case 5:as(t);var r=t;r===ea&&(na?(ca(r),r.tag===5&&r.stateNode!=null&&(ta=r.stateNode)):(ca(r),na=!0));default:Sl(n,t),t=id=Mi(t,dd),t=pl(n,t,dd)}e.memoizedProps=e.pendingProps,t===null?cf(e):id=t}function sf(e,t,n,r){ha=ma=null,as(t),ro=null,io=0;var i=t.return;try{if(Mc(e,i,t,n,ad)){fd=1,Dc(e,zi(n,e.current)),id=null;return}}catch(t){if(i!==null)throw id=i,t;fd=1,Dc(e,zi(n,e.current)),id=null;return}t.flags&32768?(na||r===1?e=!0:ld||ad&536870912?e=!1:(cd=e=!0,(r===2||r===9||r===3||r===6)&&(r=ko.current,r!==null&&r.tag===13&&(r.flags|=16384))),lf(t,e)):cf(t)}function cf(e){var t=e;do{if(t.flags&32768){lf(t,cd);return}e=t.return;var n=bl(t.alternate,t,dd);if(n!==null){id=n;return}if(t=t.sibling,t!==null){id=t;return}id=t=e}while(t!==null);fd===0&&(fd=5)}function lf(e,t){do{var n=xl(e.alternate,e);if(n!==null){n.flags&=32767,id=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){id=e;return}id=e=n}while(e!==null);fd=6,id=null}function uf(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do vf();while(Ed!==0);if(nd&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===rd&&(id=rd=null,ad=0),Od=t,Dd=e,kd=n,jd=a,Md=r,df(e,t,n,s,c,l,f)}}function df(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Ad=s,s|=bi,ut(e,n,s,r,i,a),Pd=null,(n&335544064)===n?(Fd=Pa(e),r=10262):(Fd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,Df(Ve,function(){return yf(),null})):(e.callbackNode=null,e.callbackPriority=0),Vl=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=z.T,z.T=null,i=ue.p,ue.p=2,a=nd,nd|=4;try{gu(e,t,n)}finally{nd=a,ue.p=i,z.T=r}}Ed=1,Vl?Nd=Up(o,e.containerInfo,Fd,mf,hf,pf,gf,yf,ff,null,null):(mf(),hf(),gf())}function ff(e){if(Ed!==0){var t=Dd.onRecoverableError;t(e,{componentStack:null})}}function pf(){Ed===3&&(Ed=0,Lu(Od,Dd),Ed=4)}function mf(){if(Ed===1){Ed=0;var e=Dd,t=Od,n=kd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=z.T,z.T=null;var i=ue.p;ue.p=2;var a=nd;nd|=4;try{pu=mu=!1,Nu(t,e,n),n=vp;var o=Wr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Ur(s.ownerDocument.documentElement,s)){if(c!==null&&Gr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=Hr(s,h),v=Hr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}Th=!!_p,vp=_p=null}finally{nd=a,ue.p=i,z.T=r}}e.current=t,Ed=2}}function hf(){if(Ed===2){Ed=0;var e=Dd,t=Od,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=z.T,z.T=null;var r=ue.p;ue.p=2;var i=nd;nd|=4;try{vu(e,t.alternate,t)}finally{nd=i,ue.p=r,z.T=n}}Ed=3}}function gf(){if(Ed===4||Ed===3){Ed=0;var e=Nd;Nd=null,Ie();var t=Dd,n=Od,r=kd,i=Md,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Ed=5:(Ed=0,Od=Dd=null,_f(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(Td=null),ht(r),n=n.stateNode,qe&&typeof qe.onCommitFiberRoot==`function`)try{qe.onCommitFiberRoot(Ke,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=z.T,a=ue.p,ue.p=2,z.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{z.T=n,ue.p=a}}if(i=Pd,o=Fd,Fd=null,i!==null&&(Pd=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);kd&3&&vf(),Pf(t),a=t.pendingLanes,r&261930&&a&42?t===Ld?Id++:(Id=0,Ld=t):(Id=0,Ld=null),Ff(0,!1)}}function _f(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ja(t)))}function vf(){return Nd!==null&&(Nd.skipTransition(),Nd=null),mf(),hf(),gf(),yf()}function yf(){if(Ed!==5)return!1;var e=Dd,t=Ad;Ad=0;var n=ht(kd),r=z.T,a=ue.p;try{ue.p=32>n?32:n,z.T=null,n=jd,jd=null;var o=Dd,s=kd;if(Ed=0,Od=Dd=null,kd=0,nd&6)throw Error(i(331));var c=nd;if(nd|=4,Zu(o.current),V(o,o.current,s,n),nd=c,Ff(0,!1),qe&&typeof qe.onPostCommitFiberRoot==`function`)try{qe.onPostCommitFiberRoot(Ke,o)}catch{}return!0}finally{ue.p=a,z.T=r,_f(e,t)}}function bf(e,t,n){t=zi(n,t),t=kc(e.stateNode,t,2),e=go(e,t,2),e!==null&&(lt(e,2),Pf(e))}function xf(e,t,n){if(e.tag===3)bf(e,e,n);else for(;t!==null;){if(t.tag===3){bf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Td===null||!Td.has(r))){e=zi(n,e),n=Ac(2),r=go(t,n,2),r!==null&&(jc(n,r,t,e),lt(r,2),Pf(r));break}}t=t.return}}function Sf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new td;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ud=!0,i.add(n),e=Cf.bind(null,e,t,n),t.then(e,e))}function Cf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,rd===e&&(ad&n)===n&&(fd===4||fd===3&&(ad&62914560)===ad&&300>Le()-xd?nd&2?hd|=n:Jd(e,0):hd|=n,_d===ad&&(_d=0)),Pf(e)}function wf(e,t){t===0&&(t=st()),e=wi(e,t),e!==null&&(lt(e,t),Pf(e))}function Tf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),wf(e,n)}function Ef(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),wf(e,n)}function Df(e,t){return Ne(e,t)}var Of=null,kf=null,Af=!1,jf=!1,Mf=!1,Nf=0;function Pf(e){e!==kf&&e.next===null&&(kf===null?Of=kf=e:kf=kf.next=e),jf=!0,Af||(Af=!0,Vf())}function Ff(e,t){if(!Mf&&jf){Mf=!0;do for(var n=!1,r=Of;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Ye(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Bf(r,a))}else a=ad,a=rt(r,r===rd?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||it(r,a)||(n=!0,Bf(r,a))}r=r.next}while(n);Mf=!1}}function If(){Lf()}function Lf(){jf=Af=!1;var e=0;Nf!==0&&wp()&&(e=Nf);for(var t=Le(),n=null,r=Of;r!==null;){var i=r.next,a=Rf(r,t);a===0?(r.next=null,n===null?Of=i:n.next=i,i===null&&(kf=n)):(n=r,(e!==0||a&3)&&(jf=!0)),r=i}Ed!==0&&Ed!==5||Ff(e,!1),Nf!==0&&(Nf=0)}function Rf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Ye(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=ot(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=rd,n=ad,n=rt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(od===2||od===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Pe(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||it(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Pe(r),ht(n)){case 2:case 8:n=Be;break;case 32:n=Ve;break;case 268435456:n=Ue;break;default:n=Ve}return r=zf.bind(null,e),n=Ne(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Pe(r),e.callbackPriority=2,e.callbackNode=null,2}function zf(e,t){if(Ed!==0&&Ed!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(vf()&&e.callbackNode!==n)return null;var r=ad;return r=rt(e,e===rd?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Hd(e,r,t),Rf(e,Le()),e.callbackNode!=null&&e.callbackNode===n?zf.bind(null,e):null)}function Bf(e,t){if(vf())return null;Hd(e,t,!0)}function Vf(){jp(function(){nd&6?Ne(ze,If):Lf()})}function Hf(){if(Nf===0){var e=La;e===0&&(e=$e,$e<<=1,!($e&261888)&&($e=256)),Nf=e}return Nf}function Uf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:hn(e)}function Wf(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Uf((i[bt]||null).action),o=r.submitter;o&&(t=(t=o[bt]||null)?Uf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new In(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Nf!==0){var e=new FormData(i,o);tc(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),tc(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var Gf=0;Gf<di.length;Gf++){var Kf=di[Gf];fi(Kf.toLowerCase(),`on`+(Kf[0].toUpperCase()+Kf.slice(1)))}fi(ri,`onAnimationEnd`),fi(ii,`onAnimationIteration`),fi(ai,`onAnimationStart`),fi(`dblclick`,`onDoubleClick`),fi(`focusin`,`onFocus`),fi(`focusout`,`onBlur`),fi(oi,`onTransitionRun`),fi(si,`onTransitionStart`),fi(ci,`onTransitionCancel`),fi(li,`onTransitionEnd`),Rt(`onMouseEnter`,[`mouseout`,`mouseover`]),Rt(`onMouseLeave`,[`mouseout`,`mouseover`]),Rt(`onPointerEnter`,[`pointerout`,`pointerover`]),Rt(`onPointerLeave`,[`pointerout`,`pointerover`]),Lt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Lt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Lt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Lt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var qf=`abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting`.split(` `),Jf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(qf));function Yf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){_i(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){_i(e)}i.currentTarget=null,a=c}}}}function Xf(e,t){var n=t[St];n===void 0&&(n=t[St]=new Set);var r=e+`__bubble`;n.has(r)||(ep(t,e,2,!1),n.add(r))}function Zf(e,t,n){var r=0;t&&(r|=4),ep(n,e,r,t)}var Qf=`_reactListening`+Math.random().toString(36).slice(2);function $f(e){if(!e[Qf]){e[Qf]=!0,Ft.forEach(function(t){t!==`selectionchange`&&(Jf.has(t)||Zf(t,!1,e),Zf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qf]||(t[Qf]=!0,Zf(`selectionchange`,!1,t))}}function ep(e,t,n,r){switch(Mh(t)){case 2:var i=Eh;break;case 8:i=Dh;break;default:i=Oh}n=i.bind(null,t,n,e),i=void 0,!Tn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function tp(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=kt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Sn(function(){var r=a,i=vn(n),s=[];a:{var c=ui.get(e);if(c!==void 0){var l=In,u=e;switch(e){case`keypress`:if(jn(n)===0)break a;case`keydown`:case`keyup`:l=er;break;case`focusin`:u=`focus`,l=Gn;break;case`focusout`:u=`blur`,l=Gn;break;case`beforeblur`:case`afterblur`:l=Gn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Un;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Wn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=rr;break;case ri:case ii:case ai:l=Kn;break;case li:l=ir;break;case`scroll`:case`scrollend`:l=Rn;break;case`wheel`:l=ar;break;case`copy`:case`cut`:case`paste`:l=qn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=tr;break;case`submit`:l=nr;break;case`toggle`:case`beforetoggle`:l=or}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=Cn(m,p),g!=null&&d.push(np(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==_n&&(u=n.relatedTarget||n.fromElement)&&(kt(u)||u[xt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?kt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Un,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=tr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:jt(c),h=l==null?u:jt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,kt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?w(c,l,ip):null,c!==null&&ap(s,u,c,d,!1),l!==null&&f!==null&&ap(s,f,l,d,!0)))}a:{if(c=r?jt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Er;else if(br(c)){if(Dr)_=Ir;else{_=Pr;var v=Nr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&fn(r.elementType)&&(_=Er):_=Fr;if(_&&=_(e,r)){xr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?jt(r):window,e){case`focusin`:(br(v)||v.contentEditable===`true`)&&(qr=v,Jr=r,Yr=null);break;case`focusout`:Yr=Jr=qr=null;break;case`mousedown`:Xr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Xr=!1,Zr(s,n,i);break;case`selectionchange`:if(Kr)break;case`keydown`:case`keyup`:Zr(s,n,i)}var y;if(cr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else gr?mr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(dr&&n.locale!==`ko`&&(gr||b!==`onCompositionStart`?b===`onCompositionEnd`&&gr&&(y=An()):(Dn=i,On=`value`in Dn?Dn.value:Dn.textContent,gr=!0)),v=rp(r,b),0<v.length&&(b=new Jn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=hr(n),y!==null&&(b.data=y)))),(y=ur?_r(e,n):vr(e,n))&&(b=rp(r,`onBeforeInput`),0<b.length&&(v=new Jn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Wf(s,e,r,n,i)}Yf(s,t)})}function np(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rp(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=Cn(e,n),i!=null&&r.unshift(np(e,i,a)),i=Cn(e,t),i!=null&&r.push(np(e,i,a))),e.tag===3)return r;e=e.return}return[]}function ip(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function ap(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=Cn(n,a),l!=null&&o.unshift(np(n,l,c))):i||(l=Cn(n,a),l!=null&&o.push(np(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var op=/\r\n?/g,sp=/\u0000|\uFFFD/g;function cp(e){return(typeof e==`string`?e:``+e).replace(op,`
|
|
17
|
-
`).replace(sp,``)}function lp(e,t){return t=cp(t),cp(e)===t}function up(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&cn(e,``+r);else return;break;case`className`:Kt(e,`class`,r);break;case`tabIndex`:Kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Kt(e,n,r);break;case`style`:dn(e,r,o);return;case`data`:if(t!==`object`){Kt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&up(e,t,`name`,a.name,a,null),up(e,t,`formEncType`,a.formEncType,a,null),up(e,t,`formMethod`,a.formMethod,a,null),up(e,t,`formTarget`,a.formTarget,a,null)):(up(e,t,`encType`,a.encType,a,null),up(e,t,`method`,a.method,a,null),up(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=gn);return;case`onScroll`:r!=null&&Xf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Xf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=hn(r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`credentialless`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Xf(`beforetoggle`,e),Xf(`toggle`,e),Gt(e,`popover`,r);break;case`xlinkActuate`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Gt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=pn.get(n)||n,Gt(e,n,r);else return}Ut=!0}function dp(e,t,n,r,a,o){switch(n){case`style`:dn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)cn(e,``+r);else return;break;case`onScroll`:r!=null&&Xf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Xf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=gn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!It.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[bt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Ut=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Gt(e,n,r)}return}Ut=!0}function fp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Xf(`error`,e),Xf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:up(e,t,o,s,n,null)}}a&&up(e,t,`srcSet`,n.srcSet,n,null),r&&up(e,t,`src`,n.src,n,null);return;case`input`:Xf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:up(e,t,r,d,n,null)}}nn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Xf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:up(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&an(e,!!r,n,!0):an(e,!!r,t,!1);return;case`textarea`:for(s in Xf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:up(e,t,s,c,n,null)}sn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:up(e,t,l,r,n,null)}return;case`dialog`:Xf(`beforetoggle`,e),Xf(`toggle`,e),Xf(`cancel`,e),Xf(`close`,e);break;case`iframe`:case`object`:Xf(`load`,e);break;case`video`:case`audio`:for(r=0;r<qf.length;r++)Xf(qf[r],e);break;case`image`:Xf(`error`,e),Xf(`load`,e);break;case`details`:Xf(`toggle`,e);break;case`embed`:case`source`:case`link`:Xf(`error`,e),Xf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:up(e,t,u,r,n,null)}return;default:if(fn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&dp(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&up(e,t,c,r,n,null))}var pp={};function mp(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||up(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:m!==f&&(Ut=!0),o=m;break;case`name`:m!==f&&(Ut=!0),a=m;break;case`checked`:m!==f&&(Ut=!0),u=m;break;case`defaultChecked`:m!==f&&(Ut=!0),d=m;break;case`value`:m!==f&&(Ut=!0),s=m;break;case`defaultValue`:m!==f&&(Ut=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&up(e,t,p,m,r,f)}}tn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||up(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Ut=!0),p=o;break;case`defaultValue`:o!==l&&(Ut=!0),c=o;break;case`multiple`:o!==l&&(Ut=!0),s=o;default:o!==l&&up(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?an(e,!!n,n?[]:``,!1):an(e,!!n,t,!0)):an(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:up(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Ut=!0),p=a;break;case`defaultValue`:a!==o&&(Ut=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&up(e,t,s,a,r,o)}on(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:up(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:p!==m&&(Ut=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:up(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&up(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:up(e,t,u,p,r,m)}return;default:if(fn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&dp(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||dp(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&up(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||up(e,t,f,p,r,m)}function hp(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function gp(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&hp(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&hp(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var _p=null,vp=null;function yp(e){return e.nodeType===9?e:e.ownerDocument}function bp(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function xp(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Sp(e,t,n,r){return n=yp(n).createElement(e),n[yt]=r,n[bt]=t,fp(n,e,t),Nt(n),n}function Cp(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var H=null;function wp(){var e=window.event;return e&&e.type===`popstate`?e!==H&&(H=e,!0):(H=null,!1)}var Ep=typeof setTimeout==`function`?setTimeout:void 0,Op=typeof clearTimeout==`function`?clearTimeout:void 0,kp=typeof Promise==`function`?Promise:void 0,Ap=typeof requestAnimationFrame==`function`?requestAnimationFrame:Ep,jp=typeof queueMicrotask==`function`?queueMicrotask:kp===void 0?Ep:function(e){return kp.resolve(null).then(e).catch(Mp)};function Mp(e){setTimeout(function(){throw e})}function Np(e){return e===`head`}function Pp(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Zh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)Em(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,Em(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Et]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&Em(e.ownerDocument.body)}n=i}while(n);Zh(t)}function Fp(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function Ip(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Lp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Rp(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function zp(e){return Rp(e.getBoundingClientRect(),getComputedStyle(e),e)}function Bp(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Rp(t,n,e)}function Vp(e){return e.documentElement.clientHeight}function Hp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Up(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(Vp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=ah(f),u>ch){s.length=o;break}f=new Promise(Hp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function U(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}U.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:T({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},U.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},U.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Wp(e){return{name:e,group:new U(`group`,e),imagePair:new U(`image-pair`,e),old:new U(`old`,e),new:new U(`new`,e)}}function W(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}W.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Yp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=qp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),p(this._fragmentFiber.child,!1,Gp,e,s,r)}this._eventListeners=a}};function Gp(e,t,n,r){return v(e).addEventListener(t,n,r),!1}W.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Yp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=qp(i.optionsOrUseCapture),p(this._fragmentFiber.child,!1,Kp,e,n,i),r.splice(t,1),a!==null&&a()}};function Kp(e,t,n,r){return v(e).removeEventListener(t,n,r),!1}function qp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Jp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Yp(e,t,n,r){if(e.length===0)return-1;r=Jp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Jp(a.optionsOrUseCapture)===r)return i}return-1}W.prototype.dispatchEvent=function(e){var t=m(this._fragmentFiber);if(t===null)return!0;t=v(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,qp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,qp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},W.prototype.focus=function(e){p(this._fragmentFiber.child,!0,Xp,e,void 0,void 0)};function Xp(e,t){return e.tag!==6&&(e=v(e),Sm(e,t))}W.prototype.focusLast=function(e){var t=[];p(this._fragmentFiber.child,!0,Zp,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Xp(t[n],e);n--);};function Zp(e,t){return t.push(e),!1}W.prototype.blur=function(){var e=m(this._fragmentFiber);e!==null&&(e=v(e),e=yp(e).activeElement,e!==null&&p(this._fragmentFiber.child,!1,Qp,e,void 0,void 0))};function Qp(e,t){return e.tag!==6&&(e=v(e),e===t||e.contains(t)?(t.blur(),!0):!1)}W.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),p(this._fragmentFiber.child,!1,$p,e,void 0,void 0)};function $p(e,t){return e.tag!==6&&(e=v(e),t.observe(e),!1)}W.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),p(this._fragmentFiber.child,!1,em,e,void 0,void 0);for(var n=t=0;n<tm.length;n++){var r=tm[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):tm[t++]=r}tm.length=t}};function em(e,t){return e.tag!==6&&(e=v(e),t.unobserve(e),!1)}var tm=[],nm=!1;function rm(e,t,n){tm.push({fragmentInstance:e,observer:t,instance:n}),nm||(nm=!0,Cm(function(){nm=!1;var e=tm;tm=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}W.prototype.getClientRects=function(){var e=[];return p(this._fragmentFiber.child,!1,im,e,void 0,void 0),e};function im(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=v(e),t.push.apply(t,e.getClientRects());return!1}W.prototype.getRootNode=function(e){var t=m(this._fragmentFiber);return t===null?this:v(t).getRootNode(e)},W.prototype.compareDocumentPosition=function(e){var t=m(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];p(this._fragmentFiber.child,!1,Zp,n,void 0,void 0);var r=v(t);if(n.length===0){if(n=r,h(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=g(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=v(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=v(n[0]),i=v(n[n.length-1]);var a=h(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||am(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function am(e,t,n,r,i){var a=kt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=m(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=w(n,a,C),t===null?t=!1:(p(t,!0,x,a,n),a=y,y=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=w(r,a,C),t===null?t=!1:(p(t,!0,S,a,r),a=y,b=y=null,t=a!==null)),t):!1}function om(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}W.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];p(this._fragmentFiber.child,!1,Zp,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=g(this._fragmentFiber);if(r=n?r[1]||r[0]||m(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=v(r),om(e,n);return}if(r=v(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=v(a),om(a,n)):v(a).scrollIntoView(e),r+=n?-1:1}};function sm(e,t){return e=v(e),cm(e,t),!1}function cm(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function lm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,qp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<tm.length;i++){var a=tm[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(tm[r++]=a)}tm.length=r,n.observe(e)}),cm(e,t))}function um(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,qp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?rm(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function dm(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:dm(n),Ot(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function fm(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[Et])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=vm(e.nextSibling),e===null)break}return null}function pm(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=vm(e.nextSibling),e===null))return null;return e}function mm(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=vm(e.nextSibling),e===null))return null;return e}function hm(e){return e.data===`$?`||e.data===`$~`}function gm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function _m(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function vm(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var ym=null;function bm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return vm(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function xm(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function Sm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function Cm(e){Ap(function(){Ap(function(t){return e(t)})})}function wm(e,t,n){switch(t=yp(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function Tm(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&up(e,t,r,null,pp,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===gn&&(e.onclick=null),Ot(e)}function Em(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ot(e)}var Dm=new Map,Om=new Set;function km(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Am=ue.d;ue.d={f:jm,r:Mm,D:Fm,C:Im,L:Lm,m:Rm,X:Bm,S:zm,M:Vm};function jm(){var e=Am.f(),t=Kd();return e||t}function Mm(e){var t=At(e);t!==null&&t.tag===5&&t.type===`form`?rc(t):Am.r(e)}var Nm=typeof document>`u`?null:document;function Pm(e,t,n){var r=Nm;if(r&&typeof t==`string`&&t){var i=en(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Om.has(i)||(Om.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),fp(t,`link`,e),Nt(t),r.head.appendChild(t)))}}function Fm(e){Am.D(e),Pm(`dns-prefetch`,e,null)}function Im(e,t){Am.C(e,t),Pm(`preconnect`,e,t)}function Lm(e,t,n){Am.L(e,t,n);var r=Nm;if(r&&e&&t){var i=`link[rel="preload"][as="`+en(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+en(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+en(n.imageSizes)+`"]`)):i+=`[href="`+en(e)+`"]`;var a=i;switch(t){case`style`:a=Um(e);break;case`script`:a=qm(e)}if(!(Dm.has(a)||(e=T({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Dm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Wm(a))||t===`script`&&r.querySelector(Jm(a))))){var o=r.createElement(`link`);fp(o,`link`,e),t===`style`&&(o[Dt]=!0,o.onload=o.onerror=function(){Pt(o)}),Nt(o),r.head.appendChild(o)}}}function Rm(e,t){Am.m(e,t);var n=Nm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+en(r)+`"][href="`+en(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=qm(e)}if(!Dm.has(a)&&(e=T({rel:`modulepreload`,href:e},t),Dm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Jm(a)))return}r=n.createElement(`link`),fp(r,`link`,e),Nt(r),n.head.appendChild(r)}}}function zm(e,t,n){Am.S(e,t,n);var r=Nm;if(r&&e){var i=Mt(r).hoistableStyles,a=Um(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Wm(a)))s.loading=5;else{e=T({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Dm.get(a))&&Zm(e,n);var c=o=r.createElement(`link`);Nt(c),fp(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Xm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Bm(e,t){Am.X(e,t);var n=Nm;if(n&&e){var r=Mt(n).hoistableScripts,i=qm(e),a=r.get(i);a||(a=n.querySelector(Jm(i)),a||(e=T({src:e,async:!0},t),(t=Dm.get(i))&&Qm(e,t),a=n.createElement(`script`),Nt(a),fp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Vm(e,t){Am.M(e,t);var n=Nm;if(n&&e){var r=Mt(n).hoistableScripts,i=qm(e),a=r.get(i);a||(a=n.querySelector(Jm(i)),a||(e=T({src:e,async:!0,type:`module`},t),(t=Dm.get(i))&&Qm(e,t),a=n.createElement(`script`),Nt(a),fp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Hm(e,t,n,r){var a=(a=ye.current)?km(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Um(n.href),t=Mt(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Um(n.href);var o=Mt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Wm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=Dm.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Dm.set(e,o)),Km(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=qm(n),t=Mt(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Um(e){return`href="`+en(e)+`"`}function Wm(e){return`link[rel="stylesheet"][`+e+`]`}function Gm(e){return T({},e,{"data-precedence":e.precedence,precedence:null})}function Km(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Dt]){r.loading=1;return}}else t=e.createElement(`link`),t[Dt]=!0,t.onload=t.onerror=Pt.bind(null,t),fp(t,`link`,n),Nt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function qm(e){return`[src="`+en(e)+`"]`}function Jm(e){return`script[async]`+e}function Ym(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+en(n.href)+`"]`);if(r)return t.instance=r,Nt(r),r;var a=T({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Nt(r),fp(r,`style`,a),Xm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Um(n.href);var o=e.querySelector(Wm(a));if(o)return t.state.loading|=4,t.instance=o,Nt(o),o;r=Gm(n),(a=Dm.get(a))&&Zm(r,a),o=(e.ownerDocument||e).createElement(`link`),Nt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),fp(o,`link`,r),t.state.loading|=4,Xm(o,n.precedence,e),t.instance=o;case`script`:return o=qm(n.src),(a=e.querySelector(Jm(o)))?(t.instance=a,Nt(a),a):(r=n,(a=Dm.get(o))&&(r=T({},n),Qm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Nt(a),fp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Xm(r,n.precedence,e));return t.instance}function Xm(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Zm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Qm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var $m=null;function eh(e,t,n){if($m===null){var r=new Map,i=$m=new Map;i.set(n,r)}else i=$m,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Et]||a[yt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function th(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function nh(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function rh(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function ih(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function ah(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function oh(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=ah(t),e.suspenseyImages.push(t)),e=fh.bind(e),t.decode().then(e,e))}function sh(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Um(r.href),a=t.querySelector(Wm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=dh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Nt(a);return}a=t.ownerDocument||t,r=Gm(r),(i=Dm.get(i))&&Zm(r,i),a=a.createElement(`link`),Nt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),fp(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=dh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ch=0;function lh(e,t){return e.stylesheets&&e.count===0&&mh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&mh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ch===0&&(ch=62500*gp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&mh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ch?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function uh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)mh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function dh(){this.count--,uh(this)}function fh(){this.imgCount--,uh(this)}var ph=null;function mh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ph=new Map,t.forEach(hh,e),ph=null,dh.call(e))}function hh(e,t){if(!(t.state.loading&4)){var n=ph.get(e);if(n)var r=n.get(null);else{n=new Map,ph.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=dh.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var gh={$$typeof:N,Provider:null,Consumer:null,_currentValue:de,_currentValue2:de,_threadCount:0};function _h(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ct(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ct(0),this.hiddenUpdates=ct(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function vh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new _h(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ki(3,null,null,t),e.current=a,a.stateNode=e,t=Aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},po(a),e}function yh(e){return e?(e=Di,e):Di}function bh(e,t,n,r,i,a){i=yh(i),r.context===null?r.context=i:r.pendingContext=i,r=ho(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=go(e,r,t),n!==null&&(Vd(n,e,t),_o(n,e,t))}function xh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function Sh(e,t){xh(e,t),(e=e.alternate)&&xh(e,t)}function Ch(e){if(e.tag===13||e.tag===31){var t=wi(e,67108864);t!==null&&Vd(t,e,67108864),Sh(e,67108864)}}function wh(e){if(e.tag===13||e.tag===31){var t=Rd();t=mt(t);var n=wi(e,t);n!==null&&Vd(n,e,t),Sh(e,t)}}var Th=!0;function Eh(e,t,n,r){var i=z.T;z.T=null;var a=ue.p;try{ue.p=2,Oh(e,t,n,r)}finally{ue.p=a,z.T=i}}function Dh(e,t,n,r){var i=z.T;z.T=null;var a=ue.p;try{ue.p=8,Oh(e,t,n,r)}finally{ue.p=a,z.T=i}}function Oh(e,t,n,r){if(Th){var i=kh(r);if(i===null)tp(e,t,r,Ah,n),Vh(e,r);else if(Uh(i,e,t,n,r))r.stopPropagation();else if(Vh(e,r),t&4&&-1<Bh.indexOf(e)){for(;i!==null;){var a=At(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=nt(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Ye(o);s.entanglements[1]|=c,o&=~c}Pf(a),!(nd&6)&&(Cd=Le()+500,Ff(0,!1))}}break;case 31:case 13:s=wi(a,2),s!==null&&Vd(s,a,2),Kd(),Sh(a,2)}if(a=kh(r),a===null&&tp(e,t,r,Ah,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else tp(e,t,r,null,n)}}function kh(e){return e=vn(e),jh(e)}var Ah=null;function jh(e){if(Ah=null,e=kt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ah=e,null}function Mh(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`fullscreenerror`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Re()){case ze:return 2;case Be:return 8;case Ve:case He:return 32;case Ue:return 268435456;default:return 32}default:return 32}}var Nh=!1,Ph=null,Fh=null,Ih=null,Lh=new Map,Rh=new Map,zh=[],Bh=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Vh(e,t){switch(e){case`focusin`:case`focusout`:Ph=null;break;case`dragenter`:case`dragleave`:Fh=null;break;case`mouseover`:case`mouseout`:Ih=null;break;case`pointerover`:case`pointerout`:Lh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Rh.delete(t.pointerId)}}function Hh(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=At(t),t!==null&&Ch(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Uh(e,t,n,r,i){switch(t){case`focusin`:return Ph=Hh(Ph,e,t,n,r,i),!0;case`dragenter`:return Fh=Hh(Fh,e,t,n,r,i),!0;case`mouseover`:return Ih=Hh(Ih,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Lh.set(a,Hh(Lh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Rh.set(a,Hh(Rh.get(a)||null,e,t,n,r,i)),!0}return!1}function Wh(e){var t=kt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,_t(e.priority,function(){wh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,_t(e.priority,function(){wh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Gh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=kh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);_n=r,n.target.dispatchEvent(r),_n=null}else return t=At(n),t!==null&&Ch(t),e.blockedOn=n,!1;t.shift()}return!0}function Kh(e,t,n){Gh(e)&&n.delete(t)}function qh(){Nh=!1,Ph!==null&&Gh(Ph)&&(Ph=null),Fh!==null&&Gh(Fh)&&(Fh=null),Ih!==null&&Gh(Ih)&&(Ih=null),Lh.forEach(Kh),Rh.forEach(Kh)}function Jh(e,n){e.blockedOn===n&&(e.blockedOn=null,Nh||(Nh=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,qh)))}var Yh=null;function Xh(e){Yh!==e&&(Yh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Yh===e&&(Yh=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(jh(r||n)===null)continue;break}var a=At(n);a!==null&&(e.splice(t,3),t-=3,tc(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Zh(e){function t(t){return Jh(t,e)}Ph!==null&&Jh(Ph,e),Fh!==null&&Jh(Fh,e),Ih!==null&&Jh(Ih,e),Lh.forEach(t),Rh.forEach(t);for(var n=0;n<zh.length;n++){var r=zh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<zh.length&&(n=zh[0],n.blockedOn===null);)Wh(n),n.blockedOn===null&&zh.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[bt]||null;if(typeof a==`function`)o||Xh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[bt]||null)s=o.formAction;else if(jh(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Xh(n)}}}function Qh(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function $h(e){this._internalRoot=e}eg.prototype.render=$h.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;bh(n,Rd(),e,t,null,null)},eg.prototype.unmount=$h.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;bh(e.current,2,null,e,null,null),Kd(),t[xt]=null}};function eg(e){this._internalRoot=e}eg.prototype.unstable_scheduleHydration=function(e){if(e){var t=gt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<zh.length&&t!==0&&t<zh[n].priority;n++);zh.splice(n,0,e),n===0&&Wh(e)}};var tg=n.version;if(tg!==`19.3.0`)throw Error(i(527,tg,`19.3.0`));ue.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=d(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var ng={bundleType:0,version:`19.3.0`,rendererPackageName:`react-dom`,currentDispatcherRef:z,reconcilerVersion:`19.3.0`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var rg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!rg.isDisabled&&rg.supportsFiber)try{Ke=rg.inject(ng),qe=rg}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=wc,s=Tc,c=Ec;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=vh(e,1,!1,null,null,n,r,null,o,s,c,Qh),e[xt]=t.current,$f(e),new $h(t)}})),kp=o(((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=Op()}))(),Ap=[`none`,`requests`,`tokens`,`cost`,`quota`,`alerts`];function jp(){return typeof window>`u`?void 0:window.__ASTRA__}function Mp(e=jp()){return e?.shell===`desktop`?`desktop`:`web`}function Np(e=jp(),t=globalThis.navigator){if(e?.platform)return e.platform;let n=`${t?.userAgent??``} ${t?.platform??``}`.toLowerCase();return n.includes(`mac`)?`darwin`:n.includes(`win`)?`win32`:n.includes(`linux`)?`linux`:`other`}function Pp(e=globalThis.navigator){let t=e?.userAgent??``;return/Chrome\/|Electron\//.test(t)}var Fp=Mp(),Ip=Np(),Lp=Fp===`desktop`,Rp=Ip===`darwin`;function zp(e=Lp,t=Ip){return e&&t===`darwin`?78:68}function Bp(e=document.documentElement){e.dataset.shell=Fp,e.dataset.platform=Ip,Pp()&&e.classList.add(`refract`)}var Vp=Rp?`⌘`:`Ctrl+`,Hp=class extends Error{status;details;constructor(e,t,n){super(e),this.status=t,this.details=n,this.name=`ApiError`}get isNetwork(){return this.status===0}};function Up(){return jp()?.apiBase.replace(/\/+$/,``)??``}async function U(e,t,n,r){let i={Accept:`application/json`};e!==`GET`&&(i[`X-Astra-Admin`]=`1`),n!==void 0&&(i[`Content-Type`]=`application/json`);let a;try{a=await fetch(Up()+t,{method:e,headers:i,body:n===void 0?void 0:JSON.stringify(n),credentials:`include`,signal:r})}catch(e){throw e?.name===`AbortError`?e:new Hp(e?.message||`Network error`,0)}if(a.status===204)return;let o=await a.text(),s;if(o)try{s=JSON.parse(o)}catch{s=o}if(!a.ok){let e=s&&typeof s==`object`?s:{};throw new Hp(e.error||typeof s==`string`&&s||`HTTP ${a.status}`,a.status,e.details)}return s}function Wp(e){let t=new URLSearchParams;for(let[n,r]of Object.entries(e))r!=null&&r!==``&&t.set(n,String(r));let n=t.toString();return n?`?${n}`:``}var W=encodeURIComponent;function Gp(){let e=``;return t=>{e+=t;let n=[];for(;;){let t=/\r\n\r\n|\n\n|\r\r/.exec(e);if(!t)return n;let r=e.slice(0,t.index);e=e.slice(t.index+t[0].length);let i=``,a=[];for(let e of r.split(/\r\n|\n|\r/)){if(e.startsWith(`:`))continue;let t=e.indexOf(`:`),n=t<0?e:e.slice(0,t),r=t<0?``:e.slice(t+1);r.startsWith(` `)&&(r=r.slice(1)),n===`event`?i=r:n===`data`&&a.push(r)}if(a.length===0)continue;let o=a.join(`
|
|
18
|
-
`),s=o;try{s=JSON.parse(o)}catch{}n.push({event:i,data:s})}}}async function Kp(e,t,n,r){return Jp(`POST`,e,t,n,r)}async function qp(e,t,n,r){return Jp(`GET`,e,void 0,t,n,r)}async function Jp(e,t,n,r,i,a){let o;try{o=await fetch(Up()+t,{method:e,headers:e===`POST`?{Accept:`text/event-stream`,"Content-Type":`application/json`,"X-Astra-Admin":`1`}:{Accept:`text/event-stream`},body:e===`POST`?JSON.stringify(n):void 0,credentials:`include`,signal:i})}catch(e){throw e?.name===`AbortError`?e:new Hp(e?.message||`Network error`,0)}if(!o.ok||!o.body){let e=await o.text().catch(()=>``),t;if(e)try{t=JSON.parse(e)}catch{t=e}let n=t&&typeof t==`object`?t:{};throw new Hp(n.error||typeof t==`string`&&t||`HTTP ${o.status}`,o.status,n.details)}a?.();let s=o.body.getReader(),c=new TextDecoder,l=Gp();for(;;){let{done:e,value:t}=await s.read();if(e)break;for(let e of l(c.decode(t,{stream:!0})))r(e)}for(let e of l(c.decode()))r(e)}var Yp=`modulepreload`,Xp=function(e){return`/`+e},Zp={},Qp=function(e){return e.pathname.endsWith(`.css`)},$p=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e,i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?new URL(import.meta.resolve(e)):new URL(e,import.meta.url)}r=o(t.map(t=>{t=Xp(t,n);let r=s(t);if(r.href in Zp)return;Zp[r.href]=!0;let i=Qp(r);if(e===void 0){e={all:new Set,styles:new Set};let t=document.getElementsByTagName(`link`);for(let n=t.length-1;n>=0;n--){let r=t[n];e.all.add(r.href),r.rel===`stylesheet`&&e.styles.add(r.href)}}if((i?e.styles:e.all).has(r.href))return;let o=document.createElement(`link`);if(o.rel=i?`stylesheet`:Yp,i||(o.as=`script`),o.crossOrigin=``,o.href=r.href,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),i)return new Promise((e,t)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>t(Error(`Unable to preload CSS for ${r}`)))})}).filter(e=>e!==void 0))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},em=/^(?:[a-z][a-z0-9+.-]*:|[\\/]{2})/i,tm=/^[\\/]{2}/;function nm(e,t){return t+e.replace(/\\/g,`/`)}var rm=`popstate`;function im(e){return typeof e==`object`&&!!e&&`pathname`in e&&`search`in e&&`hash`in e&&`state`in e&&`key`in e}function am(e={}){function t(e,t){let n=t.state?.masked,{pathname:r,search:i,hash:a}=n||e.location;return dm(``,{pathname:r,search:i,hash:a},t.state&&t.state.usr||null,t.state&&t.state.key||`default`,n?{pathname:e.location.pathname,search:e.location.search,hash:e.location.hash}:void 0)}function n(e,t){return typeof t==`string`?t:fm(t)}return mm(t,n,null,e)}function om(e={}){function t(e,t){let{pathname:n=`/`,search:r=``,hash:i=``}=pm(e.location.hash.substring(1));return!n.startsWith(`/`)&&!n.startsWith(`.`)&&(n=`/`+n),dm(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){let n=e.document.querySelector(`base`),r=``;if(n&&n.getAttribute(`href`)){let t=e.location.href,n=t.indexOf(`#`);r=n===-1?t:t.slice(0,n)}return r+`#`+(typeof t==`string`?t:fm(t))}function r(e,t){cm(e.pathname.charAt(0)===`/`,`relative pathnames are not supported in hash history.push(${JSON.stringify(t)})`)}return mm(t,n,r,e)}function sm(e,t){if(e===!1||e==null)throw Error(t)}function cm(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function lm(){return Math.random().toString(36).substring(2,10)}function um(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function dm(e,t,n=null,r,i){return{pathname:typeof e==`string`?e:e.pathname,search:``,hash:``,...typeof t==`string`?pm(t):t,state:n,key:t&&t.key||r||lm(),mask:i}}function fm({pathname:e=`/`,search:t=``,hash:n=``}){return t&&t!==`?`&&(e+=t.charAt(0)===`?`?t:`?`+t),n&&n!==`#`&&(e+=n.charAt(0)===`#`?n:`#`+n),e}function pm(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function mm(e,t,n,r={}){let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=`POP`,c=null,l=u();l??(l=0,o.replaceState({...o.state,idx:l},``));function u(){return(o.state||{idx:null}).idx}function d(){s=`POP`;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=`PUSH`;let r=im(e)?e:dm(h.location,e,t);n&&n(r,e),l=u()+1;let d=um(r,l),f=h.createHref(r.mask||r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=`REPLACE`;let r=im(e)?e:dm(h.location,e,t);n&&n(r,e),l=u();let i=um(r,l),d=h.createHref(r.mask||r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){return hm(i,e)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(rm,d),c=e,()=>{i.removeEventListener(rm,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}function hm(e,t,n=!1){let r=`http://localhost`;e&&(r=e.location.origin===`null`?e.location.href:e.location.origin),sm(r,`No window.location.(origin|href) available to create URL`);let i=typeof t==`string`?t:fm(t);return i=i.replace(/ $/,`%20`),!n&&tm.test(i)&&(i=r+i),new URL(i,r)}function gm(e,t,n=`/`){return _m(e,t,n,!1)}function _m(e,t,n,r,i){let a=Im((typeof t==`string`?pm(t):t).pathname||`/`,n);if(a==null)return null;let o=i??vm(e),s=null,c=Fm(a);for(let e=0;s==null&&e<o.length;++e)s=jm(o[e],c,r);return s}function vm(e){let t=ym(e);return xm(t),t}function ym(e,t=[],n=[],r=``,i=!1){let a=(e,a,o=i,s)=>{let c={relativePath:s===void 0?e.path||``:s,caseSensitive:e.caseSensitive===!0,childrenIndex:a,route:e};if(c.relativePath.startsWith(`/`)){if(!c.relativePath.startsWith(r)&&o)return;sm(c.relativePath.startsWith(r),`Absolute route path "${c.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),c.relativePath=c.relativePath.slice(r.length)}let l=Wm([r,c.relativePath]),u=n.concat(c);e.children&&e.children.length>0&&(sm(e.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${l}".`),ym(e.children,t,u,l,o)),(e.path!=null||e.index)&&t.push({path:l,score:km(l,e.index),routesMeta:u.map((e,t)=>{let[n,r]=Pm(e.relativePath,e.caseSensitive,t===u.length-1);return{...e,matcher:n,compiledParams:r}})})};return e.forEach((e,t)=>{if(e.path===``||!e.path?.includes(`?`))a(e,t);else for(let n of bm(e.path))a(e,t,!0,n)}),t}function bm(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=bm(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function xm(e){e.sort((e,t)=>e.score===t.score?Am(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Sm=/^:[\w-]+$/,Cm=3,wm=2,Tm=1,Em=10,Dm=-2,Om=e=>e===`*`;function km(e,t){let n=e.split(`/`),r=n.length;return n.some(Om)&&(r+=Dm),t&&(r+=wm),n.filter(e=>!Om(e)).reduce((e,t)=>e+(Sm.test(t)?Cm:t===``?Tm:Em),r)}function Am(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function jm(e,t,n=!1){let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u={path:s.relativePath,caseSensitive:s.caseSensitive,end:c},d=s.matcher&&s.compiledParams?Nm(u,l,s.matcher,s.compiledParams):Mm(u,l),f=s.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Mm({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!d)return null;Object.assign(i,d.params),o.push({params:i,pathname:Wm([a,d.pathname]),pathnameBase:Km(Wm([a,d.pathnameBase])),route:f}),d.pathnameBase!==`/`&&(a=Wm([a,d.pathnameBase]))}return o}function Mm(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=Pm(e.path,e.caseSensitive,e.end);return Nm(e,t,n,r)}function Nm(e,t,n,r){let i=t.match(n);if(!i)return null;let a=i[0],o=Gm(a,1),s=i.slice(1);return{params:r.reduce((e,{paramName:t,isOptional:n},r)=>{if(t===`*`){let e=s[r]||``;o=Gm(a.slice(0,a.length-e.length),1)}let i=s[r];return e[t]=n&&!i?void 0:(i||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function Pm(e,t=!1,n=!0){cm(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,`/*`)}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,`/*`)}".`);let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n,i,a)=>{if(r.push({paramName:t,isOptional:n!=null}),n){let t=a.charAt(i+e.length);return t&&t!==`/`?`/([^\\/]*)`:`(?:/([^\\/]*))?`}return`/([^\\/]+)`}).replace(/\/([\w-]+)\?(\/|$)/g,`(/$1)?$2`);return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function Fm(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return cm(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Im(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function Lm(e,t=`/`){let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?pm(e):e,a;return n?(n=Um(n),a=n.startsWith(`/`)||n.startsWith(`\\`)?Rm(n.substring(1),`/`):Rm(n,t)):a=t,{pathname:a,search:qm(r),hash:Jm(i)}}function Rm(e,t){let n=Gm(t).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function zm(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function Bm(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function Vm(e){let t=Bm(e);return t.map((e,n)=>n===t.length-1?e.pathname:e.pathnameBase)}function Hm(e,t,n,r=!1){let i;typeof e==`string`?i=pm(e):(i={...e},sm(!i.pathname||!i.pathname.includes(`?`),zm(`?`,`pathname`,`search`,i)),sm(!i.pathname||!i.pathname.includes(`#`),zm(`#`,`pathname`,`hash`,i)),sm(!i.search||!i.search.includes(`#`),zm(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=Lm(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var Um=e=>e.replace(/[\\/]{2,}/g,`/`),Wm=e=>Um(e.join(`/`));function Gm(e,t=0){let n=e.length;for(;n>t&&e.charCodeAt(n-1)===47;)n--;return n===e.length?e:e.slice(0,n)}var Km=e=>Gm(e).replace(/^\/*/,`/`),qm=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,Jm=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,Ym=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function Xm(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}function Zm(e){return Wm(e.map(e=>e.route.path).filter(Boolean))||`/`}var Qm=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function $m(e,t){let n=e;if(typeof n!=`string`||!em.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,i=!1;if(Qm)try{let e=new URL(window.location.href),r=tm.test(n)?new URL(nm(n,e.protocol)):new URL(n),a=Im(r.pathname,t);r.origin===e.origin&&a!=null?n=a+r.search+r.hash:i=!0}catch{cm(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:i,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);var eh=new URL(`http://localhost`);function th(e){if(e.createURL)return e.createURL(`/`);try{return new URL(e.createHref(`/`),eh)}catch{return eh}}function nh(e,t){return e.origin===t.origin&&(e.origin!==`null`||e.protocol===t.protocol&&e.host===t.host)}function rh(e,t){if(e.startsWith(`//`))return!0;let n=t.protocol.toLowerCase();return e.toLowerCase().startsWith(n)?t.host===``||e.slice(n.length).startsWith(`//`):!1}function ih(e,t,n,r){let i=null;try{i=e==null?null:new URL(e,n)}catch{}let a=new URL(t,n),o=i!=null&&!nh(i,n),s=!nh(a,n);if(r===`reject`){if(o||s)throw Error(`External navigation is not allowed`)}else if(s&&(i==null||!rh(e,i)||!nh(i,a)))throw Error(`External navigation is not allowed`)}var ah=[`POST`,`PUT`,`PATCH`,`DELETE`];new Set(ah);var oh=[`GET`,...ah];new Set(oh);var sh=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];function ch(e){try{return sh.includes(new URL(e).protocol)}catch{return!1}}var lh=p.createContext(null);lh.displayName=`DataRouter`;var uh=p.createContext(null);uh.displayName=`DataRouterState`;var dh=p.createContext(!1);function fh(){return p.useContext(dh)}var ph=p.createContext({isTransitioning:!1});ph.displayName=`ViewTransition`;var mh=p.createContext(new Map);mh.displayName=`Fetchers`;var hh=p.createContext(null);hh.displayName=`Await`;var gh=p.createContext(null);gh.displayName=`Navigation`;var _h=p.createContext(null);_h.displayName=`Location`;var vh=p.createContext({outlet:null,matches:[],isDataRoute:!1});vh.displayName=`Route`;var yh=p.createContext(null);yh.displayName=`RouteError`;var bh=`REACT_ROUTER_ERROR`,xh=`REDIRECT`,Sh=`ROUTE_ERROR_RESPONSE`;function Ch(e){if(e.startsWith(`${bh}:${xh}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`&&typeof t.location==`string`&&typeof t.reloadDocument==`boolean`&&typeof t.replace==`boolean`)return t}catch{}}function wh(e){if(e.startsWith(`${bh}:${Sh}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t==`object`&&t&&typeof t.status==`number`&&typeof t.statusText==`string`)return new Ym(t.status,t.statusText,t.data)}catch{}}function Th(e,{relative:t}={}){sm(Eh(),`useHref() may be used only in the context of a <Router> component.`);let{basename:n,navigator:r}=p.useContext(gh),{hash:i,pathname:a,search:o}=Fh(e,{relative:t}),s=a;return n!==`/`&&(s=a===`/`?n:Wm([n,a])),r.createHref({pathname:s,search:o,hash:i})}function Eh(){return p.useContext(_h)!=null}function Dh(){return sm(Eh(),`useLocation() may be used only in the context of a <Router> component.`),p.useContext(_h).location}var Oh=`You should call navigate() in a React.useEffect(), not when your component is first rendered.`;function kh(e){p.useContext(gh).static||p.useLayoutEffect(e)}function Ah(){let{isDataRoute:e}=p.useContext(vh);return e?Qh():jh()}function jh(){sm(Eh(),`useNavigate() may be used only in the context of a <Router> component.`);let e=p.useContext(lh),{basename:t,navigator:n}=p.useContext(gh),{matches:r}=p.useContext(vh),{pathname:i}=Dh(),a=JSON.stringify(Vm(r)),o=p.useRef(!1);return kh(()=>{o.current=!0}),p.useCallback((r,s={})=>{if(cm(o.current,Oh),!o.current)return;if(typeof r==`number`){n.go(r);return}let c=Hm(r,JSON.parse(a),i,s.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:Wm([t,c.pathname])),ih(typeof r==`string`?r:fm(r),n.createHref(c),th(n),`reject`),(s.replace?n.replace:n.push)(c,s.state,s)},[t,n,a,i,e])}var Mh=p.createContext(null);function Nh(e){let t=p.useContext(vh).outlet;return p.useMemo(()=>t&&p.createElement(Mh.Provider,{value:e},t),[t,e])}function Ph(){let{matches:e}=p.useContext(vh);return e[e.length-1]?.params??{}}function Fh(e,{relative:t}={}){let{matches:n}=p.useContext(vh),{pathname:r}=Dh(),i=JSON.stringify(Vm(n));return p.useMemo(()=>Hm(e,JSON.parse(i),r,t===`path`),[e,i,r,t])}function Ih(e,t){return Lh(e,t)}function Lh(e,t,n){sm(Eh(),`useRoutes() may be used only in the context of a <Router> component.`);let{navigator:r}=p.useContext(gh),{matches:i}=p.useContext(vh),a=i[i.length-1],o=a?a.params:{},s=a?a.pathname:`/`,c=a?a.pathnameBase:`/`,l=a&&a.route;{let e=l&&l.path||``;eg(s,!l||e.endsWith(`*`)||e.endsWith(`*?`),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${s}" (under <Route path="${e}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
|
19
|
-
|
|
20
|
-
Please change the parent <Route path="${e}"> to <Route path="${e===`/`?`*`:`${e}/*`}">.`)}let u=Dh(),d;if(t){let e=typeof t==`string`?pm(t):t;sm(c===`/`||e.pathname?.startsWith(c),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${c}" but pathname "${e.pathname}" was given in the \`location\` prop.`),d=e}else d=u;let f=d.pathname||`/`,m=f;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);m=`/`+f.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let h=n&&n.state.matches.length?n.state.matches.map(e=>Object.assign(e,{route:n.manifest[e.route.id]||e.route})):gm(e,{pathname:m});cm(l||h!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),cm(h==null||h[h.length-1].route.element!==void 0||h[h.length-1].route.Component!==void 0||h[h.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let g=Wh(h&&h.map(e=>Object.assign({},e,{params:Object.assign({},o,e.params),pathname:Wm([c,r.encodeLocation?r.encodeLocation(e.pathname.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:Wm([c,r.encodeLocation?r.encodeLocation(e.pathnameBase.replace(/%/g,`%25`).replace(/\?/g,`%3F`).replace(/#/g,`%23`)).pathname:e.pathnameBase])})),i,n);return t&&g?p.createElement(_h.Provider,{value:{location:{pathname:`/`,search:``,hash:``,state:null,key:`default`,mask:void 0,...d},navigationType:`POP`}},g):g}function Rh(){let e=Zh(),t=Xm(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r=`rgba(200,200,200, 0.5)`,i={padding:`0.5rem`,backgroundColor:r},a={padding:`2px 4px`,backgroundColor:r},o=null;return console.error(`Error handled by React Router default ErrorBoundary:`,e),o=p.createElement(p.Fragment,null,p.createElement(`p`,null,`💿 Hey developer 👋`),p.createElement(`p`,null,`You can provide a way better UX than this when your app throws errors by providing your own `,p.createElement(`code`,{style:a},`ErrorBoundary`),` or`,` `,p.createElement(`code`,{style:a},`errorElement`),` prop on your route.`)),p.createElement(p.Fragment,null,p.createElement(`h2`,null,`Unexpected Application Error!`),p.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?p.createElement(`pre`,{style:i},n):null,o)}var zh=p.createElement(Rh,null),Bh=class extends p.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error(`React Router caught the following error during render`,e)}render(){let e=this.state.error;if(this.context&&typeof e==`object`&&e&&`digest`in e&&typeof e.digest==`string`){let t=wh(e.digest);t&&(e=t)}let t=e===void 0?this.props.children:p.createElement(vh.Provider,{value:this.props.routeContext},p.createElement(yh.Provider,{value:e,children:this.props.component}));return this.context?p.createElement(Hh,{error:e},t):t}};Bh.contextType=dh;var Vh=new WeakMap;function Hh({children:e,error:t}){let{basename:n,navigator:r}=p.useContext(gh);if(typeof t==`object`&&t&&`digest`in t&&typeof t.digest==`string`){let e=Ch(t.digest);if(e){let i=Vh.get(t);if(i)throw i;let a=$m(e.location,n),o=a.absoluteURL||a.to;if(ih(e.location,o,th(r),`allow-explicit`),ch(o))throw Error(`Invalid redirect location`);if(Qm&&!Vh.get(t)){if(a.isExternal||e.reloadDocument)window.location.href=o;else{let n=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(a.to,{replace:e.replace}));throw Vh.set(t,n),n}}return p.createElement(`meta`,{httpEquiv:`refresh`,content:`0;url=${o}`})}}return e}function Uh({routeContext:e,match:t,children:n}){let r=p.useContext(lh);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),p.createElement(vh.Provider,{value:e},n)}function Wh(e,t=[],n){let r=n?.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let i=e,a=r?.errors;if(a!=null){let e=i.findIndex(e=>e.route.id&&a?.[e.route.id]!==void 0);sm(e>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(`,`)}`),i=i.slice(0,Math.min(i.length,e+1))}let o=!1,s=-1;if(n&&r){o=r.renderFallback;for(let e=0;e<i.length;e++){let t=i[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(s=e),t.route.id){let{loaderData:e,errors:a}=r,c=t.route.loader&&!e.hasOwnProperty(t.route.id)&&(!a||a[t.route.id]===void 0);if(t.route.lazy||c){n.isStatic&&(o=!0),i=s>=0?i.slice(0,s+1):[i[0]];break}}}}let c=n?.onError,l=r&&c?(e,t)=>{c(e,{location:r.location,params:r.matches?.[0]?.params??{},pattern:Zm(r.matches),errorInfo:t})}:void 0;return i.reduceRight((e,n,c)=>{let u,d=!1,f=null,m=null;r&&(u=a&&n.route.id?a[n.route.id]:void 0,f=n.route.errorElement||zh,o&&(s<0&&c===0?(eg(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),d=!0,m=null):s===c&&(d=!0,m=n.route.hydrateFallbackElement||null)));let h=t.concat(i.slice(0,c+1)),g=()=>{let t;return t=u?f:d?m:n.route.Component?p.createElement(n.route.Component,null):n.route.element?n.route.element:e,p.createElement(Uh,{match:n,routeContext:{outlet:e,matches:h,isDataRoute:r!=null},children:t})};return r&&(n.route.ErrorBoundary||n.route.errorElement||c===0)?p.createElement(Bh,{location:r.location,revalidation:r.revalidation,component:f,error:u,children:g(),routeContext:{outlet:null,matches:h,isDataRoute:!0},onError:l}):g()},null)}function Gh(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Kh(e){let t=p.useContext(lh);return sm(t,Gh(e)),t}function qh(e){let t=p.useContext(uh);return sm(t,Gh(e)),t}function Jh(e){let t=p.useContext(vh);return sm(t,Gh(e)),t}function Yh(e){let t=Jh(e),n=t.matches[t.matches.length-1];return sm(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Xh(){return Yh(`useRouteId`)}function Zh(){let e=p.useContext(yh),t=qh(`useRouteError`),n=Yh(`useRouteError`);return e===void 0?t.errors?.[n]:e}function Qh(){let{router:e}=Kh(`useNavigate`),t=Yh(`useNavigate`),n=p.useRef(!1);return kh(()=>{n.current=!0}),p.useCallback(async(r,i={})=>{cm(n.current,Oh),n.current&&(typeof r==`number`?await e.navigate(r):await e.navigate(r,{fromRouteId:t,...i}))},[e,t])}var $h={};function eg(e,t,n){!t&&!$h[e]&&($h[e]=!0,cm(!1,n))}p.memo(tg);function tg({routes:e,manifest:t,future:n,state:r,isStatic:i,onError:a}){return Lh(e,void 0,{manifest:t,state:r,isStatic:i,onError:a,future:n})}function ng({to:e,replace:t,state:n,relative:r}){sm(Eh(),`<Navigate> may be used only in the context of a <Router> component.`);let{static:i,navigator:a}=p.useContext(gh);cm(!i,`<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.`);let{matches:o}=p.useContext(vh),{pathname:s}=Dh(),c=Ah(),l=Hm(e,Vm(o),s,r===`path`);ih(typeof e==`string`?e:fm(e),a.createHref(l),th(a),`reject`);let u=JSON.stringify(l);return p.useEffect(()=>{c(JSON.parse(u),{replace:t,state:n,relative:r})},[c,u,r,t,n]),null}function rg(e){return Nh(e.context)}function ig(e){sm(!1,`A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.`)}function ag({basename:e=`/`,children:t=null,location:n,navigationType:r=`POP`,navigator:i,static:a=!1,useTransitions:o}){sm(!Eh(),`You cannot render a <Router> inside another <Router>. You should never have more than one in your app.`);let s=e.replace(/^\/*/,`/`),c=p.useMemo(()=>({basename:s,navigator:i,static:a,useTransitions:o,future:{}}),[s,i,a,o]);typeof n==`string`&&(n=pm(n));let{pathname:l=`/`,search:u=``,hash:d=``,state:f=null,key:m=`default`,mask:h}=n,g=p.useMemo(()=>{let e=Im(l,s);return e==null?null:{location:{pathname:e,search:u,hash:d,state:f,key:m,mask:h},navigationType:r}},[s,l,u,d,f,m,r,h]);return cm(g!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),g==null?null:p.createElement(gh.Provider,{value:c},p.createElement(_h.Provider,{children:t,value:g}))}function og({children:e,location:t}){return Ih(sg(e),t)}p.Component;function sg(e,t=[]){let n=[];return p.Children.forEach(e,(e,r)=>{if(!p.isValidElement(e))return;let i=[...t,r];if(e.type===p.Fragment){n.push.apply(n,sg(e.props.children,i));return}sm(e.type===ig,`[${typeof e.type==`string`?e.type:e.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),sm(!e.props.index||!e.props.children,`An index route cannot have child routes.`);let a={id:e.props.id||i.join(`-`),caseSensitive:e.props.caseSensitive,element:e.props.element,Component:e.props.Component,index:e.props.index,path:e.props.path,middleware:e.props.middleware,loader:e.props.loader,action:e.props.action,hydrateFallbackElement:e.props.hydrateFallbackElement,HydrateFallback:e.props.HydrateFallback,errorElement:e.props.errorElement,ErrorBoundary:e.props.ErrorBoundary,hasErrorBoundary:e.props.hasErrorBoundary===!0||e.props.ErrorBoundary!=null||e.props.errorElement!=null,shouldRevalidate:e.props.shouldRevalidate,handle:e.props.handle,lazy:e.props.lazy};e.props.children&&(a.children=sg(e.props.children,i)),n.push(a)}),n}var cg=`get`,lg=`application/x-www-form-urlencoded`;function ug(e){return typeof HTMLElement<`u`&&e instanceof HTMLElement}function eee(e){return ug(e)&&e.tagName.toLowerCase()===`button`}function tee(e){return ug(e)&&e.tagName.toLowerCase()===`form`}function nee(e){return ug(e)&&e.tagName.toLowerCase()===`input`}function ree(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function dg(e,t){return e.button===0&&(!t||t===`_self`)&&!ree(e)}function fg(e=``){return new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function pg(e,t){let n=fg(e);return t&&t.forEach((e,r)=>{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var mg=null;function hg(){if(mg===null)try{new FormData(document.createElement(`form`),0),mg=!1}catch{mg=!0}return mg}var gg=new Set([`application/x-www-form-urlencoded`,`multipart/form-data`,`text/plain`]);function _g(e){return e!=null&&!gg.has(e)?(cm(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${lg}"`),null):e}function iee(e,t){let n,r,i,a,o;if(tee(e)){let o=e.getAttribute(`action`);r=o?Im(o,t):null,n=e.getAttribute(`method`)||cg,i=_g(e.getAttribute(`enctype`))||lg,a=new FormData(e)}else if(eee(e)||nee(e)&&(e.type===`submit`||e.type===`image`)){let o=e.form;if(o==null)throw Error(`Cannot submit a <button> or <input type="submit"> without a <form>`);let s=e.getAttribute(`formaction`)||o.getAttribute(`action`);if(r=s?Im(s,t):null,n=e.getAttribute(`formmethod`)||o.getAttribute(`method`)||cg,i=_g(e.getAttribute(`formenctype`))||_g(o.getAttribute(`enctype`))||lg,a=new FormData(o,e),!hg()){let{name:t,type:n,value:r}=e;if(n===`image`){let e=t?`${t}.`:``;a.append(`${e}x`,`0`),a.append(`${e}y`,`0`)}else t&&a.append(t,r)}}else if(ug(e))throw Error(`Cannot submit element that is not <form>, <button>, or <input type="submit|image">`);else n=cg,r=null,i=lg,o=e;return a&&i===`text/plain`&&(o=a,a=void 0),{action:r,method:n.toLowerCase(),encType:i,formData:a,body:o}}Object.getOwnPropertyNames(Object.prototype).sort().join(`\0`);function vg(e,t){if(e===!1||e==null)throw Error(t)}function yg(e,t,n,r){let i=typeof e==`string`?new URL(e,typeof window>`u`?`server://singlefetch/`:window.location.origin):e;return i.pathname=n?i.pathname.endsWith(`/`)?`${i.pathname}_.${r}`:`${i.pathname}.${r}`:i.pathname===`/`?`_root.${r}`:t&&Im(i.pathname,t)===`/`?`${Gm(t)}/_root.${r}`:`${Gm(i.pathname)}.${r}`,i}async function aee(e,t){if(e.id in t)return t[e.id];try{let n=await $p(()=>import(e.module),[]);return t[e.id]=n,n}catch(t){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function oee(e){return e!=null&&typeof e.page==`string`}function see(e){return e==null?!1:e.href==null?e.rel===`preload`&&typeof e.imageSrcSet==`string`&&typeof e.imageSizes==`string`:typeof e.rel==`string`&&typeof e.href==`string`}async function cee(e,t,n){return Sg((await Promise.all(e.map(async e=>{let r=t.routes[e.route.id];if(r){let e=await aee(r,n);return e.links?e.links():[]}return[]}))).flat(1).filter(see).filter(e=>e.rel===`stylesheet`||e.rel===`preload`).map(e=>e.rel===`stylesheet`?{...e,rel:`prefetch`,as:`style`}:{...e,rel:`prefetch`}))}function bg(e,t,n,r,i,a){let o=(e,t)=>!n[t]||e.route.id!==n[t].route.id,s=(e,t)=>n[t].pathname!==e.pathname||n[t].route.path?.endsWith(`*`)&&n[t].params[`*`]!==e.params[`*`];return a===`assets`?t.filter((e,t)=>o(e,t)||s(e,t)):a===`data`?t.filter((t,a)=>{let c=r.routes[t.route.id];if(!c||!c.hasLoader)return!1;if(o(t,a)||s(t,a))return!0;if(t.route.shouldRevalidate){let r=t.route.shouldRevalidate({currentUrl:new URL(i.pathname+i.search+i.hash,window.origin),currentParams:n[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:t.params,defaultShouldRevalidate:!0});if(typeof r==`boolean`)return r}return!0}):[]}function lee(e,t,{includeHydrateFallback:n}={}){return uee(e.map(e=>{let r=t.routes[e.route.id];if(!r)return[];let i=[r.module];return r.clientActionModule&&(i=i.concat(r.clientActionModule)),r.clientLoaderModule&&(i=i.concat(r.clientLoaderModule)),n&&r.hydrateFallbackModule&&(i=i.concat(r.hydrateFallbackModule)),r.imports&&(i=i.concat(r.imports)),i}).flat(1))}function uee(e){return[...new Set(e)]}function xg(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function Sg(e,t){let n=new Set,r=new Set(t);return e.reduce((e,i)=>{if(t&&!oee(i)&&i.as===`script`&&i.href&&r.has(i.href))return e;let a=JSON.stringify(xg(i));return n.has(a)||(n.add(a),e.push({key:a,link:i})),e},[])}function Cg(){let e=p.useContext(lh);return vg(e,`You must render this element inside a <DataRouterContext.Provider> element`),e}function wg(){let e=p.useContext(uh);return vg(e,`You must render this element inside a <DataRouterStateContext.Provider> element`),e}var Tg=p.createContext(void 0);Tg.displayName=`FrameworkContext`;function Eg(){let e=p.useContext(Tg);return vg(e,`You must render this element inside a <HydratedRouter> element`),e}function Dg(e,t){let n=p.useContext(Tg),[r,i]=p.useState(!1),[a,o]=p.useState(!1),{onFocus:s,onBlur:c,onMouseEnter:l,onMouseLeave:u,onTouchStart:d}=t,f=p.useRef(null);p.useEffect(()=>{if(e===`render`&&o(!0),e===`viewport`){let e=new IntersectionObserver(e=>{e.forEach(e=>{o(e.isIntersecting)})},{threshold:.5});return f.current&&e.observe(f.current),()=>{e.disconnect()}}},[e]),p.useEffect(()=>{if(r){let e=setTimeout(()=>{o(!0)},100);return()=>{clearTimeout(e)}}},[r]);let m=()=>{i(!0)},h=()=>{i(!1),o(!1)};return n?e===`intent`?[a,f,{onFocus:Og(s,m),onBlur:Og(c,h),onMouseEnter:Og(l,m),onMouseLeave:Og(u,h),onTouchStart:Og(d,m)}]:[a,f,{}]:[!1,f,{}]}function Og(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function kg({page:e,...t}){let n=fh(),{nonce:r}=Eg(),{router:i}=Cg(),a=p.useMemo(()=>gm(i.routes,e,i.basename),[i.routes,e,i.basename]);return a?(t.nonce==null&&r&&(t={...t,nonce:r}),n?p.createElement(jg,{page:e,matches:a,...t}):p.createElement(Mg,{page:e,matches:a,...t})):null}function Ag(e){let{manifest:t,routeModules:n}=Eg(),[r,i]=p.useState([]);return p.useEffect(()=>{let r=!1;return cee(e,t,n).then(e=>{r||i(e)}),()=>{r=!0}},[e,t,n]),r}function jg({page:e,matches:t,...n}){let r=Dh(),{future:i}=Eg(),{basename:a}=Cg(),o=p.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=yg(e,a,i.v8_trailingSlashAwareDataRequests,`rsc`),o=!1,s=[];for(let e of t)typeof e.route.shouldRevalidate==`function`?o=!0:s.push(e.route.id);return o&&s.length>0&&n.searchParams.set(`_routes`,s.join(`,`)),[n.pathname+n.search]},[a,i.v8_trailingSlashAwareDataRequests,e,r,t]);return p.createElement(p.Fragment,null,o.map(e=>p.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})))}function Mg({page:e,matches:t,...n}){let r=Dh(),{future:i,manifest:a,routeModules:o}=Eg(),{basename:s}=Cg(),{loaderData:c,matches:l}=wg(),u=p.useMemo(()=>bg(e,t,l,a,r,`data`),[e,t,l,a,r]),d=p.useMemo(()=>bg(e,t,l,a,r,`assets`),[e,t,l,a,r]),f=p.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let n=new Set,l=!1;if(t.forEach(e=>{let t=a.routes[e.route.id];t&&t.hasLoader&&(!u.some(t=>t.route.id===e.route.id)&&e.route.id in c&&o[e.route.id]?.shouldRevalidate||t.hasClientLoader?l=!0:n.add(e.route.id))}),n.size===0)return[];let d=yg(e,s,i.v8_trailingSlashAwareDataRequests,`data`);return l&&n.size>0&&d.searchParams.set(`_routes`,t.filter(e=>n.has(e.route.id)).map(e=>e.route.id).join(`,`)),[d.pathname+d.search]},[s,i.v8_trailingSlashAwareDataRequests,c,r,a,u,t,e,o]),m=p.useMemo(()=>lee(d,a),[d,a]),h=Ag(d);return p.createElement(p.Fragment,null,f.map(e=>p.createElement(`link`,{key:e,rel:`prefetch`,as:`fetch`,href:e,...n})),m.map(e=>p.createElement(`link`,{key:e,rel:`modulepreload`,href:e,...n})),h.map(({key:e,link:t})=>p.createElement(`link`,{key:e,nonce:n.nonce,...t,crossOrigin:t.crossOrigin??n.crossOrigin})))}function Ng(...e){return t=>{e.forEach(e=>{typeof e==`function`?e(t):e!=null&&(e.current=t)})}}p.Component;var Pg=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;try{Pg&&(window.__reactRouterVersion=`7.18.4`)}catch{}function Fg({basename:e,children:t,useTransitions:n,window:r}){let i=p.useRef();i.current??=am({window:r,v5Compat:!0});let a=i.current,[o,s]=p.useState({action:a.action,location:a.location}),c=p.useCallback(e=>{n===!1?s(e):p.startTransition(()=>s(e))},[n]);return p.useLayoutEffect(()=>a.listen(c),[a,c]),p.createElement(ag,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}function Ig({basename:e,children:t,useTransitions:n,window:r}){let i=p.useRef();i.current??=om({window:r,v5Compat:!0});let a=i.current,[o,s]=p.useState({action:a.action,location:a.location}),c=p.useCallback(e=>{n===!1?s(e):p.startTransition(()=>s(e))},[n]);return p.useLayoutEffect(()=>a.listen(c),[a,c]),p.createElement(ag,{basename:e,children:t,location:o.location,navigationType:o.action,navigator:a,useTransitions:n})}var Lg=p.forwardRef(function({onClick:e,discover:t=`render`,prefetch:n=`none`,relative:r,reloadDocument:i,replace:a,mask:o,state:s,target:c,to:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...m},h){let{basename:g,navigator:_,useTransitions:v}=p.useContext(gh),y=typeof l==`string`&&em.test(l),b=$m(l,g);l=b.to;let x=Th(l,{relative:r}),S=Dh(),C=null;if(o){let e=Hm(o,[],S.mask?S.mask.pathname:`/`,!0);g!==`/`&&(e.pathname=e.pathname===`/`?g:Wm([g,e.pathname])),C=_.createHref(e)}let[w,T,E]=Dg(n,m),D=dee(l,{replace:a,mask:o,state:s,target:c,preventScrollReset:u,relative:r,viewTransition:d,defaultShouldRevalidate:f,useTransitions:v});function O(t){e&&e(t),t.defaultPrevented||D(t)}let k=!(b.isExternal||i),A=p.createElement(`a`,{...m,...E,href:(k?C:void 0)||b.absoluteURL||x,onClick:k?O:e,ref:Ng(h,T),target:c,"data-discover":!y&&t===`render`?`true`:void 0});return w&&!y?p.createElement(p.Fragment,null,A,p.createElement(kg,{page:x})):A});Lg.displayName=`Link`;var Rg=p.forwardRef(function({"aria-current":e=`page`,caseSensitive:t=!1,className:n=``,end:r=!1,style:i,to:a,viewTransition:o,children:s,...c},l){let u=Fh(a,{relative:c.relative}),d=Dh(),f=p.useContext(uh),{navigator:m,basename:h}=p.useContext(gh),g=f!=null&&_ee(u)&&o===!0,_=m.encodeLocation?m.encodeLocation(u).pathname:u.pathname,v=d.pathname,y=f&&f.navigation&&f.navigation.location?f.navigation.location.pathname:null;t||(v=v.toLowerCase(),y=y?y.toLowerCase():null,_=_.toLowerCase()),y&&h&&(y=Im(y,h)||y);let b=_!==`/`&&_.endsWith(`/`)?_.length-1:_.length,x=v===_||!r&&v.startsWith(_)&&v.charAt(b)===`/`,S=y!=null&&(y===_||!r&&y.startsWith(_)&&y.charAt(_.length)===`/`),C={isActive:x,isPending:S,isTransitioning:g},w=x?e:void 0,T;T=typeof n==`function`?n(C):[n,x?`active`:null,S?`pending`:null,g?`transitioning`:null].filter(Boolean).join(` `);let E=typeof i==`function`?i(C):i;return p.createElement(Lg,{...c,"aria-current":w,className:T,ref:l,style:E,to:a,viewTransition:o},typeof s==`function`?s(C):s)});Rg.displayName=`NavLink`;var zg=p.forwardRef(({discover:e=`render`,fetcherKey:t,navigate:n,reloadDocument:r,replace:i,state:a,method:o=cg,action:s,onSubmit:c,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f,...m},h)=>{let{useTransitions:g}=p.useContext(gh),_=hee(),v=gee(s,{relative:l}),y=o.toLowerCase()===`get`?`get`:`post`,b=typeof s==`string`&&em.test(s);return p.createElement(`form`,{ref:h,method:y,action:v,onSubmit:r?c:e=>{if(c&&c(e),e.defaultPrevented)return;e.preventDefault();let r=e.nativeEvent.submitter,s=r?.getAttribute(`formmethod`)||o,m=()=>_(r||e.currentTarget,{fetcherKey:t,method:s,navigate:n,replace:i,state:a,relative:l,preventScrollReset:u,viewTransition:d,defaultShouldRevalidate:f});g&&n!==!1?p.startTransition(()=>m()):m()},...m,"data-discover":!b&&e===`render`?`true`:void 0})});zg.displayName=`Form`;function Bg(e){return`${e} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Vg(e){let t=p.useContext(lh);return sm(t,Bg(e)),t}function dee(e,{target:t,replace:n,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c,useTransitions:l}={}){let u=Ah(),d=Dh(),f=Fh(e,{relative:o});return p.useCallback(m=>{if(dg(m,t)){m.preventDefault();let t=n===void 0?fm(d)===fm(f):n,h=()=>u(e,{replace:t,mask:r,state:i,preventScrollReset:a,relative:o,viewTransition:s,defaultShouldRevalidate:c});l?p.startTransition(()=>h()):h()}},[d,u,f,n,r,i,t,e,a,o,s,c,l])}function fee(e){cm(typeof URLSearchParams<`u`,"You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let t=p.useRef(fg(e)),n=p.useRef(!1),r=Dh(),i=p.useMemo(()=>pg(r.search,n.current?null:t.current),[r.search]),a=Ah();return[i,p.useCallback((e,t)=>{let r=fg(typeof e==`function`?e(new URLSearchParams(i)):e);n.current=!0,a(`?`+r,t)},[a,i])]}var pee=0,mee=()=>`__${String(++pee)}__`;function hee(){let{router:e}=Vg(`useSubmit`),{basename:t}=p.useContext(gh),n=Xh(),r=e.fetch,i=e.navigate;return p.useCallback(async(e,a={})=>{let{action:o,method:s,encType:c,formData:l,body:u}=iee(e,t);if(a.navigate===!1){let e=a.fetcherKey||mee();await r(e,n,a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,flushSync:a.flushSync})}else await i(a.action||o,{defaultShouldRevalidate:a.defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||c,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,i,t,n])}function gee(e,{relative:t}={}){let{basename:n}=p.useContext(gh),r=p.useContext(vh);sm(r,`useFormAction must be used inside a RouteContext`);let[i]=r.matches.slice(-1),a={...Fh(e||`.`,{relative:t})},o=Dh();if(e==null){a.search=o.search;let e=new URLSearchParams(a.search),t=e.getAll(`index`);if(t.some(e=>e===``)){e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();a.search=n?`?${n}`:``}}return(!e||e===`.`)&&i.route.index&&(a.search=a.search?a.search.replace(/^\?/,`?index&`):`?index`),n!==`/`&&(a.pathname=a.pathname===`/`?n:Wm([n,a.pathname])),fm(a)}function _ee(e,{relative:t}={}){let n=p.useContext(ph);sm(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=Vg(`useViewTransitionState`),i=Fh(e,{relative:t});if(!n.isTransitioning)return!1;let a=Im(n.currentLocation.pathname,r)||n.currentLocation.pathname,o=Im(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Mm(i.pathname,o)!=null||Mm(i.pathname,a)!=null}var G={health:[`health`],version:[`version`],auth:[`auth`],settings:[`settings`],update:[`update`],models:(e,t)=>[`models`,e??``,t??``],model:e=>[`model`,e],priceKeys:[`price-keys`],templates:[`provider-templates`],quotaTemplates:[`provider-quota-templates`],providers:[`providers`],importSources:[`import-sources`],provider:e=>[`provider`,e],providerModels:e=>[`provider-models`,e],remoteModels:e=>[`remote-models`,e],templateUpdate:e=>[`template-update`,e],clients:[`clients`],claudeDirect:[`claude-direct`],claudeDirectRequests:e=>[`claude-direct-requests`,e],tokens:[`tokens`],clientModels:e=>[`client-models`,e],backups:e=>[`backups`,e],clientInstallJob:e=>[`client-install-job`,e],privacy:[`privacy`],privacyEvents:e=>[`privacy-events`,e],privacyEventStats:(...e)=>[`privacy-event-stats`,...e],providerAccounts:e=>[`provider-accounts`,e],subscriptionPolicy:e=>[`subscription-policy`,e],localCodexLogin:[`local-codex-login`],localCopilotLogin:[`local-copilot-login`],resetCredits:e=>[`reset-credits`,e],requests:e=>[`requests`,e],request:e=>[`request`,e],stats:(e,...t)=>[`stats`,e,...t]},Hg=()=>et({queryKey:G.health,queryFn:({signal:e})=>U(`GET`,`/api/health`,void 0,e),refetchInterval:5e3,retry:!1}),Ug=()=>et({queryKey:G.version,queryFn:()=>U(`GET`,`/api/version`),staleTime:1/0}),Wg=()=>et({queryKey:G.auth,queryFn:()=>U(`GET`,`/api/auth/status`),retry:!1});function vee(){let e=g();return nt({mutationFn:e=>U(`POST`,`/api/auth/login`,{password:e}),onSuccess:()=>e.invalidateQueries()})}function yee(){let e=g();return nt({mutationFn:()=>U(`POST`,`/api/auth/logout`),onSuccess:()=>e.invalidateQueries({queryKey:G.auth})})}var Gg=()=>et({queryKey:G.settings,queryFn:()=>U(`GET`,`/api/settings`)});function Kg(){let e=g();return nt({mutationFn:e=>U(`PATCH`,`/api/settings`,e),onSuccess:t=>e.setQueryData(G.settings,t)})}var bee=()=>et({queryKey:G.update,queryFn:({signal:e})=>U(`GET`,`/api/update/status`,void 0,e),refetchInterval:3e5});function xee(){let e=g();return nt({mutationFn:()=>U(`POST`,`/api/update/check`),onSuccess:t=>e.setQueryData(G.update,t)})}var qg=(e,t)=>et({queryKey:G.models(e,t),queryFn:()=>U(`GET`,`/api/models${Wp({search:e,vendor:t})}`),placeholderData:e=>e}),See=e=>et({queryKey:G.model(e??``),queryFn:()=>U(`GET`,`/api/models/${W(e)}`),enabled:!!e}),Jg=()=>et({queryKey:G.priceKeys,queryFn:()=>U(`GET`,`/api/price-keys`)});function Yg(e,t){e.invalidateQueries({queryKey:[`models`]}),e.invalidateQueries({queryKey:t?G.model(t):[`model`]}),e.invalidateQueries({queryKey:G.priceKeys}),e.invalidateQueries({queryKey:[`provider-models`]}),e.invalidateQueries({queryKey:[`client-models`]}),e.invalidateQueries({queryKey:[`remote-models`]})}function Cee(){let e=g();return nt({mutationFn:e=>U(`POST`,`/api/models`,e),onSuccess:t=>Yg(e,t.id)})}function wee(e){let t=g();return nt({mutationFn:t=>U(`PUT`,`/api/models/${W(e)}`,t),onSuccess:()=>Yg(t,e)})}function Tee(){let e=g();return nt({mutationFn:e=>U(`DELETE`,`/api/models/${W(e)}`),onSuccess:()=>Yg(e)})}function Eee(e){let t=g();return nt({mutationFn:t=>U(`POST`,`/api/models/${W(e)}/reset-field`,{field:t}),onSuccess:()=>Yg(t,e)})}function Dee(e){let t=g();return nt({mutationFn:t=>U(`PUT`,`/api/models/${W(e)}/prices/${W(t.priceKey)}`,{upstreamModelId:t.upstreamModelId??null,pricing:t.pricing}),onSuccess:()=>Yg(t,e)})}function Oee(e){let t=g();return nt({mutationFn:t=>U(`DELETE`,`/api/models/${W(e)}/prices/${W(t)}`),onSuccess:()=>Yg(t,e)})}var kee=()=>nt({mutationFn:()=>U(`POST`,`/api/models/sync/preview`)});function Aee(){let e=g();return nt({mutationFn:e=>U(`POST`,`/api/models/sync/apply`,{changeIds:e}),onSuccess:()=>Yg(e)})}var jee=()=>nt({mutationFn:e=>U(`POST`,`/api/billing/simulate`,e)}),Mee=()=>et({queryKey:G.templates,queryFn:()=>U(`GET`,`/api/provider-templates`),staleTime:3e5}),Xg=()=>et({queryKey:G.providers,queryFn:()=>U(`GET`,`/api/providers`)}),Zg=e=>et({queryKey:G.provider(e??``),queryFn:()=>U(`GET`,`/api/providers/${W(e)}`),enabled:!!e});function Qg(e,t){e.invalidateQueries({queryKey:G.providers}),e.invalidateQueries({queryKey:t?G.provider(t):[`provider`]}),e.invalidateQueries({queryKey:G.clients}),e.invalidateQueries({queryKey:[`client-models`]})}var $g=e=>et({queryKey:G.importSources,queryFn:()=>U(`GET`,`/api/providers/import/sources`),enabled:e,staleTime:0,gcTime:0});function e_(){let e=g();return nt({mutationFn:e=>U(`POST`,`/api/providers/import`,e),onSuccess:()=>{Qg(e),e.invalidateQueries({queryKey:G.importSources})}})}function t_(){let e=g();return nt({mutationFn:e=>U(`POST`,`/api/providers`,e),onSuccess:t=>Qg(e,t.id)})}function n_(e){let t=g();return nt({mutationFn:t=>U(`PATCH`,`/api/providers/${W(e)}`,t),onSuccess:n=>{t.setQueryData(G.provider(e),n),Qg(t,e),t.invalidateQueries({queryKey:G.providerModels(e)}),t.invalidateQueries({queryKey:G.remoteModels(e)})}})}function r_(e){let t=g();return nt({mutationFn:t=>U(`PUT`,`/api/providers/${W(e)}/model-map`,{map:t}),onSuccess:n=>{t.setQueryData(G.provider(e),n),Qg(t,e)}})}function i_(){let e=g();return nt({mutationFn:e=>U(`DELETE`,`/api/providers/${W(e)}`),onSuccess:()=>Qg(e)})}var a_=()=>et({queryKey:G.quotaTemplates,queryFn:()=>U(`GET`,`/api/provider-quota/templates`),staleTime:1/0});function o_(e,t,n){let r=e=>e.id===t?{...e,quotaConfig:n.config,quota:n.snapshot??null,quotaCheckedAtUtc:n.checkedAtUtc??null}:e;e.setQueryData(G.provider(t),e=>e&&r(e)),e.setQueryData(G.providers,e=>e?.map(r))}function s_(){let e=g();return nt({mutationFn:e=>U(`POST`,`/api/providers/${W(e)}/quota`),onSuccess:(t,n)=>o_(e,n,t),onError:(t,n)=>void e.invalidateQueries({queryKey:G.provider(n)})})}function c_(e){let t=g();return nt({mutationFn:t=>U(`PUT`,`/api/providers/${W(e)}/quota/config`,t),onSuccess:n=>o_(t,e,n)})}var l_=e=>nt({mutationFn:t=>U(`POST`,`/api/providers/${W(e)}/quota/test`,t)});function u_(){let e=g();return nt({mutationFn:e=>U(`POST`,`/api/providers/${W(e)}/duplicate`),onSuccess:()=>Qg(e)})}function d_(e,t,n,r){return Kp(`/api/providers/${W(e)}/test`,t,n,r)}var f_=(e,t)=>et({queryKey:G.remoteModels(e),queryFn:()=>U(`GET`,`/api/providers/${W(e)}/remote-models`),enabled:t,retry:!1}),p_=(e,t)=>et({queryKey:G.templateUpdate(e),queryFn:()=>U(`GET`,`/api/providers/${W(e)}/template-update`),enabled:t});function m_(e){let t=g();return nt({mutationFn:()=>U(`POST`,`/api/providers/${W(e)}/template-update`),onSuccess:()=>{Qg(t,e),t.invalidateQueries({queryKey:G.providerModels(e)}),t.invalidateQueries({queryKey:G.remoteModels(e)}),t.invalidateQueries({queryKey:G.templateUpdate(e)})}})}var h_=e=>et({queryKey:G.providerModels(e??``),queryFn:()=>U(`GET`,`/api/providers/${W(e)}/models`),enabled:!!e});function g_(e,t){e.invalidateQueries({queryKey:G.providerModels(t)}),e.invalidateQueries({queryKey:G.remoteModels(t)}),e.invalidateQueries({queryKey:[`model`]}),Qg(e,t)}function __(e){let t=g();return nt({mutationFn:t=>U(`POST`,`/api/providers/${W(e)}/models`,{modelIds:t}),onSuccess:()=>g_(t,e)})}function v_(e){let t=g();return nt({mutationFn:t=>{let{pmId:n,...r}=t;return U(`PATCH`,`/api/providers/${W(e)}/models/${n}`,r)},onSuccess:()=>g_(t,e)})}function y_(e){let t=g();return nt({mutationFn:t=>U(`DELETE`,`/api/providers/${W(e)}/models/${t}`),onSuccess:()=>g_(t,e)})}var b_=()=>et({queryKey:G.privacy,queryFn:()=>U(`GET`,`/api/privacy`)});function x_(){let e=g();return nt({mutationFn:e=>U(`PUT`,`/api/privacy`,e),onSuccess:t=>e.setQueryData(G.privacy,e=>e&&{...e,settings:t})})}var S_=()=>nt({mutationFn:e=>U(`POST`,`/api/privacy/dry-run`,e)}),C_=(e,t)=>et({queryKey:G.privacyEvents(e),queryFn:()=>U(`GET`,`/api/privacy/events${Wp({...e})}`),placeholderData:e=>e,refetchInterval:t?5e3:!1}),w_=e=>et({queryKey:G.privacyEventStats(e),queryFn:()=>U(`GET`,`/api/privacy/events/stats${Wp({range:e})}`),refetchInterval:15e3,placeholderData:e=>e}),T_=(e,t=!0)=>et({queryKey:G.providerAccounts(e??``),queryFn:()=>U(`GET`,`/api/providers/${W(e)}/accounts`),enabled:!!e&&t});function E_(e,t){e.invalidateQueries({queryKey:G.providerAccounts(t)})}function D_(e){let t=g();return nt({mutationFn:e=>U(`POST`,`/api/provider-accounts/${W(e)}/refresh`),onSuccess:()=>E_(t,e)})}function O_(e){let t=g();return nt({mutationFn:e=>U(`POST`,`/api/provider-accounts/${W(e)}/quota`),onSuccess:()=>E_(t,e)})}function k_(e,t){let n=g();return nt({mutationFn:t,onSuccess:t=>n.setQueryData(G.providerAccounts(e),t)})}var A_=e=>k_(e,e=>U(`POST`,`/api/provider-accounts/${W(e)}/activate`)),j_=e=>k_(e,({id:e,...t})=>U(`PATCH`,`/api/provider-accounts/${W(e)}`,t)),M_=e=>k_(e,t=>U(`PUT`,`/api/providers/${W(e)}/accounts/order`,{ids:t})),N_=(e,t=!0)=>et({queryKey:G.subscriptionPolicy(e),queryFn:()=>U(`GET`,`/api/providers/${W(e)}/subscription-policy`),enabled:t});function P_(e){let t=g();return nt({mutationFn:t=>U(`PUT`,`/api/providers/${W(e)}/subscription-policy`,t),onSuccess:n=>{t.setQueryData(G.subscriptionPolicy(e),n),t.invalidateQueries({queryKey:G.provider(e)})}})}function F_(e){let t=g();return nt({mutationFn:e=>U(`DELETE`,`/api/provider-accounts/${W(e)}`),onSuccess:()=>E_(t,e)})}var I_=e=>nt({mutationFn:t=>U(`POST`,`/api/providers/${W(e)}/accounts/login`,{accountId:t||void 0})}),L_=e=>nt({mutationFn:t=>U(`POST`,`/api/providers/${W(e)}/accounts/login/${W(t)}/poll`)}),R_=(e=!0)=>et({queryKey:G.localCodexLogin,queryFn:()=>U(`GET`,`/api/subscription/codex/local-login`),enabled:e,retry:!1});function z_(e){let t=g();return nt({mutationFn:()=>U(`POST`,`/api/providers/${W(e)}/accounts/import-codex`,{}),onSuccess:()=>E_(t,e)})}var B_=e=>nt({mutationFn:t=>U(`POST`,`/api/providers/${W(e)}/accounts/login/${W(t.state)}/complete`,{code:t.code})}),V_=(e=!0)=>et({queryKey:G.localCopilotLogin,queryFn:()=>U(`GET`,`/api/subscription/copilot/local-login`),enabled:e,retry:!1});function H_(e){let t=g();return nt({mutationFn:t=>U(`POST`,`/api/providers/${W(e)}/accounts/import-copilot`,{token:t&&t.trim().length>0?t.trim():null}),onSuccess:(n,r)=>{E_(t,e),t.invalidateQueries({queryKey:G.localCopilotLogin})}})}function U_(e){let t=g();return nt({mutationFn:t=>U(`POST`,`/api/providers/${W(e)}/accounts/import-copilot/batch`,{tokens:t}),onSuccess:()=>{E_(t,e),t.invalidateQueries({queryKey:G.localCopilotLogin})}})}var W_=(e,t=!0)=>et({queryKey:G.resetCredits(e??``),queryFn:()=>U(`GET`,`/api/provider-accounts/${W(e)}/reset-credits`),enabled:!!e&&t,retry:!1});function G_(e){let t=g();return nt({mutationFn:e=>U(`POST`,`/api/provider-accounts/${W(e.accountId)}/reset-credits/${W(e.creditId)}/consume`,{}),onSuccess:(n,r)=>{E_(t,e),t.invalidateQueries({queryKey:G.resetCredits(r.accountId)})}})}var K_=()=>et({queryKey:G.clients,queryFn:()=>U(`GET`,`/api/clients`),refetchInterval:e=>e.state.data?.some(e=>e.install?.busy)?2e3:!1}),q_=()=>X_(()=>U(`POST`,`/api/clients/reapply`,{})),J_=(e,t=!0)=>et({queryKey:G.clientModels(e??``),queryFn:()=>U(`GET`,`/api/clients/${e}/models`),enabled:!!e&&t,retry:!1}),Y_=(e,t=!0)=>et({queryKey:G.backups(e??``),queryFn:()=>U(`GET`,`/api/clients/${e}/backups`),enabled:!!e&&t});function X_(e,t=()=>[]){let n=g();return nt({mutationFn:e,onSuccess:(e,r)=>{n.invalidateQueries({queryKey:G.clients}),n.invalidateQueries({queryKey:G.providers}),n.invalidateQueries({queryKey:[`provider`]}),n.invalidateQueries({queryKey:[`client-models`]});for(let e of t(r))n.invalidateQueries({queryKey:e})}})}var Z_=()=>X_(e=>U(`PUT`,`/api/clients/${e.kind}/binding`,{providerId:e.providerId,accountId:e.accountId}),e=>[G.clientModels(e.kind)]),Q_=()=>X_(e=>U(`PUT`,`/api/clients/${e.kind}/bindings`,{bindings:e.bindings}),e=>[G.clientModels(e.kind)]),$_=()=>nt({mutationFn:e=>U(`POST`,`/api/clients/${e.kind}/preview-enable`,e.req)}),ev=()=>X_(e=>U(`POST`,`/api/clients/${e.kind}/enable`,e.req),e=>[G.backups(e.kind)]),tv=()=>X_(e=>U(`POST`,`/api/clients/${e}/disable`)),nv=()=>X_(e=>U(`POST`,`/api/clients/${e}/force-restore`)),rv=()=>X_(e=>U(`POST`,`/api/clients/${e.kind}/backups/${W(e.id)}/restore`),e=>[G.backups(e.kind)]);function iv(){let e=g();return nt({mutationFn:e=>U(`POST`,`/api/clients/check-updates`,{force:e}),onSuccess:t=>e.setQueryData(G.clients,t)})}var av=(e,t=!0)=>et({queryKey:G.clientInstallJob(e??``),queryFn:()=>U(`GET`,`/api/clients/${e}/install`),enabled:!!e&&t,retry:!1,refetchInterval:e=>e.state.data?.state===`running`&&800});function ov(){let e=g();return nt({mutationFn:e=>U(`POST`,`/api/clients/${e.kind}/install`,{action:e.action,elevated:e.elevated??!1}),onSuccess:t=>{e.setQueryData(G.clientInstallJob(t.kind),t),e.invalidateQueries({queryKey:G.clients})}})}function sv(){let e=g();return nt({mutationFn:e=>U(`POST`,`/api/clients/${e}/install/cancel`,{}),onSuccess:t=>e.setQueryData(G.clientInstallJob(t.kind),t)})}var cv=`/api/clients/claude-code/direct`,lv=e=>et({queryKey:G.claudeDirect,queryFn:()=>U(`GET`,cv),enabled:e,retry:!1});function uv(){let e=g();return nt({mutationFn:e=>U(`POST`,`${cv}/profiles`,{name:e}),onSuccess:t=>e.setQueryData(G.claudeDirect,t)})}function dv(){let e=g();return nt({mutationFn:e=>U(`PUT`,cv,e),onSuccess:t=>{e.setQueryData(G.claudeDirect,t),e.invalidateQueries({queryKey:[`claude-direct-requests`]})}})}var Nee=(e,t)=>et({queryKey:G.claudeDirectRequests(e??``),queryFn:()=>U(`GET`,`${cv}/profiles/${W(e)}/requests`),enabled:!!e,retry:!1,refetchInterval:t?5e3:!1}),fv=()=>et({queryKey:G.tokens,queryFn:()=>U(`GET`,`/api/tokens`),refetchInterval:15e3});function pv(e){let t=g();return nt({mutationFn:e,onSuccess:()=>{t.invalidateQueries({queryKey:G.tokens}),t.invalidateQueries({queryKey:G.clients})}})}var Pee=()=>pv(e=>U(`POST`,`/api/tokens`,e)),mv=()=>pv(e=>{let{id:t,...n}=e;return U(`PATCH`,`/api/tokens/${W(t)}`,n)}),Fee=()=>pv(e=>U(`POST`,`/api/tokens/${W(e)}/reset`)),Iee=()=>pv(e=>U(`DELETE`,`/api/tokens/${W(e)}`)),Lee=()=>nt({mutationFn:e=>U(`POST`,`/api/tokens/${W(e)}/reveal`)}),hv=(e,t)=>et({queryKey:G.requests(e),queryFn:()=>U(`GET`,`/api/requests${Wp({...e})}`),placeholderData:e=>e,refetchInterval:t?5e3:!1}),Ree=e=>et({queryKey:G.request(e??``),queryFn:()=>U(`GET`,`/api/requests/${W(e)}`),enabled:!!e,refetchInterval:e=>e.state.data?.status===`pending`&&1e3}),zee=e=>et({queryKey:G.stats(`rate`,e),queryFn:()=>U(`GET`,`/api/stats/rate${Wp({...e})}`),placeholderData:e=>e,refetchInterval:5e3}),gv=()=>-new Date().getTimezoneOffset(),Bee=(e,t,n)=>et({queryKey:G.stats(`summary`,e,t??``,n??``),queryFn:()=>U(`GET`,`/api/stats/summary${Wp({range:e,client:t,token:n})}`),refetchInterval:15e3,placeholderData:e=>e}),_v=(e,t,n,r,i)=>et({queryKey:G.stats(`timeseries`,e,t,n,r??``,i??``,gv()),queryFn:()=>U(`GET`,`/api/stats/timeseries${Wp({range:e,groupBy:t,by:n,client:r,token:i,tzOffset:gv()})}`),refetchInterval:3e4,placeholderData:e=>e}),Vee=(e,t,n=8,r)=>et({queryKey:G.stats(`top`,e,t??``,n,r??``),queryFn:()=>U(`GET`,`/api/stats/top-models${Wp({range:e,limit:n,client:t,token:r})}`),refetchInterval:3e4,placeholderData:e=>e}),Hee=(e=365,t,n)=>et({queryKey:G.stats(`activity`,e,t??``,n??``,gv()),queryFn:()=>U(`GET`,`/api/stats/activity-heatmap${Wp({days:e,client:t,token:n,tzOffset:gv()})}`),refetchInterval:6e4,placeholderData:e=>e}),Uee={"common.cancel":`取消`,"common.confirm":`确定`,"common.close":`关闭`,"common.save":`保存`,"common.saved":`已保存`,"common.revert":`还原`,"common.apply":`应用`,"common.delete":`删除`,"common.edit":`编辑`,"common.add":`添加`,"common.create":`创建`,"common.back":`返回`,"common.done":`完成`,"common.more":`更多`,"common.copy":`复制`,"common.copied":`已复制到剪贴板`,"common.refresh":`刷新`,"common.enabled":`启用`,"common.yes":`是`,"common.no":`否`,"common.prev":`上一页`,"common.next":`下一页`,"common.noData":`暂无数据`,"common.selectAll":`全选`,"common.unsaved":`有未保存的更改`,"common.invalidJson":`JSON 格式不正确`,"common.search":`搜索`,"common.clearSearch":`清空搜索`,"common.select":`请选择`,"common.noResults":`没有匹配项`,"common.error":`操作失败`,"pricing.tierMode":`计费方式`,"pricing.outputPolicy":`输出价格`,"pricing.editMode":`编辑方式`,"pricing.days":`生效日`,"models.sync.change":`变更`,"models.sync.changeOne":`项变更`,"models.sync.changeOther":`项变更`,"common.continue":`继续`,"providers.step.template":`选择模板`,"providers.step.details":`填写信息`,"clients.current":`当前提供商`,"common.deleting":`正在删除`,"common.deleted":`已删除`,"common.retry":`重试`,"providers.modelIds":`模型 ID`,"nav.overview":`概览`,"nav.requests":`请求日志`,"nav.clients":`客户端`,"nav.providers":`提供商`,"nav.models":`模型`,"nav.settings":`设置`,"nav.privacy":`隐私护栏`,"nav.tokens":`令牌`,"nav.group.config":`配置`,"nav.group.system":`系统`,"shell.running":`服务运行中`,"shell.connecting":`正在连接…`,"shell.disconnected":`未连接到服务`,"shell.startService":`启动服务`,"shell.startFailed":`服务启动失败`,"shell.collapseSidebar":`收起侧边栏`,"shell.expandSidebar":`展开侧边栏`,"banner.downDesktop":`无法连接 Astra 服务。可以在这里启动,或从菜单栏图标启动。`,"banner.downWeb":`无法连接 Astra 服务,正在重连…(可在终端运行 astra start)`,"banner.mismatch":`服务端 API 版本与界面不一致,请运行 astra update 后重启。`,"banner.clientsOutdated":`{names} 的配置还是旧的 Astra 地址或设置(例如 Astra 换了端口),更新后才能正常连接。`,"banner.clientsUpdate":`一键更新`,"banner.clientsUpdated":`已更新 {names},部分客户端需要重启后生效`,"login.subtitle":`该服务对外监听,请输入管理密码`,"login.password":`管理密码`,"login.submit":`登录`,"range.today":`今日`,"range.7d":`7 天`,"range.30d":`30 天`,"range.90d":`90 天`,"range.all":`全部`,"overview.cost":`费用`,"overview.requests":`请求数`,"overview.successRate":`成功率`,"overview.tokens":`Token`,"overview.avgTtft":`平均 TTFT`,"overview.costTrend":`费用趋势`,"overview.range":`时间范围`,"overview.measure":`指标`,"overview.trend":`趋势`,"overview.tokensContext":`输入 {input} · 输出 {output}`,"overview.hourlyAverage":`每小时平均`,"overview.dailyAverage":`每日平均`,"overview.total":`合计`,"overview.hour":`小时`,"overview.day":`日期`,"overview.by.model":`模型`,"overview.by.provider":`提供商`,"overview.by.client":`客户端`,"overview.by.token":`令牌`,"overview.other":`其他`,"overview.topModels":`费用最高的模型`,"overview.topModelDetail":`{requests} 次请求 · {tokens} tokens`,"overview.empty.title":`还没有请求`,"overview.empty.detail":`在「客户端」中启用一个客户端,或把任意 OpenAI / Anthropic / Gemini 兼容工具指向下面的网关地址。`,"overview.clientFilter":`按客户端筛选`,"overview.allClients":`全部`,"overview.tokenFilter":`按令牌筛选`,"overview.allTokens":`全部令牌`,"overview.clientEmpty.title":`{client} 暂无请求`,"overview.clientEmpty.detail":`{range}内没有来自该客户端的请求,可切换到其他客户端或时间范围。`,"overview.tokenEmpty.title":`{token} 暂无请求`,"overview.tokenEmpty.detail":`{range}内没有使用该令牌的请求,可切换到其他令牌或时间范围。`,"overview.totalCost":`总成本`,"overview.totalRequests":`总请求数`,"overview.usageTrend":`使用趋势`,"overview.breakdown":`明细`,"overview.viewAll":`查看全部`,"overview.col.input":`输入`,"overview.col.output":`输出`,"overview.col.cacheHit":`缓存命中`,"overview.col.speed":`速度`,"overview.col.share":`占比`,"overview.activity":`活跃度`,"overview.activitySummary":`{from} ~ {to} · {active} / {days} 天有活动`,"overview.activityPeak":`最多 {count} 次/天`,"overview.activityUnit":`次请求`,"overview.activityNone":`无活动`,"overview.activityLegend.less":`少`,"overview.activityLegend.more":`多`,"requests.total":`共 {count} 条`,"requests.rate.rpm":`RPM`,"requests.rate.tpm":`TPM`,"requests.rate.hint":`最近 {window} 秒的平均每分钟请求数(RPM)、令牌数(TPM,仅已完成请求)与缓存命中率;跟随当前筛选,每 5 秒自动刷新。`,"requests.elapsed":`已等待(尚未收到首个 token)`,"requests.searchModel":`搜索模型 ID(支持关键字)`,"requests.noFilters":`未设置筛选`,"requests.clearFilters":`清空筛选`,"requests.backToFilters":`返回筛选字段`,"requests.removeFilter":`移除筛选:{filter}`,"requests.filterAdded":`已添加筛选:{filter}`,"requests.filterChanged":`已修改筛选:{filter}`,"requests.filterRemoved":`已移除筛选:{filter}`,"requests.filtersCleared":`已清空全部筛选`,"requests.filteredEmpty":`没有符合筛选条件的记录`,"requests.filteredEmpty.detail":`试试其他模型关键字,或清空筛选条件。`,"requests.returnedModel":`返回:{model}`,"requests.modelMatch":`一致`,"requests.modelMismatch":`不一致`,"requests.modelComparison":`请求:{requested};上游发送:{upstream};API 返回:{returned}`,"requests.modelNotRecorded":`未记录`,"requests.modelNotRecorded.hint":`历史记录或 API 未返回模型 ID;不会用请求模型代替。`,"requests.allClients":`全部客户端`,"requests.allTokens":`全部令牌`,"requests.col.token":`令牌`,"requests.detail.account":`订阅账号`,"requests.direct":`直连`,"requests.allProviders":`全部提供商`,"requests.allStatus":`全部状态`,"requests.col.time":`时间`,"requests.col.client":`客户端`,"requests.col.model":`模型`,"requests.col.provider":`提供商`,"requests.col.status":`状态`,"requests.col.tokens":`输入/输出`,"requests.col.cost":`费用`,"requests.empty":`没有请求记录`,"requests.empty.detail":`经过 Astra 的每次请求都会记录在这里,包括逐项 token 与计费明细。`,"requests.page":`第 {page} / {pages} 页`,"requests.filters":`当前筛选`,"requests.addFilter":`添加筛选`,"requests.openDetail":`查看 {model} 的请求详情`,"requests.viewError":`点击查看错误信息`,"requests.detail.title":`请求详情`,"requests.detail.summary":`概要`,"requests.detail.protocol":`协议`,"requests.detail.requestedModel":`请求模型`,"requests.detail.upstreamModel":`上游发送模型`,"requests.detail.responseModel":`API 返回模型`,"requests.detail.systemModel":`系统模型`,"requests.detail.stream":`流式`,"requests.detail.upstreamId":`上游请求 ID`,"requests.detail.timing":`耗时`,"requests.detail.generation":`生成耗时`,"requests.detail.total":`总耗时`,"requests.detail.tps":`输出速度`,"requests.detail.error":`错误`,"requests.detail.privacy":`隐私护栏`,"requests.detail.privacyBlocked":`该请求被拦截`,"requests.detail.privacyDryRun":`试运行(未处理)`,"requests.detail.privacyRedacted":`已脱敏 {count} 处`,"requests.detail.billing":`计费`,"requests.detail.usageMissing":`上游未返回用量,本次请求记为 0。`,"requests.detail.usageRaw":`原始 usage`,"requests.detail.pricingSnapshot":`价格快照`,"requests.body.clientRequest":`客户端请求体`,"requests.body.upstreamRequest":`上游请求体`,"requests.body.upstreamRequestHeaders":`上游请求头(发往提供商,凭据脱敏)`,"requests.body.upstreamResponse":`上游响应体`,"requests.body.clientResponse":`返回客户端的响应体`,"requests.reasoning":`推理`,"requests.reasoning.notRecorded":`未记录`,"requests.reasoning.budget":`预算 {tokens}`,"requests.reasoning.hint":`客户端请求中明确设置的推理配置;未记录表示该请求未设置或为旧日志,不会用预算或提供商默认值推断。`,"requests.detail.reasoning":`推理强度`,"status.success":`成功`,"status.blocked":`已拦截`,"status.upstream_error":`上游错误`,"status.gateway_error":`网关错误`,"status.client_cancelled":`已取消`,"status.pending":`进行中`,"billing.unpriced":`未配置价格`,"billing.type":`类型`,"billing.tokens":`数量`,"billing.unitPrice":`单价 /1M`,"billing.tier":`档位`,"billing.cost":`费用`,"pricingSource.override":`提供商自定义价`,"pricingSource.provider":`提供商价格 · {key}`,"pricingSource.default":`官方默认价`,"pricingSource.none":`无价格`,"simulator.official":`官方默认价`,"simulator.serviceTier":`service_tier`,"simulator.time":`请求时间(用于时段计费)`,"simulator.run":`计算`,"pricing.none":`尚未配置价格`,"pricing.add":`添加价格`,"pricing.remove":`移除价格`,"pricing.mode.form":`表单`,"pricing.unit":`USD / 百万 tokens`,"pricing.base":`基础价格`,"pricing.perRequest":`每次请求`,"pricing.notes":`备注`,"pricing.name":`名称`,"pricing.contextTiers":`上下文分档`,"pricing.contextTiers.hint":`输入 token 超过阈值时改用另一档价格(如 Claude >200K)。`,"pricing.addTier":`添加分档`,"pricing.threshold":`阈值`,"pricing.mode.whole":`整单套用`,"pricing.mode.progressive":`分段累进`,"pricing.output.highest":`输出按最高档`,"pricing.output.base":`输出按基础价`,"pricing.timeWindows":`时段规则`,"pricing.timeWindows.hint":`按时区和时段调整价格(如 DeepSeek 夜间优惠),可排除节假日。`,"pricing.addWindow":`添加时段`,"pricing.excludeDates":`排除日期 yyyy-MM-dd, …`,"pricing.serviceTiers":`服务等级`,"pricing.serviceTiers.hint":`按 service_tier(flex / priority)调整价格。`,"pricing.addServiceTier":`添加等级`,"pricing.hasOwnPrices":`含独立价格(JSON 编辑)`,"pricing.ruleNameTaken":`该服务等级名称已存在`,"pricing.timezone":`时区`,"pricing.invalidTimezone":`请输入有效的 IANA 时区`,"pricing.start":`开始时间`,"pricing.end":`结束时间`,"pricing.multiplier":`倍率`,"clients.subtitle":`让本机的 AI 客户端通过 Astra 访问模型`,"clients.comingSoon":`即将支持`,"clients.comingSoonDetail":`该客户端的配置方式尚未确认`,"clients.drifted":`配置已被修改`,"clients.enabled":`已启用`,"clients.disabled":`未启用`,"clients.detected":`已检测到 {version}`,"clients.notDetected":`未检测到安装`,"clients.group.installed":`已安装`,"clients.group.notInstalled":`未检测到`,"clients.group.comingSoon":`即将支持`,"clients.checkUpdates":`检查更新`,"clients.updatesFound":`{count} 个客户端有新版本`,"clients.allUpToDate":`所有客户端都是最新版本`,"clients.updateBadge":`可更新`,"clients.shadowedBadge":`需调整 PATH`,"clients.updateTo":`更新到 {version}`,"clients.install":`安装`,"clients.download":`下载`,"clients.installRunning":`进行中…`,"clients.versionTitle":`版本与更新`,"clients.currentVersion":`当前版本`,"clients.latestVersion":`最新版本`,"clients.versionUnknown":`版本未知`,"clients.notInstalled":`未安装`,"clients.latestUnknown":`未检查`,"clients.checkedAt":`检查于 {time}`,"clients.installMethod":`安装方式`,"clients.method.npm":`npm 全局包 {package}`,"clients.method.vscode-extension":`VS Code 扩展 {package}`,"clients.method.script":`官方安装脚本`,"clients.method.manual":`从官网下载安装`,"clients.homepage":`官网`,"clients.blocker.npm-missing":`没有找到 npm。先安装 Node.js(自带 npm),再回来安装。`,"clients.blocker.vscode-missing":`没有找到 VS Code 的 code 命令,请先安装 VS Code。`,"clients.blocker.script-missing":`这个系统上没有对应的安装脚本,请从官网手动安装。`,"clients.blocker.external-install":`{path} 不是通过 npm 安装的,请用原来的安装方式更新。`,"clients.blocker.shadowed":`最新版本已经装在另一个位置,再更新一次也不会改变终端里运行的版本;按上面的提示调整 PATH 即可。`,"clients.installLog":`安装日志`,"clients.noInstallLog":`还没有安装记录`,"clients.job.running":`正在运行…`,"clients.job.succeeded":`已完成`,"clients.job.failed":`失败`,"clients.job.cancelled":`已停止`,"clients.hint.permission-denied":`npm 没有权限写入全局目录(通常是之前用 sudo 安装过,目录属于系统管理员)。`,"clients.hint.admin-cancelled":`已取消管理员授权,没有做任何修改。`,"clients.hint.shadowed":`新版本装到了另一个位置,终端里运行的仍是旧的那一份。具体位置见下面的日志。`,"clients.hint.unchanged":`命令执行成功,但版本没有变化。`,"clients.hint.not-on-path":`装好的命令不在终端的 PATH 里,终端里无法直接运行。具体位置见下面的日志。`,"clients.job.notEffective":`已完成,但没有生效`,"clients.notEffectiveToast":`{name} 的命令执行成功,但没有生效,请查看安装日志`,"clients.otherCopy":`其他副本`,"clients.otherCopyNewer":`更新`,"clients.shadowed.title":`已有新版本 {version},但终端里用不到`,"clients.shadowed.detail":`终端运行的是 {path}({version}),更新的版本在 {other},它在 PATH 中排在后面或不在 PATH 里。把 {dir} 放到 PATH 最前面,或删掉旧的那一份,就会用上新版本。`,"clients.notOnPath.title":`不在终端的 PATH 里`,"clients.notOnPath.detail":`这个客户端装在 {dir},但终端的 PATH 里没有这个目录。把它加入 PATH(例如写进 ~/.zshrc)后,才能在终端直接运行。`,"clients.hint.timeout":`超过 15 分钟没有完成,已停止。`,"clients.admin.badge":`需管理员权限`,"clients.admin.tip":`npm 的全局目录属于系统管理员,安装时 macOS 会弹出授权框,需要输入开机密码`,"clients.admin.tipManual":`npm 的全局目录属于系统管理员,需要在终端用 sudo 运行`,"clients.admin.title":`需要管理员权限`,"clients.admin.prompt":`npm 的全局目录属于系统管理员。点击「授权并开始」后,系统会弹出授权框,输入开机密码(或使用触控 ID)即可;Astra 不会接触你的密码。`,"clients.admin.manual":`npm 的全局目录属于系统管理员,这里无法弹出授权框。请复制下面的命令,在终端中运行。`,"clients.admin.start":`授权并开始`,"clients.admin.copyCommand":`复制命令`,"clients.admin.retry":`以管理员身份重试`,"clients.admin.retryHint":`可以点「以管理员身份重试」,系统会弹出授权框。`,"clients.admin.running":`正在以管理员身份运行,命令结束后才会显示输出,运行中无法停止。`,"clients.admin.fixTip":`想以后安装、更新都不再需要管理员权限,可以在终端执行一次下面的命令,把 npm 全局目录交还给当前用户:`,"clients.installTitle":`安装 {name}`,"clients.updateTitle":`更新 {name}`,"clients.installRunDetail":`将在本机运行下面的命令,输出会实时显示在这里。`,"clients.installStart":`开始`,"clients.installStop":`停止`,"clients.installUnavailable":`当前无法执行这个操作`,"clients.installNpmNote":`全局安装会写入 npm 的全局目录;关闭窗口不会中断安装。`,"clients.installedToast":`{name} 已安装`,"clients.updatedToast":`{name} 已更新`,"clients.enable":`启用…`,"clients.disable":`禁用`,"clients.disableRestore":`禁用并还原`,"clients.pickProviderFirst":`请先在下方选择一个提供商`,"clients.appliedAt":`于 {time} 写入配置`,"clients.bound":`已切换到 {provider},立即生效`,"clients.boundModelsSynced":`已切换到 {provider},并同步了 {client} 配置里的模型列表`,"clients.disableConfirm":`禁用 {name}?`,"clients.disableDetail":`会撤销 Astra 写入的配置项,恢复为启用前的状态。`,"clients.disabledToast":`{name} 已禁用并还原配置`,"clients.driftTitle":`部分配置已被手动修改`,"clients.driftDetail":`以下配置项在启用后被改动过,未自动还原:{keys}。是否强制还原?`,"clients.forceRestore":`强制还原`,"clients.providerTitle":`使用的提供商`,"clients.providerFooter":`可以添加多个提供商并拖动排序:请求的模型(按模型 ID 精确匹配,或提供商的模型映射)由排在最前、提供该模型的提供商处理;都没有时交给第一个。修改立即生效,客户端的模型列表会自动包含所有提供商的模型。`,"clients.primaryProvider":`首选`,"clients.dragToReorder":`拖动调整 {provider} 的顺序`,"clients.removeProvider":`移除 {provider}`,"clients.providerDisabledBadge":`已停用`,"clients.moreProvidersTitle":`可添加的提供商`,"clients.providerAdded":`已添加 {provider},立即生效`,"clients.providerRemoved":`已移除 {provider}`,"clients.providerOrderSaved":`已更新提供商顺序,立即生效`,"clients.providersModelsSynced":`已更新提供商,并同步了 {client} 配置里的模型列表`,"clients.accountTitle":`订阅账号`,"clients.accountFooter":`绑定到具体账号,用量按账号统计;留空使用该提供商的默认账号。`,"clients.account":`账号`,"clients.accountDefault":`默认账号`,"clients.noProviders":`还没有可用的提供商`,"clients.noProvidersDetail":`先添加一个 AI 提供商,再为客户端选择它。`,"clients.modelTitle":`模型`,"clients.modelFooter":`启用时写入客户端配置的默认模型;不设置则使用客户端自己的默认值。`,"clients.modelFooterEnabled":`修改默认模型需要重新写入客户端配置。`,"clients.modelSlotsFooter":`选中的模型会写进 Claude Code 的配置(默认模型 ANTHROPIC_MODEL,各档位 ANTHROPIC_DEFAULT_*_MODEL);留空就不写入,配置文件里已有的同名设置也不会被改动。`,"clients.modelSlotsFooterEnabled":`修改后需要重新写入客户端配置。`,"clients.modelSlot.ANTHROPIC_MODEL":`默认模型`,"clients.modelSlot.ANTHROPIC_DEFAULT_OPUS_MODEL":`Opus 档位`,"clients.modelSlot.ANTHROPIC_DEFAULT_SONNET_MODEL":`Sonnet 档位`,"clients.modelSlot.ANTHROPIC_DEFAULT_HAIKU_MODEL":`Haiku 档位(快速/后台)`,"clients.defaultModel":`默认模型`,"clients.modelPlaceholder":`选择模型`,"clients.modelUnset":`不设置`,"clients.roleMapTitle":`角色映射`,"clients.roleMapFooter":`Claude Desktop 只认 Sonnet / Opus / Haiku 这类角色模型,Astra 会把它们换成这里选的提供商模型。至少设置一个;没设置的角色使用第一个已设置的。`,"clients.roleMapFooterEnabled":`映射在网关中实时生效,点击应用后保存。`,"clients.roleMapRequired":`请至少为一个角色选择模型`,"clients.role.sonnet":`Sonnet`,"clients.role.opus":`Opus`,"clients.role.haiku":`Haiku`,"clients.maintenance":`维护`,"clients.openConfigDir":`在访达中打开配置目录`,"clients.copyConfigPath":`复制配置文件路径`,"clients.backups":`配置备份`,"clients.backupsDetail":`每次修改前自动备份,可随时恢复。`,"clients.noBackups":`还没有备份`,"clients.firstWrite":`首次修改前`,"clients.restore":`恢复`,"clients.restoreConfirm":`用这个备份覆盖当前配置?`,"clients.restored":`已从备份恢复`,"clients.tokenTitle":`令牌`,"clients.token":`写入配置的令牌`,"clients.tokenFooter":`启用时把「令牌.客户端」写入客户端配置,用量按令牌统计。多个客户端可以共用一个令牌。`,"clients.tokenFooterEnabled":`更换令牌需要重新写入客户端配置。`,"clients.tokenDisabled":`{name}(已停用)`,"clients.manageTokens":`管理令牌`,"clients.claudeDirect.configure":`本机登录设置`,"clients.claudeDirect.modeTitle":`连接方式(Astra 启动器)`,"clients.claudeDirect.mode":`连接方式`,"clients.claudeDirect.gateway":`网关`,"clients.claudeDirect.direct":`官方直连`,"clients.claudeDirect.gatewayDetail":`使用原有网关配置;启用接管后,默认 Claude Code 请求经过 Astra。astra claude 仅用于直连模式。`,"clients.claudeDirect.directDetail":`用本机独立的 Claude 账号登录,请求直连 Anthropic 官方,不经过网关。`,"clients.claudeDirect.modeNote":`这里只影响 Astra 启动器自己的会话;直接运行 claude 仍是原来的默认配置。`,"clients.claudeDirect.modeFooter":`切换只改变启动方式,不会热切换已经运行的会话,也不会修改用户默认的 ~/.claude 配置。`,"clients.claudeDirect.gatewayTitle":`当前为网关模式`,"clients.claudeDirect.gatewayHint":`直连是可选的高级用法,需要本机已安装新版 Astra CLI:复制下面的命令,在终端里登录本机的独立 Claude 账号。保持网关模式就不需要做任何事。`,"clients.claudeDirect.loadFailed":`无法读取本机直连设置`,"clients.claudeDirect.profilesTitle":`本机登录(独立账号)`,"clients.claudeDirect.profilesFooter":`每个账号使用独立的配置目录(位于 Astra 数据目录下),不覆盖、也不复用用户自己的 ~/.claude 凭据。名称只是本机显示名,身份以终端里的 --status 为准。`,"clients.claudeDirect.noProfiles":`还没有本机登录:在下面填一个名称并添加,然后用终端命令登录。`,"clients.claudeDirect.selectedBadge":`使用中`,"clients.claudeDirect.statsBadge":`统计`,"clients.claudeDirect.makeSelected":`设为使用中`,"clients.claudeDirect.addProfile":`新增本机登录`,"clients.claudeDirect.addProfileDetail":`只创建配置目录和名称,不安装任何全局命令,也不会去登录。`,"clients.claudeDirect.name":`登录名称`,"clients.claudeDirect.namePlaceholder":`例如:公司账号`,"clients.claudeDirect.profileCreated":`已创建 {name},接着在终端执行下面的登录命令`,"clients.claudeDirect.needProfile":`先添加一个本机登录`,"clients.claudeDirect.needProfileDetail":`直连必须指定一个本机账号;在上面的「本机登录」里填名称并添加即可,不需要先切换模式。`,"clients.claudeDirect.launchTitle":`登录与启动`,"clients.claudeDirect.launchNote":`需要本机已安装新版 Astra CLI(npm i -g astragate)。Astra 不代替你启动登录进程:把命令复制到终端里执行,浏览器授权在你自己的机器上完成。`,"clients.claudeDirect.launchFooter":`账号是否已登录,请执行 --status 查看官方客户端报告的认证状态。选择配置不代表登录成功。`,"clients.claudeDirect.identityNote":`账号名称只是本机显示名;身份请以 --status 的输出为准。直连是有意不复用现有网关 OAuth 账号的独立登录。`,"clients.claudeDirect.defaultTitle":`只影响 Astra 启动器`,"clients.claudeDirect.defaultDetail":`这些命令只启动上面的本机账号,不会把它设为你的默认账号,也不覆盖默认凭据、不安装全局包装器。`,"clients.claudeDirect.statsTitle":`本机统计`,"clients.claudeDirect.statsConsent":`收集本机统计`,"clients.claudeDirect.statsConsentDetail":`默认关闭。开启后由 Claude Code 自己把用量数据发到本机 Astra:只有模型、时间、token 数和它自己估算的费用,没有对话正文、提示词和工具内容。`,"clients.claudeDirect.statsFooter":`Astra 仅在本机保存统计,留存时间沿用请求日志设置。关闭后立即停止接收;运行中会话仍可能尝试导出,重启后停止。估算不代表订阅扣费。组织策略可能覆盖客户端设置;直连不执行网关的拦截和脱敏。`,"clients.claudeDirect.statsEmpty":`还没有统计数据`,"clients.claudeDirect.statsEmptyDetail":`开启统计后,用上面的命令启动一次会话,数据会在几秒内出现在这里。`,"clients.claudeDirect.statsFailed":`无法读取统计`,"clients.claudeDirect.statsTotals":`最近 {count} 条`,"clients.claudeDirect.statsInDetail":`总输入(含缓存读 {cache}):{input} · 总输出:{output}`,"clients.claudeDirect.statsCost":`估算费用`,"clients.claudeDirect.statsCostDetail":`客户端自己估算,不代表实际订阅扣费。`,"clients.claudeDirect.statsFailedCount":`其中失败 {count} 条`,"clients.claudeDirect.statusError":`失败`,"clients.claudeDirect.tokensDetail":`输入 {input} / 输出 {output}`,"tokens.subtitle":`客户端和直接调用都通过令牌访问 Astra,用量按令牌统计`,"tokens.add":`新建令牌`,"tokens.default":`默认`,"tokens.disabledBadge":`已停用`,"tokens.copy":`复制令牌`,"tokens.copied":`已复制令牌`,"tokens.clients":`使用的客户端`,"tokens.noClients":`暂无客户端使用`,"tokens.directProvider":`直连提供商`,"tokens.directNone":`不允许直接调用`,"tokens.directAccount":`直连订阅账号`,"tokens.directHint":`在其他工具中填写网关地址 {url} 和该令牌即可直接调用,请求会发往直连提供商。`,"tokens.today":`今日`,"tokens.total":`累计`,"tokens.cost":`消耗`,"tokens.requests":`请求`,"tokens.cacheHit":`缓存命中率`,"tokens.tps":`TPS`,"tokens.tpsContext":`加权输出速度`,"tokens.tokens":`Token`,"tokens.inOut":`输入 / 输出`,"tokens.details":`展开详情`,"tokens.requestsContext":`{count} 次请求`,"tokens.lastUsedTitle":`最近使用`,"tokens.neverUsed":`尚未使用`,"tokens.settings":`设置`,"tokens.name":`名称`,"tokens.namePlaceholder":`例如:工作电脑`,"tokens.enable":`启用`,"tokens.disable":`停用`,"tokens.disableConfirm":`停用 {name}?`,"tokens.disableDetail":`使用该令牌的客户端和直接调用都会被拒绝,直到重新启用。不会修改客户端配置。`,"tokens.reset":`重置密钥`,"tokens.resetConfirm":`重置 {name} 的密钥?`,"tokens.resetDetail":`旧密钥立即失效。使用该令牌的已启用客户端会自动改写配置;被手动修改过的配置会跳过,需要重新启用。`,"tokens.resetDone":`已重置密钥,改写了 {count} 个客户端配置`,"tokens.skipped":`以下客户端未能自动更新,需要在「客户端」页面重新启用:{clients}`,"tokens.delete":`删除令牌`,"tokens.deleteConfirm":`删除 {name}?`,"tokens.deleteDetail":`使用它的客户端会切换到默认令牌并自动改写配置。历史请求日志保留该令牌的名称。`,"tokens.deleted":`已删除 {name}`,"tokens.created":`已创建 {name}`,"tokens.createTitle":`新建令牌`,"tokens.settingsTitle":`令牌设置 · {name}`,"tokens.empty":`还没有令牌`,"clients.enableTitle":`启用 {name}`,"clients.enableDetail":`以下是将要写入的改动。Astra 只新增或修改自己的配置项,并在首次修改前备份原文件。`,"clients.enabledToast":`{name} 已启用`,"clients.enabledRestart":`{name} 已启用,请重启客户端使配置生效`,"clients.noChanges":`配置已是最新,无需改动。`,"providers.add":`添加提供商`,"providers.count":`{count} 个提供商`,"providers.empty":`还没有提供商`,"providers.emptyDetail":`从内置模板添加 OpenAI、Anthropic、DeepSeek、OpenRouter 等,或接入自定义的兼容接口。`,"providers.import":`从其他应用导入`,"import.title":`从其他应用导入提供商`,"import.detail":`只读扫描 CC Switch、Alma、Claude Code、Codex、Magpie 的本地配置,不会修改它们;API Key 由服务端直接读取并加密保存,不经过浏览器。`,"import.search":`搜索名称或地址`,"import.path":`读取位置:{path}`,"import.notFound":`未找到`,"import.sourceError":`读取失败:{error}`,"import.noItems":`没有可导入的提供商`,"import.noMatch":`没有匹配的提供商`,"import.scanning":`正在扫描…`,"import.status.new":`新增`,"import.status.same":`已存在`,"import.status.sameHost":`同地址`,"import.status.off":`已停用`,"import.status.skip":`无法导入`,"import.existing":`已有提供商「{name}」`,"import.sameHostHint":`已有同地址提供商「{name}」,将作为新的提供商导入`,"import.noKey":`无 Key`,"import.models":`{count} 个模型`,"import.template":`模板:{id}`,"import.ignored":`将忽略:{fields}`,"import.skip.official-login":`官方登录(令牌绑定来源应用,不可导入)`,"import.skip.no-base-url":`缺少接口地址`,"import.skip.unsupported-protocol":`协议不支持`,"import.skip.points-to-astra":`指向 Astra 自身`,"import.skip.invalid-base-url":`接口地址无效`,"import.skip.no-inline-key":`Key 来自环境变量,不会读取`,"import.selected":`导入所选({count})`,"import.done":`已导入 {count} 个提供商`,"import.doneSkipped":`已导入 {count} 个提供商,跳过 {skipped} 个`,"import.footnote":`路由、限流、余额查询、会话与用量等设置不会导入;导入不会改动任何客户端配置,也不会发起上游请求。`,"import.rescan":`重新扫描`,"providers.modelCount":`{count} 个模型`,"providers.priceKeyShort":`价格:{key}`,"providers.templateUpdate":`模板更新`,"providers.noKey":`未设置密钥`,"providers.card.active":`已启用`,"providers.card.disabled":`已停用`,"providers.card.subscription":`订阅账号`,"providers.card.noAuth":`无需密钥`,"providers.card.requests7d":`近 7 天请求`,"providers.card.noRequests":`暂无请求`,"providers.created":`已添加 {name}`,"providers.addTitle":`选择提供商模板`,"providers.addTitleDetails":`填写提供商信息`,"providers.addDetail":`模板包含接口地址、协议和默认模型列表。`,"providers.custom":`自定义提供商`,"providers.customDetail":`任意 OpenAI / Anthropic / Gemini 兼容接口`,"providers.searchTemplates":`搜索模板`,"providers.category.recommended":`推荐`,"providers.category.official":`官方`,"providers.category.subscription":`订阅`,"providers.category.cn":`国内`,"providers.category.aggregator":`聚合平台`,"providers.category.local":`本地`,"providers.category.custom":`其他`,"providers.create":`添加`,"providers.name":`名称`,"providers.variant":`区域 / 版本`,"providers.variantDefault":`默认区域`,"providers.baseUrl":`接口地址`,"providers.baseUrlHint":`通常以 /v1 结尾`,"providers.protocol":`协议`,"providers.authScheme":`认证方式`,"providers.apiKey":`API Key`,"providers.apiKeyHint":`加密保存在本机`,"providers.subscriptionWizardHint":`无需 API Key——使用订阅账号登录`,"providers.subscriptionWizardDetail":`创建提供商后,在其「设置」标签页点击「登录订阅」,用浏览器完成授权即可。不同订阅的服务条款与配额以官方为准。`,"providers.subscriptionAdded":`已添加 · 在该提供商内添加账号`,"providers.subscription.quotaSession":`5h 已用 {percent}%`,"providers.subscription.quotaWeekly":`每周已用 {percent}%`,"providers.subscription.quotaCredits":`额度已用 {percent}%`,"providers.subscription.quotaBalance":`余额 {balance}`,"providers.subscription.quotaRefresh":`刷新额度`,"providers.subscription.quotaUnsupported":`该订阅暂不支持额度查询`,"providers.subscription.quotaResets":`重置于 {when}`,"providers.subscription.quotaLoading":`正在获取额度…`,"providers.subscription.quotaNoAccount":`账号已失效,重新登录后可查看额度`,"providers.subscription.quotaWindowPremium":`高级请求`,"providers.subscription.quotaPremiumCount":`已用 {used} / {total} 次高级请求`,"providers.subscription.quotaOverage":`额外 {count} 次`,"providers.subscription.quotaOverageOff":`未开启超额使用`,"providers.subscription.quotaFetchedAt":`更新于 {when}`,"providers.subscription.quotaNoWindows":`该账号没有可展示的额度窗口`,"providers.subscription.quotaWindowSession":`会话窗口`,"providers.subscription.quotaWindowWeekly":`每周窗口`,"providers.subscription.quotaWindowCredits":`额度`,"providers.quota.title":`用量查询`,"providers.quota.footer":`按模板查询该提供商的余额或套餐用量,结果显示在提供商卡片和托盘里。查询失败只会显示错误,不会影响提供商本身的使用。`,"providers.quota.enable":`启用用量查询`,"providers.quota.enableHint":`开启后按间隔在后台刷新`,"providers.quota.template":`查询模板`,"providers.quota.templateAuto":`自动({name})`,"providers.quota.templateNone":`自动(没有匹配的模板)`,"providers.quota.custom":`自定义`,"providers.quota.kind.balance":`余额`,"providers.quota.kind.plan":`套餐用量`,"providers.quota.param.userId":`用户 ID`,"providers.quota.param.accessToken":`系统访问令牌`,"providers.quota.paramsHint":`New API / One API 在个人设置里生成的系统访问令牌和用户 ID,不是 sk- 开头的 API Key。`,"providers.quota.secretStored":`已保存,留空不修改`,"providers.quota.interval":`自动查询间隔(分钟)`,"providers.quota.intervalHint":`留空跟随全局设置,0 表示不在后台查询。当前:{value}`,"providers.quota.intervalEvery":`每 {minutes} 分钟`,"providers.quota.intervalOff":`不在后台查询`,"providers.quota.timeout":`超时(秒)`,"providers.quota.baseUrl":`查询地址`,"providers.quota.baseUrlHint":`留空使用提供商的接口地址({{origin}} / {{baseUrl}} 由它得出)`,"providers.quota.method":`方法`,"providers.quota.url":`URL`,"providers.quota.urlHint":`可用占位符:{{origin}}、{{baseUrl}}、{{host}}、{{apiKey}} 以及上面的参数名`,"providers.quota.auth":`认证`,"providers.quota.auth.provider":`使用提供商的 API Key`,"providers.quota.auth.none":`只用下面的请求头`,"providers.quota.headers":`请求头(JSON)`,"providers.quota.extract":`提取规则(JSON)`,"providers.quota.extractHint":`字符串是响应里的路径(如 data.balance),数字是常量;数组按顺序取第一个存在的值;支持 $const、$add、$sub、$mul、$div、$scale、$pctUsed、$eq、$not、$case、$var、$time。取不到的字段不会被当成 0。`,"providers.quota.invalidJson":`{field} 不是有效的 JSON 对象`,"providers.quota.test":`测试查询`,"providers.quota.testDesc":`用当前(未保存)的配置发一次真实请求`,"providers.quota.fetch":`立即查询`,"providers.quota.refresh":`刷新余额`,"providers.quota.fetchedAt":`更新于 {time}`,"providers.quota.never":`尚未查询`,"providers.quota.off":`未启用用量查询`,"providers.quota.rawResponse":`原始响应(已脱敏)`,"providers.quota.requestUrl":`请求地址`,"providers.quota.httpStatus":`HTTP 状态`,"providers.quota.testOk":`查询成功`,"providers.quota.testFailed":`查询失败`,"providers.quota.extracted":`提取结果`,"providers.quota.balance":`余额 {amount}`,"providers.quota.usedPercent":`已用 {percent}%`,"providers.quota.window":`{window}已用 {percent}%`,"providers.quota.totalUsed":`已用 {used} / 共 {total}`,"providers.quota.resets":`{time}重置`,"providers.quota.invalid":`账户不可用`,"providers.quota.failed":`用量查询失败:{error}`,"providers.quota.lastGood":`下面是上次成功的结果`,"providers.quota.error.config":`查询配置不完整`,"providers.quota.error.no_key":`该提供商没有 API Key`,"providers.quota.error.unauthorized":`上游拒绝了额度查询(凭据无效或没有权限)`,"providers.quota.error.no_endpoint":`该地址没有额度接口,请换一个模板或使用自定义查询`,"providers.quota.error.rate_limited":`上游限流,请调大查询间隔`,"providers.quota.error.upstream":`上游返回错误`,"providers.quota.error.timeout":`查询超时`,"providers.quota.error.network":`无法连接上游`,"providers.quota.error.not_json":`响应不是 JSON`,"providers.quota.error.too_large":`响应过大`,"providers.quota.error.empty":`查询成功,但没有取到额度字段`,"settings.proxy":`网络代理`,"settings.proxy.footer":`网关转发、订阅登录、额度查询、更新检查和客户端安装都按这里的设置联网;本机地址始终直连,单独配置了代理的提供商以提供商为准。`,"settings.proxy.mode":`代理方式`,"settings.proxy.mode.system":`跟随系统`,"settings.proxy.mode.custom":`自定义`,"settings.proxy.mode.direct":`不使用`,"settings.proxy.mode.system.hint":`优先使用 HTTPS_PROXY 等环境变量,其次是操作系统的代理设置`,"settings.proxy.mode.custom.hint":`所有出站请求使用下面填写的代理`,"settings.proxy.mode.direct.hint":`忽略环境变量和系统代理,一律直连`,"settings.proxy.url":`代理地址`,"settings.proxy.urlHint":`支持 http、https、socks5,需包含端口`,"settings.proxy.username":`用户名`,"settings.proxy.password":`密码`,"settings.proxy.optional":`可选`,"settings.proxy.passwordSaved":`已保存,留空则不修改`,"settings.proxy.bypass":`不走代理的地址`,"settings.proxy.bypassHint":`用逗号分隔,同时匹配子域名`,"settings.proxy.saved":`代理设置已保存`,"settings.quota":`提供商用量查询`,"settings.quota.autoInterval":`后台查询间隔`,"settings.quota.autoIntervalHint":`已启用用量查询的提供商按这个间隔在后台刷新余额,0 表示关闭;单个提供商可以另行设置。`,"settings.minutes":`分钟`,"tray.quotaBalance":`余额`,"providers.subscription.relogin":`重新登录`,"providers.getKey":`获取 API Key ↗`,"providers.priceKey":`价格表`,"providers.priceKeyHint":`决定使用哪个提供商的模型价格;同一模型在不同提供商价格不同。`,"providers.priceKeyNone":`仅用官方默认价`,"providers.priceKeyDefault":`默认({id})`,"providers.templateModels":`将添加模板中的 {count} 个模型,之后可增删。`,"providers.tab.models":`模型`,"providers.tab.settings":`设置`,"providers.test":`测试连接`,"providers.testDialog.title":`测试 {name}`,"providers.testDialog.subtitle":`应用隐私策略并记录请求,不重试`,"providers.testDialog.modeSingle":`单模型`,"providers.testDialog.modeBatch":`批量模型`,"providers.testDialog.config":`测试配置`,"providers.testDialog.model":`测试模型`,"providers.testDialog.modelPlaceholder":`输入任意模型 ID`,"providers.testDialog.showModels":`显示模型列表`,"providers.testDialog.protocol":`测试协议`,"providers.testDialog.stream":`流式响应`,"providers.testDialog.maxTokens":`最大输出 tokens`,"providers.testDialog.prompt":`测试提示词(可选)`,"providers.testDialog.promptHint":`留空时使用默认提示词。`,"providers.testDialog.realRequest":`真实请求,可能消耗额度`,"providers.testDialog.savedCredentials":`使用此提供商已保存的连接与凭据。`,"providers.testDialog.start":`开始测试`,"providers.testDialog.retest":`重新测试`,"providers.testDialog.stop":`停止`,"providers.testDialog.stopRest":`停止后续`,"providers.testDialog.testN":`测试 {count} 个模型`,"providers.testDialog.metrics.http":`HTTP 响应`,"providers.testDialog.metrics.firstWait":`首字等待`,"providers.testDialog.metrics.ttft":`首字总延迟`,"providers.testDialog.metrics.total":`完整耗时`,"providers.testDialog.metricsHelp":`HTTP 响应:从发出请求到收到上游响应头。首字:到回答的第一个字节。等待从响应头到达算起,总延迟从发出请求算起。`,"providers.testDialog.reply":`API 提供商回复`,"providers.testDialog.preview":`预览`,"providers.testDialog.raw":`原文`,"providers.testDialog.rawNote":`网关处理后的响应正文(凭据已脱敏)`,"providers.testDialog.rawTruncated":`已截断:原文超过 256 KiB`,"providers.testDialog.reasoning":`推理过程`,"providers.testDialog.noText":`上游没有返回文本。`,"providers.testDialog.headers":`响应头`,"providers.testDialog.headersCount":`{count} 个`,"providers.testDialog.headersEmpty":`上游没有返回响应头。`,"providers.testDialog.emptyTitle":`尚未测试`,"providers.testDialog.emptyDetail":`点击开始测试,向上游发送一条真实请求。`,"providers.testDialog.status.idle":`等待测试`,"providers.testDialog.status.running":`测试中`,"providers.testDialog.status.success":`测试成功`,"providers.testDialog.status.failed":`测试失败`,"providers.testDialog.selected":`已选 {n} / {total}`,"providers.testDialog.progress":`已完成 {done} / {total} · 成功 {ok} · 失败 {failed}`,"providers.testDialog.progressDone":`本批已完成 {total} / {total} · 成功 {ok} · 失败 {failed}`,"providers.testDialog.clearSelection":`清空选择`,"providers.testDialog.searchModels":`搜索或输入模型 ID`,"providers.testDialog.addModel":`添加「{id}」`,"providers.testDialog.view":`查看`,"providers.testDialog.noModels":`该提供商还没有模型;在上方输入模型 ID 即可测试。`,"providers.testDialog.status.queued":`排队中`,"providers.testDialog.status.cancelled":`已取消`,"providers.testDialog.statusColumn":`状态`,"providers.testDialog.ownFilter":`输入模型 ID 可添加列表中没有的模型`,"providers.duplicate":`复制提供商`,"providers.deleteConfirm":`删除 {name}?`,"providers.deleteDetail":`提供商及其模型设置会被删除,请求记录保留。`,"providers.deleted":`已删除`,"providers.deleteBound":`仍有客户端在使用:{clients}。请先为它们切换提供商。`,"providers.templateVersions":`当前版本 {current},最新版本 {latest}`,"providers.templateApplied":`已更新到最新模板`,"providers.templateUpToDate":`已是最新模板。`,"providers.searchModels":`搜索模型`,"providers.addModels":`添加模型`,"providers.addModelsDetail":`输入模型 ID,每行一个或用逗号分隔;会自动关联到系统模型以继承参数和价格。`,"providers.fetchRemote":`从上游获取`,"providers.fetchRemoteDetail":`读取提供商的模型列表,自动关联到系统模型以继承参数和价格。`,"providers.noModels":`还没有模型`,"providers.noModelsDetail":`从上游获取模型列表,或手动输入模型 ID。`,"providers.modelsFooter":`模型默认只需要 ID:未覆盖的字段继承关联的系统模型,价格按此提供商的价格表计算。`,"providers.modelMap.title":`模型映射`,"providers.modelMap.footer":`把客户端请求的模型 ID 转成本提供商的模型,例如 deepseek-v4.1 → deepseek-chat。映射的 ID 会出现在客户端的模型列表里;客户端绑定了多个提供商时,请求这个 ID 也会路由到这里。计费按实际发送的模型计算。`,"providers.modelMap.add":`添加映射`,"providers.modelMap.addDetail":`客户端请求左边的模型 ID 时,Astra 改为向本提供商请求右边的模型。`,"providers.modelMap.needModels":`先给提供商添加模型`,"providers.modelMap.from":`请求的模型 ID`,"providers.modelMap.to":`本提供商的模型`,"providers.modelMap.toPlaceholder":`选择模型`,"providers.modelMap.remove":`删除映射 {from}`,"providers.modelMap.saved":`已保存模型映射`,"providers.modelMap.missingTarget":`目标模型不存在`,"providers.unlinked":`未关联`,"providers.modelsAdded":`已添加 {count} 个模型`,"providers.addSelected":`添加 {count} 个`,"providers.linksTo":`关联到 {id}`,"providers.noLink":`不关联系统模型`,"providers.added":`已添加`,"providers.linkedModel":`关联的系统模型`,"providers.linkedModelHint":`未覆盖的字段和价格都从这里继承。`,"providers.overrides":`字段覆盖`,"providers.price":`价格`,"providers.customPrice":`自定义价格`,"providers.customPriceHint":`自定义价格完全替换继承的价格,不乘提供商倍率。`,"providers.inheritedPriceHint":`当前生效的价格(继承,已按提供商价格表解析):`,"providers.removeModel":`从提供商移除 {id}?`,"providers.removeModelShort":`移除此模型`,"providers.section.basic":`基本信息`,"providers.section.auth":`认证`,"providers.section.endpoints":`接口`,"providers.section.billing":`计费`,"providers.section.advanced":`高级`,"providers.section.info":`信息`,"providers.subscription":`订阅账号`,"providers.subscription.footer":`令牌加密保存在本机;即将过期时自动刷新。`,"providers.subscription.login":`登录订阅`,"providers.subscription.loginDesc":`按提供商的授权流程完成登录,令牌只保存在本机。`,"providers.subscription.logout":`登出并删除`,"providers.subscription.logoutConfirm":`登出账号「{name}」?绑定该账号的客户端将回退到默认账号。`,"providers.subscription.refreshToken":`刷新令牌`,"providers.subscription.tokenRefreshed":`令牌已刷新`,"providers.subscription.expires":`到期`,"providers.subscription.status.active":`有效`,"providers.subscription.status.expired":`已过期`,"providers.subscription.status.revoked":`已失效`,"providers.subscription.none":`尚未登录订阅账号`,"providers.subscription.openAuthorize":`打开授权页`,"providers.subscription.doneAuthorize":`我已完成授权`,"providers.subscription.waiting":`等待授权…`,"providers.subscription.waitingDetail":`已在浏览器打开授权页;完成后本页会自动检测到新账号。`,"providers.subscription.cliDetail":`在浏览器完成授权后本页会自动完成登录(服务端轮询,无需回调地址)。`,"providers.subscription.checkNow":`我已授权,立即验证`,"providers.subscription.checkNowHint":`在浏览器完成授权后点一下;本页也会每几秒自动检查一次。`,"providers.subscription.pasteTitle":`把授权页显示的授权码粘回来`,"providers.subscription.pasteDetail":`Claude 的回调地址是它自己注册的地址(不是本机),所以无法自动跳回来:授权页上会显示一个授权码。点「打开授权页」完成授权,再把授权码整段复制粘贴到下面。`,"providers.subscription.pastePlaceholder":`粘贴授权码(形如 xxxx#yyyy)`,"providers.subscription.pasteCode":`授权码`,"providers.subscription.pasteSubmit":`完成登录`,"providers.subscription.stillWaiting":`还没收到授权,请确认浏览器里已完成确认。`,"providers.subscription.deviceCode":`设备码`,"providers.subscription.visitPage":`打开验证页面`,"providers.subscription.loginOk":`授权成功:{name}`,"providers.subscription.loginFailed":`登录失败`,"providers.subscription.importCodex":`导入本机 Codex 登录`,"providers.subscription.importCodexHint":`把本机 ~/.codex/auth.json 里已有的 codex 登录态接进来,不用再走一遍浏览器授权`,"providers.subscription.importOk":`已导入本机 Codex 账号:{name}`,"providers.subscription.importCopilot":`导入本机 GitHub 授权`,"providers.subscription.importCopilotHint":`接入本机已有的 GitHub 授权(VS Code 的 GitHub 会话、GH_TOKEN 或 Copilot 插件配置)来建 Copilot 账号,不用再走一遍设备码授权`,"providers.subscription.importCopilotPlaceholder":`或粘贴 GitHub token(gho_…)`,"providers.subscription.importCopilotToken":`GitHub token`,"providers.subscription.localCopilotFound":`检测到本机 GitHub 授权:{source}`,"providers.subscription.importBatch":`批量导入 token`,"providers.subscription.importBatchTitle":`批量导入 GitHub token`,"providers.subscription.importBatchLabel":`GitHub token 列表(每行一个)`,"providers.subscription.importBatchDesc":`粘贴 GitHub token(gho_ / ghp_ / github_pat_),每行一个。每个 token 会建成一个 Copilot 账号;重复的、没有 Copilot 订阅的 token 只会报告结果,不会导入。`,"providers.subscription.importBatchPlaceholder":`gho_xxxxxxxxxxxx
|
|
21
|
-
gho_yyyyyyyyyyyy
|
|
22
|
-
# 以 # 开头的行会被忽略`,"providers.subscription.importBatchCount":`已识别 {n} 个 token`,"providers.subscription.importBatchRun":`导入`,"providers.subscription.importBatchSummary":`已导入 {ok} 个,重复 {dup} 个,失败 {fail} 个`,"providers.subscription.importBatchStatus.imported":`已导入`,"providers.subscription.importBatchStatus.duplicate":`重复`,"providers.subscription.importBatchStatus.invalid_format":`格式错误`,"providers.subscription.importBatchStatus.failed":`失败`,"providers.subscription.localCopilotHint":`点「导入本机 GitHub 授权」时会读取 VS Code 的系统凭据(macOS 会弹授权框),也可以直接粘贴一个 GitHub token`,"providers.subscription.localCodexFound":`检测到本机 Codex 登录:{who}`,"providers.subscription.unknownAccount":`未知账号`,"providers.subscription.credits.title":`额度重置卡`,"providers.subscription.credits.footer":`codex 的额度重置卡:用一张可以立刻解除当前被限流的窗口。`,"providers.subscription.credits.none":`这个账号没有重置卡`,"providers.subscription.credits.unavailable":`暂时读不到重置卡(账号可能未登录,或上游不可达)。`,"providers.subscription.credits.availableCount":`可用 {count} 张`,"providers.subscription.credits.consume":`使用`,"providers.subscription.credits.consumeConfirm":`使用重置卡「{title}」?`,"providers.subscription.credits.consumeDetail":`会立刻解除当前被限流的窗口,且无法撤销。`,"providers.subscription.credits.consumed":`重置卡已使用,额度已刷新`,"providers.subscription.credits.consumeFailed":`使用重置卡失败`,"providers.subscription.credits.expires":`有效期至 {when}`,"providers.subscription.credits.redeemedAt":`已于 {when} 使用`,"providers.subscription.credits.notInPlan":`当前套餐不支持`,"providers.subscription.credits.status.available":`可用`,"providers.subscription.credits.status.redeemed":`已使用`,"providers.subscription.credits.status.expired":`已过期`,"providers.subscription.needsVerification":`即将支持:该订阅的登录流程尚未核实,暂不能登录`,"providers.subscription.current":`当前使用`,"providers.subscription.disabled":`已停用`,"providers.subscription.activate":`切换到此账号`,"providers.subscription.activated":`已切换到 {name},下一个请求起生效`,"providers.subscription.enable":`启用`,"providers.subscription.disable":`停用`,"providers.subscription.moveUp":`上移`,"providers.subscription.moveDown":`下移`,"providers.subscription.cooldown":`限流冷却至 {when}`,"providers.subscription.policy.title":`使用策略`,"providers.subscription.policy.footer":`切换账号对下一个请求立即生效,无需重启客户端;在客户端或令牌上固定了账号的请求不受影响。`,"providers.subscription.policy.claudeCodeOnly":`仅限 Claude Code`,"providers.subscription.policy.claudeCodeOnlyDetail":`只接受 Claude Code(含 IDE 插件与 Agent SDK)的请求,并原样转发它的请求头;其他客户端会收到 403。`,"providers.subscription.policy.anyWarning":`已允许其他客户端使用:Astra 只补齐 OAuth 必需的请求头,不会伪装成 Claude Code。Anthropic 可能把这些请求计入额外用量、直接拒绝,或视为违反服务条款。`,"providers.subscription.policy.mimic":`其他客户端模拟 Claude Code`,"providers.subscription.policy.mimicDetail":`非 Claude Code 客户端的请求会带上 Claude Code 的身份(system 身份块、claude-cli User-Agent、X-Stainless 指纹与完整 beta 集),否则订阅令牌的非 Haiku 模型会被上游拒绝。默认关闭。`,"providers.subscription.policy.mimicWarning":`已开启模拟 Claude Code:请求会伪装成官方 CLI。这违反 Anthropic 的使用条款,可能导致账号被限制或封禁,风险由你自己的账号承担。`,"providers.subscription.policy.switchMode":`账号切换`,"providers.subscription.policy.manual":`手动`,"providers.subscription.policy.failover":`自动故障转移`,"providers.subscription.policy.manualDetail":`只在你切换账号,或当前账号失效、被停用时更换。`,"providers.subscription.policy.failoverDetail":`当前账号被限流(429)或登录失效时,自动换到下一个可用账号并继续使用它。`,"providers.subscription.policy.balanced":`均衡分配`,"providers.subscription.policy.balancedDetail":`把请求分摊到所有可用账号,优先选当前并发最少的。同一会话(相同 prompt_cache_key 或 Claude Code 会话)固定使用同一个账号,保证上游提示词缓存命中;被限流或失效的账号会被跳过。绑定关系只保存在内存里。`,"providers.notes":`备注`,"providers.apiKeyStored":`API Key 加密保存在本机,留空表示不修改。`,"providers.replaceKey":`输入新密钥以替换`,"providers.endpointsFooter":`每种协议一个地址;客户端协议与上游不同时,Astra 自动转换。`,"providers.fullUrl":`完整 URL`,"providers.addEndpoint":`添加接口`,"providers.preferred":`上游协议优先级`,"providers.preferredHint":`需要转换协议时按此顺序选择上游接口`,"providers.preferredMissing":`{protocol} 没有配置接口地址,排在优先级里也不会被选中`,"providers.billingFooter":`倍率只作用于继承来的价格;模型上的自定义价格不乘倍率。`,"providers.multiplier":`价格倍率`,"providers.multiplierHint":`例如中转站按官方价 ×1.1 计费`,"providers.proxy":`HTTP 代理`,"providers.proxyHint":`仅此提供商的请求使用`,"providers.headers":`额外请求头`,"providers.addHeader":`添加请求头`,"providers.addHeaderDetail":`随每个发往该提供商的请求一起发送;保存后生效。`,"providers.headerName":`名称`,"providers.headerValue":`值`,"providers.addEndpointDetail":`为一种协议配置接口地址;保存后生效。`,"providers.fullUrlHint":`地址即完整请求 URL,不再追加路径`,"providers.adapterSettings":`适配器设置(JSON)`,"providers.adapter":`适配器`,"providers.boundClients":`使用中的客户端`,"origin.inherited":`继承`,"origin.overridden":`已覆盖`,"origin.unset":`未设置`,"origin.reset":`重置为继承`,"models.count":`{count} 个模型`,"models.search":`搜索模型、别名`,"models.allVendors":`全部厂商`,"models.sync":`同步模型目录`,"models.syncDetail":`从官网目录(astra-gate.si)获取最新的模型参数和价格,用户修改过的字段不会被覆盖。`,"models.new":`新建模型`,"models.newDetail":`为系统中没有的模型添加参数和默认价格。`,"models.col.model":`模型`,"models.col.vendor":`厂商`,"models.col.context":`上下文`,"models.col.price":`输入 / 输出`,"models.col.providerPrices":`提供商价格`,"models.empty":`没有匹配的模型`,"models.source.seed":`内置`,"models.source.sync":`同步`,"models.source.user":`自定义`,"models.modified":`已修改`,"models.providerPriceCount":`{count} 个提供商`,"models.updated":`更新于 {time}`,"models.resetField":`恢复为内置值`,"models.fieldReset":`已恢复为内置值`,"models.deleteConfirm":`删除模型 {id}?`,"models.section.basic":`基本参数`,"models.section.capabilities":`能力`,"models.section.pricing":`官方默认价格`,"models.section.providerPrices":`各提供商价格`,"models.section.overrides":`提供商自定义价格`,"models.section.simulator":`计费模拟器`,"models.modifiedFooter":`标记为「已修改」的字段不会被后续的内置数据或同步覆盖。`,"models.pricingHint":`模型厂商的官方价格;没有对应提供商价格时使用(会乘提供商倍率)。`,"models.providerPricesFooter":`同一模型在不同 AI 提供商的价格(按价格表区分),优先于官方默认价。`,"models.overridesFooter":`这些提供商为该模型单独设置了价格,优先级最高。`,"models.noProviderPrices":`没有提供商专属价格`,"models.hasTimeWindows":`含时段规则`,"models.hasTiers":`含分档`,"models.deletePrice":`删除 {key} 的价格?`,"models.addPrice":`添加提供商价格`,"models.editPrice":`编辑 {key} 的价格`,"models.priceSheetDetail":`该价格只在价格表匹配的提供商上生效。`,"models.pickPriceKey":`选择价格表`,"models.customPriceKey":`或输入自定义价格表 ID`,"models.upstreamId":`该提供商的模型 ID`,"models.upstreamIdHint":`与系统模型 ID 不同时填写,用于自动关联`,"models.simulatorUnsaved":`有未保存的更改:模拟使用编辑中的价格。`,"models.field.id":`模型 ID`,"models.field.idHint":`客户端请求时使用的名称`,"models.field.displayName":`显示名称`,"models.field.vendor":`厂商`,"models.field.family":`系列`,"models.field.aliases":`别名`,"models.field.contextWindow":`上下文窗口`,"models.field.maxOutputTokens":`最大输出`,"models.field.inputPrice":`输入价格 /1M`,"models.field.outputPrice":`输出价格 /1M`,"models.sync.newModel":`新模型`,"models.sync.price":`价格 · {key}`,"models.sync.field":`字段 · {field}`,"models.sync.applied":`已应用 {count} 项更改`,"models.sync.apply":`应用 {count} 项`,"models.sync.check":`检查更新`,"models.sync.none":`没有可用的更新`,"models.sync.userModified":`已被用户修改`,"cap.vision":`图像输入`,"cap.tools":`工具调用`,"cap.reasoning":`推理`,"cap.promptCache":`提示缓存`,"cap.audio":`音频`,"cap.pdf":`PDF`,"cap.structuredOutput":`结构化输出`,"requests.col.cache":`缓存命中 / 写入`,"usage.title":`Token 用量`,"usage.inputTotal":`输入总量`,"usage.outputTotal":`输出总量`,"usage.input":`普通输入`,"usage.output":`普通输出`,"usage.uncachedInput":`未缓存输入`,"usage.regularOutput":`非推理输出`,"usage.cacheRead":`缓存命中`,"usage.cacheWrite":`缓存写入`,"usage.cacheWrite5m":`缓存写入 · 5 分钟`,"usage.cacheWrite1h":`缓存写入 · 1 小时`,"usage.reasoning":`推理 / 思考`,"usage.inputAudio":`音频输入`,"usage.outputAudio":`音频输出`,"usage.inputImage":`图像输入`,"usage.outputImage":`图像输出`,"usage.hitShort":`命中`,"usage.writeShort":`写入`,"usage.reasoningShort":`推理`,"usage.hitRate":`缓存命中率`,"usage.noCache":`上游未报告缓存读取或写入 Token`,"usage.missing":`上游未报告用量,缓存命中率未知。`,"usage.hitTooltip":`缓存命中 {read} / 输入总量 {total} tokens`,"usage.writeTooltip":`共写入 {tokens} tokens;5m / 1h 在详情中分别列出`,"usage.totalsHint":`输入总量已包含缓存命中和写入;输出总量已包含推理 Token,不重复相加。命中率 = 缓存读取 / 输入总量。`,"usage.cacheAmounts":`命中 {read} · 写入 {write}`,"settings.appearance":`外观`,"settings.theme":`主题`,"settings.theme.system":`跟随系统`,"settings.theme.light":`浅色`,"settings.theme.dark":`深色`,"settings.accent":`强调色`,"settings.accent.system":`跟随系统`,"settings.accent.followingSystem":`正在使用系统强调色`,"settings.accent.systemUnavailable":`无法读取系统强调色,使用默认蓝色`,"settings.accent.blue":`蓝色`,"settings.accent.purple":`紫色`,"settings.accent.pink":`粉色`,"settings.accent.red":`红色`,"settings.accent.orange":`橙色`,"settings.accent.yellow":`黄色`,"settings.accent.green":`绿色`,"settings.accent.graphite":`石墨色`,"settings.language":`语言`,"settings.languageHint":`同时决定新请求计费说明的语言`,"settings.gateway":`网关`,"settings.gatewayFooter":`端口与监听地址通过终端修改:astra start --port <端口>`,"settings.gatewayUrl":`网关地址`,"settings.listen":`监听`,"settings.dataDir":`数据目录`,"settings.openFolder":`打开目录`,"settings.streamIdle":`流式空闲超时`,"settings.streamIdleHint":`上游超过该时间无数据则断开`,"settings.logging":`记录`,"settings.debugBodies":`保存请求与响应内容`,"settings.debugBodiesHint":`用于排查问题;内容保存在本机数据目录,不含密钥。`,"settings.bodyRetention":`内容保留`,"settings.requestRetention":`自动清理请求记录`,"settings.keepForever":`永久保留`,"settings.days":`天`,"settings.effort":`推理强度换算`,"settings.effortHint":`在 OpenAI reasoning effort 与 Anthropic / Gemini thinking budget 之间转换时使用。`,"settings.privacy":`隐私护栏`,"settings.privacy.footer":`请求发往提供商之前在本机检测敏感信息。原值只保存在请求内存中,不会写入数据库。`,"settings.privacy.enabled":`启用隐私护栏`,"settings.privacy.enabledHint":`关闭后所有请求原样转发`,"settings.privacy.dryRun":`只检测不处理`,"settings.privacy.dryRunHint":`记录命中但放行请求,用于观察效果`,"settings.privacy.restore":`还原响应占位符`,"settings.privacy.restoreHint":`响应中的占位符会替换回原值,客户端无感知`,"settings.privacy.recordSamples":`记录命中样本`,"settings.privacy.recordSamplesHint":`日志中保存遮罩后的样本(如 john••••om),原值永不入库`,"settings.privacy.defaultAction":`默认动作`,"settings.privacy.action.off":`关闭`,"settings.privacy.action.warn":`仅警告`,"settings.privacy.action.block":`拦截`,"settings.privacy.action.redact":`脱敏`,"settings.privacy.categories":`检测类别`,"settings.privacy.category.api_key":`API 密钥`,"settings.privacy.category.aws_key":`AWS 密钥`,"settings.privacy.category.jwt":`JWT 令牌`,"settings.privacy.category.private_key":`私钥`,"settings.privacy.category.email":`邮箱地址`,"settings.privacy.category.phone":`手机号`,"settings.privacy.category.intranet":`内网地址`,"settings.privacy.category.custom":`自定义`,"settings.privacy.category.credit_card":`银行卡号`,"settings.privacy.category.national_id":`证件号码`,"settings.privacy.category.credential":`凭据 / 连接串`,"settings.privacy.enableCategory":`启用`,"settings.privacy.customRules":`自定义规则`,"settings.privacy.noCustomRules":`暂无自定义规则`,"settings.privacy.addRule":`添加规则`,"settings.privacy.ruleName":`规则名称`,"settings.privacy.rulePattern":`正则表达式`,"settings.privacy.rulePatternHint":`对请求中的每个字符串值逐个匹配`,"settings.privacy.ruleTemplates":`从模板填入`,"settings.privacy.ruleTemplatesHint":`选择常用规则模板,名称与表达式可再修改`,"settings.privacy.ruleTemplateNone":`自定义(手动输入)`,"settings.privacy.template.ipv4All":`所有 IPv4 地址`,"settings.privacy.template.ipv4AllHint":`含公网地址;内置「内网地址」只覆盖私有网段`,"settings.privacy.template.landline":`座机号码(中国大陆)`,"settings.privacy.template.licensePlate":`车牌号(中国大陆)`,"settings.privacy.template.passportCn":`护照号(中国)`,"settings.privacy.template.uscc":`统一社会信用代码`,"settings.privacy.template.longToken":`通用长令牌(32 位以上随机串)`,"settings.privacy.template.longTokenHint":`命中面较宽,建议搭配「仅警告」使用`,"settings.privacy.template.macAddress":`MAC 地址`,"settings.privacy.template.unixHome":`Unix / macOS 用户目录路径`,"settings.privacy.template.windowsProfile":`Windows 用户目录路径`,"settings.privacy.template.unixHomeHint":`路径中会暴露本机用户名`,"settings.privacy.template.genericHint":`可按需要再调整表达式`,"settings.privacy.template.cloudAccessKey":`云厂商 AccessKey(阿里云 LTAI… / 腾讯云 AKID…)`,"settings.privacy.template.awsSecretKey":`AWS Secret Access Key(40 位)`,"settings.privacy.template.imWebhook":`IM 机器人 Webhook(钉钉 / 企微 / 飞书 / Slack)`,"settings.privacy.template.imWebhookHint":`Webhook 地址本身就是凭证,泄露后任何人都能向群里发消息`,"settings.privacy.template.internalService":`内部系统域名(gitlab. / jenkins. / jira. …)`,"settings.privacy.template.jdbcConn":`JDBC 连接串(含账号密码)`,"settings.privacy.template.jdbcHint":`连接串里的账号密码通常是明文`,"settings.privacy.template.smtpConn":`邮件服务器连接串(smtp://user:pass@…)`,"settings.privacy.template.keyFileRef":`密钥文件引用(.pem / .key / .pfx / .jks)`,"settings.privacy.template.confidentialMarker":`内部 / 机密标记(机密、Confidential…)`,"settings.privacy.template.confidentialHint":`按文档密级标记做警告或拦截`,"settings.privacy.template.employeeId":`员工工号(EMP-123456 / 工号123456)`,"settings.privacy.template.labeledNumber":`带标签编号(合同编号 / 订单编号 / 工单编号…)`,"settings.privacy.invalidPattern":`正则表达式无效`,"settings.privacy.deleteRuleConfirm":`删除规则「{name}」?`,"settings.privacy.tester":`试用检测`,"settings.privacy.testerHint":`按当前策略检测下面的文本(不影响真实请求)`,"settings.privacy.testerPlaceholder":`粘贴一段请求文本或 JSON…`,"settings.privacy.runTest":`检测`,"settings.privacy.noHits":`没有命中任何规则`,"settings.privacy.wouldBlock":`会拦截请求`,"settings.privacy.wouldRedact":`将脱敏 {count} 处`,"privacy.tab.overview":`概览`,"privacy.tab.logs":`拦截日志`,"privacy.tab.rules":`检测规则`,"privacy.tab.tester":`试用检测`,"privacy.stats":`防护统计`,"privacy.stats.events":`护栏事件`,"privacy.stats.blocked":`拦截请求`,"privacy.stats.dryRun":`只检测请求`,"privacy.stats.redactions":`脱敏处数`,"privacy.stats.byCategory":`类别命中`,"privacy.stats.col.category":`类别`,"privacy.stats.col.requests":`请求数`,"privacy.stats.col.hits":`命中数`,"privacy.stats.col.warn":`警告`,"privacy.stats.col.block":`拦截`,"privacy.stats.col.redact":`脱敏`,"privacy.logs.total":`共 {count} 条事件`,"privacy.logs.empty":`还没有隐私事件`,"privacy.logs.empty.detail":`护栏检测到敏感内容后,对应的请求会出现在这里`,"privacy.logs.col.outcome":`处置结果`,"privacy.logs.col.action":`命中动作`,"privacy.logs.col.hits":`命中详情`,"privacy.logs.outcome.blocked":`已拦截`,"privacy.logs.outcome.redacted":`脱敏 {count} 处`,"privacy.logs.outcome.dryRun":`只检测`,"privacy.logs.blockedOnly":`仅拦截`,"privacy.logs.passedOnly":`仅放行`,"privacy.logs.moreHits":`+{count} 类`,"privacy.logs.viewRequest":`查看请求 {model}`,"settings.effort.low":`low`,"settings.effort.medium":`medium`,"settings.effort.high":`high`,"settings.about":`关于`,"settings.serverVersion":`服务版本`,"settings.desktopVersion":`桌面端版本`,"settings.logs":`打开日志目录`,"settings.logout":`退出登录`,"settings.checkUpdates":`检查更新`,"settings.upToDate":`已是最新版本`,"settings.updateAvailable":`有可用更新 {version}`,"settings.updateCheckFailed":`检查失败:{error}`,"settings.updateApplyHint":`可从 Astra 托盘菜单安装,或在终端运行 astra update`,"settings.updateApply":`立即更新`,"settings.updateApplied":`服务已更新并重启`,"settings.updateDesktopRelaunch":`桌面端将重启以完成更新`,"settings.lastChecked":`上次检查:{time}`,"settings.autoCheck":`自动检查更新`,"settings.tab.general":`常规`,"settings.tab.tray":`托盘面板`,"settings.tray.titleHeading":`菜单栏常驻文字`,"settings.tray.titleHint":`显示在菜单栏图标旁,不用点开就能看到。Windows 与 Linux 显示在图标提示中。`,"settings.tray.title.none":`不显示`,"settings.tray.title.none.hint":`只显示图标`,"settings.tray.title.requests":`今日调用`,"settings.tray.title.requests.hint":`例如 7`,"settings.tray.title.tokens":`今日 tokens`,"settings.tray.title.tokens.hint":`例如 68.8K`,"settings.tray.title.cost":`今日费用`,"settings.tray.title.cost.hint":`例如 $0.37`,"settings.tray.title.quota":`订阅窗口`,"settings.tray.title.quota.hint":`剩余最少的订阅窗口,例如 64%`,"settings.tray.title.alerts":`仅异常提示`,"settings.tray.title.alerts.hint":`有失败请求、额度告急或网关停止时才显示`,"settings.tray.usageHeading":`用量信息`,"settings.tray.clientsHeading":`客户端`,"settings.tray.section.overview":`今日概览`,"settings.tray.section.overview.hint":`调用次数、tokens 与失败数`,"settings.tray.section.cost":`预估费用`,"settings.tray.section.cost.hint":`按官方 API 价格折算,不替代账单`,"settings.tray.section.chart":`今日趋势`,"settings.tray.section.chart.hint":`每小时调用次数柱状图`,"settings.tray.section.topModel":`常用模型`,"settings.tray.section.topModel.hint":`今日 tokens 占比最高的模型`,"settings.tray.section.compareYesterday":`对比昨天`,"settings.tray.section.compareYesterday.hint":`今日 tokens 相对昨日全天的变化`,"settings.tray.section.cacheHitRate":`缓存命中率`,"settings.tray.section.cacheHitRate.hint":`缓存读取占输入 tokens 的比例`,"settings.tray.section.quota":`额度与余额`,"settings.tray.section.quota.hint":`Codex、Claude 等订阅的窗口用量与重置时间,以及已启用用量查询的 API 提供商余额`,"settings.tray.section.clients":`客户端提供商`,"settings.tray.section.clients.hint":`已启用客户端当前使用的提供商,点击可切换`,"settings.tray.previewHeading":`面板预览`,"settings.tray.previewHint":`点击托盘图标展开的面板。改动立即生效,预览即实际效果。`,"settings.tray.previewFooter":`使用当前真实数据渲染。`,"settings.tray.reset":`恢复默认`,"tray.status.running":`网关运行中`,"tray.status.stopped":`网关未运行`,"tray.status.starting":`正在启动网关…`,"tray.status.stopping":`正在停止网关…`,"tray.status.restarting":`正在重启网关…`,"tray.stoppedHint":`网关停止期间,客户端无法通过 Astra 调用模型。`,"tray.mismatch":`API 版本不匹配`,"tray.update":`有可用更新`,"tray.copyAddress":`复制网关地址`,"tray.settings":`托盘面板设置`,"tray.more":`更多操作`,"tray.today":`今日`,"tray.failures":`{count} 次失败`,"tray.justNow":`刚刚`,"tray.updated":`更新于{time}`,"tray.loadFailed":`无法读取用量数据`,"tray.requests":`次调用`,"tray.tokens":`tokens`,"tray.cost":`预估费用`,"tray.topModel":`常用模型`,"tray.cacheHit":`缓存命中`,"tray.vsYesterday":`较昨日`,"tray.chartLabel":`今日每小时调用次数`,"tray.hourBar":`{hour} · {count} 次调用`,"tray.quota":`额度与余额`,"tray.quotaRemaining":`剩余`,"tray.quotaReset":`重置`,"tray.quotaCredits":`额度`,"tray.quotaPending":`正在获取额度…`,"tray.clients":`客户端`,"tray.unbound":`未绑定`,"tray.switchProvider":`切换 {client} 的提供商`,"tray.disabledProvider":`{name}(已停用)`,"tray.restart":`重启网关`,"tray.stop":`停止网关`,"tray.quit":`退出`,"tray.open":`打开 Astra`,"tray.title.requests":`今日调用 {count} 次`,"tray.title.tokens":`今日 tokens {count}`,"tray.title.cost":`今日预估费用 {amount}`,"tray.title.quota":`{plan} {window}窗口剩余 {remaining}`,"tray.title.failures":`今日 {count} 次失败`,"tray.tab.overview":`概览`,"tray.tab.quota":`额度`,"tray.alert.failures":`{count} 次失败 · 占今日 {share}`,"tray.alert.quota":`{plan} {window}窗口仅剩 {remaining}`,"tray.quotaTightest":`额度 · 最紧张`,"tray.viewAll":`查看全部`},Wee={"common.cancel":`Cancel`,"common.confirm":`OK`,"common.close":`Close`,"common.save":`Save`,"common.saved":`Saved`,"common.revert":`Revert`,"common.apply":`Apply`,"common.delete":`Delete`,"common.edit":`Edit`,"common.add":`Add`,"common.create":`Create`,"common.back":`Back`,"common.done":`Done`,"common.more":`More`,"common.copy":`Copy`,"common.copied":`Copied to clipboard`,"common.refresh":`Refresh`,"common.enabled":`Enabled`,"common.yes":`Yes`,"common.no":`No`,"common.prev":`Previous page`,"common.next":`Next page`,"common.noData":`No data`,"common.selectAll":`Select all`,"common.unsaved":`Unsaved changes`,"common.invalidJson":`Invalid JSON`,"common.search":`Search`,"common.clearSearch":`Clear search`,"common.select":`Select an option`,"common.noResults":`No matches`,"common.error":`Something went wrong`,"pricing.tierMode":`Billing mode`,"pricing.outputPolicy":`Output price`,"pricing.editMode":`Editing mode`,"pricing.days":`Days`,"models.sync.change":`Change`,"models.sync.changeOne":`change`,"models.sync.changeOther":`changes`,"common.continue":`Continue`,"providers.step.template":`Choose a template`,"providers.step.details":`Enter details`,"clients.current":`Current provider`,"common.deleting":`Deleting`,"common.deleted":`Deleted`,"common.retry":`Retry`,"providers.modelIds":`Model IDs`,"nav.overview":`Overview`,"nav.requests":`Requests`,"nav.clients":`Clients`,"nav.providers":`Providers`,"nav.models":`Models`,"nav.settings":`Settings`,"nav.privacy":`Privacy guard`,"nav.tokens":`Tokens`,"nav.group.config":`Configuration`,"nav.group.system":`System`,"shell.running":`Service running`,"shell.connecting":`Connecting…`,"shell.disconnected":`Not connected`,"shell.startService":`Start service`,"shell.startFailed":`Failed to start the service`,"shell.collapseSidebar":`Collapse sidebar`,"shell.expandSidebar":`Expand sidebar`,"banner.downDesktop":`Cannot reach the Astra service. Start it here or from the menu bar icon.`,"banner.downWeb":"Cannot reach the Astra service. Reconnecting… (run `astra start` in a terminal)","banner.mismatch":"The server API version does not match this UI. Run `astra update` and restart.","banner.clientsOutdated":`{names} still use an old Astra address or setting (for example, Astra moved to another port). Update them to reconnect.`,"banner.clientsUpdate":`Update now`,"banner.clientsUpdated":`Updated {names}; some clients need a restart to pick it up`,"login.subtitle":`This server is reachable remotely. Enter the admin password.`,"login.password":`Admin password`,"login.submit":`Sign in`,"range.today":`Today`,"range.7d":`7 days`,"range.30d":`30 days`,"range.90d":`90 days`,"range.all":`All time`,"overview.cost":`Cost`,"overview.requests":`Requests`,"overview.successRate":`Success rate`,"overview.tokens":`Tokens`,"overview.avgTtft":`Avg TTFT`,"overview.costTrend":`Cost trend`,"overview.range":`Time range`,"overview.measure":`Measure`,"overview.trend":`Trend`,"overview.tokensContext":`{input} in · {output} out`,"overview.hourlyAverage":`Hourly average`,"overview.dailyAverage":`Daily average`,"overview.total":`Total`,"overview.hour":`Hour`,"overview.day":`Day`,"overview.by.model":`Model`,"overview.by.provider":`Provider`,"overview.by.client":`Client`,"overview.by.token":`Token`,"overview.other":`Other`,"overview.topModels":`Top models by cost`,"overview.topModelDetail":`{requests} requests · {tokens} tokens`,"overview.empty.title":`No requests yet`,"overview.empty.detail":`Enable a client under Clients, or point any OpenAI / Anthropic / Gemini compatible tool at the gateway address below.`,"overview.clientFilter":`Filter by client`,"overview.allClients":`All`,"overview.tokenFilter":`Filter by token`,"overview.allTokens":`All tokens`,"overview.clientEmpty.title":`No requests from {client}`,"overview.clientEmpty.detail":`This client sent no requests in the selected period ({range}). Pick another client or time range.`,"overview.tokenEmpty.title":`No requests with {token}`,"overview.tokenEmpty.detail":`No request used this token in the selected period ({range}). Pick another token or time range.`,"overview.totalCost":`Total cost`,"overview.totalRequests":`Total requests`,"overview.usageTrend":`Usage trend`,"overview.breakdown":`Breakdown`,"overview.viewAll":`View all`,"overview.col.input":`Input`,"overview.col.output":`Output`,"overview.col.cacheHit":`Cache hit`,"overview.col.speed":`Speed`,"overview.col.share":`Share`,"overview.activity":`Activity`,"overview.activitySummary":`{from} ~ {to} · {active} / {days} days active`,"overview.activityPeak":`{count}/day at most`,"overview.activityUnit":`requests`,"overview.activityNone":`no activity`,"overview.activityLegend.less":`Less`,"overview.activityLegend.more":`More`,"requests.total":`{count} total`,"requests.rate.rpm":`RPM`,"requests.rate.tpm":`TPM`,"requests.rate.hint":`Requests (RPM), tokens (TPM, completed requests only) and the cache-hit ratio per minute over the last {window}s; follows the active filters, refreshes every 5s.`,"requests.elapsed":`Waiting (no first token yet)`,"requests.searchModel":`Search model IDs (keyword)`,"requests.noFilters":`No filters applied`,"requests.clearFilters":`Clear filters`,"requests.backToFilters":`Back to filter fields`,"requests.removeFilter":`Remove filter: {filter}`,"requests.filterAdded":`Added filter: {filter}`,"requests.filterChanged":`Changed filter: {filter}`,"requests.filterRemoved":`Removed filter: {filter}`,"requests.filtersCleared":`All filters cleared`,"requests.filteredEmpty":`No matching requests`,"requests.filteredEmpty.detail":`Try another model keyword or clear the filters.`,"requests.returnedModel":`Returned: {model}`,"requests.modelMatch":`Match`,"requests.modelMismatch":`Mismatch`,"requests.modelComparison":`Requested: {requested}; sent upstream: {upstream}; API returned: {returned}`,"requests.modelNotRecorded":`Not recorded`,"requests.modelNotRecorded.hint":`An older log or the API omitted the model ID; the requested model is not used as a substitute.`,"requests.allClients":`All clients`,"requests.allTokens":`All tokens`,"requests.col.token":`Token`,"requests.detail.account":`Subscription account`,"requests.direct":`Direct`,"requests.allProviders":`All providers`,"requests.allStatus":`Any status`,"requests.col.time":`Time`,"requests.col.client":`Client`,"requests.col.model":`Model`,"requests.col.provider":`Provider`,"requests.col.status":`Status`,"requests.col.tokens":`In/Out`,"requests.col.cost":`Cost`,"requests.empty":`No requests`,"requests.empty.detail":`Every request through Astra is logged here with per-token-type billing details.`,"requests.page":`Page {page} of {pages}`,"requests.filters":`Active filters`,"requests.addFilter":`Add filter`,"requests.openDetail":`Open request details for {model}`,"requests.viewError":`Click to view the error`,"requests.detail.title":`Request details`,"requests.detail.summary":`Summary`,"requests.detail.protocol":`Protocol`,"requests.detail.requestedModel":`Requested model`,"requests.detail.upstreamModel":`Sent upstream model`,"requests.detail.responseModel":`API returned model`,"requests.detail.systemModel":`System model`,"requests.detail.stream":`Streaming`,"requests.detail.upstreamId":`Upstream request ID`,"requests.detail.timing":`Timing`,"requests.detail.generation":`Generation`,"requests.detail.total":`Total`,"requests.detail.tps":`Output speed`,"requests.detail.error":`Error`,"requests.detail.privacy":`Privacy guard`,"requests.detail.privacyBlocked":`Request blocked`,"requests.detail.privacyDryRun":`Dry run (not enforced)`,"requests.detail.privacyRedacted":`Redacted {count} place(s)`,"requests.detail.billing":`Billing`,"requests.detail.usageMissing":`The upstream returned no usage; this request was billed as 0.`,"requests.detail.usageRaw":`Raw usage`,"requests.detail.pricingSnapshot":`Pricing snapshot`,"requests.body.clientRequest":`Client request body`,"requests.body.upstreamRequest":`Upstream request body`,"requests.body.upstreamRequestHeaders":`Upstream request headers (as sent to the provider, credentials redacted)`,"requests.body.upstreamResponse":`Upstream response body`,"requests.body.clientResponse":`Response sent to client`,"requests.reasoning":`Reasoning`,"requests.reasoning.notRecorded":`Not recorded`,"requests.reasoning.budget":`budget {tokens}`,"requests.reasoning.hint":`Reasoning settings the client explicitly sent; “Not recorded” means unset or an older log — never inferred from budgets or provider defaults.`,"requests.detail.reasoning":`Reasoning`,"status.success":`Success`,"status.blocked":`Blocked`,"status.upstream_error":`Upstream error`,"status.gateway_error":`Gateway error`,"status.client_cancelled":`Cancelled`,"status.pending":`In progress`,"billing.unpriced":`No price configured`,"billing.type":`Type`,"billing.tokens":`Amount`,"billing.unitPrice":`Unit /1M`,"billing.tier":`Tier`,"billing.cost":`Cost`,"pricingSource.override":`Provider custom price`,"pricingSource.provider":`Provider price · {key}`,"pricingSource.default":`Official default`,"pricingSource.none":`No price`,"simulator.official":`Official default price`,"simulator.serviceTier":`service_tier`,"simulator.time":`Request time (for time-of-day pricing)`,"simulator.run":`Calculate`,"pricing.none":`No pricing configured`,"pricing.add":`Add pricing`,"pricing.remove":`Remove pricing`,"pricing.mode.form":`Form`,"pricing.unit":`USD / 1M tokens`,"pricing.base":`Base prices`,"pricing.perRequest":`Per request`,"pricing.notes":`Notes`,"pricing.name":`Name`,"pricing.contextTiers":`Context tiers`,"pricing.contextTiers.hint":`Switch prices once input tokens exceed a threshold (e.g. Claude >200K).`,"pricing.addTier":`Add tier`,"pricing.threshold":`Threshold`,"pricing.mode.whole":`Whole request`,"pricing.mode.progressive":`Progressive`,"pricing.output.highest":`Output at highest tier`,"pricing.output.base":`Output at base price`,"pricing.timeWindows":`Time windows`,"pricing.timeWindows.hint":`Adjust prices by timezone and time of day (e.g. DeepSeek off-peak); holidays can be excluded.`,"pricing.addWindow":`Add window`,"pricing.excludeDates":`Exclude dates yyyy-MM-dd, …`,"pricing.serviceTiers":`Service tiers`,"pricing.serviceTiers.hint":`Adjust prices by service_tier (flex / priority).`,"pricing.addServiceTier":`Add tier`,"pricing.hasOwnPrices":`Has own prices (edit as JSON)`,"pricing.ruleNameTaken":`This service tier name already exists`,"pricing.timezone":`Timezone`,"pricing.invalidTimezone":`Enter a valid IANA timezone`,"pricing.start":`Start time`,"pricing.end":`End time`,"pricing.multiplier":`Multiplier`,"clients.subtitle":`Route the AI clients on this machine through Astra`,"clients.comingSoon":`Coming soon`,"clients.comingSoonDetail":`The configuration format for this client is not confirmed yet`,"clients.drifted":`Config changed`,"clients.enabled":`Enabled`,"clients.disabled":`Not enabled`,"clients.detected":`Detected {version}`,"clients.notDetected":`Not detected`,"clients.group.installed":`Installed`,"clients.group.notInstalled":`Not detected`,"clients.group.comingSoon":`Coming soon`,"clients.checkUpdates":`Check for updates`,"clients.updatesFound":`{count} client update(s) available`,"clients.allUpToDate":`All clients are up to date`,"clients.updateBadge":`Update`,"clients.shadowedBadge":`Fix PATH`,"clients.updateTo":`Update to {version}`,"clients.install":`Install`,"clients.download":`Download`,"clients.installRunning":`In progress…`,"clients.versionTitle":`Version and updates`,"clients.currentVersion":`Installed version`,"clients.latestVersion":`Latest version`,"clients.versionUnknown":`Unknown version`,"clients.notInstalled":`Not installed`,"clients.latestUnknown":`Not checked`,"clients.checkedAt":`Checked {time}`,"clients.installMethod":`Installed with`,"clients.method.npm":`Global npm package {package}`,"clients.method.vscode-extension":`VS Code extension {package}`,"clients.method.script":`Official vendor install script`,"clients.method.manual":`Download from the official site`,"clients.homepage":`Website`,"clients.blocker.npm-missing":`npm was not found. Install Node.js (it ships npm), then come back to install.`,"clients.blocker.vscode-missing":`VS Code's code command was not found. Install VS Code first.`,"clients.blocker.script-missing":`No install script for this system; install it from the official site.`,"clients.blocker.external-install":`{path} was not installed with npm. Update it the way you installed it.`,"clients.blocker.shadowed":`The latest version is already installed elsewhere; updating again won't change what the terminal runs. Fix PATH as described above.`,"clients.installLog":`Install log`,"clients.noInstallLog":`No install runs yet`,"clients.job.running":`Running…`,"clients.job.succeeded":`Finished`,"clients.job.failed":`Failed`,"clients.job.cancelled":`Stopped`,"clients.hint.permission-denied":`npm can't write to its global directory (usually because something was installed with sudo before, so the directory belongs to the administrator).`,"clients.hint.admin-cancelled":`Administrator authorization was cancelled. Nothing was changed.`,"clients.hint.shadowed":`The new version went to another location; the terminal still runs the old copy. See the log below for where.`,"clients.hint.unchanged":`The command succeeded, but the version did not change.`,"clients.hint.not-on-path":`The installed command is not on the terminal's PATH, so the terminal can't run it directly. See the log below for where.`,"clients.job.notEffective":`Finished, but not in effect`,"clients.notEffectiveToast":`{name}: the command succeeded but didn't take effect. Check the install log.`,"clients.otherCopy":`Other copy`,"clients.otherCopyNewer":`Newer`,"clients.shadowed.title":`Version {version} is installed, but the terminal does not use it`,"clients.shadowed.detail":`The terminal runs {path} ({version}); the newer copy at {other} comes later on PATH or isn't on it. Put {dir} first on PATH, or remove the old copy, to use the new version.`,"clients.notOnPath.title":`Not on the terminal's PATH`,"clients.notOnPath.detail":`This client is installed in {dir}, which is not on the terminal's PATH. Add it to PATH (e.g. in ~/.zshrc) to run it from a terminal.`,"clients.admin.badge":`Admin required`,"clients.admin.tip":`npm's global directory belongs to the administrator. macOS will ask for your login password.`,"clients.admin.tipManual":`npm's global directory belongs to the administrator. Run it with sudo in a terminal.`,"clients.admin.title":`Administrator rights needed`,"clients.admin.prompt":`npm's global directory belongs to the administrator. After you click “Authorize and start”, the system asks for your login password (or Touch ID); Astra never sees it.`,"clients.admin.manual":`npm's global directory belongs to the administrator and no authorization prompt is available here. Copy the command below and run it in a terminal.`,"clients.admin.start":`Authorize and start`,"clients.admin.copyCommand":`Copy command`,"clients.admin.retry":`Retry as administrator`,"clients.admin.retryHint":` Click “Retry as administrator” to get the system authorization prompt.`,"clients.admin.running":`Running as administrator. The output appears when the command ends, and it cannot be stopped midway.`,"clients.admin.fixTip":`To stop needing administrator rights for installs and updates, run this once in a terminal to give npm’s global directory back to your user:`,"clients.hint.timeout":`Stopped after 15 minutes without finishing.`,"clients.installTitle":`Install {name}`,"clients.updateTitle":`Update {name}`,"clients.installRunDetail":`Astra will run this command on this machine and show its output here.`,"clients.installStart":`Start`,"clients.installStop":`Stop`,"clients.installUnavailable":`This action is not available right now`,"clients.installNpmNote":`A global install writes to npm's global directory. Closing this window does not stop it.`,"clients.installedToast":`{name} installed`,"clients.updatedToast":`{name} updated`,"clients.enable":`Enable…`,"clients.disable":`Disable`,"clients.disableRestore":`Disable & restore`,"clients.pickProviderFirst":`Pick a provider below first`,"clients.appliedAt":`Config written {time}`,"clients.bound":`Switched to {provider}; effective immediately`,"clients.boundModelsSynced":`Switched to {provider} and updated the model list in the {client} config`,"clients.disableConfirm":`Disable {name}?`,"clients.disableDetail":`The entries Astra wrote are reverted to their state before enabling.`,"clients.disabledToast":`{name} disabled and config restored`,"clients.driftTitle":`Some settings were edited by hand`,"clients.driftDetail":`These entries changed after enabling and were not restored: {keys}. Force restore?`,"clients.forceRestore":`Force restore`,"clients.providerTitle":`Provider`,"clients.providerFooter":`Add several providers and drag to order them: a request goes to the first provider that offers its model (exact model ID match, or the provider's model mapping), else to the first one. Changes take effect immediately, and the client's model list includes every provider's models.`,"clients.primaryProvider":`Primary`,"clients.dragToReorder":`Drag to reorder {provider}`,"clients.removeProvider":`Remove {provider}`,"clients.providerDisabledBadge":`Disabled`,"clients.moreProvidersTitle":`Available providers`,"clients.providerAdded":`Added {provider}; effective immediately`,"clients.providerRemoved":`Removed {provider}`,"clients.providerOrderSaved":`Provider order updated; effective immediately`,"clients.providersModelsSynced":`Providers updated and the model list in the {client} config synced`,"clients.accountTitle":`Subscription account`,"clients.accountFooter":`Pin a specific account to attribute usage; leave empty for the provider default.`,"clients.account":`Account`,"clients.accountDefault":`Default account`,"clients.noProviders":`No providers yet`,"clients.noProvidersDetail":`Add an AI provider first, then choose it for this client.`,"clients.modelTitle":`Model`,"clients.modelFooter":`Default model written to the client config when enabling; leave unset to keep the client default.`,"clients.modelFooterEnabled":`Changing the default model rewrites the client config.`,"clients.modelSlotsFooter":`A chosen model is written into the Claude Code config (default model ANTHROPIC_MODEL, tiers ANTHROPIC_DEFAULT_*_MODEL); a slot left empty is never written, and an existing setting of the same name in the file is left alone.`,"clients.modelSlotsFooterEnabled":`Changing a model rewrites the client config.`,"clients.modelSlot.ANTHROPIC_MODEL":`Default model`,"clients.modelSlot.ANTHROPIC_DEFAULT_OPUS_MODEL":`Opus tier`,"clients.modelSlot.ANTHROPIC_DEFAULT_SONNET_MODEL":`Sonnet tier`,"clients.modelSlot.ANTHROPIC_DEFAULT_HAIKU_MODEL":`Haiku tier (fast/background)`,"clients.defaultModel":`Default model`,"clients.modelPlaceholder":`Choose a model`,"clients.modelUnset":`Not set`,"clients.roleMapTitle":`Role mapping`,"clients.roleMapFooter":`Claude Desktop only accepts role models such as Sonnet, Opus and Haiku; Astra swaps them for the provider models chosen here. Set at least one; unset roles use the first one that is set.`,"clients.roleMapFooterEnabled":`The mapping takes effect in the gateway right away once you apply it.`,"clients.roleMapRequired":`Choose a model for at least one role`,"clients.role.sonnet":`Sonnet`,"clients.role.opus":`Opus`,"clients.role.haiku":`Haiku`,"clients.maintenance":`Maintenance`,"clients.openConfigDir":`Open config folder`,"clients.copyConfigPath":`Copy config file path`,"clients.backups":`Config backups`,"clients.backupsDetail":`Taken automatically before every change; restore any time.`,"clients.noBackups":`No backups yet`,"clients.firstWrite":`Before first change`,"clients.restore":`Restore`,"clients.restoreConfirm":`Overwrite the current config with this backup?`,"clients.restored":`Restored from backup`,"clients.tokenTitle":`Token`,"clients.token":`Token written to the config`,"clients.tokenFooter":`Enabling writes "token.client" into the client config; usage is counted per token. Several clients can share one token.`,"clients.tokenFooterEnabled":`Changing the token rewrites the client config.`,"clients.tokenDisabled":`{name} (disabled)`,"clients.manageTokens":`Manage tokens`,"clients.claudeDirect.configure":`Local login settings`,"clients.claudeDirect.modeTitle":`Connection (Astra launcher)`,"clients.claudeDirect.mode":`Connection`,"clients.claudeDirect.gateway":`Gateway`,"clients.claudeDirect.direct":`Official direct`,"clients.claudeDirect.gatewayDetail":`Use the existing gateway configuration. Once enabled, default Claude Code requests go through Astra. astra claude is only for direct mode.`,"clients.claudeDirect.directDetail":`Sign in with an isolated Claude account on this machine; requests go straight to Anthropic, not through the gateway.`,"clients.claudeDirect.modeNote":`This affects only the Astra launcher's own sessions; running claude directly still uses your default configuration.`,"clients.claudeDirect.modeFooter":`Switching only changes how you launch it. Running sessions are never switched live, and your default ~/.claude configuration is not modified.`,"clients.claudeDirect.gatewayTitle":`Currently in gateway mode`,"clients.claudeDirect.gatewayHint":`Direct is an optional advanced setup and needs a recent Astra CLI on this machine: copy a command below into a terminal to sign in the isolated local Claude account. Staying in gateway mode requires nothing.`,"clients.claudeDirect.loadFailed":`Could not read the local direct settings`,"clients.claudeDirect.profilesTitle":`Local logins (isolated accounts)`,"clients.claudeDirect.profilesFooter":`Each account gets its own config directory (inside the Astra data directory); your own ~/.claude credentials are neither overwritten nor reused. The name is only a local label — the terminal's --status is what verifies the identity.`,"clients.claudeDirect.noProfiles":`No local login yet: type a name below, add it, then sign in with the terminal command.`,"clients.claudeDirect.selectedBadge":`In use`,"clients.claudeDirect.statsBadge":`Stats`,"clients.claudeDirect.makeSelected":`Use this one`,"clients.claudeDirect.addProfile":`New local login`,"clients.claudeDirect.addProfileDetail":`Only creates the config directory and the name; it installs no global command and signs nothing in.`,"clients.claudeDirect.name":`Login name`,"clients.claudeDirect.namePlaceholder":`e.g. Work account`,"clients.claudeDirect.profileCreated":`Created {name}; now run the login command in a terminal`,"clients.claudeDirect.needProfile":`Add a local login first`,"clients.claudeDirect.needProfileDetail":`Direct needs one of the local accounts: type a name under "Local logins" above and add it — you do not have to switch modes first.`,"clients.claudeDirect.launchTitle":`Sign in and launch`,"clients.claudeDirect.launchNote":`Needs a recent Astra CLI on this machine (npm i -g astragate). Astra does not start the login process for you: copy the command into a terminal, so the browser authorization happens on your own machine.`,"clients.claudeDirect.launchFooter":`Run --status to see the authentication state reported by the official client. Selecting a profile does not mean login succeeded.`,"clients.claudeDirect.identityNote":`The account name is only a local label; trust the --status output for the identity. Direct is deliberately a separate login and does not import your existing gateway OAuth account.`,"clients.claudeDirect.defaultTitle":`Affects the Astra launcher only`,"clients.claudeDirect.defaultDetail":`These commands launch the local account above; they do not make it your default account, overwrite default credentials, or install a global wrapper.`,"clients.claudeDirect.statsTitle":`Local statistics`,"clients.claudeDirect.statsConsent":`Collect local statistics`,"clients.claudeDirect.statsConsentDetail":`Off by default. When on, Claude Code reports usage to the local Astra itself: model, time, token counts and its own cost estimate — no message bodies, prompts or tool content.`,"clients.claudeDirect.statsFooter":`Astra stores statistics locally under the request-log retention setting. Disabling stops ingestion immediately; running sessions may keep trying to export until restarted. Estimates are not subscription charges. Organization policies may override client settings; gateway blocking and redaction do not apply to direct traffic.`,"clients.claudeDirect.statsEmpty":`No statistics yet`,"clients.claudeDirect.statsEmptyDetail":`After turning statistics on, start a session with the command above; data shows up here within seconds.`,"clients.claudeDirect.statsFailed":`Could not read the statistics`,"clients.claudeDirect.statsTotals":`Latest {count}`,"clients.claudeDirect.statsInDetail":`Total input (cache read {cache}): {input} · total output: {output}`,"clients.claudeDirect.statsCost":`Estimated cost`,"clients.claudeDirect.statsCostDetail":`The client's own estimate, not what your subscription is actually billed.`,"clients.claudeDirect.statsFailedCount":`{count} of them failed`,"clients.claudeDirect.statusError":`Failed`,"clients.claudeDirect.tokensDetail":`In {input} / Out {output}`,"tokens.subtitle":`Clients and direct calls reach Astra with a token; usage is counted per token`,"tokens.add":`New token`,"tokens.default":`Default`,"tokens.disabledBadge":`Disabled`,"tokens.copy":`Copy token`,"tokens.copied":`Token copied`,"tokens.clients":`Used by`,"tokens.noClients":`No client uses it yet`,"tokens.directProvider":`Direct-call provider`,"tokens.directNone":`Direct calls not allowed`,"tokens.directAccount":`Direct-call subscription account`,"tokens.directHint":`Point any other tool at {url} with this token to call Astra directly; requests go to the direct-call provider.`,"tokens.today":`Today`,"tokens.total":`Lifetime`,"tokens.cost":`Cost`,"tokens.requests":`Requests`,"tokens.cacheHit":`Cache hit rate`,"tokens.tps":`TPS`,"tokens.tpsContext":`Weighted output speed`,"tokens.tokens":`Tokens`,"tokens.inOut":`In / Out`,"tokens.details":`Show details`,"tokens.requestsContext":`{count} requests`,"tokens.lastUsedTitle":`Last used`,"tokens.neverUsed":`Never used`,"tokens.settings":`Settings`,"tokens.name":`Name`,"tokens.namePlaceholder":`e.g. Work laptop`,"tokens.enable":`Enable`,"tokens.disable":`Disable`,"tokens.disableConfirm":`Disable {name}?`,"tokens.disableDetail":`Clients and direct calls using this token are rejected until it is enabled again. Client configs are not changed.`,"tokens.reset":`Reset key`,"tokens.resetConfirm":`Reset the key of {name}?`,"tokens.resetDetail":`The old key stops working immediately. Enabled clients using this token get their config rewritten; configs edited by hand are skipped and need to be re-enabled.`,"tokens.resetDone":`Key reset; {count} client configs rewritten`,"tokens.skipped":`These clients could not be updated and need to be re-enabled on the Clients page: {clients}`,"tokens.delete":`Delete token`,"tokens.deleteConfirm":`Delete {name}?`,"tokens.deleteDetail":`Its clients switch to the default token and get their config rewritten. The request log keeps the token name.`,"tokens.deleted":`Deleted {name}`,"tokens.created":`Created {name}`,"tokens.createTitle":`New token`,"tokens.settingsTitle":`Token settings · {name}`,"tokens.empty":`No tokens yet`,"clients.enableTitle":`Enable {name}`,"clients.enableDetail":`These are the edits Astra will make. It only adds or changes its own entries and backs up the original file first.`,"clients.enabledToast":`{name} enabled`,"clients.enabledRestart":`{name} enabled — restart the client to apply`,"clients.noChanges":`The config is already up to date.`,"providers.add":`Add provider`,"providers.count":`{count} providers`,"providers.empty":`No providers yet`,"providers.emptyDetail":`Add OpenAI, Anthropic, DeepSeek, OpenRouter and more from built-in templates, or any compatible endpoint.`,"providers.import":`Import from other apps`,"import.title":`Import providers from other apps`,"import.detail":`Read-only scan of the local configuration of CC Switch, Alma, Claude Code, Codex and Magpie. Nothing there is modified; API keys are read and encrypted by the server and never pass through the browser.`,"import.search":`Search by name or address`,"import.path":`Read from: {path}`,"import.notFound":`Not found`,"import.sourceError":`Could not be read: {error}`,"import.noItems":`No providers to import`,"import.noMatch":`No matching providers`,"import.scanning":`Scanning…`,"import.status.new":`New`,"import.status.same":`Already added`,"import.status.sameHost":`Same address`,"import.status.off":`Disabled`,"import.status.skip":`Cannot import`,"import.existing":`Already added as "{name}"`,"import.sameHostHint":`"{name}" already uses this address; this will be imported as a new provider`,"import.noKey":`No key`,"import.models":`{count} models`,"import.template":`Template: {id}`,"import.ignored":`Will ignore: {fields}`,"import.skip.official-login":`Official login (tokens are bound to the source app)`,"import.skip.no-base-url":`No base URL`,"import.skip.unsupported-protocol":`Unsupported protocol`,"import.skip.points-to-astra":`Points at Astra itself`,"import.skip.invalid-base-url":`Invalid base URL`,"import.skip.no-inline-key":`Key comes from an environment variable and is not read`,"import.selected":`Import selected ({count})`,"import.done":`Imported {count} providers`,"import.doneSkipped":`Imported {count} providers, skipped {skipped}`,"import.footnote":`Routing, rate limits, balance queries, sessions and usage are not imported. Importing never changes any client configuration and makes no upstream requests.`,"import.rescan":`Rescan`,"providers.modelCount":`{count} models`,"providers.priceKeyShort":`Prices: {key}`,"providers.templateUpdate":`Template update`,"providers.noKey":`No API key`,"providers.card.active":`Active`,"providers.card.disabled":`Disabled`,"providers.card.subscription":`Subscription`,"providers.card.noAuth":`No key needed`,"providers.card.requests7d":`Requests, last 7 days`,"providers.card.noRequests":`No requests yet`,"providers.created":`Added {name}`,"providers.addTitle":`Choose a provider template`,"providers.addTitleDetails":`Provider details`,"providers.addDetail":`Templates include endpoints, protocols and a default model list.`,"providers.custom":`Custom provider`,"providers.customDetail":`Any OpenAI / Anthropic / Gemini compatible endpoint`,"providers.searchTemplates":`Search templates`,"providers.category.recommended":`Recommended`,"providers.category.official":`Official`,"providers.category.subscription":`Subscriptions`,"providers.category.cn":`China`,"providers.category.aggregator":`Aggregators`,"providers.category.local":`Local`,"providers.category.custom":`Other`,"providers.create":`Add`,"providers.name":`Name`,"providers.variant":`Region / edition`,"providers.variantDefault":`Default region`,"providers.baseUrl":`Base URL`,"providers.baseUrlHint":`Usually ends with /v1`,"providers.protocol":`Protocol`,"providers.authScheme":`Authentication`,"providers.apiKey":`API key`,"providers.apiKeyHint":`Stored encrypted on this machine`,"providers.subscriptionWizardHint":`No API key needed — sign in with your subscription`,"providers.subscriptionWizardDetail":`After creating the provider, click "Sign in" on its Settings tab and authorize in the browser. The vendor's terms and quotas apply.`,"providers.subscriptionAdded":`Added · add accounts inside the provider`,"providers.subscription.quotaSession":`5h used {percent}%`,"providers.subscription.quotaWeekly":`Weekly used {percent}%`,"providers.subscription.quotaCredits":`Credits used {percent}%`,"providers.subscription.quotaBalance":`Balance {balance}`,"providers.subscription.quotaRefresh":`Refresh quota`,"providers.subscription.quotaUnsupported":`Quota is not available for this subscription yet`,"providers.subscription.quotaResets":`resets {when}`,"providers.subscription.quotaLoading":`Fetching quota…`,"providers.subscription.quotaNoAccount":`Account is not usable — sign in again to see quota`,"providers.subscription.quotaWindowPremium":`Premium requests`,"providers.subscription.quotaPremiumCount":`{used} of {total} premium requests used`,"providers.subscription.quotaOverage":`{count} overage`,"providers.subscription.quotaOverageOff":`overage not enabled`,"providers.subscription.quotaFetchedAt":`updated {when}`,"providers.subscription.quotaNoWindows":`This account reports no quota windows`,"providers.subscription.quotaWindowSession":`Session window`,"providers.subscription.quotaWindowWeekly":`Weekly window`,"providers.subscription.quotaWindowCredits":`Credits`,"providers.quota.title":`Usage query`,"providers.quota.footer":`Queries this provider's balance or plan usage with a template; results appear on the provider card and in the tray. A failed query only shows an error and never affects the provider itself.`,"providers.quota.enable":`Enable usage query`,"providers.quota.enableHint":`Refreshed in the background once enabled`,"providers.quota.template":`Template`,"providers.quota.templateAuto":`Automatic ({name})`,"providers.quota.templateNone":`Automatic (no matching template)`,"providers.quota.custom":`Custom`,"providers.quota.kind.balance":`Balance`,"providers.quota.kind.plan":`Plan usage`,"providers.quota.param.userId":`User ID`,"providers.quota.param.accessToken":`System access token`,"providers.quota.paramsHint":`The system access token and user ID generated in New API / One API personal settings — not the sk- API key.`,"providers.quota.secretStored":`Saved — leave empty to keep`,"providers.quota.interval":`Auto refresh (minutes)`,"providers.quota.intervalHint":`Empty follows the global setting; 0 never refreshes in the background. Now: {value}`,"providers.quota.intervalEvery":`every {minutes} min`,"providers.quota.intervalOff":`no background refresh`,"providers.quota.timeout":`Timeout (seconds)`,"providers.quota.baseUrl":`Query address`,"providers.quota.baseUrlHint":`Empty uses the provider endpoint ({{origin}} / {{baseUrl}} come from it)`,"providers.quota.method":`Method`,"providers.quota.url":`URL`,"providers.quota.urlHint":`Placeholders: {{origin}}, {{baseUrl}}, {{host}}, {{apiKey}} and the parameter names above`,"providers.quota.auth":`Authentication`,"providers.quota.auth.provider":`Use the provider API key`,"providers.quota.auth.none":`Only the headers below`,"providers.quota.headers":`Headers (JSON)`,"providers.quota.extract":`Extraction rules (JSON)`,"providers.quota.extractHint":`A string is a path into the response (e.g. data.balance), a number is a constant; an array takes the first value present; supports $const, $add, $sub, $mul, $div, $scale, $pctUsed, $eq, $not, $case, $var, $time. Missing fields are never treated as 0.`,"providers.quota.invalidJson":`{field} is not a valid JSON object`,"providers.quota.test":`Test query`,"providers.quota.testDesc":`Sends one real request with the current (unsaved) configuration`,"providers.quota.fetch":`Query now`,"providers.quota.refresh":`Refresh balance`,"providers.quota.fetchedAt":`Updated {time}`,"providers.quota.never":`Not queried yet`,"providers.quota.off":`Usage query is off`,"providers.quota.rawResponse":`Raw response (redacted)`,"providers.quota.requestUrl":`Request URL`,"providers.quota.httpStatus":`HTTP status`,"providers.quota.testOk":`Query succeeded`,"providers.quota.testFailed":`Query failed`,"providers.quota.extracted":`Extracted`,"providers.quota.balance":`Balance {amount}`,"providers.quota.usedPercent":`{percent}% used`,"providers.quota.window":`{window}: {percent}% used`,"providers.quota.totalUsed":`{used} used of {total}`,"providers.quota.resets":`resets {time}`,"providers.quota.invalid":`Account unavailable`,"providers.quota.failed":`Usage query failed: {error}`,"providers.quota.lastGood":`Showing the last successful result`,"providers.quota.error.config":`The query configuration is incomplete`,"providers.quota.error.no_key":`This provider has no API key`,"providers.quota.error.unauthorized":`The upstream refused the quota query (invalid credentials or no permission)`,"providers.quota.error.no_endpoint":`No quota endpoint at this address; pick another template or use a custom query`,"providers.quota.error.rate_limited":`Rate limited upstream; use a longer interval`,"providers.quota.error.upstream":`The upstream returned an error`,"providers.quota.error.timeout":`The query timed out`,"providers.quota.error.network":`Could not reach the upstream`,"providers.quota.error.not_json":`The response is not JSON`,"providers.quota.error.too_large":`The response is too large`,"providers.quota.error.empty":`The query succeeded but no quota field was found`,"settings.proxy":`Network proxy`,"settings.proxy.footer":`Gateway forwarding, subscription sign-in, quota queries, update checks and client installs all connect through this setting. Local addresses always connect directly; a provider with its own proxy uses that instead.`,"settings.proxy.mode":`Proxy`,"settings.proxy.mode.system":`System`,"settings.proxy.mode.custom":`Custom`,"settings.proxy.mode.direct":`None`,"settings.proxy.mode.system.hint":`HTTPS_PROXY-style environment variables first, then the operating system proxy`,"settings.proxy.mode.custom.hint":`All outbound requests use the proxy below`,"settings.proxy.mode.direct.hint":`Ignore environment variables and the system proxy; always connect directly`,"settings.proxy.url":`Proxy URL`,"settings.proxy.urlHint":`http, https or socks5, including the port`,"settings.proxy.username":`Username`,"settings.proxy.password":`Password`,"settings.proxy.optional":`Optional`,"settings.proxy.passwordSaved":`Saved; leave blank to keep it`,"settings.proxy.bypass":`Bypass for`,"settings.proxy.bypassHint":`Comma separated; subdomains match too`,"settings.proxy.saved":`Proxy settings saved`,"settings.quota":`Provider usage query`,"settings.quota.autoInterval":`Background refresh`,"settings.quota.autoIntervalHint":`Providers with the usage query enabled refresh their balance at this interval; 0 turns it off. A provider can set its own.`,"settings.minutes":`min`,"tray.quotaBalance":`Balance`,"providers.subscription.relogin":`Sign in again`,"providers.getKey":`Get an API key ↗`,"providers.priceKey":`Price table`,"providers.priceKeyHint":`Which provider's model prices apply; the same model costs differently at different providers.`,"providers.priceKeyNone":`Official default prices only`,"providers.priceKeyDefault":`Default ({id})`,"providers.templateModels":`The template's {count} models will be added; you can change them later.`,"providers.tab.models":`Models`,"providers.tab.settings":`Settings`,"providers.test":`Test`,"providers.testDialog.title":`Test {name}`,"providers.testDialog.subtitle":`Applies the privacy policy and logs the request; never retried`,"providers.testDialog.modeSingle":`Single model`,"providers.testDialog.modeBatch":`Batch`,"providers.testDialog.config":`Test configuration`,"providers.testDialog.model":`Test model`,"providers.testDialog.modelPlaceholder":`Type any model ID`,"providers.testDialog.showModels":`Show model list`,"providers.testDialog.protocol":`Test protocol`,"providers.testDialog.stream":`Streamed response`,"providers.testDialog.maxTokens":`Max output tokens`,"providers.testDialog.prompt":`Test prompt (optional)`,"providers.testDialog.promptHint":`The default prompt is used when left empty.`,"providers.testDialog.realRequest":`A real request; it may consume quota`,"providers.testDialog.savedCredentials":`Uses the connection and credentials saved for this provider.`,"providers.testDialog.start":`Start test`,"providers.testDialog.retest":`Test again`,"providers.testDialog.stop":`Stop`,"providers.testDialog.stopRest":`Stop the rest`,"providers.testDialog.testN":`Test {count} models`,"providers.testDialog.metrics.http":`HTTP response`,"providers.testDialog.metrics.firstWait":`First token wait`,"providers.testDialog.metrics.ttft":`First token total`,"providers.testDialog.metrics.total":`Total time`,"providers.testDialog.metricsHelp":`HTTP response: time to the upstream response headers. First token: time to the first piece of the answer. Wait is measured from the headers arriving, the total from the request being sent.`,"providers.testDialog.reply":`Provider reply`,"providers.testDialog.preview":`Preview`,"providers.testDialog.raw":`Raw`,"providers.testDialog.rawNote":`Response body as processed by the gateway (credentials redacted)`,"providers.testDialog.rawTruncated":`Truncated: the raw body was longer than 256 KiB`,"providers.testDialog.reasoning":`Reasoning`,"providers.testDialog.noText":`The upstream returned no text.`,"providers.testDialog.headers":`Response headers`,"providers.testDialog.headersCount":`{count} headers`,"providers.testDialog.headersEmpty":`The upstream returned no response headers.`,"providers.testDialog.emptyTitle":`No test yet`,"providers.testDialog.emptyDetail":`Start a test to send one real request to this provider.`,"providers.testDialog.status.idle":`Waiting for a test`,"providers.testDialog.status.running":`Testing`,"providers.testDialog.status.success":`Test succeeded`,"providers.testDialog.status.failed":`Test failed`,"providers.testDialog.selected":`Selected {n} / {total}`,"providers.testDialog.progress":`Finished {done} / {total} · {ok} succeeded · {failed} failed`,"providers.testDialog.progressDone":`This batch finished {total} / {total} · {ok} succeeded · {failed} failed`,"providers.testDialog.clearSelection":`Clear selection`,"providers.testDialog.searchModels":`Search or type a model ID`,"providers.testDialog.addModel":`Add "{id}"`,"providers.testDialog.view":`View`,"providers.testDialog.noModels":`This provider has no models yet; type an ID above to test one.`,"providers.testDialog.status.queued":`Queued`,"providers.testDialog.status.cancelled":`Cancelled`,"providers.testDialog.statusColumn":`Status`,"providers.testDialog.ownFilter":`Select all models of this provider`,"providers.duplicate":`Duplicate`,"providers.deleteConfirm":`Delete {name}?`,"providers.deleteDetail":`The provider and its model settings are removed; request history is kept.`,"providers.deleted":`Deleted`,"providers.deleteBound":`Still used by: {clients}. Switch them to another provider first.`,"providers.templateVersions":`Current version {current}, latest {latest}`,"providers.templateApplied":`Updated to the latest template`,"providers.templateUpToDate":`Already on the latest template.`,"providers.searchModels":`Search models`,"providers.addModels":`Add models`,"providers.addModelsDetail":`Enter model IDs, one per line or comma separated; they are linked to system models to inherit parameters and prices.`,"providers.fetchRemote":`Fetch from upstream`,"providers.fetchRemoteDetail":`Reads the provider's model list and links models to the system catalog so they inherit parameters and prices.`,"providers.noModels":`No models yet`,"providers.noModelsDetail":`Fetch the model list from upstream, or enter model IDs manually.`,"providers.modelsFooter":`A model needs only an ID: fields you don't override are inherited from the linked system model, priced with this provider's price table.`,"providers.modelMap.title":`Model mapping`,"providers.modelMap.footer":`Turns a model ID clients ask for into one of this provider's models, e.g. deepseek-v4.1 → deepseek-chat. Mapped IDs appear in the clients' model lists, and clients bound to several providers route them here. Billing follows the model actually sent.`,"providers.modelMap.add":`Add mapping`,"providers.modelMap.addDetail":`When a client asks for the model ID on the left, Astra requests the model on the right from this provider instead.`,"providers.modelMap.needModels":`Add models to this provider first`,"providers.modelMap.from":`Requested model ID`,"providers.modelMap.to":`This provider's model`,"providers.modelMap.toPlaceholder":`Choose a model`,"providers.modelMap.remove":`Remove mapping {from}`,"providers.modelMap.saved":`Model mapping saved`,"providers.modelMap.missingTarget":`Target model missing`,"providers.unlinked":`Unlinked`,"providers.modelsAdded":`Added {count} models`,"providers.addSelected":`Add {count}`,"providers.linksTo":`Links to {id}`,"providers.noLink":`No system model`,"providers.added":`Added`,"providers.linkedModel":`Linked system model`,"providers.linkedModelHint":`Fields and prices that are not overridden are inherited from it.`,"providers.overrides":`Overrides`,"providers.price":`Price`,"providers.customPrice":`Custom price`,"providers.customPriceHint":`A custom price fully replaces the inherited one and is not scaled by the provider multiplier.`,"providers.inheritedPriceHint":`Effective price (inherited, resolved with this provider's price table):`,"providers.removeModel":`Remove {id} from this provider?`,"providers.removeModelShort":`Remove model`,"providers.section.basic":`Basics`,"providers.section.auth":`Authentication`,"providers.section.endpoints":`Endpoints`,"providers.section.billing":`Billing`,"providers.section.advanced":`Advanced`,"providers.section.info":`Info`,"providers.subscription":`Subscription accounts`,"providers.subscription.footer":`Tokens are stored encrypted on this machine and refreshed before they expire.`,"providers.subscription.login":`Sign in`,"providers.subscription.loginDesc":`Finish the provider's authorization flow; tokens stay on this machine.`,"providers.subscription.logout":`Sign out & delete`,"providers.subscription.logoutConfirm":`Sign out account "{name}"? Clients pinned to it fall back to the default account.`,"providers.subscription.refreshToken":`Refresh token`,"providers.subscription.tokenRefreshed":`Token refreshed`,"providers.subscription.expires":`Expires`,"providers.subscription.status.active":`Active`,"providers.subscription.status.expired":`Expired`,"providers.subscription.status.revoked":`Revoked`,"providers.subscription.none":`No subscription account signed in yet`,"providers.subscription.openAuthorize":`Open authorization page`,"providers.subscription.doneAuthorize":`I've finished authorizing`,"providers.subscription.waiting":`Waiting for authorization…`,"providers.subscription.waitingDetail":`The authorization page opened in your browser; this page detects the new account automatically.`,"providers.subscription.cliDetail":`Finish the authorization in your browser; sign-in completes here automatically (server-side polling, no callback URL needed).`,"providers.subscription.checkNow":`I authorized — check now`,"providers.subscription.checkNowHint":`Click after finishing in the browser; this page also checks every few seconds on its own.`,"providers.subscription.pasteTitle":`Paste the code shown on the authorization page`,"providers.subscription.pasteDetail":`Claude's registered redirect URI is not a loopback address, so the browser cannot come back here: the authorization page displays a code instead. Open it, authorize, then paste the code below.`,"providers.subscription.pastePlaceholder":`Paste the authorization code (like xxxx#yyyy)`,"providers.subscription.pasteCode":`Authorization code`,"providers.subscription.pasteSubmit":`Finish sign-in`,"providers.subscription.stillWaiting":`No authorization yet — make sure you confirmed in the browser.`,"providers.subscription.deviceCode":`Device code`,"providers.subscription.visitPage":`Open verification page`,"providers.subscription.loginOk":`Authorized: {name}`,"providers.subscription.loginFailed":`Sign-in failed`,"providers.subscription.importCodex":`Import local Codex sign-in`,"providers.subscription.importCodexHint":`Adopt the codex sign-in already stored in ~/.codex/auth.json; no browser round-trip needed`,"providers.subscription.importOk":`Imported the local Codex account: {name}`,"providers.subscription.importCopilot":`Import local GitHub authorization`,"providers.subscription.importCopilotHint":`Adopt a GitHub authorization already on this machine (the VS Code GitHub session, GH_TOKEN, or the Copilot plugin config) as a Copilot account, instead of repeating the device flow`,"providers.subscription.importCopilotPlaceholder":`or paste a GitHub token (gho_…)`,"providers.subscription.importCopilotToken":`GitHub token`,"providers.subscription.localCopilotFound":`Found a local GitHub authorization: {source}`,"providers.subscription.importBatch":`Batch import tokens`,"providers.subscription.importBatchTitle":`Batch import GitHub tokens`,"providers.subscription.importBatchLabel":`GitHub tokens (one per line)`,"providers.subscription.importBatchDesc":`Paste GitHub tokens (gho_ / ghp_ / github_pat_), one per line. Each one becomes a Copilot account; duplicates and tokens without a Copilot subscription are reported, not imported.`,"providers.subscription.importBatchPlaceholder":`gho_xxxxxxxxxxxx
|
|
23
|
-
gho_yyyyyyyyyyyy
|
|
24
|
-
# lines starting with # are ignored`,"providers.subscription.importBatchCount":`{n} token(s) recognised`,"providers.subscription.importBatchRun":`Import`,"providers.subscription.importBatchSummary":`Imported {ok}, duplicates {dup}, failed {fail}`,"providers.subscription.importBatchStatus.imported":`Imported`,"providers.subscription.importBatchStatus.duplicate":`Duplicate`,"providers.subscription.importBatchStatus.invalid_format":`Invalid format`,"providers.subscription.importBatchStatus.failed":`Failed`,"providers.subscription.localCopilotHint":`Import reads the VS Code entry in the system credential store (macOS shows a consent prompt); you can also paste a GitHub token directly`,"providers.subscription.localCodexFound":`Found a local Codex sign-in: {who}`,"providers.subscription.unknownAccount":`unknown account`,"providers.subscription.credits.title":`Rate-limit reset cards`,"providers.subscription.credits.footer":`codex reset cards: spending one clears the current rate-limit window immediately.`,"providers.subscription.credits.none":`This account has no reset cards`,"providers.subscription.credits.unavailable":`Reset cards are unavailable right now (signed out, or the upstream is unreachable).`,"providers.subscription.credits.availableCount":`{count} available`,"providers.subscription.credits.consume":`Use`,"providers.subscription.credits.consumeConfirm":`Use reset card “{title}”?`,"providers.subscription.credits.consumeDetail":`Clears the current rate-limit window immediately and cannot be undone.`,"providers.subscription.credits.consumed":`Reset card used; quota refreshed`,"providers.subscription.credits.consumeFailed":`Could not use the reset card`,"providers.subscription.credits.expires":`expires {when}`,"providers.subscription.credits.redeemedAt":`used {when}`,"providers.subscription.credits.notInPlan":`not in the current plan`,"providers.subscription.credits.status.available":`Available`,"providers.subscription.credits.status.redeemed":`Used`,"providers.subscription.credits.status.expired":`Expired`,"providers.subscription.needsVerification":`Coming soon: this subscription's sign-in flow has not been verified yet`,"providers.subscription.current":`In use`,"providers.subscription.disabled":`Disabled`,"providers.subscription.activate":`Switch to this account`,"providers.subscription.activated":`Switched to {name}; applies from the next request`,"providers.subscription.enable":`Enable`,"providers.subscription.disable":`Disable`,"providers.subscription.moveUp":`Move up`,"providers.subscription.moveDown":`Move down`,"providers.subscription.cooldown":`Rate-limited until {when}`,"providers.subscription.policy.title":`Usage policy`,"providers.subscription.policy.footer":`Switching accounts applies from the next request, no client restart needed. Requests from a client or token pinned to an account are not affected.`,"providers.subscription.policy.claudeCodeOnly":`Claude Code only`,"providers.subscription.policy.claudeCodeOnlyDetail":`Only requests from Claude Code (including its IDE extensions and Agent SDK) are accepted, with its headers forwarded as-is; other clients get a 403.`,"providers.subscription.policy.anyWarning":`Other clients are allowed: Astra only adds the headers OAuth requires and does not impersonate Claude Code. Anthropic may bill these requests as extra usage, reject them, or treat them as a terms-of-service violation.`,"providers.subscription.policy.mimic":`Other clients impersonate Claude Code`,"providers.subscription.policy.mimicDetail":`Requests from clients other than Claude Code carry the Claude Code identity (system identity blocks, the claude-cli User-Agent, X-Stainless fingerprints and the full beta set); without it the subscription token's non-Haiku models are rejected upstream. Off by default.`,"providers.subscription.policy.mimicWarning":`Claude Code impersonation is on: requests present the official CLI identity. This violates Anthropic’s terms of service and may get the account limited or banned — the risk is yours.`,"providers.subscription.policy.switchMode":`Account switching`,"providers.subscription.policy.manual":`Manual`,"providers.subscription.policy.failover":`Automatic failover`,"providers.subscription.policy.manualDetail":`Changes only when you switch, or when the current account dies or is disabled.`,"providers.subscription.policy.failoverDetail":`When the current account is rate-limited (429) or its sign-in dies, the next usable account takes over and stays in use.`,"providers.subscription.policy.balanced":`Balanced`,"providers.subscription.policy.balancedDetail":`Spreads requests over all usable accounts, fewest in flight first. A conversation (same prompt_cache_key or Claude Code session) stays on one account so the upstream prompt cache keeps hitting; a rate-limited or dead account is skipped. Bindings are kept in memory only.`,"providers.notes":`Notes`,"providers.apiKeyStored":`The API key is stored encrypted on this machine. Leave empty to keep it.`,"providers.replaceKey":`Enter a new key to replace`,"providers.endpointsFooter":`One URL per protocol; Astra translates when the client protocol differs from upstream.`,"providers.fullUrl":`Full URL`,"providers.addEndpoint":`Add endpoint`,"providers.preferred":`Upstream protocol order`,"providers.preferredHint":`Used to pick an upstream endpoint when translation is needed`,"providers.preferredMissing":`{protocol} has no endpoint address, so it is never selected from this order`,"providers.billingFooter":`The multiplier only scales inherited prices; custom model prices are not multiplied.`,"providers.multiplier":`Price multiplier`,"providers.multiplierHint":`e.g. a reseller charging official price ×1.1`,"providers.proxy":`HTTP proxy`,"providers.proxyHint":`Only for this provider`,"providers.headers":`Extra headers`,"providers.addHeader":`Add header`,"providers.addHeaderDetail":`Sent with every request to this provider; applied when you save.`,"providers.headerName":`Name`,"providers.headerValue":`Value`,"providers.addEndpointDetail":`The URL for one protocol; applied when you save.`,"providers.fullUrlHint":`The URL is the complete request URL; no path is appended`,"providers.adapterSettings":`Adapter settings (JSON)`,"providers.adapter":`Adapter`,"providers.boundClients":`Used by`,"origin.inherited":`Inherited`,"origin.overridden":`Overridden`,"origin.unset":`Unset`,"origin.reset":`Reset to inherited`,"models.count":`{count} models`,"models.search":`Search models, aliases`,"models.allVendors":`All vendors`,"models.sync":`Sync model catalog`,"models.syncDetail":`Fetch the latest parameters and prices from the official catalog (astra-gate.si). Fields you modified are never overwritten.`,"models.new":`New model`,"models.newDetail":`Add parameters and a default price for a model the catalog does not have.`,"models.col.model":`Model`,"models.col.vendor":`Vendor`,"models.col.context":`Context`,"models.col.price":`Input / output`,"models.col.providerPrices":`Provider prices`,"models.empty":`No matching models`,"models.source.seed":`Built-in`,"models.source.sync":`Synced`,"models.source.user":`Custom`,"models.modified":`Modified`,"models.providerPriceCount":`{count} providers`,"models.updated":`updated {time}`,"models.resetField":`Restore built-in value`,"models.fieldReset":`Restored built-in value`,"models.deleteConfirm":`Delete model {id}?`,"models.section.basic":`Parameters`,"models.section.capabilities":`Capabilities`,"models.section.pricing":`Official default price`,"models.section.providerPrices":`Prices by provider`,"models.section.overrides":`Provider custom prices`,"models.section.simulator":`Billing simulator`,"models.modifiedFooter":`Fields marked "Modified" are never overwritten by built-in data or syncs.`,"models.pricingHint":`The vendor's official price; used when a provider has no price of its own (scaled by the provider multiplier).`,"models.providerPricesFooter":`The same model priced at different AI providers (by price table); takes precedence over the official default.`,"models.overridesFooter":`These providers set their own price for this model; it has the highest priority.`,"models.noProviderPrices":`No provider-specific prices`,"models.hasTimeWindows":`time windows`,"models.hasTiers":`tiers`,"models.deletePrice":`Delete the {key} price?`,"models.addPrice":`Add provider price`,"models.editPrice":`Edit {key} price`,"models.priceSheetDetail":`Applies only to providers using this price table.`,"models.pickPriceKey":`Choose a price table`,"models.customPriceKey":`or enter a custom price table ID`,"models.upstreamId":`Provider's model ID`,"models.upstreamIdHint":`Set when it differs from the system ID; used for auto-linking`,"models.simulatorUnsaved":`Unsaved changes: simulating with the edited price.`,"models.field.id":`Model ID`,"models.field.idHint":`The name clients send`,"models.field.displayName":`Display name`,"models.field.vendor":`Vendor`,"models.field.family":`Family`,"models.field.aliases":`Aliases`,"models.field.contextWindow":`Context window`,"models.field.maxOutputTokens":`Max output`,"models.field.inputPrice":`Input /1M`,"models.field.outputPrice":`Output /1M`,"models.sync.newModel":`New model`,"models.sync.price":`Price · {key}`,"models.sync.field":`Field · {field}`,"models.sync.applied":`Applied {count} changes`,"models.sync.apply":`Apply {count}`,"models.sync.check":`Check for updates`,"models.sync.none":`Everything is up to date`,"models.sync.userModified":`Modified by you`,"cap.vision":`Image input`,"cap.tools":`Tool calling`,"cap.reasoning":`Reasoning`,"cap.promptCache":`Prompt caching`,"cap.audio":`Audio`,"cap.pdf":`PDF`,"cap.structuredOutput":`Structured output`,"requests.col.cache":`Cache read / write`,"usage.title":`Token usage`,"usage.inputTotal":`Total input`,"usage.outputTotal":`Total output`,"usage.input":`Input`,"usage.output":`Output`,"usage.uncachedInput":`Uncached input`,"usage.regularOutput":`Non-reasoning output`,"usage.cacheRead":`Cache hit`,"usage.cacheWrite":`Cache write`,"usage.cacheWrite5m":`Cache write · 5 minutes`,"usage.cacheWrite1h":`Cache write · 1 hour`,"usage.reasoning":`Reasoning / thinking`,"usage.inputAudio":`Audio input`,"usage.outputAudio":`Audio output`,"usage.inputImage":`Image input`,"usage.outputImage":`Image output`,"usage.hitShort":`Hit`,"usage.writeShort":`Write`,"usage.reasoningShort":`Think`,"usage.hitRate":`Cache hit rate`,"usage.noCache":`No cache read or write tokens reported by upstream`,"usage.missing":`No usage reported by upstream; the cache hit rate is unknown.`,"usage.hitTooltip":`Cache hits {read} / total input {total} tokens`,"usage.writeTooltip":`{tokens} tokens written; 5m / 1h are listed separately in details`,"usage.totalsHint":`Input already includes cache reads and writes; output includes reasoning. These counters are not added twice. Hit rate = cache read / total input.`,"usage.cacheAmounts":`Hit {read} · Write {write}`,"settings.appearance":`Appearance`,"settings.theme":`Theme`,"settings.theme.system":`System`,"settings.theme.light":`Light`,"settings.theme.dark":`Dark`,"settings.accent":`Accent color`,"settings.accent.system":`System`,"settings.accent.followingSystem":`Using the system accent color`,"settings.accent.systemUnavailable":`System accent unavailable; using default blue`,"settings.accent.blue":`Blue`,"settings.accent.purple":`Purple`,"settings.accent.pink":`Pink`,"settings.accent.red":`Red`,"settings.accent.orange":`Orange`,"settings.accent.yellow":`Yellow`,"settings.accent.green":`Green`,"settings.accent.graphite":`Graphite`,"settings.language":`Language`,"settings.languageHint":`Also the language of billing descriptions for new requests`,"settings.gateway":`Gateway`,"settings.gatewayFooter":`Change the port and listen address from a terminal: astra start --port <port>`,"settings.gatewayUrl":`Gateway URL`,"settings.listen":`Listening on`,"settings.dataDir":`Data folder`,"settings.openFolder":`Open folder`,"settings.streamIdle":`Stream idle timeout`,"settings.streamIdleHint":`Disconnect when the upstream sends nothing for this long`,"settings.logging":`Logging`,"settings.debugBodies":`Save request & response bodies`,"settings.debugBodiesHint":`For troubleshooting. Stored in the local data folder, without secrets.`,"settings.bodyRetention":`Keep bodies`,"settings.requestRetention":`Auto-delete request history`,"settings.keepForever":`Kept forever`,"settings.days":`days`,"settings.effort":`Reasoning effort mapping`,"settings.effortHint":`Used when translating OpenAI reasoning effort to Anthropic / Gemini thinking budgets and back.`,"settings.privacy":`Privacy guard`,"settings.privacy.footer":`Sensitive content is detected on this machine before requests leave. Original values live only in request memory and are never stored.`,"settings.privacy.enabled":`Enable privacy guard`,"settings.privacy.enabledHint":`When off, requests are forwarded untouched`,"settings.privacy.dryRun":`Detect only`,"settings.privacy.dryRunHint":`Record matches but let requests through, to observe the effect`,"settings.privacy.restore":`Restore placeholders in responses`,"settings.privacy.restoreHint":`Placeholders are swapped back to the original values; clients never notice`,"settings.privacy.recordSamples":`Record masked samples`,"settings.privacy.recordSamplesHint":`Logs keep masked samples (e.g. john••••om); originals are never saved`,"settings.privacy.defaultAction":`Default action`,"settings.privacy.action.off":`Off`,"settings.privacy.action.warn":`Warn only`,"settings.privacy.action.block":`Block`,"settings.privacy.action.redact":`Redact`,"settings.privacy.categories":`Detection categories`,"settings.privacy.category.api_key":`API keys`,"settings.privacy.category.aws_key":`AWS keys`,"settings.privacy.category.jwt":`JWT tokens`,"settings.privacy.category.private_key":`Private keys`,"settings.privacy.category.email":`Email addresses`,"settings.privacy.category.phone":`Phone numbers`,"settings.privacy.category.intranet":`Intranet addresses`,"settings.privacy.category.custom":`Custom`,"settings.privacy.category.credit_card":`Card numbers`,"settings.privacy.category.national_id":`National IDs`,"settings.privacy.category.credential":`Credentials & connection strings`,"settings.privacy.enableCategory":`Enable`,"settings.privacy.customRules":`Custom rules`,"settings.privacy.noCustomRules":`No custom rules yet`,"settings.privacy.addRule":`Add rule`,"settings.privacy.ruleName":`Rule name`,"settings.privacy.rulePattern":`Regular expression`,"settings.privacy.rulePatternHint":`Matched against every string value in the request`,"settings.privacy.ruleTemplates":`Fill from template`,"settings.privacy.ruleTemplatesHint":`Pick a common template; name and pattern stay editable`,"settings.privacy.ruleTemplateNone":`Custom (enter manually)`,"settings.privacy.template.ipv4All":`All IPv4 addresses`,"settings.privacy.template.ipv4AllHint":`Includes public ranges; the built-in intranet rule covers private ranges only`,"settings.privacy.template.landline":`Landline numbers (China)`,"settings.privacy.template.licensePlate":`License plates (China)`,"settings.privacy.template.passportCn":`Passport numbers (China)`,"settings.privacy.template.uscc":`Unified social credit codes`,"settings.privacy.template.longToken":`Generic long tokens (32+ chars)`,"settings.privacy.template.longTokenHint":`Broad matches; pair with the "warn" action`,"settings.privacy.template.macAddress":`MAC addresses`,"settings.privacy.template.unixHome":`Unix / macOS home paths`,"settings.privacy.template.windowsProfile":`Windows profile paths`,"settings.privacy.template.unixHomeHint":`These paths expose the local username`,"settings.privacy.template.genericHint":`Adjust the expression as needed`,"settings.privacy.template.cloudAccessKey":`Cloud AccessKey IDs (Alibaba LTAI…, Tencent AKID…)`,"settings.privacy.template.awsSecretKey":`AWS secret access keys (40 chars)`,"settings.privacy.template.imWebhook":`IM bot webhooks (DingTalk / WeCom / Feishu / Slack)`,"settings.privacy.template.imWebhookHint":`A webhook URL is itself a credential — anyone holding it can post to the group`,"settings.privacy.template.internalService":`Internal service hosts (gitlab., jenkins., jira., …)`,"settings.privacy.template.jdbcConn":`JDBC connection strings with credentials`,"settings.privacy.template.jdbcHint":`Credentials inside connection strings are usually plain text`,"settings.privacy.template.smtpConn":`Mail server URLs with credentials (smtp://user:pass@…)`,"settings.privacy.template.keyFileRef":`Key file references (.pem / .key / .pfx / .jks)`,"settings.privacy.template.confidentialMarker":`Confidentiality markers (机密, Confidential, …)`,"settings.privacy.template.confidentialHint":`Warn or block on document classification markers`,"settings.privacy.template.employeeId":`Employee IDs (EMP-123456)`,"settings.privacy.template.labeledNumber":`Labeled numbers (contract / order / ticket numbers)`,"settings.privacy.invalidPattern":`Invalid regular expression`,"settings.privacy.deleteRuleConfirm":`Delete rule "{name}"?`,"settings.privacy.tester":`Dry run`,"settings.privacy.testerHint":`Check the text below against the current policy (no real request is affected)`,"settings.privacy.testerPlaceholder":`Paste request text or JSON…`,"settings.privacy.runTest":`Check`,"settings.privacy.noHits":`No rule matched`,"settings.privacy.wouldBlock":`Would block the request`,"settings.privacy.wouldRedact":`Would redact {count} place(s)`,"privacy.tab.overview":`Overview`,"privacy.tab.logs":`Interception log`,"privacy.tab.rules":`Detection rules`,"privacy.tab.tester":`Dry run`,"privacy.stats":`Guard statistics`,"privacy.stats.events":`Guard events`,"privacy.stats.blocked":`Blocked requests`,"privacy.stats.dryRun":`Detect-only requests`,"privacy.stats.redactions":`Redacted places`,"privacy.stats.byCategory":`Hits by category`,"privacy.stats.col.category":`Category`,"privacy.stats.col.requests":`Requests`,"privacy.stats.col.hits":`Hits`,"privacy.stats.col.warn":`Warn`,"privacy.stats.col.block":`Block`,"privacy.stats.col.redact":`Redact`,"privacy.logs.total":`{count} events`,"privacy.logs.empty":`No privacy events yet`,"privacy.logs.empty.detail":`Requests where the guard detected sensitive content show up here`,"privacy.logs.col.outcome":`Outcome`,"privacy.logs.col.action":`Hit action`,"privacy.logs.col.hits":`Hits`,"privacy.logs.outcome.blocked":`Blocked`,"privacy.logs.outcome.redacted":`{count} redacted`,"privacy.logs.outcome.dryRun":`Detect only`,"privacy.logs.blockedOnly":`Blocked only`,"privacy.logs.passedOnly":`Passed only`,"privacy.logs.moreHits":`+{count} more`,"privacy.logs.viewRequest":`View request {model}`,"settings.effort.low":`low`,"settings.effort.medium":`medium`,"settings.effort.high":`high`,"settings.about":`About`,"settings.serverVersion":`Server version`,"settings.desktopVersion":`Desktop version`,"settings.logs":`Open logs folder`,"settings.logout":`Sign out`,"settings.checkUpdates":`Check for updates`,"settings.upToDate":`Up to date`,"settings.updateAvailable":`Update {version} available`,"settings.updateCheckFailed":`Check failed: {error}`,"settings.updateApplyHint":`Install from the Astra tray menu, or run astra update in a terminal`,"settings.updateApply":`Update now`,"settings.updateApplied":`Server updated and restarted`,"settings.updateDesktopRelaunch":`The desktop app will relaunch to finish the update`,"settings.lastChecked":`Last checked: {time}`,"settings.autoCheck":`Check for updates automatically`,"settings.tab.general":`General`,"settings.tab.tray":`Tray panel`,"settings.tray.titleHeading":`Menu bar text`,"settings.tray.titleHint":`Shown next to the menu bar icon, visible without opening anything. On Windows and Linux it appears in the icon tooltip.`,"settings.tray.title.none":`Nothing`,"settings.tray.title.none.hint":`Icon only`,"settings.tray.title.requests":`Calls today`,"settings.tray.title.requests.hint":`e.g. 7`,"settings.tray.title.tokens":`Tokens today`,"settings.tray.title.tokens.hint":`e.g. 68.8K`,"settings.tray.title.cost":`Cost today`,"settings.tray.title.cost.hint":`e.g. $0.37`,"settings.tray.title.quota":`Subscription window`,"settings.tray.title.quota.hint":`The window with the least left, e.g. 64%`,"settings.tray.title.alerts":`Alerts only`,"settings.tray.title.alerts.hint":`Only on failed requests, low quota, or a stopped gateway`,"settings.tray.usageHeading":`Usage`,"settings.tray.clientsHeading":`Clients`,"settings.tray.section.overview":`Today at a glance`,"settings.tray.section.overview.hint":`Calls, tokens and failures`,"settings.tray.section.cost":`Estimated cost`,"settings.tray.section.cost.hint":`At official API prices; not a bill`,"settings.tray.section.chart":`Today's trend`,"settings.tray.section.chart.hint":`Calls per hour as bars`,"settings.tray.section.topModel":`Top model`,"settings.tray.section.topModel.hint":`The model with the largest share of today's tokens`,"settings.tray.section.compareYesterday":`Compare with yesterday`,"settings.tray.section.compareYesterday.hint":`Today's tokens against all of yesterday`,"settings.tray.section.cacheHitRate":`Cache hit rate`,"settings.tray.section.cacheHitRate.hint":`Cache reads as a share of input tokens`,"settings.tray.section.quota":`Quota & balance`,"settings.tray.section.quota.hint":`Window usage and reset times of Codex, Claude and other subscriptions, plus balances of API providers with the usage query on`,"settings.tray.section.clients":`Client providers`,"settings.tray.section.clients.hint":`The provider each enabled client uses; click to switch`,"settings.tray.previewHeading":`Panel preview`,"settings.tray.previewHint":`The panel that opens from the tray icon. Changes apply at once; the preview is what you get.`,"settings.tray.previewFooter":`Rendered with live data.`,"settings.tray.reset":`Restore defaults`,"tray.status.running":`Gateway running`,"tray.status.stopped":`Gateway not running`,"tray.status.starting":`Starting gateway…`,"tray.status.stopping":`Stopping gateway…`,"tray.status.restarting":`Restarting gateway…`,"tray.stoppedHint":`While the gateway is stopped, clients cannot reach models through Astra.`,"tray.mismatch":`API version mismatch`,"tray.update":`Update available`,"tray.copyAddress":`Copy gateway URL`,"tray.settings":`Tray panel settings`,"tray.more":`More actions`,"tray.today":`Today`,"tray.failures":`{count} failed`,"tray.justNow":`just now`,"tray.updated":`Updated {time}`,"tray.loadFailed":`Could not load usage`,"tray.requests":`calls`,"tray.tokens":`tokens`,"tray.cost":`Est. cost`,"tray.topModel":`Top model`,"tray.cacheHit":`Cache hits`,"tray.vsYesterday":`vs yesterday`,"tray.chartLabel":`Calls per hour today`,"tray.hourBar":`{hour} · {count} calls`,"tray.quota":`Quota & balance`,"tray.quotaRemaining":`Left`,"tray.quotaReset":`Resets`,"tray.quotaCredits":`Credits`,"tray.quotaPending":`Fetching quota…`,"tray.clients":`Clients`,"tray.unbound":`Not bound`,"tray.switchProvider":`Switch the provider of {client}`,"tray.disabledProvider":`{name} (disabled)`,"tray.restart":`Restart gateway`,"tray.stop":`Stop gateway`,"tray.quit":`Quit`,"tray.open":`Open Astra`,"tray.title.requests":`{count} calls today`,"tray.title.tokens":`{count} tokens today`,"tray.title.cost":`{amount} estimated today`,"tray.title.quota":`{plan} {window} window: {remaining} left`,"tray.title.failures":`{count} failed today`,"tray.tab.overview":`Overview`,"tray.tab.quota":`Quota`,"tray.alert.failures":`{count} failed · {share} of today`,"tray.alert.quota":`{plan} {window} window: only {remaining} left`,"tray.quotaTightest":`Quota · tightest`,"tray.viewAll":`View all`},vv=`astra.locale`,yv={zh:Uee,en:Wee};function Gee(){try{let e=localStorage.getItem(vv);if(e===`zh`||e===`en`)return e}catch{}return(globalThis.navigator?.language??`zh`).toLowerCase().startsWith(`zh`)?`zh`:`en`}function Kee(e,t){return t?e.replace(/\{(\w+)\}/g,(e,n)=>n in t?String(t[n]):e):e}function qee(e,t,n){return Kee(yv[e][t]??yv.zh[t]??t,n)}var bv=(0,p.createContext)(null);function Jee({children:e}){let[t,n]=(0,p.useState)(Gee),r=(0,p.useCallback)(e=>{n(e),document.documentElement.lang=e===`zh`?`zh-CN`:`en`;try{localStorage.setItem(vv,e)}catch{}},[]),i=(0,p.useMemo)(()=>({locale:t,setLocale:r,t:(e,n)=>qee(t,e,n)}),[t,r]);return(0,m.jsx)(bv.Provider,{value:i,children:e})}function K(){let e=(0,p.useContext)(bv);if(!e)throw Error(`useI18n outside I18nProvider`);return e}function xv(){return K().t}function Sv(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=Sv(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function Yee(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Sv(e))&&(r&&(r+=` `),r+=t);return r}function Cv(...e){return Yee(e)}function wv(e){let[t,n]=(0,p.useState)(()=>globalThis.matchMedia?.(e).matches??!1);return(0,p.useEffect)(()=>{let t=globalThis.matchMedia?.(e);if(!t)return;let r=()=>n(t.matches);return r(),t.addEventListener(`change`,r),()=>t.removeEventListener(`change`,r)},[e]),t}function Tv(e,t=250){let[n,r]=(0,p.useState)(e);return(0,p.useEffect)(()=>{let n=setTimeout(()=>r(e),t);return()=>clearTimeout(n)},[e,t]),n}var Ev=[`overview`,`requests`,`clients`,`providers`,`models`,`settings`];function Xee(e,t,n){let r=/^Digit([1-6])$/.exec(e.code)?.[1];if(t.desktop){if(t.mac||!e.ctrlKey||e.metaKey)return null;if(r&&!e.altKey)return`nav:${Ev[Number(r)-1]}`;if(e.altKey&&e.code===`KeyS`)return`toggle-sidebar`;if(e.altKey||e.shiftKey)return null;switch(e.code){case`KeyF`:return`find`;case`KeyR`:return`refresh`;case`KeyN`:return`new-provider`;case`Comma`:return`nav:settings`;default:return null}}return r&&e.altKey&&!e.ctrlKey&&!e.metaKey?`nav:${Ev[Number(r)-1]}`:e.key===`/`&&!n&&!e.ctrlKey&&!e.metaKey&&!e.altKey?`find`:null}function Zee(e){let t=e;return t?t.isContentEditable||[`INPUT`,`TEXTAREA`,`SELECT`].includes(t.tagName):!1}function Qee(e){let t=(0,p.useRef)(e);(0,p.useEffect)(()=>{t.current=e}),(0,p.useEffect)(()=>{let e=e=>{let n=Xee(e,{desktop:Lp,mac:Rp},Zee(e.target));n&&(e.preventDefault(),t.current(n))};window.addEventListener(`keydown`,e);let n=jp()?.onMenuCommand(e=>t.current(e));return()=>{window.removeEventListener(`keydown`,e),n?.()}},[])}var Dv=new Set;function Ov(e){for(let t of Dv)t(e)}function kv(e){let t=(0,p.useRef)(e);(0,p.useEffect)(()=>{t.current=e}),(0,p.useEffect)(()=>{let e=e=>t.current(e);return Dv.add(e),()=>{Dv.delete(e)}},[])}var Av={canOpenPaths:!!jp(),async openPath(e){let t=jp();return t?t.openPath(e):!1},async revealLogs(){return await jp()?.revealLogs()??!1},async copy(e){try{return await navigator.clipboard.writeText(e),!0}catch{return!1}},async contextMenu(e){let t=jp();if(t)return t.showContextMenu(e)},async startService(){let e=jp();return e?e.startService():null}};function jv(e){let t=Math.max(e.lastIndexOf(`/`),e.lastIndexOf(`\\`));return t>0?e.slice(0,t):e}var $ee=`/assets/logo-BgbCqQmU.png`;function Mv({className:e}){return(0,m.jsx)(`img`,{src:$ee,alt:``,className:e,draggable:!1,"aria-hidden":!0})}var ete=Object.defineProperty,Nv=(e,t)=>ete(e,`name`,{value:t,configurable:!0});function tte(e,t){let n=p.createContext(t);n.displayName=e+`Context`;let r=Nv(e=>{let{children:t,...r}=e,i=p.useMemo(()=>r,Object.values(r));return(0,m.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=p.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Nv(i,`useContext`),[r,i]}Nv(tte,`createContext`);function Pv(e,t=[]){let n=[];function r(t,r){let i=p.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Nv(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=p.useMemo(()=>o,Object.values(o));return(0,m.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=p.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Nv(s,`useContext`),[o,s]}Nv(r,`createContext`);let i=Nv(()=>{let t=n.map(e=>p.createContext(e));return Nv(function(n){let r=n?.[e]||t;return p.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Fv(i,...t)]}Nv(Pv,`createContextScope`);function Fv(...e){let t=e[0];if(e.length===1)return t;let n=Nv(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Nv(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return p.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Nv(Fv,`composeContextScopes`);var nte=Object.defineProperty,Iv=(e,t)=>nte(e,`name`,{value:t,configurable:!0});function Lv(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Iv(Lv,`setRef`);function Rv(...e){return t=>{let n=!1,r=e.map(e=>{let r=Lv(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():Lv(e[t],null)}}}}Iv(Rv,`composeRefs`);function zv(...e){return p.useCallback(Rv(...e),e)}Iv(zv,`useComposedRefs`);var rte=Object.defineProperty,Bv=(e,t)=>rte(e,`name`,{value:t,configurable:!0});function Vv(e){let t=p.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Yv(r)&&typeof ey==`function`&&(r=ey(r._payload)),p.Children.forEach(r,e=>{if(qv(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Yv(n)&&typeof ey==`function`&&(n=ey(n._payload)),a=Wv(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=p.cloneElement(a,void 0,s):!o&&p.Children.count(r)===1&&p.isValidElement(r)&&(a=r);let c=a?Kv(a):void 0,l=zv(n,c);if(!a){if(r||r===0)throw Error(o?$v(e):Qv(e));return r}let u=Gv(i,a.props??{});return a.type!==p.Fragment&&(u.ref=n?l:c),p.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Bv(Vv,`createSlot`);var Hv=Symbol.for(`radix.slottable`);function Uv(e){let t=Bv(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=Hv,t}Bv(Uv,`createSlottable`);var Wv=Bv((e,t)=>{if(`child`in e.props){let t=e.props.child;return p.isValidElement(t)?p.cloneElement(t,void 0,e.props.children(t.props.children)):null}return p.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Gv(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`?n[r]=[i,a].filter(Boolean).join(` `):r===`aria-describedby`&&(n[r]=Zv(a,i))}return{...e,...n}}Bv(Gv,`mergeProps`);function Kv(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Bv(Kv,`getElementRef`);function qv(e){return p.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===Hv}Bv(qv,`isSlottable`);var Jv=Symbol.for(`react.lazy`);function Yv(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===Jv&&`_payload`in e&&Xv(e._payload)}Bv(Yv,`isLazyComponent`);function Xv(e){return typeof e==`object`&&!!e&&`then`in e}Bv(Xv,`isPromiseLike`);function Zv(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}Bv(Zv,`concatAriaDescribedby`);var Qv=Bv(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),$v=Bv(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),ey=p.use,ty=Object.defineProperty,ny=(e,t)=>ty(e,`name`,{value:t,configurable:!0});function ry(e){let t=e+`CollectionProvider`,[n,r]=Pv(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=ny(e=>{let{scope:t,children:n}=e,r=p.useRef(null),a=p.useRef(new Map).current;return(0,m.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Vv(s),l=p.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=zv(t,a(s,n).collectionRef);return(0,m.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Vv(u),h=p.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=p.useRef(null),s=zv(t,o),c=a(u,n);return p.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,m.jsx)(f,{[d]:``,ref:s,children:r})});h.displayName=u;function g(t){let n=a(e+`CollectionConsumer`,t);return p.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return ny(g,`useCollection`),[{Provider:o,Slot:l,ItemSlot:h},g,r]}ny(ry,`createCollection`);var iy=new WeakMap,ay=class e extends Map{static{ny(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],iy.set(this,!0)}set(e,t){return iy.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=cy(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=oy(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=oy(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return oy(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function oy(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=sy(e,t);return n===-1?void 0:e[n]}ny(oy,`at`);function sy(e,t){let n=e.length,r=cy(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}ny(sy,`toSafeIndex`);function cy(e){return e!==e||e===0?0:Math.trunc(e)}ny(cy,`toSafeInteger`);function ly(e){let t=e+`CollectionProvider`,[n,r]=Pv(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new ay,setItemMap:ny(()=>void 0,`setItemMap`)}),o=ny(({state:e,...t})=>e?(0,m.jsx)(c,{...t,state:e}):(0,m.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=ny(e=>{let t=_();return(0,m.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=ny(e=>{let{scope:t,children:n,state:r}=e,a=p.useRef(null),[o,s]=p.useState(null),c=zv(a,s),[l,u]=r;return p.useEffect(()=>{if(!o)return;let e=py(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,m.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=Vv(l),d=p.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=zv(t,a(l,n).collectionRef);return(0,m.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,h=Vv(f),g=p.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=p.useRef(null),[s,c]=p.useState(null),l=zv(t,o,c),{setItemMap:u}=a(f,n),d=p.useRef(i);uy(d.current,i)||(d.current=i);let g=d.current;return p.useEffect(()=>{let e=g;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(fy):(t.set(s,{...e,element:s}),t.toSorted(fy)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new ay(e)))}},[s,g,u]),(0,m.jsx)(h,{"data-radix-collection-item":``,ref:l,children:r})});g.displayName=f;function _(){return p.useState(new ay)}ny(_,`useInitCollection`);function v(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return ny(v,`useCollection`),[{Provider:o,Slot:d,ItemSlot:g},{createCollectionScope:r,useCollection:v,useInitCollection:_}]}ny(ly,`createCollection`);function uy(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}ny(uy,`shallowEqual`);function dy(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}ny(dy,`isElementPreceding`);function fy(e,t){return!e[1].element||!t[1].element?0:dy(e[1].element,t[1].element)?-1:1}ny(fy,`sortByDocumentPosition`);function py(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}ny(py,`getChildListObserver`);var my=Object.defineProperty,hy=(e,t)=>my(e,`name`,{value:t,configurable:!0}),gy=!!(typeof window<`u`&&window.document&&window.document.createElement);function q(e,t,{checkForDefaultPrevented:n=!0}={}){return hy(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}hy(q,`composeEventHandlers`);function _y(e){if(!gy)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}hy(_y,`getOwnerWindow`);function vy(e){if(!gy)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}hy(vy,`getOwnerDocument`);function yy(e,t=!1){let{activeElement:n}=vy(e);if(!n?.nodeName)return null;if(by(n)&&n.contentDocument)return yy(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=vy(n).getElementById(e);if(t)return t}}return n}hy(yy,`getActiveElement`);function by(e){return e.tagName===`IFRAME`}hy(by,`isFrame`);var xy=globalThis?.document?p.useLayoutEffect:()=>{},Sy=Object.defineProperty,Cy=(e,t)=>Sy(e,`name`,{value:t,configurable:!0}),wy=p.useEffectEvent,Ty=p.useInsertionEffect;function Ey(e){if(typeof wy==`function`)return wy(e);let t=p.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof Ty==`function`?Ty(()=>{t.current=e}):xy(()=>{t.current=e}),p.useMemo(()=>((...e)=>t.current?.(...e)),[])}Cy(Ey,`useEffectEvent`);var Dy=Object.defineProperty,Oy=(e,t)=>Dy(e,`name`,{value:t,configurable:!0}),ky=p.useInsertionEffect||xy;function Ay({prop:e,defaultProp:t,onChange:n=Oy(()=>{},`onChange`),caller:r}){let[i,a,o]=jy({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,p.useCallback(t=>{if(s){let n=My(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}Oy(Ay,`useControllableState`);function jy({defaultProp:e,onChange:t}){let[n,r]=p.useState(e),i=p.useRef(n),a=p.useRef(t);return ky(()=>{a.current=t},[t]),p.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}Oy(jy,`useUncontrolledState`);function My(e){return typeof e==`function`}Oy(My,`isFunction`);var Ny=Symbol(`RADIX:SYNC_STATE`);function Py(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=Ey(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=p.useReducer((t,n)=>{if(n.type===Ny)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),m=d.state,h=p.useRef(m);p.useEffect(()=>{h.current!==m&&(h.current=m,c||l(m))},[m,h,c]);let g=p.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return p.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:Ny,state:i})},[i,d.state,c]),[g,f]}Oy(Py,`useControllableStateReducer`);var Fy=c(Dp(),1),Iy=Object.defineProperty,Ly=(e,t)=>Iy(e,`name`,{value:t,configurable:!0}),Ry=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Vv(`Primitive.${t}`),r=p.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,m.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function zy(e,t){e&&Fy.flushSync(()=>e.dispatchEvent(t))}Ly(zy,`dispatchDiscreteCustomEvent`);var By=Object.defineProperty,Vy=(e,t)=>By(e,`name`,{value:t,configurable:!0});function Hy(e,t){return p.useReducer((e,n)=>t[e][n]??e,e)}Vy(Hy,`useStateMachine`);var Uy=Vy(e=>{let{present:t,children:n}=e,r=Wy(t),i=typeof n==`function`?n({present:r.isPresent}):p.Children.only(n),a=Ky(r.ref,Jy(i));return typeof n==`function`||r.isPresent?p.cloneElement(i,{ref:a}):null},`Presence`);function Wy(e){let[t,n]=p.useState(),r=p.useRef(null),i=p.useRef(e),a=p.useRef(`none`),o=p.useRef(void 0),[s,c]=Hy(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return p.useEffect(()=>{s===`mounted`?(a.current=o.current??qy(r.current),o.current=void 0):a.current=`none`},[s]),xy(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=qy(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),xy(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Vy(a=>{let o=qy(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Vy(e=>{e.target===t&&(a.current=qy(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:p.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=qy(t)}else r.current=null;n(e)},[])}}Vy(Wy,`usePresence`);function Gy(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Vy(Gy,`setRef`);function Ky(...e){let t=p.useRef(e);return t.current=e,p.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Gy(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Gy(n[e],null)}}},[])}Vy(Ky,`useStableComposedRefs`);function qy(e){return e?.animationName||`none`}Vy(qy,`getAnimationName`);function Jy(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Vy(Jy,`getElementRef`);var Yy=Object.defineProperty,Xy=(e,t)=>Yy(e,`name`,{value:t,configurable:!0}),Zy=p.useId||(()=>void 0),Qy=0;function $y(e){let[t,n]=p.useState(Zy());return xy(()=>{e||n(e=>e??String(Qy++))},[e]),e||(t?`radix-${t}`:``)}Xy($y,`useId`);var eb=Object.defineProperty,tb=(e,t)=>eb(e,`name`,{value:t,configurable:!0}),nb=`Collapsible`,[rb,ib]=Pv(nb),[ab,ob]=rb(nb),sb=p.forwardRef(tb(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=Ay({prop:r,defaultProp:i??!1,onChange:o,caller:nb});return(0,m.jsx)(ab,{scope:n,disabled:a,contentId:$y(),open:c,onOpenToggle:p.useCallback(()=>l(e=>!e),[l]),children:(0,m.jsx)(Ry.div,{"data-state":pb(c),"data-disabled":a?``:void 0,...s,ref:t})})},`Collapsible`)),cb=`CollapsibleTrigger`,lb=p.forwardRef(tb(function(e,t){let{__scopeCollapsible:n,...r}=e,i=ob(cb,n);return(0,m.jsx)(Ry.button,{type:`button`,"aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":pb(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:q(e.onClick,i.onOpenToggle)})},`CollapsibleTrigger`)),ub=`CollapsibleContent`,db=p.forwardRef(tb(function(e,t){let{forceMount:n,...r}=e,i=ob(ub,e.__scopeCollapsible);return(0,m.jsx)(Uy,{present:n||i.open,children:({present:e})=>(0,m.jsx)(fb,{...r,ref:t,present:e})})},`CollapsibleContent`)),fb=p.forwardRef(tb(function(e,t){let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=ob(ub,n),[s,c]=p.useState(r),l=p.useRef(null),u=zv(t,l),d=p.useRef(0),f=d.current,h=p.useRef(0),g=h.current,_=o.open||s,v=p.useRef(_),y=p.useRef(void 0);return p.useEffect(()=>{let e=requestAnimationFrame(()=>v.current=!1);return()=>cancelAnimationFrame(e)},[]),xy(()=>{let e=l.current;if(e){y.current=y.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,h.current=t.width,v.current||(e.style.transitionDuration=y.current.transitionDuration,e.style.animationName=y.current.animationName),c(r)}},[o.open,r]),(0,m.jsx)(Ry.div,{"data-state":pb(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!_,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":g?`${g}px`:void 0,...e.style},children:_&&i})},`CollapsibleContentImpl`));function pb(e){return e?`open`:`closed`}tb(pb,`getState`);var mb=Object.defineProperty,hb=(e,t)=>mb(e,`name`,{value:t,configurable:!0}),gb={LTR:`ltr`,RTL:`rtl`},_b=p.createContext(void 0);function vb(e){let t=p.useContext(_b);return e||t||gb.LTR}hb(vb,`useDirection`);var yb=Object.defineProperty,bb=(e,t)=>yb(e,`name`,{value:t,configurable:!0}),xb={Single:`single`,Multiple:`multiple`},Sb={Vertical:`vertical`,Horizontal:`horizontal`},Cb={LTR:`ltr`,RTL:`rtl`},wb=`Accordion`,Tb=[`Home`,`End`,`ArrowDown`,`ArrowUp`,`ArrowLeft`,`ArrowRight`],[Eb,Db,Ob]=ry(wb),[kb,ite]=Pv(wb,[Ob,ib]),Ab=ib(),jb=p.forwardRef(bb(function(e,t){let{type:n,...r}=e,i=r,a=r;return(0,m.jsx)(Eb.Provider,{scope:e.__scopeAccordion,children:n===xb.Multiple?(0,m.jsx)(Lb,{...a,ref:t}):(0,m.jsx)(Ib,{...i,ref:t})})},`Accordion`)),[Mb,Nb]=kb(wb),[Pb,Fb]=kb(wb,{collapsible:!1}),Ib=p.forwardRef(bb(function(e,t){let{value:n,defaultValue:r,onValueChange:i=bb(()=>{},`onValueChange`),collapsible:a=!1,...o}=e,[s,c]=Ay({prop:n,defaultProp:r??``,onChange:i,caller:wb});return(0,m.jsx)(Mb,{scope:e.__scopeAccordion,value:p.useMemo(()=>s?[s]:[],[s]),onItemOpen:c,onItemClose:p.useCallback(()=>a&&c(``),[a,c]),children:(0,m.jsx)(Pb,{scope:e.__scopeAccordion,collapsible:a,children:(0,m.jsx)(Bb,{...o,ref:t})})})},`AccordionImplSingle`)),Lb=p.forwardRef(bb(function(e,t){let{value:n,defaultValue:r,onValueChange:i=bb(()=>{},`onValueChange`),...a}=e,[o,s]=Ay({prop:n,defaultProp:r??[],onChange:i,caller:wb}),c=p.useCallback(e=>s((t=[])=>[...t,e]),[s]),l=p.useCallback(e=>s((t=[])=>t.filter(t=>t!==e)),[s]);return(0,m.jsx)(Mb,{scope:e.__scopeAccordion,value:o,onItemOpen:c,onItemClose:l,children:(0,m.jsx)(Pb,{scope:e.__scopeAccordion,collapsible:!0,children:(0,m.jsx)(Bb,{...a,ref:t})})})},`AccordionImplMultiple`)),[Rb,zb]=kb(wb),Bb=p.forwardRef(bb(function(e,t){let{__scopeAccordion:n,disabled:r,dir:i,orientation:a=Sb.Vertical,...o}=e,s=zv(p.useRef(null),t),c=Db(n),l=vb(i)===Cb.LTR,u=q(e.onKeyDown,e=>{if(!Tb.includes(e.key))return;let t=e.target,n=c().filter(e=>!e.ref.current?.disabled),r=n.findIndex(e=>e.ref.current===t),i=n.length;if(r===-1)return;e.preventDefault();let o=r,s=i-1,u=bb(()=>{o=r+1,o>s&&(o=0)},`moveNext`),d=bb(()=>{o=r-1,o<0&&(o=s)},`movePrev`);switch(e.key){case`Home`:o=0;break;case`End`:o=s;break;case`ArrowRight`:a===Sb.Horizontal&&(l?u():d());break;case`ArrowDown`:a===Sb.Vertical&&u();break;case`ArrowLeft`:a===Sb.Horizontal&&(l?d():u());break;case`ArrowUp`:a===Sb.Vertical&&d()}n[o%i].ref.current?.focus()});return(0,m.jsx)(Rb,{scope:n,disabled:r,direction:i,orientation:a,children:(0,m.jsx)(Eb.Slot,{scope:n,children:(0,m.jsx)(Ry.div,{...o,"data-orientation":a,ref:s,onKeyDown:r?void 0:u})})})},`AccordionImpl`)),Vb=`AccordionItem`,[Hb,Ub]=kb(Vb),Wb=p.forwardRef(bb(function(e,t){let{__scopeAccordion:n,value:r,...i}=e,a=zb(Vb,n),o=Nb(Vb,n),s=Ab(n),c=$y(),l=r&&o.value.includes(r)||!1,u=a.disabled||e.disabled;return(0,m.jsx)(Hb,{scope:n,open:l,disabled:u,triggerId:c,children:(0,m.jsx)(sb,{"data-orientation":a.orientation,"data-state":Zb(l),...s,...i,ref:t,disabled:u,open:l,onOpenChange:e=>{e?o.onItemOpen(r):o.onItemClose(r)}})})},`AccordionItem`)),Gb=`AccordionHeader`,Kb=p.forwardRef(bb(function(e,t){let{__scopeAccordion:n,...r}=e,i=zb(wb,n),a=Ub(Gb,n);return(0,m.jsx)(Ry.h3,{"data-orientation":i.orientation,"data-state":Zb(a.open),"data-disabled":a.disabled?``:void 0,...r,ref:t})},`AccordionHeader`)),qb=`AccordionTrigger`,Jb=p.forwardRef(bb(function(e,t){let{__scopeAccordion:n,...r}=e,i=zb(wb,n),a=Ub(qb,n),o=Fb(qb,n),s=Ab(n);return(0,m.jsx)(Eb.ItemSlot,{scope:n,children:(0,m.jsx)(lb,{"aria-disabled":a.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:a.triggerId,...s,...r,ref:t})})},`AccordionTrigger`)),Yb=`AccordionContent`,Xb=p.forwardRef(bb(function(e,t){let{__scopeAccordion:n,...r}=e,i=zb(wb,n),a=Ub(Yb,n),o=Ab(n);return(0,m.jsx)(db,{role:`region`,"aria-labelledby":a.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":`var(--radix-collapsible-content-height)`,"--radix-accordion-content-width":`var(--radix-collapsible-content-width)`,...e.style}})},`AccordionContent`));function Zb(e){return e?`open`:`closed`}bb(Zb,`getState`);var Qb=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function $b(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:Qb(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var ex=e=>{let t=``,n=!1;for(let r of e){if(r===`-`||r===`_`||r<=` `){n=t.length>0;continue}t.length===0?t+=r.toLowerCase():t+=n?r.toUpperCase():r,n=!1}return t},tx=e=>{let t=ex(e);return t.charAt(0).toUpperCase()+t.slice(1)},nx=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),rx={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stroke-width":2,"stroke-linecap":`round`,"stroke-linejoin":`round`};function ix(e){return e!=null}function ax(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??rx.width,a=e.size??e.height??rx.height,o=e.aliases?.filter(e=>typeof e==`string`&&e.trim()!==``).map(e=>`lucide-${e}`)??[],s=[...e.name?[`lucide-${e.name}`]:[],...o],c=t.className?.split(` `).filter(Boolean)??[],l=t.includeDefaultClasses===!1?nx(...c):nx(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??rx[`stroke-width`])*Number(e.size??e.width??rx.width)/Number(t.size??t.width??rx.width):t.strokeWidth??rx[`stroke-width`];return[`svg`,{...Object.entries(rx).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&ix(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&ix(t.width)&&{[r(`width`)]:t.width},...`height`in t&&ix(t.height)&&{[r(`height`)]:t.height},[r(`stroke-width`)]:u,...l&&{[r(`class`)]:l},[r(`viewBox`)]:`0 0 ${i} ${a}`,...t.hasA11yProp===!1?{[r(`aria-hidden`)]:`true`}:{},...`attributes`in t&&t.attributes},e.node.map(e=>{let[n,i,a]=e,o=t.nonScalingStroke?{[r(`vector-effect`)]:`non-scaling-stroke`,...i}:i;return a?[n,o,a]:[n,o]})]}function ox(e,t={}){return ax(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var sx=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},cx=(0,p.createContext)({}),ate=()=>(0,p.useContext)(cx),ote=(0,p.forwardRef)(({color:e,size:t,width:n,height:r,strokeWidth:i,absoluteStrokeWidth:a,nonScalingStroke:o,className:s=``,children:c,iconNode:l=[],icon:u={node:l,aliases:[],size:24},...d},f)=>{let{size:m=24,strokeWidth:h=2,absoluteStrokeWidth:g=!1,nonScalingStroke:_=!1,color:v=`currentColor`,className:y=``}=ate()??{},b=!!c||sx(d),[x,S,C=[]]=ox(u,{color:e??v,width:n??t??m,height:r??t??m,strokeWidth:i??h,absoluteStrokeWidth:a??g,nonScalingStroke:o??_,className:nx(y,s),hasA11yProp:b,attributes:d});return(0,p.createElement)(x,{ref:f,...S},[...C.map(([e,t])=>(0,p.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function J(e,t=[],n=[]){let r=typeof e==`string`?$b(e,t,n):e,i=(0,p.forwardRef)(({className:e,...t},n)=>(0,p.createElement)(ote,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=tx(r.name)),i}var lx={name:`activity`,size:24,node:[[`path`,{d:`M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2`,key:`169zse`}]]};lx.node;var ux=J(lx),dx={name:`app-window`,size:24,node:[[`rect`,{x:`2`,y:`4`,width:`20`,height:`16`,rx:`2`,key:`izxlao`}],[`path`,{d:`M10 4v4`,key:`pp8u80`}],[`path`,{d:`M2 8h20`,key:`d11cs7`}],[`path`,{d:`M6 4v4`,key:`1svtjw`}]]};dx.node;var ste=J(dx),fx={name:`archive`,size:24,node:[[`rect`,{width:`20`,height:`5`,x:`2`,y:`3`,rx:`1`,key:`1wp1u1`}],[`path`,{d:`M4 8v11a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8`,key:`1s80jp`}],[`path`,{d:`M10 12h4`,key:`a56b0p`}]]};fx.node;var px=J(fx),mx={name:`arrow-down-right`,size:24,node:[[`path`,{d:`m7 7 10 10`,key:`1fmybs`}],[`path`,{d:`M17 7v10H7`,key:`6fjiku`}]]};mx.node;var cte=J(mx),hx={name:`arrow-down`,size:24,node:[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]};hx.node;var lte=J(hx),gx={name:`arrow-left`,size:24,node:[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]};gx.node;var _x=J(gx),vx={name:`arrow-right-left`,size:24,node:[[`path`,{d:`m16 3 4 4-4 4`,key:`1x1c3m`}],[`path`,{d:`M20 7H4`,key:`zbl0bi`}],[`path`,{d:`m8 21-4-4 4-4`,key:`h9nckh`}],[`path`,{d:`M4 17h16`,key:`g4d7ey`}]]};vx.node;var ute=J(vx),yx={name:`arrow-right`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]};yx.node;var bx=J(yx),xx={name:`arrow-up-right`,size:24,node:[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]};xx.node;var Sx=J(xx),Cx={name:`arrow-up`,size:24,node:[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]};Cx.node;var wx=J(Cx),Tx={name:`ban`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M4.929 4.929 19.07 19.071`,key:`196cmz`}]]};Tx.node;var dte=J(Tx),Ex={name:`boxes`,size:24,node:[[`path`,{d:`M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z`,key:`lc1i9w`}],[`path`,{d:`m7 16.5-4.74-2.85`,key:`1o9zyk`}],[`path`,{d:`m7 16.5 5-3`,key:`va8pkn`}],[`path`,{d:`M7 16.5v5.17`,key:`jnp8gn`}],[`path`,{d:`M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z`,key:`8zsnat`}],[`path`,{d:`m17 16.5-5-3`,key:`8arw3v`}],[`path`,{d:`m17 16.5 4.74-2.85`,key:`8rfmw`}],[`path`,{d:`M17 16.5v5.17`,key:`k6z78m`}],[`path`,{d:`M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z`,key:`1xygjf`}],[`path`,{d:`M12 8 7.26 5.15`,key:`1vbdud`}],[`path`,{d:`m12 8 4.74-2.85`,key:`3rx089`}],[`path`,{d:`M12 13.5V8`,key:`1io7kd`}]]};Ex.node;var Dx=J(Ex),Ox={name:`calculator`,size:24,node:[[`rect`,{width:`16`,height:`20`,x:`4`,y:`2`,rx:`2`,key:`1nb95v`}],[`line`,{x1:`8`,x2:`16`,y1:`6`,y2:`6`,key:`x4nwl0`}],[`line`,{x1:`16`,x2:`16`,y1:`14`,y2:`18`,key:`wjye3r`}],[`path`,{d:`M16 10h.01`,key:`1m94wz`}],[`path`,{d:`M12 10h.01`,key:`1nrarc`}],[`path`,{d:`M8 10h.01`,key:`19clt8`}],[`path`,{d:`M12 14h.01`,key:`1etili`}],[`path`,{d:`M8 14h.01`,key:`6423bh`}],[`path`,{d:`M12 18h.01`,key:`mhygvu`}],[`path`,{d:`M8 18h.01`,key:`lrp35t`}]]};Ox.node;var fte=J(Ox),kx={name:`check`,size:24,node:[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]};kx.node;var Ax=J(kx),jx={name:`chevron-down`,size:24,node:[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]};jx.node;var Mx=J(jx),Nx={name:`chevron-left`,size:24,node:[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]};Nx.node;var Px=J(Nx),Fx={name:`chevron-right`,size:24,node:[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]};Fx.node;var Ix=J(Fx),Lx={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};Lx.node;var pte=J(Lx),Rx={name:`chevrons-up-down`,size:24,node:[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]};Rx.node;var mte=J(Rx),zx={name:`circle-alert`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]],aliases:[`alert-circle`]};zx.node;var Bx=J(zx),Vx={name:`circle-arrow-up`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m16 12-4-4-4 4`,key:`177agl`}],[`path`,{d:`M12 16V8`,key:`1sbj14`}]],aliases:[`arrow-up-circle`]};Vx.node;var hte=J(Vx),Hx={name:`circle-question-mark`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3`,key:`1u773s`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`help-circle`,`circle-help`]};Hx.node;var gte=J(Hx),Ux={name:`circle-x`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]],aliases:[`x-circle`]};Ux.node;var _te=J(Ux),Wx={name:`cloud-download`,size:24,node:[[`path`,{d:`M12 13v8l-4-4`,key:`1f5nwf`}],[`path`,{d:`m12 21 4-4`,key:`1lfcce`}],[`path`,{d:`M4.393 15.269A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.436 8.284`,key:`ui1hmy`}]],aliases:[`download-cloud`]};Wx.node;var Gx=J(Wx),Kx={name:`code`,size:24,node:[[`path`,{d:`m16 18 6-6-6-6`,key:`eg8j8`}],[`path`,{d:`m8 6-6 6 6 6`,key:`ppft3o`}]]};Kx.node;var vte=J(Kx),qx={name:`copy`,size:24,node:[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]};qx.node;var Jx=J(qx),Yx={name:`download`,size:24,node:[[`path`,{d:`M12 15V3`,key:`m9g1x1`}],[`path`,{d:`M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4`,key:`ih7n3h`}],[`path`,{d:`m7 10 5 5 5-5`,key:`brsn70`}]]};Yx.node;var Xx=J(Yx),Zx={name:`ellipsis`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]],aliases:[`more-horizontal`]};Zx.node;var Qx=J(Zx),$x={name:`external-link`,size:24,node:[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]};$x.node;var eS=J($x),tS={name:`file-code-corner`,size:24,node:[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]],aliases:[`file-code-2`]};tS.node;var yte=J(tS),nS={name:`flask-conical`,size:24,node:[[`path`,{d:`M14 2v6a2 2 0 0 0 .245.96l5.51 10.08A2 2 0 0 1 18 22H6a2 2 0 0 1-1.755-2.96l5.51-10.08A2 2 0 0 0 10 8V2`,key:`18mbvz`}],[`path`,{d:`M6.453 15h11.094`,key:`3shlmq`}],[`path`,{d:`M8.5 2h7`,key:`csnxdl`}]]};nS.node;var rS=J(nS),iS={name:`folder-open`,size:24,node:[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]};iS.node;var aS=J(iS),oS={name:`folder`,size:24,node:[[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]};oS.node;var bte=J(oS),sS={name:`gauge`,size:24,node:[[`path`,{d:`m12 14 4-4`,key:`9kzdfg`}],[`path`,{d:`M3.34 19a10 10 0 1 1 17.32 0`,key:`19p75a`}]]};sS.node;var cS=J(sS),lS={name:`gift`,size:24,node:[[`path`,{d:`M12 7v14`,key:`1akyts`}],[`path`,{d:`M20 11v8a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-8`,key:`1sqzm4`}],[`path`,{d:`M7.5 7a1 1 0 0 1 0-5A4.8 8 0 0 1 12 7a4.8 8 0 0 1 4.5-5 1 1 0 0 1 0 5`,key:`kc0143`}],[`rect`,{x:`3`,y:`7`,width:`18`,height:`4`,rx:`1`,key:`1hberx`}]]};lS.node;var xte=J(lS),uS={name:`grip-vertical`,size:24,node:[[`circle`,{cx:`9`,cy:`12`,r:`1`,key:`1vctgf`}],[`circle`,{cx:`9`,cy:`5`,r:`1`,key:`hp0tcf`}],[`circle`,{cx:`9`,cy:`19`,r:`1`,key:`fkjjf6`}],[`circle`,{cx:`15`,cy:`12`,r:`1`,key:`1tmaij`}],[`circle`,{cx:`15`,cy:`5`,r:`1`,key:`19l28e`}],[`circle`,{cx:`15`,cy:`19`,r:`1`,key:`f4zoj3`}]]};uS.node;var Ste=J(uS),dS={name:`info`,size:24,node:[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]};dS.node;var fS=J(dS),pS={name:`key-round`,size:24,node:[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]};pS.node;var mS=J(pS),hS={name:`layout-dashboard`,size:24,node:[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]};hS.node;var gS=J(hS),_S={name:`list-plus`,size:24,node:[[`path`,{d:`M16 5H3`,key:`m91uny`}],[`path`,{d:`M11 12H3`,key:`51ecnj`}],[`path`,{d:`M16 19H3`,key:`zzsher`}],[`path`,{d:`M18 9v6`,key:`1twb98`}],[`path`,{d:`M21 12h-6`,key:`bt1uis`}]]};_S.node;var vS=J(_S),yS={name:`loader-circle`,size:24,node:[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]],aliases:[`loader-2`]};yS.node;var bS=J(yS),xS={name:`log-out`,size:24,node:[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]};xS.node;var SS=J(xS),CS={name:`minus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}]]};CS.node;var wS=J(CS),TS={name:`monitor`,size:24,node:[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]};TS.node;var ES=J(TS),DS={name:`panel-left`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]],aliases:[`sidebar`]};DS.node;var OS=J(DS),kS={name:`panel-top`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]};kS.node;var AS=J(kS),jS={name:`pencil`,size:24,node:[[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}]]};jS.node;var MS=J(jS),NS={name:`play`,size:24,node:[[`path`,{d:`M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z`,key:`10ikf1`}]]};NS.node;var PS=J(NS),FS={name:`plus`,size:24,node:[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]};FS.node;var IS=J(FS),LS={name:`power`,size:24,node:[[`path`,{d:`M12 2v10`,key:`mnfbl`}],[`path`,{d:`M18.4 6.6a9 9 0 1 1-12.77.04`,key:`obofu9`}]]};LS.node;var RS=J(LS),zS={name:`refresh-cw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8`,key:`v9h5vc`}],[`path`,{d:`M21 3v5h-5`,key:`1q7to0`}],[`path`,{d:`M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16`,key:`3uifl3`}],[`path`,{d:`M8 16H3v5`,key:`1cv678`}]]};zS.node;var BS=J(zS),VS={name:`rotate-ccw`,size:24,node:[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]};VS.node;var HS=J(VS),US={name:`scroll-text`,size:24,node:[[`path`,{d:`M15 12h-5`,key:`r7krc0`}],[`path`,{d:`M15 8h-5`,key:`1khuty`}],[`path`,{d:`M19 17V5a2 2 0 0 0-2-2H4`,key:`zz82l3`}],[`path`,{d:`M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3`,key:`1ph1d7`}]]};US.node;var WS=J(US),GS={name:`search`,size:24,node:[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]};GS.node;var KS=J(GS),qS={name:`server`,size:24,node:[[`rect`,{width:`20`,height:`8`,x:`2`,y:`2`,rx:`2`,ry:`2`,key:`ngkwjq`}],[`rect`,{width:`20`,height:`8`,x:`2`,y:`14`,rx:`2`,ry:`2`,key:`iecqi9`}],[`line`,{x1:`6`,x2:`6.01`,y1:`6`,y2:`6`,key:`16zg32`}],[`line`,{x1:`6`,x2:`6.01`,y1:`18`,y2:`18`,key:`nzw8ys`}]]};qS.node;var JS=J(qS),YS={name:`settings`,size:24,node:[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]};YS.node;var XS=J(YS),ZS={name:`shield-alert`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`M12 8v4`,key:`1got3b`}],[`path`,{d:`M12 16h.01`,key:`1drbdi`}]]};ZS.node;var QS=J(ZS),$S={name:`shield-check`,size:24,node:[[`path`,{d:`M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z`,key:`oel41y`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]};$S.node;var eC=J($S),tC={name:`shield-off`,size:24,node:[[`path`,{d:`m2 2 20 20`,key:`1ooewy`}],[`path`,{d:`M5 5a1 1 0 0 0-1 1v7c0 5 3.5 7.5 7.67 8.94a1 1 0 0 0 .67.01c2.35-.82 4.48-1.97 5.9-3.71`,key:`1jlk70`}],[`path`,{d:`M9.309 3.652A12.252 12.252 0 0 0 11.24 2.28a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1v7a9.784 9.784 0 0 1-.08 1.264`,key:`18rp1v`}]]};tC.node;var nC=J(tC),rC={name:`sliders-horizontal`,size:24,node:[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]};rC.node;var iC=J(rC),aC={name:`sparkles`,size:24,node:[[`path`,{d:`M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z`,key:`1s2grr`}],[`path`,{d:`M20 2v4`,key:`1rf3ol`}],[`path`,{d:`M22 4h-4`,key:`gwowj6`}],[`circle`,{cx:`4`,cy:`20`,r:`2`,key:`6kqj1y`}]],aliases:[`stars`]};aC.node;var oC=J(aC),sC={name:`square-terminal`,size:24,node:[[`path`,{d:`m7 11 2-2-2-2`,key:`1lz0vl`}],[`path`,{d:`M11 13h4`,key:`1p7l4v`}],[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}]],aliases:[`terminal-square`]};sC.node;var cC=J(sC),lC={name:`square`,size:24,node:[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}]]};lC.node;var uC=J(lC),dC={name:`ticket`,size:24,node:[[`path`,{d:`M2 9a3 3 0 0 1 0 6v2a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-2a3 3 0 0 1 0-6V7a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2Z`,key:`qn84l0`}],[`path`,{d:`M13 5v2`,key:`dyzc3o`}],[`path`,{d:`M13 17v2`,key:`1ont0d`}],[`path`,{d:`M13 11v2`,key:`1wjjxi`}]]};dC.node;var fC=J(dC),pC={name:`trash`,size:24,node:[[`path`,{d:`M10 11v6`,key:`nco0om`}],[`path`,{d:`M14 11v6`,key:`outv1u`}],[`path`,{d:`M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6`,key:`miytrc`}],[`path`,{d:`M3 6h18`,key:`d0wm0j`}],[`path`,{d:`M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2`,key:`e791ji`}]],aliases:[`trash-2`]};pC.node;var mC=J(pC),hC={name:`triangle-alert`,size:24,node:[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]],aliases:[`alert-triangle`]};hC.node;var gC=J(hC),_C={name:`x`,size:24,node:[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]};_C.node;var vC=J(_C),Y={duration:{instant:.12,fast:.16,exit:.18,standard:.24,considered:.48},ease:{enter:[.16,1,.3,1],exit:[.7,0,.84,0],standard:[.22,1,.36,1],inOut:[.65,0,.35,1]},spring:{responsive:{type:`spring`,stiffness:520,damping:38},gentle:{type:`spring`,stiffness:340,damping:34},snappy:{type:`spring`,visualDuration:.26,bounce:.12},smooth:{type:`spring`,visualDuration:.4,bounce:0},morph:{type:`spring`,visualDuration:.42,bounce:.16}},stagger:{char:.016,word:.04,line:.08,item:.035},blur:{subtle:2,soft:4,text:8}},yC={accordion:`_accordion_17mmv_1`,item:`_item_17mmv_2`,header:`_header_17mmv_3`,trigger:`_trigger_17mmv_4`,icon:`_icon_17mmv_5`,panel:`_panel_17mmv_9`,panelInner:`_panelInner_17mmv_10`,lg:`_lg_17mmv_11`},bC={height:`auto`,opacity:1,visibility:`visible`},xC={height:0,opacity:0,transitionEnd:{visibility:`hidden`}},SC={y:0,filter:`blur(0px)`,transitionEnd:{filter:`none`}},CC={y:-6,filter:`blur(${Y.blur.subtle}px)`},wC={open:{...bC,transition:{height:Y.spring.smooth,opacity:{duration:Y.duration.standard,ease:[...Y.ease.enter]}}},closed:{...xC,transition:{height:Y.spring.smooth,opacity:{duration:Y.duration.fast,ease:[...Y.ease.standard]}}}},TC={open:{...SC,transition:{y:Y.spring.smooth,filter:{duration:Y.duration.standard,ease:[...Y.ease.enter]}}},closed:{...CC,transition:{duration:Y.duration.fast,ease:[...Y.ease.standard]}}},EC={open:{...bC,transition:{duration:0}},closed:{...xC,transition:{duration:0}}},DC={open:{...SC,transition:{duration:0}},closed:{...CC,transition:{duration:0}}};function OC({items:e,defaultOpen:t=0,size:n=`md`}){let r=t>=0&&t<e.length?String(t):``,[i,a]=(0,p.useState)(r),o=Zf();return(0,m.jsx)(jb,{className:[yC.accordion,n===`lg`?yC.lg:``].filter(Boolean).join(` `),type:`single`,collapsible:!0,value:i,onValueChange:a,children:e.map((e,t)=>{let n=i===String(t);return(0,m.jsxs)(Wb,{className:yC.item,value:String(t),children:[(0,m.jsx)(Kb,{className:yC.header,children:(0,m.jsxs)(Jb,{className:yC.trigger,children:[(0,m.jsx)(`span`,{children:e.title}),(0,m.jsx)(H.span,{className:yC.icon,initial:!1,animate:{rotate:n?180:0},transition:o?{duration:0}:Y.spring.snappy,children:(0,m.jsx)(Mx,{width:17,height:17,"aria-hidden":`true`})})]})}),(0,m.jsx)(Xb,{forceMount:!0,asChild:!0,children:(0,m.jsx)(H.div,{className:yC.panel,initial:!1,animate:n?`open`:`closed`,variants:o?EC:wC,children:(0,m.jsx)(H.div,{className:yC.panelInner,variants:o?DC:TC,children:e.content})})})]},`${e.title}-${t}`)})})}var kC={badge:`_badge_qjt90_1`,sm:`_sm_qjt90_23`,md:`_md_qjt90_24`,body:`_body_qjt90_26`,content:`_content_qjt90_27`,label:`_label_qjt90_29`,glyph:`_glyph_qjt90_29`,text:`_text_qjt90_30`,icon:`_icon_qjt90_32`,neutral:`_neutral_qjt90_44`,success:`_success_qjt90_45`,info:`_info_qjt90_46`,warning:`_warning_qjt90_47`,danger:`_danger_qjt90_48`},AC={duration:Y.duration.fast,ease:[...Y.ease.standard]},jC={opacity:0,y:`0.3em`,filter:`blur(${Y.blur.soft}px)`},MC={opacity:0,y:`-0.3em`,filter:`blur(${Y.blur.subtle}px)`,transition:AC},NC={opacity:0,scale:.6,filter:`blur(${Y.blur.subtle}px)`},PC={opacity:1,y:`0em`,scale:1,filter:`blur(0px)`},FC={opacity:0,transition:{duration:Y.duration.instant}};function IC(e){let t=Bu();return(0,m.jsx)(H.span,{...e,"aria-hidden":!t||e[`aria-hidden`]})}function LC(e){if(!(0,p.isValidElement)(e))return`icon`;let t=e.type;return typeof t==`string`?t:t.displayName??t.name??`icon`}function RC({tone:e=`neutral`,size:t=`md`,icon:n,className:r,children:i,...a}){let o=Zf(),s=typeof i==`string`||typeof i==`number`?String(i):null,c=n?LC(n):``,l=(0,p.useRef)(null),u=(0,p.useRef)(null),d=Gf(`auto`),f=(0,p.useRef)(0);(0,p.useLayoutEffect)(()=>{f.current=performance.now()},[s,c]),(0,p.useEffect)(()=>{let e=u.current;if(!e||typeof ResizeObserver>`u`)return;let t,n,r=()=>{d.jump(`auto`),l.current&&(l.current.style.width=`auto`)},i=new ResizeObserver(([i])=>{let a=i.borderBoxSize?.[0]?.inlineSize??e.offsetWidth,s=d.get(),c=typeof s==`number`?s:t;if(t=a,n?.stop(),o||c===void 0||c===a||performance.now()-f.current>120)return r();l.current&&(l.current.style.width=`${c}px`),n=bp(d,[c,a],{...Y.spring.morph,onComplete:r})});return i.observe(e),()=>{i.disconnect(),n?.stop()}},[d,o]);let h=o?{duration:Y.duration.instant}:{duration:Y.duration.standard,ease:[...Y.ease.enter]},g=[kC.badge,kC[e],kC[t],r].filter(Boolean).join(` `);return(0,m.jsx)(`span`,{...a,className:g,children:(0,m.jsx)(H.span,{ref:l,className:kC.body,style:{width:d},children:(0,m.jsxs)(`span`,{ref:u,className:kC.content,children:[n?(0,m.jsx)(`span`,{className:kC.icon,"aria-hidden":`true`,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(IC,{className:kC.glyph,initial:o?{opacity:0}:NC,animate:PC,exit:o?FC:{...NC,transition:AC},transition:o?h:Y.spring.snappy,children:n},c)})}):null,s===null?i:(0,m.jsx)(`span`,{className:kC.label,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(IC,{className:kC.text,initial:o?{opacity:0}:jC,animate:PC,exit:o?FC:MC,transition:h,children:s},s)})})]})})})}var zC={button:`_button_14khe_1`,labelSlot:`_labelSlot_14khe_8`,labelContent:`_labelContent_14khe_10`,labelPhase:`_labelPhase_14khe_11`,primary:`_primary_14khe_13`,secondary:`_secondary_14khe_14`,ghost:`_ghost_14khe_15`,danger:`_danger_14khe_16`,sm:`_sm_14khe_27`,md:`_md_14khe_28`,lg:`_lg_14khe_29`,loader:`_loader_14khe_30`,spinner:`_spinner_14khe_31`,spin:`_spin_14khe_31`,loadingLabel:`_loadingLabel_14khe_32`},BC={pressed:e=>{let t=e.current?.offsetWidth??0;return{scale:t>220?.985:t&&t<=48?.96:.97,transition:{duration:Y.duration.instant,ease:[...Y.ease.standard]}}}},VC={opacity:1,y:0,scale:1,filter:`blur(0px)`},HC={opacity:0,y:4,filter:`blur(${Y.blur.soft}px)`},UC={opacity:0,y:-3,filter:`blur(${Y.blur.soft}px)`,transition:{duration:Y.duration.fast,ease:[...Y.ease.standard]}},WC={opacity:0,scale:.6,filter:`blur(${Y.blur.subtle}px)`},GC={opacity:0,scale:.6,filter:`blur(${Y.blur.subtle}px)`,transition:{duration:Y.duration.fast,ease:[...Y.ease.standard]}},KC={...VC,opacity:0},qC={opacity:0,transition:{duration:Y.duration.instant}},JC={...Y.spring.snappy,opacity:{duration:Y.duration.fast,ease:[...Y.ease.enter]},filter:{duration:Y.duration.fast,ease:[...Y.ease.enter]}};function YC(e){if(e==null||typeof e==`boolean`)return``;if(typeof e==`string`||typeof e==`number`||typeof e==`bigint`)return String(e);if(Array.isArray(e))return e.map(YC).join(``);if(!(0,p.isValidElement)(e))return``;let t=e.type;return`<${typeof t==`string`?t:t?.displayName??t?.name??``}>${YC(e.props.children)}`}function XC(e,t,n){let r=Gf(`auto`),i=(0,p.useRef)(t),a=(0,p.useRef)(0);return(0,p.useLayoutEffect)(()=>{i.current!==t&&(i.current=t,a.current=performance.now()+700)},[t]),(0,p.useEffect)(()=>{let t=e.current,i=t?.parentElement;if(!t||!i||typeof ResizeObserver>`u`)return;let o=!1,s=new ResizeObserver(([e])=>{let t=e.contentRect.width;if(!t||!o||n||performance.now()>a.current){o=t>0,r.jump(t||`auto`),delete i.dataset.morphing;return}i.dataset.morphing=``,bp(r,t,{...Y.spring.morph,onComplete:()=>{delete i.dataset.morphing}})});return s.observe(t),()=>s.disconnect()},[e,n,r]),r}function ZC({children:e,icon:t,reduced:n,ref:r}){let i=Bu();return(0,m.jsx)(H.span,{ref:r,className:zC.labelPhase,"aria-hidden":!i||void 0,initial:n?KC:t?WC:HC,animate:VC,exit:n?qC:t?GC:UC,transition:n?{duration:Y.duration.instant}:t?JC:{duration:Y.duration.standard,ease:[...Y.ease.enter]},children:e})}var QC=(0,p.forwardRef)(function({className:e,variant:t=`primary`,size:n=`md`,loading:r=!1,disabled:i,children:a,onClick:o,...s},c){let l=Zf()??!1,u=(0,p.useRef)(null),d=(0,p.useRef)(null),f=YC(a),h=XC(d,f,l),g=(0,p.useCallback)(e=>{u.current=e,typeof c==`function`?c(e):c&&(c.current=e)},[c]),_=s[`aria-haspopup`],v=_!==void 0&&_!==!1&&_!==`false`||s.role===`combobox`||s[`data-state`]!==void 0,y=i||r||s[`aria-disabled`]===!0||s[`aria-disabled`]===`true`,b=[zC.button,zC[t],zC[n],e].filter(Boolean).join(` `);return(0,m.jsxs)(H.button,{ref:g,tabIndex:s.tabIndex??0,className:b,disabled:i,"aria-busy":r||void 0,custom:u,variants:BC,whileTap:l||v||y?void 0:`pressed`,transition:Y.spring.snappy,...s,"aria-disabled":r||s[`aria-disabled`]||void 0,onClick:r?e=>e.preventDefault():o,children:[(0,m.jsx)(V,{initial:!1,children:r?(0,m.jsx)(H.span,{className:zC.loader,"aria-hidden":`true`,initial:l?{opacity:0}:{opacity:0,scale:.6},animate:{opacity:1,scale:1},exit:l?qC:{...GC,scale:.8},transition:l?{duration:Y.duration.instant}:JC,children:(0,m.jsx)(`span`,{className:zC.spinner})},`loader`):null}),(0,m.jsx)(H.span,{className:[zC.labelSlot,r?zC.loadingLabel:``].filter(Boolean).join(` `),style:{width:h},children:(0,m.jsx)(`span`,{ref:d,className:zC.labelContent,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(ZC,{icon:!/\S/.test(f.replace(/<[^>]*>/g,``)),reduced:l,children:a},f)})})})]})});QC.displayName=`Button`;function $C(e=1900){let[t,n]=(0,p.useState)(`idle`),[r,i]=(0,p.useState)(null),a=(0,p.useRef)(null),o=(0,p.useCallback)(()=>{a.current&&clearTimeout(a.current),a.current=null,n(`idle`),i(null)},[]);return(0,p.useEffect)(()=>()=>{a.current&&clearTimeout(a.current)},[]),{state:t,activeKey:r,copy:(0,p.useCallback)(async(t,r=`default`)=>{a.current&&clearTimeout(a.current),i(r);try{return await navigator.clipboard.writeText(t),n(`copied`),a.current=setTimeout(o,e),!0}catch{return n(`error`),a.current=setTimeout(o,e),!1}},[e,o]),reset:o}}var ew={button:`_button_17pbi_1`,iconOnly:`_iconOnly_17pbi_3`,plain:`_plain_17pbi_4`,icon:`_icon_17pbi_3`,iconInner:`_iconInner_17pbi_8`,label:`_label_17pbi_12`,measure:`_measure_17pbi_13`,glyphs:`_glyphs_17pbi_13`,glyph:`_glyph_17pbi_13`,srOnly:`_srOnly_17pbi_19`},tw={type:`spring`,visualDuration:.5,bounce:.06},nw={duration:.36,ease:[...Y.ease.enter]},rw={duration:.2,ease:[...Y.ease.standard]},iw={duration:Y.duration.instant},aw=`blur(${Y.blur.soft}px)`,ow={opacity:1,y:0,scale:1,filter:`blur(0px)`},sw={...ow,opacity:0},cw={opacity:0,transition:iw},lw={opacity:0,scale:.6,filter:aw},uw={opacity:0,scale:.6,filter:aw,transition:{duration:.24,ease:[...Y.ease.standard]}},dw={scale:tw,opacity:{...nw,delay:.03},filter:{...nw,delay:.03}},fw={opacity:0,y:4,filter:aw},pw={opacity:0,y:-3,filter:aw,transition:rw};function mw({reduced:e}){return(0,m.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,m.jsx)(H.path,{d:`M4 12l5 5L20 6`,initial:!e&&{pathLength:0,opacity:0},animate:{pathLength:1,opacity:1},transition:{pathLength:{duration:.5,ease:[...Y.ease.standard],delay:.05},opacity:{duration:.01,delay:.05}}})})}var hw=(e,t)=>e.map((e,n)=>({id:`${t}:${n}`,char:e,order:n}));function gw(e){let[t,n]=(0,p.useState)(()=>({text:e,seq:0,glyphs:hw([...e],0)}));if(t.text===e)return t.glyphs;let r=[...t.text],i=[...e],a=0,o=0;for(;a<r.length&&a<i.length&&r[a]===i[a];)a++;for(;o<r.length-a&&o<i.length-a&&r[r.length-1-o]===i[i.length-1-o];)o++;a<2&&(a=0),o<2&&(o=0);let s=t.seq+1,c=[...t.glyphs.slice(0,a),...hw(i.slice(a,i.length-o),s),...t.glyphs.slice(t.glyphs.length-o)];return n({text:e,seq:s,glyphs:c}),c}function _w({text:e,reduced:t}){let n=gw(e);return(0,m.jsx)(H.span,{className:ew.glyphs,layoutRoot:!0,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:n.map(n=>(0,m.jsx)(H.span,{className:ew.glyph,layout:!t&&`position`,layoutDependency:e,initial:t?sw:fw,animate:ow,exit:t?cw:pw,transition:t?iw:{...nw,delay:Math.min(n.order*.02,.12),layout:tw},children:n.char},n.id))})})}function vw({value:e,label:t=`Copy`,className:n,iconOnly:r=!1,variant:i=`outline`,disabled:a,onCopied:o}){let{state:s,copy:c}=$C(),l=Zf()??!1,u=s===`copied`?`Copied`:s===`error`?`Failed`:t;async function d(){await c(e)&&o?.()}return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`button`,{type:`button`,className:[ew.button,r&&ew.iconOnly,i===`plain`&&ew.plain,n].filter(Boolean).join(` `),onClick:()=>void d(),"aria-label":t,"data-copy-state":s,disabled:a,children:[(0,m.jsx)(`span`,{className:ew.icon,"aria-hidden":`true`,children:(0,m.jsx)(V,{initial:!1,children:(0,m.jsx)(H.span,{className:ew.iconInner,"data-state":s,initial:l?sw:lw,animate:ow,exit:l?cw:uw,transition:l?iw:dw,children:s===`copied`?(0,m.jsx)(mw,{reduced:l}):s===`error`?(0,m.jsx)(Bx,{size:16,strokeWidth:1.75}):(0,m.jsx)(Jx,{size:16,strokeWidth:1.75})},s)})}),!r&&(0,m.jsxs)(`span`,{className:ew.label,"aria-hidden":`true`,children:[(0,m.jsx)(`span`,{className:ew.measure,children:t}),(0,m.jsx)(`span`,{className:ew.measure,children:`Copied`}),(0,m.jsx)(`span`,{className:ew.measure,children:`Failed`}),(0,m.jsx)(_w,{text:u,reduced:l})]})]}),(0,m.jsx)(`span`,{className:ew.srOnly,role:`status`,"aria-live":`polite`,children:s===`idle`?``:s===`error`?`${t}: Could not copy`:`${t}: Copied`})]})}var yw={block:`_block_zsn8w_1`,header:`_header_zsn8w_2`,file:`_file_zsn8w_4`,filename:`_filename_zsn8w_6`,swap:`_swap_zsn8w_8`,swapStack:`_swapStack_zsn8w_9`,swapText:`_swapText_zsn8w_11`,reserve:`_reserve_zsn8w_12`,sizer:`_sizer_zsn8w_13`,srOnly:`_srOnly_zsn8w_14`,language:`_language_zsn8w_15`,viewport:`_viewport_zsn8w_18`,pre:`_pre_zsn8w_19`,code:`_code_zsn8w_21`,expand:`_expand_zsn8w_22`,chevron:`_chevron_zsn8w_23`,comment:`_comment_zsn8w_25`,string:`_string_zsn8w_26`,number:`_number_zsn8w_27`,keyword:`_keyword_zsn8w_28`,type:`_type_zsn8w_29`,function:`_function_zsn8w_30`,property:`_property_zsn8w_31`,tag:`_tag_zsn8w_32`,punctuation:`_punctuation_zsn8w_33`},bw=/^(?:abstract|as|async|await|break|case|catch|class|const|continue|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|of|private|protected|public|readonly|return|set|static|switch|throw|try|type|typeof|var|void|while|with|yield|SELECT|FROM|WHERE|INSERT|UPDATE|DELETE)$/,xw=/^(?:true|false|null|undefined|NaN|Infinity)$/,Sw=/^(?:Array|Boolean|Date|Error|Map|Number|Promise|Record|Set|String|ReactNode|HTMLElement|HTMLButtonElement|Event|unknown|never|void|any|boolean|number|string|object)$/,Cw=/\/\*[\s\S]*?\*\/|\/\/[^\n]*|<!--[\s\S]*?-->|`(?:\\.|[^`\\])*`|"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\b\d+(?:\.\d+)?\b|\b[A-Za-z_$][\w$-]*\b|[{}[\]();,.<>:=+*/!?|&-]/g;function ww(e){return e.toLowerCase().replace(/^\./,``)}function Tw(e,t,n,r){if(e.startsWith(`//`)||e.startsWith(`/*`)||e.startsWith(`<!--`))return`comment`;if(e.startsWith(`"`)||e.startsWith(`'`)||e.startsWith("`"))return r===`json`&&/^\s*:/.test(t.slice(n+e.length))?`property`:`string`;if(/^\d/.test(e))return`number`;if(bw.test(e)||xw.test(e))return`keyword`;if(Sw.test(e))return`type`;if(/^[{}[\]();,.<>:=+*/!?|&-]$/.test(e))return`punctuation`;let i=t.slice(0,n),a=t.slice(n+e.length);if((r===`tsx`||r===`jsx`||r===`html`||r===`vue`)&&/<\/?$/.test(i))return`tag`;if(/^\s*\(/.test(a)&&r!==`json`)return`function`;if((r===`css`||r===`tsx`||r===`jsx`)&&/^\s*[:=]/.test(a))return`property`}function Ew(e,t){let n=[],r=0;for(let i of e.matchAll(Cw)){let a=i[0],o=i.index??0;r<o&&n.push(e.slice(r,o));let s=Tw(a,e,o,t);n.push(s?(0,m.jsx)(`span`,{className:yw[s],children:a},`${o}-${a}`):(0,m.jsx)(p.Fragment,{children:a},`${o}-${a}`)),r=o+a.length}return r<e.length&&n.push(e.slice(r)),n}var Dw={duration:Y.duration.standard,ease:[...Y.ease.enter]},Ow={duration:Y.duration.instant,ease:[...Y.ease.standard]};function kw({value:e,reduced:t}){return(0,m.jsx)(V,{initial:!1,children:(0,m.jsx)(H.span,{className:yw.swapText,initial:!t&&{opacity:0,y:`0.3em`,filter:`blur(${Y.blur.soft}px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},exit:t?{opacity:0,transition:{duration:0}}:{opacity:0,y:`-0.3em`,filter:`blur(${Y.blur.subtle}px)`,transition:Ow},transition:t?{duration:0}:Dw,children:e},e)})}function Aw({name:e,reduced:t}){let n=(0,p.useRef)(null),r=(0,p.useRef)(0),i=Gf(`auto`);return(0,p.useEffect)(()=>{let e=n.current;if(!e)return;let t=new ResizeObserver(()=>{r.current=e.offsetWidth});return t.observe(e),()=>t.disconnect()},[]),(0,p.useLayoutEffect)(()=>{let e=i.get(),a=n.current?.offsetWidth??0,o=typeof e==`number`?e:r.current;if(r.current=a,t||!o||!a||Math.abs(o-a)<1){i.jump(`auto`);return}i.jump(o);let s=bp(i,a,{...Y.spring.morph,onComplete:()=>i.jump(`auto`)});return()=>s.stop()},[e,t,i]),(0,m.jsxs)(H.span,{className:`${yw.swap} ${yw.filename}`,style:{width:i},children:[(0,m.jsx)(`span`,{ref:n,className:yw.sizer,"aria-hidden":`true`,children:e}),(0,m.jsx)(`span`,{className:yw.swapStack,"aria-hidden":`true`,children:(0,m.jsx)(kw,{value:e,reduced:t})}),(0,m.jsx)(`span`,{className:yw.srOnly,children:e})]})}function jw({code:e,filename:t,language:n=`tsx`,maxLines:r}){let i=ww(n),a=Zf()??!1,o=(0,p.useId)(),s=e.split(`
|
|
25
|
-
`).length,c=r!=null&&r>0&&s>r,[l,u]=(0,p.useState)(!1),d=!c||l,f=(0,p.useRef)(null),h=(0,p.useRef)(null),g=Gf(d?`auto`:`var(--code-collapsed)`),_=(0,p.useRef)({open:d,reduced:a}),v=(0,p.useRef)(()=>{});(0,p.useLayoutEffect)(()=>{let e=f.current;if(!e)return;let t=e=>{let t=h.current;if(!t)return;let n=_.current.open?t.full:t.collapsed;e||_.current.reduced||typeof g.get()!=`number`?g.jump(n):bp(g,n,Y.spring.smooth)},n=new ResizeObserver(()=>{let n=getComputedStyle(e),i=e.offsetHeight,a=r?Math.min(i,Math.round(r*parseFloat(n.lineHeight)+parseFloat(n.paddingTop)+parseFloat(n.paddingBottom))):i,o=!h.current;h.current={full:i,collapsed:a},t(o)});return n.observe(e),v.current=t,()=>n.disconnect()},[g,r]),(0,p.useLayoutEffect)(()=>{_.current={open:d,reduced:a},v.current(!1)},[d,a]);let y=[`Show all ${s} lines`,`Show fewer lines`];return(0,m.jsxs)(`section`,{className:yw.block,"aria-label":t?`${t} source code`:`${i} source code`,style:r?{"--code-lines":r}:void 0,children:[(0,m.jsxs)(`header`,{className:yw.header,children:[(0,m.jsxs)(`div`,{className:yw.file,children:[(0,m.jsx)(yte,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,m.jsx)(Aw,{name:t??`Source code`,reduced:a}),(0,m.jsx)(`span`,{className:yw.language,children:i})]}),(0,m.jsx)(vw,{value:e,label:`Copy code`})]}),(0,m.jsx)(H.div,{className:yw.viewport,style:{height:g},children:(0,m.jsx)(`pre`,{ref:f,id:o,className:yw.pre,tabIndex:0,"aria-label":`Selectable source code`,children:(0,m.jsx)(V,{initial:!1,mode:`popLayout`,children:(0,m.jsx)(H.code,{className:yw.code,initial:!a&&{opacity:0,y:4},animate:{opacity:1,y:0},exit:a?{opacity:0,transition:{duration:0}}:{opacity:0,transition:Ow},transition:a?{duration:0}:Dw,children:Ew(e,i)},e)})})}),c&&(0,m.jsxs)(`button`,{type:`button`,className:yw.expand,"aria-expanded":l,"aria-controls":o,onClick:()=>u(e=>!e),children:[(0,m.jsxs)(`span`,{className:yw.swap,"aria-hidden":`true`,children:[y.map(e=>(0,m.jsx)(`span`,{className:yw.reserve,children:e},e)),(0,m.jsx)(`span`,{className:yw.swapStack,children:(0,m.jsx)(kw,{value:y[+!!l],reduced:a})})]}),(0,m.jsx)(`span`,{className:yw.srOnly,children:y[+!!l]}),(0,m.jsx)(H.span,{className:yw.chevron,"aria-hidden":`true`,initial:!1,animate:{rotate:l?180:0},transition:a?{duration:0}:Y.spring.snappy,children:(0,m.jsx)(Mx,{size:16,strokeWidth:1.75})})]})]})}var Mw={root:`_root_1uufz_1`,icon:`_icon_1uufz_2`,"empty-state-icon":`_empty-state-icon_1uufz_1`,glyph:`_glyph_1uufz_3`,frame:`_frame_1uufz_4`,copy:`_copy_1uufz_5`,line:`_line_1uufz_9`,action:`_action_1uufz_10`},Nw={duration:Y.duration.fast,ease:[...Y.ease.standard]},Pw={opacity:0,y:`0.3em`,filter:`blur(${Y.blur.soft}px)`},Fw={opacity:0,y:`-0.3em`,filter:`blur(${Y.blur.subtle}px)`,transition:Nw},Iw={opacity:0,scale:.6,filter:`blur(${Y.blur.subtle}px)`},Lw={opacity:1,y:`0em`,scale:1,filter:`blur(0px)`},Rw={opacity:0,transition:{duration:Y.duration.instant}};function zw(e){let t=Bu();return(0,m.jsx)(H.span,{...e,"aria-hidden":!t||e[`aria-hidden`]})}function Bw(e){if(!(0,p.isValidElement)(e))return`icon`;let t=e.type;return typeof t==`string`?t:t.displayName??t.name??`icon`}function Vw({reduce:e,morphKey:t,children:n}){let r=(0,p.useRef)(null),i=(0,p.useRef)(null),a=Gf(`auto`),o=(0,p.useRef)(0);return(0,p.useLayoutEffect)(()=>{o.current=performance.now()},[t]),(0,p.useEffect)(()=>{let t=i.current;if(!t||typeof ResizeObserver>`u`)return;let n,s,c=()=>{a.jump(`auto`),r.current&&Object.assign(r.current.style,{overflow:``,height:`auto`})},l=new ResizeObserver(([i])=>{let l=i.borderBoxSize?.[0]?.blockSize??t.offsetHeight,u=a.get(),d=typeof u==`number`?u:n;if(n=l,s?.stop(),e||d===void 0||d===l||performance.now()-o.current>120)return c();r.current&&Object.assign(r.current.style,{overflow:`hidden`,height:`${d}px`}),s=bp(a,[d,l],{...Y.spring.smooth,onComplete:c})});return l.observe(t),()=>{l.disconnect(),s?.stop()}},[a,e]),(0,m.jsx)(H.div,{ref:r,className:Mw.frame,style:{height:a},children:(0,m.jsx)(`div`,{ref:i,className:Mw.copy,children:n})})}function Hw({title:e,description:t,action:n,icon:r,className:i,label:a}){let o=Zf(),s=r??(0,m.jsx)(bte,{width:24,height:24,strokeWidth:1.5}),c=o?{duration:Y.duration.instant}:{duration:Y.duration.standard,ease:[...Y.ease.enter]},l={initial:o?{opacity:0}:Pw,animate:Lw,exit:o?Rw:Fw,transition:c};return(0,m.jsxs)(`section`,{className:[Mw.root,i].filter(Boolean).join(` `),"aria-label":a,children:[(0,m.jsx)(`div`,{className:Mw.icon,"aria-hidden":`true`,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(zw,{className:Mw.glyph,initial:o?{opacity:0}:Iw,animate:Lw,exit:o?Rw:{...Iw,transition:Nw},transition:o?c:Y.spring.snappy,children:s},Bw(s))})}),(0,m.jsxs)(Vw,{reduce:o,morphKey:`${e}\n${t}`,children:[(0,m.jsx)(`h3`,{children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(zw,{className:Mw.line,...l,children:e},e)})}),(0,m.jsx)(`p`,{children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(zw,{className:Mw.line,...l,children:t},t)})})]}),n&&(0,m.jsx)(`div`,{className:Mw.action,children:n})]})}var Uw={field:`_field_6ayfd_1`,label:`_label_6ayfd_2`,input:`_input_6ayfd_4`,messageSlot:`_messageSlot_6ayfd_11`,description:`_description_6ayfd_12`,error:`_error_6ayfd_12`,words:`_words_6ayfd_15`,word:`_word_6ayfd_15`,column:`_column_6ayfd_18`,srOnly:`_srOnly_6ayfd_20`},Ww={enter:e=>({opacity:0,y:`${e*.6}em`,filter:`blur(${Y.blur.subtle}px)`}),center:{opacity:1,y:0,filter:`blur(0px)`},exit:e=>({opacity:0,y:`${e*-.6}em`,filter:`blur(${Y.blur.subtle}px)`})},Gw=e=>/^\d[\d.,/:]*%?$/.test(e);function Kw({word:e}){let t=Zf(),[n,r]=(0,p.useState)({word:e,direction:1});n.word!==e&&r({word:e,direction:parseFloat(e.replace(/,/g,``))<parseFloat(n.word.replace(/,/g,``))?-1:1});let i=e.split(``),a=t?{duration:0}:{y:Y.spring.snappy,width:Y.spring.morph,opacity:{duration:Y.duration.fast},filter:{duration:Y.duration.fast}};return(0,m.jsx)(V,{initial:!1,children:i.map((e,t)=>(0,m.jsx)(H.span,{className:Uw.column,initial:{width:0,opacity:0},animate:{width:`auto`,opacity:1},exit:{width:0,opacity:0},transition:a,children:(0,m.jsx)(V,{initial:!1,mode:`popLayout`,custom:n.direction,children:(0,m.jsx)(H.span,{custom:n.direction,variants:Ww,initial:`enter`,animate:`center`,exit:`exit`,transition:a,children:e},e)})},i.length-t))})}function qw({text:e}){let t=Zf(),n=e.split(` `);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:Uw.srOnly,children:e}),(0,m.jsx)(`span`,{className:Uw.words,"aria-hidden":`true`,children:(0,m.jsx)(V,{initial:!1,mode:`popLayout`,children:n.map((e,r)=>(0,m.jsxs)(H.span,{className:Uw.word,initial:t?{opacity:0}:{opacity:0,y:`0.35em`,filter:`blur(${Y.blur.soft}px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},exit:t?{opacity:0,transition:{duration:0}}:{opacity:0,y:`-0.35em`,filter:`blur(${Y.blur.subtle}px)`,transition:{duration:Y.duration.exit,ease:[...Y.ease.standard]}},transition:t?{duration:Y.duration.instant}:{duration:Y.duration.standard,ease:[...Y.ease.enter]},children:[Gw(e)?(0,m.jsx)(Kw,{word:e}):e,r<n.length-1?` `:null]},`${r}:${Gw(e)?`#`:e}`))})})]})}function Jw({id:e,text:t,className:n,alert:r}){return(0,m.jsx)(V,{initial:!1,children:t?(0,m.jsx)(Yw,{id:e,text:t,className:n,alert:r},`message`):null})}function Yw({id:e,text:t,className:n,alert:r}){let i=Zf(),a=(0,p.useRef)(null),[o,s]=(0,p.useState)(`auto`);return(0,p.useEffect)(()=>{let e=a.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(([t])=>s(t.borderBoxSize?.[0]?.blockSize??e.offsetHeight));return t.observe(e),()=>t.disconnect()},[]),(0,m.jsx)(H.span,{className:Uw.messageSlot,initial:!i&&{height:0,opacity:0},animate:{height:o,opacity:1},exit:{height:0,opacity:0,transition:i?{duration:0}:{height:Y.spring.smooth,opacity:{duration:Y.duration.instant}}},transition:i?{duration:0}:{height:Y.spring.smooth,opacity:{duration:Y.duration.fast}},children:(0,m.jsx)(H.span,{ref:a,id:e,className:n,role:r?`alert`:void 0,initial:!i&&{y:`0.35em`,filter:`blur(${Y.blur.soft}px)`},animate:{y:0,filter:`blur(0px)`},transition:{duration:i?0:Y.duration.standard,ease:[...Y.ease.enter]},children:(0,m.jsx)(qw,{text:t})})})}var Xw=(0,p.forwardRef)(function({label:e,description:t,error:n,id:r,className:i,...a},o){let s=(0,p.useId)(),c=r??s,l=t?`${c}-description`:void 0,u=n?`${c}-error`:void 0,d=[a[`aria-describedby`],l,u].filter(Boolean).join(` `)||void 0;return(0,m.jsxs)(`div`,{className:Uw.field,children:[(0,m.jsx)(`label`,{className:Uw.label,htmlFor:c,children:e}),(0,m.jsx)(`input`,{...a,id:c,ref:o,className:[Uw.input,i].filter(Boolean).join(` `),"aria-invalid":n?!0:a[`aria-invalid`],"aria-describedby":d}),(0,m.jsx)(Jw,{id:l,text:t,className:Uw.description}),(0,m.jsx)(Jw,{id:u,text:n,className:Uw.error,alert:!0})]})});Xw.displayName=`Input`;var Zw={field:`_field_1t891_1`,shell:`_shell_1t891_4`,input:`_input_1t891_10`,clearSlot:`_clearSlot_1t891_14`},Qw=(0,p.forwardRef)(function({label:e,value:t,onValueChange:n,clearLabel:r=`Clear search`,id:i,className:a,...o},s){let c=(0,p.useId)(),l=i??c,u=Zf(),d=(0,p.useRef)(null),f=e=>{d.current=e,typeof s==`function`?s(e):s&&(s.current=e)};function h(){n(``),d.current?.focus()}return(0,m.jsxs)(`div`,{className:Zw.field,children:[(0,m.jsx)(`label`,{htmlFor:l,children:e}),(0,m.jsxs)(`div`,{className:Zw.shell,"data-filled":t?`true`:void 0,children:[(0,m.jsx)(KS,{width:18,height:18,"aria-hidden":`true`}),(0,m.jsx)(`input`,{...o,ref:f,id:l,type:`search`,value:t,onChange:e=>n(e.target.value),className:[Zw.input,a].filter(Boolean).join(` `)}),(0,m.jsx)(`span`,{className:Zw.clearSlot,children:(0,m.jsx)(V,{initial:!1,children:t?(0,m.jsx)(H.button,{type:`button`,tabIndex:0,onClick:h,"aria-label":r,initial:u?{opacity:0}:{opacity:0,scale:.8,filter:`blur(${Y.blur.subtle}px)`},animate:{opacity:1,scale:1,filter:`blur(0px)`},exit:u?{opacity:0,transition:{duration:0}}:{opacity:0,scale:.8,filter:`blur(${Y.blur.subtle}px)`,transition:{duration:Y.duration.instant,ease:[...Y.ease.standard]}},whileTap:u?void 0:{scale:.96,transition:{duration:Y.duration.instant,ease:[...Y.ease.standard]}},transition:u?{duration:Y.duration.instant}:{...Y.spring.snappy,opacity:{duration:Y.duration.fast},filter:{duration:Y.duration.fast}},children:(0,m.jsx)(vC,{width:16,height:16,"aria-hidden":`true`})},`clear`):null})})]})]})}),$w={root:`_root_1ftc5_1`,track:`_track_1ftc5_3`,button:`_button_1ftc5_8`,selection:`_selection_1ftc5_11`,label:`_label_1ftc5_12`};function eT({options:e,value:t,onValueChange:n,label:r,onOptionIntent:i,className:a}){let o=(0,p.useId)(),s=Zf(),c=(0,p.useRef)(null);(0,p.useLayoutEffect)(()=>{let e=c.current;if(!e)return;let t=()=>{let t=e.scrollWidth-e.clientWidth-e.scrollLeft;e.toggleAttribute(`data-fade-start`,e.scrollLeft>1),e.toggleAttribute(`data-fade-end`,t>1)};t(),e.addEventListener(`scroll`,t,{passive:!0});let n=typeof ResizeObserver>`u`?null:new ResizeObserver(t);return n?.observe(e),()=>{e.removeEventListener(`scroll`,t),n?.disconnect()}},[e.length]);let l=(0,p.useRef)(!0);(0,p.useEffect)(()=>{let e=c.current,t=e?.querySelector(`[aria-pressed="true"]`);if(!e||!t||e.scrollWidth<=e.clientWidth){l.current=!1;return}let n=t.offsetLeft-20,r=t.offsetLeft+t.offsetWidth+20-e.clientWidth,i=e.scrollLeft>n?n:e.scrollLeft<r?r:e.scrollLeft;i!==e.scrollLeft&&e.scrollTo({left:Math.max(0,i),behavior:l.current||s?`auto`:`smooth`}),l.current=!1},[t,s]);let u=Math.max(0,e.findIndex(e=>e.value===t)),d=t=>{let r=e.length-1,i=t.key===`ArrowRight`||t.key===`ArrowDown`?u===r?0:u+1:t.key===`ArrowLeft`||t.key===`ArrowUp`?u===0?r:u-1:t.key===`Home`?0:t.key===`End`?r:-1;i<0||!e[i]||(t.preventDefault(),n(e[i].value),c.current?.querySelector(`[data-value="${CSS.escape(e[i].value)}"]`)?.focus({preventScroll:!0}))};return(0,m.jsx)(`div`,{className:`${$w.root} ${a??``}`,role:`group`,"aria-label":r,children:(0,m.jsx)(Yu,{id:o,children:(0,m.jsx)(H.div,{ref:c,layoutScroll:!0,className:$w.track,children:e.map((e,r)=>(0,m.jsxs)(`button`,{id:`${o}-${e.value}`,className:$w.button,type:`button`,"data-value":e.value,"aria-pressed":t===e.value,tabIndex:r===u?0:-1,onClick:()=>n(e.value),onKeyDown:d,onPointerEnter:i?()=>i(e.value):void 0,onFocus:i?()=>i(e.value):void 0,children:[t===e.value&&(0,m.jsx)(H.span,{className:$w.selection,layoutId:`selection`,layoutDependency:t,transition:s?{duration:0}:Y.spring.morph,"aria-hidden":`true`}),(0,m.jsxs)(`span`,{className:$w.label,children:[e.label,e.accessory]})]},e.value))})})})}var tT={root:`_root_zuvxk_1`,avatar:`_avatar_zuvxk_3`,line:`_line_zuvxk_3`,"skeleton-pulse":`_skeleton-pulse_zuvxk_1`,lines:`_lines_zuvxk_5`,frame:`_frame_zuvxk_9`};function nT({className:e,busy:t,reduce:n,children:r}){let i=(0,p.useRef)(null),a=(0,p.useRef)(null),o=Gf(`auto`),s=(0,p.useRef)(0);return(0,p.useLayoutEffect)(()=>{s.current=performance.now()},[t]),(0,p.useEffect)(()=>{let e=a.current;if(!e||typeof ResizeObserver>`u`)return;let t,r,c=()=>{o.jump(`auto`),i.current&&Object.assign(i.current.style,{overflow:``,height:`auto`})},l=new ResizeObserver(([a])=>{let l=a.borderBoxSize?.[0]?.blockSize??e.offsetHeight,u=o.get(),d=typeof u==`number`?u:t;if(t=l,r?.stop(),n||d===void 0||d===l||performance.now()-s.current>120)return c();i.current&&Object.assign(i.current.style,{overflow:`hidden`,height:`${d}px`}),r=bp(o,[d,l],{...Y.spring.smooth,onComplete:c})});return l.observe(e),()=>{l.disconnect(),r?.stop()}},[o,n]),(0,m.jsx)(H.div,{ref:i,className:e,"aria-busy":t,style:{height:o},children:(0,m.jsx)(`div`,{ref:a,className:tT.frame,children:r})})}function rT({label:e=`Loading content`,lines:t=3,avatar:n=!1,className:r,children:i,loading:a=!0}){let o=Zf(),s=Math.min(Math.max(Math.floor(t),1),6),c=t=>(0,m.jsxs)(`div`,{className:[tT.root,t].filter(Boolean).join(` `),role:`status`,"aria-label":e,"aria-busy":`true`,children:[n&&(0,m.jsx)(`span`,{className:tT.avatar,"aria-hidden":`true`}),(0,m.jsx)(`span`,{className:tT.lines,"aria-hidden":`true`,children:Array.from({length:s},(e,t)=>(0,m.jsx)(`span`,{className:tT.line,style:{"--index":t+ +!!n}},t))})]});return i===void 0?c(r):(0,m.jsx)(nT,{className:r,busy:a,reduce:o,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:a?(0,m.jsx)(H.div,{initial:{opacity:0},animate:{opacity:1},transition:{duration:o?Y.duration.instant:Y.duration.fast,ease:[...Y.ease.standard]},exit:{opacity:0,transition:{duration:o?Y.duration.instant:Y.duration.fast}},children:c()},`placeholder`):(0,m.jsx)(H.div,{initial:o?{opacity:0}:{opacity:0,y:4},animate:{opacity:1,y:0},exit:{opacity:0,transition:{duration:o?Y.duration.instant:Y.duration.fast}},transition:{duration:o?Y.duration.instant:Y.duration.standard,ease:[...Y.ease.enter]},children:i},`content`)})})}var iT=Object.defineProperty,aT=(e,t)=>iT(e,`name`,{value:t,configurable:!0});function oT(e){let[t,n]=p.useState(void 0);return xy(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=0,r=new ResizeObserver(r=>{if(!Array.isArray(r)||!r.length)return;let i=r[0];window.cancelAnimationFrame(t),t=window.requestAnimationFrame(()=>{let t,r;if(`borderBoxSize`in i){let e=i.borderBoxSize,n=Array.isArray(e)?e[0]:e;t=n.inlineSize,r=n.blockSize}else t=e.offsetWidth,r=e.offsetHeight;n({width:t,height:r})})});return r.observe(e,{box:`border-box`}),()=>{window.cancelAnimationFrame(t),r.unobserve(e)}}n(void 0)},[e]),t}aT(oT,`useSize`);var sT=Object.defineProperty,cT=(e,t)=>sT(e,`name`,{value:t,configurable:!0}),lT=`Switch`,[uT,Cte]=Pv(lT),[dT,fT]=uT(lT);function pT(e){let{__scopeSwitch:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,h]=Ay({prop:n,defaultProp:i??!1,onChange:c,caller:lT}),[g,_]=p.useState(null),[v,y]=p.useState(null),b=p.useRef(!1),[x,S]=p.useReducer(e=>e+1,0),C={checked:f,setChecked:h,disabled:a,control:g,setControl:_,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:b,userInteractionCount:x,onUserInteraction:S,required:l,defaultChecked:i,isFormControl:!g||!!o||!!g.closest(`form`),bubbleInput:v,setBubbleInput:y};return(0,m.jsx)(dT,{scope:t,...C,children:yT(d)?d(C):r})}cT(pT,`SwitchProvider`);var mT=`SwitchTrigger`,hT=p.forwardRef(cT(function({__scopeSwitch:e,onClick:t,...n},r){let{control:i,form:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,onUserInteraction:h,isFormControl:g,bubbleInput:_}=fT(mT,e),v=zv(r,u),y=p.useRef(c);return p.useEffect(()=>{let e=a?i?.ownerDocument.getElementById(a):i?.form;if(e instanceof HTMLFormElement){let t=cT(()=>d(y.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[i,a,d]),(0,m.jsx)(Ry.button,{type:`button`,role:`switch`,"aria-checked":c,"aria-required":l,"data-state":bT(c),"data-disabled":s?``:void 0,disabled:s,value:o,...n,ref:v,onClick:q(t,e=>{h(),d(e=>!e),_&&g&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})},`SwitchTrigger`)),gT=p.forwardRef(cT(function(e,t){let{__scopeSwitch:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,m.jsx)(pT,{__scopeSwitch:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(hT,{...d,ref:t,__scopeSwitch:n}),e&&(0,m.jsx)(vT,{__scopeSwitch:n})]})})},`Switch`)),_T=`SwitchBubbleInput`,vT=p.forwardRef(cT(function({__scopeSwitch:e,onClick:t,...n},r){let{control:i,hasConsumerStoppedPropagationRef:a,userInteractionCount:o,checked:s,defaultChecked:c,required:l,disabled:u,name:d,value:f,form:h,bubbleInput:g,setBubbleInput:_}=fT(_T,e),v=zv(r,_),y=oT(i),b=p.useRef(!1),x=p.useRef(s),S=p.useRef(o);p.useEffect(()=>{let e=g;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=o!==S.current;S.current=o;let i=x.current!==s;x.current=s;let c=!(r&&a.current);if(i&&n){b.current=!r;let t=new Event(`click`,{bubbles:c});n.call(e,s),e.dispatchEvent(t),b.current=!1}},[g,s,a,o]);let C=p.useRef(s);return(0,m.jsx)(Ry.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:c??C.current,required:l,disabled:u,name:d,value:f,form:h,...n,tabIndex:-1,ref:v,onClick:q(t,e=>{b.current&&e.stopPropagation()}),style:{...n.style,...y,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`SwitchBubbleInput`));function yT(e){return typeof e==`function`}cT(yT,`isFunction`);function bT(e){return e?`checked`:`unchecked`}cT(bT,`getState`);var xT={switch:`_switch_ktcw0_1`,track:`_track_ktcw0_4`,thumb:`_thumb_ktcw0_7`,label:`_label_ktcw0_11`},ST=18,CT=18,wT=5,TT={type:`spring`,visualDuration:.3,bounce:0},ET=(0,p.forwardRef)(function({label:e,className:t,checked:n,defaultChecked:r,onCheckedChange:i,onPointerDown:a,onPointerUp:o,onPointerLeave:s,onPointerCancel:c,onKeyDown:l,onKeyUp:u,onBlur:d,...f},h){let g=Zf(),[_,v]=(0,p.useState)(r??!1),[y,b]=(0,p.useState)(!1),x=n??_,S=Gf(1),C=(0,p.useRef)(x),w=(0,p.useRef)(-1/0);(0,p.useEffect)(()=>{if(C.current===x)return;C.current=x;let e=performance.now()-w.current<250;if(g||e)return;let t=bp(S,[1,1.16,1],{duration:.34,times:[0,.4,1],ease:[`easeOut`,`easeInOut`]});return()=>t.stop()},[x,g,S]);let T=y&&!g&&!f.disabled?wT:0,E=[xT.switch,t].filter(Boolean).join(` `);return(0,m.jsxs)(gT,{...f,ref:h,checked:x,onCheckedChange:e=>{n===void 0&&v(e),i?.(e)},onPointerDown:e=>{a?.(e),e.button===0&&b(!0)},onPointerUp:e=>{o?.(e),y&&!f.disabled&&(w.current=performance.now()),b(!1)},onPointerLeave:e=>{s?.(e),b(!1)},onPointerCancel:e=>{c?.(e),b(!1)},onKeyDown:e=>{l?.(e),e.key===` `&&b(!0)},onKeyUp:e=>{u?.(e),y&&!f.disabled&&(w.current=performance.now()),b(!1)},onBlur:e=>{d?.(e),b(!1)},className:E,"aria-label":f[`aria-label`]??e,children:[(0,m.jsx)(`span`,{className:xT.track,children:(0,m.jsx)(H.span,{className:xT.thumb,style:{scaleX:S},initial:!1,animate:{x:x?CT-T:0,width:ST+T},transition:g?{duration:0}:{x:TT,width:Y.spring.snappy}})}),e?(0,m.jsx)(`span`,{className:xT.label,children:e}):null]})});ET.displayName=`Switch`;var DT={field:`_field_mxljp_1`,control:`_control_mxljp_4`,messageSlot:`_messageSlot_mxljp_11`,hint:`_hint_mxljp_12`,error:`_error_mxljp_12`,words:`_words_mxljp_15`,word:`_word_mxljp_15`,column:`_column_mxljp_18`,srOnly:`_srOnly_mxljp_20`},OT={enter:e=>({opacity:0,y:`${e*.6}em`,filter:`blur(${Y.blur.subtle}px)`}),center:{opacity:1,y:0,filter:`blur(0px)`},exit:e=>({opacity:0,y:`${e*-.6}em`,filter:`blur(${Y.blur.subtle}px)`})},kT=e=>/^\d[\d.,/:]*%?$/.test(e);function AT({word:e}){let t=Zf(),[n,r]=(0,p.useState)({word:e,direction:1});n.word!==e&&r({word:e,direction:parseFloat(e.replace(/,/g,``))<parseFloat(n.word.replace(/,/g,``))?-1:1});let i=e.split(``),a=t?{duration:0}:{y:Y.spring.snappy,width:Y.spring.morph,opacity:{duration:Y.duration.fast},filter:{duration:Y.duration.fast}};return(0,m.jsx)(V,{initial:!1,children:i.map((e,t)=>(0,m.jsx)(H.span,{className:DT.column,initial:{width:0,opacity:0},animate:{width:`auto`,opacity:1},exit:{width:0,opacity:0},transition:a,children:(0,m.jsx)(V,{initial:!1,mode:`popLayout`,custom:n.direction,children:(0,m.jsx)(H.span,{custom:n.direction,variants:OT,initial:`enter`,animate:`center`,exit:`exit`,transition:a,children:e},e)})},i.length-t))})}function jT({text:e}){let t=Zf(),n=e.split(` `);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:DT.srOnly,children:e}),(0,m.jsx)(`span`,{className:DT.words,"aria-hidden":`true`,children:(0,m.jsx)(V,{initial:!1,mode:`popLayout`,children:n.map((e,r)=>(0,m.jsxs)(H.span,{className:DT.word,initial:t?{opacity:0}:{opacity:0,y:`0.35em`,filter:`blur(${Y.blur.soft}px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},exit:t?{opacity:0,transition:{duration:0}}:{opacity:0,y:`-0.35em`,filter:`blur(${Y.blur.subtle}px)`,transition:{duration:Y.duration.fast,ease:[...Y.ease.standard]}},transition:t?{duration:Y.duration.instant}:{duration:Y.duration.standard,ease:[...Y.ease.enter]},children:[kT(e)?(0,m.jsx)(AT,{word:e}):e,r<n.length-1?` `:null]},`${r}:${kT(e)?`#`:e}`))})})]})}function MT({id:e,text:t,className:n,alert:r}){return(0,m.jsx)(V,{initial:!1,children:t?(0,m.jsx)(NT,{id:e,text:t,className:n,alert:r},`message`):null})}function NT({id:e,text:t,className:n,alert:r}){let i=Zf(),a=(0,p.useRef)(null),[o,s]=(0,p.useState)(`auto`);return(0,p.useEffect)(()=>{let e=a.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(([t])=>s(t.borderBoxSize?.[0]?.blockSize??e.offsetHeight));return t.observe(e),()=>t.disconnect()},[]),(0,m.jsx)(H.span,{className:DT.messageSlot,initial:!i&&{height:0,opacity:0},animate:{height:o,opacity:1},exit:{height:0,opacity:0,transition:i?{duration:0}:{height:Y.spring.smooth,opacity:{duration:Y.duration.instant}}},transition:i?{duration:0}:{height:Y.spring.smooth,opacity:{duration:Y.duration.fast}},children:(0,m.jsx)(H.span,{ref:a,id:e,className:n,role:r?`alert`:void 0,initial:!i&&{y:`0.35em`,filter:`blur(${Y.blur.soft}px)`},animate:{y:0,filter:`blur(0px)`},transition:{duration:i?0:Y.duration.standard,ease:[...Y.ease.enter]},children:(0,m.jsx)(jT,{text:t})})})}var PT=(0,p.forwardRef)(function({label:e,description:t,error:n,id:r,className:i,...a},o){let s=(0,p.useId)(),c=r??s,l=t?`${c}-description`:void 0,u=n?`${c}-error`:void 0;return(0,m.jsxs)(`div`,{className:DT.field,children:[(0,m.jsx)(`label`,{htmlFor:c,children:e}),(0,m.jsx)(`textarea`,{...a,id:c,ref:o,className:[DT.control,i].filter(Boolean).join(` `),"aria-invalid":n?!0:a[`aria-invalid`],"aria-describedby":[a[`aria-describedby`],l,u].filter(Boolean).join(` `)||void 0}),(0,m.jsx)(MT,{id:l,text:t,className:DT.hint}),(0,m.jsx)(MT,{id:u,text:n,className:DT.error,alert:!0})]})}),FT=(0,p.createContext)(null);function IT(e,t){let n=(0,p.useContext)(FT);return{field:n,label:e??n?.label??t??``,hidden:e===void 0&&n===null}}function LT({label:e,hint:t,error:n,children:r,className:i}){let a=typeof t==`string`?t:void 0;return(0,m.jsxs)(`div`,{className:Cv(`flex min-w-0 flex-col`,i),children:[(0,m.jsx)(FT.Provider,{value:{label:e,description:a,error:n},children:r}),t!==void 0&&a===void 0&&!n&&(0,m.jsx)(`div`,{className:`mt-2 text-[11px] text-[var(--text-muted)]`,children:t})]})}var RT={primary:`primary`,glass:`secondary`,plain:`ghost`,destructive:`danger`},X=(0,p.forwardRef)(function({variant:e=`glass`,size:t=`md`,icon:n,children:r,style:i,type:a=`button`,...o},s){let c=r==null||r===!1,l={...e===`primary`&&{background:`var(--accent)`,borderColor:`var(--accent)`,color:`var(--on-accent)`},...c&&{paddingInline:0,width:t===`sm`?`var(--control-height-sm)`:`var(--control-height-md)`},...i};return(0,m.jsxs)(QC,{ref:s,type:a,variant:RT[e],size:t,style:l,...o,children:[n,r]})});function zT({items:e,value:t,onChange:n,className:r,ariaLabel:i}){return(0,m.jsx)(eT,{className:r,label:i,value:t,onValueChange:e=>n(e),options:e.map(e=>({value:e.value,label:e.label,accessory:e.accessory}))})}function BT({checked:e,onChange:t,disabled:n,label:r}){return(0,m.jsx)(ET,{checked:e,onCheckedChange:t,disabled:n,"aria-label":r,onClick:e=>e.stopPropagation()})}function VT({title:e,footer:t,children:n,className:r}){return(0,m.jsxs)(`section`,{className:Cv(`mb-5`,r),children:[e&&(0,m.jsx)(`h3`,{className:`mb-2 px-1 text-[12px] font-medium text-[var(--text-secondary)]`,children:e}),(0,m.jsx)(`div`,{className:`card divide-y divide-[var(--border)]`,children:n}),t&&(0,m.jsx)(`p`,{className:`mt-2 px-1 text-[11px] text-[var(--text-muted)]`,children:t})]})}function Z({label:e,detail:t,icon:n,children:r,onClick:i,selected:a,className:o}){return(0,m.jsxs)(`div`,{...i?{role:`button`,tabIndex:0,onClick:i,onKeyDown:e=>{e.target===e.currentTarget&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),i())}}:{},className:Cv(`flex min-h-11 w-full items-center gap-3 px-4 py-2 text-left`,i&&`cursor-default transition-colors hover:bg-[var(--surface-muted)]`,a&&`bg-[var(--accent-subtle)]`,o),children:[n,(0,m.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,m.jsx)(`div`,{className:`truncate text-[13px]`,children:e}),t&&(0,m.jsx)(`div`,{className:`truncate text-[11px] text-[var(--text-secondary)]`,children:t})]}),r!==void 0&&(0,m.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:r})]})}var HT={fontFamily:`var(--font-mono)`,fontSize:`12px`},UT=(0,p.forwardRef)(function({className:e,invalid:t,label:n,mono:r,style:i,...a},o){let s=IT(n,a[`aria-label`]??a.placeholder);return(0,m.jsx)(`div`,{className:Cv(`min-w-0`,s.hidden&&`astra-label-hidden`,e),children:(0,m.jsx)(Xw,{ref:o,label:s.label,description:s.field?.description,error:s.field?.error,"aria-invalid":t||void 0,style:r?{...HT,...i}:i,...a})})}),WT=(0,p.forwardRef)(function({className:e,invalid:t,label:n,mono:r,style:i,...a},o){let s=IT(n,a[`aria-label`]??a.placeholder);return(0,m.jsx)(`div`,{className:Cv(`min-w-0`,s.hidden&&`astra-label-hidden`,e),children:(0,m.jsx)(PT,{ref:o,label:s.label,description:s.field?.description,error:s.field?.error,"aria-invalid":t||void 0,style:r?{...HT,...i}:i,...a})})});function GT({value:e,onChange:t,className:n,placeholder:r,step:i,min:a,label:o}){return(0,m.jsx)(UT,{type:`number`,inputMode:`decimal`,step:i??`any`,min:a,"aria-label":o,placeholder:r,className:n,style:{fontVariantNumeric:`tabular-nums`,textAlign:`right`},value:e??``,onChange:e=>{let n=e.target.value;if(n===``)return t(null);let r=Number(n);Number.isNaN(r)||t(r)}})}function KT({value:e,onChange:t,placeholder:n,inputRef:r,className:i,clearLabel:a}){return(0,m.jsx)(`div`,{className:Cv(`astra-label-hidden min-w-0`,i),children:(0,m.jsx)(Qw,{ref:r,label:n??`Search`,placeholder:n,value:e,onValueChange:t,clearLabel:a})})}var qT={neutral:`neutral`,accent:`info`,green:`success`,orange:`warning`,red:`danger`};function Q({tone:e=`neutral`,children:t,className:n,title:r}){return(0,m.jsx)(RC,{tone:qT[e],size:`sm`,className:Cv(`shrink-0`,n),title:r,children:t})}function JT({tone:e}){let t={green:`var(--success)`,orange:`var(--warning)`,red:`var(--danger)`,neutral:`var(--text-muted)`}[e];return(0,m.jsx)(`span`,{className:`inline-block size-2 shrink-0 rounded-full`,style:{background:t}})}function YT({children:e,size:t=20,className:n}){return(0,m.jsx)(`span`,{className:Cv(`inline-flex shrink-0 items-center justify-center text-[var(--text-secondary)]`,n),style:{width:t,height:t},children:e})}function XT({label:e,children:t,mono:n}){return(0,m.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 py-1 text-[12px]`,children:[(0,m.jsx)(`span`,{className:`shrink-0 text-[var(--text-secondary)]`,children:e}),(0,m.jsx)(`span`,{className:Cv(`min-w-0 truncate text-right selectable`,n&&`font-mono text-[11px]`),children:t})]})}function ZT({children:e,maxHeight:t=320,language:n=`json`,filename:r}){return(0,m.jsx)(jw,{code:e,language:n,filename:r,maxLines:Math.max(4,Math.round(t/22))})}function QT({className:e,lines:t=2}){return(0,m.jsx)(rT,{className:e,lines:t})}function $T({icon:e,title:t,detail:n,action:r}){return(0,m.jsx)(`div`,{className:`px-6 py-12`,children:(0,m.jsx)(Hw,{icon:e,title:t,description:n??``,action:r})})}function eE({children:e,action:t}){return(0,m.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-2 px-1`,children:[(0,m.jsx)(`h2`,{className:`text-[13px] font-medium`,children:e}),t]})}function tE({title:e,action:t,children:n,className:r}){return(0,m.jsxs)(`section`,{className:r,children:[(0,m.jsxs)(`div`,{className:`mb-2 flex items-center justify-between gap-2`,children:[(0,m.jsx)(`h3`,{className:`text-[12px] font-medium text-[var(--text-secondary)]`,children:e}),t]}),n]})}var nE={presence:`_presence_1m2d3_1`,alert:`_alert_1m2d3_2`,icon:`_icon_1m2d3_3`,glyph:`_glyph_1m2d3_3`,copy:`_copy_1m2d3_6`,content:`_content_1m2d3_7`,title:`_title_1m2d3_8`,line:`_line_1m2d3_9`,description:`_description_1m2d3_10`,info:`_info_1m2d3_11`,success:`_success_1m2d3_11`,warning:`_warning_1m2d3_11`,danger:`_danger_1m2d3_11`,dismiss:`_dismiss_1m2d3_12`},wte={info:fS,success:Ax,warning:gC,danger:_te},rE={duration:Y.duration.fast,ease:[...Y.ease.standard]},Tte={opacity:0,y:`0.3em`,filter:`blur(${Y.blur.soft}px)`},Ete={opacity:0,y:`-0.3em`,filter:`blur(${Y.blur.subtle}px)`,transition:rE},iE={opacity:0,scale:.6,filter:`blur(${Y.blur.subtle}px)`},aE={opacity:1,y:`0em`,scale:1,filter:`blur(0px)`},oE={opacity:0,transition:{duration:Y.duration.instant}};function sE(e){let t=Bu();return(0,m.jsx)(H.span,{...e,"aria-hidden":!t||e[`aria-hidden`]})}function Dte({className:e,reduce:t,morphKey:n,children:r}){let i=(0,p.useRef)(null),a=(0,p.useRef)(null),o=Gf(`auto`),s=(0,p.useRef)(0);return(0,p.useLayoutEffect)(()=>{s.current=performance.now()},[n]),(0,p.useEffect)(()=>{let e=a.current;if(!e||typeof ResizeObserver>`u`)return;let n,r,c=()=>{o.jump(`auto`),i.current&&Object.assign(i.current.style,{overflow:``,height:`auto`})},l=new ResizeObserver(([a])=>{let l=a.borderBoxSize?.[0]?.blockSize??e.offsetHeight,u=o.get(),d=typeof u==`number`?u:n;if(n=l,r?.stop(),t||d===void 0||d===l||performance.now()-s.current>120)return c();i.current&&Object.assign(i.current.style,{overflow:`hidden`,height:`${d}px`}),r=bp(o,[d,l],{...Y.spring.smooth,onComplete:c})});return l.observe(e),()=>{l.disconnect(),r?.stop()}},[o,t]),(0,m.jsx)(H.div,{ref:i,className:e,style:{height:o},children:(0,m.jsx)(`div`,{ref:a,className:nE.content,children:r})})}function cE({tone:e=`info`,title:t,children:n,className:r,reduce:i,onDismiss:a,animateIcon:o=!1,...s}){let c=wte[e],l=typeof n==`string`||typeof n==`number`?String(n):null,u=n!=null&&n!==!1&&n!==``,d=i?{duration:Y.duration.instant}:{duration:Y.duration.standard,ease:[...Y.ease.enter]},f={initial:i?{opacity:0}:Tte,animate:aE,exit:i?oE:Ete,transition:d};return(0,m.jsxs)(`div`,{...s,className:[nE.alert,nE[e],r].filter(Boolean).join(` `),role:e===`danger`?`alert`:`status`,children:[(0,m.jsx)(H.span,{className:nE.icon,initial:o&&!i?iE:!1,animate:aE,transition:Y.spring.snappy,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(sE,{className:nE.glyph,initial:i?{opacity:0}:iE,animate:aE,exit:i?oE:{...iE,transition:rE},transition:i?d:Y.spring.snappy,children:(0,m.jsx)(c,{width:18,height:18,"aria-hidden":`true`})},e)})}),(0,m.jsxs)(Dte,{className:nE.copy,reduce:i,morphKey:`${t}\n${u}\n${l??``}`,children:[(0,m.jsx)(`strong`,{className:nE.title,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(sE,{className:nE.line,...f,children:t},t)})}),(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:u&&(0,m.jsx)(H.p,{className:nE.description,...f,children:l===null?n:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(sE,{className:nE.line,...f,children:l},l)})},`details`)})]}),a&&(0,m.jsx)(`button`,{type:`button`,className:nE.dismiss,"aria-label":`Dismiss: ${t}`,onClick:a,children:(0,m.jsx)(vC,{width:16,height:16,strokeWidth:1.75,"aria-hidden":`true`})})]})}function lE({open:e,onDismiss:t,...n}){let r=Zf(),[i,a]=(0,p.useState)(!1),o=(0,p.useRef)(null),s=e=>{o.current&&(o.current.style.overflow=e)};if(e===void 0&&!t)return(0,m.jsx)(cE,{...n,reduce:r});let c=e??!i,l=t&&(()=>e===void 0?a(!0):t()),u=r?{duration:0}:{height:Y.spring.smooth,opacity:{duration:Y.duration.standard,ease:[...Y.ease.enter]}},d={height:0,opacity:0,transition:r?{duration:0}:{height:Y.spring.smooth,opacity:rE}};return(0,m.jsx)(V,{initial:!1,onExitComplete:()=>{e===void 0&&t?.()},children:c&&(0,m.jsx)(H.div,{className:nE.presence,initial:{height:0,opacity:0},animate:{height:`auto`,opacity:1},exit:d,transition:u,ref:o,onAnimationStart:()=>s(`hidden`),onAnimationComplete:()=>s(``),children:(0,m.jsx)(cE,{...n,reduce:r,onDismiss:l,animateIcon:!0})},`alert`)})}var uE={field:`_field_6szcl_1`,control:`_control_6szcl_3`,disabled:`_disabled_6szcl_4`,open:`_open_6szcl_6`,searchIcon:`_searchIcon_6szcl_8`,chevron:`_chevron_6szcl_12`,clear:`_clear_6szcl_14`,hint:`_hint_6szcl_17`,popover:`_popover_6szcl_18`,autoHeight:`_autoHeight_6szcl_19`,listbox:`_listbox_6szcl_20`,option:`_option_6szcl_22`,check:`_check_6szcl_26`,empty:`_empty_6szcl_27`};function Ote({children:e,reduceMotion:t}){let n=(0,p.useRef)(null),[r,i]=(0,p.useState)(`auto`);return(0,p.useEffect)(()=>{let e=n.current;if(!e)return;let t=new ResizeObserver(()=>i(e.offsetHeight));return t.observe(e),()=>t.disconnect()},[]),(0,m.jsx)(H.div,{className:uE.autoHeight,initial:!1,animate:{height:r},transition:t?{duration:0}:Y.spring.smooth,children:(0,m.jsx)(`div`,{ref:n,children:e})})}var dE=(0,p.forwardRef)(function({label:e,options:t,value:n,defaultValue:r=``,onValueChange:i,description:a,placeholder:o=`Search or select…`,emptyMessage:s=`No matches found`,id:c,className:l,disabled:u,onFocus:d,...f},h){let g=(0,p.useId)(),_=c??g,v=`${_}-listbox`,y=a?`${_}-description`:void 0,b=(0,p.useRef)(null),x=(0,p.useRef)(null),S=(0,p.useRef)({}),C=Zf(),[w,T]=(0,p.useState)(r),[E,D]=(0,p.useState)(!1),[O,k]=(0,p.useState)(``),[A,j]=(0,p.useState)(-1),M=n??w,N=t.find(e=>e.value===M);(0,p.useImperativeHandle)(h,()=>x.current);let P=(0,p.useRef)(M);(0,p.useEffect)(()=>{if(P.current===M)return;P.current=M;let e=x.current;if(!e||C||M&&E)return;let t=M?bp(e,{opacity:[0,1],y:[`0.35em`,`0em`],filter:[`blur(${Y.blur.soft}px)`,`blur(0px)`]},{duration:Y.duration.standard,ease:[...Y.ease.enter]}):bp(e,{opacity:[0,1]},{duration:Y.duration.fast,ease:[...Y.ease.enter]});return()=>t.complete()},[M,C,E]);let F=(0,p.useMemo)(()=>{let e=O.trim().toLocaleLowerCase();return e?t.filter(t=>[t.label,...t.keywords??[]].some(t=>t.toLocaleLowerCase().includes(e))):t},[t,O]),I=F.reduce((e,t,n)=>(t.disabled||e.push(n),e),[]);(0,p.useEffect)(()=>{if(!E)return;let e=A>=0?F[A]:void 0,t=e?S.current[e.value]:null,n=t?.parentElement;if(t&&n){let e=t.offsetTop,r=e+t.offsetHeight;e<n.scrollTop?n.scrollTop=e:r>n.scrollTop+n.clientHeight&&(n.scrollTop=r-n.clientHeight)}},[A,F,E]),(0,p.useEffect)(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&(D(!1),k(``))};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[]);let L=e=>{e.disabled||(T(e.value),i?.(e.value),k(``),D(!1),x.current?.focus())},R=e=>{e.preventDefault(),T(``),i?.(``),k(``),D(!0),x.current?.focus()},ee=()=>{u||(D(!0),k(``),j(-1))},te=e=>{if(!u){if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(e.preventDefault(),!E){ee();return}if(!I.length)return;let t=I.indexOf(A),n=e.key===`ArrowDown`?(t+1)%I.length:(t-1+I.length)%I.length;j(I[n]);return}if(e.key===`Enter`&&E&&A>=0){e.preventDefault();let t=F[A];t&&L(t);return}if(e.key===`Escape`&&E){e.preventDefault(),D(!1),k(``);return}}},ne=E?O:N?.label??``,re=A>=0?F[A]:void 0;return(0,m.jsxs)(`div`,{ref:b,className:uE.field,children:[(0,m.jsx)(`label`,{htmlFor:_,children:e}),(0,m.jsxs)(`div`,{className:[uE.control,E?uE.open:``,u?uE.disabled:``,l??``].filter(Boolean).join(` `),children:[(0,m.jsx)(KS,{className:uE.searchIcon,size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,m.jsx)(`input`,{...f,ref:x,id:_,type:`text`,role:`combobox`,value:ne,placeholder:N?.label??o,disabled:u,"aria-describedby":y,"aria-expanded":E,"aria-controls":E?v:void 0,"aria-autocomplete":`list`,"aria-activedescendant":E&&re?`${_}-option-${re.value}`:void 0,onFocus:e=>{d?.(e),ee()},onClick:ee,onChange:e=>{k(e.target.value),D(!0),j(-1)},onKeyDown:te}),(0,m.jsx)(V,{initial:!1,children:N&&!u&&(0,m.jsx)(H.button,{type:`button`,className:uE.clear,"aria-label":`Clear selection`,onMouseDown:e=>e.preventDefault(),onClick:R,initial:C?{opacity:0}:{opacity:0,scale:.6,filter:`blur(${Y.blur.subtle}px)`},animate:{opacity:1,scale:1,filter:`blur(0px)`,transition:C?{duration:Y.duration.instant}:{...Y.spring.snappy,opacity:{duration:Y.duration.fast}}},exit:{opacity:0,...C?{}:{scale:.6,filter:`blur(${Y.blur.subtle}px)`},transition:{duration:Y.duration.instant,ease:[...Y.ease.standard]}},whileTap:{scale:C?1:.96,transition:{duration:Y.duration.instant,ease:[...Y.ease.standard]}},children:(0,m.jsx)(vC,{size:16,strokeWidth:1.75,"aria-hidden":`true`})})}),(0,m.jsx)(Mx,{className:uE.chevron,size:16,strokeWidth:1.75,"aria-hidden":`true`})]}),a&&(0,m.jsx)(`span`,{id:y,className:uE.hint,children:a}),(0,m.jsx)(V,{initial:!1,children:E&&(0,m.jsx)(H.div,{className:uE.popover,initial:C?{opacity:0}:{opacity:0,y:-6,scale:.97},animate:{opacity:1,y:0,scale:1,transition:C?{duration:Y.duration.instant}:{...Y.spring.snappy,opacity:{duration:Y.duration.fast,ease:[...Y.ease.enter]}}},exit:{opacity:0,...C?{}:{y:-4,scale:.98},transition:{duration:Y.duration.instant,ease:[...Y.ease.standard]}},role:`presentation`,children:(0,m.jsx)(Ote,{reduceMotion:C,children:(0,m.jsx)(`div`,{id:v,className:uE.listbox,role:`listbox`,"aria-label":`${e} options`,children:F.length?F.map((e,t)=>(0,m.jsxs)(`div`,{ref:t=>{S.current[e.value]=t},id:`${_}-option-${e.value}`,className:uE.option,"data-active":t===A?`true`:void 0,"data-disabled":e.disabled?`true`:void 0,role:`option`,"aria-selected":e.value===M,"aria-disabled":e.disabled||void 0,onMouseDown:e=>e.preventDefault(),onMouseEnter:()=>!e.disabled&&j(t),onClick:()=>L(e),children:[(0,m.jsx)(`span`,{children:e.label}),e.value===M&&(0,m.jsx)(Ax,{className:uE.check,size:16,strokeWidth:1.75,"aria-hidden":`true`})]},e.value)):(0,m.jsx)(H.div,{className:uE.empty,role:`status`,initial:!C&&{opacity:0,y:4,filter:`blur(${Y.blur.soft}px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},transition:{duration:Y.duration.standard,ease:[...Y.ease.enter]},children:s})})})})})]})});dE.displayName=`Combobox`;var kte=Object.defineProperty,Ate=(e,t)=>kte(e,`name`,{value:t,configurable:!0});function fE(e){let t=p.useRef(e);return p.useEffect(()=>{t.current=e}),p.useMemo(()=>((...e)=>t.current?.(...e)),[])}Ate(fE,`useCallbackRef`);var jte=Object.defineProperty,pE=(e,t)=>jte(e,`name`,{value:t,configurable:!0}),mE=`dismissableLayer.update`,Mte=`dismissableLayer.pointerDownOutside`,Nte=`dismissableLayer.focusOutside`,hE,gE=p.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),_E=p.forwardRef(pE(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=p.useContext(gE),[d,f]=p.useState(null),h=d?.ownerDocument??globalThis?.document,[,g]=p.useState({}),_=zv(t,f),v=Array.from(u.layers),[y]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),b=y?v.indexOf(y):-1,x=d?v.indexOf(d):-1,S=u.layersWithOutsidePointerEventsDisabled.size>0,C=x>=b,w=p.useRef(!1),T=yE(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:h,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:w,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:p.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return C&&!t},[u.branches,C])}),E=bE(e=>{if(r&&w.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},h),D=d?x===v.length-1:!1,O=fE(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return p.useEffect(()=>{if(D)return h.addEventListener(`keydown`,O,{capture:!0}),()=>h.removeEventListener(`keydown`,O,{capture:!0})},[h,D,O]),p.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(hE=h.body.style.pointerEvents,h.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),xE(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(h.body.style.pointerEvents=hE))}},[d,h,n,u]),p.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),xE())},[d,u]),p.useEffect(()=>{let e=pE(()=>g({}),`handleUpdate`);return document.addEventListener(mE,e),()=>document.removeEventListener(mE,e)},[]),(0,m.jsx)(Ry.div,{...l,ref:_,style:{pointerEvents:S?C?`auto`:`none`:void 0,...e.style},onFocusCapture:q(e.onFocusCapture,E.onFocusCapture),onBlurCapture:q(e.onBlurCapture,E.onBlurCapture),onPointerDownCapture:q(e.onPointerDownCapture,T.onPointerDownCapture)})},`DismissableLayer`));function vE(){let e=p.useContext(gE),[t,n]=p.useState(null);return p.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}pE(vE,`useDismissableLayerSurface`);var Pte=pE(()=>!0,`IS_TRUE`);function yE(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=Pte}=t,s=fE(e),c=p.useRef(!1),l=p.useRef(!1),u=p.useRef(new Map),d=p.useRef(()=>{});return p.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}pE(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}pE(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}pE(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}pE(p,`handleInteractionBubble`);let m=pE(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||SE(Mte,s,p,{discrete:!0})};if(pE(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:pE(()=>c.current=!0,`onPointerDownCapture`)}}pE(yE,`usePointerDownOutside`);function bE(e,t=globalThis?.document){let n=fE(e),r=p.useRef(!1);return p.useEffect(()=>{let e=pE(e=>{e.target&&!r.current&&SE(Nte,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:pE(()=>r.current=!0,`onFocusCapture`),onBlurCapture:pE(()=>r.current=!1,`onBlurCapture`)}}pE(bE,`useFocusOutside`);function xE(){let e=new CustomEvent(mE);document.dispatchEvent(e)}pE(xE,`dispatchUpdate`);function SE(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?zy(i,a):i.dispatchEvent(a)}pE(SE,`handleAndDispatchCustomEvent`);var Fte=Object.defineProperty,CE=(e,t)=>Fte(e,`name`,{value:t,configurable:!0}),wE=`focusScope.autoFocusOnMount`,TE=`focusScope.autoFocusOnUnmount`,EE={bubbles:!1,cancelable:!0},DE=p.forwardRef(CE(function(e,t){let{loop:n=!1,trapped:r=!1,branches:i,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[c,l]=p.useState(null),u=fE(a),d=fE(o),f=p.useRef(null),h=zv(t,l),g=p.useRef(i);p.useEffect(()=>{g.current=i});let _=p.useCallback(e=>e?c?.contains(e)?!0:!!g.current?.some(t=>t.contains(e)):!1,[c]),v=p.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;p.useEffect(()=>{if(r){let e=function(e){if(v.paused||!c)return;let t=e.target;_(t)?f.current=t:RE(f.current,{select:!0})},t=function(e){if(v.paused||!c)return;let t=e.relatedTarget;t!==null&&(_(t)||RE(f.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&RE(c)};CE(e,`handleFocusIn`),CE(t,`handleFocusOut`),CE(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return c&&r.observe(c,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,c,v.paused,_]),p.useEffect(()=>{if(c){zE.add(v);let e=document.activeElement;if(!c.contains(e)){let t=new CustomEvent(wE,EE);c.addEventListener(wE,u),c.dispatchEvent(t),t.defaultPrevented||(ME(HE(PE(c)),{select:!0}),document.activeElement===e&&RE(c))}return()=>{c.removeEventListener(wE,u),setTimeout(()=>{let t=new CustomEvent(TE,EE);c.addEventListener(TE,d),c.dispatchEvent(t),t.defaultPrevented||RE(e??document.body,{select:!0}),c.removeEventListener(TE,d),zE.remove(v)},0)}}},[c,u,d,v]);let y=p.useCallback(e=>{if(!n&&!r||v.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=NE(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&RE(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&RE(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,v.paused]);return(0,m.jsx)(Ry.div,{tabIndex:-1,...s,ref:h,onKeyDown:y})},`FocusScope`)),OE=p.createContext(null);function kE({registry:e,children:t}){return e?(0,m.jsx)(OE.Provider,{value:e,children:t}):t}CE(kE,`FocusScopeBranchProvider`);function AE(){let[e,t]=p.useState([]);return{nodes:e,registry:p.useMemo(()=>({add:CE(e=>t(t=>t.includes(e)?t:[...t,e]),`add`),remove:CE(e=>t(t=>t.filter(t=>t!==e)),`remove`)}),[])}}CE(AE,`useFocusScopeBranchRegistry`);function jE(e){let t=p.useContext(OE);p.useEffect(()=>{if(e&&t)return t.add(e),()=>t.remove(e)},[e,t])}CE(jE,`useFocusScopeBranch`);function ME(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(RE(r,{select:t}),document.activeElement!==n)return}CE(ME,`focusFirst`);function NE(e){let t=PE(e);return[FE(t,e),FE(t.reverse(),e)]}CE(NE,`getTabbableEdges`);function PE(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:CE(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}CE(PE,`getTabbableCandidates`);function FE(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):IE(r,{upTo:t})))return r}CE(FE,`findVisible`);function IE(e,{upTo:t}){if(getComputedStyle(e).visibility===`hidden`)return!0;for(;e;){if(t!==void 0&&e===t)return!1;if(getComputedStyle(e).display===`none`)return!0;e=e.parentElement}return!1}CE(IE,`isHidden`);function LE(e){return e instanceof HTMLInputElement&&`select`in e}CE(LE,`isSelectableInput`);function RE(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&LE(e)&&t&&e.select()}}CE(RE,`focus`);var zE=BE();function BE(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=VE(e,t),e.unshift(t)},remove(t){e=VE(e,t),e[0]?.resume()}}}CE(BE,`createFocusScopesStack`);function VE(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}CE(VE,`arrayRemove`);function HE(e){return e.filter(e=>e.tagName!==`A`)}CE(HE,`removeLinks`);var Ite=Object.defineProperty,UE=p.forwardRef(((e,t)=>Ite(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=p.useState(!1);xy(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Fy.createPortal((0,m.jsx)(Ry.div,{...r,ref:t}),o):null},`Portal`)),Lte=Object.defineProperty,WE=(e,t)=>Lte(e,`name`,{value:t,configurable:!0}),GE=0,KE=null;function Rte(e){return qE(),e.children}WE(Rte,`FocusGuards`);function qE(){p.useEffect(()=>{KE||={start:JE(),end:JE()};let{start:e,end:t}=KE;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),GE++,()=>{GE===1&&(KE?.start.remove(),KE?.end.remove(),KE=null),GE=Math.max(0,GE-1)}},[])}WE(qE,`useFocusGuards`);function JE(){let e=document.createElement(`span`);return e.setAttribute(`data-radix-focus-guard`,``),e.tabIndex=0,e.style.outline=`none`,e.style.opacity=`0`,e.style.position=`fixed`,e.style.pointerEvents=`none`,e}WE(JE,`createFocusGuard`);var YE=function(){return YE=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},YE.apply(this,arguments)};function XE(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function zte(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var ZE=`right-scroll-bar-position`,QE=`width-before-scroll-bar`,Bte=`with-scroll-bars-hidden`,Vte=`--removed-body-scroll-bar-size`;function $E(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Hte(e,t){var n=(0,p.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Ute=typeof window<`u`?p.useLayoutEffect:p.useEffect,eD=new WeakMap;function Wte(e,t){var n=Hte(t||null,function(t){return e.forEach(function(e){return $E(e,t)})});return Ute(function(){var t=eD.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||$E(e,null)}),i.forEach(function(e){r.has(e)||$E(e,a)})}eD.set(n,e)},[e]),n}function Gte(e){return e}function Kte(e,t){t===void 0&&(t=Gte);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function qte(e){e===void 0&&(e={});var t=Kte(null);return t.options=YE({async:!0,ssr:!1},e),t}var tD=function(e){var t=e.sideCar,n=XE(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return p.createElement(r,YE({},n))};tD.isSideCarExport=!0;function Jte(e,t){return e.useMedium(t),tD}var nD=qte(),rD=function(){},iD=p.forwardRef(function(e,t){var n=p.useRef(null),r=p.useState({onScrollCapture:rD,onWheelCapture:rD,onTouchMoveCapture:rD}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,_=e.allowPinchZoom,v=e.as,y=v===void 0?`div`:v,b=e.gapMode,x=XE(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),S=f,C=Wte([n,t]),w=YE(YE({},x),i);return p.createElement(p.Fragment,null,u&&p.createElement(S,{sideCar:nD,removeScrollBar:l,shards:d,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!_,lockRef:n,gapMode:b}),o?p.cloneElement(p.Children.only(s),YE(YE({},w),{ref:C})):p.createElement(y,YE({},w,{className:c,ref:C}),s))});iD.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},iD.classNames={fullWidth:QE,zeroRight:ZE};var Yte=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function Xte(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=Yte();return t&&e.setAttribute(`nonce`,t),e}function Zte(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function Qte(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var $te=function(){var e=0,t=null;return{add:function(n){e==0&&(t=Xte())&&(Zte(t,n),Qte(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ene=function(){var e=$te();return function(t,n){p.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},aD=function(){var e=ene();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},tne={left:0,top:0,right:0,gap:0},oD=function(e){return parseInt(e||``,10)||0},nne=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[oD(n),oD(r),oD(i)]},rne=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return tne;var t=nne(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},ine=aD(),sD=`data-scroll-locked`,ane=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
|
|
26
|
-
.${Bte} {
|
|
27
|
-
overflow: hidden ${r};
|
|
28
|
-
padding-right: ${s}px ${r};
|
|
29
|
-
}
|
|
30
|
-
body[${sD}] {
|
|
31
|
-
overflow: hidden ${r};
|
|
32
|
-
overscroll-behavior: contain;
|
|
33
|
-
${[t&&`position: relative ${r};`,n===`margin`&&`
|
|
34
|
-
padding-left: ${i}px;
|
|
35
|
-
padding-top: ${a}px;
|
|
36
|
-
padding-right: ${o}px;
|
|
37
|
-
margin-left:0;
|
|
38
|
-
margin-top:0;
|
|
39
|
-
margin-right: ${s}px ${r};
|
|
40
|
-
`,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.${ZE} {
|
|
44
|
-
right: ${s}px ${r};
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.${QE} {
|
|
48
|
-
margin-right: ${s}px ${r};
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.${ZE} .${ZE} {
|
|
52
|
-
right: 0 ${r};
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.${QE} .${QE} {
|
|
56
|
-
margin-right: 0 ${r};
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
body[${sD}] {
|
|
60
|
-
${Vte}: ${s}px;
|
|
61
|
-
}
|
|
62
|
-
`},cD=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},one=function(){p.useEffect(function(){return document.body.setAttribute(sD,(cD()+1).toString()),function(){var e=cD()-1;e<=0?document.body.removeAttribute(sD):document.body.setAttribute(sD,e.toString())}},[])},sne=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;one();var a=p.useMemo(function(){return rne(i)},[i]);return p.createElement(ine,{styles:ane(a,!t,i,n?``:`!important`)})},lD=!1;if(typeof window<`u`)try{var uD=Object.defineProperty({},"passive",{get:function(){return lD=!0,!0}});window.addEventListener(`test`,uD,uD),window.removeEventListener(`test`,uD,uD)}catch{lD=!1}var dD=lD?{passive:!1}:!1,cne=function(e){return e.tagName===`TEXTAREA`},fD=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!cne(e)&&n[t]===`visible`)},lne=function(e){return fD(e,`overflowY`)},une=function(e){return fD(e,`overflowX`)},pD=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),mD(e,r)){var i=hD(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},dne=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},fne=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},mD=function(e,t){return e===`v`?lne(t):une(t)},hD=function(e,t){return e===`v`?dne(t):fne(t)},pne=function(e,t){return e===`h`&&t===`rtl`?-1:1},mne=function(e,t,n,r,i){var a=pne(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=hD(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&mD(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},gD=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},_D=function(e){return[e.deltaX,e.deltaY]},vD=function(e){return e&&`current`in e?e.current:e},hne=function(e,t){return e[0]===t[0]&&e[1]===t[1]},gne=function(e){return`
|
|
63
|
-
.block-interactivity-${e} {pointer-events: none;}
|
|
64
|
-
.allow-interactivity-${e} {pointer-events: all;}
|
|
65
|
-
`},_ne=0,yD=[];function vne(e){var t=p.useRef([]),n=p.useRef([0,0]),r=p.useRef(),i=p.useState(_ne++)[0],a=p.useState(aD)[0],o=p.useRef(e);p.useEffect(function(){o.current=e},[e]),p.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=zte([e.lockRef.current],(e.shards||[]).map(vD),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=p.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=gD(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=pD(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=pD(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return mne(h,t,e,h===`h`?s:c,!0)},[]),c=p.useCallback(function(e){var n=e;if(yD.length&&yD[yD.length-1]===a){var r=`deltaY`in n?_D(n):gD(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&hne(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(vD).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=p.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:yne(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=p.useCallback(function(e){n.current=gD(e),r.current=void 0},[]),d=p.useCallback(function(t){l(t.type,_D(t),t.target,s(t,e.lockRef.current))},[]),f=p.useCallback(function(t){l(t.type,gD(t),t.target,s(t,e.lockRef.current))},[]);p.useEffect(function(){return yD.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,dD),document.addEventListener(`touchmove`,c,dD),document.addEventListener(`touchstart`,u,dD),function(){yD=yD.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,dD),document.removeEventListener(`touchmove`,c,dD),document.removeEventListener(`touchstart`,u,dD)}},[]);var m=e.removeScrollBar,h=e.inert;return p.createElement(p.Fragment,null,h?p.createElement(a,{styles:gne(i)}):null,m?p.createElement(sne,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function yne(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var bne=Jte(nD,vne),bD=p.forwardRef(function(e,t){return p.createElement(iD,YE({},e,{ref:t,sideCar:bne}))});bD.classNames=iD.classNames;var xne=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},xD=new WeakMap,SD=new WeakMap,CD={},wD=0,TD=function(e){return e&&(e.host||TD(e.parentNode))},ED=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=TD(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},DD=function(e,t,n,r){var i=ED(t,Array.isArray(e)?e:[e]);CD[n]||(CD[n]=new WeakMap);var a=CD[n],o=[],s=new Set,c=new Set(i),l=function(e){e&&!s.has(e)&&(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){e&&!c.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=(xD.get(e)||0)+1,l=(a.get(e)||0)+1;xD.set(e,c),a.set(e,l),o.push(e),c===1&&i&&SD.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),wD++,function(){o.forEach(function(e){var t=xD.get(e)-1,i=a.get(e)-1;xD.set(e,t),a.set(e,i),t||(SD.has(e)||e.removeAttribute(r),SD.delete(e)),i||e.removeAttribute(n)}),wD--,wD||(xD=new WeakMap,xD=new WeakMap,SD=new WeakMap,CD={})}},OD=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||xne(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),DD(r,i,n,`aria-hidden`)):function(){return null}},kD=Object.defineProperty,AD=(e,t)=>kD(e,`name`,{value:t,configurable:!0}),jD=`Dialog`,[MD,Sne]=Pv(jD),[ND,PD]=MD(jD),FD=AD(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=p.useRef(null),c=p.useRef(null),{nodes:l,registry:u}=AE(),[d,f]=Ay({prop:r,defaultProp:i??!1,onChange:a,caller:jD}),[h,g]=p.useState(0),[_,v]=p.useState(0);return(0,m.jsx)(ND,{scope:t,triggerRef:s,contentRef:c,contentId:$y(),titleId:$y(),descriptionId:$y(),titlePresent:h>0,descriptionPresent:_>0,setTitleCount:g,setDescriptionCount:v,open:d,onOpenChange:f,onOpenToggle:p.useCallback(()=>f(e=>!e),[f]),modal:o,branchNodes:l,branchRegistry:u,children:n})},`Dialog`),ID=`DialogTrigger`,LD=p.forwardRef(AD(function(e,t){let{__scopeDialog:n,...r}=e,i=PD(ID,n),a=zv(t,i.triggerRef);return(0,m.jsx)(Ry.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":nO(i.open),...r,ref:a,onClick:q(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),RD=`DialogPortal`,[zD,BD]=MD(RD,{forceMount:void 0}),VD=AD(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=PD(RD,t);return(0,m.jsx)(zD,{scope:t,forceMount:n,children:p.Children.map(r,e=>(0,m.jsx)(Uy,{present:n||a.open,children:(0,m.jsx)(UE,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),HD=`DialogOverlay`,UD=p.forwardRef(AD(function(e,t){let n=BD(HD,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=PD(HD,e.__scopeDialog);return a.modal?(0,m.jsx)(Uy,{present:r||a.open,children:(0,m.jsx)(GD,{...i,ref:t})}):null},`DialogOverlay`)),WD=Vv(`DialogOverlay.RemoveScroll`),GD=p.forwardRef(AD(function(e,t){let{__scopeDialog:n,...r}=e,i=PD(HD,n),a=zv(t,vE());return(0,m.jsx)(bD,{as:WD,allowPinchZoom:!0,shards:p.useMemo(()=>[i.contentRef,...i.branchNodes.map(e=>({current:e}))],[i.contentRef,i.branchNodes]),children:(0,m.jsx)(Ry.div,{"data-state":nO(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),KD=`DialogContent`,qD=p.forwardRef(AD(function(e,t){let n=BD(KD,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=PD(KD,e.__scopeDialog);return(0,m.jsx)(Uy,{present:r||a.open,children:a.modal?(0,m.jsx)(JD,{...i,ref:t}):(0,m.jsx)(YD,{...i,ref:t})})},`DialogContent`)),JD=p.forwardRef(AD(function(e,t){let n=PD(KD,e.__scopeDialog),r=p.useRef(null),i=zv(t,n.contentRef,r);return p.useEffect(()=>{let e=r.current;if(e)return OD(e)},[]),(0,m.jsx)(XD,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:q(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:q(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:q(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),YD=p.forwardRef(AD(function(e,t){let n=PD(KD,e.__scopeDialog),r=p.useRef(!1),i=p.useRef(!1);return(0,m.jsx)(XD,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),XD=p.forwardRef(AD(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,"aria-describedby":o,children:s,...c}=e,l=PD(KD,n);return qE(),(0,m.jsx)(kE,{registry:l.branchRegistry,children:(0,m.jsx)(DE,{asChild:!0,loop:!0,trapped:r,branches:l.branchNodes,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,m.jsx)(_E,{role:`dialog`,id:l.contentId,"aria-labelledby":l.titlePresent?l.titleId:void 0,"aria-describedby":l.descriptionPresent?tO(o,l.descriptionId):o,"data-state":nO(l.open),...c,ref:t,deferPointerDownOutside:!0,onDismiss:()=>l.onOpenChange(!1),children:s})})})},`DialogContentImpl`)),ZD=p.forwardRef(AD(function(e,t){let{__scopeDialog:n,...r}=e,i=PD(`DialogTitle`,n),{setTitleCount:a}=i;return xy(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,m.jsx)(Ry.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),QD=p.forwardRef(AD(function(e,t){let{__scopeDialog:n,...r}=e,i=PD(`DialogDescription`,n),{setDescriptionCount:a}=i;return xy(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,m.jsx)(Ry.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),$D=`DialogClose`,eO=p.forwardRef(AD(function(e,t){let{__scopeDialog:n,...r}=e,i=PD($D,n);return(0,m.jsx)(Ry.button,{type:`button`,...r,ref:t,onClick:q(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function tO(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}AD(tO,`concatAriaDescribedby`);function nO(e){return e?`open`:`closed`}AD(nO,`getState`);var rO={overlay:`_overlay_1vyy5_1`,content:`_content_1vyy5_5`,keyframes:`_keyframes_1vyy5_9`,"overlay-in":`_overlay-in_1vyy5_1`,"overlay-out":`_overlay-out_1vyy5_1`,"content-fade-in":`_content-fade-in_1vyy5_1`,"content-rise-in":`_content-rise-in_1vyy5_1`,"content-out":`_content-out_1vyy5_1`,header:`_header_1vyy5_16`,title:`_title_1vyy5_17`,description:`_description_1vyy5_18`,swap:`_swap_1vyy5_20`,close:`_close_1vyy5_24`,body:`_body_1vyy5_27`,"content-fade-out":`_content-fade-out_1vyy5_1`},iO=(0,p.createContext)(null);function aO({open:e,defaultOpen:t=!1,onOpenChange:n,...r}){let[i,a]=(0,p.useState)(t),o=e??i,s=(0,p.useCallback)(t=>{e===void 0&&a(t),n?.(t)},[e,n]);return(0,m.jsx)(iO.Provider,{value:o,children:(0,m.jsx)(FD,{...r,open:o,onOpenChange:s})})}var oO={duration:Y.duration.instant},sO={duration:Y.duration.fast,ease:[...Y.ease.standard]};function cO({text:e}){let t=Zf();return(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(H.span,{className:rO.swap,initial:!t&&{opacity:0,y:`0.3em`,filter:`blur(${Y.blur.soft}px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},exit:t?{opacity:0,transition:{duration:0}}:{opacity:0,y:`-0.3em`,filter:`blur(${Y.blur.subtle}px)`,transition:{duration:Y.duration.fast,ease:[...Y.ease.standard]}},transition:{duration:Y.duration.standard,ease:[...Y.ease.enter]},children:e},e)})}function lO({title:e,description:t,children:n,className:r,onPointerDownOutside:i,...a}){let o=(0,p.useContext)(iO),s=Zf(),c=(0,p.useRef)({open:o,at:0});(0,p.useLayoutEffect)(()=>{c.current={open:o,at:performance.now()}},[o]);let l=e=>{i?.(e),o!==null&&(!c.current.open||e.detail.originalEvent.timeStamp<c.current.at)&&e.preventDefault()},u=[rO.content,r].filter(Boolean).join(` `),d=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`div`,{className:rO.header,children:[(0,m.jsxs)(`div`,{children:[(0,m.jsx)(ZD,{className:rO.title,children:(0,m.jsx)(cO,{text:e})}),t?(0,m.jsx)(QD,{className:rO.description,children:(0,m.jsx)(cO,{text:t})}):null]}),(0,m.jsx)(eO,{className:rO.close,"aria-label":`Close dialog`,children:(0,m.jsx)(vC,{size:16,strokeWidth:1.75,"aria-hidden":`true`})})]}),(0,m.jsx)(`div`,{className:rO.body,children:n})]});return o===null?(0,m.jsxs)(VD,{children:[(0,m.jsx)(UD,{className:`${rO.overlay} ${rO.keyframes}`}),(0,m.jsx)(qD,{...a,onPointerDownOutside:l,className:`${u} ${rO.keyframes}`,children:d})]}):(0,m.jsx)(V,{children:o&&(0,m.jsxs)(VD,{forceMount:!0,children:[(0,m.jsx)(UD,{asChild:!0,forceMount:!0,children:(0,m.jsx)(H.div,{className:rO.overlay,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:s?oO:sO},transition:s?oO:{duration:Y.duration.standard,ease:[...Y.ease.enter]}})}),(0,m.jsx)(qD,{...a,onPointerDownOutside:l,asChild:!0,forceMount:!0,children:(0,m.jsx)(H.div,{className:u,initial:s?{opacity:0}:{opacity:0,y:8,scale:.96},animate:{opacity:1,y:0,scale:1},exit:s?{opacity:0,transition:oO}:{opacity:0,y:4,scale:.98,transition:sO},transition:s?oO:{default:Y.spring.smooth,opacity:{duration:Y.duration.fast,ease:[...Y.ease.enter]}},children:d})})]},`dialog`)})}var uO=[`top`,`right`,`bottom`,`left`],dO=Math.min,fO=Math.max,pO=Math.round,mO=Math.floor,hO=e=>({x:e,y:e}),gO={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function _O(e,t,n){return fO(e,dO(t,n))}function vO(e,t){return typeof e==`function`?e(t):e}function yO(e){return e.split(`-`)[0]}function bO(e){return e.split(`-`)[1]}function xO(e){return e===`x`?`y`:`x`}function SO(e){return e===`y`?`height`:`width`}function CO(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function wO(e){return xO(CO(e))}function TO(e,t,n){n===void 0&&(n=!1);let r=bO(e),i=wO(e),a=SO(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=PO(o)),[o,PO(o)]}function EO(e){let t=PO(e);return[DO(e),t,DO(t)]}function DO(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var OO=[`left`,`right`],kO=[`right`,`left`],AO=[`top`,`bottom`],jO=[`bottom`,`top`];function MO(e,t,n){switch(e){case`top`:case`bottom`:return n?t?kO:OO:t?OO:kO;case`left`:case`right`:return t?AO:jO;default:return[]}}function NO(e,t,n,r){let i=bO(e),a=MO(yO(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(DO)))),a}function PO(e){let t=yO(e);return gO[t]+e.slice(t.length)}function FO(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function IO(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:FO(e)}function LO(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 RO(e,t,n){let{reference:r,floating:i}=e,a=CO(t),o=wO(t),s=SO(o),c=yO(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=bO(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function zO(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=vO(t,e),p=IO(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=LO(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=LO(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var BO=50,VO=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:zO},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=RO(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<BO&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=RO(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},HO=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=vO(e,t)||{};if(l==null)return{};let d=IO(u),f={x:n,y:r},p=wO(i),m=SO(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=dO(d[_],T),D=dO(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=_O(E,k,O),j=!c.arrow&&bO(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),UO=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=vO(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=yO(r),_=CO(o),v=yO(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[PO(o)]:EO(o)),x=p!==`none`;!d&&x&&b.push(...NO(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=TO(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===CO(t)||T.every(e=>CO(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=CO(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function WO(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function GO(e){return uO.some(t=>e[t]>=0)}var KO=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=vO(e,t);switch(i){case`referenceHidden`:{let e=WO(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:GO(e)}}}case`escaped`:{let e=WO(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:GO(e)}}}default:return{}}}}},qO=new Set([`left`,`top`]);async function JO(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=yO(n),s=bO(n),c=CO(n)===`y`,l=qO.has(o)?-1:1,u=a&&c?-1:1,d=vO(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var YO=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await JO(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},XO=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=vO(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=CO(i),p=xO(f),m=u[p],h=u[f],g=(e,t)=>_O(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},ZO=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=vO(e,t),u={x:n,y:r},d=CO(i),f=xO(d),p=u[f],m=u[d],h=vO(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=qO.has(yO(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},QO=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=vO(e,t),c=await i.detectOverflow(t,s),l=yO(n),u=bO(n),d=CO(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=dO(p-c[m],g),y=dO(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*fO(c.left,c.right):S=p-2*fO(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function $O(){return typeof window<`u`}function ek(e){return rk(e)?(e.nodeName||``).toLowerCase():`#document`}function tk(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function nk(e){return((rk(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function rk(e){return $O()?e instanceof Node||e instanceof tk(e).Node:!1}function ik(e){return $O()?e instanceof Element||e instanceof tk(e).Element:!1}function ak(e){return $O()?e instanceof HTMLElement||e instanceof tk(e).HTMLElement:!1}function ok(e){return!$O()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof tk(e).ShadowRoot}function sk(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=vk(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function ck(e){return/^(table|td|th)$/.test(ek(e))}function lk(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var uk=/transform|translate|scale|rotate|perspective|filter/,dk=/paint|layout|strict|content/,fk=e=>!!e&&e!==`none`,pk;function mk(e){let t=ik(e)?vk(e):e;return fk(t.transform)||fk(t.translate)||fk(t.scale)||fk(t.rotate)||fk(t.perspective)||!gk()&&(fk(t.backdropFilter)||fk(t.filter))||uk.test(t.willChange||``)||dk.test(t.contain||``)}function hk(e){let t=bk(e);for(;ak(t)&&!_k(t);){if(mk(t))return t;if(lk(t))return null;t=bk(t)}return null}function gk(){return pk??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),pk}function _k(e){return/^(html|body|#document)$/.test(ek(e))}function vk(e){return tk(e).getComputedStyle(e)}function yk(e){return ik(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function bk(e){if(ek(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||ok(e)&&e.host||nk(e);return ok(t)?t.host:t}function xk(e){let t=bk(e);return _k(t)?(e.ownerDocument||e).body:ak(t)&&sk(t)?t:xk(t)}function Sk(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=xk(e),i=r===e.ownerDocument?.body,a=tk(r);if(i){let e=Ck(a);return t.concat(a,a.visualViewport||[],sk(r)?r:[],e&&n?Sk(e):[])}return t.concat(r,Sk(r,[],n))}function Ck(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function wk(e){let t=vk(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=ak(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=pO(n)!==a||pO(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function Tk(e){return ik(e)?e:e.contextElement}function Ek(e){let t=Tk(e);if(!ak(t))return hO(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=wk(t),o=(a?pO(n.width):n.width)/r,s=(a?pO(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var Dk=hO(0);function Ok(e){let t=tk(e);return!gk()||!t.visualViewport?Dk:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function kk(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===tk(e)}function Ak(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=Tk(e),o=hO(1);t&&(r?ik(r)&&(o=Ek(r)):o=Ek(e));let s=kk(a,n,r)?Ok(a):hO(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=tk(a),t=ik(r)?tk(r):r,n=e,i=Ck(n);for(;i&&t!==n;){let e=Ek(i),t=i.getBoundingClientRect(),r=vk(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=tk(i),i=Ck(n)}}return LO({width:u,height:d,x:c,y:l})}function jk(e,t){let n=yk(e).scrollLeft;return t?t.left+n:Ak(nk(e)).left+n}function Mk(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-jk(e,n),y:n.top+t.scrollTop}}function Nk(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=nk(r),s=t?lk(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=hO(1),u=hO(0),d=ak(r);if((d||!a)&&((ek(r)!==`body`||sk(o))&&(c=yk(r)),d)){let e=Ak(r);l=Ek(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?Mk(o,c):hO(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function Pk(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Fk(e){let t=yk(e),n=e.ownerDocument.body,r=fO(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=fO(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+jk(e),o=-t.scrollTop;return vk(n).direction===`rtl`&&(a+=fO(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var Ik=25;function Lk(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=tk(e),a=nk(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!gk()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(jk(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Ik&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Rk(e,t){let n=Ak(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Ek(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function zk(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Lk(e,n,t);else if(t===`document`)r=Fk(nk(e));else if(ik(t))r=Rk(t,n);else{let n=Ok(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return LO(r)}function Bk(e,t){let n=t.get(e);if(n)return n;let r=Sk(e,[],!1).filter(e=>ik(e)&&ek(e)!==`body`),i=null,a=vk(e).position===`fixed`,o=a?bk(e):e;for(;ik(o)&&!_k(o);){let e=vk(o),t=mk(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=bk(o)}return t.set(e,r),r}function Vk(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?lk(t)?[]:Bk(t,this._c):[].concat(n),r],o=zk(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=zk(t,a[e],i);s=fO(n.top,s),c=dO(n.right,c),l=dO(n.bottom,l),u=fO(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Hk(e){let{width:t,height:n}=wk(e);return{width:t,height:n}}function Uk(e,t,n){let r=ak(t),i=nk(t),a=n===`fixed`,o=Ak(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=hO(0);if((r||!a)&&((ek(t)!==`body`||sk(i))&&(s=yk(t)),r)){let e=Ak(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=jk(i));let l=i&&!r&&!a?Mk(i,s):hO(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Wk(e){return vk(e).position===`static`}function Gk(e,t){if(!ak(e)||vk(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return nk(e)===n&&(n=n.ownerDocument.body),n}function Kk(e,t){let n=tk(e);if(lk(e))return n;if(!ak(e)){let t=bk(e);for(;t&&!_k(t);){if(ik(t)&&!Wk(t))return t;t=bk(t)}return n}let r=Gk(e,t);for(;r&&ck(r)&&Wk(r);)r=Gk(r,t);return r&&_k(r)&&Wk(r)&&!mk(r)?n:r||hk(e)||n}var qk=async function(e){let t=this.getOffsetParent||Kk,n=this.getDimensions,r=await n(e.floating);return{reference:Uk(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Jk(e){return vk(e).direction===`rtl`}var Yk={convertOffsetParentRelativeRectToViewportRelativeRect:Nk,getDocumentElement:nk,getClippingRect:Vk,getOffsetParent:Kk,getElementRects:qk,getClientRects:Pk,getDimensions:Hk,getScale:Ek,isElement:ik,isRTL:Jk};function Xk(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Zk(e,t,n){let r=null,i,a=nk(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=mO(d),h=mO(a.clientWidth-(u+f)),g=mO(a.clientHeight-(d+p)),_=mO(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:fO(0,dO(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!Xk(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=tk(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Qk(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=Tk(e),u=i||a?[...l?Sk(l):[],...t?Sk(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Zk(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?Ak(e):null;c&&g();function g(){let t=Ak(e);h&&!Xk(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var $k=YO,eA=XO,tA=UO,nA=QO,rA=KO,iA=HO,aA=ZO,oA=(e,t,n)=>{let r=new Map,i=n??{},a={...Yk,...i.platform,_c:r};return VO(e,t,{...i,platform:a})},sA=typeof document<`u`?p.useLayoutEffect:function(){};function cA(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!cA(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!cA(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function lA(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function uA(e,t){let n=lA(e);return Math.round(t*n)/n}function dA(e){let t=p.useRef(e);return sA(()=>{t.current=e}),t}function fA(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=p.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=p.useState(r);cA(f,r)||m(r);let[h,g]=p.useState(null),[_,v]=p.useState(null),y=p.useCallback(e=>{e!==C.current&&(C.current=e,g(e))},[]),b=p.useCallback(e=>{e!==w.current&&(w.current=e,v(e))},[]),x=a||h,S=o||_,C=p.useRef(null),w=p.useRef(null),T=p.useRef(u),E=c!=null,D=dA(c),O=dA(i),k=dA(l),A=p.useCallback(()=>{if(!C.current||!w.current)return;let e={placement:t,strategy:n,middleware:f};O.current&&(e.platform=O.current),oA(C.current,w.current,e).then(e=>{let t={...e,isPositioned:k.current!==!1};j.current&&!cA(T.current,t)&&(T.current=t,Fy.flushSync(()=>{d(t)}))})},[f,t,n,O,k]);sA(()=>{l===!1&&T.current.isPositioned&&(T.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let j=p.useRef(!1);sA(()=>(j.current=!0,()=>{j.current=!1}),[]),sA(()=>{if(x&&(C.current=x),S&&(w.current=S),x&&S){if(D.current)return D.current(x,S,A);A()}},[x,S,A,D,E]);let M=p.useMemo(()=>({reference:C,floating:w,setReference:y,setFloating:b}),[y,b]),N=p.useMemo(()=>({reference:x,floating:S}),[x,S]),P=p.useMemo(()=>{let e={position:n,left:0,top:0};if(!N.floating)return e;let t=uA(N.floating,u.x),r=uA(N.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...lA(N.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,N.floating,u.x,u.y]);return p.useMemo(()=>({...u,update:A,refs:M,elements:N,floatingStyles:P}),[u,A,M,N,P])}var pA=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:iA({element:r.current,padding:i}).fn(n):r?iA({element:r,padding:i}).fn(n):{}}}},mA=(e,t)=>{let n=$k(e);return{name:n.name,fn:n.fn,options:[e,t]}},hA=(e,t)=>{let n=eA(e);return{name:n.name,fn:n.fn,options:[e,t]}},gA=(e,t)=>({fn:aA(e).fn,options:[e,t]}),_A=(e,t)=>{let n=tA(e);return{name:n.name,fn:n.fn,options:[e,t]}},vA=(e,t)=>{let n=nA(e);return{name:n.name,fn:n.fn,options:[e,t]}},yA=(e,t)=>{let n=rA(e);return{name:n.name,fn:n.fn,options:[e,t]}},bA=(e,t)=>{let n=pA(e);return{name:n.name,fn:n.fn,options:[e,t]}},xA=Object.defineProperty,SA=(e,t)=>xA(e,`name`,{value:t,configurable:!0}),CA={Partial:`partial`,Always:`always`},wA={Optimized:`optimized`,Always:`always`},TA=`Popper`,[EA,DA]=Pv(TA),[OA,kA]=EA(TA),AA=SA(e=>{let{__scopePopper:t,children:n}=e,[r,i]=p.useState(null),[a,o]=p.useState(void 0);return(0,m.jsx)(OA,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),jA=`PopperAnchor`,MA=p.forwardRef(SA(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=kA(jA,n),o=p.useRef(null),s=a.onAnchorChange,c=zv(t,p.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=p.useRef(null);p.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&RA(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,m.jsx)(Ry.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),NA=`PopperContent`,[PA,Cne]=EA(NA),FA=p.forwardRef(SA(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=CA.Partial,hideWhenDetached:f=!1,updatePositionStrategy:h=wA.Optimized,onPlaced:g,..._}=e,v=kA(NA,n),[y,b]=p.useState(null),x=zv(t,b),[S,C]=p.useState(null),w=oT(S),T=w?.width??0,E=w?.height??0,D=r+(a===`center`?``:`-`+a),O=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},k=Array.isArray(l)?l:[l],A=k.length>0,j={padding:O,boundary:k.filter(IA),altBoundary:A},{refs:M,floatingStyles:N,placement:P,isPositioned:F,middlewareData:I}=fA({strategy:`fixed`,placement:D,whileElementsMounted:SA((...e)=>Qk(...e,{animationFrame:h===wA.Always}),`whileElementsMounted`),elements:{reference:v.anchor},middleware:[mA({mainAxis:i+E,alignmentAxis:o}),c&&hA({mainAxis:!0,crossAxis:!1,limiter:d===CA.Partial?gA():void 0,...j}),c&&_A({...j}),vA({...j,apply:SA(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),S&&bA({element:S,padding:s}),LA({arrowWidth:T,arrowHeight:E}),f&&yA({strategy:`referenceHidden`,...j,boundary:A?j.boundary:void 0})]}),L=v.setPlacementState;xy(()=>(L(P),()=>{L(void 0)}),[P,L]);let[R,ee]=RA(P),te=fE(g);xy(()=>{F&&te?.()},[F,te]);let ne=I.arrow?.x,re=I.arrow?.y,ie=I.arrow?.centerOffset!==0,[ae,oe]=p.useState();return xy(()=>{y&&oe(window.getComputedStyle(y).zIndex)},[y]),(0,m.jsx)(`div`,{ref:M.setFloating,"data-radix-popper-content-wrapper":``,style:{...N,transform:F?N.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:ae,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(` `),...I.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,m.jsx)(PA,{scope:n,placedSide:R,placedAlign:ee,onArrowChange:C,arrowX:ne,arrowY:re,shouldHideArrow:ie,children:(0,m.jsx)(Ry.div,{"data-side":R,"data-align":ee,..._,ref:x,style:{..._.style,animation:F?_.style?.animation:`none`}})})})},`PopperContent`));function IA(e){return e!==null}SA(IA,`isNotNull`);var LA=SA(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=RA(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function RA(e){let[t,n=`center`]=e.split(`-`);return[t,n]}SA(RA,`getSideAndAlignFromPlacement`);var zA=Object.defineProperty,BA=(e,t)=>zA(e,`name`,{value:t,configurable:!0}),VA=!1;function HA(){let[e,t]=p.useState(VA);return p.useEffect(()=>{VA||(VA=!0,t(!0))},[]),e}BA(HA,`useIsHydrated`);var UA=p.useSyncExternalStore;function WA(){return()=>{}}BA(WA,`subscribe`);function GA(){return UA(WA,()=>!0,()=>!1)}BA(GA,`useIsHydratedModern`);var KA=typeof UA==`function`?GA:HA,qA=Object.defineProperty,JA=(e,t)=>qA(e,`name`,{value:t,configurable:!0}),YA=`rovingFocusGroup.onEntryFocus`,XA={bubbles:!1,cancelable:!0},ZA=`RovingFocusGroup`,[QA,$A,ej]=ry(ZA),[tj,nj]=Pv(ZA,[ej]),rj={Vertical:`vertical`,Horizontal:`horizontal`},ij={LTR:`ltr`,RTL:`rtl`},[aj,oj]=tj(ZA),sj=p.forwardRef(JA(function(e,t){return(0,m.jsx)(QA.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(QA.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,m.jsx)(cj,{...e,ref:t})})})},`RovingFocusGroup`)),cj=p.forwardRef(JA(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=p.useRef(null),h=zv(t,f),g=vb(a),[_,v]=Ay({prop:o,defaultProp:s??null,onChange:c,caller:ZA}),[y,b]=p.useState(!1),x=fE(l),S=$A(n),C=p.useRef(!1),[w,T]=p.useState(0);return p.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(YA,x),()=>e.removeEventListener(YA,x)},[x]),(0,m.jsx)(aj,{scope:n,orientation:r,dir:g,loop:i,currentTabStopId:_,onItemFocus:p.useCallback(e=>v(e),[v]),onItemShiftTab:p.useCallback(()=>b(!0),[]),onFocusableItemAdd:p.useCallback(()=>T(e=>e+1),[]),onFocusableItemRemove:p.useCallback(()=>T(e=>e-1),[]),children:(0,m.jsx)(Ry.div,{tabIndex:y||w===0?-1:0,"data-orientation":r,...d,ref:h,style:{outline:`none`,...e.style},onMouseDown:q(e.onMouseDown,()=>{C.current=!0}),onFocus:q(e.onFocus,e=>{let t=!C.current;if(e.target===e.currentTarget&&t&&!y){let t=new CustomEvent(YA,XA);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=S().filter(e=>e.focusable);mj([e.find(e=>e.active),e.find(e=>e.id===_),...e].filter(Boolean).map(e=>e.ref.current),u)}}C.current=!1}),onBlur:q(e.onBlur,()=>b(!1))})})},`RovingFocusGroupImpl`)),lj=`RovingFocusGroupItem`,uj=p.forwardRef(JA(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=$y(),l=a||c,u=oj(lj,n),d=u.currentTabStopId===l,f=$A(n),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:_}=u,v=KA();return xy(()=>{if(v&&r)return h(),()=>g()},[v,r,h,g]),p.useEffect(()=>{if(!v&&r)return h(),()=>g()},[v,r,h,g]),(0,m.jsx)(QA.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,m.jsx)(Ry.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:q(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:q(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:q(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=pj(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?hj(n,r+1):n.slice(r+1)}setTimeout(()=>mj(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:_!=null}):o})})},`RovingFocusGroupItem`)),dj={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function fj(e,t){return t===ij.RTL?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}JA(fj,`getDirectionAwareKey`);function pj(e,t,n){let r=fj(e.key,n);if(!(t===rj.Vertical&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===rj.Horizontal&&[`ArrowUp`,`ArrowDown`].includes(r)))return dj[r]}JA(pj,`getFocusIntent`);function mj(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}JA(mj,`focusFirst`);function hj(e,t){return e.map((n,r)=>e[(t+r)%e.length])}JA(hj,`wrapArray`);var gj=Object.defineProperty,_j=(e,t)=>gj(e,`name`,{value:t,configurable:!0}),vj=[`Enter`,` `],yj=[`ArrowDown`,`PageUp`,`Home`],bj=[`ArrowUp`,`PageDown`,`End`],xj=[...yj,...bj];[...vj],[...vj];var Sj=`Menu`,[Cj,wj,Tj]=ry(Sj),[Ej,Dj]=Pv(Sj,[Tj,DA,nj]),Oj=DA(),kj=nj(),[Aj,jj]=Ej(Sj),[Mj,Nj]=Ej(Sj),Pj=_j(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=Oj(t),[c,l]=p.useState(null),u=p.useRef(!1),d=fE(a),f=vb(i);return p.useEffect(()=>{let e=_j(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=_j(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),p.useEffect(()=>{if(!n)return;let e=_j(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,m.jsx)(AA,{...s,children:(0,m.jsx)(Aj,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,m.jsx)(Mj,{scope:t,onClose:p.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),Fj=p.forwardRef(_j(function(e,t){let{__scopeMenu:n,...r}=e,i=Oj(n);return(0,m.jsx)(MA,{...i,...r,ref:t})},`MenuAnchor`)),Ij=`MenuPortal`,[Lj,Rj]=Ej(Ij,{forceMount:void 0}),zj=_j(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=jj(Ij,t);return(0,m.jsx)(Lj,{scope:t,forceMount:n,children:(0,m.jsx)(Uy,{present:n||a.open,children:(0,m.jsx)(UE,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Bj=`MenuContent`,[Vj,Hj]=Ej(Bj),Uj=p.forwardRef(_j(function(e,t){let n=Rj(Bj,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=jj(Bj,e.__scopeMenu),o=Nj(Bj,e.__scopeMenu);return(0,m.jsx)(Cj.Provider,{scope:e.__scopeMenu,children:(0,m.jsx)(Uy,{present:r||a.open,children:(0,m.jsx)(Cj.Slot,{scope:e.__scopeMenu,children:o.modal?(0,m.jsx)(Wj,{...i,ref:t}):(0,m.jsx)(Gj,{...i,ref:t})})})})},`MenuContent`)),Wj=p.forwardRef(_j(function(e,t){let n=jj(Bj,e.__scopeMenu),r=p.useRef(null),i=zv(t,r);return p.useEffect(()=>{let e=r.current;if(e)return OD(e)},[]),(0,m.jsx)(qj,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:q(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),Gj=p.forwardRef(_j(function(e,t){let n=jj(Bj,e.__scopeMenu);return(0,m.jsx)(qj,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),Kj=Vv(`MenuContent.ScrollLock`),qj=p.forwardRef(_j(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,disableOutsideScroll:g,..._}=e,v=jj(Bj,n),y=Nj(Bj,n),b=Oj(n),x=kj(n),S=wj(n),[C,w]=p.useState(null),T=p.useRef(null),[E,D]=p.useState(null);jE(E);let{nodes:O,registry:k}=AE(),A=!!(i||g),j=zv(t,T,v.onContentChange,D),M=p.useRef(0),N=p.useRef(``),P=p.useRef(0),F=p.useRef(null),I=p.useRef(`right`),L=p.useRef(0),R=p.useMemo(()=>g?[T,...O.map(e=>({current:e}))]:[],[T,O,g]),ee=g?bD:p.Fragment,te=g?{as:Kj,allowPinchZoom:!0,shards:R}:void 0,ne=_j(e=>{let t=N.current+e,n=S().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=iM(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;_j((function e(t){N.current=t,window.clearTimeout(M.current),t!==``&&(M.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);p.useEffect(()=>()=>window.clearTimeout(M.current),[]),qE();let re=p.useCallback(e=>I.current===F.current?.side&&oM(e,F.current?.area),[]);return(0,m.jsx)(Vj,{scope:n,searchRef:N,onItemEnter:p.useCallback(e=>{re(e)&&e.preventDefault()},[re]),onItemLeave:p.useCallback(e=>{re(e)||(T.current?.focus(),w(null))},[re]),onTriggerLeave:p.useCallback(e=>{re(e)&&e.preventDefault()},[re]),pointerGraceTimerRef:P,onPointerGraceIntentChange:p.useCallback(e=>{F.current=e},[]),children:(0,m.jsx)(kE,{registry:A?k:null,children:(0,m.jsx)(ee,{...te,children:(0,m.jsx)(DE,{asChild:!0,trapped:i,branches:O,onMountAutoFocus:q(a,e=>{e.preventDefault(),T.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,m.jsx)(_E,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:h,children:(0,m.jsx)(sj,{asChild:!0,...x,dir:y.dir,orientation:`vertical`,loop:r,currentTabStopId:C,onCurrentTabStopIdChange:w,onEntryFocus:q(c,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,m.jsx)(FA,{role:`menu`,"aria-orientation":`vertical`,"data-state":$j(v.open),"data-radix-menu-content":``,dir:y.dir,...b,..._,ref:j,style:{outline:`none`,..._.style},onKeyDown:q(_.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&ne(e.key));let i=T.current;if(e.target!==i||!xj.includes(e.key))return;e.preventDefault();let a=S().filter(e=>!e.disabled).map(e=>e.ref.current);bj.includes(e.key)&&a.reverse(),nM(a)}),onBlur:q(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(M.current),N.current=``)}),onPointerMove:q(e.onPointerMove,sM(e=>{let t=e.target,n=L.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>L.current?`right`:`left`;I.current=t,L.current=e.clientX}}))})})})})})})})},`MenuContentImpl`)),Jj=`MenuItem`,Yj=`menu.itemSelect`,Xj=p.forwardRef(_j(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=p.useRef(null),o=Nj(Jj,e.__scopeMenu),s=Hj(Jj,e.__scopeMenu),c=zv(t,a),l=p.useRef(!1),u=_j(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Yj,{bubbles:!0,cancelable:!0});e.addEventListener(Yj,e=>r?.(e),{once:!0}),zy(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,m.jsx)(Zj,{...i,ref:c,disabled:n,onClick:q(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:q(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:q(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&vj.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),Zj=p.forwardRef(_j(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Hj(Jj,n),s=kj(n),c=p.useRef(null),l=zv(t,c),[u,d]=p.useState(!1),[f,h]=p.useState(``);return p.useEffect(()=>{let e=c.current;e&&h((e.textContent??``).trim())},[a.children]),(0,m.jsx)(Cj.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,m.jsx)(uj,{asChild:!0,...s,focusable:!r,children:(0,m.jsx)(Ry.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:q(e.onPointerMove,sM(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:q(e.onPointerLeave,sM(e=>o.onItemLeave(e))),onFocus:q(e.onFocus,()=>d(!0)),onBlur:q(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),[wne,Tne]=Ej(`MenuRadioGroup`,{value:void 0,onValueChange:_j(()=>{},`onValueChange`)}),[Ene,Dne]=Ej(`MenuItemIndicator`,{checked:!1}),Qj=p.forwardRef(_j(function(e,t){let{__scopeMenu:n,...r}=e;return(0,m.jsx)(Ry.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),[One,kne]=Ej(`MenuSub`);function $j(e){return e?`open`:`closed`}_j($j,`getOpenState`);function eM(e){return e===`indeterminate`}_j(eM,`isIndeterminate`);function tM(e){return eM(e)?`indeterminate`:e?`checked`:`unchecked`}_j(tM,`getCheckedState`);function nM(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}_j(nM,`focusFirst`);function rM(e,t){return e.map((n,r)=>e[(t+r)%e.length])}_j(rM,`wrapArray`);function iM(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=rM(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}_j(iM,`getNextMatch`);function aM(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}_j(aM,`isPointInPolygon`);function oM(e,t){return t?aM({x:e.clientX,y:e.clientY},t):!1}_j(oM,`isPointerInGraceArea`);function sM(e){return t=>t.pointerType===`mouse`?e(t):void 0}_j(sM,`whenMouse`);var cM=Object.defineProperty,lM=(e,t)=>cM(e,`name`,{value:t,configurable:!0}),uM=`DropdownMenu`,[dM,Ane]=Pv(uM,[Dj]),fM=Dj(),[pM,mM]=dM(uM),hM=lM(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=fM(t),l=p.useRef(null),[u,d]=Ay({prop:i,defaultProp:a??!1,onChange:o,caller:uM});return(0,m.jsx)(pM,{scope:t,triggerId:$y(),triggerRef:l,contentId:$y(),open:u,onOpenChange:d,onOpenToggle:p.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,m.jsx)(Pj,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),gM=`DropdownMenuTrigger`,_M=p.forwardRef(lM(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=mM(gM,n),o=fM(n),s=zv(t,a.triggerRef);return(0,m.jsx)(Fj,{asChild:!0,...o,children:(0,m.jsx)(Ry.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:q(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:q(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),vM=lM(e=>{let{__scopeDropdownMenu:t,...n}=e,r=fM(t);return(0,m.jsx)(zj,{...r,...n})},`DropdownMenuPortal`),yM=`DropdownMenuContent`,bM=p.forwardRef(lM(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=mM(yM,n),a=fM(n),o=p.useRef(!1);return(0,m.jsx)(Uj,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:q(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:q(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),xM=p.forwardRef(lM(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=fM(n);return(0,m.jsx)(Xj,{...i,...r,ref:t})},`DropdownMenuItem`)),SM=p.forwardRef(lM(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=fM(n);return(0,m.jsx)(Qj,{...i,...r,ref:t})},`DropdownMenuSeparator`)),CM={trigger:`_trigger_1xdu0_1`,item:`_item_1xdu0_7`,triggerIcon:`_triggerIcon_1xdu0_8`,label:`_label_1xdu0_9`,labelMeasure:`_labelMeasure_1xdu0_10`,labelText:`_labelText_1xdu0_11`,chevron:`_chevron_1xdu0_12`,menu:`_menu_1xdu0_16`,"menu-exit":`_menu-exit_1xdu0_1`,highlight:`_highlight_1xdu0_26`,icon:`_icon_1xdu0_29`,separator:`_separator_1xdu0_30`,destructive:`_destructive_1xdu0_31`};function wM({text:e}){let t=Zf(),n=(0,p.useRef)(null),r=(0,p.useRef)(null),[i,a]=(0,p.useState)({width:`auto`,animate:!1});return(0,p.useLayoutEffect)(()=>{let e=n.current;if(!e)return;let t=new ResizeObserver(([t])=>{let n=e.textContent,i=r.current!==null&&r.current!==n;r.current=n,a({width:Math.ceil(t.borderBoxSize?.[0]?.inlineSize??e.offsetWidth),animate:i})});return t.observe(e),()=>t.disconnect()},[]),(0,m.jsxs)(H.span,{className:CM.label,initial:!1,animate:{width:i.width},transition:i.animate&&!t?Y.spring.morph:{duration:0},children:[(0,m.jsx)(`span`,{ref:n,className:CM.labelMeasure,"aria-hidden":`true`,children:e}),(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(H.span,{className:CM.labelText,initial:!t&&{opacity:0,y:`0.3em`,filter:`blur(${Y.blur.soft}px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},exit:t?{opacity:0,transition:{duration:0}}:{opacity:0,y:`-0.3em`,filter:`blur(${Y.blur.subtle}px)`,transition:{duration:Y.duration.fast,ease:[...Y.ease.standard]}},transition:{duration:Y.duration.standard,ease:[...Y.ease.enter]},children:e},e)})]})}function TM({label:e,items:t,icon:n}){let r=Zf(),[i,a]=(0,p.useState)(null),o=(0,p.useRef)(!1),s=(0,p.useRef)(0);(0,p.useEffect)(()=>()=>window.clearTimeout(s.current),[]);function c(e){let t=e.target instanceof HTMLElement?e.target.closest(`[role="menuitem"]`):null;if(window.clearTimeout(s.current),!t){s.current=window.setTimeout(()=>a(null),o.current?70:0);return}let n={top:t.offsetTop,height:t.offsetHeight,danger:t.dataset.tone===`danger`},r=o.current;a(e=>({...n,glide:r&&e!==null}))}return(0,m.jsxs)(hM,{onOpenChange:e=>{e&&(window.clearTimeout(s.current),a(null))},children:[(0,m.jsxs)(_M,{className:CM.trigger,type:`button`,children:[n&&(0,m.jsx)(`span`,{className:CM.triggerIcon,"aria-hidden":`true`,children:n}),(0,m.jsx)(wM,{text:e}),(0,m.jsx)(Mx,{className:CM.chevron,size:15,strokeWidth:1.8,"aria-hidden":`true`})]}),(0,m.jsx)(vM,{children:(0,m.jsxs)(bM,{className:CM.menu,sideOffset:6,align:`end`,collisionPadding:12,loop:!0,onFocus:c,onPointerMoveCapture:()=>{o.current=!0},onKeyDownCapture:()=>{o.current=!1},children:[(0,m.jsx)(H.span,{className:CM.highlight,"data-tone":i?.danger?`danger`:void 0,"aria-hidden":`true`,initial:!1,animate:i?{y:i.top,height:i.height,opacity:1}:{opacity:0},transition:{default:i?.glide&&!r?Y.spring.snappy:{duration:0},opacity:{duration:r?0:.08}}}),t.map((e,t)=>(0,m.jsxs)(p.Fragment,{children:[e.separatorBefore&&(0,m.jsx)(SM,{className:CM.separator}),(0,m.jsxs)(xM,{className:[CM.item,e.destructive?CM.destructive:``].filter(Boolean).join(` `),"data-tone":e.destructive?`danger`:void 0,style:{"--i":t},disabled:e.disabled,onSelect:e.onSelect,children:[e.icon&&(0,m.jsx)(`span`,{className:CM.icon,"aria-hidden":`true`,children:e.icon}),e.label]})]},e.label))]})})]})}var EM=Object.defineProperty,DM=(e,t)=>EM(e,`name`,{value:t,configurable:!0});function OM(e,[t,n]){return Math.min(n,Math.max(t,e))}DM(OM,`clamp`);var kM=Object.defineProperty,AM=(e,t)=>kM(e,`name`,{value:t,configurable:!0});function jM(e){let t=p.useRef({value:e,previous:e});return p.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}AM(jM,`usePrevious`);var MM=Object.defineProperty,NM=(e,t)=>MM(e,`name`,{value:t,configurable:!0}),PM=Object.freeze({position:`absolute`,border:0,width:1,height:1,padding:0,margin:-1,overflow:`hidden`,clip:`rect(0, 0, 0, 0)`,whiteSpace:`nowrap`,wordWrap:`normal`}),FM=p.forwardRef(NM(function(e,t){return(0,m.jsx)(Ry.span,{...e,ref:t,style:{...PM,...e.style}})},`VisuallyHidden`)),IM=Object.defineProperty,LM=(e,t)=>IM(e,`name`,{value:t,configurable:!0}),RM={ItemAligned:`item-aligned`,Popper:`popper`},zM={LTR:`ltr`,RTL:`rtl`},BM=[` `,`Enter`,`ArrowUp`,`ArrowDown`],VM=[` `,`Enter`],HM=`Select`,[UM,WM,GM]=ry(HM),[KM,jne]=Pv(HM,[GM,DA]),qM=DA(),[JM,YM]=KM(HM),[XM,ZM]=KM(HM);function QM(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:h,form:g,internal_do_not_use_render:_}=e,v=qM(t),[y,b]=p.useState(null),[x,S]=p.useState(null),[C,w]=p.useState(!1),T=vb(l),[E,D]=Ay({prop:r,defaultProp:i??!1,onChange:a,caller:HM}),[O,k]=Ay({prop:o,defaultProp:s,onChange:c,caller:HM}),A=p.useRef(null),j=p.useRef(O);p.useEffect(()=>{let e=g?y?.ownerDocument.getElementById(g):y?.form;if(e instanceof HTMLFormElement){let t=LM(()=>k(j.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[g,y,k]);let M=!y||!!g||!!y.closest(`form`),[N,P]=p.useState(new Set),F=$y(),I=Array.from(N).map(e=>e.props.value).join(`;`),L=p.useCallback(e=>{P(t=>new Set(t).add(e))},[]),R=p.useCallback(e=>{P(t=>{let n=new Set(t);return n.delete(e),n})},[]),ee={required:h,trigger:y,onTriggerChange:b,valueNode:x,onValueNodeChange:S,valueNodeHasChildren:C,onValueNodeHasChildrenChange:w,contentId:F,value:O,onValueChange:k,open:E,onOpenChange:D,dir:T,triggerPointerDownPosRef:A,disabled:f,name:u,autoComplete:d,form:g,nativeOptions:N,nativeSelectKey:I,isFormControl:M};return(0,m.jsx)(AA,{...v,children:(0,m.jsx)(JM,{scope:t,...ee,children:(0,m.jsx)(UM.Provider,{scope:t,children:(0,m.jsx)(XM,{scope:t,onNativeOptionAdd:L,onNativeOptionRemove:R,children:LN(_)?_(ee):n})})})})}LM(QM,`SelectProvider`);var $M=LM(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,m.jsx)(QM,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,m.jsxs)(m.Fragment,{children:[n,e?(0,m.jsx)(IN,{__scopeSelect:t}):null]})})},`Select`),eN=`SelectTrigger`,tN=p.forwardRef(LM(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=qM(n),o=YM(eN,n),s=o.disabled||r,c=zv(t,o.onTriggerChange),l=WM(n),u=p.useRef(`touch`),[d,f,h]=zN(e=>{let t=l().filter(e=>!e.disabled),n=BN(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),g=LM(e=>{s||(o.onOpenChange(!0),h()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,m.jsx)(MA,{asChild:!0,...a,children:(0,m.jsx)(Ry.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":RN(o.value)?``:void 0,...i,ref:c,onClick:q(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&g(e)}),onPointerDown:q(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(g(e),e.preventDefault())}),onKeyDown:q(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&BM.includes(e.key)&&(g(),e.preventDefault())})})})},`SelectTrigger`)),nN=`SelectValue`,rN=p.forwardRef(LM(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=YM(nN,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=zv(t,c.onValueNodeChange);xy(()=>{l(u)},[l,u]);let f=RN(c.value);return(0,m.jsx)(Ry.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,m.jsx)(p.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),iN=p.forwardRef(LM(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,m.jsx)(Ry.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[aN,oN]=KM(`SelectPortal`,{forceMount:void 0}),sN=LM(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,m.jsx)(aN,{scope:e.__scopeSelect,forceMount:n,children:(0,m.jsx)(UE,{asChild:!0,...r})})},`SelectPortal`),cN=`SelectContent`,lN=p.forwardRef(LM(function(e,t){let n=oN(cN,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=YM(cN,e.__scopeSelect),[o,s]=p.useState();return xy(()=>{s(new DocumentFragment)},[]),(0,m.jsx)(Uy,{present:r||a.open,children:({present:e})=>e?(0,m.jsx)(hN,{...i,ref:t}):(0,m.jsx)(uN,{...i,fragment:o})})},`SelectContent`)),uN=p.forwardRef(LM(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?Fy.createPortal((0,m.jsx)(fN,{scope:n,children:(0,m.jsx)(UM.Slot,{scope:n,children:(0,m.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),dN=10,[fN,pN]=KM(cN),mN=Vv(`SelectContent.RemoveScroll`),hN=p.forwardRef(LM(function(e,t){let{__scopeSelect:n}=e,{position:r=RM.ItemAligned,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:g,hideWhenDetached:_,avoidCollisions:v,...y}=e,b=YM(cN,n),[x,S]=p.useState(null),[C,w]=p.useState(null),T=zv(t,S),[E,D]=p.useState(null),[O,k]=p.useState(null),A=WM(n),[j,M]=p.useState(!1),N=p.useRef(!1);p.useEffect(()=>{if(x)return OD(x)},[x]),qE();let P=p.useCallback(e=>{let[t,...n]=A().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&C&&(C.scrollTop=0),n===r&&C&&(C.scrollTop=C.scrollHeight),n?.focus(),document.activeElement!==i))return},[A,C]),F=p.useCallback(()=>P([E,x]),[P,E,x]);p.useEffect(()=>{j&&F()},[j,F]);let{onOpenChange:I,triggerPointerDownPosRef:L}=b;p.useEffect(()=>{if(x){let e={x:0,y:0},t=LM(t=>{e={x:Math.abs(Math.round(t.pageX)-(L.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(L.current?.y??0))}},`handlePointerMove`),n=LM(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(x)||I(!1),document.removeEventListener(`pointermove`,t),L.current=null},`handlePointerUp`);return L.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[x,I,L]),p.useEffect(()=>{let e=LM(()=>I(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[I]);let[R,ee]=zN(e=>{let t=A().filter(e=>!e.disabled),n=BN(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),te=p.useCallback((e,t,n)=>{let r=!N.current&&!n;(b.value!==void 0&&b.value===t||r)&&(D(e),r&&(N.current=!0))},[b.value]),ne=p.useCallback(()=>x?.focus(),[x]),re=p.useCallback((e,t,n)=>{let r=!N.current&&!n;(b.value!==void 0&&b.value===t||r)&&k(e)},[b.value]),ie=r===RM.Popper?_N:gN,ae=ie===_N?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:h,sticky:g,hideWhenDetached:_,avoidCollisions:v}:{};return(0,m.jsx)(fN,{scope:n,content:x,viewport:C,onViewportChange:w,itemRefCallback:te,selectedItem:E,onItemLeave:ne,itemTextRefCallback:re,focusSelectedItem:F,selectedItemText:O,position:r,isPositioned:j,searchRef:R,children:(0,m.jsx)(bD,{as:mN,allowPinchZoom:!0,children:(0,m.jsx)(DE,{asChild:!0,trapped:b.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:q(i,e=>{b.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,m.jsx)(_E,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:(0,m.jsx)(ie,{role:`listbox`,id:b.contentId,"data-state":b.open?`open`:`closed`,dir:b.dir,onContextMenu:e=>e.preventDefault(),...y,...ae,onPlaced:()=>M(!0),ref:T,style:{display:`flex`,flexDirection:`column`,outline:`none`,...y.style},onKeyDown:q(y.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&ee(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=A().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>P(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),gN=p.forwardRef(LM(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=YM(cN,n),o=pN(cN,n),[s,c]=p.useState(null),[l,u]=p.useState(null),d=zv(t,u),f=WM(n),h=p.useRef(!1),g=p.useRef(!0),{viewport:_,selectedItem:v,selectedItemText:y,focusSelectedItem:b}=o,x=p.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&_&&v&&y){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=y.getBoundingClientRect();if(a.dir!==zM.RTL){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-dN,d=OM(a,[dN,Math.max(dN,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-dN,d=OM(a,[dN,Math.max(dN,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-dN*2,u=_.scrollHeight,d=window.getComputedStyle(l),p=parseInt(d.borderTopWidth,10),m=parseInt(d.paddingTop,10),g=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=p+m+u+b+g,S=Math.min(v.offsetHeight*5,x),C=window.getComputedStyle(_),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-dN,D=c-E,O=v.offsetHeight/2,k=v.offsetTop+O,A=p+m+k,j=x-A;if(A<=E){let e=o.length>0&&v===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-_.offsetTop-_.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+g);s.style.height=n+`px`}else{let e=o.length>0&&v===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,p+_.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,_.scrollTop=A-E+_.offsetTop}s.style.margin=`${dN}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>h.current=!0)}},[f,a.trigger,a.valueNode,s,l,_,v,y,a.dir,r]);xy(()=>x(),[x]);let[S,C]=p.useState();xy(()=>{l&&C(window.getComputedStyle(l).zIndex)},[l]);let w=p.useCallback(e=>{e&&g.current===!0&&(x(),b?.(),g.current=!1)},[x,b]);return(0,m.jsx)(vN,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:h,onScrollButtonChange:w,children:(0,m.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:S},children:(0,m.jsx)(Ry.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),_N=p.forwardRef(LM(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=dN,...a}=e,o=qM(n);return(0,m.jsx)(FA,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.style,"--radix-select-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-select-content-available-width":`var(--radix-popper-available-width)`,"--radix-select-content-available-height":`var(--radix-popper-available-height)`,"--radix-select-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-select-trigger-height":`var(--radix-popper-anchor-height)`}})},`SelectPopperPosition`)),[vN,yN]=KM(cN,{}),bN=`SelectViewport`,xN=p.forwardRef(LM(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=pN(bN,n),o=yN(bN,n),s=zv(t,a.onViewportChange),c=p.useRef(0);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`style`,{dangerouslySetInnerHTML:{__html:`[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}`},nonce:r}),(0,m.jsx)(UM.Slot,{scope:n,children:(0,m.jsx)(Ry.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:q(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-dN*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[Mne,Nne]=KM(`SelectGroup`),SN=`SelectItem`,[CN,wN]=KM(SN),TN=p.forwardRef(LM(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=YM(SN,n),c=pN(SN,n),l=s.value===r,[u,d]=p.useState(a??``),[f,h]=p.useState(!1),g=zv(t,fE(e=>c.itemRefCallback?.(e,r,i))),_=$y(),v=p.useRef(`touch`),y=LM(()=>{s.onValueChange(r),s.onOpenChange(!1)},`handleSelect`);return(0,m.jsx)(CN,{scope:n,value:r,disabled:i,textId:_,isSelected:l,onItemTextChange:p.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,m.jsx)(UM.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,m.jsx)(Ry.div,{role:`option`,"aria-labelledby":_,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:g,onFocus:q(o.onFocus,()=>h(!0)),onBlur:q(o.onBlur,()=>h(!1)),onClick:q(o.onClick,()=>{i||v.current!==`mouse`&&y()}),onPointerUp:q(o.onPointerUp,()=>{i||v.current===`mouse`&&y()}),onPointerDown:q(o.onPointerDown,e=>{v.current=e.pointerType}),onPointerMove:q(o.onPointerMove,e=>{v.current=e.pointerType,i?c.onItemLeave?.():v.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:q(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:q(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(VM.includes(e.key)&&y(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),EN=`SelectItemText`,DN=p.forwardRef(LM(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=YM(EN,n),s=pN(EN,n),c=wN(EN,n),l=ZM(EN,n),[u,d]=p.useState(null),f=fE(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),h=zv(t,d,c.onItemTextChange,f),g=u?.textContent,_=p.useMemo(()=>(0,m.jsx)(`option`,{value:c.value,disabled:c.disabled,children:g},c.value),[c.disabled,c.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=l;return xy(()=>(v(_),()=>y(_)),[v,y,_]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Ry.span,{id:c.textId,...a,ref:h}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!RN(o.value)?Fy.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),ON=`SelectItemIndicator`,kN=p.forwardRef(LM(function(e,t){let{__scopeSelect:n,...r}=e;return wN(ON,n).isSelected?(0,m.jsx)(Ry.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),AN=`SelectScrollUpButton`,jN=p.forwardRef(LM(function(e,t){let n=pN(AN,e.__scopeSelect),r=yN(AN,e.__scopeSelect),[i,a]=p.useState(!1),o=zv(t,r.onScrollButtonChange);return xy(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};LM(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,m.jsx)(PN,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),MN=`SelectScrollDownButton`,NN=p.forwardRef(LM(function(e,t){let n=pN(MN,e.__scopeSelect),r=yN(MN,e.__scopeSelect),[i,a]=p.useState(!1),o=zv(t,r.onScrollButtonChange);return xy(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};LM(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,m.jsx)(PN,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),PN=p.forwardRef(LM(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=pN(`SelectScrollButton`,n),o=p.useRef(null),s=WM(n),c=p.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return p.useEffect(()=>()=>c(),[c]),xy(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,m.jsx)(Ry.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:q(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:q(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:q(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),FN=`SelectBubbleInput`,IN=p.forwardRef(LM(function({__scopeSelect:e,...t},n){let r=YM(FN,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,h=p.useRef(null),g=zv(n,h),_=i??``,v=jM(_),y=Array.from(d).some(e=>(e.props.value??``)===``);return p.useEffect(()=>{let e=h.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(v!==_&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,_),e.dispatchEvent(t)}},[v,_]),(0,m.jsxs)(Ry.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...PM,...t.style},ref:g,defaultValue:_,children:[RN(i)&&!y?(0,m.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function LN(e){return typeof e==`function`}LM(LN,`isFunction`);function RN(e){return e===``||e===void 0}LM(RN,`shouldShowPlaceholder`);function zN(e){let t=fE(e),n=p.useRef(``),r=p.useRef(0),i=p.useCallback(e=>{let i=n.current+e;t(i),LM((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=p.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return p.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}LM(zN,`useTypeaheadSearch`);function BN(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=VN(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}LM(BN,`findNextItem`);function VN(e,t){return e.map((n,r)=>e[(t+r)%e.length])}LM(VN,`wrapArray`);var HN={field:`_field_1a9q6_1`,trigger:`_trigger_1a9q6_4`,valueText:`_valueText_1a9q6_9`,srOnly:`_srOnly_1a9q6_12`,chevron:`_chevron_1a9q6_13`,hint:`_hint_1a9q6_15`,content:`_content_1a9q6_18`,"select-in":`_select-in_1a9q6_1`,"select-out":`_select-out_1a9q6_1`,viewport:`_viewport_1a9q6_23`,item:`_item_1a9q6_24`,indicator:`_indicator_1a9q6_27`,"indicator-in":`_indicator-in_1a9q6_1`,scrollButton:`_scrollButton_1a9q6_28`,"select-fade":`_select-fade_1a9q6_1`,"select-fade-out":`_select-fade-out_1a9q6_1`},UN={enter:e=>({opacity:0,y:`${e*.35}em`,filter:`blur(${Y.blur.soft}px)`}),center:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:Y.duration.standard,ease:[...Y.ease.enter]}},exit:e=>({opacity:0,y:`${e*-.3}em`,filter:`blur(${Y.blur.subtle}px)`,transition:{duration:Y.duration.fast,ease:[...Y.ease.standard]}})},WN={enter:{opacity:0},center:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:Y.duration.instant}},exit:{opacity:0,transition:{duration:Y.duration.instant}}},GN=(0,p.forwardRef)(function({label:e,description:t,placeholder:n=`Select an option`,options:r,id:i,className:a,disabled:o,onValueChange:s,...c},l){let u=(0,p.useId)(),d=i??u,f=t?`${d}-description`:void 0,h=Zf(),[g,_]=(0,p.useState)(c.defaultValue??``),v=c.value??g,y=r.findIndex(e=>e.value===v),b=v?r[y]?.label??``:n,[x,S]=(0,p.useState)(y),[C,w]=(0,p.useState)(1);return x!==y&&(S(y),w(y>x?1:-1)),(0,m.jsxs)(`div`,{className:HN.field,children:[(0,m.jsx)(`label`,{htmlFor:d,children:e}),(0,m.jsxs)($M,{...c,disabled:o,onValueChange:e=>{_(e),s?.(e)},children:[(0,m.jsxs)(tN,{ref:l,id:d,"aria-describedby":f,className:[HN.trigger,a].filter(Boolean).join(` `),children:[(0,m.jsx)(`span`,{className:HN.srOnly,children:(0,m.jsx)(rN,{placeholder:n})}),(0,m.jsx)(`span`,{className:HN.valueText,"aria-hidden":`true`,children:(0,m.jsx)(V,{initial:!1,custom:C,children:(0,m.jsx)(H.span,{"data-placeholder":v?void 0:``,custom:C,variants:h?WN:UN,initial:`enter`,animate:`center`,exit:`exit`,children:b},v?`value-${v}`:`placeholder`)})}),(0,m.jsx)(iN,{className:HN.chevron,children:(0,m.jsx)(Mx,{size:16,strokeWidth:1.75,"aria-hidden":`true`})})]}),(0,m.jsx)(sN,{children:(0,m.jsxs)(lN,{className:HN.content,position:`popper`,sideOffset:4,collisionPadding:12,children:[(0,m.jsx)(jN,{className:HN.scrollButton,children:(0,m.jsx)(pte,{size:16,strokeWidth:1.75,"aria-hidden":`true`})}),(0,m.jsx)(xN,{className:HN.viewport,children:r.map(e=>(0,m.jsxs)(TN,{value:e.value,disabled:e.disabled,className:HN.item,children:[(0,m.jsx)(DN,{children:e.label}),(0,m.jsx)(kN,{className:HN.indicator,children:(0,m.jsx)(Ax,{size:16,strokeWidth:1.75,"aria-hidden":`true`})})]},e.value))}),(0,m.jsx)(NN,{className:HN.scrollButton,children:(0,m.jsx)(Mx,{size:16,strokeWidth:1.75,"aria-hidden":`true`})})]})})]}),t&&(0,m.jsx)(`span`,{id:f,className:HN.hint,children:t})]})}),KN={toast:`_toast_c20vg_1`,icon:`_icon_c20vg_16`,frame:`_frame_c20vg_28`,copy:`_copy_c20vg_34`,title:`_title_c20vg_43`,line:`_line_c20vg_52`,description:`_description_c20vg_59`,close:`_close_c20vg_66`},qN=()=>()=>{},JN={duration:Y.duration.fast,ease:[...Y.ease.standard]},YN={duration:Y.duration.standard,ease:[...Y.ease.enter]},XN={opacity:0,y:`0.3em`,filter:`blur(${Y.blur.soft}px)`},ZN={opacity:0,y:`-0.3em`,filter:`blur(${Y.blur.subtle}px)`,transition:JN},QN={opacity:1,y:`0em`,filter:`blur(0px)`},$N={opacity:0,transition:{duration:Y.duration.instant}},eP={distance:80,velocity:480};function tP(e){let t=Bu();return(0,m.jsx)(H.span,{...e,"aria-hidden":!t||e[`aria-hidden`]})}function nP({reduce:e,morphKey:t,children:n}){let r=(0,p.useRef)(null),i=(0,p.useRef)(null),a=Gf(`auto`),o=(0,p.useRef)(0);return(0,p.useLayoutEffect)(()=>{o.current=performance.now()},[t]),(0,p.useEffect)(()=>{let t=i.current;if(!t||typeof ResizeObserver>`u`)return;let n,s,c=()=>{a.jump(`auto`),r.current&&Object.assign(r.current.style,{overflow:``,height:`auto`})},l=new ResizeObserver(([i])=>{let l=i.borderBoxSize?.[0]?.blockSize??t.offsetHeight,u=a.get(),d=typeof u==`number`?u:n;if(n=l,s?.stop(),e||d===void 0||d===l||performance.now()-o.current>120)return c();r.current&&Object.assign(r.current.style,{overflow:`hidden`,height:`${d}px`}),s=bp(a,[d,l],{...Y.spring.smooth,onComplete:c})});return l.observe(t),()=>{l.disconnect(),s?.stop()}},[a,e]),(0,m.jsx)(H.div,{ref:r,className:KN.frame,style:{height:a},children:(0,m.jsx)(`div`,{ref:i,className:KN.copy,children:n})})}function rP({title:e,description:t,open:n=!0,onOpenChange:r,duration:i=4500}){let a=Zf(),o=(0,p.useSyncExternalStore)(qN,()=>!0,()=>!1),[s]=(0,p.useState)(o),[c,l]=(0,p.useState)(!1),[u,d]=(0,p.useState)(0),[f,h]=(0,p.useState)(n);n!==f&&(h(n),n&&(l(!1),d(0)));let g=n&&!c,_=(0,p.useRef)(null),v=Gf(0),y=(0,p.useRef)(0);function b(e){d(e),l(!0),r?.(!1)}(0,p.useEffect)(()=>{if(!g||!r||i<=0)return;let e=window.setTimeout(()=>{d(0),l(!0),r(!1)},i);return()=>window.clearTimeout(e)},[g,r,i]);function x(e,t){let n=Math.sign(t.offset.x||t.velocity.x);if(Math.abs(t.offset.x)<eP.distance&&Math.abs(t.velocity.x)<eP.velocity){bp(v,0,{...Y.spring.snappy,velocity:t.velocity.x});return}y.current=t.velocity.x,b(n*((_.current?.offsetWidth??320)+48))}let S=a?{hidden:{opacity:0},shown:{opacity:1,transition:{duration:Y.duration.instant}},exit:$N}:{hidden:{opacity:0,x:0,y:16,scale:.96},shown:{opacity:1,x:0,y:0,scale:1,transition:{...Y.spring.morph,opacity:YN}},exit:e=>e?{x:e,opacity:0,transition:{x:{type:`spring`,visualDuration:.3,bounce:0,velocity:y.current,restDelta:2,restSpeed:40},opacity:{duration:Y.duration.exit}}}:{opacity:0,y:8,scale:.97,transition:{duration:Y.duration.exit,ease:[...Y.ease.standard]}}},C={initial:a?{opacity:0}:XN,animate:QN,exit:a?$N:ZN,transition:a?{duration:Y.duration.instant}:YN};return(0,m.jsx)(V,{initial:s,custom:u,children:g&&(0,m.jsxs)(H.div,{ref:_,className:KN.toast,role:`status`,"aria-live":`polite`,"aria-atomic":`true`,custom:u,variants:S,initial:`hidden`,animate:`shown`,exit:`exit`,style:{x:v},drag:a&&o?!1:`x`,dragMomentum:!1,onDragEnd:x,children:[(0,m.jsx)(`span`,{className:KN.icon,"aria-hidden":`true`,children:(0,m.jsx)(`svg`,{width:16,height:16,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.25,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,m.jsx)(H.path,{d:`M4 12.5l5 5L20 6.5`,initial:!a&&{pathLength:0},animate:{pathLength:1},transition:{duration:Y.duration.standard,ease:[...Y.ease.enter],delay:.12}})})}),(0,m.jsxs)(nP,{reduce:a,morphKey:`${e}\n${t??``}`,children:[(0,m.jsx)(`strong`,{className:KN.title,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(tP,{className:KN.line,...C,children:e},e)})}),(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:t?(0,m.jsx)(tP,{className:KN.description,...C,children:t},t):null})]}),(0,m.jsx)(`button`,{className:KN.close,type:`button`,"aria-label":`Dismiss notification`,onClick:()=>b(0),children:(0,m.jsx)(vC,{width:16,height:16,strokeWidth:2,"aria-hidden":`true`})})]},`toast`)})}function iP({open:e,onOpenChange:t,title:n,description:r,children:i,footer:a,width:o=460}){return(0,m.jsx)(aO,{open:e,onOpenChange:t,children:(0,m.jsxs)(lO,{title:n,description:r,style:{width:`min(calc(100vw - 2rem), ${o}px)`},children:[i,a&&(0,m.jsx)(`div`,{className:Cv(`flex flex-wrap items-center justify-end gap-2`,i!==void 0&&`mt-6`),children:a})]})})}function aP({label:e,icon:t,items:n}){return(0,m.jsx)(TM,{label:e,icon:t,items:n.map(e=>({label:e.label,icon:e.icon,destructive:e.destructive,disabled:e.disabled,separatorBefore:e.separatorBefore,onSelect:e.onSelect}))})}var oP=`__astra_empty__`,sP=e=>e===``?oP:e,cP=e=>e===oP?``:e,lP=12;function uP({value:e,onChange:t,options:n,placeholder:r,className:i,disabled:a,label:o,ariaLabel:s}){let c=xv(),l=n.find(t=>t.value===e),u=IT(o,s??r??l?.label),d=Cv(`min-w-0`,u.hidden&&`astra-label-hidden`,i);return n.length>lP?(0,m.jsx)(`div`,{className:d,children:(0,m.jsx)(dE,{label:u.label,description:u.field?.description,placeholder:r??c(`common.search`),emptyMessage:c(`common.noResults`),value:e==null?``:sP(e),onValueChange:e=>t(cP(e)),options:n.map(e=>({value:sP(e.value),label:e.detail&&e.detail!==e.label?`${e.label} · ${e.detail}`:e.label,disabled:e.disabled,keywords:e.detail?[e.detail]:void 0}))})}):(0,m.jsx)(`div`,{className:d,children:(0,m.jsx)(GN,{label:u.label,description:u.field?.description,placeholder:r??c(`common.select`),disabled:a,value:e==null||e===``&&!l?``:sP(e),onValueChange:e=>t(cP(e)),options:n.map(e=>({value:sP(e.value),label:e.label,disabled:e.disabled}))})})}var dP=(0,p.createContext)(null);function fP({children:e}){let t=xv(),[n,r]=(0,p.useState)([]),[i,a]=(0,p.useState)(null),o=(0,p.useRef)(0),s=(0,p.useCallback)(e=>r(t=>t.filter(t=>t.id!==e)),[]),c=(0,p.useCallback)((e,t=`info`)=>{let n=++o.current;r(r=>[...r.slice(-2),{id:n,tone:t,text:e}]),t===`error`&&setTimeout(()=>s(n),8e3)},[s]),l=(0,p.useCallback)(e=>new Promise(t=>a({...e,resolve:t})),[]),u=e=>{i?.resolve(e),a(null)};return(0,m.jsxs)(dP.Provider,{value:{toast:c,confirm:l},children:[e,(0,m.jsx)(`div`,{className:`pointer-events-none fixed inset-x-0 bottom-5 z-[95] flex flex-col items-center gap-2 px-4`,children:n.map(e=>e.tone===`error`?(0,m.jsx)(`div`,{className:`pointer-events-auto w-[min(100%,26rem)] selectable`,children:(0,m.jsx)(lE,{tone:`danger`,title:t(`common.error`),onDismiss:()=>s(e.id),children:e.text})},e.id):(0,m.jsx)(`div`,{className:`pointer-events-auto flex w-full justify-center`,children:(0,m.jsx)(rP,{title:e.text,open:!0,onOpenChange:t=>!t&&s(e.id)})},e.id))}),(0,m.jsx)(iP,{open:i!==null,onOpenChange:e=>!e&&u(!1),title:i?.title??``,description:i?.detail,width:420,footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:()=>u(!1),children:t(`common.cancel`)}),(0,m.jsx)(X,{variant:i?.destructive?`destructive`:`primary`,onClick:()=>u(!0),autoFocus:!0,children:i?.confirmLabel??t(`common.confirm`)})]})})]})}function pP(){let e=(0,p.useContext)(dP);if(!e)throw Error(`useFeedback outside FeedbackProvider`);return e}function $(e){return e instanceof Error?e.message:String(e)}function mP(e){let t=/^(\d+)(\.|$)/.exec(e??``);return t?Number(t[1]):null}var hP=(e,t)=>t.map(t=>e.find(e=>e.kind===t)?.name??t).join(`, `);function gP(){let e=xv(),{toast:t}=pP(),n=Hg(),r=Ug(),i=K_(),a=q_(),[o,s]=(0,p.useState)(!1),c=n.isError&&n.failureCount>=1,l=jp()?.apiVersionMismatch||r.data&&mP(r.data.apiVersion)!==null&&mP(r.data.apiVersion)!==mP(`1.0`),u=i.data??[],d=c?[]:u.filter(e=>e.configOutdated).map(e=>e.kind);return(0,m.jsxs)(`div`,{className:`chrome shrink-0 px-2 pt-2 empty:hidden`,children:[(0,m.jsx)(lE,{open:!!(c||l),tone:c?`danger`:`warning`,title:e(c?Lp?`banner.downDesktop`:`banner.downWeb`:`banner.mismatch`),children:c&&Lp?(0,m.jsx)(X,{size:`sm`,variant:`primary`,className:`mt-2`,loading:o,onClick:async()=>{s(!0),await Av.startService(),s(!1),n.refetch()},children:e(`shell.startService`)}):void 0}),(0,m.jsx)(lE,{open:d.length>0,tone:`warning`,title:e(`banner.clientsOutdated`,{names:hP(u,d)}),children:(0,m.jsx)(X,{size:`sm`,variant:`primary`,className:`mt-2`,loading:a.isPending,onClick:()=>a.mutate(void 0,{onSuccess:n=>t(e(`banner.clientsUpdated`,{names:hP(u,n.updated)}),`success`),onError:e=>t($(e),`error`)}),children:e(`banner.clientsUpdate`)})})]})}var _P=`size-4`,vP=[{items:[{id:`overview`,path:`/`,label:`nav.overview`,color:`#0a84ff`,icon:(0,m.jsx)(gS,{className:_P,strokeWidth:1.75})},{id:`requests`,path:`/requests`,label:`nav.requests`,color:`#8e8e93`,icon:(0,m.jsx)(WS,{className:_P,strokeWidth:1.75})}]},{title:`nav.group.config`,items:[{id:`tokens`,path:`/tokens`,label:`nav.tokens`,color:`#ff375f`,icon:(0,m.jsx)(mS,{className:_P,strokeWidth:1.75})},{id:`clients`,path:`/clients`,label:`nav.clients`,color:`#5e5ce6`,icon:(0,m.jsx)(ste,{className:_P,strokeWidth:1.75})},{id:`providers`,path:`/providers`,label:`nav.providers`,color:`#30b0c7`,icon:(0,m.jsx)(JS,{className:_P,strokeWidth:1.75})},{id:`models`,path:`/models`,label:`nav.models`,color:`#ff9f0a`,icon:(0,m.jsx)(Dx,{className:_P,strokeWidth:1.75})},{id:`privacy`,path:`/privacy`,label:`nav.privacy`,color:`#30d158`,icon:(0,m.jsx)(eC,{className:_P,strokeWidth:1.75})}]},{title:`nav.group.system`,items:[{id:`settings`,path:`/settings`,label:`nav.settings`,color:`#8e8e93`,icon:(0,m.jsx)(XS,{className:_P,strokeWidth:1.75})}]}],yP=Object.fromEntries(vP.flatMap(e=>e.items).map(e=>[e.id,e.path])),bP=zp(),xP=(bP-16-22)/2,SP={type:`spring`,stiffness:380,damping:38,mass:.9},CP=`astra.sidebar`,wP=(0,p.createContext)(null);function TP(){let e=(0,p.useContext)(wP);if(!e)throw Error(`useShellLayout outside AppShell`);return e}function EP(){try{let e=localStorage.getItem(CP);return e===`collapsed`||e!==`expanded`&&null}catch{return null}}function DP(){return(0,m.jsx)(`svg`,{width:`0`,height:`0`,"aria-hidden":!0,className:`absolute`,children:(0,m.jsxs)(`filter`,{id:`astra-refract`,x:`0`,y:`0`,width:`100%`,height:`100%`,colorInterpolationFilters:`sRGB`,children:[(0,m.jsx)(`feTurbulence`,{type:`fractalNoise`,baseFrequency:`0.006 0.009`,numOctaves:`2`,seed:`11`,result:`noise`}),(0,m.jsx)(`feGaussianBlur`,{in:`noise`,stdDeviation:`2.5`,result:`soft`}),(0,m.jsx)(`feDisplacementMap`,{in:`SourceGraphic`,in2:`soft`,scale:`14`,xChannelSelector:`R`,yChannelSelector:`G`})]})})}function OP(){let e=Ah(),t=Dh(),n=g(),r=wv(`(max-width: 767px)`),i=wv(`(max-width: 1099px)`),[a,o]=(0,p.useState)(EP),[s,c]=(0,p.useState)(!1),l=a??(!Lp&&i),u=!Lp&&r?`drawer`:l?`rail`:`expanded`,d=u===`expanded`?224:u===`rail`?bP:0;(0,p.useEffect)(()=>c(!1),[t.pathname]);let f=(0,p.useCallback)(()=>{if(u===`drawer`){c(e=>!e);return}let e=!l;o(e);try{localStorage.setItem(CP,e?`collapsed`:`expanded`)}catch{}},[u,l]);Qee((0,p.useCallback)(r=>{if(r.startsWith(`nav:`)){e(yP[r.slice(4)]);return}switch(r){case`toggle-sidebar`:f();return;case`settings:tray`:e(`/settings/tray`);return;case`refresh`:n.invalidateQueries();return;case`new-provider`:t.pathname.startsWith(`/providers`)?Ov(r):e(`/providers?new=1`);return;default:Ov(r)}},[e,n,f,t.pathname]));let h=(0,p.useMemo)(()=>({sidebarMode:u,sidebarWidth:d,drawerOpen:s,setDrawerOpen:c,toggleSidebar:f,narrow:!Lp&&r}),[u,d,s,f,r]);return(0,m.jsx)(wP.Provider,{value:h,children:(0,m.jsxs)(`div`,{className:`wallpaper relative h-full overflow-hidden`,children:[(0,m.jsx)(DP,{}),u!==`drawer`&&(0,m.jsx)(AP,{rail:u===`rail`}),(0,m.jsx)(V,{children:u===`drawer`&&s&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(H.div,{className:`fixed inset-0 z-30 bg-black/20`,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},onClick:()=>c(!1)}),(0,m.jsx)(H.div,{className:`fixed inset-y-0 left-0 z-40`,style:{width:232},initial:{x:-232},animate:{x:0},exit:{x:-232},transition:SP,children:(0,m.jsx)(AP,{rail:!1})})]})}),(0,m.jsxs)(H.main,{className:`absolute inset-y-0 right-0 flex flex-col`,initial:!1,animate:{left:d?d+8:0},transition:SP,children:[(0,m.jsx)(gP,{}),(0,m.jsx)(`div`,{className:`relative min-h-0 flex-1`,children:(0,m.jsx)(rg,{})})]})]})})}function kP({hidden:e,children:t,className:n}){return(0,m.jsx)(H.span,{initial:!1,animate:{opacity:+!e,x:e?-6:0},transition:{duration:e?.12:.22,delay:e?0:.08},className:Cv(`relative truncate whitespace-nowrap`,n),"aria-hidden":e||void 0,children:t})}function AP({rail:e}){let t=xv(),n=Lp&&Rp;return(0,m.jsxs)(H.nav,{"aria-label":`Astra`,className:`glass chrome absolute z-20 flex flex-col overflow-hidden rounded-[18px]`,style:{top:8,left:8,bottom:8},initial:!1,animate:{width:e?bP:224},transition:SP,children:[(0,m.jsx)(`div`,{className:`drag flex h-[52px] shrink-0 items-center gap-2`,style:{paddingLeft:(bP-24)/2},children:!n&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Mv,{className:`size-6 shrink-0 rounded-[6px]`}),(0,m.jsx)(kP,{hidden:e,className:`text-[14px] font-medium`,children:`Astra`})]})}),(0,m.jsx)(`div`,{className:`scroll min-h-0 flex-1 overflow-x-hidden px-2 pb-2`,children:vP.map((n,r)=>(0,m.jsxs)(`div`,{children:[n.title&&(0,m.jsxs)(`div`,{className:`relative mt-2 h-6`,children:[(0,m.jsx)(kP,{hidden:e,className:`absolute bottom-1 left-3 text-[11px] font-medium text-[var(--text-muted)]`,children:t(n.title)}),(0,m.jsx)(H.div,{initial:!1,animate:{opacity:+!!e,scaleX:e?1:.4},className:`absolute top-1/2 h-px bg-[var(--border)]`,style:{left:xP,width:22}})]}),n.items.map(n=>(0,m.jsx)(Rg,{to:n.path,end:n.path===`/`,title:e?t(n.label):void 0,"aria-label":t(n.label),className:({isActive:e})=>Cv(`relative my-px flex h-8 items-center gap-2.5 rounded-full text-[13px] transition-colors`,!e&&`hover:bg-[var(--surface-muted)]`),style:{paddingLeft:xP,paddingRight:10},children:({isActive:r})=>(0,m.jsxs)(m.Fragment,{children:[r&&(0,m.jsx)(H.span,{layoutId:`sidebar-selection`,transition:{type:`spring`,stiffness:420,damping:34},className:`absolute inset-0 rounded-full bg-[color-mix(in_oklab,var(--accent)_18%,transparent)]`}),(0,m.jsx)(YT,{size:22,className:Cv(`relative`,r&&`text-[var(--accent)]`),children:n.icon}),(0,m.jsx)(kP,{hidden:e,children:t(n.label)})]})},n.id))]},r))}),(0,m.jsx)(jP,{rail:e})]})}function jP({rail:e}){let t=xv(),n=Hg(),r=Gg(),{toast:i}=pP(),[a,o]=(0,p.useState)(!1),s=n.isSuccess&&!n.isError,c=r.data?.gatewayBaseUrl?.replace(/^https?:\/\//,``),l=s?t(`shell.running`):n.isLoading?t(`shell.connecting`):t(`shell.disconnected`),u=async()=>{o(!0);let e=await Av.startService();o(!1),e&&!e.ok&&i(e.error||t(`shell.startFailed`),`error`),n.refetch()};return(0,m.jsx)(`div`,{className:`relative m-2 min-h-10 shrink-0`,children:(0,m.jsx)(V,{initial:!1,mode:`popLayout`,children:e?(0,m.jsx)(H.div,{initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6},className:`flex h-10 items-center`,style:{paddingLeft:xP+7},title:l,children:(0,m.jsx)(JT,{tone:s?`green`:`red`})},`dot`):(0,m.jsxs)(H.div,{initial:{opacity:0},animate:{opacity:1,transition:{delay:.1}},exit:{opacity:0,transition:{duration:.1}},className:`rounded-xl bg-[color-mix(in_oklab,var(--glass-tint)_45%,transparent)] px-3 py-2 text-[11px] whitespace-nowrap text-[var(--text-secondary)]`,style:{width:208},children:[(0,m.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,m.jsx)(JT,{tone:s?`green`:n.isLoading?`neutral`:`red`}),(0,m.jsx)(`span`,{className:`truncate`,children:l})]}),s&&c&&(0,m.jsx)(`div`,{className:`mt-0.5 truncate font-mono text-[10.5px] text-[var(--text-muted)] selectable`,children:c}),!s&&!n.isLoading&&Lp&&(0,m.jsx)(X,{size:`sm`,variant:`primary`,className:`mt-1.5 w-full`,loading:a,onClick:()=>void u(),children:t(`shell.startService`)})]},`card`)})})}var MP=Lp&&Ip===`win32`?140:0;function NP(){var e=[...arguments];return(0,p.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var PP=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function FP(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function IP(e){return`nodeType`in e}function LP(e){return e?FP(e)?e:IP(e)?e.ownerDocument?.defaultView??window:window:window}function RP(e){let{Document:t}=LP(e);return e instanceof t}function zP(e){return!FP(e)&&e instanceof LP(e).HTMLElement}function BP(e){return e instanceof LP(e).SVGElement}function VP(e){return e?FP(e)?e.document:IP(e)?RP(e)?e:zP(e)||BP(e)?e.ownerDocument:document:document:document}var HP=PP?p.useLayoutEffect:p.useEffect;function UP(e){let t=(0,p.useRef)(e);return HP(()=>{t.current=e}),(0,p.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function Pne(){let e=(0,p.useRef)(null);return[(0,p.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,p.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function WP(e,t){t===void 0&&(t=[e]);let n=(0,p.useRef)(e);return HP(()=>{n.current!==e&&(n.current=e)},t),n}function GP(e,t){let n=(0,p.useRef)();return(0,p.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function KP(e){let t=UP(e),n=(0,p.useRef)(null);return[n,(0,p.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function qP(e){let t=(0,p.useRef)();return(0,p.useEffect)(()=>{t.current=e},[e]),t.current}var JP={};function YP(e,t){return(0,p.useMemo)(()=>{if(t)return t;let n=JP[e]==null?0:JP[e]+1;return JP[e]=n,e+`-`+n},[e,t])}function XP(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var ZP=XP(1),QP=XP(-1);function Fne(e){return`clientX`in e&&`clientY`in e}function $P(e){if(!e)return!1;let{KeyboardEvent:t}=LP(e.target);return t&&e instanceof t}function Ine(e){if(!e)return!1;let{TouchEvent:t}=LP(e.target);return t&&e instanceof t}function eF(e){if(Ine(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return Fne(e)?{x:e.clientX,y:e.clientY}:null}var tF=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[tF.Translate.toString(e),tF.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),nF=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function Lne(e){return e.matches(nF)?e:e.querySelector(nF)}var Rne={display:`none`};function zne(e){let{id:t,value:n}=e;return p.createElement(`div`,{id:t,style:Rne},n)}function Bne(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return p.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function Vne(){let[e,t]=(0,p.useState)(``);return{announce:(0,p.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var rF=(0,p.createContext)(null);function Hne(e){let t=(0,p.useContext)(rF);(0,p.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function Une(){let[e]=(0,p.useState)(()=>new Set),t=(0,p.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,p.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var Wne={draggable:`
|
|
66
|
-
To pick up a draggable item, press the space bar.
|
|
67
|
-
While dragging, use the arrow keys to move the item.
|
|
68
|
-
Press space again to drop the item in its new position, or press escape to cancel.
|
|
69
|
-
`},Gne={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function Kne(e){let{announcements:t=Gne,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=Wne}=e,{announce:a,announcement:o}=Vne(),s=YP(`DndLiveRegion`),[c,l]=(0,p.useState)(!1);if((0,p.useEffect)(()=>{l(!0)},[]),Hne((0,p.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=p.createElement(p.Fragment,null,p.createElement(zne,{id:r,value:i.draggable}),p.createElement(Bne,{id:s,announcement:o}));return n?(0,Fy.createPortal)(u,n):u}var iF;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(iF||={});function aF(){}function oF(e,t){return(0,p.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function qne(){var e=[...arguments];return(0,p.useMemo)(()=>[...e].filter(e=>e!=null),[...e])}var sF=Object.freeze({x:0,y:0});function cF(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function lF(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function Jne(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function uF(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function dF(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function fF(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var Yne=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=fF(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=cF(fF(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(lF)},Xne=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=uF(t),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=uF(r),o=i.reduce((e,t,r)=>e+cF(n[r],t),0),s=Number((o/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:s}})}}return a.sort(lF)};function Zne(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var Qne=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=Zne(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(Jne)};function $ne(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function pF(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:sF}function ere(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var tre=ere(1);function nre(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function rre(e,t,n){let r=nre(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var ire={ignoreTransform:!1};function mF(e,t){t===void 0&&(t=ire);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=LP(e).getComputedStyle(e);t&&(n=rre(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function hF(e){return mF(e,{ignoreTransform:!0})}function are(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function ore(e,t){return t===void 0&&(t=LP(e).getComputedStyle(e)),t.position===`fixed`}function sre(e,t){t===void 0&&(t=LP(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function gF(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(RP(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!zP(i)||BP(i)||n.includes(i))return n;let a=LP(e).getComputedStyle(i);return i!==e&&sre(i,a)&&n.push(i),ore(i,a)?n:r(i.parentNode)}return e?r(e):n}function _F(e){let[t]=gF(e,1);return t??null}function vF(e){return!PP||!e?null:FP(e)?e:IP(e)?RP(e)||e===VP(e).scrollingElement?window:zP(e)?e:null:null}function yF(e){return FP(e)?e.scrollX:e.scrollLeft}function bF(e){return FP(e)?e.scrollY:e.scrollTop}function xF(e){return{x:yF(e),y:bF(e)}}var SF;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(SF||={});function CF(e){return!PP||!e?!1:e===document.scrollingElement}function wF(e){let t={x:0,y:0},n=CF(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var cre={x:.2,y:.2};function lre(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=cre);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=wF(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=SF.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=SF.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=SF.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=SF.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function ure(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function TF(e){return e.reduce((e,t)=>ZP(e,xF(t)),sF)}function dre(e){return e.reduce((e,t)=>e+yF(t),0)}function fre(e){return e.reduce((e,t)=>e+bF(t),0)}function pre(e,t){if(t===void 0&&(t=mF),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);_F(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var mre=[[`x`,[`left`,`right`],dre],[`y`,[`top`,`bottom`],fre]],EF=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=gF(t),r=TF(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of mre)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},DF=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function hre(e){let{EventTarget:t}=LP(e);return e instanceof t?e:VP(e)}function OF(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var kF;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(kF||={});function AF(e){e.preventDefault()}function gre(e){e.stopPropagation()}var jF;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(jF||={});var MF={start:[jF.Space,jF.Enter],cancel:[jF.Esc],end:[jF.Space,jF.Enter,jF.Tab]},_re=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case jF.Right:return{...n,x:n.x+25};case jF.Left:return{...n,x:n.x-25};case jF.Down:return{...n,y:n.y+25};case jF.Up:return{...n,y:n.y-25}}},NF=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new DF(VP(t)),this.windowListeners=new DF(LP(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(kF.Resize,this.handleCancel),this.windowListeners.add(kF.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(kF.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&pre(n),t(sF)}handleKeyDown(e){if($P(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=MF,coordinateGetter:a=_re,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:sF;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=QP(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=wF(n),p=ure(n),m={x:Math.min(i===jF.Right?p.right-p.width/2:p.right,Math.max(i===jF.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===jF.Down?p.bottom-p.height/2:p.bottom,Math.max(i===jF.Down?p.top:p.top+p.height/2,u.y))},h=i===jF.Right&&!s||i===jF.Left&&!c,g=i===jF.Down&&!l||i===jF.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===jF.Right&&e<=d.x||i===jF.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}r.x=a?n.scrollLeft-e:i===jF.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===jF.Down&&e<=d.y||i===jF.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}r.y=a?n.scrollTop-e:i===jF.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,ZP(QP(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};NF.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=MF,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function PF(e){return!!(e&&`distance`in e)}function FF(e){return!!(e&&`delay`in e)}var IF=class{constructor(e,t,n){n===void 0&&(n=hre(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=VP(i),this.documentListeners=new DF(this.document),this.listeners=new DF(n),this.windowListeners=new DF(LP(i)),this.initialCoordinates=eF(r)??sF,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(kF.Resize,this.handleCancel),this.windowListeners.add(kF.DragStart,AF),this.windowListeners.add(kF.VisibilityChange,this.handleCancel),this.windowListeners.add(kF.ContextMenu,AF),this.documentListeners.add(kF.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(FF(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(PF(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(kF.Click,gre,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(kF.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=eF(e)??sF,s=QP(n,o);if(!t&&a){if(PF(a)){if(a.tolerance!=null&&OF(s,a.tolerance))return this.handleCancel();if(OF(s,a.distance))return this.handleStart()}if(FF(a)&&OF(s,a.tolerance))return this.handleCancel();this.handlePending(a,s);return}e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===jF.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},vre={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},LF=class extends IF{constructor(e){let{event:t}=e,n=VP(t.target);super(e,vre,n)}};LF.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var yre={move:{name:`mousemove`},end:{name:`mouseup`}},RF;(function(e){e[e.RightClick=2]=`RightClick`})(RF||={});var bre=class extends IF{constructor(e){super(e,yre,VP(e.event.target))}};bre.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==RF.RightClick&&(r?.({event:n}),!0)}}];var zF={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},xre=class extends IF{constructor(e){super(e,zF)}static setup(){return window.addEventListener(zF.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(zF.move.name,e)};function e(){}}};xre.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var BF;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(BF||={});var VF;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(VF||={});function Sre(e){let{acceleration:t,activator:n=BF.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=VF.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,m=wre({delta:d,disabled:!a}),[h,g]=Pne(),_=(0,p.useRef)({x:0,y:0}),v=(0,p.useRef)({x:0,y:0}),y=(0,p.useMemo)(()=>{switch(n){case BF.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case BF.DraggableRect:return i}},[n,i,c]),b=(0,p.useRef)(null),x=(0,p.useCallback)(()=>{let e=b.current;if(!e)return;let t=_.current.x*v.current.x,n=_.current.y*v.current.y;e.scrollBy(t,n)},[]),S=(0,p.useMemo)(()=>s===VF.TreeOrder?[...l].reverse():l,[s,l]);(0,p.useEffect)(()=>{if(!a||!l.length||!y){g();return}for(let e of S){if(r?.(e)===!1)continue;let n=l.indexOf(e),i=u[n];if(!i)continue;let{direction:a,speed:s}=lre(e,i,y,t,f);for(let e of[`x`,`y`])m[e][a[e]]||(s[e]=0,a[e]=0);if(s.x>0||s.y>0){g(),b.current=e,h(x,o),_.current=s,v.current=a;return}}_.current={x:0,y:0},v.current={x:0,y:0},g()},[t,x,r,g,a,o,JSON.stringify(y),JSON.stringify(m),h,l,S,u,JSON.stringify(f)])}var Cre={x:{[SF.Backward]:!1,[SF.Forward]:!1},y:{[SF.Backward]:!1,[SF.Forward]:!1}};function wre(e){let{delta:t,disabled:n}=e,r=qP(t);return GP(e=>{if(n||!r||!e)return Cre;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[SF.Backward]:e.x[SF.Backward]||i.x===-1,[SF.Forward]:e.x[SF.Forward]||i.x===1},y:{[SF.Backward]:e.y[SF.Backward]||i.y===-1,[SF.Forward]:e.y[SF.Forward]||i.y===1}}},[n,t,r])}function Tre(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return GP(e=>t==null?null:r??e??null,[r,t])}function Ere(e,t){return(0,p.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var HF;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(HF||={});var UF;(function(e){e.Optimized=`optimized`})(UF||={});var WF=new Map;function Dre(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,p.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,p.useRef)(e),d=_(),f=WP(d),m=(0,p.useCallback)(function(e){e===void 0&&(e=[]),!f.current&&o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),h=(0,p.useRef)(null),g=GP(t=>{if(d&&!n)return WF;if(!t||t===WF||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new EF(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,p.useEffect)(()=>{u.current=e},[e]),(0,p.useEffect)(()=>{d||m()},[n,d]),(0,p.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,p.useEffect)(()=>{d||typeof s!=`number`||h.current!==null||(h.current=setTimeout(()=>{m(),h.current=null},s))},[s,d,m,...r]),{droppableRects:g,measureDroppableContainers:m,measuringScheduled:a!=null};function _(){switch(l){case HF.Always:return!1;case HF.BeforeDragging:return n;default:return!n}}}function GF(e,t){return GP(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function Ore(e,t){return GF(e,t)}function kre(e){let{callback:t,disabled:n}=e,r=UP(t),i=(0,p.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,p.useEffect)(()=>()=>i?.disconnect(),[i]),i}function KF(e){let{callback:t,disabled:n}=e,r=UP(t),i=(0,p.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,p.useEffect)(()=>()=>i?.disconnect(),[i]),i}function Are(e){return new EF(mF(e),e)}function qF(e,t,n){t===void 0&&(t=Are);let[r,i]=(0,p.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=kre({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=KF({callback:a});return HP(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function jre(e){return pF(e,GF(e))}var JF=[];function Mre(e){let t=(0,p.useRef)(e),n=GP(n=>e?n&&n!==JF&&e&&t.current&&e.parentNode===t.current.parentNode?n:gF(e):JF,[e]);return(0,p.useEffect)(()=>{t.current=e},[e]),n}function Nre(e){let[t,n]=(0,p.useState)(null),r=(0,p.useRef)(e),i=(0,p.useCallback)(e=>{let t=vF(e.target);t&&n(e=>e?(e.set(t,xF(t)),new Map(e)):null)},[]);return(0,p.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=vF(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,xF(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{vF(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,p.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>ZP(e,t),sF):TF(e):sF,[e,t])}function YF(e,t){t===void 0&&(t=[]);let n=(0,p.useRef)(null);return(0,p.useEffect)(()=>{n.current=null},t),(0,p.useEffect)(()=>{let t=e!==sF;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?QP(e,n.current):sF}function Pre(e){(0,p.useEffect)(()=>{if(!PP)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function Fre(e,t){return(0,p.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function XF(e){return(0,p.useMemo)(()=>e?are(e):null,[e])}var ZF=[];function Ire(e,t){t===void 0&&(t=mF);let[n]=e,r=XF(n?LP(n):null),[i,a]=(0,p.useState)(ZF);function o(){a(()=>e.length?e.map(e=>CF(e)?r:new EF(t(e),e)):ZF)}let s=KF({callback:o});return HP(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function Lre(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return zP(t)?t:e}function Rre(e){let{measure:t}=e,[n,r]=(0,p.useState)(null),i=KF({callback:(0,p.useCallback)(e=>{for(let{target:n}of e)if(zP(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=KP((0,p.useCallback)(e=>{let n=Lre(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,p.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var zre=[{sensor:LF,options:{}},{sensor:NF,options:{}}],Bre={current:{}},QF={draggable:{measure:hF},droppable:{measure:hF,strategy:HF.WhileDragging,frequency:UF.Optimized},dragOverlay:{measure:mF}},$F=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},Vre={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new $F,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:aF},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:QF,measureDroppableContainers:aF,windowRect:null,measuringScheduled:!1},Hre={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:aF,draggableNodes:new Map,over:null,measureDroppableContainers:aF},eI=(0,p.createContext)(Hre),tI=(0,p.createContext)(Vre);function Ure(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new $F}}}function Wre(e,t){switch(t.type){case iF.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case iF.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case iF.DragEnd:case iF.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case iF.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new $F(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case iF.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new $F(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case iF.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new $F(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function Gre(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,p.useContext)(eI),a=qP(r),o=qP(n?.id);return(0,p.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!$P(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=Lne(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function Kre(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function qre(e){return(0,p.useMemo)(()=>({draggable:{...QF.draggable,...e?.draggable},droppable:{...QF.droppable,...e?.droppable},dragOverlay:{...QF.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function Jre(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,p.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;HP(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=pF(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=_F(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var nI=(0,p.createContext)({...sF,scaleX:1,scaleY:1}),rI;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(rI||={});var Yre=(0,p.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=zre,collisionDetection:o=Qne,measuring:s,modifiers:c,...l}=e,[u,d]=(0,p.useReducer)(Wre,void 0,Ure),[f,m]=Une(),[h,g]=(0,p.useState)(rI.Uninitialized),_=h===rI.Initialized,{draggable:{active:v,nodes:y,translate:b},droppable:{containers:x}}=u,S=v==null?null:y.get(v),C=(0,p.useRef)({initial:null,translated:null}),w=(0,p.useMemo)(()=>v==null?null:{id:v,data:S?.data??Bre,rect:C},[v,S]),T=(0,p.useRef)(null),[E,D]=(0,p.useState)(null),[O,k]=(0,p.useState)(null),A=WP(l,Object.values(l)),j=YP(`DndDescribedBy`,t),M=(0,p.useMemo)(()=>x.getEnabled(),[x]),N=qre(s),{droppableRects:P,measureDroppableContainers:F,measuringScheduled:I}=Dre(M,{dragging:_,dependencies:[b.x,b.y],config:N.droppable}),L=Tre(y,v),R=(0,p.useMemo)(()=>O?eF(O):null,[O]),ee=Ae(),te=Ore(L,N.draggable.measure);Jre({activeNode:v==null?null:y.get(v),config:ee.layoutShiftCompensation,initialRect:te,measure:N.draggable.measure});let ne=qF(L,N.draggable.measure,te),re=qF(L?L.parentElement:null),ie=(0,p.useRef)({activatorEvent:null,active:null,activeNode:L,collisionRect:null,collisions:null,droppableRects:P,draggableNodes:y,draggingNode:null,draggingNodeRect:null,droppableContainers:x,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),ae=x.getNodeFor(ie.current.over?.id),oe=Rre({measure:N.dragOverlay.measure}),se=oe.nodeRef.current??L,ce=_?oe.rect??ne:null,le=!!(oe.nodeRef.current&&oe.rect),z=jre(le?null:ne),ue=XF(se?LP(se):null),de=Mre(_?ae??L:null),fe=Ire(de),pe=Kre(c,{transform:{x:b.x-z.x,y:b.y-z.y,scaleX:1,scaleY:1},activatorEvent:O,active:w,activeNodeRect:ne,containerNodeRect:re,draggingNodeRect:ce,over:ie.current.over,overlayNodeRect:oe.rect,scrollableAncestors:de,scrollableAncestorRects:fe,windowRect:ue}),me=R?ZP(R,b):null,he=Nre(de),ge=YF(he),_e=YF(he,[ne]),ve=ZP(pe,ge),ye=ce?tre(ce,pe):null,be=w&&ye?o({active:w,collisionRect:ye,droppableRects:P,droppableContainers:M,pointerCoordinates:me}):null,xe=dF(be,`id`),[Se,Ce]=(0,p.useState)(null),we=$ne(le?pe:ZP(pe,_e),Se?.rect??null,ne),Te=(0,p.useRef)(null),Ee=(0,p.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(T.current==null)return;let i=y.get(T.current);if(!i)return;let a=e.nativeEvent,o=new n({active:T.current,activeNode:i,event:a,options:r,context:ie,onAbort(e){if(!y.get(e))return;let{onDragAbort:t}=A.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!y.get(e))return;let{onDragPending:i}=A.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=T.current;if(t==null)return;let n=y.get(t);if(!n)return;let{onDragStart:r}=A.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:C}};(0,Fy.unstable_batchedUpdates)(()=>{r?.(i),g(rI.Initializing),d({type:iF.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),D(Te.current),k(a)})},onMove(e){d({type:iF.DragMove,coordinates:e})},onEnd:s(iF.DragEnd),onCancel:s(iF.DragCancel)});Te.current=o;function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=ie.current,o=null;if(t&&i){let{cancelDrop:s}=A.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===iF.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=iF.DragCancel)}T.current=null,(0,Fy.unstable_batchedUpdates)(()=>{d({type:e}),g(rI.Uninitialized),Ce(null),D(null),k(null),Te.current=null;let t=e===iF.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=A.current[t];e?.(o),f({type:t,event:o})}})}}},[y]),De=Ere(a,(0,p.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=y.get(r);if(T.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},T.current=r,Ee(n,t))},[y,Ee]));Pre(a),HP(()=>{ne&&h===rI.Initializing&&g(rI.Initialized)},[ne,h]),(0,p.useEffect)(()=>{let{onDragMove:e}=A.current,{active:t,activatorEvent:n,collisions:r,over:i}=ie.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:ve.x,y:ve.y},over:i};(0,Fy.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[ve.x,ve.y]),(0,p.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=ie.current;if(!e||T.current==null||!t||!i)return;let{onDragOver:a}=A.current,o=r.get(xe),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,Fy.unstable_batchedUpdates)(()=>{Ce(s),a?.(c),f({type:`onDragOver`,event:c})})},[xe]),HP(()=>{ie.current={activatorEvent:O,active:w,activeNode:L,collisionRect:ye,collisions:be,droppableRects:P,draggableNodes:y,draggingNode:se,draggingNodeRect:ce,droppableContainers:x,over:Se,scrollableAncestors:de,scrollAdjustedTranslate:ve},C.current={initial:ce,translated:ye}},[w,L,be,ye,y,se,ce,P,x,Se,de,ve]),Sre({...ee,delta:b,draggingRect:ye,pointerCoordinates:me,scrollableAncestors:de,scrollableAncestorRects:fe});let Oe=(0,p.useMemo)(()=>({active:w,activeNode:L,activeNodeRect:ne,activatorEvent:O,collisions:be,containerNodeRect:re,dragOverlay:oe,draggableNodes:y,droppableContainers:x,droppableRects:P,over:Se,measureDroppableContainers:F,scrollableAncestors:de,scrollableAncestorRects:fe,measuringConfiguration:N,measuringScheduled:I,windowRect:ue}),[w,L,ne,O,be,re,oe,y,x,P,Se,F,de,fe,N,I,ue]),ke=(0,p.useMemo)(()=>({activatorEvent:O,activators:De,active:w,activeNodeRect:ne,ariaDescribedById:{draggable:j},dispatch:d,draggableNodes:y,over:Se,measureDroppableContainers:F}),[O,De,w,ne,d,j,y,Se,F]);return p.createElement(rF.Provider,{value:m},p.createElement(eI.Provider,{value:ke},p.createElement(tI.Provider,{value:Oe},p.createElement(nI.Provider,{value:we},i)),p.createElement(Gre,{disabled:n?.restoreFocus===!1})),p.createElement(Kne,{...n,hiddenTextDescribedById:j}));function Ae(){let e=E?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=_&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),Xre=(0,p.createContext)(null),iI=`button`,Zre=`Draggable`;function Qre(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=YP(Zre),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,p.useContext)(eI),{role:m=iI,roleDescription:h=`draggable`,tabIndex:g=0}=i??{},_=c?.id===t,v=(0,p.useContext)(_?nI:Xre),[y,b]=KP(),[x,S]=KP(),C=Fre(o,t),w=WP(n);return HP(()=>(d.set(t,{id:t,key:a,node:y,activatorNode:x,data:w}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,p.useMemo)(()=>({role:m,tabIndex:g,"aria-disabled":r,"aria-pressed":_&&m===iI?!0:void 0,"aria-roledescription":h,"aria-describedby":u.draggable}),[r,m,g,_,h,u.draggable]),isDragging:_,listeners:r?void 0:C,node:y,over:f,setNodeRef:b,setActivatorNodeRef:S,transform:v}}function $re(){return(0,p.useContext)(tI)}var eie=`Droppable`,tie={timeout:25};function nie(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=YP(eie),{active:o,dispatch:s,over:c,measureDroppableContainers:l}=(0,p.useContext)(eI),u=(0,p.useRef)({disabled:n}),d=(0,p.useRef)(!1),f=(0,p.useRef)(null),m=(0,p.useRef)(null),{disabled:h,updateMeasurementsFor:g,timeout:_}={...tie,...i},v=WP(g??r),y=KF({callback:(0,p.useCallback)(()=>{if(!d.current){d.current=!0;return}m.current!=null&&clearTimeout(m.current),m.current=setTimeout(()=>{l(Array.isArray(v.current)?v.current:[v.current]),m.current=null},_)},[_]),disabled:h||!o}),[b,x]=KP((0,p.useCallback)((e,t)=>{y&&(t&&(y.unobserve(t),d.current=!1),e&&y.observe(e))},[y])),S=WP(t);return(0,p.useEffect)(()=>{y&&b.current&&(y.disconnect(),d.current=!1,y.observe(b.current))},[b,y]),(0,p.useEffect)(()=>(s({type:iF.RegisterDroppable,element:{id:r,key:a,disabled:n,node:b,rect:f,data:S}}),()=>s({type:iF.UnregisterDroppable,key:a,id:r})),[r]),(0,p.useEffect)(()=>{n!==u.current.disabled&&(s({type:iF.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:c?.id===r,node:b,over:c,setNodeRef:x}}function aI(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function rie(e,t){return e.reduce((e,n,r)=>{let i=t.get(n);return i&&(e[r]=i),e},Array(e.length))}function oI(e){return e!==null&&e>=0}function iie(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function aie(e){return typeof e==`boolean`?{draggable:e,droppable:e}:e}var sI=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,a=aI(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},cI={scaleX:1,scaleY:1},oie=e=>{let{activeIndex:t,activeNodeRect:n,index:r,rects:i,overIndex:a}=e,o=i[t]??n;if(!o)return null;if(r===t){let e=i[a];return e?{x:0,y:t<a?e.top+e.height-(o.top+o.height):e.top-o.top,...cI}:null}let s=sie(i,r,t);return r>t&&r<=a?{x:0,y:-o.height-s,...cI}:r<t&&r>=a?{x:0,y:o.height+s,...cI}:{x:0,y:0,...cI}};function sie(e,t,n){let r=e[t],i=e[t-1],a=e[t+1];return r?n<t?i?r.top-(i.top+i.height):a?a.top-(r.top+r.height):0:a?a.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}var lI=`Sortable`,uI=p.createContext({activeIndex:-1,containerId:lI,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:sI,disabled:{draggable:!1,droppable:!1}});function cie(e){let{children:t,id:n,items:r,strategy:i=sI,disabled:a=!1}=e,{active:o,dragOverlay:s,droppableRects:c,over:l,measureDroppableContainers:u}=$re(),d=YP(lI,n),f=s.rect!==null,m=(0,p.useMemo)(()=>r.map(e=>typeof e==`object`&&`id`in e?e.id:e),[r]),h=o!=null,g=o?m.indexOf(o.id):-1,_=l?m.indexOf(l.id):-1,v=(0,p.useRef)(m),y=!iie(m,v.current),b=_!==-1&&g===-1||y,x=aie(a);HP(()=>{y&&h&&u(m)},[y,m,h,u]),(0,p.useEffect)(()=>{v.current=m},[m]);let S=(0,p.useMemo)(()=>({activeIndex:g,containerId:d,disabled:x,disableTransforms:b,items:m,overIndex:_,useDragOverlay:f,sortedRects:rie(m,c),strategy:i}),[g,d,x.draggable,x.droppable,b,m,_,c,f,i]);return p.createElement(uI.Provider,{value:S},t)}var lie=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return aI(n,r,i).indexOf(t)},uie=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:c,transition:l}=e;return!l||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===c},die={duration:200,easing:`ease`},dI=`transform`,fie=tF.Transition.toString({property:dI,duration:0,easing:`linear`}),pie={roleDescription:`sortable`};function mie(e){let{disabled:t,index:n,node:r,rect:i}=e,[a,o]=(0,p.useState)(null),s=(0,p.useRef)(n);return HP(()=>{if(!t&&n!==s.current&&r.current){let e=i.current;if(e){let t=mF(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&o(n)}}n!==s.current&&(s.current=n)},[t,n,r,i]),(0,p.useEffect)(()=>{a&&o(null)},[a]),a}function hie(e){let{animateLayoutChanges:t=uie,attributes:n,disabled:r,data:i,getNewIndex:a=lie,id:o,strategy:s,resizeObserverConfig:c,transition:l=die}=e,{items:u,containerId:d,activeIndex:f,disabled:m,disableTransforms:h,sortedRects:g,overIndex:_,useDragOverlay:v,strategy:y}=(0,p.useContext)(uI),b=gie(r,m),x=u.indexOf(o),S=(0,p.useMemo)(()=>({sortable:{containerId:d,index:x,items:u},...i}),[d,i,x,u]),C=(0,p.useMemo)(()=>u.slice(u.indexOf(o)),[u,o]),{rect:w,node:T,isOver:E,setNodeRef:D}=nie({id:o,data:S,disabled:b.droppable,resizeObserverConfig:{updateMeasurementsFor:C,...c}}),{active:O,activatorEvent:k,activeNodeRect:A,attributes:j,setNodeRef:M,listeners:N,isDragging:P,over:F,setActivatorNodeRef:I,transform:L}=Qre({id:o,data:S,attributes:{...pie,...n},disabled:b.draggable}),R=NP(D,M),ee=!!O,te=ee&&!h&&oI(f)&&oI(_),ne=!v&&P,re=te?(ne&&te?L:null)??(s??y)({rects:g,activeNodeRect:A,activeIndex:f,overIndex:_,index:x}):null,ie=oI(f)&&oI(_)?a({id:o,items:u,activeIndex:f,overIndex:_}):x,ae=O?.id,oe=(0,p.useRef)({activeId:ae,items:u,newIndex:ie,containerId:d}),se=u!==oe.current.items,ce=t({active:O,containerId:d,isDragging:P,isSorting:ee,id:o,index:x,items:u,newIndex:oe.current.newIndex,previousItems:oe.current.items,previousContainerId:oe.current.containerId,transition:l,wasDragging:oe.current.activeId!=null}),le=mie({disabled:!ce,index:x,node:T,rect:w});return(0,p.useEffect)(()=>{ee&&oe.current.newIndex!==ie&&(oe.current.newIndex=ie),d!==oe.current.containerId&&(oe.current.containerId=d),u!==oe.current.items&&(oe.current.items=u)},[ee,ie,d,u]),(0,p.useEffect)(()=>{if(ae===oe.current.activeId)return;if(ae!=null&&oe.current.activeId==null){oe.current.activeId=ae;return}let e=setTimeout(()=>{oe.current.activeId=ae},50);return()=>clearTimeout(e)},[ae]),{active:O,activeIndex:f,attributes:j,data:S,rect:w,index:x,newIndex:ie,items:u,isOver:E,isSorting:ee,isDragging:P,listeners:N,node:T,overIndex:_,over:F,setNodeRef:R,setActivatorNodeRef:I,setDroppableNodeRef:D,setDraggableNodeRef:M,transform:le??re,transition:z()};function z(){if(le||se&&oe.current.newIndex===x)return fie;if(!(ne&&!$P(k)||!l)&&(ee||ce))return tF.Transition.toString({...l,property:dI})}}function gie(e,t){return typeof e==`boolean`?{draggable:e,droppable:!1}:{draggable:e?.draggable??t.draggable,droppable:e?.droppable??t.droppable}}function fI(e){if(!e)return!1;let t=e.data.current;return!!(t&&`sortable`in t&&typeof t.sortable==`object`&&`containerId`in t.sortable&&`items`in t.sortable&&`index`in t.sortable)}var _ie=[jF.Down,jF.Right,jF.Up,jF.Left],vie=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(_ie.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];a.getEnabled().forEach(n=>{if(!n||n!=null&&n.disabled)return;let a=i.get(n.id);if(a)switch(e.code){case jF.Down:r.top<a.top&&t.push(n);break;case jF.Up:r.top>a.top&&t.push(n);break;case jF.Left:r.left>a.left&&t.push(n);break;case jF.Right:r.left<a.left&&t.push(n)}});let c=Xne({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null}),l=dF(c,`id`);if(l===o?.id&&c.length>1&&(l=c[1].id),l!=null){let e=a.get(n.id),t=a.get(l),o=t?i.get(t.id):null,c=t?.node.current;if(c&&o&&e&&t){let n=gF(c).some((e,t)=>s[t]!==e),i=pI(e,t),a=yie(e,t),l=n||!i?{x:0,y:0}:{x:a?r.width-o.width:0,y:a?r.height-o.height:0},u={x:o.left,y:o.top};return l.x&&l.y?u:QP(u,l)}}}};function pI(e,t){return!fI(e)||!fI(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function yie(e,t){return!fI(e)||!fI(t)||!pI(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}var bie=1e9;function xie(e){return e/bie}function mI(e,t={}){if(e==null||Number.isNaN(e))return`—`;let n=Math.abs(e);return n===0?`$0`:t.compact&&n>=1e3?`$${new Intl.NumberFormat(`en-US`,{notation:`compact`,maximumFractionDigits:1}).format(e)}`:n>=1?`$${new Intl.NumberFormat(`en-US`,{minimumFractionDigits:2,maximumFractionDigits:2}).format(e)}`:`$${new Intl.NumberFormat(`en-US`,{maximumSignificantDigits:3,maximumFractionDigits:10}).format(e)}`}function Sie(e){return e===0?`$0`:Math.abs(e)>=1e3?mI(e,{compact:!0}):`$${new Intl.NumberFormat(`en-US`,{maximumSignificantDigits:2,maximumFractionDigits:10}).format(e)}`}function hI(e){return e==null?`—`:mI(xie(e))}function gI(e){if(e==null||e===``)return`—`;let t=typeof e==`string`?Number(e):e;return Number.isNaN(t)?String(e):`$${Number(t.toPrecision(8))}`}function _I(e,t=!1){return e==null?`—`:t&&Math.abs(e)>=1e4?new Intl.NumberFormat(`en-US`,{notation:`compact`,maximumFractionDigits:1}).format(e):new Intl.NumberFormat(`en-US`).format(e)}function vI(e){return e==null?`—`:e>=1e4?`${(e/1e3).toFixed(1)} s`:`${Math.round(e)} ms`}function yI(e){return e==null||!Number.isFinite(e)||e<0?`—`:`${e.toFixed(1)} tok/s`}function bI(e){return e==null||Number.isNaN(e)?`—`:`${(e*100).toFixed(e>=.999||e===0?0:1)}%`}function xI(e){return e?e>=1e6?`${Number((e/1e6).toFixed(2))}M`:e>=1e3?`${Math.round(e/1e3)}K`:String(e):`—`}function SI(e,t){let n=new Date(e),r=new Date,i=n.toDateString()===r.toDateString();return new Intl.DateTimeFormat(t===`zh`?`zh-CN`:`en-US`,{...i?{second:`2-digit`}:{month:`2-digit`,day:`2-digit`},hour:`2-digit`,minute:`2-digit`,hour12:!1}).format(n)}function CI(e,t){return e?new Intl.DateTimeFormat(t===`zh`?`zh-CN`:`en-US`,{year:`numeric`,month:`2-digit`,day:`2-digit`,hour:`2-digit`,minute:`2-digit`,hour12:!1}).format(new Date(e)):`—`}var wI=e=>e===`zh`?`zh-CN`:`en-US`;function Cie(e){let[t,n,r]=e.split(`-`).map(Number);return new Date(t,n-1,r)}function wie(e,t,n,r,i){return`${new Intl.DateTimeFormat(wI(n),{weekday:`short`,month:`short`,day:`numeric`,year:`numeric`}).format(Cie(e))} · ${t>0?`${t} ${r}`:i}`}var Tie=(e,t)=>new Intl.DateTimeFormat(wI(t),{month:`short`}).format(new Date(2026,e-1,1)),Eie=(e,t,n)=>new Intl.DateTimeFormat(wI(n),{month:`short`,year:`numeric`}).format(new Date(t,e-1,1)),Die=(e,t)=>new Intl.DateTimeFormat(wI(t),{weekday:`short`}).format(new Date(2026,7,3+e));function TI(e){if(!e?.base)return`—`;let t=e.base.input,n=e.base.output;return t==null&&n==null?`—`:`${gI(t)} / ${gI(n)}`}function EI(e){if(e==null)return``;if(typeof e==`string`)try{return JSON.stringify(JSON.parse(e),null,2)}catch{return e}return JSON.stringify(e,null,2)}function DI(e,t){return`astra claude --profile ${t}${e===`login`?` --login`:e===`status`?` --status`:``}`}function Oie(e){return e.reduce((e,t)=>({requests:e.requests+1,inputTokens:e.inputTokens+t.inputTokens,totalInputTokens:e.totalInputTokens+t.inputTokens+t.cacheReadTokens+t.cacheCreationTokens,outputTokens:e.outputTokens+t.outputTokens,failed:e.failed+ +(t.status===`error`),estimatedCostNanoUsd:e.estimatedCostNanoUsd+(t.estimatedCostNanoUsd??0)}),{requests:0,inputTokens:0,totalInputTokens:0,outputTokens:0,failed:0,estimatedCostNanoUsd:0})}function kie({enabled:e}){let{t}=K(),{toast:n}=pP(),r=lv(e),i=uv(),a=dv(),[o,s]=(0,p.useState)(``),[c,l]=(0,p.useState)(null),u=r.data?.mode??`gateway`,d=r.data?.profiles??[],f=r.data?.profileId??d[0]?.id??null,h=d.find(e=>e.id===f),g=u===`direct`,_=g&&h?.telemetryEnabled===!0,v=Nee(_?h?.id:null,_),y=i.isPending||a.isPending,b=async e=>{await Av.copy(e)&&(l(e),n(t(`common.copied`)))},x=e=>{if(e!==u&&!y&&r.data){if(e===`direct`&&!f){n(t(`clients.claudeDirect.needProfileDetail`),`error`);return}a.mutate({mode:e,profileId:f},{onError:e=>n($(e),`error`)})}},S=e=>{y||a.mutate({mode:u,profileId:e},{onError:e=>n($(e),`error`)})};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(VT,{title:t(`clients.claudeDirect.modeTitle`),footer:t(`clients.claudeDirect.modeFooter`),children:[(0,m.jsx)(Z,{label:t(`clients.claudeDirect.mode`),detail:t(g?`clients.claudeDirect.directDetail`:`clients.claudeDirect.gatewayDetail`),children:(0,m.jsx)(zT,{ariaLabel:t(`clients.claudeDirect.mode`),value:u,onChange:x,items:[{value:`gateway`,label:t(`clients.claudeDirect.gateway`)},{value:`direct`,label:t(`clients.claudeDirect.direct`)}]})}),(0,m.jsx)(`p`,{className:`px-4 pb-2 text-[11px] text-[var(--text-muted)]`,children:t(`clients.claudeDirect.modeNote`)})]}),r.isLoading&&(0,m.jsx)(QT,{lines:3}),r.isError&&(0,m.jsx)(`div`,{className:`mb-5`,children:(0,m.jsx)(lE,{tone:`danger`,title:t(`clients.claudeDirect.loadFailed`),children:$(r.error)})}),r.data&&(0,m.jsxs)(VT,{title:t(`clients.claudeDirect.profilesTitle`),footer:t(`clients.claudeDirect.profilesFooter`),children:[d.length===0&&(0,m.jsx)(`div`,{className:`px-4 py-3 text-[12px] text-[var(--text-secondary)]`,children:t(`clients.claudeDirect.noProfiles`)}),d.map(e=>(0,m.jsx)(Z,{icon:(0,m.jsx)(mS,{className:`size-4 text-[var(--text-secondary)]`}),label:(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`truncate`,children:e.name}),e.id===f&&(0,m.jsx)(Q,{tone:`accent`,children:t(`clients.claudeDirect.selectedBadge`)}),e.telemetryEnabled&&(0,m.jsx)(Q,{children:t(`clients.claudeDirect.statsBadge`)})]}),detail:e.configDirectory,selected:e.id===f,onClick:e.id===f?void 0:()=>S(e.id),children:e.id!==f&&(0,m.jsx)(`span`,{className:`text-[11px] text-[var(--text-secondary)]`,children:t(`clients.claudeDirect.makeSelected`)})},e.id)),(0,m.jsxs)(Z,{label:t(`clients.claudeDirect.addProfile`),detail:t(`clients.claudeDirect.addProfileDetail`),children:[(0,m.jsx)(UT,{className:`w-44`,value:o,maxLength:80,onChange:e=>s(e.target.value),placeholder:t(`clients.claudeDirect.namePlaceholder`),"aria-label":t(`clients.claudeDirect.name`)}),(0,m.jsx)(X,{size:`sm`,variant:`primary`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),disabled:y||!o.trim()||d.length>=20,loading:i.isPending,onClick:()=>{let e=o.trim();e&&i.mutate(e,{onSuccess:()=>{s(``),n(t(`clients.claudeDirect.profileCreated`,{name:e}),`success`)},onError:e=>n($(e),`error`)})},children:t(`common.add`)})]})]}),r.data&&!g&&(0,m.jsx)(lE,{tone:`info`,title:t(`clients.claudeDirect.gatewayTitle`),children:t(`clients.claudeDirect.gatewayHint`)}),r.data&&!g&&d.length>0&&(0,m.jsxs)(VT,{title:t(`clients.claudeDirect.launchTitle`),footer:t(`clients.claudeDirect.launchFooter`),children:[(0,m.jsx)(`p`,{className:`px-4 pt-3 pb-1 text-[11px] text-[var(--text-secondary)]`,children:t(`clients.claudeDirect.launchNote`)}),h&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(OI,{command:DI(`login`,h.id),copied:c,onCopy:b}),(0,m.jsx)(OI,{command:DI(`status`,h.id),copied:c,onCopy:b})]})]}),r.data&&g&&!h&&(0,m.jsx)(lE,{tone:`warning`,title:t(`clients.claudeDirect.needProfile`),children:t(`clients.claudeDirect.needProfileDetail`)}),r.data&&g&&h&&(0,m.jsxs)(VT,{title:t(`clients.claudeDirect.launchTitle`),footer:t(`clients.claudeDirect.launchFooter`),children:[(0,m.jsx)(lE,{tone:`warning`,title:t(`clients.claudeDirect.defaultTitle`),children:t(`clients.claudeDirect.defaultDetail`)}),(0,m.jsx)(`p`,{className:`px-4 pt-3 pb-1 text-[11px] text-[var(--text-secondary)]`,children:t(`clients.claudeDirect.launchNote`)}),(0,m.jsx)(OI,{command:DI(`login`,h.id),copied:c,onCopy:b}),(0,m.jsx)(OI,{command:DI(`status`,h.id),copied:c,onCopy:b}),(0,m.jsx)(OI,{command:DI(`run`,h.id),copied:c,onCopy:b}),(0,m.jsx)(`p`,{className:`px-4 py-2 text-[11px] text-[var(--text-muted)]`,children:t(`clients.claudeDirect.identityNote`)})]}),r.data&&g&&h&&(0,m.jsxs)(VT,{title:t(`clients.claudeDirect.statsTitle`),footer:t(`clients.claudeDirect.statsFooter`),children:[(0,m.jsx)(Z,{label:t(`clients.claudeDirect.statsConsent`),detail:t(`clients.claudeDirect.statsConsentDetail`),children:(0,m.jsx)(BT,{label:t(`clients.claudeDirect.statsConsent`),checked:h.telemetryEnabled,disabled:y,onChange:e=>{h&&!y&&a.mutate({mode:u,profileId:h.id,telemetryEnabled:e},{onError:e=>n($(e),`error`)})}})}),_&&(0,m.jsx)(Aie,{requests:v})]})]})}function OI({command:e,copied:t,onCopy:n}){let{t:r}=K();return(0,m.jsx)(Z,{label:(0,m.jsx)(`span`,{className:`font-mono text-[12px] break-all selectable`,children:e}),children:(0,m.jsx)(X,{size:`sm`,icon:(0,m.jsx)(Jx,{className:`size-3`}),variant:t===e?`primary`:`glass`,"aria-label":r(`common.copy`),title:r(`common.copy`),onClick:()=>void n(e),children:r(t===e?`common.copied`:`common.copy`)})})}function Aie({requests:e}){let{t,locale:n}=K(),r=e.data??[],i=Oie(r);return e.isLoading?(0,m.jsx)(`div`,{className:`p-4`,children:(0,m.jsx)(QT,{lines:3})}):e.isError?(0,m.jsx)(`div`,{className:`p-4`,children:(0,m.jsx)(lE,{tone:`danger`,title:t(`clients.claudeDirect.statsFailed`),children:$(e.error)})}):r.length===0?(0,m.jsx)($T,{icon:(0,m.jsx)(mS,{className:`size-6`}),title:t(`clients.claudeDirect.statsEmpty`),detail:t(`clients.claudeDirect.statsEmptyDetail`)}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Z,{label:t(`clients.claudeDirect.statsTotals`,{count:_I(i.requests)}),detail:t(`clients.claudeDirect.statsInDetail`,{input:_I(i.totalInputTokens),cache:_I(r.reduce((e,t)=>e+t.cacheReadTokens,0)),output:_I(i.outputTokens)})}),(0,m.jsx)(Z,{label:t(`clients.claudeDirect.statsCost`),detail:t(`clients.claudeDirect.statsCostDetail`),children:(0,m.jsx)(`span`,{className:`num text-[13px]`,children:hI(r.some(e=>e.estimatedCostNanoUsd!=null)?i.estimatedCostNanoUsd:null)})}),i.failed>0&&(0,m.jsx)(Z,{label:t(`clients.claudeDirect.statsFailedCount`,{count:_I(i.failed)}),children:(0,m.jsx)(Q,{tone:`red`,children:t(`clients.claudeDirect.statusError`)})}),r.map(e=>(0,m.jsx)(Z,{label:(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`truncate`,children:e.model}),e.status===`error`?(0,m.jsx)(Q,{tone:`red`,children:t(`clients.claudeDirect.statusError`)}):(0,m.jsx)(Q,{tone:`green`,children:t(`status.success`)})]}),detail:(0,m.jsx)(`span`,{className:`num`,children:[CI(e.occurredAtUtc,n),t(`clients.claudeDirect.tokensDetail`,{input:_I(e.inputTokens),output:_I(e.outputTokens)}),e.durationMs==null?null:vI(e.durationMs),e.accountUuid??null].filter(Boolean).join(` · `)}),children:(0,m.jsx)(`span`,{className:`num text-[13px]`,children:hI(e.estimatedCostNanoUsd)})},e.id))]})}var jie=function(e){return typeof window<`u`?matchMedia&&matchMedia(`(prefers-color-scheme: ${e})`):{matches:!1}},kI,Mie=(0,p.createContext)({appearance:`light`,setAppearance:function(){},isDarkMode:!1,themeMode:`light`,setThemeMode:function(){},browserPrefers:(kI=jie(`dark`))!=null&&kI.matches?`dark`:`light`}),Nie=function(){return(0,p.useContext)(Mie)},AI=(e,t)=>{if(t)return`row`;switch(e){case`horizontal`:return`row`;case`horizontal-reverse`:return`row-reverse`;case`vertical`:default:return`column`;case`vertical-reverse`:return`column-reverse`}},Pie=e=>{if(e)return[`space-between`,`space-around`,`space-evenly`].includes(e)},Fie=(e,t)=>AI(e,t)===`row`,jI=e=>typeof e==`number`?`${e}px`:e,MI=(0,p.memo)(({visible:e,flex:t,gap:n,direction:r,horizontal:i,align:a,justify:o,distribution:s,height:c,width:l,allowShrink:u,padding:d,paddingInline:f,paddingBlock:p,prefixCls:h,as:g=`div`,className:_,style:v,children:y,wrap:b,ref:x,...S})=>{let C=o||s,w=Fie(r,i)&&!l&&Pie(C)?`100%`:jI(l),T={...t===void 0?{}:{"--lobe-flex":String(t)},...r||i?{"--lobe-flex-direction":AI(r,i)}:{},...b===void 0?{}:{"--lobe-flex-wrap":b},...C===void 0?{}:{"--lobe-flex-justify":C},...a===void 0?{}:{"--lobe-flex-align":a},...w===void 0?{}:{"--lobe-flex-width":w},...c===void 0?{}:{"--lobe-flex-height":jI(c)},...d===void 0?{}:{"--lobe-flex-padding":jI(d)},...f===void 0?{}:{"--lobe-flex-padding-inline":jI(f)},...p===void 0?{}:{"--lobe-flex-padding-block":jI(p)},...n===void 0?{}:{"--lobe-flex-gap":jI(n)},...u?{minWidth:0}:{},...v},E=`lobe-flex`,D=[E,e===!1?`${E}--hidden`:void 0,h?`${h}-flex`:void 0,_].filter(Boolean).join(` `);return(0,m.jsx)(g,{ref:x,...S,className:D,style:T,children:y})}),Iie=({children:e,ref:t,...n})=>(0,m.jsx)(MI,{...n,align:`center`,justify:`center`,ref:t,children:e}),Lie=function(e,t){if(t){if(e&&t===`#000`)return`0 0 0 1px rgba(255,255,255,0.1) inset`;if(!e&&t===`#fff`)return`0 0 0 1px rgba(0,0,0,0.05) inset`}};function NI(e){"@babel/helpers - typeof";return NI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},NI(e)}var Rie=[`shape`,`color`,`background`,`size`,`style`,`iconMultiple`,`Icon`,`iconStyle`,`iconClassName`];function PI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function FI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?PI(Object(n),!0).forEach(function(t){zie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zie(e,t,n){return t=Bie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bie(e){var t=Vie(e,`string`);return NI(t)==`symbol`?t:String(t)}function Vie(e,t){if(NI(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(NI(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hie(e,t){if(e==null)return{};var n=Uie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Uie(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var II=(0,p.memo)(function(e){var t=e.shape,n=t===void 0?`circle`:t,r=e.color,i=r===void 0?`#fff`:r,a=e.background,o=e.size,s=e.style,c=e.iconMultiple,l=c===void 0?.75:c,u=e.Icon,d=e.iconStyle,f=e.iconClassName,p=Hie(e,Rie),h=Nie().isDarkMode;return(0,m.jsx)(Iie,FI(FI({flex:`none`,style:FI({background:a,borderRadius:n===`circle`?`50%`:Math.floor(o*.1),boxShadow:Lie(h,a),color:i,height:o,overflow:`hidden`,width:o},s)},p),{},{children:u&&(0,m.jsx)(u,{className:f,color:i,size:o,style:FI({transform:`scale(${l})`},d)})}))});function LI(e){"@babel/helpers - typeof";return LI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},LI(e)}var Wie=[`Icon`,`style`,`Text`,`color`,`size`,`spaceMultiple`,`textMultiple`,`extra`,`extraStyle`,`showText`,`showLogo`,`extraClassName`,`iconProps`,`inverse`];function RI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?RI(Object(n),!0).forEach(function(t){Gie(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Gie(e,t,n){return t=Kie(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Kie(e){var t=qie(e,`string`);return LI(t)==`symbol`?t:String(t)}function qie(e,t){if(LI(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(LI(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Jie(e,t){if(e==null)return{};var n=Yie(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Yie(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var BI=(0,p.memo)(function(e){var t=e.Icon,n=e.style,r=e.Text,i=e.color,a=e.size,o=a===void 0?24:a,s=e.spaceMultiple,c=s===void 0?1:s,l=e.textMultiple,u=l===void 0?1:l,d=e.extra,f=e.extraStyle,p=e.showText,h=p===void 0||p,g=e.showLogo,_=g===void 0||g,v=e.extraClassName,y=e.iconProps,b=e.inverse,x=Jie(e,Wie),S=t&&_&&(0,m.jsx)(t,zI(zI({size:o},y),{},{style:zI(b?{marginLeft:o*c}:{marginRight:o*c},y?.style)})),C=h&&r&&(0,m.jsx)(r,{size:o*u});return(0,m.jsxs)(MI,zI(zI({align:`center`,flex:`none`,horizontal:!0,justify:`flex-start`,style:zI({color:i},n)},x),{},{children:[b?(0,m.jsxs)(m.Fragment,{children:[C,S]}):(0,m.jsxs)(m.Fragment,{children:[S,C]}),d&&(0,m.jsx)(`span`,{className:v,style:zI({fontSize:o*u*.95,lineHeight:1},f),children:d})]}))}),Xie=/\p{Lu}?\p{Ll}+|[0-9]+|\p{Lu}+(?!\p{Ll})|\p{Emoji_Presentation}|\p{Extended_Pictographic}|\p{L}+/gu;function Zie(e){return Array.from(e.match(Xie)??[])}function VI(e){return Zie(e).map(e=>e.toLowerCase()).join(`-`)}var HI=function(e){var t=(0,p.useId)(),n=`lobe-icons-${VI(e)}-${t}`;return(0,p.useMemo)(function(){return{fill:`url(#${n})`,id:n}},[e])},UI=function(e,t){var n=(0,p.useId)();return(0,p.useMemo)(function(){return Array.from({length:t},function(t,r){var i=`lobe-icons-${VI(e)}-${r}-${n}`;return{fill:`url(#${i})`,id:i}})},[e,t,n])},WI=`Claude`,Qie=.8,$ie=.1,GI=`#D97757`,eae=GI,tae=`#fff`,nae=.75;function KI(e){"@babel/helpers - typeof";return KI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},KI(e)}var rae=[`size`,`style`];function qI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JI(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qI(Object(n),!0).forEach(function(t){iae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iae(e,t,n){return t=aae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aae(e){var t=oae(e,`string`);return KI(t)==`symbol`?t:String(t)}function oae(e,t){if(KI(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(KI(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function sae(e,t){if(e==null)return{};var n=cae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cae(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var YI=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=sae(e,rae);return(0,m.jsxs)(`svg`,JI(JI({fill:`currentColor`,fillRule:`evenodd`,height:n,style:JI({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:WI}),(0,m.jsx)(`path`,{d:`M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z`})]}))});function XI(e){"@babel/helpers - typeof";return XI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},XI(e)}function ZI(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function lae(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ZI(Object(n),!0).forEach(function(t){uae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ZI(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function uae(e,t,n){return t=dae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dae(e){var t=fae(e,`string`);return XI(t)==`symbol`?t:String(t)}function fae(e,t){if(XI(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(XI(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function pae(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var mae=(0,p.memo)(function(e){var t=Object.assign({},(pae(e),e));return(0,m.jsx)(II,lae({Icon:YI,"aria-label":WI,background:eae,color:tae,iconMultiple:nae},t))});function QI(e){"@babel/helpers - typeof";return QI=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},QI(e)}var hae=[`size`,`style`];function $I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function eL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?$I(Object(n),!0).forEach(function(t){gae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$I(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function gae(e,t,n){return t=_ae(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _ae(e){var t=vae(e,`string`);return QI(t)==`symbol`?t:String(t)}function vae(e,t){if(QI(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(QI(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function yae(e,t){if(e==null)return{};var n=bae(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function bae(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tL=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=yae(e,hae);return(0,m.jsxs)(`svg`,eL(eL({height:n,style:eL({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:WI}),(0,m.jsx)(`path`,{d:`M4.709 15.955l4.72-2.647.08-.23-.08-.128H9.2l-.79-.048-2.698-.073-2.339-.097-2.266-.122-.571-.121L0 11.784l.055-.352.48-.321.686.06 1.52.103 2.278.158 1.652.097 2.449.255h.389l.055-.157-.134-.098-.103-.097-2.358-1.596-2.552-1.688-1.336-.972-.724-.491-.364-.462-.158-1.008.656-.722.881.06.225.061.893.686 1.908 1.476 2.491 1.833.365.304.145-.103.019-.073-.164-.274-1.355-2.446-1.446-2.49-.644-1.032-.17-.619a2.97 2.97 0 01-.104-.729L6.283.134 6.696 0l.996.134.42.364.62 1.414 1.002 2.229 1.555 3.03.456.898.243.832.091.255h.158V9.01l.128-1.706.237-2.095.23-2.695.08-.76.376-.91.747-.492.584.28.48.685-.067.444-.286 1.851-.559 2.903-.364 1.942h.212l.243-.242.985-1.306 1.652-2.064.73-.82.85-.904.547-.431h1.033l.76 1.129-.34 1.166-1.064 1.347-.881 1.142-1.264 1.7-.79 1.36.073.11.188-.02 2.856-.606 1.543-.28 1.841-.315.833.388.091.395-.328.807-1.969.486-2.309.462-3.439.813-.042.03.049.061 1.549.146.662.036h1.622l3.02.225.79.522.474.638-.079.485-1.215.62-1.64-.389-3.829-.91-1.312-.329h-.182v.11l1.093 1.068 2.006 1.81 2.509 2.33.127.578-.322.455-.34-.049-2.205-1.657-.851-.747-1.926-1.62h-.128v.17l.444.649 2.345 3.521.122 1.08-.17.353-.608.213-.668-.122-1.374-1.925-1.415-2.167-1.143-1.943-.14.08-.674 7.254-.316.37-.729.28-.607-.461-.322-.747.322-1.476.389-1.924.315-1.53.286-1.9.17-.632-.012-.042-.14.018-1.434 1.967-2.18 2.945-1.726 1.845-.414.164-.717-.37.067-.662.401-.589 2.388-3.036 1.44-1.882.93-1.086-.006-.158h-.055L4.132 18.56l-1.13.146-.487-.456.061-.746.231-.243 1.908-1.312-.006.006z`,fill:`#D97757`,fillRule:`nonzero`})]}))});function nL(e){"@babel/helpers - typeof";return nL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nL(e)}var xae=[`size`,`style`];function rL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rL(Object(n),!0).forEach(function(t){Sae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Sae(e,t,n){return t=aL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aL(e){var t=oL(e,`string`);return nL(t)==`symbol`?t:String(t)}function oL(e,t){if(nL(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(nL(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function sL(e,t){if(e==null)return{};var n=cL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cL(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var lL=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=sL(e,xae);return(0,m.jsxs)(`svg`,iL(iL({fill:`currentColor`,fillRule:`nonzero`,height:n,style:iL({flex:`none`,lineHeight:1},r),viewBox:`0 0 97 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:WI}),(0,m.jsx)(`path`,{d:`M13.623 20.222c-3.417 0-5.753-1.901-6.855-4.827a12.992 12.992 0 01-.838-4.772c0-4.907 2.206-8.315 7.08-8.315 3.275 0 5.297 1.425 6.448 4.826h1.402l-.19-4.69C18.709 1.18 16.258.543 13.276.543c-4.2 0-7.775 1.874-9.763 5.254a11.357 11.357 0 00-1.511 5.872c0 3.753 1.777 7.08 5.113 8.926a11.95 11.95 0 005.943 1.398c3.254 0 5.835-.617 8.122-1.697l.593-5.172h-1.43c-.858 2.362-1.88 3.78-3.574 4.534-.831.373-1.88.564-3.146.564zm14.74-17.914L28.499 0h-.967L23.23 1.29v.699l1.907.882v16.142c0 1.1-.565 1.344-2.043 1.528v1.18h7.319v-1.18c-1.484-.184-2.042-.428-2.042-1.528V2.315l-.007-.007zm29.104 19.685h.565l4.95-.937v-1.208l-.695-.054c-1.157-.109-1.457-.346-1.457-1.29V9.897l.137-2.763h-.783l-4.678.672v1.181l.457.082c1.266.183 1.64.536 1.64 1.419v7.67c-1.212.937-2.369 1.527-3.744 1.527-1.525 0-2.471-.774-2.471-2.58V9.905l.136-2.763h-.804l-4.684.672v1.181l.484.082c1.266.183 1.64.536 1.64 1.418v7.08c0 3 1.703 4.426 4.412 4.426 2.07 0 3.765-1.1 5.038-2.627L57.474 22l-.007-.007zm-13.602-9.55c0-3.836-2.043-5.309-5.733-5.309-3.254 0-5.616 1.344-5.616 3.57 0 .666.238 1.175.721 1.528l2.478-.326c-.109-.746-.163-1.201-.163-1.391 0-1.263.674-1.901 2.042-1.901 2.022 0 3.044 1.419 3.044 3.7v.746l-5.106 1.527c-1.702.462-2.67.863-3.316 1.8a3.386 3.386 0 00-.476 1.9c0 2.172 1.497 3.706 4.057 3.706 1.852 0 3.493-.835 4.922-2.416.51 1.581 1.294 2.416 2.69 2.416 1.13 0 2.15-.455 3.063-1.344l-.272-.937a4.363 4.363 0 01-1.178.163c-.783 0-1.157-.617-1.157-1.826v-5.607zm-6.536 7.378c-1.396 0-2.26-.808-2.26-2.226 0-.964.456-1.528 1.43-1.854l4.139-1.31v3.965c-1.321.997-2.097 1.425-3.31 1.425zm43.095 1.235v-1.208l-.701-.054c-1.158-.109-1.45-.346-1.45-1.29V2.308L78.409 0h-.974l-4.302 1.29v.699l1.906.882V8.18a6.024 6.024 0 00-3.656-1.046c-4.276 0-7.612 3.245-7.612 8.098 0 3.998 2.397 6.761 6.346 6.761 2.042 0 3.819-.99 4.922-2.525l-.136 2.525h.571l4.95-.937zm-8.96-12.313c2.043 0 3.575 1.181 3.575 3.353v6.11a4.91 4.91 0 01-3.547 1.425c-2.928 0-4.412-2.308-4.412-5.39 0-3.462 1.695-5.498 4.385-5.498zm19.424 3.055c-.381-1.792-1.484-2.81-3.016-2.81-2.288 0-3.874 1.717-3.874 4.18 0 3.646 1.934 6.008 5.059 6.008a5.858 5.858 0 005.03-2.953l.913.245c-.408 3.163-3.281 5.525-6.808 5.525-4.14 0-6.992-3.054-6.992-7.399 0-4.378 3.098-7.46 7.237-7.46 3.09 0 5.27 1.853 5.97 5.07l-10.783 3.3V14.05l7.264-2.247v-.006z`})]}))});function uL(e){"@babel/helpers - typeof";return uL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uL(e)}var dL=[`type`];function fL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fL(Object(n),!0).forEach(function(t){mL(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mL(e,t,n){return t=hL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hL(e){var t=gL(e,`string`);return uL(t)==`symbol`?t:String(t)}function gL(e,t){if(uL(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(uL(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _L(e,t){if(e==null)return{};var n=vL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vL(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var yL=(0,p.memo)(function(e){var t=e.type,n=t===void 0?`mono`:t,r=_L(e,dL);return(0,m.jsx)(BI,pL({Icon:n===`color`?tL:YI,Text:lL,"aria-label":WI,spaceMultiple:$ie,textMultiple:Qie},r))}),bL=YI;bL.Color=tL,bL.Text=lL,bL.Combine=yL,bL.Avatar=mae,bL.colorPrimary=GI,bL.title=WI;var xL=`Gemini`,SL=.8,CL=.2,wL=`#fff`,TL=wL,EL=`#fff`,DL=.8;function OL(e){"@babel/helpers - typeof";return OL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},OL(e)}var kL=[`size`,`style`];function AL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?AL(Object(n),!0).forEach(function(t){ML(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ML(e,t,n){return t=NL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NL(e){var t=PL(e,`string`);return OL(t)==`symbol`?t:String(t)}function PL(e,t){if(OL(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(OL(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function FL(e,t){return BL(e)||zL(e,t)||LL(e,t)||IL()}function IL(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
70
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function LL(e,t){if(e){if(typeof e==`string`)return RL(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return RL(e,t)}}function RL(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function zL(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function BL(e){if(Array.isArray(e))return e}function VL(e,t){if(e==null)return{};var n=HL(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HL(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var UL=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=VL(e,kL),a=FL(UI(xL,3),3),o=a[0],s=a[1],c=a[2];return(0,m.jsxs)(`svg`,jL(jL({height:n,style:jL({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:xL}),(0,m.jsx)(`path`,{d:`M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z`,fill:`#3186FF`}),(0,m.jsx)(`path`,{d:`M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z`,fill:o.fill}),(0,m.jsx)(`path`,{d:`M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z`,fill:s.fill}),(0,m.jsx)(`path`,{d:`M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z`,fill:c.fill}),(0,m.jsxs)(`defs`,{children:[(0,m.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:o.id,x1:`7`,x2:`11`,y1:`15.5`,y2:`12`,children:[(0,m.jsx)(`stop`,{stopColor:`#08B962`}),(0,m.jsx)(`stop`,{offset:`1`,stopColor:`#08B962`,stopOpacity:`0`})]}),(0,m.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:s.id,x1:`8`,x2:`11.5`,y1:`5.5`,y2:`11`,children:[(0,m.jsx)(`stop`,{stopColor:`#F94543`}),(0,m.jsx)(`stop`,{offset:`1`,stopColor:`#F94543`,stopOpacity:`0`})]}),(0,m.jsxs)(`linearGradient`,{gradientUnits:`userSpaceOnUse`,id:c.id,x1:`3.5`,x2:`17.5`,y1:`13.5`,y2:`12`,children:[(0,m.jsx)(`stop`,{stopColor:`#FABC12`}),(0,m.jsx)(`stop`,{offset:`.46`,stopColor:`#FABC12`,stopOpacity:`0`})]})]})]}))});function WL(e){"@babel/helpers - typeof";return WL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},WL(e)}function GL(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function KL(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?GL(Object(n),!0).forEach(function(t){qL(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GL(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qL(e,t,n){return t=JL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JL(e){var t=YL(e,`string`);return WL(t)==`symbol`?t:String(t)}function YL(e,t){if(WL(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(WL(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function XL(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var ZL=(0,p.memo)(function(e){var t=Object.assign({},(XL(e),e));return(0,m.jsx)(II,KL({Icon:UL,"aria-label":xL,background:TL,color:EL,iconMultiple:DL},t))});function QL(e){"@babel/helpers - typeof";return QL=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},QL(e)}var $L=[`size`,`style`];function eR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function tR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?eR(Object(n),!0).forEach(function(t){nR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function nR(e,t,n){return t=rR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rR(e){var t=iR(e,`string`);return QL(t)==`symbol`?t:String(t)}function iR(e,t){if(QL(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(QL(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function aR(e,t){if(e==null)return{};var n=oR(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function oR(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var sR=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=aR(e,$L);return(0,m.jsxs)(`svg`,tR(tR({fill:`currentColor`,fillRule:`evenodd`,height:n,style:tR({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:xL}),(0,m.jsx)(`path`,{d:`M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z`})]}))});function cR(e){"@babel/helpers - typeof";return cR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},cR(e)}var lR=[`size`,`style`];function uR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uR(Object(n),!0).forEach(function(t){fR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fR(e,t,n){return t=pR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pR(e){var t=mR(e,`string`);return cR(t)==`symbol`?t:String(t)}function mR(e,t){if(cR(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(cR(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function hR(e,t){if(e==null)return{};var n=gR(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gR(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var _R=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=hR(e,lR);return(0,m.jsxs)(`svg`,dR(dR({fill:`currentColor`,fillRule:`evenodd`,height:n,style:dR({flex:`none`,lineHeight:1},r),viewBox:`0 0 98 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:xL}),(0,m.jsx)(`path`,{d:`M21.186 12.67c0 2.649-.786 4.759-2.359 6.33-1.766 1.87-4.09 2.806-6.969 2.806-2.756 0-5.088-.953-6.996-2.86C2.954 17.04 2 14.693 2 11.904c0-2.789.954-5.137 2.862-7.043C6.77 2.953 9.102 2 11.858 2c1.396 0 2.712.247 3.949.741 1.236.495 2.252 1.192 3.047 2.092l-1.749 1.748c-.583-.706-1.338-1.258-2.266-1.655a7.49 7.49 0 00-2.981-.596c-2.067 0-3.816.715-5.247 2.145-1.413 1.448-2.12 3.257-2.12 5.428s.707 3.98 2.12 5.428c1.431 1.43 3.18 2.145 5.247 2.145 1.89 0 3.463-.53 4.717-1.588 1.254-1.06 1.979-2.516 2.173-4.37h-6.89v-2.277h9.196c.088.495.132.971.132 1.43m7.652-4.633c1.946 0 3.494.629 4.645 1.886 1.15 1.257 1.726 3.018 1.726 5.282l-.027.268H24.877c.036 1.284.464 2.318 1.285 3.102.82.785 1.802 1.177 2.944 1.177 1.57 0 2.802-.784 3.694-2.354l2.195 1.07a6.54 6.54 0 01-2.45 2.595C31.503 21.688 30.32 22 29 22c-1.927 0-3.516-.66-4.765-1.98-1.249-1.319-1.873-2.986-1.873-5.001 0-1.997.606-3.66 1.82-4.988 1.213-1.329 2.766-1.993 4.657-1.993m-.053 2.247c-.928 0-1.727.285-2.396.856-.67.57-1.11 1.337-1.325 2.3h7.522c-.071-.91-.442-1.663-1.111-2.26-.67-.598-1.566-.896-2.69-.896M39.247 21.53h-2.455V8.465h2.348v1.813h.107c.374-.64.947-1.173 1.721-1.6.774-.427 1.544-.64 2.309-.64.96 0 1.806.222 2.535.667a3.931 3.931 0 011.601 1.84c1.085-1.671 2.589-2.507 4.51-2.507 1.513 0 2.678.462 3.496 1.387.819.924 1.228 2.24 1.228 3.946v8.16h-2.455v-7.786c0-1.227-.223-2.112-.668-2.654-.444-.542-1.192-.813-2.241-.813-.943 0-1.735.4-2.375 1.2-.64.8-.961 1.742-.961 2.826v7.227h-2.455v-7.786c0-1.227-.223-2.112-.668-2.654-.444-.542-1.191-.813-2.241-.813-.943 0-1.735.4-2.375 1.2-.64.8-.961 1.742-.961 2.826v7.227zM61.911 3.93c0 .48-.17.89-.508 1.228a1.675 1.675 0 01-1.23.508c-.48 0-.89-.17-1.229-.508a1.673 1.673 0 01-.508-1.228c0-.481.17-.89.508-1.229a1.675 1.675 0 011.23-.508c.48 0 .89.17 1.23.508.338.338.507.748.507 1.228m-.11 4.514v13.088h-2.857V8.443h2.857zM80 3.93c0 .48-.17.89-.508 1.228a1.675 1.675 0 01-1.23.508c-.48 0-.89-.17-1.229-.508a1.673 1.673 0 01-.508-1.228c0-.481.17-.89.508-1.229a1.675 1.675 0 011.23-.508c.48 0 .89.17 1.23.508.338.338.507.748.507 1.228m-.11 4.514v13.088h-2.857V8.443h2.857zm-16.343.022h2.349v1.813h.107c.373-.64.947-1.173 1.721-1.6a4.935 4.935 0 012.415-.64c1.601 0 2.833.458 3.696 1.373.863.916 1.294 2.218 1.294 3.907v8.213h-2.455v-8.053c-.053-2.133-1.13-3.2-3.229-3.2-.978 0-1.797.395-2.455 1.187-.658.79-.987 1.737-.987 2.84v7.226h-2.456V8.465z`})]}))});function vR(e){"@babel/helpers - typeof";return vR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vR(e)}var yR=[`type`];function bR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bR(Object(n),!0).forEach(function(t){SR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SR(e,t,n){return t=CR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CR(e){var t=wR(e,`string`);return vR(t)==`symbol`?t:String(t)}function wR(e,t){if(vR(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(vR(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function TR(e,t){if(e==null)return{};var n=ER(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ER(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var DR=(0,p.memo)(function(e){var t=e.type,n=t===void 0?`mono`:t,r=TR(e,yR);return(0,m.jsx)(BI,xR({Icon:n===`color`?UL:sR,Text:_R,"aria-label":xL,spaceMultiple:CL,textMultiple:SL},r))}),OR=sR;OR.Color=UL,OR.Text=_R,OR.Combine=DR,OR.Avatar=ZL,OR.colorPrimary=wL,OR.title=xL;var kR=`GithubCopilot`,AR=.75,jR=.3,MR=`#000`,NR=MR,PR=`#fff`,FR=.75;function IR(e){"@babel/helpers - typeof";return IR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},IR(e)}var LR=[`size`,`style`];function RR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?RR(Object(n),!0).forEach(function(t){BR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function BR(e,t,n){return t=VR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VR(e){var t=HR(e,`string`);return IR(t)==`symbol`?t:String(t)}function HR(e,t){if(IR(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(IR(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function UR(e,t){if(e==null)return{};var n=WR(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WR(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var GR=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=UR(e,LR);return(0,m.jsxs)(`svg`,zR(zR({fill:`currentColor`,fillRule:`evenodd`,height:n,style:zR({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:kR}),(0,m.jsx)(`path`,{d:`M19.245 5.364c1.322 1.36 1.877 3.216 2.11 5.817.622 0 1.2.135 1.592.654l.73.964c.21.278.323.61.323.955v2.62c0 .339-.173.669-.453.868C20.239 19.602 16.157 21.5 12 21.5c-4.6 0-9.205-2.583-11.547-4.258-.28-.2-.452-.53-.453-.868v-2.62c0-.345.113-.679.321-.956l.73-.963c.392-.517.974-.654 1.593-.654l.029-.297c.25-2.446.81-4.213 2.082-5.52 2.461-2.54 5.71-2.851 7.146-2.864h.198c1.436.013 4.685.323 7.146 2.864zm-7.244 4.328c-.284 0-.613.016-.962.05-.123.447-.305.85-.57 1.108-1.05 1.023-2.316 1.18-2.994 1.18-.638 0-1.306-.13-1.851-.464-.516.165-1.012.403-1.044.996a65.882 65.882 0 00-.063 2.884l-.002.48c-.002.563-.005 1.126-.013 1.69.002.326.204.63.51.765 2.482 1.102 4.83 1.657 6.99 1.657 2.156 0 4.504-.555 6.985-1.657a.854.854 0 00.51-.766c.03-1.682.006-3.372-.076-5.053-.031-.596-.528-.83-1.046-.996-.546.333-1.212.464-1.85.464-.677 0-1.942-.157-2.993-1.18-.266-.258-.447-.661-.57-1.108-.32-.032-.64-.049-.96-.05zm-2.525 4.013c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zm5 0c.539 0 .976.426.976.95v1.753c0 .525-.437.95-.976.95a.964.964 0 01-.976-.95v-1.752c0-.525.437-.951.976-.951zM7.635 5.087c-1.05.102-1.935.438-2.385.906-.975 1.037-.765 3.668-.21 4.224.405.394 1.17.657 1.995.657h.09c.649-.013 1.785-.176 2.73-1.11.435-.41.705-1.433.675-2.47-.03-.834-.27-1.52-.63-1.813-.39-.336-1.275-.482-2.265-.394zm6.465.394c-.36.292-.6.98-.63 1.813-.03 1.037.24 2.06.675 2.47.968.957 2.136 1.104 2.776 1.11h.044c.825 0 1.59-.263 1.995-.657.555-.556.765-3.187-.21-4.224-.45-.468-1.335-.804-2.385-.906-.99-.088-1.875.058-2.265.394zM12 7.615c-.24 0-.525.015-.84.044.03.16.045.336.06.526l-.001.159a2.94 2.94 0 01-.014.25c.225-.022.425-.027.612-.028h.366c.187 0 .387.006.612.028-.015-.146-.015-.277-.015-.409.015-.19.03-.365.06-.526a9.29 9.29 0 00-.84-.044z`})]}))});function KR(e){"@babel/helpers - typeof";return KR=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},KR(e)}function qR(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function JR(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?qR(Object(n),!0).forEach(function(t){YR(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qR(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function YR(e,t,n){return t=XR(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XR(e){var t=ZR(e,`string`);return KR(t)==`symbol`?t:String(t)}function ZR(e,t){if(KR(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(KR(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function QR(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var $R=(0,p.memo)(function(e){var t=Object.assign({},(QR(e),e));return(0,m.jsx)(II,JR({Icon:GR,"aria-label":kR,background:NR,color:PR,iconMultiple:FR},t))});function ez(e){"@babel/helpers - typeof";return ez=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},ez(e)}var tz=[`size`,`style`];function nz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nz(Object(n),!0).forEach(function(t){iz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iz(e,t,n){return t=az(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function az(e){var t=oz(e,`string`);return ez(t)==`symbol`?t:String(t)}function oz(e,t){if(ez(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(ez(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function sz(e,t){if(e==null)return{};var n=cz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cz(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var lz=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=sz(e,tz);return(0,m.jsxs)(`svg`,rz(rz({fill:`currentColor`,fillRule:`evenodd`,height:n,style:rz({flex:`none`,lineHeight:1},r),viewBox:`0 0 154 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:kR}),(0,m.jsx)(`path`,{d:`M2 11.875c0 5.256 3.013 8.506 8.19 8.506 4.76 0 8.027-2.72 8.027-7.722v-1.545h-7.982v2.928h4.095c-.161 1.96-1.68 3.25-4.049 3.25-2.6 0-4.347-1.498-4.347-4.334V10.7c0-2.582 1.518-4.31 4.186-4.31 1.91 0 3.267.922 3.68 2.374h3.865c-.437-3.366-3.427-5.625-7.499-5.625C5.29 3.138 2 6.366 2 11.875zm17.308-5.44h3.496V3h-3.496v3.435zm0 13.715h3.496V7.795h-3.496V20.15zm10.544-9.52h2.438V7.795h-2.438V3.922h-3.496v3.873H24.17v2.835h2.186v6.8c0 1.637.69 2.72 2.76 2.72h3.174v-2.766h-2.438V10.63zm3.994 9.52h3.727v-7.076h7.568v7.076h3.726V3.346h-3.726v6.777h-7.568V3.346h-3.727V20.15zM62.385 7.795h-3.497v6.523c0 1.868-1.012 3.205-2.668 3.205-1.38 0-2.162-.83-2.162-2.56V7.796h-3.52v7.722c0 2.95 1.357 4.864 4.118 4.864 1.955 0 3.29-.945 4.002-2.49h.207l.46 2.26h3.06V7.794zm1.698 12.355h3.06l.436-2.213h.207c.713 1.591 2.3 2.444 4.072 2.444 3.174 0 5.015-2.374 5.015-6.385 0-4.057-1.887-6.432-5.084-6.432-1.978 0-3.428 1.014-4.003 2.49h-.207V3h-3.496v17.15zm3.496-5.624v-1.06c0-1.845 1.173-3.043 2.99-3.043 1.657 0 2.738.853 2.738 2.581v1.983c0 1.521-.874 2.559-2.714 2.559-1.864 0-3.014-1.222-3.014-3.02zm21.8 5.855c4.21 0 7.177-2.351 7.683-6.063h-3.151c-.46 2.098-2.186 3.389-4.486 3.389-2.852 0-4.67-1.867-4.67-4.518v-2.743c0-2.882 1.887-4.634 4.716-4.634 2.53 0 4.072 1.36 4.44 3.366h3.151c-.368-3.665-3.243-6.063-7.499-6.063-5.038 0-7.982 3.274-7.982 8.668 0 5.348 2.898 8.598 7.798 8.598zm8.533-6.34c0 3.92 2.346 6.34 5.98 6.34 3.796 0 6.004-2.536 6.004-6.34 0-4.056-2.484-6.338-6.003-6.338-3.635 0-5.981 2.397-5.981 6.339zm2.898.992V13.12c0-1.89 1.22-3.066 3.083-3.066 1.817 0 3.082 1.152 3.082 3.066v1.913c0 1.96-1.288 2.997-3.082 2.997-1.749 0-3.083-1.015-3.083-2.997zM111.018 24h2.853v-6.132h.184c.667 1.453 2.116 2.398 4.186 2.398 3.083 0 4.992-2.26 4.992-6.293 0-3.942-1.863-6.27-4.992-6.27-1.863 0-3.427.852-4.186 2.397h-.184l-.345-2.167h-2.508V24zm6.211-6.063c-2.024 0-3.358-1.314-3.358-3.342v-1.222c0-2.005 1.31-3.342 3.381-3.342 2.002 0 3.037 1.152 3.037 2.881v2.144c0 1.815-1.16 2.849-2.973 2.88l-.087.001zm7.1-11.733h2.83V3.115h-2.83v3.09zm0 13.946h2.83V7.933h-2.83V20.15zm4.338 0h2.83V3.115h-2.83V20.15zm9.927-12.447c3.52 0 6.004 2.282 6.004 6.339 0 3.803-2.208 6.339-6.004 6.339-3.634 0-5.98-2.42-5.98-6.34 0-3.941 2.346-6.338 5.98-6.338zm10.922-3.689v3.919H152v2.328h-2.484v7.607H152v2.282h-2.99c-1.749 0-2.324-.922-2.324-2.282v-7.607h-2.185V7.933h2.185V4.014h2.83zm-10.922 6.04c-1.863 0-3.082 1.175-3.082 3.066v1.913c0 1.982 1.334 2.997 3.082 2.997 1.795 0 3.083-1.038 3.083-2.997V13.12c0-1.914-1.265-3.066-3.083-3.066z`})]}))});function uz(e){"@babel/helpers - typeof";return uz=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uz(e)}function dz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dz(Object(n),!0).forEach(function(t){pz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pz(e,t,n){return t=mz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mz(e){var t=hz(e,`string`);return uz(t)==`symbol`?t:String(t)}function hz(e,t){if(uz(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(uz(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gz(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var _z=(0,p.memo)(function(e){var t=Object.assign({},(gz(e),e));return(0,m.jsx)(BI,fz({Icon:GR,Text:lz,"aria-label":kR,spaceMultiple:jR,textMultiple:AR},t))}),vz=GR;vz.Text=lz,vz.Combine=_z,vz.Avatar=$R,vz.colorPrimary=MR,vz.title=kR;var yz=`Hermes Agent`,bz=.85,xz=.2,Sz=`#fff`,Cz=Sz,wz=`#000`,Tz=.75;function Ez(e){"@babel/helpers - typeof";return Ez=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Ez(e)}var Dz=[`size`,`style`];function Oz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Oz(Object(n),!0).forEach(function(t){Az(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Az(e,t,n){return t=jz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jz(e){var t=Mz(e,`string`);return Ez(t)==`symbol`?t:String(t)}function Mz(e,t){if(Ez(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Ez(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Nz(e,t){if(e==null)return{};var n=Pz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Pz(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Fz=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Nz(e,Dz);return(0,m.jsxs)(`svg`,kz(kz({fill:`currentColor`,fillRule:`evenodd`,height:n,style:kz({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:yz}),(0,m.jsx)(`path`,{d:`M5.938 12.835c.127-.039.285.02.373.143.028.038.036.092.046.14.003.014-.02.033-.04.05-.124-.098-.24-.194-.354-.291-.011-.01-.016-.027-.025-.042zM8.396 9.412c.195-.032.39-.06.588-.05a.54.54 0 01.148.026c.202.071.402.147.601.224.028.01.05.036.075.055l-.013.027a9.203 9.203 0 01-.26-.089c-.115-.038-.213-.077-.315-.098-.25-.05-.25-.046-.292-.014l.574.144c.275.139.55.276.823.417.042.022.09.057.107.098.026.06.063.076.117.072.066-.006.132-.017.213-.027l-.04.086c.051.08.142.02.216.064-.074.13-.247.09-.334.199l.061.074-.12.087c0 .106-.038.168-.306.243l.026.085-.196.042.07.124h-.25l-.007.137c-.081-.01-.161-.018-.244-.027l-.053.123c-.027-.008-.052-.011-.073-.023-.067-.038-.128-.056-.195.006-.019.017-.063.014-.093.008-.026-.006-.05-.029-.07-.042-.11.095-.11.095-.208.003-.057.046-.12.074-.186.011-.063.027-.123-.02-.178-.014-.07.007-.097-.035-.133-.07l-.13.033c-.013-.236-.194-.19-.34-.203.005-.072.05-.092.095-.094a.474.474 0 01.159.022c.164.05.32.12.496.138.203.021.405.029.601-.015.265-.059.52-.149.707-.365.049-.056.083-.127.117-.195.019-.038.02-.084-.02-.116a1.397 1.397 0 00-.382-.217c.024.12-.031.182-.115.221 0 .014-.004.025 0 .03.08.115.084.16-.007.267a1.39 1.39 0 01-.218.211.477.477 0 01-.641-.05 1.36 1.36 0 01-.133-.152c-.078-.107-.076-.108-.033-.236-.165-.08-.128-.226-.104-.364.008-.05.028-.096.049-.163-.04.014-.067.017-.087.032a.897.897 0 00-.316.357c-.007.016-.01.034-.02.047-.012.015-.034.038-.045.035-.02-.006-.037-.027-.05-.045-.008-.012-.007-.032-.012-.057h-.126l.053-.172a14.82 14.82 0 00-.039-.049l.11-.284c-.06.026-.091.044-.124.051-.03.007-.064 0-.095 0 0-.031-.01-.07.004-.092.149-.22.305-.428.593-.476z`}),(0,m.jsx)(`path`,{d:`M8.06 10.788c-.003-.038-.004-.075.037-.062.016.006.034.048.028.067-.01.04-.038.032-.064-.005z`}),(0,m.jsx)(`path`,{clipRule:`evenodd`,d:`M11.981.009c.226-.012.453-.011.679 0 .247.01.495.024.74.062.401.064.798.157 1.19.273.463.138.92.299 1.356.511a7.31 7.31 0 012.948 2.642c.292.469.536.963.739 1.479.219.556.446 1.11.623 1.683.204.654.329 1.326.458 1.997.097.504.182 1.01.29 1.511.156.722.329 1.44.494 2.16.186.812.4 1.615.63 2.415.102.355.193.713.282 1.072.11.436.202.876.254 1.323.031.278.066.557.073.837a7.56 7.56 0 01-.017.88c-.037.413-.1.818-.226 1.212a5.017 5.017 0 01-.915 1.649l-.13.156.018.023c.043-.023.088-.041.127-.068.2-.138.373-.307.531-.49.4-.46.721-.973.975-1.529a3.59 3.59 0 00.325-1.72c-.024-.424-.097-.834-.3-1.213-.013-.027-.015-.06-.03-.121.05.035.082.048.101.072.107.13.22.258.315.398.33.494.46 1.052.486 1.64a3.75 3.75 0 01-.47 1.97c-.36.655-.887 1.14-1.526 1.506-.193.111-.394.21-.595.308-.157.078-.248.211-.318.365a.522.522 0 00-.033.406.359.359 0 01.013.139c-.005.077-.077.155-.14.162-.054.006-.125-.043-.15-.116a1.206 1.206 0 01-.06-.233c-.04-.314-.155-.6-.308-.87a3.906 3.906 0 00-.73-.91 2.129 2.129 0 00-.897-.524 4.093 4.093 0 00-.692-.131c-.075-.008-.15-.04-.22.01.18.06.363.11.538.18.434.173.82.43 1.18.728.308.255.58.543.794.884.098.155.186.315.227.496.027.123.042.25.067.375.013.062-.002.109-.053.144-.047.033-.122.034-.163-.01a.455.455 0 01-.08-.14c-.03-.073-.038-.159-.078-.225a7.314 7.314 0 00-1.423-1.664c-.16-.137-.329-.26-.537-.323-.376-.114-.753-.203-1.15-.154-.213.025-.427.032-.64.053a1.6 1.6 0 00-.736.278 5.14 5.14 0 00-.834.72c-.329.342-.642.699-.955 1.055-.136.155-.264.319-.314.531a5.227 5.227 0 00-.012.051.096.096 0 01-.09.076h-.31c-.046 0-.082-.048-.072-.094.023-.108.045-.216.07-.324.075-.325.19-.635.368-.917.024-.039.04-.088.104-.08l.01.049.027.077c.28-.435.571-.834.996-1.135.283-.204.584-.378.89-.55a.196.196 0 00-.098-.002c-.162.043-.325.084-.485.134-.402.124-.764.33-1.11.566-.147.1-.298.193-.414.333a7.314 7.314 0 00-1.07 1.767.845.845 0 00-.04.12.075.075 0 01-.072.056h-.494c-.04 0-.062-.051-.036-.082.123-.14.246-.282.377-.415.275-.281.58-.532.777-.884.027-.048.063-.09.095-.135.238-.333.54-.607.818-.902.082-.086.175-.16.26-.24.029-.027.053-.057.079-.085l-.018-.025-.135.041c-.034.017-.07.031-.102.05-.248.144-.494.292-.743.433-.408.23-.825.439-1.209.711-.281.2-.591.358-.889.533-.02.012-.044.015-.08.028-.015-.135.143-.201.108-.336-.033.014-.064.02-.085.038-.111.096-.227.19-.328.296-.148.157-.284.325-.425.488-.125.143-.25.286-.373.431A.153.153 0 019.89 24H8.762a.316.316 0 00.016-.042c.028-.09.085-.172.083-.28-.091-.018-.162.001-.212.077a4.45 4.45 0 00-.136.215c-.01.016-.024.03-.042.03h-.093c-.019 0-.029-.022-.017-.037.071-.088.14-.178.209-.268.001-.002-.006-.012-.012-.024-.014.004-.03.006-.045.013-.176.09-.352.181-.527.274a.363.363 0 01-.168.042H5.202c-.026 0-.039-.036-.019-.053.21-.178.402-.374.558-.605.335-.496.538-1.047.667-1.629.004-.02-.003-.043-.006-.091-.037.048-.059.072-.076.1a1.943 1.943 0 01-.334.415c-.28.258-.59.448-.983.464-.297.012-.588 0-.865-.127-.46-.21-.722-.57-.794-1.072-.025-.17-.017-.171-.182-.219A3.513 3.513 0 011.97 20.6a2.286 2.286 0 01-.808-1.13 3.569 3.569 0 01-.16-1.245c.002-.034.016-.067.024-.1.032.023.046.043.05.066.033.153.059.308.096.46.086.355.257.664.516.92.258.256.571.419.91.532.358.118.717.138 1.07-.016a1.89 1.89 0 00.621-.452c.328-.348.533-.76.648-1.223.009-.034.005-.071.007-.11-.015.006-.026.006-.03.011-.031.05-.064.1-.093.152-.284.502-.679.887-1.196 1.135-.351.17-.718.255-1.11.159a1.607 1.607 0 01-.971-.64 2.006 2.006 0 01-.368-.924 2.903 2.903 0 01.02-.886c.05-.439.466-1.17.742-1.271-.02.063-.035.112-.053.16-.043.116-.097.227-.13.345a1.901 1.901 0 00-.05.82c.033.212.09.416.204.6.147.236.346.407.62.465.11.023.225.014.338.018a.576.576 0 00.386-.131c.164-.128.282-.292.366-.481.168-.375.24-.777.309-1.179.05-.296.093-.594.133-.893.039-.281.071-.563.104-.845.026-.232.048-.464.074-.696.024-.228.052-.455.076-.683.024-.227.047-.455.069-.683.013-.14.022-.28.034-.42l.037-.417c.022-.25.041-.5.065-.748.008-.082-.02-.132-.09-.177a2.46 2.46 0 01-.492-.418c-.1-.109-.188-.228-.282-.342-.035-.042-.056-.097-.116-.118a2.084 2.084 0 00.275.597c.06.092.131.176.196.265.063.086.182.115.234.226-.028.003-.046.01-.06.006a4.74 4.74 0 01-.22-.057 2.71 2.71 0 01-1.287-.819c-.435-.487-.656-1.076-.71-1.723a5.206 5.206 0 01.014-1.06c.072-.602.22-1.186.45-1.745.155-.376.338-.741.526-1.102.205-.393.466-.75.765-1.076.512-.559 1.104-1.024 1.726-1.448.717-.49 1.478-.898 2.277-1.233C8.244.828 8.767.632 9.31.494c.655-.166 1.31-.33 1.982-.415.229-.03.458-.058.688-.07zm-1.847 22.82c-.07.06-.147.111-.207.18-.238.27-.464.549-.668.869l-.044.108a.177.177 0 00.093-.057c.174-.19.351-.378.519-.574.104-.122.195-.255.288-.386.024-.034.03-.08.046-.12l-.027-.02zm1.65-3.695a5.51 5.51 0 00-.653.593l-.37.386a.963.963 0 01-.377.25 1.372 1.372 0 01-.467.09c-.044 0-.087.006-.151.012.028.058.043.097.064.131.15.242.301.482.45.724.136.22.276.438.399.666.068.125.105.267.156.404.077.027.14-.018.202-.048.29-.135.579-.274.867-.412.213-.101.437-.186.636-.31.347-.215.68-.455 1.018-.685.015-.01.026-.028.042-.046-.023-.019-.038-.037-.056-.044-.287-.111-.527-.3-.77-.482a5.319 5.319 0 01-.506-.42 1.757 1.757 0 01-.41-.653c-.019-.049-.045-.095-.075-.156zm-5.847.264c-.06.096-.097.194-.132.293a3.38 3.38 0 01-.555 1.01c-.2.25-.455.412-.762.493-.23.06-.464.076-.7.07-.048-.002-.097.002-.158.005.016.04.021.066.035.085.1.145.23.246.4.295.157.046.316.034.498.023.181-.037.343-.115.485-.234.238-.199.402-.454.536-.732.175-.363.264-.751.342-1.144.01-.053.008-.11.011-.164zm14.945-4.586c.008.029.016.057.027.107.024.155.051.31.072.464.03.219.067.437.078.657.017.344.027.689-.014 1.033-.037.315-.063.633-.116.946a6.153 6.153 0 01-.46 1.518c-.008.018-.01.039-.02.082.047-.03.077-.042.098-.064.085-.083.17-.167.248-.255.271-.305.458-.66.596-1.043.18-.498.228-1.011.145-1.531-.103-.65-.33-1.263-.597-1.881a9.055 9.055 0 00-.024-.055l-.033.022zM5.797 8.29a.26.26 0 00.018.153c.124.251.25.501.379.75.025.049.066.09.03.163-.284.06-.578.119-.88.255.059.038.097.06.132.087.042.032.112.058.09.12-.01.033-.075.048-.117.072.017.01.043.021.067.036.166.102.33.207.447.368.138.192.229.404.188.644-.079.469-.306.85-.69 1.132-.054.04-.106.083-.161.122a.243.243 0 00-.103.245.77.77 0 00.055.195c.083.196.22.35.375.492.083.076.159.164.222.257a.37.37 0 01.025.377c-.023.05-.05.099-.076.148-.03.06-.028.111.022.162.041.042.08.089.112.138.038.058.078.079.147.05a.486.486 0 01.333-.006c.16.046.302.126.444.21.13.077.264.149.4.219.067.035.14.05.219.026.071-.022.124.01.145.076.02.064-.003.108-.074.139-.07.03-.137.063-.209.088-.1.035-.201.073-.314.077-.013-.107.11-.088.127-.159-.206-.126-.643-.145-.801-.034.063.112.035.21-.096.313-.13-.1-.025-.202.002-.3a.209.209 0 00-.249.17c-.015.101.067.216.178.224.108.007.218-.005.326-.012.06-.005.12-.027.199 0-.103.123-.248.127-.357.19.002.05.07.086.019.131-.053.048-.095-.001-.132-.03-.08-.063-.16-.126-.231-.197a.474.474 0 01-.157-.311.52.52 0 00-.043-.172c-.032-.074-.032-.137.033-.19-.018-.03-.028-.053-.045-.072a1.222 1.222 0 01-.196-.369c-.053-.137-.046-.264.048-.381.024-.03.05-.06.064-.095a.664.664 0 00.047-.168c.017-.165-.064-.287-.182-.387-.186-.156-.36-.322-.46-.551-.005-.011-.024-.017-.037-.026-.011.017-.024.027-.025.038-.019.185-.045.37-.052.557-.014.377.058.743.162 1.104.118.41.289.798.488 1.173.267.502.537 1.002.812 1.5.055.098.13.189.208.27.198.202.452.272.724.273.202 0 .404-.006.605-.026.295-.03.59-.073.884-.113.183-.025.365-.057.548-.08.21-.026.38.073.522.21.16.156.305.327.447.5.22.265.397.56.554.867.05.098.07.1.147.03.13-.121.26-.242.394-.36.067-.059.088-.12.067-.213a3.535 3.535 0 01-.085-.796c.002-.157.006-.314.018-.471.015-.224.03-.45.06-.672a59.114 59.114 0 01.362-2.298c.087-.493.182-.984.268-1.477.06-.347.118-.694.162-1.043.034-.273.055-.55.063-.825.011-.332.003-.665.002-.998 0-.077.004-.155-.01-.23-.028-.142-.01-.155-.162-.19a5.826 5.826 0 00-.607-.107c-.146-.018-.207-.053-.221-.19-.006-.049-.025-.098-.041-.146-.009-.025-.024-.048-.046-.09l-.025.264c-.009.096-.029.116-.127.115-.055 0-.11-.008-.164-.008-.476 0-.952-.008-1.426.032-.095.008-.173-.015-.226-.103-.04-.066-.088-.126-.134-.186-.063-.084-.086-.093-.182-.06-.195.068-.388.138-.582.21a2.71 2.71 0 00-.675.394.986.986 0 01-.323.168c-.033.01-.07.008-.127.013.02-.066.024-.114.047-.15.064-.105.135-.205.205-.306.023-.033.049-.063.073-.095l-.015-.023-.201.037c-.146.04-.296.07-.437.122-.148.053-.266.023-.386-.072a3.623 3.623 0 01-.733-.786l-.093-.132zm8.592 8.963l-.147.09c-.22.134-.44.266-.659.402-.093.058-.184.12-.27.188-.085.07-.124.161-.072.272.047.1.093.2.147.294.047.08.124.138.213.147.11.01.228.012.336-.012.217-.05.372-.205.528-.357a.291.291 0 00.087-.308c-.046-.18-.079-.365-.118-.547-.011-.052-.027-.103-.045-.169zm-.257-2.409c-.12.291-.205.597-.325.91-.151.433-.294.87-.435 1.323.036-.01.054-.01.067-.018.261-.16.522-.324.785-.484.054-.033.071-.078.065-.138-.012-.13-.024-.262-.034-.393l-.068-.886c-.008-.103-.02-.206-.029-.31-.009 0-.017-.002-.026-.004zm3.081-8.13l.099.285c.08.231.159.463.24.714l.58 1.952c.187.63.372 1.262.558 1.893.114.382.235.762.343 1.146.072.257.126.519.186.799.044.206.087.413.127.64.034.106.023.226.077.325l.025-.006-.068-.362c-.038-.206-.077-.412-.113-.638-.015-.07-.029-.141-.046-.211-.095-.396-.177-.796-.29-1.187-.196-.685-.413-1.364-.618-2.046-.165-.549-.322-1.1-.488-1.648-.069-.227-.15-.45-.226-.695l-.117-.336c-.037-.107-.075-.216-.115-.322-.04-.106-.084-.21-.127-.314a7.558 7.558 0 01-.027.01zM6.225 14.304c-.063-.001-.115.014-.134.083a.35.35 0 00.41.012 4.533 4.533 0 00-.276-.095zM5.23 11.98c-.026-.027-.057-.048-.075.002-.012.032-.007.07-.01.113.082-.037.082-.037.085-.115zm.062-1.189a.135.135 0 00-.088.056.197.197 0 00-.025.11c.005.152.01.306.026.457a.751.751 0 00.066.218c.061.136.157.167.288.101.055-.027.06-.054.025-.11a4.52 4.52 0 01-.129-.211c-.015-.068-.066-.131-.033-.207.04-.09-.076-.116-.074-.19V10.874c-.003-.038-.006-.087-.056-.083zm-.017-.968a.867.867 0 00-.467.127c-.076.045-.084.07-.05.158.034.087.07.173.115.254.064.117.09.125.21.077a.657.657 0 01.336-.053c.202.022.357.136.504.264l.092.077c.007-.006.014-.013.022-.018-.019-.105-.035-.226-.149-.264-.157-.053-.324-.075-.508-.117l-.24-.005c.24-.169.452-.044.687.009-.063-.115-.153-.147-.23-.193-.082-.05-.17-.092-.25-.144-.06-.037-.12-.08-.072-.172zm10.233.325c-.23-.01-.427.08-.608.211-.034.026-.06.065-.105.117.087.026.15.046.232.065.044-.015.088-.03.13-.046.306-.114.61-.115.904.031.126.063.237.04.366-.005-.02-.031-.03-.054-.045-.071a.986.986 0 00-.448-.273c-.14-.044-.284-.024-.426-.03zM7.99 6.483a.308.308 0 00.002.133c.08.321.156.643.242.962.104.387.27.75.456 1.103.02.037.061.08.098.087a.404.404 0 00.253-.051l-.472-.84c-.23-.448-.405-.92-.579-1.394zM10.397.497c-.2-.008-.405.004-.603.034-.236.035-.47.087-.7.152-.287.08-.569.18-.852.273-.04.013-.074.038-.11.058.028.014.05.018.07.014.287-.068.58-.085.873-.09.134-.002.269.009.402.025.19.024.382.048.57.09.456.104.874.3 1.265.556.464.306.888.66 1.257 1.078.205.232.395.475.56.739.17.274.315.561.449.856.273.601.456 1.232.6 1.876.04.173.07.348.1.524.017.104.065.167.17.19.122.028.2.105.22.251-.003.102-.06.174-.129.24a1.065 1.065 0 00-.268.358.164.164 0 00.083-.039c.08-.086.162-.172.235-.265a.56.56 0 00.13-.333c.009-.05.022-.1.024-.15.007-.124-.017-.15-.143-.168-.025-.004-.049-.014-.073-.015-.082-.007-.125-.063-.137-.131-.033-.198-.004-.355.247-.408.086-.018.174-.03.26-.042.158-.023.315-.053.473-.067.14-.012.19.033.226.167.008.029.018.057.021.087.019.179-.008.225-.141.288-.027.013-.055.024-.078.042a.148.148 0 00-.051.067c-.039.144.073.382.206.445l.673.32c.023.011.05.015.075.023l.018-.026c-.015-.008-.032-.013-.044-.024a2.27 2.27 0 00-.544-.32 4.898 4.898 0 00-.173-.075.203.203 0 01-.126-.191c-.003-.085.045-.154.128-.187l.059-.025c.099-.044.118-.076.112-.187a.384.384 0 00-.008-.063c-.067-.294-.123-.59-.205-.88a9.478 9.478 0 00-.826-2.036 7.465 7.465 0 00-1.39-1.805 4.536 4.536 0 00-1.177-.824 3.656 3.656 0 00-1.016-.328 6.155 6.155 0 00-.712-.074zm6.719 5.955c.01.014.018.028.038.034l-.022-.044-.016.01zM4.103 3.917a.062.062 0 01-.03.012.455.455 0 01-.04.039c-.01.01-.02.02-.045.04l-.363.354c-.088.085-.17.178-.266.253-.284.22-.425.53-.544.855a.132.132 0 00-.007.071c.013.055.033.108.052.168l.074.026c-.017.056-.03.105-.047.152-.058.164-.118.327-.175.491-.005.015.008.036.019.077.08-.175.158-.33.225-.489.228-.544.484-1.074.819-1.561.09-.133.182-.266.283-.401.004-.006.007-.013.022-.03.001-.016.003-.032.015-.04l.008-.017zm12.976 2.408a.023.023 0 01.009.019.073.073 0 00-.006.01.188.188 0 00.007.02l.018.022c.002-.007.007-.016.005-.021-.003-.01-.012-.018-.02-.038a1.331 1.331 0 01-.013-.012zM4.199 4.48c-.003.004-.008.008-.027.014-.005.013-.011.025-.031.047a2.085 2.085 0 01-.124.167c-.048.07-.116.055-.181.041-.134-.028-.228.016-.287.143-.089.187-.187.37-.273.56-.049.108-.11.216-.118.36.081.003.154.007.228.008h.228a2.563 2.563 0 01-.079.264c-.01.052-.022.103-.033.155l.02.004c.018-.046.037-.092.067-.153.066-.142.13-.285.2-.426.02-.04.034-.1.116-.092 0 .043.004.084 0 .124-.005.045-.017.09-.028.143.141.043.086.174.115.269.102-.022.104-.195.248-.144v.205l.017.002.439-1.059c-.13 0-.246-.02-.358.033-.024.011-.058-.001-.108-.004.075-.15.139-.278.211-.417a.128.128 0 01.025-.036c0-.015-.001-.03.008-.038l.006-.02c-.005.006-.01.011-.028.017-.004.012-.009.024-.026.045a.085.085 0 01-.032.033c-.123.157-.09.164-.258.106-.079-.027-.078-.028-.047-.144.028-.046.056-.093.098-.15 0-.016-.001-.032.007-.042L4.2 4.48zm2.073-.67c-.003.006-.007.011-.027.016-.094.125-.194.246-.28.377-.155.238-.301.481-.451.723-.14.224-.345.368-.575.481-.017.008-.04.006-.079.011.012-.059.016-.109.033-.153a6.076 6.076 0 01.229-.518l-.007-.02a.138.138 0 01-.035.025c-.028.05-.055.1-.093.164-.26.424-.443.817-.442.95.024.004.048.011.073.013.177.013.188.007.26-.165.03-.07.077-.12.147-.15l.175-.07c.044-.018.085-.057.146-.032.003.05-.01.11.014.145.042.062.044.125.047.193.002.049.017.098.026.147.029-.034.039-.065.05-.097.142-.39.277-.782.428-1.17.1-.256.22-.504.33-.756.013-.03.013-.067.03-.092V3.81zm3.987-.34c0 .045.01.084.021.123.042.16.094.318.124.48.024.133.023.27.028.406 0 .033-.019.067-.032.11-.094-.058-.047-.158-.106-.215h-.125c-.015.072-.01.152-.046.2-.066.085-.155.154-.236.227-.043.038-.078.018-.103-.025l-.046-.087c-.065.035-.117.069-.172.093-.116.051-.235.095-.35.147-.085.038-.09.053-.07.147.014.075.034.148.047.223.013.072.05.109.123.124.233.05.462.115.657.265.058-.102.058-.102.168-.151.03-.014.06-.03.092-.042.08-.03.115-.017.15.06.023.048.041.098.066.158.06-.14-.042-.267.017-.416.157.18.24.39.375.567a.235.235 0 00.022-.098c.002-.124 0-.247.002-.371 0-.034.013-.067.02-.1l.032-.003c.11.155.13.354.226.52a3.036 3.036 0 00-.01-.392c-.004-.045 0-.074.05-.088.08.036.116.14.215.158-.03-.275-.423-1.137-.798-1.635-.114-.127-.2-.28-.34-.386zm-2.667.696c-.019.034-.03.05-.037.067-.061.185-.125.37-.18.556-.031.105-.087.169-.195.19-.09.019-.178.052-.268.073-.038.009-.089.015-.118-.003-.024-.016-.025-.069-.036-.106-.064.076-.082.087-.17.047-.133-.062-.262-.135-.393-.201-.048-.025-.093-.063-.17-.03-.043.12-.091.25-.137.382-.099.28-.087.242.095.453.046.048.102.03.154.023.054-.009.106-.03.16-.036.13-.013.26-.08.367-.015.204-.064.387-.122.571-.178.05-.015.089.005.114.054.022.042.034.093.082.121.038-.056-.013-.128.063-.178l.14.241-.042-1.46zm.278.358c-.096-.01-.107.01-.11.108-.002.038-.003.078.002.115.03.2.099.386.174.57.002.006.012.01.022.015l.078-.05c.052.036.081.088.153.088.205-.002.41.014.616.012.099-.001.158.042.205.12.018.03.024.077.088.066l-.08-.394c-.05-.195-.085-.395-.172-.589-.057.057-.114.068-.18.046a.72.72 0 00-.135-.028c-.22-.028-.44-.059-.66-.08zm10.254-1.727c.089.163.155.316.139.491-.016.168.026.342-.044.516-.047-.033-.088-.082-.112-.075-.117.035-.164-.057-.227-.115a4.772 4.772 0 01-.286-.29l-.104-.113a4.856 4.856 0 01-.023.019c.035.046.07.093.11.156.04.064.084.127.122.193.034.058.065.118.031.205-.082-.01-.164-.019-.246-.032-.06-.01-.101 0-.124.07-.031.098-.037.096-.15.09.02.042.036.08.057.116.041.074.03.138-.03.196-.06.06-.118.122-.178.181a.175.175 0 01-.185.046c-.222-.061-.447-.113-.67-.174-.032-.009-.063-.04-.086-.068-.03-.04-.052-.087-.08-.13-.044-.07-.09-.138-.136-.207a.18.18 0 00-.014.105c.012.127.03.253.035.38.005.1-.024.12-.121.104-.104-.017-.206-.04-.31-.058-.064-.012-.131-.028-.202.03l.081.208c.09 0 .166-.01.237.002a.819.819 0 01.458.251c.078.083.154.168.241.26l.018-.005c-.004-.006-.008-.013-.01-.04.014-.056-.062-.118.018-.178.031.03.064.057.088.09.058.078.111.159.169.257l.089.141.024-.013a2093.819 2093.819 0 01-.427-.934c.055.007.083.007.108.016.193.07.385.142.577.216.074.028.147.06.219.094.062.028.112.018.157-.033.05-.056.102-.112.154-.167.05-.051.095-.046.132.014.016.025.026.053.04.08.071.138.143.277.217.433l.159.308.025-.011c-.044-.106-.07-.218-.138-.334-.057-.182-.168-.346-.206-.545.136.034.362.326.567.732l.057.074.018-.011a1.563 1.563 0 01-.052-.127c-.046-.145-.097-.29-.136-.436-.022-.083-.036-.173.022-.26l.109.058-.026-.207.027-.016c.022.02.05.036.065.06.073.108.143.22.215.33.01.016.029.029.043.043-.036-.217-.2-.38-.229-.626l.155.112c.014-.166.012-.319.042-.465.032-.158-.023-.297-.063-.445.024.004.036.006.055.025.092.124.183.249.277.371.02.027.05.047.069.087l.04.063.019-.015a.293.293 0 01-.053-.082 27.922 27.922 0 01-.332-.49c-.221-.311-.363-.467-.485-.521zm-6.57.327c-.003.161.092.275.069.415l-.368.087c.09.139.032.237-.052.331-.05.057-.092.122-.143.178-.037.04-.046.078-.018.126l.16.275c.029.048.072.066.128.064.076-.003.152 0 .228-.001.116-.003.216.022.275.137.006.014.02.024.044.052.004-.059-.003-.098.01-.13.016-.04.04-.099.072-.108.084-.023.173-.024.26-.03.013-.001.027.018.04.029l.071.065c.019-.11-.082-.198-.024-.31l.126.04c-.026-.123-.07-.245-.071-.366 0-.123.051-.243.115-.36.107.062.16.156.234.253.183.265.36.533.494.834.165-.078.27.068.407.088-.003-.106-.133-.441-.197-.492a.142.142 0 00-.102-.028c-.06.011-.119.039-.191.063-.025-.039-.056-.078-.077-.122a3.936 3.936 0 00-.473-.783c-.076-.094-.16-.182-.228-.26l-.391.285c-.049.035-.094.03-.132-.017l-.169-.207c-.025-.03-.053-.059-.097-.108z`})]}))});function Iz(e){"@babel/helpers - typeof";return Iz=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Iz(e)}function Lz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Rz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Lz(Object(n),!0).forEach(function(t){zz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Lz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zz(e,t,n){return t=Bz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bz(e){var t=Vz(e,`string`);return Iz(t)==`symbol`?t:String(t)}function Vz(e,t){if(Iz(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Iz(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Hz(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var Uz=(0,p.memo)(function(e){var t=Object.assign({},(Hz(e),e));return(0,m.jsx)(II,Rz({Icon:Fz,"aria-label":yz,background:Cz,color:wz,iconMultiple:Tz},t))});function Wz(e){"@babel/helpers - typeof";return Wz=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Wz(e)}var Gz=[`size`,`style`];function Kz(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qz(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Kz(Object(n),!0).forEach(function(t){Jz(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kz(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Jz(e,t,n){return t=Yz(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Yz(e){var t=Xz(e,`string`);return Wz(t)==`symbol`?t:String(t)}function Xz(e,t){if(Wz(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Wz(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Zz(e,t){if(e==null)return{};var n=Qz(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Qz(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var $z=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Zz(e,Gz);return(0,m.jsxs)(`svg`,qz(qz({fill:`currentColor`,fillRule:`evenodd`,height:n,style:qz({flex:`none`,lineHeight:1},r),viewBox:`0 0 52 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:yz}),(0,m.jsx)(`path`,{d:`M50.162 4.173c-.43-1.122-.852-2.286-1.54-3.216-.394-.535-1.08-.769-1.607-.313-.726.627-.218 1.8.262 2.449 1.394 1.88 3.44 3.138 3.323 5.599-.062 1.284-1.18 2.022-2.353 2.141-1.12.113-2.154-.162-3.1-.826a.28.28 0 01-.119-.23c.001-1.876.004-2.981.008-3.314 0-.039.006-.07.02-.093a.116.116 0 01.21.02c.238.707.456 1.325.654 1.856.331.89.945 2.393 2.164 2.184.704-.12.928-.736.865-1.386-.166-1.724-1.776-2.9-2.804-4.066-.472-.534-.957-1.242-1.09-1.949-.09-.478-.089-.885.004-1.22C45.389.616 46.598.007 47.809 0a3.947 3.947 0 012.478.836c.04.03.07.075.08.125.03.125.038.293.025.505-.04.62-.053 1.462-.04 2.525a.56.56 0 01-.028.177.086.086 0 01-.13.046.086.086 0 01-.032-.041zM5.581 4.703c.392 0 .851 0 1.38-.002A.04.04 0 007 4.663c.02-1.05.005-2.016-.047-2.9C6.904.928 6.72.611 5.937.388c-.07-.02-.105-.072-.11-.146A.095.095 0 015.923.14l4.127.001c.02 0 .038.006.054.017.016.01.028.025.035.043a.134.134 0 01-.006.122c-.016.027-.05.048-.103.065a4.257 4.257 0 00-.428.15c-.612.3-.613 1.272-.616 1.853-.01 1.65-.013 3.487-.009 5.512.002.667.035 1.211.101 1.632.075.48.336.753.786.88a.944.944 0 01.261.104.09.09 0 01.002.144.09.09 0 01-.052.018c-2.354.001-3.734.002-4.14 0a.14.14 0 01-.056-.01.103.103 0 01.018-.191c.365-.108.666-.194.849-.513.118-.208.185-.466.2-.776a50.35 50.35 0 00.047-4.045.03.03 0 00-.009-.02.028.028 0 00-.019-.007 88.384 88.384 0 00-1.384-.007c-.71 0-1.171.002-1.383.007a.028.028 0 00-.02.007.03.03 0 00-.009.02 50.35 50.35 0 00.047 4.045c.016.31.083.568.201.776.183.32.484.405.85.513a.103.103 0 01.017.19.14.14 0 01-.057.012l-4.14-.001a.09.09 0 01-.05-.162.944.944 0 01.262-.105c.45-.126.71-.4.786-.879.065-.421.1-.965.1-1.632.005-2.025.002-3.862-.008-5.512C2.174 1.81 2.173.838 1.56.538a4.256 4.256 0 00-.429-.15C1.08.371 1.045.35 1.03.323A.134.134 0 011.024.2a.094.094 0 01.035-.043.097.097 0 01.054-.017H5.24a.096.096 0 01.096.101c-.006.074-.04.126-.11.146-.783.223-.967.54-1.016 1.375-.053.884-.068 1.85-.047 2.9a.04.04 0 00.039.038c.528.002.988.002 1.38.002zM33.133 1.32a.04.04 0 00-.07.01 4064.354 4064.354 0 00-2.405 9.177.363.363 0 01-.056.142.108.108 0 01-.183-.045l-2.546-9.19a.037.037 0 00-.04-.024.037.037 0 00-.031.034c.007 2.036.01 3.607.007 4.713-.001.855.049 1.622.15 2.304.114.785.324 1.546.974 2.064a.093.093 0 01.017.127.094.094 0 01-.036.03.237.237 0 01-.098.017c-1.207.005-2.038.005-2.491-.002a.105.105 0 01-.053-.01.112.112 0 01-.045-.147.114.114 0 01.037-.043c.594-.414.813-.984.934-1.663a14.95 14.95 0 00.194-1.916c.002-.042.01-1.32.026-3.832a11.793 11.793 0 00-.114-1.69c-.043-.309-.159-.552-.347-.73-.16-.15-.677-.229-.731-.35a.108.108 0 01.007-.104.108.108 0 01.091-.05L29.546.14a.152.152 0 01.147.113c.95 3.497 1.478 5.445 1.585 5.842.01.037.024.062.042.076a.036.036 0 00.05-.004.036.036 0 00.008-.016L32.932.233a.123.123 0 01.119-.092C34.76.14 35.8.14 36.174.144a.13.13 0 01.093.04c.013.015.023.031.028.05a.107.107 0 01-.024.103.103.103 0 01-.046.028c-.543.16-.926.293-1.019.94-.066.47-.1.984-.102 1.544-.006 1.909-.004 3.811.005 5.707.004.5.038 1.188.356 1.562.177.207.44.274.751.373a.092.092 0 01.059.114.09.09 0 01-.025.039c-.041.037-.106.05-.194.04l-.134-.001c-1.308 0-2.601-.002-3.881-.003a.081.081 0 01-.08-.066.081.081 0 010-.037l.012-.04a.104.104 0 01.086-.076c.622-.09.957-.5 1.005-1.226.05-.743.075-1.26.077-1.549.01-2.01.01-4.12-.001-6.332 0-.016-.002-.028-.007-.034zM39.916 10.188a.078.078 0 00.049.072c.009.004.02.006.03.005 1.933-.01 2.83-2.372 3.322-3.882a.106.106 0 01.067-.068.103.103 0 01.093.015c.038.029.057.083.057.162-.005.452-.007 1.815-.005 4.09a.098.098 0 01-.099.099h-6.542a.147.147 0 01-.078-.019.098.098 0 01-.045-.096.095.095 0 01.07-.079c.711-.197.966-.416 1.05-1.2.053-.5.079-.962.077-1.383a566.528 566.528 0 01-.001-4.892c.002-.643-.041-1.23-.13-1.762-.102-.614-.505-.725-1.007-.892-.028-.01-.045-.034-.05-.075a.115.115 0 01.115-.133h6.531a.104.104 0 01.104.104c.005 1.458.06 3.461-.03 3.579a.107.107 0 01-.187-.029C42.741 2.282 41.875.544 39.982.57a.067.067 0 00-.066.067v4.216c0 .019.007.037.02.05.012.014.03.023.047.024 1.193.096 1.57-1.27 1.908-2.131a.094.094 0 01.078-.058.093.093 0 01.087.042c.02.033.03.067.03.102 0 2.833.001 4.28.002 4.343 0 .136-.01.227-.027.272a.09.09 0 01-.167.001c-.36-.883-.734-2.22-1.906-2.136a.076.076 0 00-.072.076v4.751zM13.79 10.19a.078.078 0 00.022.056.078.078 0 00.056.022c1.933-.011 2.832-2.373 3.324-3.883a.106.106 0 01.066-.068.103.103 0 01.093.015c.039.029.058.083.057.162-.005.452-.007 1.815-.006 4.09a.099.099 0 01-.098.099l-6.543-.001a.147.147 0 01-.077-.019.098.098 0 01-.046-.096.096.096 0 01.07-.079c.712-.197.967-.416 1.05-1.2.055-.5.08-.962.078-1.383a551 551 0 010-4.892c.002-.643-.04-1.23-.13-1.762-.1-.614-.504-.725-1.006-.892-.027-.009-.044-.034-.05-.075a.113.113 0 01.027-.093.117.117 0 01.088-.04c3.91 0 6.087 0 6.531.002a.104.104 0 01.103.105c.006 1.457.061 3.46-.03 3.577a.107.107 0 01-.186-.028C16.617 2.284 15.75.546 13.859.57a.067.067 0 00-.068.067v4.217c0 .018.007.036.02.05.012.014.03.022.048.023 1.192.096 1.57-1.27 1.908-2.131a.093.093 0 01.078-.058.093.093 0 01.087.043c.02.032.03.066.03.1v4.344a.869.869 0 01-.027.272.09.09 0 01-.166.001c-.361-.882-.735-2.22-1.907-2.136a.076.076 0 00-.072.076v4.752zM22.686 5.263a.04.04 0 00-.032.039c0 .01.003.018.009.025a.04.04 0 00.023.013l2.34.266a.107.107 0 01.095.105 2951.53 2951.53 0 000 5.155c0 .09-.016.159-.049.205a.079.079 0 01-.072.032.079.079 0 01-.064-.047c-.413-1.011-.847-2.064-1.303-3.159a11.316 11.316 0 00-.962-1.835 1.689 1.689 0 00-.917-.707.077.077 0 00-.07.01.08.08 0 00-.033.062 47.52 47.52 0 00.05 3.748c.017.313.084.571.2.775.193.34.466.401.875.54a.09.09 0 01.06.073.089.089 0 01-.041.086.171.171 0 01-.088.03c-.55.006-1.928.006-4.132 0a.094.094 0 01-.028-.182c.544-.175.956-.336 1.036-.991.069-.567.103-1.074.103-1.521V2.767c0-.5-.043-1.009-.13-1.526-.101-.6-.476-.695-.977-.871-.045-.016-.072-.043-.08-.082a.105.105 0 01.022-.093.115.115 0 01.09-.042c1.717-.006 2.818-.006 3.3 0 1.533.02 3.578.727 3.542 2.628-.029 1.521-1.412 2.347-2.767 2.482zM21.642.4v4.726c0 .004.001.008.004.01a.014.014 0 00.01.004h.005c.229 0 .455-.056.666-.164.21-.109.403-.268.564-.469.162-.2.29-.439.377-.701.087-.263.133-.544.133-.828v-.43c0-.573-.184-1.123-.51-1.529-.326-.405-.768-.633-1.23-.633h-.005a.014.014 0 00-.01.004.014.014 0 00-.004.01zM11.59 18.503a.096.096 0 01-.007-.049.1.1 0 01.018-.046.108.108 0 01.09-.045 199.34 199.34 0 013.006-.005.104.104 0 01.103.104v4.65a.165.165 0 01-.078.14c-.91.546-1.9.793-2.97.741-1.002-.05-1.794-.464-2.376-1.245-.989-1.326-1.184-3.086-1.11-4.842.083-1.945.936-4.509 3.225-4.743 1.119-.113 2.185.11 3.08.883a.14.14 0 01.049.117l-.012 3.223a.163.163 0 01-.044.102.086.086 0 01-.121.01.083.083 0 01-.024-.038 43.48 43.48 0 00-.723-1.908c-.253-.63-.635-1.442-1.198-1.835-.966-.674-1.638.617-1.828 1.341a9.616 9.616 0 00-.295 1.626c-.1 1.19-.098 2.336.005 3.44.117 1.245.692 4.405 2.657 3.183.086-.053.13-.178.13-.377.008-1.423.003-2.345-.016-2.765-.044-1.026-.443-1.416-1.438-1.575a.186.186 0 01-.068-.032.126.126 0 01-.056-.055zM1.697 23.745c.002-.803 0-1.655-.006-2.554-.003-.488.033-.896.109-1.224l1.199-5.19c.097-.42.18-1.061-.369-1.194a8.523 8.523 0 01-.338-.1.099.099 0 01-.035-.171.1.1 0 01.066-.024H5.13a.128.128 0 01.124.097L7.722 23.73a.08.08 0 01-.077.098h-3.98a.073.073 0 01-.072-.057l-.008-.034a.076.076 0 01.01-.061.078.078 0 01.054-.034c.265-.042.604-.068.83-.158 1.036-.418.719-1.686.519-2.553a.09.09 0 00-.113-.069.091.091 0 00-.042.025L1.9 23.83a.118.118 0 01-.202-.084zm.426-3.308a.056.056 0 00.03.062.054.054 0 00.024.005l2.658-.009a.055.055 0 00.053-.068L3.54 14.766a.056.056 0 00-.09-.032.056.056 0 00-.019.032l-1.308 5.67zM18.714 23.331a.077.077 0 00.049.072c.01.004.02.005.03.005 1.933-.01 2.831-2.372 3.323-3.88a.105.105 0 01.16-.054c.038.03.057.083.056.162-.005.453-.007 1.816-.006 4.09a.099.099 0 01-.06.091.099.099 0 01-.038.008c-3.922 0-6.103 0-6.542-.002a.147.147 0 01-.077-.018.098.098 0 01-.046-.096.095.095 0 01.07-.079c.712-.198.966-.416 1.05-1.2.054-.5.08-.962.078-1.384a543.203 543.203 0 010-4.89c.002-.643-.04-1.23-.13-1.762-.102-.614-.504-.725-1.006-.893-.027-.008-.044-.033-.05-.075a.115.115 0 01.067-.122.118.118 0 01.048-.01h6.531a.104.104 0 01.103.105c.005 1.458.06 3.461-.031 3.579a.107.107 0 01-.186-.029c-.566-1.523-1.432-3.26-3.324-3.236a.068.068 0 00-.066.068l-.002 4.215c0 .019.007.037.02.05.012.014.03.023.048.024 1.192.096 1.57-1.268 1.907-2.13a.092.092 0 01.128-.05c.015.008.028.02.038.034.02.033.03.067.03.101v4.343c0 .136-.009.227-.027.272a.09.09 0 01-.166 0c-.36-.882-.734-2.219-1.906-2.135a.077.077 0 00-.072.076v4.75zM25.05 16.292a.03.03 0 00-.039.013.031.031 0 00-.004.014c-.001 1.276.001 2.466.008 3.572.004.576.07 1.102.124 1.612.082.772.293 1.695 1.008 2.132a.091.091 0 01.045.076.092.092 0 01-.04.08.29.29 0 01-.162.037c-1.39.002-2.205 0-2.444-.005a.169.169 0 01-.107-.045.076.076 0 01.01-.124c1.102-.665 1.115-2.39 1.136-3.52a98.678 98.678 0 00-.006-4.89 4.838 4.838 0 00-.124-.99c-.101-.43-.472-.622-.917-.725-.025-.006-.055-.033-.09-.083a.101.101 0 01.082-.158h1.967a.203.203 0 01.173.095 4892.19 4892.19 0 003.92 6.355c.021.034.05.061.088.082a.05.05 0 00.047 0 .045.045 0 00.023-.04c.001-1.5-.009-2.65-.029-3.451-.026-1.034.006-2.295-1.084-2.811a.12.12 0 01-.065-.135.12.12 0 01.117-.094h2.504a.122.122 0 01.058.228c-.673.362-.87.915-.993 1.67-.068.419-.106 1.139-.115 2.16a399.89 399.89 0 00-.008 6.37.1.1 0 01-.067.095.366.366 0 01-.364-.056.087.087 0 01-.022-.023l-4.572-7.393a.133.133 0 00-.059-.048zM35.676 13.294c2.148 0 3.327.001 3.535.004a.081.081 0 01.056.025.08.08 0 01.023.057c-.003 1.06-.003 2.496-.001 4.306 0 .105-.012.178-.037.217a.09.09 0 01-.086.04.086.086 0 01-.072-.06c-.213-.676-.421-1.325-.623-1.948-.268-.833-.768-2.017-1.67-2.295a.113.113 0 00-.1.017.113.113 0 00-.047.091l-.001 7.172c0 .544.034 1.086.105 1.627.046.355.208.635.486.84.158.116.406.167.566.264a.094.094 0 01-.045.173c-.049.001-.745.002-2.09.002-1.343 0-2.04 0-2.088-.002a.094.094 0 01-.044-.173c.16-.097.408-.148.565-.264.279-.205.44-.485.486-.84.071-.54.106-1.083.106-1.627l-.003-7.172a.115.115 0 00-.146-.108c-.903.278-1.403 1.462-1.671 2.295-.201.623-.409 1.272-.623 1.948a.086.086 0 01-.072.06.09.09 0 01-.085-.04c-.025-.04-.037-.111-.037-.216.002-1.81.001-3.246-.002-4.307a.081.081 0 01.05-.075.08.08 0 01.03-.007 650.75 650.75 0 013.535-.004z`})]}))});function eB(e){"@babel/helpers - typeof";return eB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},eB(e)}function tB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tB(Object(n),!0).forEach(function(t){rB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rB(e,t,n){return t=iB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iB(e){var t=aB(e,`string`);return eB(t)==`symbol`?t:String(t)}function aB(e,t){if(eB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(eB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function oB(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var sB=(0,p.memo)(function(e){var t=Object.assign({},(oB(e),e));return(0,m.jsx)(BI,nB({Icon:Fz,Text:$z,"aria-label":yz,spaceMultiple:xz,textMultiple:bz},t))}),cB=Fz;cB.Text=$z,cB.Combine=sB,cB.Avatar=Uz,cB.colorPrimary=Sz,cB.title=yz;var lB=`Kimi`,uB=.7,dB=.25,fB=`#000`,pB=fB,mB=`#fff`,hB=.6;function gB(e){"@babel/helpers - typeof";return gB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},gB(e)}var _B=[`size`,`style`];function vB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function yB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?vB(Object(n),!0).forEach(function(t){bB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function bB(e,t,n){return t=xB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function xB(e){var t=SB(e,`string`);return gB(t)==`symbol`?t:String(t)}function SB(e,t){if(gB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(gB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function CB(e,t){if(e==null)return{};var n=wB(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function wB(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var TB=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=CB(e,_B);return(0,m.jsxs)(`svg`,yB(yB({height:n,style:yB({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:lB}),(0,m.jsx)(`path`,{d:`M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z`,fill:`#1783FF`}),(0,m.jsx)(`path`,{d:`M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z`,fill:`#fff`})]}))});function EB(e){"@babel/helpers - typeof";return EB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},EB(e)}function DB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function OB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?DB(Object(n),!0).forEach(function(t){kB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):DB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function kB(e,t,n){return t=AB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AB(e){var t=jB(e,`string`);return EB(t)==`symbol`?t:String(t)}function jB(e,t){if(EB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(EB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function MB(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var NB=(0,p.memo)(function(e){var t=Object.assign({},(MB(e),e));return(0,m.jsx)(II,OB({Icon:TB,"aria-label":lB,background:pB,color:mB,iconMultiple:hB},t))});function PB(e){"@babel/helpers - typeof";return PB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},PB(e)}var FB=[`size`,`style`];function IB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function LB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?IB(Object(n),!0).forEach(function(t){RB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):IB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function RB(e,t,n){return t=zB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zB(e){var t=BB(e,`string`);return PB(t)==`symbol`?t:String(t)}function BB(e,t){if(PB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(PB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function VB(e,t){if(e==null)return{};var n=HB(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function HB(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var UB=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=VB(e,FB);return(0,m.jsxs)(`svg`,LB(LB({fill:`currentColor`,fillRule:`evenodd`,height:n,style:LB({flex:`none`,lineHeight:1},r),viewBox:`0 0 64 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:lB}),(0,m.jsx)(`path`,{d:`M24.353 21.58c0 .232.188.42.42.42h2.69a.42.42 0 00.42-.42V2.42a.42.42 0 00-.42-.42h-2.69a.42.42 0 00-.42.42v19.16zM58.47 21.58c0 .232.188.42.42.42h2.691a.42.42 0 00.419-.42V2.42a.42.42 0 00-.419-.42H58.89a.42.42 0 00-.42.42v19.16zM47.786 2a.42.42 0 00-.408.32L43.4 18.633c-.066.267-.38.267-.444 0L38.976 2.32A.417.417 0 0038.57 2H31.83a.418.418 0 00-.418.42v19.16c0 .232.188.42.42.42h2.988c.231 0 .419-.182.419-.414V5.471c0-.322.378-.389.454-.079l3.974 16.288a.42.42 0 00.407.32h6.208a.42.42 0 00.407-.32L50.66 5.394c.076-.31.455-.243.455.079V21.58c0 .231.187.419.419.419h2.987a.42.42 0 00.42-.42V2.42a.42.42 0 00-.42-.42h-6.735zM11.55 11.273l8.115-8.565A.42.42 0 0019.36 2h-3.776a.42.42 0 00-.298.124l-9.303 9.39c-.144.146-.357.016-.357-.218V2.42a.42.42 0 00-.42-.42H2.42a.42.42 0 00-.42.42v19.16c0 .232.188.42.42.42h2.786a.42.42 0 00.42-.42v-3.82c0-.085.03-.166.081-.219l2.87-2.931c.07-.07.166-.081.243-.029l7.678 5.816c1.123.778 2.552 1.288 3.861 1.5a.403.403 0 00.464-.404v-3.461c0-.206-.15-.38-.35-.423-.76-.164-1.604-.474-2.244-.918l-6.647-4.953c-.138-.095-.155-.34-.033-.465z`})]}))});function WB(e){"@babel/helpers - typeof";return WB=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},WB(e)}var GB=[`iconProps`];function KB(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qB(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?KB(Object(n),!0).forEach(function(t){JB(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KB(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function JB(e,t,n){return t=YB(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YB(e){var t=XB(e,`string`);return WB(t)==`symbol`?t:String(t)}function XB(e,t){if(WB(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(WB(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ZB(e,t){if(e==null)return{};var n=QB(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QB(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var $B=(0,p.memo)(function(e){var t=e.iconProps,n=ZB(e,GB);return(0,m.jsx)(BI,qB({Icon:NB,Text:UB,"aria-label":lB,iconProps:qB({shape:`square`},t),spaceMultiple:dB,textMultiple:uB},n))});function eV(e){"@babel/helpers - typeof";return eV=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},eV(e)}var tV=[`size`,`style`];function nV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function rV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?nV(Object(n),!0).forEach(function(t){iV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function iV(e,t,n){return t=aV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aV(e){var t=oV(e,`string`);return eV(t)==`symbol`?t:String(t)}function oV(e,t){if(eV(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(eV(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function sV(e,t){if(e==null)return{};var n=cV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cV(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var lV=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=sV(e,tV);return(0,m.jsxs)(`svg`,rV(rV({fill:`currentColor`,fillRule:`evenodd`,height:n,style:rV({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:lB}),(0,m.jsx)(`path`,{d:`M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z`}),(0,m.jsx)(`path`,{d:`M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z`})]}))});lV.Color=TB,lV.Text=UB,lV.Combine=$B,lV.Avatar=NB,lV.colorPrimary=fB,lV.title=lB;var uV=`OpenAI`,dV=.75,fV=.1,pV=`#000`,mV=`#19C37D`,hV=`#AB68FF`,gV=`#F86AA4`,_V=`#F9C322`,vV=`#0099FF`,yV=`#0000FE`,bV=pV,xV=`#fff`,SV=.75;function CV(e){"@babel/helpers - typeof";return CV=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},CV(e)}var wV=[`size`,`style`];function TV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function EV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?TV(Object(n),!0).forEach(function(t){DV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function DV(e,t,n){return t=OV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OV(e){var t=kV(e,`string`);return CV(t)==`symbol`?t:String(t)}function kV(e,t){if(CV(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(CV(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function AV(e,t){if(e==null)return{};var n=jV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function jV(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var MV=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=AV(e,wV);return(0,m.jsxs)(`svg`,EV(EV({fill:`currentColor`,fillRule:`evenodd`,height:n,style:EV({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:uV}),(0,m.jsx)(`path`,{d:`M9.205 8.658v-2.26c0-.19.072-.333.238-.428l4.543-2.616c.619-.357 1.356-.523 2.117-.523 2.854 0 4.662 2.212 4.662 4.566 0 .167 0 .357-.024.547l-4.71-2.759a.797.797 0 00-.856 0l-5.97 3.473zm10.609 8.8V12.06c0-.333-.143-.57-.429-.737l-5.97-3.473 1.95-1.118a.433.433 0 01.476 0l4.543 2.617c1.309.76 2.189 2.378 2.189 3.948 0 1.808-1.07 3.473-2.76 4.163zM7.802 12.703l-1.95-1.142c-.167-.095-.239-.238-.239-.428V5.899c0-2.545 1.95-4.472 4.591-4.472 1 0 1.927.333 2.712.928L8.23 5.067c-.285.166-.428.404-.428.737v6.898zM12 15.128l-2.795-1.57v-3.33L12 8.658l2.795 1.57v3.33L12 15.128zm1.796 7.23c-1 0-1.927-.332-2.712-.927l4.686-2.712c.285-.166.428-.404.428-.737v-6.898l1.974 1.142c.167.095.238.238.238.428v5.233c0 2.545-1.974 4.472-4.614 4.472zm-5.637-5.303l-4.544-2.617c-1.308-.761-2.188-2.378-2.188-3.948A4.482 4.482 0 014.21 6.327v5.423c0 .333.143.571.428.738l5.947 3.449-1.95 1.118a.432.432 0 01-.476 0zm-.262 3.9c-2.688 0-4.662-2.021-4.662-4.519 0-.19.024-.38.047-.57l4.686 2.71c.286.167.571.167.856 0l5.97-3.448v2.26c0 .19-.07.333-.237.428l-4.543 2.616c-.619.357-1.356.523-2.117.523zm5.899 2.83a5.947 5.947 0 005.827-4.756C22.287 18.339 24 15.84 24 13.296c0-1.665-.713-3.282-1.998-4.448.119-.5.19-.999.19-1.498 0-3.401-2.759-5.947-5.946-5.947-.642 0-1.26.095-1.88.31A5.962 5.962 0 0010.205 0a5.947 5.947 0 00-5.827 4.757C1.713 5.447 0 7.945 0 10.49c0 1.666.713 3.283 1.998 4.448-.119.5-.19 1-.19 1.499 0 3.401 2.759 5.946 5.946 5.946.642 0 1.26-.095 1.88-.309a5.96 5.96 0 004.162 1.713z`})]}))});function NV(e){"@babel/helpers - typeof";return NV=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},NV(e)}var PV=[`type`];function FV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function IV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?FV(Object(n),!0).forEach(function(t){LV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function LV(e,t,n){return t=RV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function RV(e){var t=zV(e,`string`);return NV(t)==`symbol`?t:String(t)}function zV(e,t){if(NV(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(NV(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function BV(e,t){if(e==null)return{};var n=VV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function VV(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var HV=(0,p.memo)(function(e){var t=e.type,n=t===void 0?`normal`:t,r=BV(e,PV),i=(0,p.useMemo)(function(){switch(n){case`gpt3`:return mV;case`gpt4`:return hV;case`gpt5`:return gV;case`o3`:case`o1`:return _V;case`oss`:return vV;case`platform`:return yV;default:return bV}},[n]);return(0,m.jsx)(II,IV({Icon:MV,"aria-label":uV,background:i,color:xV,iconMultiple:SV},r))});function UV(e){"@babel/helpers - typeof";return UV=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},UV(e)}var WV=[`size`,`style`];function GV(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function KV(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?GV(Object(n),!0).forEach(function(t){qV(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):GV(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qV(e,t,n){return t=JV(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function JV(e){var t=YV(e,`string`);return UV(t)==`symbol`?t:String(t)}function YV(e,t){if(UV(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(UV(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function XV(e,t){if(e==null)return{};var n=ZV(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ZV(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var QV=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=XV(e,WV);return(0,m.jsxs)(`svg`,KV(KV({fill:`currentColor`,fillRule:`evenodd`,height:n,style:KV({flex:`none`,lineHeight:1},r),viewBox:`0 0 86 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:uV}),(0,m.jsx)(`path`,{d:`M10.703 2C5.916 2 2 5.916 2 10.703c0 4.787 3.916 8.704 8.703 8.704 4.787 0 8.704-3.893 8.704-8.704A8.698 8.698 0 0010.703 2zm0 14.288c-2.973 0-5.367-2.442-5.367-5.585S7.73 5.12 10.703 5.12c2.974 0 5.367 2.441 5.367 5.584s-2.393 5.585-5.367 5.585zM28.206 6.835c-1.57 0-3.094.629-3.892 1.693v-1.45h-3.143V24h3.143v-6.116c.798.99 2.273 1.523 3.892 1.523 3.385 0 6.045-2.66 6.045-6.286 0-3.626-2.66-6.286-6.044-6.286zm-.531 9.84c-1.79 0-3.385-1.402-3.385-3.554s1.596-3.554 3.385-3.554c1.789 0 3.384 1.402 3.384 3.554s-1.595 3.554-3.384 3.554zM41.649 6.835c-3.433 0-6.141 2.684-6.141 6.286 0 3.602 2.37 6.286 6.237 6.286 3.167 0 5.198-1.91 5.827-4.062h-3.07c-.388.895-1.475 1.523-2.78 1.523-1.62 0-2.854-1.136-3.144-2.756h9.139V12.88c0-3.288-2.297-6.044-6.068-6.044zm-3.047 5.053c.339-1.523 1.596-2.514 3.12-2.514 1.619 0 2.852 1.064 2.997 2.514h-6.117zM56.081 6.835c-1.402 0-2.877.629-3.553 1.669V7.077h-3.143v12.088h3.143v-6.503c0-1.886 1.015-3.119 2.659-3.119 1.523 0 2.345 1.16 2.345 2.78v6.842h3.143v-7.35c0-2.997-1.838-4.98-4.594-4.98zM68.724 2.242l-6.841 16.923h3.36l1.45-3.699h7.785l1.45 3.7h3.41L72.543 2.241h-3.82zm-.943 10.42l2.805-7.084 2.78 7.084H67.78zM83.81 2.242h-3.191v16.923h3.19V2.242z`})]}))});function $V(e){"@babel/helpers - typeof";return $V=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$V(e)}var eH=[`extraStyle`];function tH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tH(Object(n),!0).forEach(function(t){rH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rH(e,t,n){return t=iH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iH(e){var t=aH(e,`string`);return $V(t)==`symbol`?t:String(t)}function aH(e,t){if($V(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if($V(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function oH(e,t){if(e==null)return{};var n=sH(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sH(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var cH=(0,p.memo)(function(e){var t=e.extraStyle,n=oH(e,eH);return(0,m.jsx)(BI,nH({Icon:MV,Text:QV,"aria-label":uV,extraStyle:nH({fontWeight:600},t),spaceMultiple:fV,textMultiple:dV},n))}),lH=MV;lH.Text=QV,lH.Combine=cH,lH.Avatar=HV,lH.colorPrimary=pV,lH.colorGpt3=mV,lH.colorGpt4=hV,lH.colorGpt5=gV,lH.colorO1=_V,lH.colorO3=_V,lH.colorOss=vV,lH.colorPlatform=yV,lH.title=uV;var uH=`opencode`,dH=.6,fH=.2,pH=`#000`,mH=pH,hH=`#fff`,gH=.75;function _H(e){"@babel/helpers - typeof";return _H=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_H(e)}var vH=[`size`,`style`];function yH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yH(Object(n),!0).forEach(function(t){xH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xH(e,t,n){return t=SH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SH(e){var t=CH(e,`string`);return _H(t)==`symbol`?t:String(t)}function CH(e,t){if(_H(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_H(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wH(e,t){if(e==null)return{};var n=TH(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function TH(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var EH=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=wH(e,vH);return(0,m.jsxs)(`svg`,bH(bH({fill:`currentColor`,fillRule:`evenodd`,height:n,style:bH({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:uH}),(0,m.jsx)(`path`,{d:`M16 6H8v12h8V6zm4 16H4V2h16v20z`})]}))});function DH(e){"@babel/helpers - typeof";return DH=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},DH(e)}function OH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?OH(Object(n),!0).forEach(function(t){AH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function AH(e,t,n){return t=jH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jH(e){var t=MH(e,`string`);return DH(t)==`symbol`?t:String(t)}function MH(e,t){if(DH(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(DH(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function NH(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var PH=(0,p.memo)(function(e){var t=Object.assign({},(NH(e),e));return(0,m.jsx)(II,kH({Icon:EH,"aria-label":uH,background:mH,color:hH,iconMultiple:gH},t))});function FH(e){"@babel/helpers - typeof";return FH=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},FH(e)}var IH=[`size`,`style`];function LH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function RH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?LH(Object(n),!0).forEach(function(t){zH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):LH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function zH(e,t,n){return t=BH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BH(e){var t=VH(e,`string`);return FH(t)==`symbol`?t:String(t)}function VH(e,t){if(FH(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(FH(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function HH(e,t){if(e==null)return{};var n=UH(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function UH(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var WH=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=HH(e,IH);return(0,m.jsxs)(`svg`,RH(RH({fill:`currentColor`,fillRule:`evenodd`,height:n,style:RH({flex:`none`,lineHeight:1},r),viewBox:`0 0 138 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:uH}),(0,m.jsx)(`path`,{d:`M12.429 17.143H5.57v-6.857h6.858v6.857z`,fillOpacity:`.25`}),(0,m.jsx)(`path`,{d:`M12.428 6.857H5.571v10.286h6.857V6.857zm3.43 13.715H2.142V3.429h13.714v17.143z`,fillOpacity:`.75`}),(0,m.jsx)(`path`,{d:`M29.571 17.143h-6.857v-6.857h6.857v6.857z`,fillOpacity:`.25`}),(0,m.jsx)(`path`,{d:`M22.714 17.143h6.858V6.857h-6.858v10.286zM33 20.572H22.714V24h-3.428V3.43H33v17.143z`,fillOpacity:`.75`}),(0,m.jsx)(`path`,{d:`M50.143 13.714v3.429H39.857v-3.429h10.286z`,fillOpacity:`.25`}),(0,m.jsx)(`path`,{d:`M50.143 13.714H39.857v3.429h10.286v3.429H36.429V3.429h13.714v10.285zm-10.286-3.428h6.857V6.857h-6.857v3.429z`,fillOpacity:`.75`}),(0,m.jsx)(`path`,{d:`M63.857 20.571H57V10.286h6.857V20.57z`,fillOpacity:`.25`}),(0,m.jsx)(`path`,{d:`M63.857 6.857H57v13.715h-3.429V3.429h10.286v3.428zm3.429 13.715h-3.429V6.857h3.429v13.715z`,fillOpacity:`.75`}),(0,m.jsx)(`path`,{d:`M84.428 17.143H74.144v-6.857h10.285v6.857z`,fillOpacity:`.25`}),(0,m.jsx)(`path`,{d:`M84.428 6.857H74.144v10.286h10.285v3.429H70.715V3.429H84.43v3.428z`}),(0,m.jsx)(`path`,{d:`M98.143 17.143h-6.857v-6.857h6.857v6.857z`,fillOpacity:`.25`}),(0,m.jsx)(`path`,{d:`M98.143 6.857h-6.857v10.286h6.857V6.857zm3.428 13.715H87.857V3.429h13.714v17.143z`}),(0,m.jsx)(`path`,{d:`M115.286 17.143h-6.857v-6.857h6.857v6.857z`,fillOpacity:`.25`}),(0,m.jsx)(`path`,{d:`M115.286 6.857h-6.857v10.286h6.857V6.857zm3.428 13.714H105V3.43h10.286V0h3.428v20.571z`}),(0,m.jsx)(`path`,{d:`M135.857 13.714v3.429h-10.286v-3.429h10.286z`,fillOpacity:`.25`}),(0,m.jsx)(`path`,{d:`M125.571 6.857v3.429h6.858V6.857h-6.858zm10.286 6.857h-10.286v3.429h10.286v3.429h-13.714V3.429h13.714v10.285z`})]}))});function GH(e){"@babel/helpers - typeof";return GH=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},GH(e)}function KH(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qH(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?KH(Object(n),!0).forEach(function(t){JH(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KH(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function JH(e,t,n){return t=YH(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YH(e){var t=XH(e,`string`);return GH(t)==`symbol`?t:String(t)}function XH(e,t){if(GH(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(GH(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ZH(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var QH=(0,p.memo)(function(e){var t=Object.assign({},(ZH(e),e));return(0,m.jsx)(BI,qH({Text:WH,"aria-label":uH,spaceMultiple:fH,textMultiple:dH},t))}),$H=EH;$H.Text=WH,$H.Combine=QH,$H.Avatar=PH,$H.colorPrimary=pH,$H.title=uH;var eU=`Qwen`,tU=.7,nU=.2,rU=`#615ced`,iU=`linear-gradient(to right, #6336E7, #6F69F7)`,aU=rU,oU=`#fff`,sU=.75;function cU(e){"@babel/helpers - typeof";return cU=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},cU(e)}var lU=[`size`,`style`];function uU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uU(Object(n),!0).forEach(function(t){fU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fU(e,t,n){return t=pU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pU(e){var t=mU(e,`string`);return cU(t)==`symbol`?t:String(t)}function mU(e,t){if(cU(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(cU(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function hU(e,t){if(e==null)return{};var n=gU(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gU(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var _U=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=hU(e,lU);return(0,m.jsxs)(`svg`,dU(dU({fill:`currentColor`,fillRule:`evenodd`,height:n,style:dU({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:eU}),(0,m.jsx)(`path`,{d:`M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z`})]}))});function vU(e){"@babel/helpers - typeof";return vU=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vU(e)}function yU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yU(Object(n),!0).forEach(function(t){xU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xU(e,t,n){return t=SU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SU(e){var t=CU(e,`string`);return vU(t)==`symbol`?t:String(t)}function CU(e,t){if(vU(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(vU(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wU(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var TU=(0,p.memo)(function(e){var t=Object.assign({},(wU(e),e));return(0,m.jsx)(II,bU({Icon:_U,"aria-label":eU,background:aU,color:oU,iconMultiple:sU},t))});function EU(e){"@babel/helpers - typeof";return EU=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},EU(e)}var DU=[`size`,`style`];function OU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?OU(Object(n),!0).forEach(function(t){AU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function AU(e,t,n){return t=jU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jU(e){var t=MU(e,`string`);return EU(t)==`symbol`?t:String(t)}function MU(e,t){if(EU(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(EU(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function NU(e,t){if(e==null)return{};var n=PU(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PU(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var FU=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=NU(e,DU),a=HI(eU),o=a.id,s=a.fill;return(0,m.jsxs)(`svg`,kU(kU({height:n,style:kU({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:eU}),(0,m.jsx)(`path`,{d:`M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z`,fill:s,fillRule:`nonzero`}),(0,m.jsx)(`defs`,{children:(0,m.jsxs)(`linearGradient`,{id:o,x1:`0%`,x2:`100%`,y1:`0%`,y2:`0%`,children:[(0,m.jsx)(`stop`,{offset:`0%`,stopColor:`#6336E7`,stopOpacity:`.84`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#6F69F7`,stopOpacity:`.84`})]})})]}))});function IU(e){"@babel/helpers - typeof";return IU=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},IU(e)}var LU=[`size`,`style`];function RU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?RU(Object(n),!0).forEach(function(t){BU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function BU(e,t,n){return t=VU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VU(e){var t=HU(e,`string`);return IU(t)==`symbol`?t:String(t)}function HU(e,t){if(IU(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(IU(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function UU(e,t){if(e==null)return{};var n=WU(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WU(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var GU=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=UU(e,LU);return(0,m.jsxs)(`svg`,zU(zU({fill:`currentColor`,fillRule:`evenodd`,height:n,style:zU({flex:`none`,lineHeight:1},r),viewBox:`0 0 75 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:eU}),(0,m.jsx)(`path`,{d:`M11.425 14.13h3.642l1.529 1.795a7.89 7.89 0 002.166-2.832 8.36 8.36 0 00.771-3.562c0-2.03-.624-3.664-1.874-4.905-1.24-1.25-2.884-1.874-4.931-1.874-1.028 0-1.99.186-2.885.558A6.99 6.99 0 007.45 4.932 8.576 8.576 0 005.656 7.67a8.354 8.354 0 00-.625 3.19c0 2.003.611 3.643 1.834 4.919 1.223 1.276 2.779 1.914 4.666 1.914.39 0 .793-.031 1.21-.093.425-.062.868-.16 1.329-.293l-2.645-3.177zM18.07 22l-2.127-2.46c-.753.293-1.48.51-2.18.652a9.84 9.84 0 01-2.073.226c-2.97 0-5.326-.85-7.072-2.552C2.873 16.164 2 13.865 2 10.966c0-1.577.28-3.052.837-4.426a10.148 10.148 0 012.406-3.576A10.427 10.427 0 018.713.758C10.025.253 11.429 0 12.927 0c2.915 0 5.25.86 7.005 2.579 1.755 1.72 2.632 4.01 2.632 6.872 0 1.764-.354 3.399-1.063 4.905a10.156 10.156 0 01-3.031 3.776L21.714 22H18.07zm5.743-14.675h2.884l2.047 6.433.054.16c.248.789.38 1.373.399 1.755.097-.302.221-.62.372-.958.16-.345.354-.713.585-1.103l4.227-7.218 2.06 7.43c.08.275.146.559.2.851.053.293.097.63.133 1.01.132-.372.265-.708.398-1.01.142-.3.28-.562.412-.784l3.816-6.567h3.243L36.097 20.71l-2.127-7.045a8.683 8.683 0 01-.213-.798 17.846 17.846 0 01-.146-.97 69.17 69.17 0 01-.519 1.063c-.15.302-.265.514-.345.638l-4.28 7.112-4.653-13.385zm24.392 4.785h6.5c-.026-.85-.292-1.52-.797-2.007-.496-.497-1.166-.745-2.008-.745-.957 0-1.768.248-2.432.745-.665.496-1.086 1.165-1.263 2.007zm6.34 3.948l2.061 1.608c-.735.966-1.533 1.67-2.392 2.114-.86.443-1.848.665-2.965.665-1.87 0-3.38-.563-4.533-1.689-1.152-1.134-1.728-2.623-1.728-4.466 0-2.162.66-3.935 1.98-5.317 1.33-1.391 3.018-2.087 5.066-2.087 1.71 0 3.07.532 4.08 1.595 1.02 1.055 1.53 2.473 1.53 4.254 0 .15-.01.345-.027.585-.01.23-.027.51-.054.837h-9.61c0 1.143.288 2.056.864 2.738.576.674 1.342 1.01 2.3 1.01.664 0 1.293-.159 1.887-.478a4.633 4.633 0 001.542-1.369zm14.317 3.868l.957-7.244c.018-.133.031-.27.04-.412.009-.151.013-.368.013-.652 0-.824-.2-1.453-.598-1.887-.399-.444-.98-.665-1.741-.665-1.188 0-2.118.385-2.792 1.156-.673.763-1.112 1.937-1.316 3.523l-.797 6.181H59.77l1.661-12.601h2.752l-.213 1.515c.727-.664 1.476-1.156 2.247-1.475a6.5 6.5 0 012.486-.479c1.293 0 2.3.341 3.017 1.024.727.673 1.09 1.622 1.09 2.845 0 .31-.018.673-.053 1.09-.036.407-.089.886-.16 1.435l-.877 6.647h-2.858z`})]}))});function KU(e){"@babel/helpers - typeof";return KU=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},KU(e)}var qU=[`type`,`extraStyle`];function JU(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YU(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JU(Object(n),!0).forEach(function(t){XU(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JU(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XU(e,t,n){return t=ZU(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZU(e){var t=QU(e,`string`);return KU(t)==`symbol`?t:String(t)}function QU(e,t){if(KU(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(KU(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $U(e,t){if(e==null)return{};var n=eW(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eW(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tW=(0,p.memo)(function(e){var t=e.type,n=t===void 0?`mono`:t,r=e.extraStyle,i=$U(e,qU);return(0,m.jsx)(BI,YU({Icon:n===`color`?FU:_U,Text:GU,"aria-label":eU,extraStyle:YU({fontWeight:500},r),spaceMultiple:nU,textMultiple:tU},i))}),nW=_U;nW.Color=FU,nW.Text=GU,nW.Combine=tW,nW.Avatar=TU,nW.colorPrimary=rU,nW.colorGradient=iU,nW.title=eU;var rW=`Anthropic`,iW=`#F1F0E8`,aW=iW,oW=`#141413`,sW=.75;function cW(e){"@babel/helpers - typeof";return cW=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},cW(e)}var lW=[`size`,`style`];function uW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uW(Object(n),!0).forEach(function(t){fW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fW(e,t,n){return t=pW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pW(e){var t=mW(e,`string`);return cW(t)==`symbol`?t:String(t)}function mW(e,t){if(cW(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(cW(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function hW(e,t){if(e==null)return{};var n=gW(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gW(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var _W=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=hW(e,lW);return(0,m.jsxs)(`svg`,dW(dW({fill:`currentColor`,fillRule:`evenodd`,height:n,style:dW({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:rW}),(0,m.jsx)(`path`,{d:`M13.827 3.52h3.603L24 20h-3.603l-6.57-16.48zm-7.258 0h3.767L16.906 20h-3.674l-1.343-3.461H5.017l-1.344 3.46H0L6.57 3.522zm4.132 9.959L8.453 7.687 6.205 13.48H10.7z`})]}))});function vW(e){"@babel/helpers - typeof";return vW=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vW(e)}function yW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yW(Object(n),!0).forEach(function(t){xW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xW(e,t,n){return t=SW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SW(e){var t=CW(e,`string`);return vW(t)==`symbol`?t:String(t)}function CW(e,t){if(vW(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(vW(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wW(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var TW=(0,p.memo)(function(e){var t=Object.assign({},(wW(e),e));return(0,m.jsx)(II,bW({Icon:_W,"aria-label":rW,background:aW,color:oW,iconMultiple:sW},t))});function EW(e){"@babel/helpers - typeof";return EW=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},EW(e)}var DW=[`size`,`style`];function OW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function kW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?OW(Object(n),!0).forEach(function(t){AW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function AW(e,t,n){return t=jW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jW(e){var t=MW(e,`string`);return EW(t)==`symbol`?t:String(t)}function MW(e,t){if(EW(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(EW(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function NW(e,t){if(e==null)return{};var n=PW(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function PW(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var FW=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=NW(e,DW);return(0,m.jsxs)(`svg`,kW(kW({fill:`currentColor`,fillRule:`evenodd`,height:n,style:kW({flex:`none`,lineHeight:1},r),viewBox:`0 0 182 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:rW}),(0,m.jsx)(`path`,{d:`M38.247 15.874L29.553 2.338H24.86v19.337h4.002V8.139l8.694 13.536h4.693V2.338h-4.003v13.536zm7.313-9.807h6.487v15.608h4.14V6.067h6.487v-3.73H45.56v3.73zm33.686 3.978h-9.109V2.338h-4.14v19.337h4.14v-7.9h9.109v7.9h4.14V2.338h-4.14v7.707zm13.39-3.978h5.108c2.043 0 3.12.746 3.12 2.155 0 1.408-1.077 2.154-3.12 2.154h-5.107v-4.31zm12.37 2.155c0-3.647-2.679-5.884-7.068-5.884h-9.443v19.337h4.142v-7.57h4.61l4.142 7.57h4.583l-4.586-8.146c2.302-.885 3.62-2.75 3.62-5.307zm12.686 9.91c-3.257 0-5.244-2.32-5.244-6.104 0-3.84 1.987-6.16 5.244-6.16 3.23 0 5.189 2.32 5.189 6.16 0 3.784-1.96 6.105-5.189 6.105zm0-16.132c-5.575 0-9.522 4.144-9.522 10.028 0 5.828 3.947 9.972 9.522 9.972 5.547 0 9.466-4.144 9.466-9.972C127.158 6.144 123.24 2 117.692 2zm22.59 8.929h-5.109V6.067h5.11c2.043 0 3.12.829 3.12 2.43 0 1.603-1.077 2.432-3.12 2.432zm.194-8.591h-9.445v19.337h4.142v-7.017h5.303c4.39 0 7.07-2.32 7.07-6.16 0-3.84-2.68-6.16-7.07-6.16zm35.108 12.839c-.718 1.878-2.153 2.956-4.113 2.956-3.257 0-5.244-2.32-5.244-6.105 0-3.84 1.987-6.16 5.244-6.16 1.96 0 3.395 1.077 4.113 2.955h4.388C178.896 4.68 175.667 2 171.472 2c-5.576 0-9.523 4.144-9.523 10.028 0 5.828 3.947 9.972 9.522 9.972 4.223 0 7.453-2.707 8.529-6.823h-4.416zm-26.39-12.84l7.705 19.338h4.225L153.42 2.338h-4.225zM9.277 14.024l2.636-6.796 2.637 6.796H9.276zm.428-11.685L2 21.675h4.307l1.576-4.06h8.06l1.575 4.06h4.307L14.121 2.338H9.704z`})]}))}),IW=_W;IW.Text=FW,IW.Avatar=TW,IW.colorPrimary=iW,IW.title=rW;var LW=`DeepSeek`,RW=.65,zW=.2,BW=`#4D6BFE`,VW=BW,HW=`#fff`,UW=.75;function WW(e){"@babel/helpers - typeof";return WW=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},WW(e)}var GW=[`size`,`style`];function KW(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function qW(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?KW(Object(n),!0).forEach(function(t){JW(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KW(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function JW(e,t,n){return t=YW(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YW(e){var t=XW(e,`string`);return WW(t)==`symbol`?t:String(t)}function XW(e,t){if(WW(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(WW(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function ZW(e,t){if(e==null)return{};var n=QW(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QW(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var $W=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=ZW(e,GW);return(0,m.jsxs)(`svg`,qW(qW({fill:`currentColor`,fillRule:`evenodd`,height:n,style:qW({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:LW}),(0,m.jsx)(`path`,{d:`M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z`})]}))});function eG(e){"@babel/helpers - typeof";return eG=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},eG(e)}function tG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tG(Object(n),!0).forEach(function(t){rG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rG(e,t,n){return t=iG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iG(e){var t=aG(e,`string`);return eG(t)==`symbol`?t:String(t)}function aG(e,t){if(eG(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(eG(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function oG(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var sG=(0,p.memo)(function(e){var t=Object.assign({},(oG(e),e));return(0,m.jsx)(II,nG({Icon:$W,"aria-label":LW,background:VW,color:HW,iconMultiple:UW},t))});function cG(e){"@babel/helpers - typeof";return cG=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},cG(e)}var lG=[`size`,`style`];function uG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function dG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?uG(Object(n),!0).forEach(function(t){fG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function fG(e,t,n){return t=pG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pG(e){var t=mG(e,`string`);return cG(t)==`symbol`?t:String(t)}function mG(e,t){if(cG(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(cG(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function hG(e,t){if(e==null)return{};var n=gG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gG(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var _G=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=hG(e,lG);return(0,m.jsxs)(`svg`,dG(dG({height:n,style:dG({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:LW}),(0,m.jsx)(`path`,{d:`M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z`,fill:`#4D6BFE`})]}))});function vG(e){"@babel/helpers - typeof";return vG=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vG(e)}var yG=[`size`,`style`];function bG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bG(Object(n),!0).forEach(function(t){SG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SG(e,t,n){return t=CG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CG(e){var t=wG(e,`string`);return vG(t)==`symbol`?t:String(t)}function wG(e,t){if(vG(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(vG(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function TG(e,t){if(e==null)return{};var n=EG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function EG(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var DG=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=TG(e,yG);return(0,m.jsxs)(`svg`,xG(xG({fill:`currentColor`,fillRule:`evenodd`,height:n,style:xG({flex:`none`,lineHeight:1},r),viewBox:`0 0 131 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:LW}),(0,m.jsx)(`path`,{d:`M117.986 0h-3.21v19.404h3.21V0zM8.7 5.215h1.83v2.838H8.7c-1.135 0-2.28.282-3.019 1.068-.738.785-1.016 1.99-1.016 3.194s.267 2.408 1.016 3.193c.75.786 1.884 1.068 3.018 1.068 1.135 0 2.28-.282 3.018-1.068.739-.785 1.017-1.99 1.017-3.193V.649h3.21v18.755h-3.21V18.21h-.589a3.498 3.498 0 01-.192.199c-.803.733-2.034.995-3.243.995-1.894 0-3.788-.472-5.03-1.78C2.44 16.314 2 14.303 2 12.303c0-2 .45-4 1.68-5.32 1.242-1.308 3.136-1.77 5.02-1.77zM57.564 18.9h-1.83v-2.837h1.83c1.134 0 2.28-.283 3.017-1.068.739-.785 1.017-1.99 1.017-3.194s-.267-2.408-1.017-3.194c-.749-.785-1.883-1.068-3.017-1.068s-2.28.283-3.018 1.068c-.738.786-1.017 1.99-1.017 3.194v11.655h-3.21V4.712h3.21v1.194h.59a3.42 3.42 0 01.186-.194l.005-.005c.803-.733 2.034-.995 3.243-.995 1.895 0 3.788.471 5.03 1.78 1.241 1.31 1.68 3.32 1.68 5.32 0 2-.45 4-1.68 5.319-1.23 1.32-3.135 1.77-5.019 1.77zM32.05 13.204v-1.14c0-2.064-.46-4.137-1.754-5.498-1.285-1.362-3.264-1.843-5.223-1.843-1.958 0-3.928.492-5.222 1.843-1.295 1.35-1.755 3.434-1.755 5.497 0 2.063.47 4.136 1.755 5.498 1.284 1.36 3.264 1.843 5.222 1.843 1.959 0 3.938-.493 5.223-1.843.663-.692 1.102-1.582 1.38-2.566h-3.168a5.026 5.026 0 01-.3.367c-.77.816-1.958 1.11-3.135 1.11-1.177 0-2.365-.304-3.136-1.11-.77-.807-1.048-2.063-1.048-3.299 0-1.236.278-2.482 1.049-3.298.77-.817 1.958-1.11 3.135-1.11 1.177 0 2.365.293 3.136 1.11.535.565.834 1.34.963 2.167H23.5v2.272h8.55zM48.168 12.063v1.141h-8.55v-2.272h5.671c-.129-.827-.428-1.602-.963-2.167-.77-.817-1.959-1.11-3.136-1.11s-2.365.293-3.136 1.11c-.77.816-1.049 2.063-1.049 3.298 0 1.236.279 2.492 1.05 3.299.77.806 1.958 1.11 3.135 1.11 1.177 0 2.365-.294 3.136-1.11.107-.116.203-.241.299-.367h3.168c-.278.985-.717 1.874-1.38 2.566-1.285 1.35-3.264 1.843-5.223 1.843s-3.938-.482-5.222-1.843c-1.285-1.362-1.756-3.435-1.756-5.498s.46-4.147 1.755-5.497c1.296-1.351 3.264-1.843 5.223-1.843s3.938.481 5.222 1.843c1.296 1.36 1.756 3.434 1.756 5.497zM78.635 18.315c-1.284.806-3.263 1.089-5.222 1.089-1.958 0-3.917-.294-5.212-1.09-1.295-.795-1.755-2.03-1.755-3.246h3.767c0 .472.225.953.824 1.257.6.304 1.54.419 2.462.419.92 0 1.851-.115 2.46-.42.611-.303.825-.784.825-1.256 0-.47-.214-.952-.824-1.256-.61-.304-1.627-.419-2.547-.419-1.777 0-3.563-.293-4.73-1.09-1.167-.795-1.584-2.03-1.584-3.245 0-1.215.417-2.44 1.584-3.246 1.167-.807 2.953-1.09 4.73-1.09 1.776 0 3.564.294 4.73 1.09 1.167.795 1.584 2.031 1.584 3.246h-3.264c0-.471-.203-.942-.749-1.257-.546-.303-1.391-.419-2.226-.419s-1.68.105-2.226.42c-.556.303-.75.785-.75 1.256 0 .47.204.942.75 1.256.545.304 1.316.42 2.151.42 1.959 0 3.938.292 5.222 1.088 1.295.796 1.756 2.032 1.756 3.246 0 1.215-.471 2.44-1.756 3.247zM96.507 12.063v1.141h-8.55v-2.272h5.672c-.129-.827-.429-1.602-.963-2.167-.771-.817-1.959-1.11-3.136-1.11s-2.366.293-3.136 1.11c-.77.816-1.048 2.063-1.048 3.298 0 1.236.278 2.492 1.048 3.299.77.806 1.959 1.11 3.135 1.11 1.178 0 2.366-.294 3.137-1.11.106-.116.203-.241.3-.367h3.167c-.279.985-.717 1.874-1.38 2.566-1.284 1.35-3.265 1.843-5.224 1.843-1.957 0-3.938-.482-5.222-1.843-1.284-1.362-1.754-3.435-1.754-5.498s.46-4.147 1.754-5.497c1.296-1.351 3.265-1.843 5.222-1.843 1.96 0 3.94.481 5.224 1.843 1.294 1.36 1.754 3.434 1.754 5.497zM112.624 13.204v-1.14c0-2.064-.46-4.137-1.754-5.498-1.285-1.362-3.265-1.843-5.223-1.843-1.959 0-3.928.492-5.222 1.843-1.296 1.35-1.756 3.434-1.756 5.497 0 2.063.471 4.136 1.756 5.498 1.284 1.36 3.263 1.843 5.222 1.843 1.958 0 3.938-.493 5.223-1.843.663-.692 1.102-1.582 1.38-2.566h-3.168l-.012.016c-.093.12-.185.24-.288.35-.77.817-1.957 1.11-3.135 1.11-1.177 0-2.365-.303-3.136-1.11-.77-.806-1.049-2.062-1.049-3.298 0-1.236.279-2.482 1.049-3.298.771-.817 1.959-1.11 3.136-1.11 1.178 0 2.365.293 3.135 1.11.536.565.836 1.34.964 2.167h-5.672v2.272h8.55zM128.73 19.404l-5.264-7.78 5.264-6.252h-3.97l-5.265 6.251 5.265 7.78h3.97z`})]}))});function OG(e){"@babel/helpers - typeof";return OG=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},OG(e)}var kG=[`type`];function AG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function jG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?AG(Object(n),!0).forEach(function(t){MG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):AG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function MG(e,t,n){return t=NG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NG(e){var t=PG(e,`string`);return OG(t)==`symbol`?t:String(t)}function PG(e,t){if(OG(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(OG(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function FG(e,t){if(e==null)return{};var n=IG(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function IG(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var LG=(0,p.memo)(function(e){var t=e.type,n=t===void 0?`mono`:t,r=FG(e,kG);return(0,m.jsx)(BI,jG({Icon:n===`color`?_G:$W,Text:DG,"aria-label":LW,spaceMultiple:zW,textMultiple:RW},r))}),RG=$W;RG.Color=_G,RG.Text=DG,RG.Combine=LG,RG.Avatar=sG,RG.colorPrimary=BW,RG.title=LW;var zG=`Grok`,BG=.75,VG=.2,HG=`#000`,UG=HG,WG=`#fff`,GG=.75;function KG(e){"@babel/helpers - typeof";return KG=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},KG(e)}var qG=[`size`,`style`];function JG(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YG(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JG(Object(n),!0).forEach(function(t){XG(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JG(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XG(e,t,n){return t=ZG(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZG(e){var t=QG(e,`string`);return KG(t)==`symbol`?t:String(t)}function QG(e,t){if(KG(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(KG(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $G(e,t){if(e==null)return{};var n=eK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eK(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tK=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=$G(e,qG);return(0,m.jsxs)(`svg`,YG(YG({fill:`currentColor`,fillRule:`evenodd`,height:n,style:YG({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:zG}),(0,m.jsx)(`path`,{d:`M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815`})]}))});function nK(e){"@babel/helpers - typeof";return nK=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nK(e)}function rK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rK(Object(n),!0).forEach(function(t){aK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aK(e,t,n){return t=oK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oK(e){var t=sK(e,`string`);return nK(t)==`symbol`?t:String(t)}function sK(e,t){if(nK(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(nK(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function cK(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var lK=(0,p.memo)(function(e){var t=Object.assign({},(cK(e),e));return(0,m.jsx)(II,iK({Icon:tK,"aria-label":zG,background:UG,color:WG,iconMultiple:GG},t))});function uK(e){"@babel/helpers - typeof";return uK=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uK(e)}var dK=[`size`,`style`];function fK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fK(Object(n),!0).forEach(function(t){mK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mK(e,t,n){return t=hK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hK(e){var t=gK(e,`string`);return uK(t)==`symbol`?t:String(t)}function gK(e,t){if(uK(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(uK(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _K(e,t){if(e==null)return{};var n=vK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vK(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var yK=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=_K(e,dK);return(0,m.jsxs)(`svg`,pK(pK({fill:`currentColor`,fillRule:`evenodd`,height:n,style:pK({flex:`none`,lineHeight:1},r),viewBox:`0 0 63 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:zG}),(0,m.jsx)(`path`,{d:`M47.419 21.645V2.457h3.033V15.12l6.415-7.369h3.678l-5.772 6.316 5.825 7.578h-3.624l-4.717-6.512-1.805-.012v6.524h-3.033zM38.22 21.968c-4.51 0-6.952-3.198-6.952-7.283 0-4.112 2.443-7.283 6.952-7.283 4.537 0 6.952 3.17 6.952 7.283 0 4.085-2.415 7.283-6.952 7.283zm-3.785-7.283c0 3.17 1.718 4.756 3.785 4.756 2.094 0 3.785-1.585 3.785-4.756 0-3.172-1.691-4.784-3.785-4.784-2.067 0-3.785 1.612-3.785 4.784zM22.826 21.645V9.955l2.55-2.204h5.422v2.58H25.86v11.314h-3.033zM11.228 22C5.447 22 2 17.802 2 12.078 2 6.3 5.57 2 11.341 2c4.51 0 7.811 2.311 8.59 6.611h-3.463c-.51-2.445-2.55-3.816-5.127-3.816-4.16 0-5.986 3.601-5.986 7.283 0 3.682 1.826 7.256 5.986 7.256 3.973 0 5.717-2.876 5.852-5.267h-5.986v-2.783h9.046l-.015 1.455c0 5.406-2.203 9.261-9.01 9.261z`})]}))});function bK(e){"@babel/helpers - typeof";return bK=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bK(e)}function xK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function SK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?xK(Object(n),!0).forEach(function(t){CK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function CK(e,t,n){return t=wK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wK(e){var t=TK(e,`string`);return bK(t)==`symbol`?t:String(t)}function TK(e,t){if(bK(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bK(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function EK(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var DK=(0,p.memo)(function(e){var t=Object.assign({},(EK(e),e));return(0,m.jsx)(BI,SK({Icon:tK,Text:yK,"aria-label":zG,spaceMultiple:VG,textMultiple:BG},t))}),OK=tK;OK.Text=yK,OK.Combine=DK,OK.Avatar=lK,OK.colorPrimary=HG,OK.title=zG;var kK=`Meta`,AK=.75,jK=.2,MK=`#1d65c1`,NK=`linear-gradient(45deg, #007FF8, #0668E1, #007FF8)`,PK=NK,FK=`#fff`,IK=.75;function LK(e){"@babel/helpers - typeof";return LK=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},LK(e)}var RK=[`size`,`style`];function zK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zK(Object(n),!0).forEach(function(t){VK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function VK(e,t,n){return t=HK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HK(e){var t=UK(e,`string`);return LK(t)==`symbol`?t:String(t)}function UK(e,t){if(LK(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(LK(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function WK(e,t){if(e==null)return{};var n=GK(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GK(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var KK=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=WK(e,RK);return(0,m.jsxs)(`svg`,BK(BK({fill:`currentColor`,fillRule:`evenodd`,height:n,style:BK({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:kK}),(0,m.jsx)(`path`,{d:`M6.897 4c1.915 0 3.516.932 5.43 3.376l.282-.373c.19-.246.383-.484.58-.71l.313-.35C14.588 4.788 15.792 4 17.225 4c1.273 0 2.469.557 3.491 1.516l.218.213c1.73 1.765 2.917 4.71 3.053 8.026l.011.392.002.25c0 1.501-.28 2.759-.818 3.7l-.14.23-.108.153c-.301.42-.664.758-1.086 1.009l-.265.142-.087.04a3.493 3.493 0 01-.302.118 4.117 4.117 0 01-1.33.208c-.524 0-.996-.067-1.438-.215-.614-.204-1.163-.56-1.726-1.116l-.227-.235c-.753-.812-1.534-1.976-2.493-3.586l-1.43-2.41-.544-.895-1.766 3.13-.343.592C7.597 19.156 6.227 20 4.356 20c-1.21 0-2.205-.42-2.936-1.182l-.168-.184c-.484-.573-.837-1.311-1.043-2.189l-.067-.32a8.69 8.69 0 01-.136-1.288L0 14.468c.002-.745.06-1.49.174-2.23l.1-.573c.298-1.53.828-2.958 1.536-4.157l.209-.34c1.177-1.83 2.789-3.053 4.615-3.16L6.897 4zm-.033 2.615l-.201.01c-.83.083-1.606.673-2.252 1.577l-.138.199-.01.018c-.67 1.017-1.185 2.378-1.456 3.845l-.004.022a12.591 12.591 0 00-.207 2.254l.002.188c.004.18.017.36.04.54l.043.291c.092.503.257.908.486 1.208l.117.137c.303.323.698.492 1.17.492 1.1 0 1.796-.676 3.696-3.641l2.175-3.4.454-.701-.139-.198C9.11 7.3 8.084 6.616 6.864 6.616zm10.196-.552l-.176.007c-.635.048-1.223.359-1.82.933l-.196.198c-.439.462-.887 1.064-1.367 1.807l.266.398c.18.274.362.56.55.858l.293.475 1.396 2.335.695 1.114c.583.926 1.03 1.6 1.408 2.082l.213.262c.282.326.529.54.777.673l.102.05c.227.1.457.138.718.138.176.002.35-.023.518-.073.338-.104.61-.32.813-.637l.095-.163.077-.162c.194-.459.29-1.06.29-1.785l-.006-.449c-.08-2.871-.938-5.372-2.2-6.798l-.176-.189c-.67-.683-1.444-1.074-2.27-1.074z`})]}))});function qK(e){"@babel/helpers - typeof";return qK=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qK(e)}function JK(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YK(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JK(Object(n),!0).forEach(function(t){XK(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JK(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XK(e,t,n){return t=ZK(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZK(e){var t=QK(e,`string`);return qK(t)==`symbol`?t:String(t)}function QK(e,t){if(qK(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(qK(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $K(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var eq=(0,p.memo)(function(e){var t=Object.assign({},($K(e),e));return(0,m.jsx)(II,YK({Icon:KK,"aria-label":kK,background:PK,color:FK,iconMultiple:IK},t))});function tq(e){"@babel/helpers - typeof";return tq=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},tq(e)}var nq=[`size`,`style`];function rq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rq(Object(n),!0).forEach(function(t){aq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aq(e,t,n){return t=oq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oq(e){var t=sq(e,`string`);return tq(t)==`symbol`?t:String(t)}function sq(e,t){if(tq(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(tq(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function cq(e,t){return pq(e)||fq(e,t)||uq(e,t)||lq()}function lq(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
71
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uq(e,t){if(e){if(typeof e==`string`)return dq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return dq(e,t)}}function dq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function fq(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function pq(e){if(Array.isArray(e))return e}function mq(e,t){if(e==null)return{};var n=hq(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function hq(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var gq=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=mq(e,nq),a=cq(UI(`${kK}-brand`,13),13),o=a[0],s=a[1],c=a[2],l=a[3],u=a[4],d=a[5],f=a[6],p=a[7],h=a[8],g=a[9],_=a[10],v=a[11],y=a[12];return(0,m.jsxs)(`svg`,iq(iq({fill:`currentColor`,fillRule:`evenodd`,height:n,style:iq({flex:`none`,lineHeight:1},r),viewBox:`0 0 103 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:kK}),(0,m.jsx)(`path`,{d:`M38.337 2.641h3.752l6.38 11.57 6.38-11.57h3.671v19.011H55.46V7.082l-5.594 10.09h-2.872l-5.595-10.09v14.57h-3.06V2.642zm30.058 19.353c-1.418 0-2.664-.314-3.739-.944a6.594 6.594 0 01-2.513-2.614c-.6-1.113-.9-2.39-.9-3.829 0-1.457.293-2.748.88-3.87.587-1.123 1.402-2 2.445-2.635 1.043-.633 2.242-.95 3.596-.95 1.346 0 2.504.319 3.475.957.97.638 1.718 1.532 2.242 2.682.523 1.15.785 2.499.785 4.047v.842h-10.39c.19 1.159.658 2.07 1.403 2.736.745.665 1.686.998 2.824.998.912 0 1.698-.136 2.357-.407a5.997 5.997 0 001.856-1.236l1.625 1.996c-1.616 1.485-3.599 2.227-5.946 2.227zm2.235-11.278c-.642-.656-1.481-.984-2.52-.984-1.011 0-1.858.335-2.54 1.005-.681.67-1.113 1.57-1.293 2.702h7.45c-.09-1.159-.456-2.066-1.097-2.723zm7.748-.712h-2.817V7.492h2.817V3.337h2.953v4.155h4.28v2.512h-4.28v6.369c0 1.059.18 1.815.542 2.267.36.453.98.68 1.855.68.389 0 .718-.016.99-.048l.426-.056c.15-.022.305-.046.467-.073v2.485a8.876 8.876 0 01-2.452.34c-3.187 0-4.781-1.748-4.781-5.242v-6.722zM101 21.654h-2.899v-1.982a5.24 5.24 0 01-1.964 1.718c-.795.403-1.698.604-2.71.604-1.245 0-2.35-.319-3.311-.957-.962-.638-1.718-1.517-2.269-2.635-.55-1.118-.826-2.396-.826-3.836 0-1.448.28-2.73.84-3.843.56-1.113 1.334-1.987 2.323-2.62.989-.634 2.124-.951 3.406-.951.967 0 1.834.188 2.601.563a5.145 5.145 0 011.91 1.596V7.49H101v14.164zm-2.953-9.206c-.316-.806-.815-1.442-1.497-1.908-.682-.466-1.47-.7-2.363-.7-1.265 0-2.272.426-3.021 1.277-.75.851-1.125 2-1.124 3.45 0 1.457.36 2.611 1.083 3.462.722.851 1.702 1.276 2.94 1.276.911 0 1.724-.235 2.438-.706a3.987 3.987 0 001.544-1.9v-4.251z`}),(0,m.jsx)(`path`,{d:`M8.627 0h-.029l-.04 3.27.028-.001c2.146 0 3.81 1.696 7.43 7.807l.22.372.014.024 2.026-3.047-.014-.023a60.949 60.949 0 00-1.374-2.146 35.014 35.014 0 00-1.47-2.036C13.026 1.165 11.024 0 8.628 0z`,fill:o.fill,transform:`translate(2 2)`}),(0,m.jsx)(`path`,{d:`M8.598 0C6.19.013 4.062 1.573 2.525 3.961a5.44 5.44 0 00-.013.021l2.82 1.54.015-.022c.897-1.354 2.014-2.218 3.211-2.23l.027-.001L8.627 0h-.03z`,fill:s.fill,transform:`translate(2 2)`}),(0,m.jsx)(`path`,{d:`M2.525 3.963l-.013.02C1.502 5.56.749 7.494.342 9.58l-.005.027 3.17.75c0-.01.002-.018.004-.028.339-1.833.984-3.533 1.822-4.806l.013-.02-2.82-1.54z`,fill:c.fill,transform:`translate(2 2)`}),(0,m.jsx)(`path`,{d:`M3.511 10.33L.342 9.582l-.005.027A18.541 18.541 0 000 13.09v.028l3.25.292v-.029a15.728 15.728 0 01.262-3.05z`,fill:l.fill,transform:`translate(2 2)`}),(0,m.jsx)(`path`,{d:`M3.349 14.422a6.822 6.822 0 01-.099-1.017v-.028L0 13.085v.031a11.105 11.105 0 00.183 2.064l3.17-.731a5.131 5.131 0 01-.004-.027z`,fill:u.fill,transform:`translate(2 2)`}),(0,m.jsx)(`path`,{d:`M4.09 16.112c-.354-.387-.605-.945-.736-1.659l-.005-.027-3.171.731.005.027c.24 1.262.71 2.313 1.383 3.108l.018.022 2.524-2.181a2.635 2.635 0 01-.019-.02z`,fill:d.fill,transform:`translate(2 2)`}),(0,m.jsx)(`path`,{d:`M15.484 9.067a399.491 399.491 0 00-3.069 4.781c-2.545 4-3.426 4.897-4.843 4.897-.591 0-1.085-.211-1.464-.615a2.313 2.313 0 01-.019-.02l-2.523 2.18.018.021C4.514 21.397 5.825 22 7.448 22c2.456 0 4.222-1.16 7.361-6.662l2.21-3.913a51.6 51.6 0 00-1.535-2.358z`,fill:`#0082FB`}),(0,m.jsx)(`path`,{d:`M16.89 2.432a19.722 19.722 0 00-1.471 1.79c.472.604.96 1.281 1.47 2.038.6-.93 1.16-1.682 1.71-2.258l.019-.02-1.728-1.55z`,fill:f.fill,transform:`translate(2 2)`}),(0,m.jsx)(`path`,{d:`M28.166 4.142C26.834 2.792 25.245 2 23.546 2c-1.79 0-3.297.984-4.656 2.43a6.451 6.451 0 00-.02.02L20.6 6l.019-.021c.895-.934 1.762-1.4 2.722-1.4 1.034 0 2.001.488 2.84 1.343l.019.02 1.987-1.78-.02-.02z`,fill:`#0082FB`}),(0,m.jsx)(`path`,{d:`M30.019 12.656c-.075-4.333-1.588-8.207-3.833-10.495l-.02-.02-1.987 1.78.02.02c1.689 1.74 2.848 4.975 2.953 8.714v.028l2.867.001v-.028z`,fill:p.fill,transform:`translate(2 2)`}),(0,m.jsx)(`path`,{d:`M30.02 12.687l-.001-.028h-2.867v.027c.005.176.008.352.008.53 0 1.02-.152 1.843-.461 2.438l-.014.027 2.137 2.228.016-.024c.776-1.2 1.183-2.868 1.183-4.89 0-.103 0-.205-.002-.308z`,fill:h.fill,transform:`translate(2 2)`}),(0,m.jsx)(`path`,{d:`M26.7 15.65l-.015.026c-.267.502-.649.836-1.147.982l.974 3.079a4.372 4.372 0 00.547-.229 4.45 4.45 0 001.709-1.522 4.18 4.18 0 00.055-.081l.015-.025-2.139-2.23z`,fill:g.fill,transform:`translate(2 2)`}),(0,m.jsx)(`path`,{d:`M24.917 16.742c-.327 0-.615-.049-.897-.175l-.998 3.151c.56.192 1.16.279 1.826.279.615 0 1.179-.092 1.69-.27l-.974-3.077c-.21.063-.428.094-.647.092z`,fill:_.fill,transform:`translate(2 2)`}),(0,m.jsx)(`path`,{d:`M22.92 15.667l-.018-.021-2.296 2.393.02.02c.797.853 1.56 1.382 2.423 1.672l.997-3.15c-.364-.156-.716-.44-1.125-.914z`,fill:v.fill,transform:`translate(2 2)`}),(0,m.jsx)(`path`,{d:`M22.902 15.643c-.688-.802-1.54-2.139-2.88-4.3l-1.746-2.92-.014-.023-2.026 3.046.014.024 1.237 2.087c1.2 2.012 2.177 3.467 3.12 4.48l.019.02 2.295-2.392a2.945 2.945 0 01-.019-.022z`,fill:y.fill,transform:`translate(2 2)`}),(0,m.jsxs)(`defs`,{children:[(0,m.jsxs)(`linearGradient`,{id:o.id,x1:`75.904%`,x2:`33.275%`,y1:`89.153%`,y2:`23.044%`,children:[(0,m.jsx)(`stop`,{offset:`.06%`,stopColor:`#0867DF`}),(0,m.jsx)(`stop`,{offset:`45.39%`,stopColor:`#0668E1`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#0064E0`})]}),(0,m.jsxs)(`linearGradient`,{id:s.id,x1:`21.67%`,x2:`97.068%`,y1:`75.837%`,y2:`24.022%`,children:[(0,m.jsx)(`stop`,{offset:`13.23%`,stopColor:`#0064DF`}),(0,m.jsx)(`stop`,{offset:`99.88%`,stopColor:`#0064E0`})]}),(0,m.jsxs)(`linearGradient`,{id:c.id,x1:`38.247%`,x2:`60.91%`,y1:`89.127%`,y2:`16.131%`,children:[(0,m.jsx)(`stop`,{offset:`1.47%`,stopColor:`#0072EC`}),(0,m.jsx)(`stop`,{offset:`68.81%`,stopColor:`#0064DF`})]}),(0,m.jsxs)(`linearGradient`,{id:l.id,x1:`47.027%`,x2:`52.153%`,y1:`90.19%`,y2:`15.745%`,children:[(0,m.jsx)(`stop`,{offset:`7.31%`,stopColor:`#007CF6`}),(0,m.jsx)(`stop`,{offset:`99.43%`,stopColor:`#0072EC`})]}),(0,m.jsxs)(`linearGradient`,{id:u.id,x1:`52.155%`,x2:`47.591%`,y1:`58.289%`,y2:`37.023%`,children:[(0,m.jsx)(`stop`,{offset:`7.31%`,stopColor:`#007FF9`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#007CF6`})]}),(0,m.jsxs)(`linearGradient`,{id:d.id,x1:`37.689%`,x2:`61.961%`,y1:`12.556%`,y2:`63.605%`,children:[(0,m.jsx)(`stop`,{offset:`7.31%`,stopColor:`#007FF9`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#0082FB`})]}),(0,m.jsxs)(`linearGradient`,{id:f.id,x1:`42.496%`,x2:`59.964%`,y1:`56.072%`,y2:`27.099%`,children:[(0,m.jsx)(`stop`,{offset:`0%`,stopColor:`#007FF8`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#0082FB`})]}),(0,m.jsxs)(`linearGradient`,{id:p.id,x1:`43.753%`,x2:`57.613%`,y1:`6.235%`,y2:`98.514%`,children:[(0,m.jsx)(`stop`,{offset:`0%`,stopColor:`#0082FB`}),(0,m.jsx)(`stop`,{offset:`99.95%`,stopColor:`#0081FA`})]}),(0,m.jsxs)(`linearGradient`,{id:h.id,x1:`60.07%`,x2:`39.865%`,y1:`4.661%`,y2:`69.077%`,children:[(0,m.jsx)(`stop`,{offset:`6.19%`,stopColor:`#0081FA`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#0080F9`})]}),(0,m.jsxs)(`linearGradient`,{id:g.id,x1:`30.254%`,x2:`61.097%`,y1:`59.32%`,y2:`33.244%`,children:[(0,m.jsx)(`stop`,{offset:`0%`,stopColor:`#027AF3`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#0080F9`})]}),(0,m.jsxs)(`linearGradient`,{id:_.id,x1:`20.433%`,x2:`82.112%`,y1:`50.001%`,y2:`50.001%`,children:[(0,m.jsx)(`stop`,{offset:`0%`,stopColor:`#0377EF`}),(0,m.jsx)(`stop`,{offset:`99.94%`,stopColor:`#0279F1`})]}),(0,m.jsxs)(`linearGradient`,{id:v.id,x1:`40.289%`,x2:`72.427%`,y1:`35.298%`,y2:`57.811%`,children:[(0,m.jsx)(`stop`,{offset:`.19%`,stopColor:`#0471E9`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#0377EF`})]}),(0,m.jsxs)(`linearGradient`,{id:y.id,x1:`32.228%`,x2:`68.028%`,y1:`19.719%`,y2:`84.908%`,children:[(0,m.jsx)(`stop`,{offset:`27.65%`,stopColor:`#0867DF`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#0471E9`})]})]})]}))});function _q(e){"@babel/helpers - typeof";return _q=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},_q(e)}var vq=[`size`,`style`];function yq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function bq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?yq(Object(n),!0).forEach(function(t){xq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function xq(e,t,n){return t=Sq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sq(e){var t=Cq(e,`string`);return _q(t)==`symbol`?t:String(t)}function Cq(e,t){if(_q(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(_q(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function wq(e,t){if(e==null)return{};var n=Tq(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tq(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Eq=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=wq(e,vq);return(0,m.jsxs)(`svg`,bq(bq({fill:`currentColor`,fillRule:`evenodd`,height:n,style:bq({flex:`none`,lineHeight:1},r),viewBox:`0 0 103 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:kK}),(0,m.jsx)(`path`,{d:`M38.337 2.641h3.752l6.38 11.57 6.38-11.57h3.671v19.011H55.46V7.082l-5.594 10.09h-2.872l-5.595-10.09v14.57h-3.06V2.642zm30.058 19.353c-1.418 0-2.664-.314-3.739-.944a6.594 6.594 0 01-2.513-2.614c-.6-1.113-.9-2.39-.9-3.829 0-1.457.293-2.748.88-3.87.587-1.123 1.402-2 2.445-2.635 1.043-.633 2.242-.95 3.596-.95 1.346 0 2.504.319 3.475.957.97.638 1.718 1.532 2.242 2.682.523 1.15.785 2.499.785 4.047v.842h-10.39c.19 1.159.658 2.07 1.403 2.736.745.665 1.686.998 2.824.998.912 0 1.698-.136 2.357-.407a5.997 5.997 0 001.856-1.236l1.625 1.996c-1.616 1.485-3.599 2.227-5.946 2.227zm2.235-11.278c-.642-.656-1.481-.984-2.52-.984-1.011 0-1.858.335-2.54 1.005-.681.67-1.113 1.57-1.293 2.702h7.45c-.09-1.159-.456-2.066-1.097-2.723zm7.748-.712h-2.817V7.492h2.817V3.337h2.953v4.155h4.28v2.512h-4.28v6.369c0 1.059.18 1.815.542 2.267.36.453.98.68 1.855.68.389 0 .718-.016.99-.048l.426-.056c.15-.022.305-.046.467-.073v2.485a8.88 8.88 0 01-2.452.34c-3.187 0-4.781-1.748-4.781-5.242v-6.722zM101 21.654h-2.899v-1.982a5.24 5.24 0 01-1.964 1.718c-.795.403-1.698.604-2.71.604-1.245 0-2.35-.319-3.311-.957-.962-.638-1.718-1.517-2.269-2.635-.55-1.118-.826-2.396-.826-3.836 0-1.448.28-2.73.84-3.843.56-1.113 1.334-1.987 2.323-2.62.989-.634 2.124-.951 3.406-.951.967 0 1.834.188 2.601.563a5.145 5.145 0 011.91 1.596V7.49H101v14.164zm-2.953-9.206c-.316-.806-.815-1.442-1.497-1.908-.682-.466-1.47-.7-2.363-.7-1.265 0-2.272.426-3.021 1.277-.75.851-1.125 2-1.124 3.45 0 1.457.36 2.611 1.083 3.462.722.851 1.702 1.276 2.94 1.276.911 0 1.724-.235 2.438-.706a3.987 3.987 0 001.544-1.9v-4.251zM10.627 2c2.396 0 4.398 1.165 6.792 4.22.375-.507.758-.99 1.153-1.438l.318-.352C20.249 2.984 21.755 2 23.546 2c1.604 0 3.11.706 4.395 1.92l.245.24c2.173 2.215 3.66 5.914 3.821 10.078l.012.446.002.311c0 1.896-.358 3.48-1.042 4.66l-.157.254-.134.19a4.45 4.45 0 01-1.629 1.41l-.17.08a4.372 4.372 0 01-.377.148c-.505.17-1.06.26-1.664.26-.656 0-1.246-.084-1.8-.27-.784-.26-1.485-.72-2.206-1.443l-.236-.245c-.942-1.015-1.92-2.47-3.119-4.482l-1.472-2.481c-.171-.29-.338-.57-.5-.839l-.497-.812-2.209 3.913-.377.652-.373.623C11.374 21.023 9.701 22 7.449 22c-1.528 0-2.78-.534-3.696-1.501l-.187-.207c-.617-.729-1.063-1.673-1.318-2.797l-.07-.338a10.856 10.856 0 01-.17-1.61L2 15.084c.002-.97.08-1.941.235-2.902l.107-.603C2.72 9.643 3.396 7.837 4.3 6.327l.226-.366c1.482-2.303 3.514-3.836 5.816-3.954L10.627 2zm.114 3.272l-.183-.003c-1.13.012-2.19.784-3.06 2.01l-.153.222-.012.022c-.774 1.175-1.383 2.714-1.738 4.386l-.089.448c-.17.93-.257 1.873-.259 2.818l.003.235c.005.224.022.45.05.675l.054.364c.117.639.328 1.15.621 1.528l.113.133.02.02c.379.404.873.615 1.464.615 1.348 0 2.21-.811 4.482-4.333l2.286-3.578 1.144-1.767-.25-.354c-1.744-2.429-2.965-3.32-4.34-3.432l-.153-.009zm12.599-.693l-.204.007c-.88.062-1.687.526-2.518 1.393l-.02.023c-.549.576-1.11 1.329-1.71 2.258.352.52.715 1.082 1.09 1.683l.298.48 1.746 2.92.748 1.2.527.83c.607.946 1.085 1.641 1.5 2.146l.124.146c.358.416.672.686.989.852l.108.051c.284.125.572.174.899.174.22.002.437-.03.647-.092.43-.132.774-.409 1.03-.815l.106-.185.087-.181c.25-.576.373-1.336.373-2.253l-.002-.266-.006-.292c-.102-3.612-1.185-6.752-2.78-8.53l-.193-.206c-.838-.855-1.805-1.343-2.84-1.343z`})]}))});function Dq(e){"@babel/helpers - typeof";return Dq=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Dq(e)}var Oq=[`size`,`style`];function kq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Aq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kq(Object(n),!0).forEach(function(t){jq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jq(e,t,n){return t=Mq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mq(e){var t=Nq(e,`string`);return Dq(t)==`symbol`?t:String(t)}function Nq(e,t){if(Dq(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Dq(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Pq(e,t){return zq(e)||Rq(e,t)||Iq(e,t)||Fq()}function Fq(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
72
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Iq(e,t){if(e){if(typeof e==`string`)return Lq(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lq(e,t)}}function Lq(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Rq(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;c=!1}else for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function zq(e){if(Array.isArray(e))return e}function Bq(e,t){if(e==null)return{};var n=Vq(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vq(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Hq=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Bq(e,Oq),a=Pq(UI(kK,13),13),o=a[0],s=a[1],c=a[2],l=a[3],u=a[4],d=a[5],f=a[6],p=a[7],h=a[8],g=a[9],_=a[10],v=a[11],y=a[12];return(0,m.jsxs)(`svg`,Aq(Aq({height:n,style:Aq({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:kK}),(0,m.jsx)(`path`,{d:`M6.897 4h-.024l-.031 2.615h.022c1.715 0 3.046 1.357 5.94 6.246l.175.297.012.02 1.62-2.438-.012-.019a48.763 48.763 0 00-1.098-1.716 28.01 28.01 0 00-1.175-1.629C10.413 4.932 8.812 4 6.896 4z`,fill:o.fill}),(0,m.jsx)(`path`,{d:`M6.873 4C4.95 4.01 3.247 5.258 2.02 7.17a4.352 4.352 0 00-.01.017l2.254 1.231.011-.017c.718-1.083 1.61-1.774 2.568-1.785h.021L6.896 4h-.023z`,fill:s.fill}),(0,m.jsx)(`path`,{d:`M2.019 7.17l-.011.017C1.2 8.447.598 9.995.274 11.664l-.005.022 2.534.6.004-.022c.27-1.467.786-2.828 1.456-3.845l.011-.017L2.02 7.17z`,fill:c.fill}),(0,m.jsx)(`path`,{d:`M2.807 12.264l-2.533-.6-.005.022c-.177.918-.267 1.851-.269 2.786v.023l2.598.233v-.023a12.591 12.591 0 01.21-2.44z`,fill:l.fill}),(0,m.jsx)(`path`,{d:`M2.677 15.537a5.462 5.462 0 01-.079-.813v-.022L0 14.468v.024a8.89 8.89 0 00.146 1.652l2.535-.585a4.106 4.106 0 01-.004-.022z`,fill:u.fill}),(0,m.jsx)(`path`,{d:`M3.27 16.89c-.284-.31-.484-.756-.589-1.328l-.004-.021-2.535.585.004.021c.192 1.01.568 1.85 1.106 2.487l.014.017 2.018-1.745a2.106 2.106 0 01-.015-.016z`,fill:d.fill}),(0,m.jsx)(`path`,{d:`M10.78 9.654c-1.528 2.35-2.454 3.825-2.454 3.825-2.035 3.2-2.739 3.917-3.871 3.917a1.545 1.545 0 01-1.186-.508l-2.017 1.744.014.017C2.01 19.518 3.058 20 4.356 20c1.963 0 3.374-.928 5.884-5.33l1.766-3.13a41.283 41.283 0 00-1.227-1.886z`,fill:`#0082FB`}),(0,m.jsx)(`path`,{d:`M13.502 5.946l-.016.016c-.4.43-.786.908-1.16 1.416.378.483.768 1.024 1.175 1.63.48-.743.928-1.345 1.367-1.807l.016-.016-1.382-1.24z`,fill:f.fill}),(0,m.jsx)(`path`,{d:`M20.918 5.713C19.853 4.633 18.583 4 17.225 4c-1.432 0-2.637.787-3.723 1.944l-.016.016 1.382 1.24.016-.017c.715-.747 1.408-1.12 2.176-1.12.826 0 1.6.39 2.27 1.075l.015.016 1.589-1.425-.016-.016z`,fill:`#0082FB`}),(0,m.jsx)(`path`,{d:`M23.998 14.125c-.06-3.467-1.27-6.566-3.064-8.396l-.016-.016-1.588 1.424.015.016c1.35 1.392 2.277 3.98 2.361 6.971v.023h2.292v-.022z`,fill:p.fill}),(0,m.jsx)(`path`,{d:`M23.998 14.15v-.023h-2.292v.022c.004.14.006.282.006.424 0 .815-.121 1.474-.368 1.95l-.011.022 1.708 1.782.013-.02c.62-.96.946-2.293.946-3.91 0-.083 0-.165-.002-.247z`,fill:h.fill}),(0,m.jsx)(`path`,{d:`M21.344 16.52l-.011.02c-.214.402-.519.67-.917.787l.778 2.462a3.493 3.493 0 00.438-.182 3.558 3.558 0 001.366-1.218l.044-.065.012-.02-1.71-1.784z`,fill:g.fill}),(0,m.jsx)(`path`,{d:`M19.92 17.393c-.262 0-.492-.039-.718-.14l-.798 2.522c.449.153.927.222 1.46.222.492 0 .943-.073 1.352-.215l-.78-2.462c-.167.05-.341.075-.517.073z`,fill:_.fill}),(0,m.jsx)(`path`,{d:`M18.323 16.534l-.014-.017-1.836 1.914.016.017c.637.682 1.246 1.105 1.937 1.337l.797-2.52c-.291-.125-.573-.353-.9-.731z`,fill:v.fill}),(0,m.jsx)(`path`,{d:`M18.309 16.515c-.55-.642-1.232-1.712-2.303-3.44l-1.396-2.336-.011-.02-1.62 2.438.012.02.989 1.668c.959 1.61 1.74 2.774 2.493 3.585l.016.016 1.834-1.914a2.353 2.353 0 01-.014-.017z`,fill:y.fill}),(0,m.jsxs)(`defs`,{children:[(0,m.jsxs)(`linearGradient`,{id:o.id,x1:`75.897%`,x2:`26.312%`,y1:`89.199%`,y2:`12.194%`,children:[(0,m.jsx)(`stop`,{offset:`.06%`,stopColor:`#0867DF`}),(0,m.jsx)(`stop`,{offset:`45.39%`,stopColor:`#0668E1`}),(0,m.jsx)(`stop`,{offset:`85.91%`,stopColor:`#0064E0`})]}),(0,m.jsxs)(`linearGradient`,{id:s.id,x1:`21.67%`,x2:`97.068%`,y1:`75.874%`,y2:`23.985%`,children:[(0,m.jsx)(`stop`,{offset:`13.23%`,stopColor:`#0064DF`}),(0,m.jsx)(`stop`,{offset:`99.88%`,stopColor:`#0064E0`})]}),(0,m.jsxs)(`linearGradient`,{id:c.id,x1:`38.263%`,x2:`60.895%`,y1:`89.127%`,y2:`16.131%`,children:[(0,m.jsx)(`stop`,{offset:`1.47%`,stopColor:`#0072EC`}),(0,m.jsx)(`stop`,{offset:`68.81%`,stopColor:`#0064DF`})]}),(0,m.jsxs)(`linearGradient`,{id:l.id,x1:`47.032%`,x2:`52.15%`,y1:`90.19%`,y2:`15.745%`,children:[(0,m.jsx)(`stop`,{offset:`7.31%`,stopColor:`#007CF6`}),(0,m.jsx)(`stop`,{offset:`99.43%`,stopColor:`#0072EC`})]}),(0,m.jsxs)(`linearGradient`,{id:u.id,x1:`52.155%`,x2:`47.591%`,y1:`58.301%`,y2:`37.004%`,children:[(0,m.jsx)(`stop`,{offset:`7.31%`,stopColor:`#007FF9`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#007CF6`})]}),(0,m.jsxs)(`linearGradient`,{id:d.id,x1:`37.689%`,x2:`61.961%`,y1:`12.502%`,y2:`63.624%`,children:[(0,m.jsx)(`stop`,{offset:`7.31%`,stopColor:`#007FF9`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#0082FB`})]}),(0,m.jsxs)(`linearGradient`,{id:f.id,x1:`34.808%`,x2:`62.313%`,y1:`68.859%`,y2:`23.174%`,children:[(0,m.jsx)(`stop`,{offset:`27.99%`,stopColor:`#007FF8`}),(0,m.jsx)(`stop`,{offset:`91.41%`,stopColor:`#0082FB`})]}),(0,m.jsxs)(`linearGradient`,{id:p.id,x1:`43.762%`,x2:`57.602%`,y1:`6.235%`,y2:`98.514%`,children:[(0,m.jsx)(`stop`,{offset:`0%`,stopColor:`#0082FB`}),(0,m.jsx)(`stop`,{offset:`99.95%`,stopColor:`#0081FA`})]}),(0,m.jsxs)(`linearGradient`,{id:h.id,x1:`60.055%`,x2:`39.88%`,y1:`4.661%`,y2:`69.077%`,children:[(0,m.jsx)(`stop`,{offset:`6.19%`,stopColor:`#0081FA`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#0080F9`})]}),(0,m.jsxs)(`linearGradient`,{id:g.id,x1:`30.282%`,x2:`61.081%`,y1:`59.32%`,y2:`33.244%`,children:[(0,m.jsx)(`stop`,{offset:`0%`,stopColor:`#027AF3`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#0080F9`})]}),(0,m.jsxs)(`linearGradient`,{id:_.id,x1:`20.433%`,x2:`82.112%`,y1:`50.001%`,y2:`50.001%`,children:[(0,m.jsx)(`stop`,{offset:`0%`,stopColor:`#0377EF`}),(0,m.jsx)(`stop`,{offset:`99.94%`,stopColor:`#0279F1`})]}),(0,m.jsxs)(`linearGradient`,{id:v.id,x1:`40.303%`,x2:`72.394%`,y1:`35.298%`,y2:`57.811%`,children:[(0,m.jsx)(`stop`,{offset:`.19%`,stopColor:`#0471E9`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#0377EF`})]}),(0,m.jsxs)(`linearGradient`,{id:y.id,x1:`32.254%`,x2:`68.003%`,y1:`19.719%`,y2:`84.908%`,children:[(0,m.jsx)(`stop`,{offset:`27.65%`,stopColor:`#0867DF`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#0471E9`})]})]})]}))});function Uq(e){"@babel/helpers - typeof";return Uq=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Uq(e)}var Wq=[`size`,`style`];function Gq(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Kq(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Gq(Object(n),!0).forEach(function(t){qq(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gq(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function qq(e,t,n){return t=Jq(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Jq(e){var t=Yq(e,`string`);return Uq(t)==`symbol`?t:String(t)}function Yq(e,t){if(Uq(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Uq(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function Xq(e,t){if(e==null)return{};var n=Zq(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zq(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var Qq=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=Xq(e,Wq);return(0,m.jsxs)(`svg`,Kq(Kq({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Kq({flex:`none`,lineHeight:1},r),viewBox:`0 0 75 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:kK}),(0,m.jsx)(`path`,{d:`M2 21.73V2.81h2.878V19h9.98v2.73zM17.722 21.73V2h2.69v19.73zM27.352 22c-1.416 0-2.517-.367-3.302-1.101-.784-.735-1.176-1.7-1.176-2.899 0-1.19.441-2.185 1.324-2.986.884-.802 2.294-1.203 4.23-1.203h3.659v-.04c0-2.271-1.04-3.406-3.12-3.406-.87 0-1.603.158-2.2.473a3.828 3.828 0 00-1.446 1.324l-1.842-1.5a5.763 5.763 0 012.266-2.054c.937-.477 2.002-.716 3.194-.716h.296c1.65 0 2.977.477 3.981 1.432 1.005.955 1.507 2.383 1.507 4.284v8.122H32.14v-2.203a5.325 5.325 0 01-2.004 1.831c-.816.428-1.744.642-2.784.642zm.592-2.405c1.04 0 1.905-.237 2.596-.71.69-.473 1.206-1.115 1.547-1.926v-1.027h-3.551c-1.058 0-1.814.17-2.266.507-.453.338-.68.795-.68 1.372 0 1.189.785 1.784 2.354 1.784zM37.776 21.73V8.216h2.69v2.216c.484-.792 1.085-1.414 1.802-1.864.717-.45 1.547-.676 2.488-.676h.296c1.04 0 1.914.257 2.623.77.708.514 1.232 1.252 1.573 2.216.52-.928 1.184-1.657 1.99-2.189.808-.531 1.722-.797 2.744-.797h.296c1.507 0 2.657.527 3.45 1.581.794 1.054 1.19 2.536 1.19 4.446v7.81h-2.69v-7.486c0-2.558-.878-3.838-2.636-3.838h-.269c-.887 0-1.638.282-2.252.845-.615.563-1.074 1.273-1.379 2.128v8.352h-2.69v-7.487c0-2.558-.879-3.838-2.636-3.838h-.269c-.888 0-1.639.282-2.253.845-.614.563-1.074 1.273-1.378 2.128v8.352h-2.69zM65.63 22c-1.417 0-2.518-.367-3.302-1.101-.785-.735-1.177-1.7-1.177-2.899 0-1.19.442-2.185 1.325-2.986.883-.802 2.293-1.203 4.23-1.203h3.658v-.04c0-2.271-1.04-3.406-3.12-3.406-.87 0-1.603.158-2.2.473a3.828 3.828 0 00-1.445 1.324l-1.843-1.5a5.763 5.763 0 012.266-2.054c.937-.477 2.002-.716 3.195-.716h.296c1.65 0 2.976.477 3.98 1.432C72.499 10.28 73 11.707 73 13.608v8.122h-2.582v-2.203a5.325 5.325 0 01-2.004 1.831c-.816.428-1.744.642-2.784.642zm.591-2.405c1.04 0 1.906-.237 2.596-.71.69-.473 1.206-1.115 1.547-1.926v-1.027h-3.55c-1.059 0-1.814.17-2.267.507-.453.338-.68.795-.68 1.372 0 1.189.785 1.784 2.354 1.784z`})]}))});function $q(e){"@babel/helpers - typeof";return $q=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},$q(e)}var eJ=[`type`];function tJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function nJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?tJ(Object(n),!0).forEach(function(t){rJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function rJ(e,t,n){return t=iJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iJ(e){var t=aJ(e,`string`);return $q(t)==`symbol`?t:String(t)}function aJ(e,t){if($q(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if($q(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function oJ(e,t){if(e==null)return{};var n=sJ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sJ(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var cJ=(0,p.memo)(function(e){var t=e.type,n=t===void 0?`mono`:t,r=oJ(e,eJ);return(0,m.jsx)(BI,nJ({Icon:n===`color`?Hq:KK,Text:Qq,"aria-label":kK,spaceMultiple:jK,textMultiple:AK},r))}),lJ=KK;lJ.Color=Hq,lJ.Text=Qq,lJ.Combine=cJ,lJ.Avatar=eq,lJ.Brand=Eq,lJ.BrandColor=gq,lJ.colorPrimary=MK,lJ.colorGradient=NK,lJ.title=kK;var uJ=`Minimax`,dJ=.45,fJ=.15,pJ=`#F23F5D`,mJ=`linear-gradient(to right, #E2167E, #FE603C)`,hJ=mJ,gJ=`#fff`,_J=.75;function vJ(e){"@babel/helpers - typeof";return vJ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},vJ(e)}var yJ=[`size`,`style`];function bJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bJ(Object(n),!0).forEach(function(t){SJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SJ(e,t,n){return t=CJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CJ(e){var t=wJ(e,`string`);return vJ(t)==`symbol`?t:String(t)}function wJ(e,t){if(vJ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(vJ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function TJ(e,t){if(e==null)return{};var n=EJ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function EJ(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var DJ=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=TJ(e,yJ);return(0,m.jsxs)(`svg`,xJ(xJ({fill:`currentColor`,fillRule:`evenodd`,height:n,style:xJ({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:uJ}),(0,m.jsx)(`path`,{d:`M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z`})]}))});function OJ(e){"@babel/helpers - typeof";return OJ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},OJ(e)}function kJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kJ(Object(n),!0).forEach(function(t){jJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jJ(e,t,n){return t=MJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MJ(e){var t=NJ(e,`string`);return OJ(t)==`symbol`?t:String(t)}function NJ(e,t){if(OJ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(OJ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function PJ(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var FJ=(0,p.memo)(function(e){var t=Object.assign({},(PJ(e),e));return(0,m.jsx)(II,AJ({Icon:DJ,"aria-label":uJ,background:hJ,color:gJ,iconMultiple:_J,iconStyle:{marginLeft:-t.size*.05}},t))});function IJ(e){"@babel/helpers - typeof";return IJ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},IJ(e)}var LJ=[`size`,`style`];function RJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function zJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?RJ(Object(n),!0).forEach(function(t){BJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function BJ(e,t,n){return t=VJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VJ(e){var t=HJ(e,`string`);return IJ(t)==`symbol`?t:String(t)}function HJ(e,t){if(IJ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(IJ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function UJ(e,t){if(e==null)return{};var n=WJ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function WJ(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var GJ=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=UJ(e,LJ),a=HI(uJ),o=a.id,s=a.fill;return(0,m.jsxs)(`svg`,zJ(zJ({height:n,style:zJ({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:uJ}),(0,m.jsx)(`defs`,{children:(0,m.jsxs)(`linearGradient`,{id:o,x1:`0%`,x2:`100.182%`,y1:`50.057%`,y2:`50.057%`,children:[(0,m.jsx)(`stop`,{offset:`0%`,stopColor:`#E2167E`}),(0,m.jsx)(`stop`,{offset:`100%`,stopColor:`#FE603C`})]})}),(0,m.jsx)(`path`,{d:`M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z`,fill:s,fillRule:`nonzero`})]}))});function KJ(e){"@babel/helpers - typeof";return KJ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},KJ(e)}var qJ=[`size`,`style`];function JJ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YJ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JJ(Object(n),!0).forEach(function(t){XJ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JJ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XJ(e,t,n){return t=ZJ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZJ(e){var t=QJ(e,`string`);return KJ(t)==`symbol`?t:String(t)}function QJ(e,t){if(KJ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(KJ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $J(e,t){if(e==null)return{};var n=eY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eY(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tY=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=$J(e,qJ);return(0,m.jsxs)(`svg`,YJ(YJ({fill:`currentColor`,fillRule:`evenodd`,height:n,style:YJ({flex:`none`,lineHeight:1},r),viewBox:`0 0 114 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:uJ}),(0,m.jsx)(`path`,{d:`M2 22V2h4.23l4.41 6.828L14.93 2h3.988v20l-3.987-.06V9.25l-3.263 4.714H9.674L6.23 9.25V22H2zM26.471 2h-3.867v20h3.867V2zm3.565 0h4.049l7.492 12.387V2h3.988v20h-3.988L34.085 9.734V21.94h-4.049V2zm23.082 0h-4.109v20h4.109V2zm3.504 0v20h4.23V9.25l3.444 4.714h1.994l3.263-4.713V21.94l3.988.06V2h-3.988l-4.29 6.828L60.852 2h-4.23zm19.457 20l6.344-20h5.076l6.404 20h-4.471l-.89-3.021h-7.139L80.49 22h-4.411zm6.369-6.405h5.078l-2.505-8.338-2.573 8.338zM111.97 2h-4.774l-3.619 6.082L99.885 2h-4.592l5.961 9.985L95.294 22h4.591l3.698-6.113 3.613 6.053h4.774l-6.025-9.956L111.97 2z`})]}))});function nY(e){"@babel/helpers - typeof";return nY=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nY(e)}var rY=[`type`,`extraStyle`];function iY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function aY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?iY(Object(n),!0).forEach(function(t){oY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function oY(e,t,n){return t=sY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sY(e){var t=cY(e,`string`);return nY(t)==`symbol`?t:String(t)}function cY(e,t){if(nY(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(nY(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function lY(e,t){if(e==null)return{};var n=uY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function uY(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var dY=(0,p.memo)(function(e){var t=e.type,n=t===void 0?`mono`:t,r=e.extraStyle,i=lY(e,rY);return(0,m.jsx)(BI,aY({Icon:n===`color`?GJ:DJ,Text:tY,"aria-label":uJ,extraStyle:aY({fontWeight:500},r),spaceMultiple:fJ,textMultiple:dJ},i))}),fY=DJ;fY.Color=GJ,fY.Text=tY,fY.Combine=dY,fY.Avatar=FJ,fY.colorPrimary=pJ,fY.colorGradient=mJ,fY.title=uJ;var pY=`MoonshotAI`,mY=.75,hY=.4,gY=`#16191E`,_Y=gY,vY=`#fff`,yY=.75;function bY(e){"@babel/helpers - typeof";return bY=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bY(e)}var xY=[`size`,`style`];function SY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?SY(Object(n),!0).forEach(function(t){wY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wY(e,t,n){return t=TY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TY(e){var t=EY(e,`string`);return bY(t)==`symbol`?t:String(t)}function EY(e,t){if(bY(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bY(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function DY(e,t){if(e==null)return{};var n=OY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OY(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kY=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=DY(e,xY);return(0,m.jsxs)(`svg`,CY(CY({fill:`currentColor`,fillRule:`evenodd`,height:n,style:CY({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:pY}),(0,m.jsx)(`path`,{d:`M1.052 16.916l9.539 2.552a21.007 21.007 0 00.06 2.033l5.956 1.593a11.997 11.997 0 01-5.586.865l-.18-.016-.044-.004-.084-.009-.094-.01a11.605 11.605 0 01-.157-.02l-.107-.014-.11-.016a11.962 11.962 0 01-.32-.051l-.042-.008-.075-.013-.107-.02-.07-.015-.093-.019-.075-.016-.095-.02-.097-.023-.094-.022-.068-.017-.088-.022-.09-.024-.095-.025-.082-.023-.109-.03-.062-.02-.084-.025-.093-.028-.105-.034-.058-.019-.08-.026-.09-.031-.066-.024a6.293 6.293 0 01-.044-.015l-.068-.025-.101-.037-.057-.022-.08-.03-.087-.035-.088-.035-.079-.032-.095-.04-.063-.028-.063-.027a5.655 5.655 0 01-.041-.018l-.066-.03-.103-.047-.052-.024-.096-.046-.062-.03-.084-.04-.086-.044-.093-.047-.052-.027-.103-.055-.057-.03-.058-.032a6.49 6.49 0 01-.046-.026l-.094-.053-.06-.034-.051-.03-.072-.041-.082-.05-.093-.056-.052-.032-.084-.053-.061-.039-.079-.05-.07-.047-.053-.035a7.785 7.785 0 01-.054-.036l-.044-.03-.044-.03a6.066 6.066 0 01-.04-.028l-.057-.04-.076-.054-.069-.05-.074-.054-.056-.042-.076-.057-.076-.059-.086-.067-.045-.035-.064-.052-.074-.06-.089-.073-.046-.039-.046-.039a7.516 7.516 0 01-.043-.037l-.045-.04-.061-.053-.07-.062-.068-.06-.062-.058-.067-.062-.053-.05-.088-.084a13.28 13.28 0 01-.099-.097l-.029-.028-.041-.042-.069-.07-.05-.051-.05-.053a6.457 6.457 0 01-.168-.179l-.08-.088-.062-.07-.071-.08-.042-.049-.053-.062-.058-.068-.046-.056a7.175 7.175 0 01-.027-.033l-.045-.055-.066-.082-.041-.052-.05-.064-.02-.025a11.99 11.99 0 01-1.44-2.402zm-1.02-5.794l11.353 3.037a20.468 20.468 0 00-.469 2.011l10.817 2.894a12.076 12.076 0 01-1.845 2.005L.657 15.923l-.016-.046-.035-.104a11.965 11.965 0 01-.05-.153l-.007-.023a11.896 11.896 0 01-.207-.741l-.03-.126-.018-.08-.021-.097-.018-.081-.018-.09-.017-.084-.018-.094c-.026-.141-.05-.283-.071-.426l-.017-.118-.011-.083-.013-.102a12.01 12.01 0 01-.019-.161l-.005-.047a12.12 12.12 0 01-.034-2.145zm1.593-5.15l11.948 3.196c-.368.605-.705 1.231-1.01 1.875l11.295 3.022c-.142.82-.368 1.612-.668 2.365l-11.55-3.09L.124 10.26l.015-.1.008-.049.01-.067.015-.087.018-.098c.026-.148.056-.295.088-.442l.028-.124.02-.085.024-.097c.022-.09.045-.18.07-.268l.028-.102.023-.083.03-.1.025-.082.03-.096.026-.082.031-.095a11.896 11.896 0 011.01-2.232zm4.442-4.4L17.352 4.59a20.77 20.77 0 00-1.688 1.721l7.823 2.093c.267.852.442 1.744.513 2.665L2.106 5.213l.045-.065.027-.04.04-.055.046-.065.055-.076.054-.072.064-.086.05-.065.057-.073.055-.07.06-.074.055-.069.065-.077.054-.066.066-.077.053-.06.072-.082.053-.06.067-.074.054-.058.073-.078.058-.06.063-.067.168-.17.1-.098.059-.056.076-.071a12.084 12.084 0 012.272-1.677zM12.017 0h.097l.082.001.069.001.054.002.068.002.046.001.076.003.047.002.06.003.054.002.087.005.105.007.144.011.088.007.044.004.077.008.082.008.047.005.102.012.05.006.108.014.081.01.042.006.065.01.207.032.07.012.065.011.14.026.092.018.11.022.046.01.075.016.041.01L14.7.3l.042.01.065.015.049.012.071.017.096.024.112.03.113.03.113.032.05.015.07.02.078.024.073.023.05.016.05.016.076.025.099.033.102.036.048.017.064.023.093.034.11.041.116.045.1.04.047.02.06.024.041.018.063.026.04.018.057.025.11.048.1.046.074.035.075.036.06.028.092.046.091.045.102.052.053.028.049.026.046.024.06.033.041.022.052.029.088.05.106.06.087.051.057.034.053.032.096.059.088.055.098.062.036.024.064.041.084.056.04.027.062.042.062.043.023.017c.054.037.108.075.161.114l.083.06.065.048.056.043.086.065.082.064.04.03.05.041.086.069.079.065.085.071c.712.6 1.353 1.283 1.909 2.031L7.222.994l.062-.027.065-.028.081-.034.086-.035c.113-.045.227-.09.341-.131l.096-.035.093-.033.084-.03.096-.031c.087-.03.176-.058.264-.085l.091-.027.086-.025.102-.03.085-.023.1-.026L9.04.37l.09-.023.091-.022.095-.022.09-.02.098-.021.091-.02.095-.018.092-.018.1-.018.091-.016.098-.017.092-.014.097-.015.092-.013.102-.013.091-.012.105-.012.09-.01.105-.01c.093-.01.186-.018.28-.024l.106-.008.09-.005.11-.006.093-.004.1-.004.097-.002.099-.002.197-.002z`})]}))});function AY(e){"@babel/helpers - typeof";return AY=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},AY(e)}function jY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function MY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jY(Object(n),!0).forEach(function(t){NY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function NY(e,t,n){return t=PY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function PY(e){var t=FY(e,`string`);return AY(t)==`symbol`?t:String(t)}function FY(e,t){if(AY(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(AY(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function IY(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var LY=(0,p.memo)(function(e){var t=Object.assign({},(IY(e),e));return(0,m.jsx)(II,MY({Icon:kY,"aria-label":pY,background:_Y,color:vY,iconMultiple:yY},t))});function RY(e){"@babel/helpers - typeof";return RY=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},RY(e)}var zY=[`size`,`style`];function BY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?BY(Object(n),!0).forEach(function(t){HY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HY(e,t,n){return t=UY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UY(e){var t=WY(e,`string`);return RY(t)==`symbol`?t:String(t)}function WY(e,t){if(RY(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(RY(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function GY(e,t){if(e==null)return{};var n=KY(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KY(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var qY=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=GY(e,zY);return(0,m.jsxs)(`svg`,VY(VY({fill:`currentColor`,fillRule:`evenodd`,height:n,style:VY({flex:`none`,lineHeight:1},r),viewBox:`0 0 171 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:pY}),(0,m.jsx)(`path`,{d:`M165.484 2H169v19.507h-3.516V2zm-35.707 0v5.26h3.186v3.507h-3.186v10.74h-3.516v-10.74h-2.966V7.26h2.966V2h3.516zm-24.598 11.023v8.498h-3.345v-8.804c.008-2.1-2.109-2.895-3.109-2.895l-.064.001c-1.073.026-3.521.694-3.54 3.863v7.835h-3.468V2.014L95.14 2v6.918c1.228-1.986 3.93-2.243 4.755-2.243.926 0 1.768.155 2.525.465.757.31 1.378.783 1.864 1.42.413.54.665 1.096.757 1.667.092.571.138 1.503.138 2.796zM89.29 9.507l-2.362 2.41c-2.911-2.41-6.647-2.136-7.196-.93-.55 1.205 2.444 1.484 4.734 1.98l.634.146c1.731.408 4.603 1.274 4.52 4.12-.11 3.78-4.23 4.767-6.867 4.767-2.637 0-5.933-1.808-7.636-3.342l2.527-2.63c2.582 2.63 7.142 2.958 7.856 1.534.714-1.425-1.263-1.48-4.834-1.973-3.175-.438-4.837-2.85-4.813-4.13.034-1.843 1.543-4.85 6.31-4.886 3.227-.025 5.425.961 7.127 2.934zm-22.617.386l-.033.001c-1.905.083-3.443 1.453-3.458 3.746v7.867h-3.83V7.185h3.702v2.061l.088-.12c.591-.8 2.07-2.555 4.796-2.523 2.675.032 5.696 1.95 5.696 5.17v9.734H69.69v-8.813c-.01-2.197-2.102-2.824-3.016-2.8zm-33.14-3.29c4.247 0 7.69 3.434 7.69 7.671s-3.443 7.671-7.69 7.671c-4.248 0-7.692-3.434-7.692-7.671s3.444-7.671 7.691-7.671zm0 3.726a3.95 3.95 0 00-3.956 3.945 3.95 3.95 0 003.955 3.945 3.95 3.95 0 003.956-3.945 3.95 3.95 0 00-3.956-3.945zm16.7-3.726c4.247 0 7.69 3.434 7.69 7.671s-3.443 7.671-7.69 7.671c-4.248 0-7.692-3.434-7.692-7.671s3.444-7.671 7.691-7.671zm0 3.726a3.95 3.95 0 00-3.956 3.945 3.95 3.95 0 003.955 3.945 3.95 3.95 0 003.956-3.945 3.95 3.95 0 00-3.956-3.945zm64.382-3.726c4.248 0 7.69 3.434 7.69 7.671s-3.442 7.671-7.69 7.671c-4.247 0-7.69-3.434-7.69-7.671s3.443-7.671 7.69-7.671zm0 3.726a3.95 3.95 0 00-3.955 3.945 3.95 3.95 0 003.955 3.945 3.95 3.95 0 003.955-3.945 3.95 3.95 0 00-3.955-3.945zM2 21.616V2l10.987 7.89L23.919 2v19.616h-3.79V9.452l-7.17 5.26-7.169-5.26v12.164H2zM153.344 2l10.492 19.507h-4.138l-1.833-3.288h-5.235l-1.789-3.46-3.632 6.748h-4.358L153.344 2zm0 8.11l-2.478 4.602h5.044l-2.566-4.602z`})]}))});function JY(e){"@babel/helpers - typeof";return JY=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},JY(e)}function YY(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XY(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?YY(Object(n),!0).forEach(function(t){ZY(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YY(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ZY(e,t,n){return t=QY(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QY(e){var t=$Y(e,`string`);return JY(t)==`symbol`?t:String(t)}function $Y(e,t){if(JY(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(JY(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function eX(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var tX=(0,p.memo)(function(e){var t=Object.assign({},(eX(e),e));return(0,m.jsx)(BI,XY({Icon:kY,Text:qY,"aria-label":pY,spaceMultiple:hY,textMultiple:mY},t))}),nX=kY;nX.Text=qY,nX.Combine=tX,nX.Avatar=LY,nX.colorPrimary=gY,nX.title=pY;var rX=`OpenRouter`,iX=.3,aX=`#C8FF00`,oX=`#000`,sX=aX,cX=.75;function lX(e){"@babel/helpers - typeof";return lX=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},lX(e)}var uX=[`size`,`style`];function dX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dX(Object(n),!0).forEach(function(t){pX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pX(e,t,n){return t=mX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mX(e){var t=hX(e,`string`);return lX(t)==`symbol`?t:String(t)}function hX(e,t){if(lX(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(lX(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gX(e,t){if(e==null)return{};var n=_X(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _X(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var vX=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=gX(e,uX);return(0,m.jsxs)(`svg`,fX(fX({fill:`currentColor`,fillRule:`evenodd`,height:n,style:fX({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:rX}),(0,m.jsx)(`path`,{d:`M18.654 3.87a5.087 5.087 0 110 10.174L23.7 19.09c.64.641.187 1.737-.72 1.737H8.48a8.479 8.479 0 010-16.958h10.175zM8.479 7.26a5.087 5.087 0 100 10.176 5.087 5.087 0 000-10.175z`})]}))});function yX(e){"@babel/helpers - typeof";return yX=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yX(e)}function bX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bX(Object(n),!0).forEach(function(t){SX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SX(e,t,n){return t=CX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CX(e){var t=wX(e,`string`);return yX(t)==`symbol`?t:String(t)}function wX(e,t){if(yX(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(yX(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function TX(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var EX=(0,p.memo)(function(e){var t=Object.assign({},(TX(e),e));return(0,m.jsx)(II,xX({Icon:vX,"aria-label":rX,background:oX,color:sX,iconMultiple:cX},t))});function DX(e){"@babel/helpers - typeof";return DX=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},DX(e)}var OX=[`size`,`style`];function kX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kX(Object(n),!0).forEach(function(t){jX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jX(e,t,n){return t=MX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MX(e){var t=NX(e,`string`);return DX(t)==`symbol`?t:String(t)}function NX(e,t){if(DX(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(DX(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function PX(e,t){if(e==null)return{};var n=FX(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FX(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var IX=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=PX(e,OX);return(0,m.jsxs)(`svg`,AX(AX({height:n,style:AX({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:rX}),(0,m.jsx)(`path`,{d:`M18.654 3.87a5.087 5.087 0 110 10.174L23.7 19.09c.64.641.187 1.737-.72 1.737H8.48a8.479 8.479 0 010-16.958h10.175zM8.479 7.26a5.087 5.087 0 100 10.176 5.087 5.087 0 000-10.175z`,fill:`#C8FF00`})]}))});function LX(e){"@babel/helpers - typeof";return LX=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},LX(e)}var RX=[`size`,`style`];function zX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function BX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zX(Object(n),!0).forEach(function(t){VX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function VX(e,t,n){return t=HX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HX(e){var t=UX(e,`string`);return LX(t)==`symbol`?t:String(t)}function UX(e,t){if(LX(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(LX(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function WX(e,t){if(e==null)return{};var n=GX(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GX(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var KX=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=WX(e,RX);return(0,m.jsxs)(`svg`,BX(BX({fill:`currentColor`,fillRule:`evenodd`,height:n,style:BX({flex:`none`,lineHeight:1},r),viewBox:`0 0 120 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:rX}),(0,m.jsx)(`path`,{d:`M8.472 5.521c3.499 0 6.403 2.699 6.403 6.29 0 3.613-2.835 6.38-6.426 6.38C4.927 18.19 2 15.47 2 11.856c0-3.613 2.927-6.335 6.472-6.335zm0 10.2c2.218 0 3.636-1.76 3.636-3.865 0-2.104-1.44-3.865-3.659-3.865-2.195 0-3.659 1.715-3.659 3.82 0 2.08 1.464 3.91 3.682 3.91zM22.613 18.169c-.937 0-2.995-.48-3.956-1.967V24h-2.721V5.774h2.653v1.898c1.029-1.67 3.018-2.127 4.093-2.127 3.75 0 5.992 3.224 5.992 6.289 0 3.316-2.447 6.335-6.06 6.335zm-.343-2.47c2.196 0 3.66-1.738 3.66-3.842s-1.441-3.865-3.66-3.865c-2.218 0-3.658 1.76-3.658 3.865 0 2.104 1.44 3.842 3.659 3.842zM32.426 12.68c.046 1.875 1.784 3.178 3.568 3.178 1.487 0 2.584-.549 3.293-1.898l1.967 1.304c-1.052 1.944-3.087 2.95-5.214 2.95-3.614 0-6.403-2.722-6.403-6.358 0-3.453 2.607-6.335 6.151-6.335 3.797 0 5.946 2.63 5.946 6.312 0 .115 0 .55-.046.847h-9.262zm.138-2.059h6.403c-.091-1.738-1.486-2.767-3.179-2.767-1.67 0-2.973 1.098-3.224 2.767zM51.344 11.147c0-1.738-.823-3.041-2.698-3.041-1.715 0-2.813 1.235-2.813 3.087v6.792h-2.721V5.773h2.652V7.42a4.586 4.586 0 013.728-1.899c3.11 0 4.574 2.173 4.574 4.94v7.524h-2.722v-6.838zM62.49 8.518a5.37 5.37 0 00-.777-.069c-2.081 0-3.18 1.235-3.18 3.34v6.197h-2.72V5.774h2.652v1.943C59.22 6.345 60.5 5.66 61.827 5.66c.16 0 .503.023.663.069v2.79zM69.283 5.521c3.498 0 6.403 2.699 6.403 6.29 0 3.613-2.836 6.38-6.426 6.38-3.522 0-6.45-2.721-6.45-6.335 0-3.613 2.928-6.335 6.473-6.335zm0 10.2c2.218 0 3.636-1.76 3.636-3.865 0-2.104-1.441-3.865-3.66-3.865-2.195 0-3.658 1.715-3.658 3.82 0 2.08 1.463 3.91 3.682 3.91zM79.693 12.611c0 1.738.823 3.042 2.699 3.042 1.715 0 2.813-1.235 2.813-3.088V5.774h2.721v12.212h-2.653V16.34a4.586 4.586 0 01-3.727 1.898c-3.065 0-4.574-2.173-4.574-4.963v-7.5h2.721v6.837zM94.376 13.617c0 1.51.754 2.036 2.104 2.036.251 0 .525-.023.868-.092v2.31c-.48.183-1.12.252-1.463.252-2.63 0-4.23-1.373-4.23-4.071V8.22h-2.242V5.773h2.241V2h2.722v3.773h2.995V8.22h-2.995v5.397zM100.578 12.68c.046 1.875 1.784 3.178 3.568 3.178 1.486 0 2.584-.549 3.293-1.898l1.967 1.304c-1.052 1.944-3.088 2.95-5.214 2.95-3.614 0-6.404-2.722-6.404-6.358 0-3.453 2.607-6.335 6.152-6.335 3.796 0 5.946 2.63 5.946 6.312 0 .115 0 .55-.046.847h-9.262zm.137-2.059h6.404c-.092-1.738-1.487-2.767-3.179-2.767-1.67 0-2.973 1.098-3.225 2.767zM117.759 8.518a5.357 5.357 0 00-.777-.069c-2.081 0-3.179 1.235-3.179 3.34v6.197h-2.721V5.774h2.653v1.943c.754-1.372 2.035-2.058 3.361-2.058.16 0 .503.023.663.069v2.79z`})]}))});function qX(e){"@babel/helpers - typeof";return qX=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},qX(e)}var JX=[`type`];function YX(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XX(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?YX(Object(n),!0).forEach(function(t){ZX(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YX(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ZX(e,t,n){return t=QX(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QX(e){var t=$X(e,`string`);return qX(t)==`symbol`?t:String(t)}function $X(e,t){if(qX(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(qX(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function eZ(e,t){if(e==null)return{};var n=tZ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tZ(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var nZ=(0,p.memo)(function(e){var t=e.type,n=t===void 0?`mono`:t,r=eZ(e,JX);return(0,m.jsx)(BI,XX({Icon:n===`color`?IX:vX,Text:KX,"aria-label":rX,spaceMultiple:iX,textMultiple:1},r))}),rZ=vX;rZ.Color=IX,rZ.Text=KX,rZ.Combine=nZ,rZ.Avatar=EX,rZ.colorPrimary=aX,rZ.title=rX;var iZ=`XiaomiMiMo`,aZ=`#000`,oZ=aZ,sZ=`#fff`,cZ=.7;function lZ(e){"@babel/helpers - typeof";return lZ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},lZ(e)}var uZ=[`size`,`style`];function dZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function fZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dZ(Object(n),!0).forEach(function(t){pZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function pZ(e,t,n){return t=mZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mZ(e){var t=hZ(e,`string`);return lZ(t)==`symbol`?t:String(t)}function hZ(e,t){if(lZ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(lZ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function gZ(e,t){if(e==null)return{};var n=_Z(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function _Z(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var vZ=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=gZ(e,uZ);return(0,m.jsxs)(`svg`,fZ(fZ({fill:`currentColor`,fillRule:`evenodd`,height:n,style:fZ({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:iZ}),(0,m.jsx)(`path`,{d:`M.958 15.936a.459.459 0 01.459.44v2.729a.46.46 0 01-.918 0v-2.729a.459.459 0 01.459-.44zm4.814-2.035a.46.46 0 01.553.45v4.754a.458.458 0 11-.918 0V15.48L3.74 17.202a.462.462 0 01-.655.016.462.462 0 01-.065-.082L.628 14.67a.459.459 0 01.658-.637l2.124 2.187 2.127-2.188a.46.46 0 01.235-.13zm2.068.004a.46.46 0 01.458.445v4.755a.46.46 0 01-.458.458.459.459 0 01-.458-.458V14.35a.459.459 0 01.458-.445zm1.973 2.014a.46.46 0 01.46.457v2.729a.46.46 0 01-.784.324.46.46 0 01-.134-.324v-2.729a.46.46 0 01.458-.458zm.002-2.045a.458.458 0 01.328.157l2.127 2.19 2.125-2.19a.459.459 0 01.784.318v4.756a.46.46 0 01-.455.458.46.46 0 01-.458-.458V15.48l-1.667 1.723a.46.46 0 01-.65.008l-.005-.005c0-.002-.002-.002-.004-.003l-2.455-2.534a.46.46 0 01-.008-.667.461.461 0 01.338-.128zm6.797 1.206a.46.46 0 01.53.651A1.966 1.966 0 0019.81 18.4a.462.462 0 01.623.18.46.46 0 01-.181.624 2.863 2.863 0 01-1.38.353l-.142-.004a2.88 2.88 0 01-2.393-4.263.461.461 0 01.274-.21zm.864-.931a2.884 2.884 0 013.915 3.914.46.46 0 01-.402.24l-.057-.004a.458.458 0 01-.164-.055.46.46 0 01-.182-.622 1.967 1.967 0 00-2.669-2.67.459.459 0 11-.441-.803zM9.59 6.368c1.481 0 1.696 1.202 1.696 1.654v2.648h-.917v-.432c-.26.346-.792.535-1.36.535-.133 0-1.289-.03-1.384-1.136-.082-.932.675-1.61 2.053-1.61h.691c0-.563-.367-.886-.983-.886-.44.013-.864.174-1.2.458l-.36-.664c.484-.379 1.012-.567 1.764-.567zm4.427.1c1.263 0 2.082.97 2.083 2.15 0 1.181-.824 2.154-2.083 2.154-1.26 0-2.084-.972-2.084-2.152 0-1.18.82-2.153 2.084-2.153zm6.801.015c.68 0 1.202.465 1.197 1.548v2.642H21.1V8.29c0-.312-.002-.98-.63-.98s-.628.667-.628.838v2.524h-.89V8.148c0-.17-.001-.838-.63-.838-.628 0-.628.668-.628.98v2.383h-.917v-4.03h.917V7a1.22 1.22 0 01.947-.516c.398 0 .76.193.982.686a1.321 1.321 0 011.195-.686zm-18.093.872l1.457-1.772H5.32L3.311 8.07l2.14 2.602H4.24L2.725 8.796 1.21 10.672H0L2.138 8.07.13 5.583h1.138l1.458 1.772zm4.149 3.317h-.916V6.644h.916v4.028zm16.99 0h-.916V6.644h.916v4.028zM9.925 8.71c-1.055 0-1.359.412-1.326.742.032.329.324.537.757.537a1.013 1.013 0 001.014-.968l.002-.31h-.447zM14.018 7.3c-.663 0-1.184.487-1.184 1.32 0 .832.52 1.32 1.184 1.32.662 0 1.182-.49 1.182-1.32 0-.832-.52-1.32-1.182-1.32zM6.417 5.001a.568.568 0 01.587.582.588.588 0 01-1.175 0A.57.57 0 016.417 5zm16.991 0a.57.57 0 01.592.582.588.588 0 01-1.174 0 .57.57 0 01.357-.542.572.572 0 01.225-.04z`})]}))});function yZ(e){"@babel/helpers - typeof";return yZ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},yZ(e)}function bZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function xZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?bZ(Object(n),!0).forEach(function(t){SZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function SZ(e,t,n){return t=CZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CZ(e){var t=wZ(e,`string`);return yZ(t)==`symbol`?t:String(t)}function wZ(e,t){if(yZ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(yZ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function TZ(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var EZ=(0,p.memo)(function(e){var t=Object.assign({},(TZ(e),e));return(0,m.jsx)(II,xZ({Icon:vZ,"aria-label":iZ,background:oZ,color:sZ,iconMultiple:cZ},t))});function DZ(e){"@babel/helpers - typeof";return DZ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},DZ(e)}var OZ=[`size`,`style`];function kZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function AZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?kZ(Object(n),!0).forEach(function(t){jZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function jZ(e,t,n){return t=MZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function MZ(e){var t=NZ(e,`string`);return DZ(t)==`symbol`?t:String(t)}function NZ(e,t){if(DZ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(DZ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function PZ(e,t){if(e==null)return{};var n=FZ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function FZ(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var IZ=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=PZ(e,OZ);return(0,m.jsxs)(`svg`,AZ(AZ({fill:`currentColor`,fillRule:`evenodd`,height:n,style:AZ({flex:`none`,lineHeight:1},r),viewBox:`0 0 167 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:iZ}),(0,m.jsx)(`path`,{clipRule:`evenodd`,d:`M34.192 6.736c5.13 0 5.87 4.168 5.87 5.733v9.174h-3.171v-1.497C35.99 21.344 34.147 22 32.18 22c-.46 0-4.46-.107-4.788-3.936-.283-3.23 2.335-5.58 7.103-5.58h2.395c0-1.948-1.27-3.068-3.405-3.068a6.746 6.746 0 00-4.152 1.586l-1.248-2.298c1.679-1.313 3.505-1.968 6.106-1.968zm1.156 8.115c-3.65 0-4.7 1.425-4.588 2.566.11 1.141 1.12 1.861 2.622 1.861a3.5 3.5 0 003.509-3.353l.005-1.074h-1.548zM49.511 7.083c4.373 0 7.21 3.362 7.21 7.454 0 4.09-2.85 7.458-7.21 7.458-4.358 0-7.21-3.367-7.21-7.456 0-4.088 2.835-7.456 7.21-7.456zm0 2.885c-2.294 0-4.093 1.686-4.093 4.571 0 2.884 1.8 4.573 4.093 4.573 2.295 0 4.093-1.693 4.093-4.573 0-2.881-1.797-4.57-4.093-4.57z`}),(0,m.jsx)(`path`,{d:`M109.72 2.376a1.58 1.58 0 01.923.082 1.583 1.583 0 01.991 1.475v16.47a1.593 1.593 0 01-.463 1.126 1.59 1.59 0 01-2.714-1.125V7.847l-5.769 5.966a1.596 1.596 0 01-2.268.057 1.593 1.593 0 01-.228-.285L91.914 5.04a1.593 1.593 0 01.075-2.206 1.59 1.59 0 012.203-.008l7.354 7.58 7.362-7.58c.219-.228.502-.385.812-.45zM116.876 2.391c.413 0 .81.16 1.107.449.295.288.466.68.477 1.093v16.476a1.584 1.584 0 01-2.706 1.12 1.591 1.591 0 01-.465-1.123V3.933a1.585 1.585 0 011.587-1.542zM123.707 9.366a1.587 1.587 0 011.585 1.589v9.449a1.593 1.593 0 01-.463 1.125 1.59 1.59 0 01-2.246 0 1.596 1.596 0 01-.463-1.125v-9.45a1.588 1.588 0 011.587-1.588zM123.712 2.282a1.591 1.591 0 011.132.545l7.366 7.59 7.352-7.59a1.583 1.583 0 012.441.228c.176.26.27.567.272.88v16.471a1.598 1.598 0 01-1.577 1.589 1.587 1.587 0 01-1.585-1.589V7.85l-5.769 5.966a1.597 1.597 0 01-1.117.481 1.592 1.592 0 01-1.129-.448l-.019-.023-.015-.012-8.496-8.775a1.597 1.597 0 01-.51-1.148 1.6 1.6 0 01.481-1.16c.154-.15.34-.267.542-.344.201-.077.416-.113.631-.104zM93.056 9.426a1.592 1.592 0 011.59 1.529v9.449a1.6 1.6 0 01-.469 1.125 1.59 1.59 0 01-.517.342 1.587 1.587 0 01-2.191-1.467v-9.45a1.592 1.592 0 011.587-1.528zM147.235 6.461a1.587 1.587 0 011.832 2.256 6.82 6.82 0 00-.772 4.238 6.819 6.819 0 001.926 3.855 6.803 6.803 0 008.082 1.155 1.595 1.595 0 012.157.624 1.603 1.603 0 01-.151 1.76c-.13.163-.291.299-.473.4a9.903 9.903 0 01-4.777 1.224 9.962 9.962 0 01-7.014-2.853 9.98 9.98 0 01-2.989-6.96 9.993 9.993 0 011.231-4.973 1.59 1.59 0 01.948-.726zM73.054 7.138c2.354 0 4.157 1.608 4.14 5.361v9.154h-3.167v-8.257c0-1.08-.004-3.395-2.181-3.395-2.174 0-2.174 2.314-2.174 2.905v8.745h-3.078v-8.745c0-.591-.003-2.905-2.179-2.905-2.175 0-2.174 2.316-2.174 3.395v8.257h-3.172V7.69h3.172v1.232a4.222 4.222 0 013.276-1.784c1.38 0 2.632.667 3.4 2.377a4.567 4.567 0 014.138-2.377zM10.431 10.16l5.044-6.143h3.94l-6.953 8.618 7.4 9.016h-4.189l-5.242-6.5-5.239 6.5H1l7.399-9.018-6.95-8.616h3.939l5.043 6.142zM24.793 21.65h-3.17V7.694h3.17v13.958zM83.595 21.65h-3.17V7.694h3.17v13.958zM150.224 3.236a9.975 9.975 0 016.21-1.13 9.98 9.98 0 018.465 8.475 10.003 10.003 0 01-1.126 6.216 1.592 1.592 0 01-1.392.828 1.59 1.59 0 01-1.391-2.357 6.819 6.819 0 00-1.154-8.093 6.802 6.802 0 00-8.085-1.155 1.582 1.582 0 01-1.223.158 1.588 1.588 0 01-1.159-1.365 1.596 1.596 0 01.364-1.183c.136-.162.302-.297.491-.394zM23.208 2.004a1.964 1.964 0 012.03 2.013 2.038 2.038 0 01-.594 1.438 2.034 2.034 0 01-1.436.597 2.033 2.033 0 01-1.877-1.257 2.037 2.037 0 01-.156-.778 1.97 1.97 0 012.033-2.013zM82.013 2.002A1.963 1.963 0 0184.06 4.02a2.03 2.03 0 11-4.063 0 1.97 1.97 0 012.016-2.018z`})]}))}),LZ=vZ;LZ.Text=IZ,LZ.Avatar=EZ,LZ.colorPrimary=aZ,LZ.title=iZ;var RZ=`LM Studio`,zZ=.6,BZ=.3,VZ=`#4338CA`,HZ=`linear-gradient(135deg, #6C78EF, #4F14BE)`,UZ=HZ,WZ=`#fff`,GZ=.7;function KZ(e){"@babel/helpers - typeof";return KZ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},KZ(e)}var qZ=[`size`,`style`];function JZ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function YZ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?JZ(Object(n),!0).forEach(function(t){XZ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JZ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function XZ(e,t,n){return t=ZZ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ZZ(e){var t=QZ(e,`string`);return KZ(t)==`symbol`?t:String(t)}function QZ(e,t){if(KZ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(KZ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $Z(e,t){if(e==null)return{};var n=eQ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function eQ(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var tQ=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=$Z(e,qZ);return(0,m.jsxs)(`svg`,YZ(YZ({fill:`currentColor`,fillRule:`evenodd`,height:n,style:YZ({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:RZ}),(0,m.jsx)(`path`,{d:`M2.84 2a1.273 1.273 0 100 2.547h14.107a1.273 1.273 0 100-2.547H2.84zM7.935 5.33a1.273 1.273 0 000 2.548H22.04a1.274 1.274 0 000-2.547H7.935zM3.624 9.935c0-.704.57-1.274 1.274-1.274h14.106a1.274 1.274 0 010 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM1.273 12.188a1.273 1.273 0 100 2.547H15.38a1.274 1.274 0 000-2.547H1.273zM3.624 16.792c0-.704.57-1.274 1.274-1.274h14.106a1.273 1.273 0 110 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM13.029 18.849a1.273 1.273 0 100 2.547h9.698a1.273 1.273 0 100-2.547h-9.698z`,fillOpacity:`.3`}),(0,m.jsx)(`path`,{d:`M2.84 2a1.273 1.273 0 100 2.547h10.287a1.274 1.274 0 000-2.547H2.84zM7.935 5.33a1.273 1.273 0 000 2.548H18.22a1.274 1.274 0 000-2.547H7.935zM3.624 9.935c0-.704.57-1.274 1.274-1.274h10.286a1.273 1.273 0 010 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM1.273 12.188a1.273 1.273 0 100 2.547H11.56a1.274 1.274 0 000-2.547H1.273zM3.624 16.792c0-.704.57-1.274 1.274-1.274h10.286a1.273 1.273 0 110 2.547H4.898c-.703 0-1.274-.57-1.274-1.273zM13.029 18.849a1.273 1.273 0 100 2.547h5.78a1.273 1.273 0 100-2.547h-5.78z`})]}))});function nQ(e){"@babel/helpers - typeof";return nQ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},nQ(e)}function rQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function iQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?rQ(Object(n),!0).forEach(function(t){aQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function aQ(e,t,n){return t=oQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oQ(e){var t=sQ(e,`string`);return nQ(t)==`symbol`?t:String(t)}function sQ(e,t){if(nQ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(nQ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function cQ(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var lQ=(0,p.memo)(function(e){var t=Object.assign({},(cQ(e),e));return(0,m.jsx)(II,iQ({Icon:tQ,"aria-label":RZ,background:UZ,color:WZ,iconMultiple:GZ},t))});function uQ(e){"@babel/helpers - typeof";return uQ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},uQ(e)}var dQ=[`size`,`style`];function fQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function pQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?fQ(Object(n),!0).forEach(function(t){mQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function mQ(e,t,n){return t=hQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hQ(e){var t=gQ(e,`string`);return uQ(t)==`symbol`?t:String(t)}function gQ(e,t){if(uQ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(uQ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function _Q(e,t){if(e==null)return{};var n=vQ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vQ(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var yQ=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=_Q(e,dQ);return(0,m.jsxs)(`svg`,pQ(pQ({fill:`currentColor`,fillRule:`evenodd`,height:n,style:pQ({flex:`none`,lineHeight:1},r),viewBox:`0 0 138 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:RZ}),(0,m.jsx)(`path`,{d:`M115.208 5.9V21.63h2.417V5.9h-2.417zM115.219 2.796c.341.321.747.481 1.218.481.472 0 .874-.16 1.209-.48.341-.322.512-.708.512-1.158 0-.45-.171-.837-.512-1.158A1.684 1.684 0 00116.437 0c-.471 0-.877.16-1.218.481-.335.321-.502.707-.502 1.158 0 .45.167.836.502 1.157z`}),(0,m.jsx)(`path`,{clipRule:`evenodd`,d:`M124.705 20.945c1.072.676 2.318 1.014 3.739 1.014 1.42 0 2.663-.338 3.728-1.014 1.072-.676 1.905-1.622 2.499-2.837.601-1.215.901-2.636.901-4.26 0-1.64-.3-3.07-.901-4.292-.594-1.222-1.427-2.171-2.499-2.847-1.065-.676-2.308-1.014-3.728-1.014-1.421 0-2.667.338-3.739 1.014-1.065.676-1.898 1.625-2.499 2.847-.594 1.222-.891 2.653-.891 4.291 0 1.625.297 3.046.891 4.261.601 1.215 1.434 2.161 2.499 2.837zm6.402-1.987c-.697.553-1.585.83-2.663.83-1.079 0-1.967-.277-2.663-.83-.697-.553-1.212-1.28-1.547-2.181a8.365 8.365 0 01-.502-2.93c0-1.051.168-2.031.502-2.94.335-.907.85-1.641 1.547-2.201.696-.56 1.584-.84 2.663-.84 1.078 0 1.966.28 2.663.84.696.56 1.212 1.294 1.546 2.202.335.908.502 1.888.502 2.94 0 1.05-.167 2.027-.502 2.928-.334.902-.85 1.629-1.546 2.182zM103.235 21.959c-1.311 0-2.468-.331-3.472-.994-1.003-.669-1.789-1.61-2.355-2.826-.567-1.223-.85-2.667-.85-4.333 0-1.652.283-3.086.85-4.301.566-1.216 1.355-2.155 2.365-2.817 1.011-.662 2.179-.993 3.503-.993 1.025 0 1.834.17 2.428.512.601.334 1.058.717 1.372 1.147.321.423.57.771.748 1.044h.205V.655h2.417v20.976h-2.335v-2.417h-.287c-.178.287-.43.649-.758 1.086-.328.43-.796.816-1.403 1.157-.608.335-1.417.502-2.428.502zm.328-2.171c.97 0 1.789-.253 2.458-.758.669-.512 1.178-1.219 1.526-2.12.348-.909.523-1.957.523-3.145 0-1.174-.171-2.202-.512-3.083-.342-.887-.847-1.577-1.516-2.068-.669-.499-1.496-.748-2.479-.748-1.024 0-1.878.263-2.56.789-.676.518-1.185 1.225-1.526 2.12-.335.887-.502 1.884-.502 2.99 0 1.12.17 2.137.512 3.052.348.909.86 1.632 1.536 2.172.683.532 1.53.799 2.54.799z`}),(0,m.jsx)(`path`,{d:`M90.45 5.9v9.3c0 .983-.214 1.792-.645 2.427-.423.635-.949 1.106-1.577 1.413-.621.307-1.232.46-1.833.46-1.004 0-1.83-.34-2.479-1.023-.642-.683-.962-1.598-.962-2.745V5.899h-2.418v9.997c0 1.338.219 2.448.656 3.328.437.874 1.038 1.53 1.802 1.967.765.43 1.64.645 2.622.645 1.189 0 2.172-.276 2.95-.83.778-.56 1.352-1.239 1.72-2.038h.165v2.663h2.417V5.9H90.45zM76.9 5.9v2.048h-3.359v9.177c0 .683.099 1.195.297 1.536.205.335.464.56.778.676.321.11.66.164 1.014.164.267 0 .485-.014.656-.041l.41-.082.491 2.171a4.923 4.923 0 01-.686.185 5.05 5.05 0 01-1.117.102 4.865 4.865 0 01-2.007-.44 3.987 3.987 0 01-1.618-1.342c-.424-.6-.635-1.359-.635-2.274V7.948h-2.376V5.899h2.376V2.13h2.417V5.9h3.36zM61.97 3.482c.874.574 1.372 1.38 1.495 2.417h2.458a4.898 4.898 0 00-.983-2.837c-.614-.833-1.447-1.488-2.499-1.966C61.39.61 60.188.369 58.836.369c-1.338 0-2.55.246-3.636.737-1.079.485-1.94 1.168-2.581 2.049-.635.874-.953 1.898-.953 3.072 0 1.414.478 2.557 1.434 3.431.956.874 2.254 1.547 3.892 2.018l2.581.737c.738.205 1.424.444 2.059.717.635.273 1.147.628 1.536 1.065.39.438.584 1.004.584 1.7 0 .765-.225 1.435-.676 2.008-.45.567-1.062 1.01-1.833 1.332-.772.314-1.642.47-2.612.47a7.215 7.215 0 01-2.335-.368c-.717-.253-1.311-.635-1.782-1.147-.465-.519-.73-1.175-.8-1.966h-2.621c.082 1.147.433 2.154 1.055 3.02.628.868 1.488 1.544 2.58 2.029 1.1.485 2.4.727 3.903.727 1.611 0 2.98-.27 4.107-.81 1.134-.539 1.994-1.266 2.581-2.18.594-.916.891-1.94.891-3.073 0-.983-.201-1.813-.604-2.49a5.266 5.266 0 00-1.536-1.658 8.417 8.417 0 00-1.936-1.035c-.67-.252-1.277-.45-1.823-.594l-2.13-.573c-.39-.103-.816-.236-1.28-.4a7.482 7.482 0 01-1.332-.645 3.543 3.543 0 01-1.045-.994c-.266-.402-.4-.884-.4-1.444 0-.669.192-1.266.574-1.792.39-.526.929-.939 1.618-1.24.697-.3 1.51-.45 2.438-.45 1.27 0 2.342.287 3.216.86zM18.224.655h3.031l7.129 17.412h.245L35.758.655h3.032v20.976h-2.377V5.695h-.204L29.654 21.63h-2.295L20.804 5.695H20.6V21.63h-2.377V.655zM2 .655v20.976h12.29v-2.253H4.54V.655H2z`})]}))});function bQ(e){"@babel/helpers - typeof";return bQ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},bQ(e)}var xQ=[`type`];function SQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function CQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?SQ(Object(n),!0).forEach(function(t){wQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):SQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function wQ(e,t,n){return t=TQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TQ(e){var t=EQ(e,`string`);return bQ(t)==`symbol`?t:String(t)}function EQ(e,t){if(bQ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(bQ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function DQ(e,t){if(e==null)return{};var n=OQ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OQ(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var kQ=(0,p.memo)(function(e){var t=e.type,n=t===void 0?`mono`:t,r=DQ(e,xQ);return(0,m.jsx)(BI,CQ({Icon:n===`color`?lQ:tQ,Text:yQ,"aria-label":RZ,iconProps:n===`color`?{shape:`square`}:{},spaceMultiple:BZ,textMultiple:zZ},r))}),AQ=tQ;AQ.Text=yQ,AQ.Combine=kQ,AQ.Avatar=lQ,AQ.colorPrimary=VZ,AQ.colorGradient=HZ,AQ.title=RZ;var jQ=`Ollama`,MQ=.6,NQ=.1,PQ=`#fff`,FQ=PQ,IQ=`#000`,LQ=.75;function RQ(e){"@babel/helpers - typeof";return RQ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},RQ(e)}var zQ=[`size`,`style`];function BQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function VQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?BQ(Object(n),!0).forEach(function(t){HQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function HQ(e,t,n){return t=UQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function UQ(e){var t=WQ(e,`string`);return RQ(t)==`symbol`?t:String(t)}function WQ(e,t){if(RQ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(RQ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function GQ(e,t){if(e==null)return{};var n=KQ(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function KQ(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var qQ=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=GQ(e,zQ);return(0,m.jsxs)(`svg`,VQ(VQ({fill:`currentColor`,fillRule:`evenodd`,height:n,style:VQ({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:jQ}),(0,m.jsx)(`path`,{d:`M7.905 1.09c.216.085.411.225.588.41.295.306.544.744.734 1.263.191.522.315 1.1.362 1.68a5.054 5.054 0 012.049-.636l.051-.004c.87-.07 1.73.087 2.48.474.101.053.2.11.297.17.05-.569.172-1.134.36-1.644.19-.52.439-.957.733-1.264a1.67 1.67 0 01.589-.41c.257-.1.53-.118.796-.042.401.114.745.368 1.016.737.248.337.434.769.561 1.287.23.934.27 2.163.115 3.645l.053.04.026.019c.757.576 1.284 1.397 1.563 2.35.435 1.487.216 3.155-.534 4.088l-.018.021.002.003c.417.762.67 1.567.724 2.4l.002.03c.064 1.065-.2 2.137-.814 3.19l-.007.01.01.024c.472 1.157.62 2.322.438 3.486l-.006.039a.651.651 0 01-.747.536.648.648 0 01-.54-.742c.167-1.033.01-2.069-.48-3.123a.643.643 0 01.04-.617l.004-.006c.604-.924.854-1.83.8-2.72-.046-.779-.325-1.544-.8-2.273a.644.644 0 01.18-.886l.009-.006c.243-.159.467-.565.58-1.12a4.229 4.229 0 00-.095-1.974c-.205-.7-.58-1.284-1.105-1.683-.595-.454-1.383-.673-2.38-.61a.653.653 0 01-.632-.371c-.314-.665-.772-1.141-1.343-1.436a3.288 3.288 0 00-1.772-.332c-1.245.099-2.343.801-2.67 1.686a.652.652 0 01-.61.425c-1.067.002-1.893.252-2.497.703-.522.39-.878.935-1.066 1.588a4.07 4.07 0 00-.068 1.886c.112.558.331 1.02.582 1.269l.008.007c.212.207.257.53.109.785-.36.622-.629 1.549-.673 2.44-.05 1.018.186 1.902.719 2.536l.016.019a.643.643 0 01.095.69c-.576 1.236-.753 2.252-.562 3.052a.652.652 0 01-1.269.298c-.243-1.018-.078-2.184.473-3.498l.014-.035-.008-.012a4.339 4.339 0 01-.598-1.309l-.005-.019a5.764 5.764 0 01-.177-1.785c.044-.91.278-1.842.622-2.59l.012-.026-.002-.002c-.293-.418-.51-.953-.63-1.545l-.005-.024a5.352 5.352 0 01.093-2.49c.262-.915.777-1.701 1.536-2.269.06-.045.123-.09.186-.132-.159-1.493-.119-2.73.112-3.67.127-.518.314-.95.562-1.287.27-.368.614-.622 1.015-.737.266-.076.54-.059.797.042zm4.116 9.09c.936 0 1.8.313 2.446.855.63.527 1.005 1.235 1.005 1.94 0 .888-.406 1.58-1.133 2.022-.62.375-1.451.557-2.403.557-1.009 0-1.871-.259-2.493-.734-.617-.47-.963-1.13-.963-1.845 0-.707.398-1.417 1.056-1.946.668-.537 1.55-.849 2.485-.849zm0 .896a3.07 3.07 0 00-1.916.65c-.461.37-.722.835-.722 1.25 0 .428.21.829.61 1.134.455.347 1.124.548 1.943.548.799 0 1.473-.147 1.932-.426.463-.28.7-.686.7-1.257 0-.423-.246-.89-.683-1.256-.484-.405-1.14-.643-1.864-.643zm.662 1.21l.004.004c.12.151.095.37-.056.49l-.292.23v.446a.375.375 0 01-.376.373.375.375 0 01-.376-.373v-.46l-.271-.218a.347.347 0 01-.052-.49.353.353 0 01.494-.051l.215.172.22-.174a.353.353 0 01.49.051zm-5.04-1.919c.478 0 .867.39.867.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zm8.706 0c.48 0 .868.39.868.871a.87.87 0 01-.868.871.87.87 0 01-.867-.87.87.87 0 01.867-.872zM7.44 2.3l-.003.002a.659.659 0 00-.285.238l-.005.006c-.138.189-.258.467-.348.832-.17.692-.216 1.631-.124 2.782.43-.128.899-.208 1.404-.237l.01-.001.019-.034c.046-.082.095-.161.148-.239.123-.771.022-1.692-.253-2.444-.134-.364-.297-.65-.453-.813a.628.628 0 00-.107-.09L7.44 2.3zm9.174.04l-.002.001a.628.628 0 00-.107.09c-.156.163-.32.45-.453.814-.29.794-.387 1.776-.23 2.572l.058.097.008.014h.03a5.184 5.184 0 011.466.212c.086-1.124.038-2.043-.128-2.722-.09-.365-.21-.643-.349-.832l-.004-.006a.659.659 0 00-.285-.239h-.004z`})]}))});function JQ(e){"@babel/helpers - typeof";return JQ=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},JQ(e)}function YQ(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function XQ(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?YQ(Object(n),!0).forEach(function(t){ZQ(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):YQ(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function ZQ(e,t,n){return t=QQ(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function QQ(e){var t=$Q(e,`string`);return JQ(t)==`symbol`?t:String(t)}function $Q(e,t){if(JQ(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(JQ(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function e$(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var t$=(0,p.memo)(function(e){var t=Object.assign({},(e$(e),e));return(0,m.jsx)(II,XQ({Icon:qQ,"aria-label":jQ,background:FQ,color:IQ,iconMultiple:LQ},t))});function n$(e){"@babel/helpers - typeof";return n$=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n$(e)}var r$=[`size`,`style`];function i$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?i$(Object(n),!0).forEach(function(t){o$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o$(e,t,n){return t=s$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s$(e){var t=c$(e,`string`);return n$(t)==`symbol`?t:String(t)}function c$(e,t){if(n$(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(n$(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function l$(e,t){if(e==null)return{};var n=u$(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function u$(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var d$=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=l$(e,r$);return(0,m.jsxs)(`svg`,a$(a$({fill:`currentColor`,fillRule:`evenodd`,height:n,style:a$({flex:`none`,lineHeight:1},r),viewBox:`0 0 87 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:jQ}),(0,m.jsx)(`path`,{d:`M11.333 2c-2.959 0-5.272.943-6.94 2.884C2.78 6.717 2 9.09 2 12.027c0 2.911.78 5.283 2.394 7.116C6.06 21.03 8.374 22 11.333 22c2.931 0 5.244-.943 6.939-2.83 1.614-1.806 2.42-4.178 2.42-7.143s-.806-5.364-2.42-7.17C16.577 2.943 14.264 2 11.332 2zm0 2.776c1.99 0 3.523.62 4.599 1.914 1.049 1.294 1.587 3.073 1.587 5.337s-.538 4.016-1.587 5.283c-1.076 1.267-2.609 1.914-4.6 1.914-1.99 0-3.55-.674-4.625-1.995-1.05-1.294-1.56-3.019-1.56-5.202 0-2.21.51-3.935 1.56-5.23 1.102-1.347 2.636-2.02 4.626-2.02zM22.979 2v19.623h3.066V2h-3.066zm6.159 0v19.623h3.066V2h-3.066zm12.21 5.31c-1.775 0-3.173.296-4.195.943-1.21.701-1.964 1.833-2.26 3.37l3.04.242c.161-.728.564-1.267 1.156-1.617.511-.323 1.184-.458 2.044-.458 1.99 0 2.986.89 2.986 2.722v.54l-3.04.08c-2.044.054-3.63.485-4.76 1.294-1.237.835-1.829 2.048-1.829 3.612 0 1.159.43 2.102 1.29 2.857.835.728 1.964 1.105 3.417 1.105 1.21 0 2.259-.216 3.146-.62.78-.377 1.453-.89 1.99-1.59v1.833h2.852v-8.895c0-1.698-.43-2.992-1.291-3.882-.969-1.024-2.502-1.536-4.546-1.536zm2.77 7.951v.701c0 1.078-.43 1.968-1.237 2.669-.806.674-1.802 1.024-2.985 1.024-.672 0-1.21-.189-1.64-.512-.431-.324-.62-.728-.62-1.213 0-1.614 1.129-2.473 3.41-2.58l3.073-.089zM56.572 7.31c-1.344 0-2.609.593-3.765 1.806V7.687H49.74v13.936h3.066v-8.356c0-.917.269-1.725.807-2.372.538-.7 1.237-1.024 2.125-1.024 1.828 0 2.743 1.05 2.743 3.18v8.572h3.066v-8.518c0-1.024.242-1.806.78-2.372.511-.593 1.13-.862 1.883-.862 1.075 0 1.829.242 2.313.754.457.486.699 1.294.699 2.4v8.598h3.066v-9.138c0-1.536-.484-2.776-1.398-3.746-.969-.97-2.152-1.429-3.578-1.429-.941 0-1.72.162-2.34.485-.699.324-1.371.917-2.017 1.78-.887-1.51-2.34-2.265-4.384-2.265zm22.593 0c-1.775 0-3.174.296-4.196.943-1.21.701-1.963 1.833-2.26 3.37l3.04.242c.161-.728.565-1.267 1.156-1.617.511-.323 1.184-.458 2.044-.458 1.99 0 2.986.89 2.986 2.722v.54l-3.04.08c-2.043.054-3.63.485-4.76 1.294-1.237.835-1.829 2.048-1.829 3.612 0 1.159.43 2.102 1.291 2.857.834.728 1.964 1.105 3.416 1.105 1.21 0 2.26-.216 3.147-.62.78-.377 1.452-.89 1.99-1.59v1.833H85v-8.895c0-1.698-.43-2.992-1.291-3.882-.968-1.024-2.501-1.536-4.545-1.536zm2.77 7.951v.701c0 1.078-.43 1.968-1.237 2.669-.807.674-1.802 1.024-2.986 1.024-.672 0-1.21-.189-1.64-.512-.43-.324-.619-.728-.619-1.213 0-1.614 1.128-2.473 3.41-2.58l3.072-.089z`})]}))});function f$(e){"@babel/helpers - typeof";return f$=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},f$(e)}function p$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function m$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?p$(Object(n),!0).forEach(function(t){h$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h$(e,t,n){return t=g$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g$(e){var t=_$(e,`string`);return f$(t)==`symbol`?t:String(t)}function _$(e,t){if(f$(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(f$(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function v$(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var y$=(0,p.memo)(function(e){var t=Object.assign({},(v$(e),e));return(0,m.jsx)(BI,m$({Icon:qQ,Text:d$,"aria-label":jQ,spaceMultiple:NQ,textMultiple:MQ},t))}),b$=qQ;b$.Text=d$,b$.Combine=y$,b$.Avatar=t$,b$.colorPrimary=PQ,b$.title=jQ;var x$=`SiliconCloud`,S$=.7,C$=.2,w$=`#6E29F6`,T$=w$,E$=`#fff`,D$=.7;function O$(e){"@babel/helpers - typeof";return O$=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},O$(e)}var k$=[`size`,`style`];function A$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function j$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?A$(Object(n),!0).forEach(function(t){M$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function M$(e,t,n){return t=N$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function N$(e){var t=P$(e,`string`);return O$(t)==`symbol`?t:String(t)}function P$(e,t){if(O$(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(O$(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function F$(e,t){if(e==null)return{};var n=I$(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function I$(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var L$=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=F$(e,k$);return(0,m.jsxs)(`svg`,j$(j$({fill:`currentColor`,fillRule:`evenodd`,height:n,style:j$({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:x$}),(0,m.jsx)(`path`,{clipRule:`evenodd`,d:`M22.956 6.521H12.522c-.577 0-1.044.468-1.044 1.044v3.13c0 .577-.466 1.044-1.043 1.044H1.044c-.577 0-1.044.467-1.044 1.044v4.174C0 17.533.467 18 1.044 18h10.434c.577 0 1.044-.467 1.044-1.043v-3.13c0-.578.466-1.044 1.043-1.044h9.391c.577 0 1.044-.467 1.044-1.044V7.565c0-.576-.467-1.044-1.044-1.044z`})]}))});function R$(e){"@babel/helpers - typeof";return R$=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},R$(e)}function z$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?z$(Object(n),!0).forEach(function(t){V$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function V$(e,t,n){return t=H$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H$(e){var t=U$(e,`string`);return R$(t)==`symbol`?t:String(t)}function U$(e,t){if(R$(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(R$(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function W$(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var G$=(0,p.memo)(function(e){var t=Object.assign({},(W$(e),e));return(0,m.jsx)(II,B$({Icon:L$,"aria-label":x$,background:T$,color:E$,iconMultiple:D$},t))});function K$(e){"@babel/helpers - typeof";return K$=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},K$(e)}var q$=[`size`,`style`];function J$(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Y$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?J$(Object(n),!0).forEach(function(t){X$(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J$(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function X$(e,t,n){return t=Z$(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Z$(e){var t=Q$(e,`string`);return K$(t)==`symbol`?t:String(t)}function Q$(e,t){if(K$(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(K$(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function $$(e,t){if(e==null)return{};var n=e1(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function e1(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var t1=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=$$(e,q$);return(0,m.jsxs)(`svg`,Y$(Y$({height:n,style:Y$({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:x$}),(0,m.jsx)(`path`,{clipRule:`evenodd`,d:`M22.956 6.521H12.522c-.577 0-1.044.468-1.044 1.044v3.13c0 .577-.466 1.044-1.043 1.044H1.044c-.577 0-1.044.467-1.044 1.044v4.174C0 17.533.467 18 1.044 18h10.434c.577 0 1.044-.467 1.044-1.043v-3.13c0-.578.466-1.044 1.043-1.044h9.391c.577 0 1.044-.467 1.044-1.044V7.565c0-.576-.467-1.044-1.044-1.044z`,fill:`#6E29F6`,fillRule:`evenodd`})]}))});function n1(e){"@babel/helpers - typeof";return n1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n1(e)}var r1=[`size`,`style`];function i1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function a1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?i1(Object(n),!0).forEach(function(t){o1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function o1(e,t,n){return t=s1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s1(e){var t=c1(e,`string`);return n1(t)==`symbol`?t:String(t)}function c1(e,t){if(n1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(n1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function l1(e,t){if(e==null)return{};var n=u1(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function u1(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var d1=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=l1(e,r1);return(0,m.jsxs)(`svg`,a1(a1({fill:`currentColor`,fillRule:`evenodd`,height:n,style:a1({flex:`none`,lineHeight:1},r),viewBox:`0 0 140 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:x$}),(0,m.jsx)(`path`,{clipRule:`evenodd`,d:`M13.075 16.36c0-4.47-10.605-.758-10.605-8.238 0-3.93 3.527-5.746 6.673-5.746 2.333 0 4.313.731 6.184 2.276l-1.438 2.44c-1.438-1.355-2.956-1.979-4.746-1.979-1.628 0-3.553.895-3.553 2.9 0 4.472 10.605.758 10.605 8.238 0 4.012-3.608 5.746-6.954 5.746-2.848 0-5.506-1.056-7.241-3.278l1.501-2.575c1.735 2.168 3.58 3.116 5.722 3.116 1.817 0 3.852-.84 3.852-2.9zm5.495-8.236h2.984v13.551h-2.983V8.125zM20.063 2c1.004 0 1.763.732 1.763 1.762s-.76 1.761-1.763 1.761c-1.004 0-1.763-.732-1.763-1.761 0-1.03.76-1.762 1.763-1.762zm4.648.703h2.983v18.972H24.71V2.703zm6.146 5.421h2.983v13.551h-2.983V8.125zM32.347 2c1.004 0 1.763.732 1.763 1.762s-.76 1.761-1.763 1.761c-1.004 0-1.763-.732-1.763-1.761 0-1.03.76-1.762 1.763-1.762zm3.855 12.897c0-4.12 3.064-7.1 7.268-7.1 2.333 0 4.367 1.003 5.615 2.522l-2.224 1.813c-.732-.921-1.953-1.571-3.39-1.571-2.468 0-4.285 1.788-4.285 4.336s1.817 4.337 4.284 4.337c1.438 0 2.658-.65 3.39-1.572l2.225 1.817C47.837 20.995 45.695 22 43.47 22c-4.204 0-7.268-2.981-7.268-7.101v-.002zm21.01-4.336c-2.495 0-4.285 1.896-4.285 4.336 0 2.44 1.79 4.337 4.285 4.337s4.285-1.897 4.285-4.337c0-2.44-1.79-4.336-4.285-4.336zm0-2.765c4.122 0 7.268 3.01 7.268 7.101 0 4.093-3.146 7.101-7.268 7.101-4.123 0-7.268-3.008-7.268-7.1 0-4.093 3.145-7.102 7.268-7.102zm12.57 6.589v7.29H66.8V8.125h2.983v2.14C70.568 8.64 72.303 7.8 74.094 7.8c3.064 0 5.397 2.114 5.397 6.097v7.29h-2.984v-7.67c0-2.194-1.302-3.388-3.2-3.388-2.034 0-3.526 1.355-3.526 3.768l.001.488zm16.017 7.29h-3.118V2.703h12.07V5.55H85.8v5.42h7.974v2.792H85.8v7.914zM96.592 2.703h2.983v18.972h-2.983V2.703zm12.555 7.858c-2.495 0-4.285 1.896-4.285 4.336 0 2.44 1.79 4.337 4.285 4.337s4.284-1.897 4.284-4.337c0-2.44-1.789-4.336-4.284-4.336zm0-2.765c4.122 0 7.268 3.01 7.268 7.101 0 4.093-3.146 7.101-7.268 7.101-4.123 0-7.268-3.008-7.268-7.1 0-4.093 3.145-7.102 7.268-7.102zm25.933.328H138l-3.701 13.551h-3.961l-2.603-10.083-2.775 10.083h-3.961l-3.556-13.551h2.977l2.661 10.816 2.949-10.817h3.412l2.833 10.816 2.805-10.815z`})]}))});function f1(e){"@babel/helpers - typeof";return f1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},f1(e)}var p1=[`type`,`extraStyle`];function m1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function h1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?m1(Object(n),!0).forEach(function(t){g1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g1(e,t,n){return t=_1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _1(e){var t=v1(e,`string`);return f1(t)==`symbol`?t:String(t)}function v1(e,t){if(f1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(f1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function y1(e,t){if(e==null)return{};var n=b1(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function b1(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var x1=(0,p.memo)(function(e){var t=e.type,n=t===void 0?`mono`:t,r=e.extraStyle,i=y1(e,p1);return(0,m.jsx)(BI,h1({Icon:n===`color`?t1:L$,Text:d1,"aria-label":x$,extraStyle:h1({fontWeight:500},r),spaceMultiple:C$,textMultiple:S$},i))}),S1=L$;S1.Color=t1,S1.Text=d1,S1.Combine=x1,S1.Avatar=G$,S1.colorPrimary=w$,S1.title=x$;var C1=`Volcengine`,w1=.8,T1=.2,E1=`#fff`,D1=E1,O1=`#fff`,k1=.75;function A1(e){"@babel/helpers - typeof";return A1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},A1(e)}var j1=[`size`,`style`];function M1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?M1(Object(n),!0).forEach(function(t){P1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P1(e,t,n){return t=F1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F1(e){var t=I1(e,`string`);return A1(t)==`symbol`?t:String(t)}function I1(e,t){if(A1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(A1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function L1(e,t){if(e==null)return{};var n=R1(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function R1(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var z1=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=L1(e,j1);return(0,m.jsxs)(`svg`,N1(N1({height:n,style:N1({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:C1}),(0,m.jsx)(`path`,{d:`M19.44 10.153l-2.936 11.586a.215.215 0 00.214.261h5.87a.215.215 0 00.214-.261l-2.95-11.586a.214.214 0 00-.412 0zM3.28 12.778l-2.275 8.96A.214.214 0 001.22 22h4.532a.212.212 0 00.214-.165.214.214 0 000-.097l-2.276-8.96a.214.214 0 00-.41 0z`,fill:`#00E5E5`}),(0,m.jsx)(`path`,{d:`M7.29 5.359L3.148 21.738a.215.215 0 00.203.261h8.29a.214.214 0 00.215-.261L7.7 5.358a.214.214 0 00-.41 0z`,fill:`#006EFF`}),(0,m.jsx)(`path`,{d:`M14.44.15a.214.214 0 00-.41 0L8.366 21.739a.214.214 0 00.214.261H19.9a.216.216 0 00.171-.078.214.214 0 00.044-.183L14.439.15z`,fill:`#006EFF`}),(0,m.jsx)(`path`,{d:`M10.278 7.741L6.685 21.736a.214.214 0 00.214.264h7.17a.215.215 0 00.214-.264L10.688 7.741a.214.214 0 00-.41 0z`,fill:`#00E5E5`})]}))});function B1(e){"@babel/helpers - typeof";return B1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},B1(e)}function V1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?V1(Object(n),!0).forEach(function(t){U1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function U1(e,t,n){return t=W1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W1(e){var t=G1(e,`string`);return B1(t)==`symbol`?t:String(t)}function G1(e,t){if(B1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(B1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function K1(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var q1=(0,p.memo)(function(e){var t=Object.assign({},(K1(e),e));return(0,m.jsx)(II,H1({Icon:z1,"aria-label":C1,background:D1,color:O1,iconMultiple:k1},t))});function J1(e){"@babel/helpers - typeof";return J1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},J1(e)}var Y1=[`size`,`style`];function X1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Z1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?X1(Object(n),!0).forEach(function(t){Q1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Q1(e,t,n){return t=$1(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $1(e){var t=e0(e,`string`);return J1(t)==`symbol`?t:String(t)}function e0(e,t){if(J1(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(J1(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function t0(e,t){if(e==null)return{};var n=n0(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function n0(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var r0=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=t0(e,Y1);return(0,m.jsxs)(`svg`,Z1(Z1({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Z1({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:C1}),(0,m.jsx)(`path`,{d:`M7.29 5.36L3.148 21.737a.215.215 0 00.203.261h8.29a.214.214 0 00.215-.261L7.7 5.359a.214.214 0 00-.41 0z`,fillOpacity:`.5`}),(0,m.jsx)(`path`,{clipRule:`evenodd`,d:`M4.553 16.18l-1.406 5.558a.214.214 0 00.203.261h2.42-4.551a.214.214 0 01-.214-.26l2.275-8.961a.214.214 0 01.409 0l.864 3.402z`}),(0,m.jsx)(`path`,{d:`M14.44.15a.214.214 0 00-.41 0L8.366 21.739a.214.214 0 00.214.261H19.9a.214.214 0 00.215-.261L14.44.151z`,fillOpacity:`.5`}),(0,m.jsx)(`path`,{clipRule:`evenodd`,d:`M16.694 22h3.207a.215.215 0 00.214-.262l-1.839-6.993 1.164-4.592a.214.214 0 01.411 0l2.951 11.586a.214.214 0 01-.214.261h-5.894z`}),(0,m.jsx)(`path`,{d:`M10.278 7.741L6.685 21.736a.214.214 0 00.214.264h7.17a.216.216 0 00.214-.166.216.216 0 000-.098L10.687 7.742a.214.214 0 00-.409 0z`})]}))});function i0(e){"@babel/helpers - typeof";return i0=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},i0(e)}var a0=[`size`,`style`];function o0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o0(Object(n),!0).forEach(function(t){c0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c0(e,t,n){return t=l0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l0(e){var t=u0(e,`string`);return i0(t)==`symbol`?t:String(t)}function u0(e,t){if(i0(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(i0(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function d0(e,t){if(e==null)return{};var n=f0(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function f0(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var p0=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=d0(e,a0);return(0,m.jsxs)(`svg`,s0(s0({fill:`currentColor`,fillRule:`evenodd`,height:n,style:s0({flex:`none`,lineHeight:1},r),viewBox:`0 0 86 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:C1}),(0,m.jsx)(`path`,{d:`M33.855 2.306h-2.031c-.123 0-.223.1-.223.222V21.07c0 .123.1.222.223.222h2.031c.123 0 .223-.1.223-.222V2.528c0-.122-.1-.222-.223-.222zM60.948 2.382h-2.134c-.124 0-.225.101-.225.226v19.16c0 .125.1.226.225.226h2.134c.125 0 .226-.101.226-.226V2.608c0-.125-.101-.226-.226-.226zM26.66 4.625h-2.027a.225.225 0 00-.225.226v16.78c0 .125.1.226.225.226h2.026a.225.225 0 00.225-.225V4.85c0-.125-.1-.226-.225-.226zM41.057 4.625h-2.026a.225.225 0 00-.225.226v16.78c0 .125.1.226.225.226h2.026a.225.225 0 00.226-.225V4.85c0-.125-.101-.226-.226-.226z`}),(0,m.jsx)(`path`,{d:`M41.166 19.383v2.06a.416.416 0 01-.417.417H24.933a.417.417 0 01-.417-.417v-2.06h16.65zM75.17 4.53V2.923a.111.111 0 00-.112-.112h-9.67a.111.111 0 00-.111.112V4.53c0 .061.05.111.111.111h9.67c.062 0 .111-.05.111-.111zM83.938 3.392V5.14a.112.112 0 01-.111.11h-6.175a.228.228 0 01-.228-.227V3.506a.228.228 0 01.228-.228h6.175a.112.112 0 01.111.111v.003zM16.846 5.074c-.037.973-.17 3.204-.63 6.717a.23.23 0 00.225.26h2.34a.232.232 0 00.225-.203c.454-3.539.571-5.773.617-6.757a.224.224 0 00-.229-.234h-2.32a.226.226 0 00-.228.217zM5.627 5.077c.04.978.171 3.227.633 6.765a.228.228 0 01-.225.263H3.678a.234.234 0 01-.228-.203c-.457-3.567-.585-5.818-.622-6.808a.228.228 0 01.23-.237h2.34a.227.227 0 01.229.22zM65.069 6.286a.118.118 0 00-.106.114v1.87a.11.11 0 00.123.114c1.675-.158 2.91-1.359 3.076-3.176a.112.112 0 00-.03-.087.114.114 0 00-.085-.036H66.17a.111.111 0 00-.111.1c-.135.964-.674 1.087-.99 1.101zM78.377 6.44h-1.932a.12.12 0 00-.089.043.118.118 0 00-.025.094c.628 3.536 3.672 5.764 7.861 5.756a.12.12 0 00.117-.117v-1.892a.114.114 0 00-.114-.114c-2.414 0-5.048-.97-5.707-3.681a.117.117 0 00-.111-.089z`}),(0,m.jsx)(`path`,{d:`M68.98 2.382h-2.157a.111.111 0 00-.11.112v2.25c0 .062.049.112.11.112h2.158c.061 0 .11-.05.11-.111V2.494a.111.111 0 00-.11-.112zM73.623 2.382h-2.157a.111.111 0 00-.111.112v2.25c0 .062.05.112.11.112h2.158c.062 0 .111-.05.111-.111V2.494a.111.111 0 00-.11-.112zM83.094 4.914v-.166h-2.175v.226c.02.733.066 2.448-1.101 3.66-.888.922-2.343 1.41-4.329 1.453a.114.114 0 00-.114.117l.023 1.937a.12.12 0 00.12.12c2.59-.051 4.565-.764 5.866-2.117 1.798-1.875 1.732-4.311 1.71-5.23zM79.124 2.357h-1.937a.114.114 0 00-.111.108 1.873 1.873 0 01-1.604 1.798.114.114 0 00-.097.111v1.94a.114.114 0 00.12.114 3.994 3.994 0 003.74-3.957.111.111 0 00-.11-.114zM45.186 3.053v2.03a.226.226 0 00.225.225h6.974a.108.108 0 01.109.108v2.283a.11.11 0 01-.109.111h-6.974a.226.226 0 00-.225.225v6.797a.225.225 0 00.225.225h6.974a.112.112 0 01.109.112v3.79a.224.224 0 01-.137.207.224.224 0 01-.086.018h-5.136a.226.226 0 00-.22.17l-.499 2.17a.112.112 0 00.108.136h7.77a.673.673 0 00.674-.673v-8.19a.225.225 0 00-.226-.225h-6.968a.108.108 0 01-.111-.111v-2.072a.111.111 0 01.111-.11h6.974a.225.225 0 00.225-.226v-7a.228.228 0 00-.225-.225H45.41a.226.226 0 00-.225.225zM74.57 5.632h-7.727a.112.112 0 00-.11.112v1.36a.106.106 0 00.03.08.109.109 0 00.08.032h5.739a.106.106 0 01.08.032.108.108 0 01.03.08v3.055a.112.112 0 01-.11.112h-.665a.11.11 0 00-.109.085l-.374 1.615a.113.113 0 00.022.095.112.112 0 00.087.042h2.337a.913.913 0 00.913-.913V5.858a.223.223 0 00-.223-.226zM73.358 13.62v6.417a.222.222 0 01-.226.223h-1.555a.226.226 0 00-.22.168l-.388 1.427a.114.114 0 00.112.145h4.029a.895.895 0 00.893-.896V13.62h-2.645z`}),(0,m.jsx)(`path`,{d:`M65.81 7.984v3.156a.224.224 0 00.226.222h5.025a.222.222 0 00.222-.222V7.984a.22.22 0 00-.064-.16.224.224 0 00-.158-.066h-5.025a.225.225 0 00-.225.226zm3.587 2.111h-1.712a.114.114 0 01-.111-.111v-.859a.114.114 0 01.111-.111h1.712a.111.111 0 01.111.111v.856a.112.112 0 01-.11.114zM83.564 14.321v-1.403a.111.111 0 00-.111-.112H65.907a.111.111 0 00-.11.112v1.403c0 .062.049.112.11.112h17.546c.061 0 .111-.05.111-.112zM83.29 16.744V15.34a.111.111 0 00-.111-.111H66.184a.111.111 0 00-.111.111v1.404c0 .061.05.111.111.111H83.18c.062 0 .111-.05.111-.111zM84.212 19.15v-1.404a.111.111 0 00-.111-.112H65.263a.111.111 0 00-.112.111v1.404c0 .062.05.112.112.112H84.1c.061 0 .111-.05.111-.112zM9.97 9.724c.1 5.678-4.823 9.476-7.756 9.673A.222.222 0 002 19.62v2.06a.224.224 0 00.143.208c.028.01.058.016.088.014 2.189-.13 4.671-1.312 6.549-3.138 1.689-1.635 3.71-4.531 3.71-9.043V2.223A.222.222 0 0012.266 2H10.2a.223.223 0 00-.223.223L9.97 9.724z`}),(0,m.jsx)(`path`,{d:`M12.475 9.724c-.103 5.678 4.83 9.476 7.753 9.673a.226.226 0 01.216.223v2.06a.225.225 0 01-.069.161.223.223 0 01-.165.061c-2.185-.13-4.67-1.312-6.545-3.138-1.69-1.635-3.71-4.531-3.71-9.043V2.223A.223.223 0 0110.178 2h2.066a.223.223 0 01.225.223l.006 7.501z`})]}))});function m0(e){"@babel/helpers - typeof";return m0=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},m0(e)}var h0=[`type`];function g0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function _0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?g0(Object(n),!0).forEach(function(t){v0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function v0(e,t,n){return t=y0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y0(e){var t=b0(e,`string`);return m0(t)==`symbol`?t:String(t)}function b0(e,t){if(m0(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(m0(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function x0(e,t){if(e==null)return{};var n=S0(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function S0(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var C0=(0,p.memo)(function(e){var t=e.type,n=t===void 0?`mono`:t,r=x0(e,h0);return(0,m.jsx)(BI,_0({Icon:n===`color`?z1:r0,Text:p0,"aria-label":C1,spaceMultiple:T1,textMultiple:w1},r))}),w0=r0;w0.Color=z1,w0.Text=p0,w0.Combine=C0,w0.Avatar=q1,w0.colorPrimary=E1,w0.title=C1;var T0=`Grok`,E0=.75,D0=.25,O0=`#fff`,k0=O0,A0=`#000`,j0=.65;function M0(e){"@babel/helpers - typeof";return M0=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},M0(e)}var N0=[`size`,`style`];function P0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function F0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?P0(Object(n),!0).forEach(function(t){I0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function I0(e,t,n){return t=L0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function L0(e){var t=R0(e,`string`);return M0(t)==`symbol`?t:String(t)}function R0(e,t){if(M0(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(M0(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function z0(e,t){if(e==null)return{};var n=B0(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function B0(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var V0=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=z0(e,N0);return(0,m.jsxs)(`svg`,F0(F0({fill:`currentColor`,fillRule:`evenodd`,height:n,style:F0({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:T0}),(0,m.jsx)(`path`,{d:`M6.469 8.776L16.512 23h-4.464L2.005 8.776H6.47zm-.004 7.9l2.233 3.164L6.467 23H2l4.465-6.324zM22 2.582V23h-3.659V7.764L22 2.582zM22 1l-9.952 14.095-2.233-3.163L17.533 1H22z`})]}))});function H0(e){"@babel/helpers - typeof";return H0=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},H0(e)}function U0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function W0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?U0(Object(n),!0).forEach(function(t){Cae(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Cae(e,t,n){return t=G0(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G0(e){var t=K0(e,`string`);return H0(t)==`symbol`?t:String(t)}function K0(e,t){if(H0(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(H0(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function q0(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var J0=(0,p.memo)(function(e){var t=Object.assign({},(q0(e),e));return(0,m.jsx)(II,W0({Icon:V0,"aria-label":T0,background:k0,color:A0,iconMultiple:j0},t))});function Y0(e){"@babel/helpers - typeof";return Y0=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Y0(e)}var X0=[`size`,`style`];function Z0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Q0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Z0(Object(n),!0).forEach(function(t){$0(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z0(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $0(e,t,n){return t=e2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e2(e){var t=t2(e,`string`);return Y0(t)==`symbol`?t:String(t)}function t2(e,t){if(Y0(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Y0(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function n2(e,t){if(e==null)return{};var n=r2(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r2(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var i2=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=n2(e,X0);return(0,m.jsxs)(`svg`,Q0(Q0({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Q0({flex:`none`,lineHeight:1},r),viewBox:`0 0 41 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:T0}),(0,m.jsx)(`path`,{d:`M36.867 2h2.577v20h-2.577V2zM23.875 2h2.717l7.759 20H31.55l-2.101-5.574h-8.571L18.777 22h-2.69l7.788-20zm4.79 12.185l-3.53-9.272-3.473 9.272h7.003zM7.35 14.381L2.504 7.518h2.857l3.446 5.126 3.585-5.126h2.605l-4.762 6.835L15.501 22h-2.829l-3.977-5.854L4.689 22H2l5.35-7.619z`})]}))});function a2(e){"@babel/helpers - typeof";return a2=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a2(e)}function o2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function s2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?o2(Object(n),!0).forEach(function(t){c2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function c2(e,t,n){return t=l2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l2(e){var t=u2(e,`string`);return a2(t)==`symbol`?t:String(t)}function u2(e,t){if(a2(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a2(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function d2(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var f2=(0,p.memo)(function(e){var t=Object.assign({},(d2(e),e));return(0,m.jsx)(BI,s2({Icon:J0,Text:i2,"aria-label":T0,iconProps:{shape:`square`},spaceMultiple:D0,textMultiple:E0},t))}),p2=V0;p2.Text=i2,p2.Combine=f2,p2.Avatar=J0,p2.colorPrimary=O0,p2.title=T0;var m2=`Zhipu`,h2=.65,g2=.2,_2=`#3859FF`,v2=_2,y2=`#fff`,b2=.75;function x2(e){"@babel/helpers - typeof";return x2=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},x2(e)}var S2=[`size`,`style`];function C2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function w2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?C2(Object(n),!0).forEach(function(t){T2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function T2(e,t,n){return t=E2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function E2(e){var t=D2(e,`string`);return x2(t)==`symbol`?t:String(t)}function D2(e,t){if(x2(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(x2(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function O2(e,t){if(e==null)return{};var n=k2(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function k2(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var A2=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=O2(e,S2);return(0,m.jsxs)(`svg`,w2(w2({fill:`currentColor`,fillRule:`evenodd`,height:n,style:w2({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:m2}),(0,m.jsx)(`path`,{d:`M11.991 23.503a.24.24 0 00-.244.248.24.24 0 00.244.249.24.24 0 00.245-.249.24.24 0 00-.22-.247l-.025-.001zM9.671 5.365a1.697 1.697 0 011.099 2.132l-.071.172-.016.04-.018.054c-.07.16-.104.32-.104.498-.035.71.47 1.279 1.186 1.314h.366c1.309.053 2.338 1.173 2.286 2.523-.052 1.332-1.152 2.38-2.478 2.327h-.174c-.715.018-1.274.64-1.239 1.368 0 .124.018.23.053.337.209.373.54.658.96.8.75.23 1.517-.125 1.9-.782l.018-.035c.402-.64 1.17-.96 1.92-.711.854.284 1.378 1.226 1.099 2.167a1.661 1.661 0 01-2.077 1.102 1.711 1.711 0 01-.907-.711l-.017-.035c-.2-.323-.463-.58-.851-.711l-.056-.018a1.646 1.646 0 00-1.954.746 1.66 1.66 0 01-1.065.764 1.677 1.677 0 01-1.989-1.279c-.209-.906.332-1.83 1.257-2.043a1.51 1.51 0 01.296-.035h.018c.68-.071 1.151-.622 1.116-1.333a1.307 1.307 0 00-.227-.693 2.515 2.515 0 01-.366-1.403 2.39 2.39 0 01.366-1.208c.14-.195.21-.444.227-.693.018-.71-.506-1.261-1.186-1.332l-.07-.018a1.43 1.43 0 01-.299-.07l-.05-.019a1.7 1.7 0 01-1.047-2.114 1.68 1.68 0 012.094-1.101zm-5.575 10.11c.26-.264.639-.367.994-.27.355.096.633.379.728.74.095.362-.007.748-.267 1.013-.402.41-1.053.41-1.455 0a1.062 1.062 0 010-1.482zm14.845-.294c.359-.09.738.024.992.297.254.274.344.665.237 1.025-.107.36-.396.634-.756.718-.551.128-1.1-.22-1.23-.781a1.05 1.05 0 01.757-1.26zm-.064-4.39c.314.32.49.753.49 1.206 0 .452-.176.886-.49 1.206-.315.32-.74.5-1.185.5-.444 0-.87-.18-1.184-.5a1.727 1.727 0 010-2.412 1.654 1.654 0 012.369 0zm-11.243.163c.364.484.447 1.128.218 1.691a1.665 1.665 0 01-2.188.923c-.855-.36-1.26-1.358-.907-2.228a1.68 1.68 0 011.33-1.038c.593-.08 1.183.169 1.547.652zm11.545-4.221c.368 0 .708.2.892.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.892.524c-.568 0-1.03-.47-1.03-1.048 0-.579.462-1.048 1.03-1.048zm-14.358 0c.368 0 .707.2.891.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.891.524c-.569 0-1.03-.47-1.03-1.048 0-.579.461-1.048 1.03-1.048zm10.031-1.475c.925 0 1.675.764 1.675 1.706s-.75 1.705-1.675 1.705-1.674-.763-1.674-1.705c0-.942.75-1.706 1.674-1.706zm-2.626-.684c.362-.082.653-.356.761-.718a1.062 1.062 0 00-.238-1.028 1.017 1.017 0 00-.996-.294c-.547.14-.881.7-.752 1.257.13.558.675.907 1.225.783zm0 16.876c.359-.087.644-.36.75-.72a1.062 1.062 0 00-.237-1.019 1.018 1.018 0 00-.985-.301 1.037 1.037 0 00-.762.717c-.108.361-.017.754.239 1.028.245.263.606.377.953.305l.043-.01zM17.19 3.5a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64a.631.631 0 00-.628.64c0 .355.28.64.628.64zm-10.38 0a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64a.631.631 0 00-.628.64c0 .355.279.64.628.64zm-5.182 7.852a.631.631 0 00-.628.64c0 .354.28.639.628.639a.63.63 0 00.627-.606l.001-.034a.62.62 0 00-.628-.64zm5.182 9.13a.631.631 0 00-.628.64c0 .355.279.64.628.64a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm10.38.018a.631.631 0 00-.628.64c0 .355.28.64.628.64a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64zm5.182-9.148a.631.631 0 00-.628.64c0 .354.279.639.628.639a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm-.384-4.992a.24.24 0 00.244-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249c0 .142.122.249.244.249zM11.991.497a.24.24 0 00.245-.248A.24.24 0 0011.99 0a.24.24 0 00-.244.249c0 .133.108.236.223.247l.021.001zM2.011 6.36a.24.24 0 00.245-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249.24.24 0 00.244.249zm0 11.263a.24.24 0 00-.243.248.24.24 0 00.244.249.24.24 0 00.244-.249.252.252 0 00-.244-.248zm19.995-.018a.24.24 0 00-.245.248.24.24 0 00.245.25.24.24 0 00.244-.25.252.252 0 00-.244-.248z`})]}))});function j2(e){"@babel/helpers - typeof";return j2=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},j2(e)}function M2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?M2(Object(n),!0).forEach(function(t){P2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function P2(e,t,n){return t=F2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F2(e){var t=I2(e,`string`);return j2(t)==`symbol`?t:String(t)}function I2(e,t){if(j2(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(j2(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function L2(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var R2=(0,p.memo)(function(e){var t=Object.assign({},(L2(e),e));return(0,m.jsx)(II,N2({Icon:A2,"aria-label":m2,background:v2,color:y2,iconMultiple:b2},t))});function z2(e){"@babel/helpers - typeof";return z2=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},z2(e)}var B2=[`size`,`style`];function V2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?V2(Object(n),!0).forEach(function(t){U2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function U2(e,t,n){return t=W2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W2(e){var t=G2(e,`string`);return z2(t)==`symbol`?t:String(t)}function G2(e,t){if(z2(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(z2(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function K2(e,t){if(e==null)return{};var n=q2(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function q2(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var J2=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=K2(e,B2);return(0,m.jsxs)(`svg`,H2(H2({height:n,style:H2({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:m2}),(0,m.jsx)(`path`,{d:`M11.991 23.503a.24.24 0 00-.244.248.24.24 0 00.244.249.24.24 0 00.245-.249.24.24 0 00-.22-.247l-.025-.001zM9.671 5.365a1.697 1.697 0 011.099 2.132l-.071.172-.016.04-.018.054c-.07.16-.104.32-.104.498-.035.71.47 1.279 1.186 1.314h.366c1.309.053 2.338 1.173 2.286 2.523-.052 1.332-1.152 2.38-2.478 2.327h-.174c-.715.018-1.274.64-1.239 1.368 0 .124.018.23.053.337.209.373.54.658.96.8.75.23 1.517-.125 1.9-.782l.018-.035c.402-.64 1.17-.96 1.92-.711.854.284 1.378 1.226 1.099 2.167a1.661 1.661 0 01-2.077 1.102 1.711 1.711 0 01-.907-.711l-.017-.035c-.2-.323-.463-.58-.851-.711l-.056-.018a1.646 1.646 0 00-1.954.746 1.66 1.66 0 01-1.065.764 1.677 1.677 0 01-1.989-1.279c-.209-.906.332-1.83 1.257-2.043a1.51 1.51 0 01.296-.035h.018c.68-.071 1.151-.622 1.116-1.333a1.307 1.307 0 00-.227-.693 2.515 2.515 0 01-.366-1.403 2.39 2.39 0 01.366-1.208c.14-.195.21-.444.227-.693.018-.71-.506-1.261-1.186-1.332l-.07-.018a1.43 1.43 0 01-.299-.07l-.05-.019a1.7 1.7 0 01-1.047-2.114 1.68 1.68 0 012.094-1.101zm-5.575 10.11c.26-.264.639-.367.994-.27.355.096.633.379.728.74.095.362-.007.748-.267 1.013-.402.41-1.053.41-1.455 0a1.062 1.062 0 010-1.482zm14.845-.294c.359-.09.738.024.992.297.254.274.344.665.237 1.025-.107.36-.396.634-.756.718-.551.128-1.1-.22-1.23-.781a1.05 1.05 0 01.757-1.26zm-.064-4.39c.314.32.49.753.49 1.206 0 .452-.176.886-.49 1.206-.315.32-.74.5-1.185.5-.444 0-.87-.18-1.184-.5a1.727 1.727 0 010-2.412 1.654 1.654 0 012.369 0zm-11.243.163c.364.484.447 1.128.218 1.691a1.665 1.665 0 01-2.188.923c-.855-.36-1.26-1.358-.907-2.228a1.68 1.68 0 011.33-1.038c.593-.08 1.183.169 1.547.652zm11.545-4.221c.368 0 .708.2.892.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.892.524c-.568 0-1.03-.47-1.03-1.048 0-.579.462-1.048 1.03-1.048zm-14.358 0c.368 0 .707.2.891.524.184.324.184.724 0 1.048a1.026 1.026 0 01-.891.524c-.569 0-1.03-.47-1.03-1.048 0-.579.461-1.048 1.03-1.048zm10.031-1.475c.925 0 1.675.764 1.675 1.706s-.75 1.705-1.675 1.705-1.674-.763-1.674-1.705c0-.942.75-1.706 1.674-1.706zm-2.626-.684c.362-.082.653-.356.761-.718a1.062 1.062 0 00-.238-1.028 1.017 1.017 0 00-.996-.294c-.547.14-.881.7-.752 1.257.13.558.675.907 1.225.783zm0 16.876c.359-.087.644-.36.75-.72a1.062 1.062 0 00-.237-1.019 1.018 1.018 0 00-.985-.301 1.037 1.037 0 00-.762.717c-.108.361-.017.754.239 1.028.245.263.606.377.953.305l.043-.01zM17.19 3.5a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64a.631.631 0 00-.628.64c0 .355.28.64.628.64zm-10.38 0a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64a.631.631 0 00-.628.64c0 .355.279.64.628.64zm-5.182 7.852a.631.631 0 00-.628.64c0 .354.28.639.628.639a.63.63 0 00.627-.606l.001-.034a.62.62 0 00-.628-.64zm5.182 9.13a.631.631 0 00-.628.64c0 .355.279.64.628.64a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm10.38.018a.631.631 0 00-.628.64c0 .355.28.64.628.64a.631.631 0 00.628-.64c0-.355-.279-.64-.628-.64zm5.182-9.148a.631.631 0 00-.628.64c0 .354.279.639.628.639a.631.631 0 00.628-.64c0-.355-.28-.64-.628-.64zm-.384-4.992a.24.24 0 00.244-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249c0 .142.122.249.244.249zM11.991.497a.24.24 0 00.245-.248A.24.24 0 0011.99 0a.24.24 0 00-.244.249c0 .133.108.236.223.247l.021.001zM2.011 6.36a.24.24 0 00.245-.249.24.24 0 00-.244-.249.24.24 0 00-.244.249.24.24 0 00.244.249zm0 11.263a.24.24 0 00-.243.248.24.24 0 00.244.249.24.24 0 00.244-.249.252.252 0 00-.244-.248zm19.995-.018a.24.24 0 00-.245.248.24.24 0 00.245.25.24.24 0 00.244-.25.252.252 0 00-.244-.248z`,fill:`#3859FF`,fillRule:`nonzero`})]}))});function Y2(e){"@babel/helpers - typeof";return Y2=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Y2(e)}var X2=[`size`,`style`];function Z2(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Q2(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Z2(Object(n),!0).forEach(function(t){$2(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z2(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function $2(e,t,n){return t=e4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function e4(e){var t=t4(e,`string`);return Y2(t)==`symbol`?t:String(t)}function t4(e,t){if(Y2(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(Y2(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function n4(e,t){if(e==null)return{};var n=r4(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r4(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var i4=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=n4(e,X2);return(0,m.jsxs)(`svg`,Q2(Q2({fill:`currentColor`,fillRule:`evenodd`,height:n,style:Q2({flex:`none`,lineHeight:1},r),viewBox:`0 0 64 24`,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:m2}),(0,m.jsx)(`path`,{d:`M63 3.405h-2.67v17.19H63V3.405zm-6.646 0l2.76 17.19h-2.7l-.297-1.943-.149-.927c-.03-.18-.267-.329-.534-.329H53.12c-.267 0-.504.15-.534.329l-.148.927-.297 1.943H49.68l2.73-17.19h3.945zm-2.106 3.797c-.178 0-.327.15-.356.359l-.92 7.503c0 .15.118.3.267.3h2.047c.148 0 .267-.12.237-.3l-.92-7.503c-.03-.21-.177-.36-.355-.36zm-10.325 5.5a1.31 1.31 0 001.305-1.315 1.31 1.31 0 00-1.305-1.315 1.31 1.31 0 00-1.306 1.315c0 .705.55 1.28 1.242 1.314l.064.002zm-7.329.987V22h-1.78v-.777H28.97V22h-1.72v-8.31h9.345zM4.136 2l1.662.15a6.024 6.024 0 01-.564 1.405h4.955v1.554H7.786c0 .21-.03.508-.06.867l-.002.74c-.005.567-.019 1.226-.057 1.323h3.026v1.554H7.46c.505.39 1.306.927 2.344 1.645.386.239.653.448.83.538l-.978 1.554h6.853v8.61h-1.84v-.867H5.947v.867h-1.78v-8.55c-.356.15-.742.359-1.098.628a17.279 17.279 0 00-1.038-1.644c1.899-.778 3.115-1.734 3.56-2.81H2.148V8.009h3.768c.09-.508.149-2.272.149-2.9H4.403a8.78 8.78 0 01-1.305 1.644c-.119-.09-.208-.239-.356-.388-.09-.18-.327-.449-.742-.867A8.205 8.205 0 004.136 2zm20.65 7.743v8.37l.129-.15a3.36 3.36 0 01.099-.108l.039-.04c.564-.568.95-1.017 1.157-1.346.119.538.208 1.256.356 2.183-1.305 1.196-2.284 2.242-2.937 3.109l-1.098-1.704c.326-.3.475-.777.475-1.465v-6.906h-1.454V9.743h3.234zm10.028 8.46H28.97v1.555h5.845v-1.555zm-20.145-.209H5.946v1.704h8.723v-1.704zm20.145-2.75H28.97v1.644h5.845v-1.644zm-20.145-.3H5.946v1.645h8.723v-1.644zM6.717 10.91c-.415.807-1.216 1.614-2.462 2.391h5.4l-.674-.558c-.445-.366-.977-.8-1.581-1.295l-.194-.172c-.188-.164-.355-.299-.489-.366zm21.273-8.49l1.662-.39.084.124c.116.175.251.395.416.648l.272.414c.308.473.535.84.682 1.087h1.661a21.46 21.46 0 001.365-2.242l1.72.388c-.118.09-.207.27-.355.539l-.175.276c-.147.23-.371.58-.656 1.039h3.026v1.465h-3.53v5.052h3.975v1.465h-12.49v-1.465h3.856V5.737H26.27V4.272h2.878l-.302-.52c-.38-.645-.665-1.094-.855-1.333zm-10.236.986v8.58h-6.379v-8.58h6.38zm14.924 2.332h-1.572v5.082h1.572V5.737zm-16.555-.598h-3.086v5.232h3.086V5.139zM26.21 7.59l1.157-.867.155.185c.175.213.409.51.676.892.386.448.653.807.83 1.076l-1.245.957-.113-.176a45.578 45.578 0 00-1.46-2.067zm10.206-.896l1.246.867-.058.095c-.192.307-.526.777-.98 1.37l-.203.304a3.5 3.5 0 01-.36.473l-1.217-.927.418-.54c.549-.714.939-1.256 1.154-1.642zm-14.39-3.289l1.366-.927.322.41c.533.68 1.162 1.513 1.873 2.55l-1.572 1.076-.09-.152c-.21-.348-.542-.86-.995-1.534l-.073-.108a24.604 24.604 0 01-.83-1.315z`})]}))});function a4(e){"@babel/helpers - typeof";return a4=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},a4(e)}var o4=[`type`];function s4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function c4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?s4(Object(n),!0).forEach(function(t){l4(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l4(e,t,n){return t=u4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u4(e){var t=d4(e,`string`);return a4(t)==`symbol`?t:String(t)}function d4(e,t){if(a4(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(a4(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function f4(e,t){if(e==null)return{};var n=p4(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function p4(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var m4=(0,p.memo)(function(e){var t=e.type,n=t===void 0?`mono`:t,r=f4(e,o4);return(0,m.jsx)(BI,c4({Icon:n===`color`?J2:A2,Text:i4,"aria-label":m2,spaceMultiple:g2,textMultiple:h2},r))}),h4=A2;h4.Color=J2,h4.Text=i4,h4.Combine=m4,h4.Avatar=R2,h4.colorPrimary=_2,h4.title=m2;var g4=.8,_4=.2,v4=`#000`,y4=v4,b4=`#fff`,x4=.65;function S4(e){"@babel/helpers - typeof";return S4=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},S4(e)}var C4=[`size`,`style`];function w4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function T4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?w4(Object(n),!0).forEach(function(t){E4(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function E4(e,t,n){return t=D4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function D4(e){var t=O4(e,`string`);return S4(t)==`symbol`?t:String(t)}function O4(e,t){if(S4(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(S4(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function k4(e,t){if(e==null)return{};var n=A4(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function A4(e,t){if(e==null)return{};for(var n={},r=Object.keys(e),i,a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}var j4=(0,p.memo)(function(e){var t=e.size,n=t===void 0?`1em`:t,r=e.style,i=k4(e,C4);return(0,m.jsxs)(`svg`,T4(T4({fill:`currentColor`,fillRule:`evenodd`,height:n,style:T4({flex:`none`,lineHeight:1},r),viewBox:`0 0 24 24`,width:n,xmlns:`http://www.w3.org/2000/svg`},i),{},{children:[(0,m.jsx)(`title`,{children:`Pi`}),(0,m.jsx)(`path`,{clipRule:`evenodd`,d:`M1 1h16.5v11H12v5.5H6.5V23H1V1zm5.5 5.5V12H12V6.5H6.5z`}),(0,m.jsx)(`path`,{d:`M17.5 12H23v11h-5.5V12z`})]}))});function M4(e){"@babel/helpers - typeof";return M4=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},M4(e)}function N4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?N4(Object(n),!0).forEach(function(t){F4(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function F4(e,t,n){return t=I4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I4(e){var t=L4(e,`string`);return M4(t)==`symbol`?t:String(t)}function L4(e,t){if(M4(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(M4(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function R4(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var z4=(0,p.memo)(function(e){var t=Object.assign({},(R4(e),e));return(0,m.jsx)(II,P4({Icon:j4,"aria-label":`Pi`,background:y4,color:b4,iconMultiple:x4},t))});function B4(e){"@babel/helpers - typeof";return B4=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},B4(e)}function V4(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function H4(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?V4(Object(n),!0).forEach(function(t){U4(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V4(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function U4(e,t,n){return t=W4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W4(e){var t=G4(e,`string`);return B4(t)==`symbol`?t:String(t)}function G4(e,t){if(B4(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||`default`);if(B4(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}function K4(e){if(e==null)throw TypeError(`Cannot destructure `+e)}var q4=(0,p.memo)(function(e){var t=Object.assign({},(K4(e),e));return(0,m.jsx)(BI,H4({Text:j4,"aria-label":`Pi`,spaceMultiple:_4,textMultiple:g4},t))}),J4=j4;J4.Text=j4,J4.Combine=q4,J4.Avatar=z4,J4.colorPrimary=v4,J4.title=`Pi`;var Y4=`/assets/routin-DX-CQHgD.png`,X4=`/assets/nextcowork-BexLkxxv.png`,Z4=`/assets/crush-BNYOB5HO.png`,Q4=`/assets/droid-B0uVt5eN.svg`,$4=`/assets/nextcowork-BexLkxxv.png`,e3=`/assets/omp-Bzy8Vit8.png`,t3=`/assets/vscode-insiders-D9p2oiPS.png`,n3=`data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='100'%20height='100'%3e%3cdefs%3e%3clinearGradient%20id='a'%20gradientUnits='userSpaceOnUse'%20x1='2.763'%20y1='-.313'%20x2='94.027'%20y2='95.408'%3e%3cstop%20offset='0'%20stop-color='%2356CCF2'/%3e%3cstop%20offset='1'%20stop-color='%232F80ED'/%3e%3c/linearGradient%3e%3c/defs%3e%3cpath%20d='M63.697%201.417c.657-1.036%201.832-1.725%203.066-1.73%201.729-.004%203.375.967%204.376%202.35.943%201.322%201.234%202.993%201.236%204.589-.015%202.244-.532%204.449-1.148%206.596-1.539%205.067-3.63%209.946-5.192%2015.007-1.72%205.743-2.545%2012.143-.234%2017.845%201.208-3.372%202.403-6.751%203.607-10.127.342-.892.792-1.906%201.748-2.272%201.331-.474%202.688.915%202.649%202.201-.364%201.873-1.07%203.658-1.626%205.48-4.503%2013.536-9.546%2026.885-14.402%2040.299%206.458-5.905%2012.936-11.788%2019.402-17.682%201.861-1.694%203.879-3.54%204.449-6.1.569-2.513-.489-5.007-1.688-7.165-1.385-2.575-3.153-5.024-3.803-7.922-.327-1.501-.228-3.228.784-4.458.73-.926%202.059-1.404%203.18-.952%201.107.423%201.775%201.486%202.298%202.49a32.327%2032.327%200%200%201%203.23%2011.299c1.2-2.421%202.414-4.832%203.616-7.251.726-1.425%201.367-2.954%202.545-4.08.711-.702%201.747-1.144%202.75-.916%201.258.278%202.141%201.422%202.479%202.61.383%201.262-.022%202.576-.429%203.775-1.212%203.353-3.116%206.387-4.951%209.424-2.558%204.02-5.275%207.943-8.241%2011.675%201.695-1.132%203.48-2.323%205.556-2.56%201.964-.263%204.135.887%204.785%202.804.435%201.305-.269%202.782-1.451%203.419-1.734.967-3.786.954-5.713%201.04-6.993.192-13.808%203.635-18.147%209.116-3.424%204.371-5.173%209.802-8.648%2014.137-2.192%202.642-5.289%205.959-8.696%205.226-4.537-.975-4.537-8.066-5.668-11.581-.583-1.772-1.677-3.391-3.195-4.496-1.327-.98-2.916-1.542-4.522-1.85-3.687-.708-7.49-.334-11.168-1.094-1.841-.375-3.654-1.113-5.06-2.386-1.34-1.176-2.266-2.75-2.908-4.397-1.386-3.588-1.668-7.481-2.9-11.114-1.783-5.23-5.311-9.854-9.906-12.925-.969-.654-2.022-1.292-2.649-2.312-.51-.797-.465-1.93.203-2.625%201.126-1.226%203.161-1.327%204.462-.313%202.666%201.891%203.051%205.565%205.536%207.621.004-3.394-.013-6.785-.019-10.177.008-.98-.101-2.035.389-2.926.446-.844%201.68-1.073%202.397-.44.969.812%201.264%202.137%201.402%203.336.482%204.675.948%209.352%201.432%2014.03%202.436-2.188%203.555-5.739%202.767-8.924-.239-1.017-.626-2.063-.407-3.118.179-.885%201.118-1.508%202.003-1.35.995.135%201.705.988%202.078%201.864.594%201.452.596%203.069.476%204.611-.353%203.512-1.839%206.755-2.864%2010.097-.999%202.95-1.686%206.228-.685%209.275.892%202.849%203.153%205.101%205.806%206.378%203.275%201.609%206.964%202.109%2010.573%202.251-2.194-3.84-4.58-7.903-4.539-12.471.043-4.599%202.967-8.473%203.757-12.912%201.346-7.364-1.977-15.369-8.163-19.594-2.748-1.888-6.047-2.728-8.87-4.479-2.554-1.563-4.848-4.345-4.447-7.513%201.94-.751%204.106-.271%205.857.737%203.422%201.826%205.599%205.288%209.038%207.086a7.391%207.391%200%200%200%203.969.901c.745-1.786%200-3.786-1.202-5.177-2.261-2.724-6.077-3.385-8.441-5.989-1.185-1.359-1.846-3.301-1.348-5.078.405-1.404%201.858-2.36%203.305-2.254%202.143.133%203.988%201.475%205.453%202.952%204.847%204.845%207.636%2011.435%208.73%2018.132%201.292%207.899.288%2015.957-1.303%2023.735-.297%201.585-.853%203.21-.442%204.828.177.749.717%201.522%201.547%201.589%201.141.073%202.084-.704%202.915-1.385%202.599-2.123%204.665-4.981%205.517-8.254.666-2.386.685-4.884.638-7.341.013-1.229-.078-2.586.657-3.65.525-.822%201.505-1.468%202.513-1.229.79.15%201.35.835%201.591%201.569.388%201.209.329%202.514.095%203.747-.743%203.403-1.415%206.85-2.761%2010.081-.95%202.319-2.233%204.524-3.971%206.341-1.916%202.031-4.283%203.659-5.827%206.026-1.053%201.617-1.734%203.626-1.277%205.558.334%201.541%201.507%202.799%202.922%203.441%202.061.941%204.563.893%206.572-.166%201.594-.862%202.727-2.352%203.629-3.883%201.589-2.754%202.552-5.812%203.351-8.874%201.229-4.944%201.953-10.013%202.237-15.1.325-5.433-.661-11.051-3.4-15.797-1.456-2.541-3.515-4.705-5.92-6.361-2.166-1.611-4.548-3.006-6.305-5.093-1.643-1.934-2.782-4.544-2.184-7.111%201.124-.706%202.543-.829%203.788-.387%202.349.799%204.189%202.685%205.375%204.819%201.611%202.515%202.955%205.508%205.793%206.874-2.309-4.542-4.69-9.045-7.027-13.571-.76-1.529-1.509-3.2-1.311-4.949.144-1.333%201.382-2.426%202.719-2.42%201.187.004%202.3.672%203.007%201.602.807%201.047%201.193%202.337%201.557%203.59%201.862%206.482%203.723%2012.961%205.592%2019.441%202.349-4.475%203.342-9.66%202.674-14.682-.292-2.662-1.074-5.233-1.694-7.83-.422-1.699-.295-3.605.674-5.101z'%20fill='url(%23a)'/%3e%3c/svg%3e`,r3=`/assets/workbuddy-D1Gu2IKl.svg`,i3=`/assets/zed-AZ8_kjcQ.png`,a3={codex:{name:`Codex`},"claude-code":{name:`Claude Code`},"gemini-cli":{name:`Gemini CLI`},opencode:{name:`OpenCode`},"claude-desktop":{name:`Claude Desktop`},"grok-build":{name:`Grok Build`},pi:{name:`Pi`},"hermes-agent":{name:`Hermes Agent`},"minimax-code":{name:`MiniMax Code`},"copilot-cli":{name:`Copilot CLI`},"vscode-copilot":{name:`VS Code Copilot`},crush:{name:`Crush`},"qwen-code":{name:`Qwen Code`},droid:{name:`Droid`},"kimi-code":{name:`Kimi Code`},zed:{name:`Zed`},"vscode-insiders":{name:`VS Code Insiders`},vscodium:{name:`VSCodium`},omp:{name:`omp (oh-my-pi)`},"mimo-code":{name:`MiMo Code`},"deepseek-harness":{name:`DeepSeek Harness`},workbuddy:{name:`WorkBuddy`},"muse-code":{name:`Muse Code`},nextcowork:{name:`NextCoWork`}},o3=[`codex`,`claude-code`,`gemini-cli`,`opencode`,`claude-desktop`,`grok-build`,`pi`,`hermes-agent`,`minimax-code`,`copilot-cli`,`vscode-copilot`,`crush`,`qwen-code`,`droid`,`kimi-code`,`zed`,`vscode-insiders`,`vscodium`,`omp`,`mimo-code`,`deepseek-harness`,`workbuddy`,`muse-code`,`nextcowork`];function s3(e){return function({size:t=18}){return(0,m.jsx)(`img`,{"data-client-mark":`logo`,src:e,alt:``,draggable:!1,decoding:`async`,width:t,height:t,className:`object-contain`,style:{borderRadius:Math.round(Number(t)*.22)}})}}function c3(e){return function({size:t=28,style:n}){let r=Number(t),i={width:r,height:r,...n};return(0,m.jsx)(`span`,{className:`inline-flex items-center justify-center overflow-hidden bg-white shadow-[inset_0_0_0_0.5px_rgb(0_0_0/0.08)]`,style:i,children:(0,m.jsx)(`img`,{"data-client-mark":`logo`,src:e,alt:``,draggable:!1,decoding:`async`,className:`size-full object-contain`})})}}var l3=e=>({Mark:s3(e),Avatar:c3(e)}),u3={codex:{Mark:lH,Avatar:lH.Avatar},"claude-code":{Mark:bL.Color,Avatar:bL.Avatar,badge:cC},"gemini-cli":{Mark:OR.Color,Avatar:OR.Avatar},opencode:{Mark:$H,Avatar:$H.Avatar},"claude-desktop":{Mark:bL.Color,Avatar:bL.Avatar,badge:ES},"grok-build":{Mark:OK,Avatar:OK.Avatar},pi:{Mark:J4,Avatar:J4.Avatar},"hermes-agent":{Mark:cB,Avatar:cB.Avatar},"minimax-code":{Mark:fY.Color,Avatar:fY.Avatar},"copilot-cli":{Mark:vz,Avatar:vz.Avatar,badge:cC},"vscode-copilot":{Mark:vz,Avatar:vz.Avatar,badge:vte},crush:l3(Z4),"qwen-code":{Mark:nW.Color,Avatar:nW.Avatar,badge:cC},droid:l3(Q4),"kimi-code":{Mark:lV.Color,Avatar:lV.Avatar,badge:cC},zed:l3(i3),"vscode-insiders":l3(t3),vscodium:l3(n3),omp:l3(e3),"mimo-code":{Mark:LZ,Avatar:LZ.Avatar,badge:cC},"deepseek-harness":{Mark:RG.Color,Avatar:RG.Avatar,badge:ES},workbuddy:l3(r3),"muse-code":{Mark:lJ.Color,Avatar:lJ.Avatar,badge:cC},nextcowork:l3($4)};function d3({kind:e,size:t}){let n=u3[e].badge;if(!n)return null;let r=Math.max(9,Math.round(t*.5));return(0,m.jsx)(`span`,{"data-badge":e,className:`absolute -right-0.5 -bottom-0.5 inline-flex items-center justify-center rounded-[3px] bg-[var(--surface-raised)] text-[var(--foreground)] shadow-[0_0_0_1px_var(--border)]`,style:{width:r,height:r},children:(0,m.jsx)(n,{style:{width:r*.78,height:r*.78},strokeWidth:2.5})})}function f3({kind:e,size:t=18}){let{Mark:n}=u3[e];return(0,m.jsxs)(`span`,{"aria-hidden":!0,className:`relative inline-flex shrink-0 items-center justify-center text-[var(--foreground)]`,style:{width:t,height:t},children:[(0,m.jsx)(n,{size:t,"aria-hidden":!0}),(0,m.jsx)(d3,{kind:e,size:t})]})}function p3({kind:e,size:t=28}){let{Avatar:n}=u3[e];return(0,m.jsxs)(`span`,{"aria-hidden":!0,className:`relative inline-flex shrink-0`,style:{width:t,height:t},children:[(0,m.jsx)(n,{size:t,shape:`square`,style:{borderRadius:Math.round(t*.28)}}),(0,m.jsx)(d3,{kind:e,size:Math.round(t*.8)})]})}function m3(e){let t=e.replace(/[^\p{L}\p{N} ]/gu,` `).split(/\s+/).filter(Boolean);return t.length===0?`?`:/\p{Script=Han}/u.test(t[0])?t[0].slice(0,1):(t.length>1?t[0][0]+t[1][0]:t[0].slice(0,2)).toUpperCase()}var h3={openai:lH.Avatar,copilot:vz.Avatar,anthropic:IW.Avatar,gemini:OR.Avatar,grok:p2.Avatar,deepseek:RG.Avatar,kimi:nX.Avatar,glm:h4.Avatar,qwen:nW.Avatar,minimax:fY.Avatar,volcengine:w0.Avatar,openrouter:rZ.Avatar,siliconflow:S1.Avatar,ollama:b$.Avatar,"lm-studio":AQ.Avatar},g3={nextcowork:X4,routin:Y4};function _3({name:e,icon:t,colorKey:n,size:r=28}){let i=t?h3[t]:void 0;if(i)return(0,m.jsx)(i,{size:r,shape:`square`,style:{borderRadius:Math.round(r*.28)}});let a=t?g3[t]:void 0;return a?(0,m.jsx)(`span`,{"aria-hidden":!0,className:`relative inline-flex shrink-0 items-center justify-center overflow-hidden bg-white shadow-[inset_0_0_0_0.5px_rgb(0_0_0/0.08)]`,style:{width:r,height:r,borderRadius:Math.round(r*.28)},children:(0,m.jsx)(`img`,{src:a,alt:``,draggable:!1,decoding:`async`,className:`size-full object-contain`})}):(0,m.jsx)(`span`,{"aria-hidden":!0,className:`inline-flex shrink-0 items-center justify-center border border-[var(--border)] bg-[var(--surface-muted)] font-medium text-[var(--text-secondary)]`,style:{width:r,height:r,borderRadius:Math.round(r*.28),fontSize:Math.round(r*.38)},children:m3(e)})}var v3=Object.defineProperty,y3=(e,t)=>v3(e,`name`,{value:t,configurable:!0}),[b3,wae]=Pv(`Tooltip`,[DA]),x3=DA(),S3=`TooltipProvider`,C3=700,w3=`tooltip.open`,[T3,E3]=b3(S3),D3=y3(e=>{let{__scopeTooltip:t,delayDuration:n=C3,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=p.useRef(!0),s=p.useRef(!1),c=p.useRef(0);return p.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,m.jsx)(T3,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:p.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:p.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:p.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),O3=`Tooltip`,[k3,A3]=b3(O3),j3=y3(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=E3(O3,e.__scopeTooltip),l=x3(t),[u,d]=p.useState(null),[f,h]=p.useState(void 0),g=$y(),_=p.useRef(0),v=o??c.disableHoverableContent,y=s??c.delayDuration,b=p.useRef(!1),[x,S]=Ay({prop:r,defaultProp:i??!1,onChange:y3(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(w3))):c.onClose(),a?.(e)},`onChange`),caller:O3}),C=p.useMemo(()=>x?b.current?`delayed-open`:`instant-open`:`closed`,[x]),w=p.useCallback(()=>{window.clearTimeout(_.current),_.current=0,b.current=!1,S(!0)},[S]),T=p.useCallback(()=>{window.clearTimeout(_.current),_.current=0,S(!1)},[S]),E=p.useCallback(()=>{window.clearTimeout(_.current),_.current=window.setTimeout(()=>{b.current=!0,S(!0),_.current=0},y)},[y,S]);p.useEffect(()=>()=>{_.current&&=(window.clearTimeout(_.current),0)},[]);let D=f??g;return(0,m.jsx)(AA,{...l,children:(0,m.jsx)(k3,{scope:t,contentId:D,setContentId:h,open:x,stateAttribute:C,trigger:u,onTriggerChange:d,onTriggerEnter:p.useCallback(()=>{c.isOpenDelayedRef.current?E():w()},[c.isOpenDelayedRef,E,w]),onTriggerLeave:p.useCallback(()=>{v?T():(window.clearTimeout(_.current),_.current=0)},[T,v]),onOpen:w,onClose:T,disableHoverableContent:v,children:n})})},`Tooltip`),M3=`TooltipTrigger`,N3=p.forwardRef(y3(function(e,t){let{__scopeTooltip:n,"aria-describedby":r,...i}=e,a=A3(M3,n),o=E3(M3,n),s=x3(n),c=zv(t,p.useRef(null),a.onTriggerChange),l=p.useRef(!1),u=p.useRef(!1),d=p.useCallback(()=>l.current=!1,[]);return p.useEffect(()=>()=>document.removeEventListener(`pointerup`,d),[d]),(0,m.jsx)(MA,{asChild:!0,...s,children:(0,m.jsx)(Ry.button,{"aria-describedby":a.open?Y3(r,a.contentId):r,"data-state":a.stateAttribute,...i,ref:c,onPointerMove:q(e.onPointerMove,e=>{e.pointerType!==`touch`&&!u.current&&!o.isPointerInTransitRef.current&&(a.onTriggerEnter(),u.current=!0)}),onPointerLeave:q(e.onPointerLeave,()=>{a.onTriggerLeave(),u.current=!1}),onPointerDown:q(e.onPointerDown,()=>{a.open&&a.onClose(),l.current=!0,document.addEventListener(`pointerup`,d,{once:!0})}),onFocus:q(e.onFocus,()=>{l.current||a.onOpen()}),onBlur:q(e.onBlur,a.onClose),onClick:q(e.onClick,a.onClose)})})},`TooltipTrigger`)),P3=`TooltipPortal`,[F3,I3]=b3(P3,{forceMount:void 0}),L3=y3(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=A3(P3,t);return(0,m.jsx)(F3,{scope:t,forceMount:n,children:(0,m.jsx)(Uy,{present:n||a.open,children:(0,m.jsx)(UE,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),R3=`TooltipContent`,z3=p.forwardRef(y3(function(e,t){let n=I3(R3,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=A3(R3,e.__scopeTooltip);return(0,m.jsx)(Uy,{present:r||o.open,children:o.disableHoverableContent?(0,m.jsx)(H3,{side:i,...a,ref:t}):(0,m.jsx)(B3,{side:i,...a,ref:t})})},`TooltipContent`)),B3=p.forwardRef(y3(function(e,t){let n=A3(R3,e.__scopeTooltip),r=E3(R3,e.__scopeTooltip),i=p.useRef(null),a=zv(t,i),[o,s]=p.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=p.useCallback(()=>{s(null),d(!1)},[d]),h=p.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=W3(r,U3(r,n.getBoundingClientRect())),a=G3(t.getBoundingClientRect()),o=q3([...i,...a]);s(o),d(!0)},[d]);return p.useEffect(()=>()=>f(),[f]),p.useEffect(()=>{if(c&&u){let e=y3(e=>h(e,u),`handleTriggerLeave`),t=y3(e=>h(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,h,f]),p.useEffect(()=>{if(o){let e=y3(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!K3(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,m.jsx)(H3,{...e,ref:a})},`TooltipContentHoverable`)),V3=Uv(`TooltipContent`),H3=p.forwardRef(y3(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=A3(R3,n),u=x3(n),{onClose:d}=l;p.useEffect(()=>(document.addEventListener(w3,d),()=>document.removeEventListener(w3,d)),[d]),p.useEffect(()=>{if(l.trigger){let e=y3(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:f}=l;return xy(()=>(f(a),()=>{f(void 0)}),[a,f]),(0,m.jsx)(_E,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,m.jsxs)(FA,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,m.jsx)(V3,{children:r}),i?(0,m.jsx)(FM,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`));function U3(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}y3(U3,`getExitSideFromRect`);function W3(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}y3(W3,`getPaddedExitPoints`);function G3(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}y3(G3,`getPointsFromRect`);function K3(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}y3(K3,`isPointInPolygon`);function q3(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),J3(t)}y3(q3,`getHull`);function J3(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}y3(J3,`getHullPresorted`);function Y3(...e){let t=new Set;for(let n of e)if(typeof n==`string`)for(let e of String(n).trim().split(/\s+/))e&&t.add(e);return t.size>0?Array.from(t).join(` `):void 0}y3(Y3,`concatAriaDescribedby`);var X3={tooltip:`_tooltip_1g9y0_1`,"tooltip-exit":`_tooltip-exit_1g9y0_1`,text:`_text_1g9y0_12`,measure:`_measure_1g9y0_13`,line:`_line_1g9y0_14`},Z3=250,Tae=300,Q3=!1,$3=0,e6=0,t6=new Set,n6={subscribe(e){return t6.add(e),()=>{t6.delete(e)}},get:()=>Q3,set(e){Q3!==e&&(Q3=e,t6.forEach(e=>e()))},opened(){$3+=1,window.clearTimeout(e6),n6.set(!0)},closed(){$3=Math.max(0,$3-1),!$3&&(window.clearTimeout(e6),e6=window.setTimeout(()=>n6.set(!1),Tae))}};function Eae({text:e}){let t=Zf(),n=(0,p.useRef)(null),r=(0,p.useRef)(null),[i,a]=(0,p.useState)(null);return(0,p.useLayoutEffect)(()=>{let e=n.current;if(!e)return;let t=new ResizeObserver(([t])=>{let n=t.borderBoxSize?.[0],i=e.textContent,o=r.current!==null&&r.current!==i;r.current=i,a({width:Math.ceil(n?.inlineSize??e.offsetWidth),height:Math.ceil(n?.blockSize??e.offsetHeight),animate:o})});return t.observe(e),()=>t.disconnect()},[]),(0,m.jsxs)(H.span,{className:X3.text,initial:!1,animate:i?{width:i.width,height:i.height}:void 0,transition:i?.animate&&!t?Y.spring.morph:{duration:0},children:[(0,m.jsx)(`span`,{ref:n,className:X3.measure,"aria-hidden":`true`,children:e}),(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(H.span,{className:X3.line,initial:!t&&{opacity:0,y:`0.3em`,filter:`blur(${Y.blur.soft}px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},exit:t?{opacity:0,transition:{duration:0}}:{opacity:0,y:`-0.3em`,filter:`blur(${Y.blur.subtle}px)`,transition:{duration:Y.duration.instant,ease:[...Y.ease.standard]}},transition:{duration:Y.duration.standard,ease:[...Y.ease.enter]},children:e},e)})]})}function r6({content:e,children:t,side:n=`top`}){let r=(0,p.useSyncExternalStore)(n6.subscribe,n6.get,()=>!1),[i,a]=(0,p.useState)(!1),[o,s]=(0,p.useState)(!1);return(0,p.useEffect)(()=>{if(i)return n6.opened(),n6.closed},[i]),(0,m.jsx)(D3,{delayDuration:Z3,skipDelayDuration:0,children:(0,m.jsxs)(j3,{open:i,delayDuration:r?0:Z3,onOpenChange:e=>{e&&s(n6.get()),a(e)},children:[(0,m.jsx)(N3,{asChild:!0,children:t}),(0,m.jsx)(L3,{children:(0,m.jsx)(z3,{className:X3.tooltip,"data-instant":o||void 0,side:n,sideOffset:8,collisionPadding:12,children:typeof e==`string`||typeof e==`number`?(0,m.jsx)(Eae,{text:String(e)}):e})})]})})}function i6({title:e,subtitle:t,actions:n,leading:r,children:i,contentClassName:a}){let o=xv(),s=TP(),c=s.sidebarMode===`expanded`?o(`shell.collapseSidebar`):o(`shell.expandSidebar`);return(0,m.jsxs)(`div`,{className:`absolute inset-0 flex flex-col`,children:[(0,m.jsxs)(`header`,{className:`drag chrome flex h-[52px] shrink-0 items-center gap-2 pr-4 pl-2`,style:{paddingRight:MP||void 0},children:[(0,m.jsx)(r6,{side:`bottom`,content:`${c}${Lp?` (${Vp}${Rp?`⌥`:`Alt+`}S)`:``}`,children:(0,m.jsx)(X,{variant:`plain`,icon:(0,m.jsx)(OS,{className:`size-4`}),"aria-label":c,"aria-expanded":s.sidebarMode===`drawer`?s.drawerOpen:s.sidebarMode===`expanded`,onClick:s.toggleSidebar})}),r,(0,m.jsxs)(`div`,{className:`min-w-0`,children:[(0,m.jsx)(`h1`,{className:`truncate text-[15px] leading-tight font-medium`,children:e}),t&&(0,m.jsx)(`div`,{className:`truncate text-[11px] text-[var(--text-secondary)]`,children:t})]}),(0,m.jsx)(`div`,{className:`ml-auto flex items-center gap-2`,children:n})]}),(0,m.jsx)(`div`,{className:Cv(`scroll scroll-edge min-h-0 flex-1 px-2 pt-5 pb-10`,s.sidebarMode===`drawer`&&`px-3`,a),style:{paddingRight:16},children:i})]})}var a6=[`ANTHROPIC_MODEL`,`ANTHROPIC_DEFAULT_OPUS_MODEL`,`ANTHROPIC_DEFAULT_SONNET_MODEL`,`ANTHROPIC_DEFAULT_HAIKU_MODEL`];function o6(e){let t=e?.models,n={};if(!t||typeof t!=`object`)return n;for(let e of a6){let r=t[e];typeof r==`string`&&r.trim()&&(n[e]=r.trim())}return n}var s6=e=>a6.map(t=>e[t]??``).join(`
|
|
73
|
-
`),c6=[`sonnet`,`opus`,`haiku`];function l6(e){let t=e?.roleMap,n={};if(!t||typeof t!=`object`)return n;for(let e of c6){let r=t[e];typeof r==`string`&&r.trim()&&(n[e]=r.trim())}return n}var u6=e=>c6.map(t=>e[t]??``).join(`
|
|
74
|
-
`);function d6(){let{t:e}=K(),t=Ah(),{toast:n}=pP(),r=Ph(),i=K_(),a=iv(),o=(0,p.useMemo)(()=>new Map((i.data??[]).map(e=>[e.kind,e])),[i.data]),s=o3.includes(r.kind)?r.kind:`codex`,c=o.get(s);return(0,p.useEffect)(()=>a.mutate(!1),[]),(0,m.jsx)(i6,{title:e(`nav.clients`),subtitle:e(`clients.subtitle`),actions:(0,m.jsx)(X,{icon:(0,m.jsx)(BS,{className:`size-3.5`}),loading:a.isPending,onClick:()=>a.mutate(!0,{onSuccess:t=>{let r=t.filter(e=>e.install?.updateAvailable&&e.install.blocker!==`shadowed`).length;n(r>0?e(`clients.updatesFound`,{count:r}):e(`clients.allUpToDate`),r>0?void 0:`success`)},onError:e=>n($(e),`error`)}),children:e(`clients.checkUpdates`)}),children:(0,m.jsx)(`div`,{className:`@container mx-auto max-w-[1200px]`,children:(0,m.jsxs)(`div`,{className:`flex flex-col gap-4 @3xl:flex-row @3xl:items-start @3xl:gap-5`,children:[(0,m.jsx)(kae,{clients:i.data,loading:i.isLoading,selected:s,onSelect:e=>t(`/clients/${e}`,{replace:!0})}),(0,m.jsxs)(`div`,{className:`mx-auto w-full max-w-[760px] min-w-0 flex-1`,children:[i.isLoading&&(0,m.jsx)(QT,{lines:4}),i.isError&&(0,m.jsx)(lE,{tone:`danger`,title:e(`common.error`),children:$(i.error)}),c&&(0,m.jsx)(Mae,{client:c})]})]})})})}var Dae=new Set([`opencode`,`pi`,`minimax-code`,`copilot-cli`,`vscode-copilot`,`crush`,`qwen-code`,`droid`,`kimi-code`,`zed`,`vscode-insiders`,`vscodium`,`omp`,`mimo-code`,`deepseek-harness`,`workbuddy`,`nextcowork`,`muse-code`]),Oae=[`installed`,`notInstalled`,`comingSoon`];function f6(e){return e.availability===`coming_soon`?`comingSoon`:e.detection.installed||e.enabled||e.install?.installed?`installed`:`notInstalled`}function p6(e){return e.install?.version??e.detection.version??null}function kae({clients:e,loading:t,selected:n,onSelect:r}){let{t:i}=K(),a=new Map((e??[]).map(e=>[e.kind,e])),o=Oae.map(e=>({group:e,items:o3.flatMap(t=>{let n=a.get(t);return n&&f6(n)===e?[n]:[]})})).filter(e=>e.items.length>0);return(0,m.jsxs)(`nav`,{"aria-label":i(`nav.clients`),className:`card shrink-0 p-1.5 @3xl:sticky @3xl:top-0 @3xl:w-[232px]`,children:[t&&(0,m.jsx)(QT,{lines:6,className:`p-2`}),(0,m.jsx)(`div`,{className:`flex gap-1 overflow-x-auto @3xl:flex-col @3xl:gap-0 @3xl:overflow-visible`,children:o.map(({group:e,items:t})=>(0,m.jsxs)(`div`,{className:`contents @3xl:block`,children:[(0,m.jsxs)(`h3`,{className:`hidden px-2.5 pt-2 pb-1 text-[11px] font-medium text-[var(--text-muted)] @3xl:block`,children:[i(`clients.group.${e}`),` · `,t.length]}),t.map(e=>(0,m.jsx)(Aae,{client:e,active:e.kind===n,onSelect:()=>r(e.kind)},e.kind))]},e))})]})}function Aae({client:e,active:t,onSelect:n}){let{t:r}=K(),i=f6(e)!==`installed`,a=p6(e),o=e.install?.blocker===`shadowed`,s=e.install?.updateAvailable&&!o?e.install.latestVersion:null;return(0,m.jsxs)(`button`,{type:`button`,"aria-label":a3[e.kind].name,"aria-current":t?`page`:void 0,onClick:n,className:Cv(`flex shrink-0 items-center gap-2.5 rounded-[var(--radius-control)] px-2.5 py-1.5 text-left transition-colors @3xl:w-full`,t?`bg-[var(--accent-subtle)]`:`hover:bg-[var(--surface-muted)]`),children:[(0,m.jsx)(`span`,{className:Cv(`inline-flex`,i&&!t&&`opacity-60`),children:(0,m.jsx)(p3,{kind:e.kind,size:24})}),(0,m.jsxs)(`span`,{className:`min-w-0 flex-1`,children:[(0,m.jsx)(`span`,{className:Cv(`block truncate text-[13px] whitespace-nowrap`,t&&`font-medium`),children:a3[e.kind].name}),a&&(0,m.jsxs)(`span`,{className:`hidden truncate text-[11px] text-[var(--text-secondary)] @3xl:block`,children:[a,s&&(0,m.jsxs)(`span`,{className:`text-[var(--warning)]`,children:[` → `,s]})]})]}),e.install?.busy&&(0,m.jsx)(m6,{}),s&&!e.install?.busy&&(0,m.jsx)(Q,{tone:`orange`,title:r(`clients.updateTo`,{version:s}),children:r(`clients.updateBadge`)}),o&&!e.install?.busy&&(0,m.jsx)(Q,{tone:`orange`,title:r(`clients.shadowed.title`,{version:e.install?.latestVersion??``}),children:r(`clients.shadowedBadge`)}),e.status===`drifted`?(0,m.jsx)(`span`,{title:r(`clients.drifted`),"aria-label":r(`clients.drifted`),className:`inline-flex`,children:(0,m.jsx)(JT,{tone:`orange`})}):e.enabled?(0,m.jsx)(Ax,{className:`size-3.5 shrink-0 text-[var(--success)]`,strokeWidth:2.5,"aria-label":r(`clients.enabled`)}):null]})}function m6(){return(0,m.jsx)(bS,{className:`size-3.5 shrink-0 animate-spin text-[var(--text-secondary)] motion-reduce:animate-none`,"aria-hidden":!0})}function jae(e,t){return e.availability===`coming_soon`?(0,m.jsx)(Q,{children:t(`clients.comingSoon`)}):e.status===`drifted`?(0,m.jsx)(Q,{tone:`orange`,children:t(`clients.drifted`)}):e.enabled?(0,m.jsx)(Q,{tone:`green`,children:t(`clients.enabled`)}):(0,m.jsx)(Q,{children:t(`clients.disabled`)})}function Mae({client:e}){let{t,locale:n}=K(),r=Ah(),{toast:i,confirm:a}=pP(),o=Xg(),s=Z_(),c=tv(),l=nv(),u=fv(),d=J_(e.kind,!!e.providerId),[f,h]=(0,p.useState)(e.selectedModel??null),[g,_]=(0,p.useState)(e.accountId??``),v=e.tokenId??`default`,[y,b]=(0,p.useState)(v),x=(u.data??[]).filter(e=>e.enabled||e.id===v).map(e=>({value:e.id,label:e.enabled?e.name:t(`clients.tokenDisabled`,{name:e.name}),disabled:!e.enabled})),[S,C]=(0,p.useState)(!1),[w,T]=(0,p.useState)(!1),[E,D]=(0,p.useState)(null),O=e.availability===`coming_soon`,k=a3[e.kind].name,A=(o.data??[]).filter(e=>e.enabled),j=e.detection.configPaths[0],M=A.find(t=>t.id===e.providerId),N=M?.authScheme===`oauth-subscription`,P=T_(M?.id,N),F=e.kind===`claude-desktop`,I=e.kind===`claude-code`,L=lv(I),R=I&&L.data?.mode===`direct`,ee=l6(e.extras),[te,ne]=(0,p.useState)(ee),re=c6.some(e=>te[e]),ie=u6(te)!==u6(ee),ae=o6(e.extras),[oe,se]=(0,p.useState)(ae),ce=(f??null)!==(e.selectedModel??null)||s6(oe)!==s6(ae),le=I?a6.filter(e=>e!==`ANTHROPIC_MODEL`):[],z=I?e.enabled?t(`clients.modelSlotsFooterEnabled`):t(`clients.modelSlotsFooter`):e.enabled?t(`clients.modelFooterEnabled`):t(`clients.modelFooter`),ue=F?{...e.extras,roleMap:te}:I?{...e.extras,models:oe}:void 0;(0,p.useEffect)(()=>h(e.selectedModel??null),[e.kind,e.selectedModel]),(0,p.useEffect)(()=>_(e.accountId??``),[e.kind,e.providerId,e.accountId]),(0,p.useEffect)(()=>b(v),[e.kind,v]),(0,p.useEffect)(()=>ne(l6(e.extras)),[e.kind,u6(ee)]),(0,p.useEffect)(()=>se(o6(e.extras)),[e.kind,s6(ae)]);let de=()=>{e.providerId&&s.mutate({kind:e.kind,providerId:e.providerId,accountId:g},{onSuccess:()=>i(t(`common.saved`),`success`),onError:e=>i($(e),`error`)})},fe=async()=>{await a({title:t(`clients.disableConfirm`,{name:k}),detail:t(`clients.disableDetail`),confirmLabel:t(`clients.disable`)})&&c.mutate(e.kind,{onSuccess:async n=>{if(n.drifted.length===0){i(t(`clients.disabledToast`,{name:k}),`success`);return}await a({title:t(`clients.driftTitle`),detail:t(`clients.driftDetail`,{keys:n.drifted.join(`, `)}),confirmLabel:t(`clients.forceRestore`),destructive:!0})&&l.mutate(e.kind,{onSuccess:()=>i(t(`clients.disabledToast`,{name:k}),`success`),onError:e=>i($(e),`error`)})},onError:e=>i($(e),`error`)})},pe=async()=>{j&&(Av.canOpenPaths?await Av.openPath(jv(j)):await Av.copy(j)&&i(t(`common.copied`)))};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(VT,{children:[(0,m.jsxs)(Z,{icon:(0,m.jsx)(p3,{kind:e.kind,size:36}),label:(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`text-[15px] font-medium`,children:k}),R?(0,m.jsx)(Q,{children:t(`clients.claudeDirect.direct`)}):jae(e,t)]}),detail:O?e.availabilityReason??t(`clients.comingSoonDetail`):[f6(e)===`installed`?t(`clients.detected`,{version:p6(e)??``}):t(`clients.notDetected`),R?null:j].filter(Boolean).join(` · `),className:`py-3`,children:[!O&&(0,m.jsx)(Fae,{client:e,onOpen:D}),R?(0,m.jsx)(X,{variant:`primary`,onClick:()=>document.getElementById(_6)?.scrollIntoView({behavior:`smooth`,block:`start`}),children:t(`clients.claudeDirect.configure`)}):e.enabled?(0,m.jsx)(X,{onClick:()=>void fe(),loading:c.isPending,children:t(`clients.disableRestore`)}):(0,m.jsx)(X,{variant:`primary`,disabled:O||!e.providerId||F&&!re,onClick:()=>C(!0),title:e.providerId?F&&!re?t(`clients.roleMapRequired`):void 0:t(`clients.pickProviderFirst`),children:t(`clients.enable`)})]}),!R&&e.appliedAt&&(0,m.jsx)(Z,{label:(0,m.jsx)(`span`,{className:`text-[12px] text-[var(--text-secondary)]`,children:t(`clients.appliedAt`,{time:CI(e.appliedAt,n)})})})]}),!R&&e.warnings.length>0&&(0,m.jsx)(`div`,{className:`mb-5 flex flex-col gap-2`,children:e.warnings.map((e,t)=>(0,m.jsx)(lE,{tone:`warning`,title:e},t))}),!R&&(0,m.jsx)(Nae,{client:e,providers:o.data??[],loading:o.isLoading,soon:O}),!R&&N&&(0,m.jsx)(VT,{title:t(`clients.accountTitle`),footer:t(`clients.accountFooter`),children:P.isLoading?(0,m.jsx)(`div`,{className:`p-4`,children:(0,m.jsx)(QT,{lines:2})}):(0,m.jsxs)(Z,{label:t(`clients.account`),children:[(0,m.jsx)(uP,{className:`max-w-[300px]`,ariaLabel:t(`clients.account`),value:g,onChange:_,options:[{value:``,label:t(`clients.accountDefault`)},...(P.data??[]).map(e=>({value:e.id,label:(e.displayName||e.id)+(e.status===`active`?``:` · ${t(`providers.subscription.status.${e.status}`)}`)}))]}),g!==(e.accountId??``)&&(0,m.jsx)(X,{size:`sm`,variant:`primary`,loading:s.isPending,onClick:de,children:t(`common.apply`)})]})}),!O&&!R&&(0,m.jsxs)(VT,{title:t(`clients.tokenTitle`),footer:e.enabled?t(`clients.tokenFooterEnabled`):t(`clients.tokenFooter`),children:[(0,m.jsxs)(Z,{label:t(`clients.token`),children:[(0,m.jsx)(uP,{className:`max-w-[300px]`,ariaLabel:t(`clients.token`),value:y,onChange:b,options:x}),e.enabled&&y!==v&&(0,m.jsx)(X,{size:`sm`,variant:`primary`,onClick:()=>C(!0),children:t(`common.apply`)})]}),(0,m.jsx)(Z,{icon:(0,m.jsx)(mS,{className:`size-4 text-[var(--text-secondary)]`}),label:t(`clients.manageTokens`),onClick:()=>r(`/tokens`)})]}),!O&&!R&&e.providerId&&F&&(0,m.jsxs)(VT,{title:t(`clients.roleMapTitle`),footer:e.enabled?t(`clients.roleMapFooterEnabled`):t(`clients.roleMapFooter`),children:[c6.map(e=>(0,m.jsx)(Z,{label:t(`clients.role.${e}`),children:(0,m.jsx)(uP,{ariaLabel:t(`clients.role.${e}`),value:te[e]??``,onChange:t=>ne(n=>({...n,[e]:t||void 0})),placeholder:t(`clients.modelPlaceholder`),options:[{value:``,label:t(`clients.modelUnset`)},...(d.data??[]).map(e=>({value:e,label:e}))],className:`max-w-[300px]`})},e)),e.enabled&&ie&&(0,m.jsx)(Z,{label:re?``:(0,m.jsx)(`span`,{className:`text-[12px] text-[var(--warning)]`,children:t(`clients.roleMapRequired`)}),children:(0,m.jsx)(X,{size:`sm`,variant:`primary`,disabled:!re,onClick:()=>C(!0),children:t(`common.apply`)})})]}),!O&&!R&&e.providerId&&!F&&(0,m.jsxs)(VT,{title:t(`clients.modelTitle`),footer:z,children:[(0,m.jsx)(Z,{label:t(`clients.defaultModel`),children:(0,m.jsx)(uP,{value:f??``,onChange:e=>h(e||null),placeholder:t(`clients.modelPlaceholder`),options:[{value:``,label:t(`clients.modelUnset`)},...(d.data??[]).map(e=>({value:e,label:e}))],className:`max-w-[300px]`})}),le.map(e=>(0,m.jsx)(Z,{label:t(`clients.modelSlot.${e}`),children:(0,m.jsx)(uP,{ariaLabel:t(`clients.modelSlot.${e}`),value:oe[e]??``,onChange:t=>se(n=>({...n,[e]:t||void 0})),placeholder:t(`clients.modelPlaceholder`),options:[{value:``,label:t(`clients.modelUnset`)},...(d.data??[]).map(e=>({value:e,label:e}))],className:`max-w-[300px]`})},e)),e.enabled&&(I?ce:(f??null)!==(e.selectedModel??null))&&(0,m.jsx)(Z,{label:``,children:(0,m.jsx)(X,{size:`sm`,variant:`primary`,onClick:()=>C(!0),children:t(`common.apply`)})})]}),!O&&e.install&&(0,m.jsx)(Iae,{client:e,onShowLog:()=>D(`log`)}),I&&(0,m.jsx)(`div`,{id:_6,children:(0,m.jsx)(kie,{enabled:I})}),!O&&!R&&(0,m.jsxs)(VT,{title:t(`clients.maintenance`),children:[j&&(0,m.jsx)(Z,{icon:Av.canOpenPaths?(0,m.jsx)(aS,{className:`size-4 text-[var(--text-secondary)]`}):(0,m.jsx)(Jx,{className:`size-4 text-[var(--text-secondary)]`}),label:Av.canOpenPaths?t(`clients.openConfigDir`):t(`clients.copyConfigPath`),detail:j,onClick:()=>void pe()}),(0,m.jsx)(Z,{icon:(0,m.jsx)(px,{className:`size-4 text-[var(--text-secondary)]`}),label:t(`clients.backups`),detail:t(`clients.backupsDetail`),onClick:()=>T(!0)})]}),(0,m.jsx)(Rae,{open:S,onOpenChange:C,client:e,model:f,extras:ue,tokenId:y}),(0,m.jsx)(Vae,{open:w,onOpenChange:T,client:e}),(0,m.jsx)(Lae,{mode:E,onClose:()=>D(null),client:e})]})}function h6(e,t){return[e.priceKey??e.templateId,t(`providers.modelCount`,{count:e.modelCount}),e.priceMultiplier===1?null:`×${e.priceMultiplier}`].filter(Boolean).join(` · `)}function Nae({client:e,providers:t,loading:n,soon:r}){let{t:i}=K(),{toast:a}=pP(),o=Q_(),s=(0,p.useMemo)(()=>e.bindings??(e.providerId?[{providerId:e.providerId,accountId:e.accountId}]:[]),[e.bindings,e.providerId,e.accountId]),[c,l]=(0,p.useState)(s);(0,p.useEffect)(()=>l(s),[s]);let u=(0,p.useMemo)(()=>new Map(t.map(e=>[e.id,e])),[t]),d=c.flatMap(e=>{let t=u.get(e.providerId);return t?[{binding:e,provider:t}]:[]}),f=t.filter(e=>e.enabled&&!c.some(t=>t.providerId===e.id)),h=qne(oF(LF,{activationConstraint:{distance:4}}),oF(NF,{coordinateGetter:vie})),g=r||o.isPending,_=(t,n)=>{let r=c;l(t),o.mutate({kind:e.kind,bindings:t},{onSuccess:()=>a(Dae.has(e.kind)&&e.enabled?i(`clients.providersModelsSynced`,{client:a3[e.kind].name}):n),onError:e=>{l(r),a($(e),`error`)}})},v=({active:e,over:t})=>{if(!t||e.id===t.id)return;let n=c.findIndex(t=>t.providerId===e.id),r=c.findIndex(e=>e.providerId===t.id);n<0||r<0||_(aI(c,n,r),i(`clients.providerOrderSaved`))},y=e=>_([...c,{providerId:e.id}],i(`clients.providerAdded`,{provider:e.name})),b=e=>_(c.filter(t=>t.providerId!==e.id),i(`clients.providerRemoved`,{provider:e.name})),x=f.map(e=>(0,m.jsx)(Z,{icon:(0,m.jsx)(_3,{name:e.name,icon:e.icon,colorKey:e.templateId,size:24}),label:e.name,detail:h6(e,i),onClick:g?void 0:()=>y(e),children:!r&&(0,m.jsx)(IS,{className:`size-4 text-[var(--text-secondary)]`,"aria-label":i(`common.add`)})},e.id));return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(VT,{title:i(`clients.providerTitle`),footer:i(`clients.providerFooter`),children:[n&&(0,m.jsx)(`div`,{className:`p-4`,children:(0,m.jsx)(QT,{lines:2})}),!n&&d.length===0&&f.length===0&&(0,m.jsx)($T,{title:i(`clients.noProviders`),detail:i(`clients.noProvidersDetail`),action:(0,m.jsx)(Lg,{to:`/providers?new=1`,children:(0,m.jsx)(X,{variant:`primary`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),children:i(`providers.add`)})})}),d.length>0&&(0,m.jsx)(Yre,{sensors:h,collisionDetection:Yne,onDragEnd:v,children:(0,m.jsx)(cie,{items:d.map(e=>e.provider.id),strategy:oie,children:d.map(({provider:e},t)=>(0,m.jsx)(Pae,{provider:e,primary:t===0,disabled:g,onRemove:d.length>1?()=>b(e):void 0},e.id))})}),!n&&d.length===0&&x]}),d.length>0&&f.length>0&&(0,m.jsx)(VT,{title:i(`clients.moreProvidersTitle`),children:x})]})}function Pae({provider:e,primary:t,disabled:n,onRemove:r}){let{t:i}=K(),{attributes:a,listeners:o,setNodeRef:s,setActivatorNodeRef:c,transform:l,transition:u,isDragging:d}=hie({id:e.id,disabled:n});return(0,m.jsx)(`div`,{ref:s,style:{transform:tF.Transform.toString(l),transition:u},className:Cv(d&&`relative z-10 bg-[var(--surface)] shadow-lg`),children:(0,m.jsx)(Z,{icon:(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`button`,{ref:c,type:`button`,"aria-label":i(`clients.dragToReorder`,{provider:e.name}),title:i(`clients.dragToReorder`,{provider:e.name}),className:`-ml-1 inline-flex cursor-grab touch-none text-[var(--text-muted)] hover:text-[var(--text-secondary)] active:cursor-grabbing disabled:cursor-default disabled:opacity-50`,...a,...o,children:(0,m.jsx)(Ste,{className:`size-4`})}),(0,m.jsx)(_3,{name:e.name,icon:e.icon,colorKey:e.templateId,size:24})]}),label:(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`truncate`,children:e.name}),t&&(0,m.jsx)(Q,{tone:`accent`,children:i(`clients.primaryProvider`)}),!e.enabled&&(0,m.jsx)(Q,{tone:`orange`,children:i(`clients.providerDisabledBadge`)})]}),detail:h6(e,i),children:r&&(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(vC,{className:`size-3.5`}),"aria-label":i(`clients.removeProvider`,{provider:e.name}),title:i(`clients.removeProvider`,{provider:e.name}),disabled:n,onClick:r})})})}function Fae({client:e,onOpen:t}){let{t:n}=K(),r=e.install;if(!r)return null;let i=r.needsAdmin?(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-1 text-[11px] text-[var(--warning)]`,children:[(0,m.jsx)(QS,{className:`size-3`,"aria-hidden":!0}),n(`clients.admin.badge`)]}):null,a=r.needsAdmin?n(r.adminAvailable?`clients.admin.tip`:`clients.admin.tipManual`):void 0;return r.busy?(0,m.jsx)(X,{icon:(0,m.jsx)(m6,{}),onClick:()=>t(`log`),children:n(`clients.installRunning`)}):r.updateAvailable&&r.updateCommand&&r.latestVersion?(0,m.jsxs)(X,{icon:(0,m.jsx)(hte,{className:`size-3.5`}),title:a,onClick:()=>t(`update`),children:[n(`clients.updateTo`,{version:r.latestVersion}),i]}):r.updateAvailable&&r.blocker===`shadowed`?(0,m.jsx)(X,{icon:(0,m.jsx)(QS,{className:`size-3.5`}),onClick:()=>document.getElementById(g6)?.scrollIntoView({behavior:`smooth`,block:`center`}),children:n(`clients.shadowedBadge`)}):!r.installed&&r.installCommand?(0,m.jsxs)(X,{icon:(0,m.jsx)(Xx,{className:`size-3.5`}),title:a,onClick:()=>t(`install`),children:[n(`clients.install`),i]}):!r.installed&&r.method===`manual`?(0,m.jsx)(X,{icon:(0,m.jsx)(eS,{className:`size-3.5`}),onClick:()=>window.open(r.homepageUrl,`_blank`,`noreferrer`),children:n(`clients.download`)}):null}var g6=`client-shadowed-alert`,_6=`claude-direct-panel`;function Iae({client:e,onShowLog:t}){let{t:n,locale:r}=K(),i=e.install,a=av(e.kind),o=(e,t=!1)=>(0,m.jsx)(`span`,{className:Cv(`text-[13px] tabular-nums selectable`,t&&`text-[var(--text-secondary)]`),children:e}),s=i.blocker===`external-install`?n(`clients.blocker.external-install`,{path:i.executable??``}):i.blocker?n(`clients.blocker.${i.blocker}`):void 0,c=i.otherCopies??[],l=c.find(e=>e.newer);return(0,m.jsxs)(m.Fragment,{children:[l&&(0,m.jsx)(`div`,{id:g6,className:`mb-3`,children:(0,m.jsx)(lE,{tone:`warning`,title:n(`clients.shadowed.title`,{version:l.version}),children:n(`clients.shadowed.detail`,{path:i.executable??``,version:i.version??``,other:l.path,dir:jv(l.path)})})}),!l&&i.notOnPath&&i.executable&&(0,m.jsx)(`div`,{className:`mb-3`,children:(0,m.jsx)(lE,{tone:`warning`,title:n(`clients.notOnPath.title`),children:n(`clients.notOnPath.detail`,{dir:jv(i.executable)})})}),(0,m.jsxs)(VT,{title:n(`clients.versionTitle`),footer:s,children:[(0,m.jsx)(Z,{label:n(`clients.currentVersion`),detail:i.installed?i.executable:void 0,children:i.installed?o(i.version??n(`clients.versionUnknown`),!i.version):o(n(`clients.notInstalled`),!0)}),c.map(e=>(0,m.jsxs)(Z,{label:n(`clients.otherCopy`),detail:e.path,children:[e.newer&&(0,m.jsx)(Q,{tone:`orange`,children:n(`clients.otherCopyNewer`)}),o(e.version,!e.newer)]},e.path)),(i.method===`npm`||i.method===`script`)&&(0,m.jsxs)(Z,{label:n(`clients.latestVersion`),detail:i.latestError??(i.latestCheckedAt?n(`clients.checkedAt`,{time:CI(i.latestCheckedAt,r)}):void 0),children:[i.updateAvailable&&(0,m.jsx)(Q,{tone:`orange`,children:n(`clients.updateBadge`)}),o(i.latestVersion??n(`clients.latestUnknown`),!i.latestVersion)]}),(0,m.jsx)(Z,{label:n(`clients.installMethod`),detail:n(`clients.method.${i.method}`,{package:i.package??``}),children:(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(eS,{className:`size-3`}),onClick:()=>window.open(i.homepageUrl,`_blank`,`noreferrer`),children:n(`clients.homepage`)})}),a.data&&(0,m.jsx)(Z,{icon:(0,m.jsx)(WS,{className:`size-4 text-[var(--text-secondary)]`}),label:n(`clients.installLog`),detail:`${a.data.command} · ${n(`clients.job.${a.data.state}`)}`,onClick:t})]})]})}function Lae({mode:e,onClose:t,client:n}){let{t:r}=K(),{toast:i}=pP(),a=g(),o=e!==null,s=av(n.kind,o||!!n.install?.busy),c=ov(),l=sv(),[u,d]=(0,p.useState)(!1),f=(0,p.useRef)(null),h=(0,p.useRef)(void 0),_=a3[n.kind].name,v=n.install,y=e===`install`||e===`update`?e:null,b=y===`install`?v?.installCommand:y===`update`?v?.updateCommand:null,x=s.data,S=y!==null&&!u&&x?.state!==`running`,C=!!v?.needsAdmin,w=!!v?.adminAvailable,T=x?.state===`failed`&&x.hint===`permission-denied`&&!x.elevated&&w;(0,p.useEffect)(()=>{o&&d(!1)},[o,e]),(0,p.useEffect)(()=>{let e=x?.state;h.current===`running`&&e&&e!==`running`&&(a.invalidateQueries({queryKey:G.clients}),e===`succeeded`&&x.hint?i(r(`clients.notEffectiveToast`,{name:_})):e===`succeeded`&&i(r(x.action===`install`?`clients.installedToast`:`clients.updatedToast`,{name:_}),`success`)),h.current=e},[x?.state,x?.action,x?.hint,_,a,r,i]),(0,p.useEffect)(()=>{let e=f.current;e&&(e.scrollTop=e.scrollHeight)},[x?.log.length]);let E=(e,t)=>c.mutate({kind:n.kind,action:e,elevated:t},{onSuccess:()=>d(!0),onError:e=>i($(e),`error`)}),D=async e=>{await Av.copy(e)&&i(r(`common.copied`))},O=r((y??x?.action)===`update`?`clients.updateTitle`:`clients.installTitle`,{name:_}),k={running:`info`,succeeded:`success`,failed:`danger`,cancelled:`warning`},A=`rounded-[var(--radius-control)] border border-[var(--border)] bg-[var(--surface-muted)] px-3 py-2 font-mono text-[12px] break-all whitespace-pre-wrap selectable`,j=v?.adminFixCommand?(0,m.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[(0,m.jsx)(`p`,{className:`text-[11px] text-[var(--text-secondary)]`,children:r(`clients.admin.fixTip`)}),(0,m.jsxs)(`div`,{className:`flex items-start gap-2`,children:[(0,m.jsx)(`pre`,{className:Cv(A,`min-w-0 flex-1`),children:v.adminFixCommand}),(0,m.jsx)(X,{size:`sm`,icon:(0,m.jsx)(Jx,{className:`size-3`}),"aria-label":r(`common.copy`),onClick:()=>void D(v.adminFixCommand)})]})]}):null;return(0,m.jsx)(iP,{open:o,onOpenChange:e=>!e&&t(),width:620,title:O,description:S?r(`clients.installRunDetail`):void 0,footer:S?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:t,children:r(`common.cancel`)}),C&&!w?(0,m.jsx)(X,{variant:`primary`,icon:(0,m.jsx)(Jx,{className:`size-3.5`}),disabled:!b,onClick:()=>void D(`sudo ${b}`),children:r(`clients.admin.copyCommand`)}):(0,m.jsx)(X,{variant:`primary`,icon:C?(0,m.jsx)(QS,{className:`size-3.5`}):void 0,disabled:!b,loading:c.isPending,onClick:()=>y&&E(y,C),children:r(C?`clients.admin.start`:`clients.installStart`)})]}):x?.state===`running`?(0,m.jsxs)(m.Fragment,{children:[!x.elevated&&(0,m.jsx)(X,{variant:`destructive`,loading:l.isPending,onClick:()=>l.mutate(n.kind,{onError:e=>i($(e),`error`)}),children:r(`clients.installStop`)}),(0,m.jsx)(X,{onClick:t,children:r(`common.close`)})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:t,children:r(`common.done`)}),T&&(0,m.jsx)(X,{variant:`primary`,icon:(0,m.jsx)(QS,{className:`size-3.5`}),loading:c.isPending,onClick:()=>E(x.action,!0),children:r(`clients.admin.retry`)})]}),children:S?(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[C&&(0,m.jsx)(lE,{tone:`warning`,title:r(`clients.admin.title`),children:r(w?`clients.admin.prompt`:`clients.admin.manual`)}),b?(0,m.jsx)(`pre`,{className:A,children:C?`sudo ${b}`:b}):(0,m.jsx)(lE,{tone:`warning`,title:r(`clients.installUnavailable`)}),v?.method===`npm`&&(0,m.jsx)(`p`,{className:`text-[11px] text-[var(--text-muted)]`,children:r(`clients.installNpmNote`)}),C&&j]}):x?(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,m.jsx)(lE,{tone:x.state===`succeeded`&&x.hint?`warning`:k[x.state],title:r(x.state===`succeeded`&&x.hint?`clients.job.notEffective`:`clients.job.${x.state}`),children:x.state===`running`&&x.elevated?r(`clients.admin.running`):x.hint?r(`clients.hint.${x.hint}`)+(T?r(`clients.admin.retryHint`):``):void 0}),(0,m.jsx)(`pre`,{ref:f,className:`scroll max-h-[340px] min-h-[160px] rounded-[var(--radius-control)] border border-[var(--border)] bg-[var(--surface-muted)] px-3 py-2 font-mono text-[11px] leading-relaxed break-all whitespace-pre-wrap selectable`,children:x.log.join(`
|
|
75
|
-
`)}),x.hint===`permission-denied`&&j]}):s.isLoading?(0,m.jsx)(QT,{lines:4}):(0,m.jsx)($T,{icon:(0,m.jsx)(WS,{className:`size-6`}),title:r(`clients.noInstallLog`)})})}function Rae({open:e,onOpenChange:t,client:n,model:r,extras:i,tokenId:a}){let{t:o}=K(),{toast:s}=pP(),c=$_(),l=ev(),u=a3[n.kind].name,d=i?{providerId:n.providerId,model:r,extras:i,tokenId:a}:{providerId:n.providerId,model:r,tokenId:a};return(0,p.useEffect)(()=>{e&&c.mutate({kind:n.kind,req:d})},[e]),(0,m.jsxs)(iP,{open:e,onOpenChange:t,width:620,title:o(`clients.enableTitle`,{name:u}),description:o(`clients.enableDetail`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:()=>t(!1),children:o(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!c.data,loading:l.isPending,onClick:()=>l.mutate({kind:n.kind,req:d},{onSuccess:e=>{t(!1),s(e.requiresRestart?o(`clients.enabledRestart`,{name:u}):o(`clients.enabledToast`,{name:u}),`success`)},onError:e=>s($(e),`error`)}),children:n.enabled?o(`common.apply`):o(`clients.enable`)})]}),children:[c.isPending&&(0,m.jsx)(QT,{lines:4}),c.isError&&(0,m.jsx)(lE,{tone:`danger`,title:o(`common.error`),children:$(c.error)}),c.data&&(0,m.jsx)(zae,{preview:c.data})]})}function zae({preview:e}){let{t}=K();return(0,m.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[e.warnings.map((e,t)=>(0,m.jsx)(lE,{tone:`warning`,title:e},t)),e.changes.length===0&&(0,m.jsx)(lE,{tone:`info`,title:t(`clients.noChanges`)}),e.diffs.map(e=>(0,m.jsxs)(`div`,{children:[(0,m.jsx)(`div`,{className:`mb-2 font-mono text-[11px] text-[var(--text-secondary)]`,children:e.file}),(0,m.jsx)(Bae,{diff:e.unifiedDiff})]},e.file))]})}function Bae({diff:e}){return(0,m.jsx)(`pre`,{className:`scroll max-h-[300px] rounded-[var(--radius-control)] border border-[var(--border)] bg-[var(--surface-muted)] py-2 font-mono text-[11px] leading-relaxed selectable`,children:e.split(`
|
|
76
|
-
`).map((e,t)=>(0,m.jsx)(`div`,{className:Cv(`px-3 whitespace-pre-wrap break-all`,e.startsWith(`+`)&&!e.startsWith(`+++`)&&`bg-[color-mix(in_oklab,var(--success)_12%,transparent)] text-[var(--success)]`,e.startsWith(`-`)&&!e.startsWith(`---`)&&`bg-[color-mix(in_oklab,var(--danger)_10%,transparent)] text-[var(--danger)]`,e.startsWith(`@@`)&&`text-[var(--text-muted)]`),children:e||` `},t))})}function Vae({open:e,onOpenChange:t,client:n}){let{t:r,locale:i}=K(),{toast:a,confirm:o}=pP(),s=Y_(n.kind,e),c=rv();return(0,m.jsxs)(iP,{open:e,onOpenChange:t,width:520,title:r(`clients.backups`),description:r(`clients.backupsDetail`),footer:(0,m.jsx)(X,{onClick:()=>t(!1),children:r(`common.done`)}),children:[s.isLoading&&(0,m.jsx)(QT,{lines:3}),s.isError&&(0,m.jsx)(lE,{tone:`danger`,title:r(`common.error`),children:$(s.error)}),s.data?.length===0&&(0,m.jsx)($T,{icon:(0,m.jsx)(px,{className:`size-6`}),title:r(`clients.noBackups`)}),(0,m.jsx)(`div`,{className:`card divide-y divide-[var(--border)]`,children:s.data?.map(e=>(0,m.jsx)(Z,{label:(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[CI(e.createdAt,i),e.firstWrite&&(0,m.jsx)(Q,{tone:`accent`,children:r(`clients.firstWrite`)})]}),detail:e.files.join(`, `),children:(0,m.jsx)(X,{size:`sm`,icon:(0,m.jsx)(HS,{className:`size-3`}),loading:c.isPending&&c.variables?.id===e.id,onClick:async()=>{await o({title:r(`clients.restoreConfirm`),detail:e.files.join(`
|
|
77
|
-
`),destructive:!0,confirmLabel:r(`clients.restore`)})&&c.mutate({kind:n.kind,id:e.id},{onSuccess:()=>a(r(`clients.restored`),`success`),onError:e=>a($(e),`error`)})},children:r(`clients.restore`)})},e.id))})]})}var v6={field:`_field_1xljd_1`,shell:`_shell_1xljd_4`,input:`_input_1xljd_7`,"resolve-shown":`_resolve-shown_1xljd_1`,"resolve-hidden":`_resolve-hidden_1xljd_1`,messageSlot:`_messageSlot_1xljd_20`,hint:`_hint_1xljd_21`,words:`_words_1xljd_23`,word:`_word_1xljd_23`,srOnly:`_srOnly_1xljd_25`};function Hae({slashed:e}){let t=Zf(),n=`eye-${(0,p.useId)().replace(/[^a-zA-Z0-9_-]/g,``)}`,r={pathLength:+!!e,opacity:+!!e},i=t?{duration:0}:{pathLength:{duration:Y.duration.standard,ease:[...Y.ease.standard]},opacity:{duration:Y.duration.instant}};return(0,m.jsxs)(`svg`,{width:18,height:18,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:1.75,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`,children:[(0,m.jsxs)(`mask`,{id:n,maskUnits:`userSpaceOnUse`,x:`0`,y:`0`,width:`24`,height:`24`,children:[(0,m.jsx)(`rect`,{width:`24`,height:`24`,fill:`white`,stroke:`none`}),(0,m.jsx)(H.path,{d:`M2 2l20 20`,stroke:`black`,strokeWidth:5,initial:!1,animate:r,transition:i})]}),(0,m.jsxs)(`g`,{mask:`url(#${n})`,children:[(0,m.jsx)(`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`}),(0,m.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3`})]}),(0,m.jsx)(H.path,{d:`M2 2l20 20`,initial:!1,animate:r,transition:i})]})}function Uae({text:e}){let t=Zf(),n=e.split(` `);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:v6.srOnly,children:e}),(0,m.jsx)(`span`,{className:v6.words,"aria-hidden":`true`,children:(0,m.jsx)(V,{initial:!1,mode:`popLayout`,children:n.map((e,r)=>(0,m.jsx)(H.span,{className:v6.word,initial:t?{opacity:0}:{opacity:0,y:`0.35em`,filter:`blur(${Y.blur.soft}px)`},animate:{opacity:1,y:0,filter:`blur(0px)`},exit:t?{opacity:0,transition:{duration:0}}:{opacity:0,y:`-0.35em`,filter:`blur(${Y.blur.subtle}px)`,transition:{duration:Y.duration.exit,ease:[...Y.ease.exit]}},transition:t?{duration:Y.duration.instant}:{duration:Y.duration.standard,ease:[...Y.ease.enter]},children:r<n.length-1?`${e} `:e},`${r}:${e}`))})})]})}function Wae({id:e,text:t,className:n,alert:r}){return(0,m.jsx)(V,{initial:!1,children:t?(0,m.jsx)(Gae,{id:e,text:t,className:n,alert:r},`message`):null})}function Gae({id:e,text:t,className:n,alert:r}){let i=Zf(),a=(0,p.useRef)(null),[o,s]=(0,p.useState)(`auto`);return(0,p.useEffect)(()=>{let e=a.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(([t])=>s(t.borderBoxSize?.[0]?.blockSize??e.offsetHeight));return t.observe(e),()=>t.disconnect()},[]),(0,m.jsx)(H.span,{className:v6.messageSlot,initial:{height:0,opacity:0},animate:{height:o,opacity:1},exit:{height:0,opacity:0,transition:i?{duration:0}:{height:Y.spring.smooth,opacity:{duration:Y.duration.instant}}},transition:i?{duration:0}:{height:Y.spring.smooth,opacity:{duration:Y.duration.fast}},children:(0,m.jsx)(H.span,{ref:a,id:e,className:n,role:r?`alert`:void 0,initial:!i&&{y:`0.35em`,filter:`blur(${Y.blur.soft}px)`},animate:{y:0,filter:`blur(0px)`},transition:{duration:i?0:Y.duration.standard,ease:[...Y.ease.enter]},children:(0,m.jsx)(Uae,{text:t})})})}var y6=(0,p.forwardRef)(function({label:e,description:t,id:n,className:r,...i},a){let o=(0,p.useId)(),s=n??o,[c,l]=(0,p.useState)(!1),[u,d]=(0,p.useState)(!1),f=t?`${s}-description`:void 0;return(0,m.jsxs)(`div`,{className:v6.field,children:[(0,m.jsx)(`label`,{htmlFor:s,children:e}),(0,m.jsxs)(`div`,{className:v6.shell,children:[(0,m.jsx)(`input`,{...i,ref:a,id:s,type:c?`text`:`password`,"data-reveal":u?c?`shown`:`hidden`:void 0,"aria-describedby":[i[`aria-describedby`],f].filter(Boolean).join(` `)||void 0,className:[v6.input,r].filter(Boolean).join(` `)}),(0,m.jsx)(`button`,{type:`button`,onClick:()=>{l(e=>!e),d(!0)},"aria-label":c?`Hide password`:`Show password`,"aria-pressed":c,children:(0,m.jsx)(Hae,{slashed:c})})]}),(0,m.jsx)(Wae,{id:f,text:t,className:v6.hint})]})});function Kae(){let e=xv(),t=vee(),[n,r]=(0,p.useState)(``);return(0,m.jsx)(`div`,{className:`wallpaper flex h-full items-center justify-center p-4`,children:(0,m.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),n&&t.mutate(n)},className:`flex w-[360px] flex-col gap-5 rounded-[var(--radius-surface)] border border-[var(--border)] bg-[var(--surface-raised)] p-8 shadow-[var(--shadow-floating)]`,children:[(0,m.jsxs)(`div`,{className:`flex flex-col items-center gap-2 text-center`,children:[(0,m.jsx)(Mv,{className:`size-12 rounded-[14px]`}),(0,m.jsx)(`h1`,{className:`text-[17px] font-medium`,children:`Astra`}),(0,m.jsx)(`p`,{className:`text-[13px] text-[var(--text-secondary)]`,children:e(`login.subtitle`)})]}),(0,m.jsx)(y6,{label:e(`login.password`),autoFocus:!0,autoComplete:`current-password`,value:n,"aria-invalid":t.isError||void 0,onChange:e=>r(e.target.value)}),t.isError&&(0,m.jsx)(lE,{tone:`danger`,title:$(t.error)}),(0,m.jsx)(X,{type:`submit`,variant:`primary`,className:`w-full`,loading:t.isPending,disabled:!n,children:e(`login.submit`)})]})})}var qae=Object.defineProperty,b6=(e,t)=>qae(e,`name`,{value:t,configurable:!0}),x6=`Checkbox`,[Jae,Yae]=Pv(x6),[Xae,S6]=Jae(x6);function C6(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,h]=Ay({prop:n,defaultProp:i??!1,onChange:c,caller:x6}),[g,_]=p.useState(null),[v,y]=p.useState(null),b=p.useRef(!1),[x,S]=p.useReducer(e=>e+1,0),C=!g||!!o||!!g.closest(`form`),w={checked:f,disabled:a,setChecked:h,control:g,setControl:_,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:b,userInteractionCount:x,onUserInteraction:S,required:l,defaultChecked:!T6(i)&&i,isFormControl:C,bubbleInput:v,setBubbleInput:y};return(0,m.jsx)(Xae,{scope:t,...w,children:w6(d)?d(w):r})}b6(C6,`CheckboxProvider`);var Zae=`CheckboxTrigger`,Qae=p.forwardRef(b6(function({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i){let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,onUserInteraction:h,isFormControl:g,bubbleInput:_}=S6(Zae,e),v=zv(i,u),y=p.useRef(c);return p.useEffect(()=>{let e=a?.form;if(e){let t=b6(()=>d(y.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,m.jsx)(Ry.button,{type:`button`,role:`checkbox`,"aria-checked":T6(c)?`mixed`:c,"aria-required":l,"data-state":E6(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:v,onKeyDown:q(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:q(n,e=>{h(),d(e=>T6(e)?!0:!e),_&&g&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})},`CheckboxTrigger`)),$ae=p.forwardRef(b6(function(e,t){let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,m.jsx)(C6,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Qae,{...d,ref:t,__scopeCheckbox:n}),e&&(0,m.jsx)(toe,{__scopeCheckbox:n})]})})},`Checkbox`)),eoe=`CheckboxBubbleInput`,toe=p.forwardRef(b6(function({__scopeCheckbox:e,onClick:t,...n},r){let{control:i,hasConsumerStoppedPropagationRef:a,userInteractionCount:o,checked:s,defaultChecked:c,required:l,disabled:u,name:d,value:f,form:h,bubbleInput:g,setBubbleInput:_}=S6(eoe,e),v=zv(r,_),y=oT(i),b=p.useRef(!1),x=p.useRef(s),S=p.useRef(o);p.useEffect(()=>{let e=g;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=o!==S.current;S.current=o;let i=x.current!==s;x.current=s;let c=!(r&&a.current);if(i&&n){b.current=!r;let t=new Event(`click`,{bubbles:c});e.indeterminate=T6(s),n.call(e,!T6(s)&&s),e.dispatchEvent(t),b.current=!1}},[g,s,a,o]);let C=p.useRef(!T6(s)&&s);return(0,m.jsx)(Ry.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:c??C.current,required:l,disabled:u,name:d,value:f,form:h,...n,tabIndex:-1,ref:v,onClick:q(t,e=>{b.current&&e.stopPropagation()}),style:{...n.style,...y,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`CheckboxBubbleInput`));function w6(e){return typeof e==`function`}b6(w6,`isFunction`);function T6(e){return e===`indeterminate`}b6(T6,`isIndeterminate`);function E6(e){return T6(e)?`indeterminate`:e?`checked`:`unchecked`}b6(E6,`getState`);var D6={field:`_field_ovchx_1`,box:`_box_ovchx_2`,visual:`_visual_ovchx_4`,fill:`_fill_ovchx_5`,mark:`_mark_ovchx_6`,copy:`_copy_ovchx_12`},noe=`M4.25 9.25 L7.25 12.25 L13.75 5.75`,roe=`M4.75 9 L9 9 L13.25 9`,O6=(0,p.forwardRef)(function({label:e,description:t,id:n,className:r,checked:i,defaultChecked:a,onCheckedChange:o,...s},c){let l=(0,p.useId)(),u=n??l,d=Zf(),[f,h]=(0,p.useState)(a??!1),g=i??f,_=g!==!1,v=e=>{i===void 0&&h(e),o?.(e)},y={duration:_?Y.duration.instant:Y.duration.fast,ease:[...Y.ease.standard]};return(0,m.jsxs)(`div`,{className:D6.field,children:[(0,m.jsx)($ae,{...s,id:u,ref:c,checked:g,onCheckedChange:v,className:[D6.box,r].filter(Boolean).join(` `),"aria-describedby":t?`${u}-description`:void 0,"aria-label":s[`aria-label`]??(e?void 0:`Checkbox`),children:(0,m.jsxs)(`span`,{className:D6.visual,"aria-hidden":`true`,children:[(0,m.jsx)(H.span,{className:D6.fill,initial:!1,animate:{opacity:+!!_,scale:_?1:.6},transition:d?{duration:0}:{scale:Y.spring.snappy,opacity:y}}),(0,m.jsx)(`svg`,{className:D6.mark,viewBox:`0 0 18 18`,fill:`none`,focusable:`false`,children:(0,m.jsx)(H.path,{initial:!1,animate:{d:g===`indeterminate`?roe:noe,pathLength:+!!_,opacity:+!!_},transition:d?{duration:0}:{d:Y.spring.morph,pathLength:Y.spring.snappy,opacity:y},stroke:`currentColor`,strokeWidth:1.75,strokeLinecap:`round`,strokeLinejoin:`round`})})]})}),e||t?(0,m.jsxs)(`div`,{className:D6.copy,children:[e?(0,m.jsx)(`label`,{htmlFor:u,children:e}):null,t?(0,m.jsx)(`span`,{id:`${u}-description`,children:t}):null]}):null]})});O6.displayName=`Checkbox`;var k6={root:`_root_8729c_1`,surface:`_surface_8729c_16`,trigger:`_trigger_8729c_39`,face:`_face_8729c_41`,icon:`_icon_8729c_64`,prompt:`_prompt_8729c_68`,secondary:`_secondary_8729c_70`,primary:`_primary_8729c_71`,status:`_status_8729c_90`,statusText:`_statusText_8729c_95`,check:`_check_8729c_97`,checkDisc:`_checkDisc_8729c_98`,checkTick:`_checkTick_8729c_99`,spinner:`_spinner_8729c_100`,spin:`_spin_8729c_100`,srOnly:`_srOnly_8729c_103`},ioe=12,{blur:A6}=Y,j6=[...Y.ease.enter],M6=[...Y.ease.standard],N6=(e,t)=>{let n=2*Math.PI/(e*1.2);return{type:`spring`,stiffness:n*n,damping:2*(1-t)*n,mass:1}},aoe=N6(.44,.18),ooe=N6(.34,0),P6=N6(.36,.06),soe=()=>()=>{};function coe(){let e=(0,p.useSyncExternalStore)(soe,()=>!0,()=>!1);return!!Zf()&&e}var loe={hidden:e=>({opacity:0,x:e*ioe,filter:`blur(${A6.soft}px)`}),shown:{opacity:1,x:0,filter:`blur(0px)`,transition:{x:P6,opacity:{duration:.2,ease:j6,delay:.04},filter:{duration:.22,ease:j6,delay:.04}}},gone:e=>({opacity:0,x:e*-12*.6,filter:`blur(${A6.soft}px)`,transition:{x:P6,opacity:{duration:.12,ease:M6},filter:{duration:.12,ease:M6}}})},uoe={hidden:{opacity:0},shown:{opacity:1,transition:{duration:.14}},gone:{opacity:0,transition:{duration:.1}}};function doe({id:e,direction:t,reduced:n,onSize:r,children:i,labelledBy:a}){let o=(0,p.useRef)(null),s=Bu();return(0,p.useLayoutEffect)(()=>{let t=o.current;if(!t||!s)return;let n=()=>{let n=t.style.flex;t.style.flex=`none`;let i=t.offsetWidth;t.style.flex=n,r(e,i)};if(n(),typeof ResizeObserver>`u`)return;let i=new ResizeObserver(n);return i.observe(t),()=>i.disconnect()},[e,r,s]),(0,m.jsx)(H.div,{ref:o,className:k6.face,"data-face":e,custom:t,role:a?`group`:void 0,"aria-labelledby":a,variants:n?uoe:loe,initial:`hidden`,animate:`shown`,exit:`gone`,inert:!s||void 0,children:i})}function foe({reduced:e}){return(0,m.jsxs)(`svg`,{className:k6.check,viewBox:`0 0 18 18`,fill:`none`,"aria-hidden":`true`,children:[(0,m.jsx)(H.circle,{className:k6.checkDisc,cx:`9`,cy:`9`,r:`8`,style:{transformOrigin:`9px 9px`},initial:!e&&{scale:.4,opacity:0},animate:{scale:1,opacity:1},transition:{scale:N6(.34,.3),opacity:{duration:.12}}}),(0,m.jsx)(H.path,{className:k6.checkTick,d:`M5.6 9.3 7.8 11.4 12.4 6.7`,strokeWidth:`1.9`,strokeLinecap:`round`,strokeLinejoin:`round`,initial:!e&&{pathLength:0},animate:{pathLength:1},transition:{duration:.28,ease:j6,delay:.12}})]})}function F6({label:e,icon:t,prompt:n,confirmLabel:r=`Delete`,cancelLabel:i=`Cancel`,pendingLabel:a=`Deleting`,doneLabel:o=`Deleted`,errorLabel:s=`Couldn’t finish`,retryLabel:c=`Retry`,undoLabel:l=`Undo`,undoingLabel:u=`Restoring`,tone:d=`danger`,onConfirm:f,onUndo:h,onCancel:g,state:_,defaultState:v=`idle`,onStateChange:y,confirmTimeout:b=6e3,resultTimeout:x=5e3,cancelOnOutsidePress:S=!0,disabled:C=!1,className:w,ref:T}){let E=coe(),D=`${(0,p.useId)()}-prompt`,O=(0,p.useRef)(null);(0,p.useImperativeHandle)(T,()=>O.current,[]);let[k,A]=(0,p.useState)(v),j=_??k,[M,N]=(0,p.useState)(1),[P,F]=(0,p.useState)(`confirm`),[I,L]=(0,p.useState)(``),R=(0,p.useRef)({state:j,onStateChange:y,controlled:_!==void 0});(0,p.useLayoutEffect)(()=>{R.current={state:j,onStateChange:y,controlled:_!==void 0}});let ee=(0,p.useRef)(!1),te=(0,p.useRef)(0),ne=(0,p.useCallback)(e=>{if(e===R.current.state)return;let t=O.current;ee.current=!!t&&(t.contains(document.activeElement)||document.activeElement===document.body),N(e===`idle`?-1:1),R.current.controlled||A(e),R.current.state=e,R.current.onStateChange?.(e)},[]),re=(0,p.useCallback)(()=>{te.current++,ne(`idle`)},[ne]),ie=(0,p.useCallback)(async e=>{let t=e===`confirm`?f:h,n=++te.current;F(e);let r;try{r=t?.()}catch{ne(`error`),L(s);return}if(r&&typeof r.then==`function`){ne(`pending`),L(e===`confirm`?a:u);try{await r}catch{if(n!==te.current)return;ne(`error`),L(s);return}if(n!==te.current)return}if(e===`undo`){ne(`idle`),L(`Undone`);return}ne(`done`),L(h?`${o}. ${l} is available.`:o)},[o,s,ne,f,h,a,l,u]),ae=(0,p.useCallback)(()=>{g?.(),re(),L(`Cancelled`)},[g,re]),oe=(0,p.useRef)(()=>{});(0,p.useLayoutEffect)(()=>{oe.current=()=>{R.current.state===`confirming`?ae():re()}});let se=Gf(`auto`),ce=(0,p.useRef)(0),le=(0,p.useRef)(0),z=(0,p.useCallback)((e,t)=>{if(e!==R.current.state||Math.abs(t-ce.current)<.5)return;let n=ce.current;if(ce.current=t,!n||E){se.jump(`auto`);return}se.get()===`auto`&&se.jump(n);let r=++le.current;bp(se,t,t>n?aoe:ooe).then(()=>{r===le.current&&se.jump(`auto`)})},[E,se]),ue=Gf(1),de=(0,p.useRef)(null),fe=(0,p.useRef)({hover:!1,hidden:!1}),pe=j===`confirming`?b:j===`done`||j===`error`?x:0,me=(0,p.useCallback)(()=>{let e=de.current;e&&(fe.current.hover||fe.current.hidden?e.pause():e.play())},[]);(0,p.useEffect)(()=>{if(!pe)return;ue.jump(1);let e=bp(ue,0,{duration:pe/1e3,ease:`linear`});return de.current=e,e.then(()=>{de.current===e&&(de.current=null,oe.current())}),me(),()=>{de.current===e&&(de.current=null),e.stop()}},[ue,j,me,pe]),(0,p.useEffect)(()=>{let e=()=>{fe.current.hidden=document.hidden,me()};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[me]),(0,p.useEffect)(()=>{if(j!==`confirming`||!S)return;let e=e=>{O.current?.contains(e.target)||ae()};return document.addEventListener(`pointerdown`,e),()=>document.removeEventListener(`pointerdown`,e)},[ae,S,j]),(0,p.useLayoutEffect)(()=>{if(!ee.current)return;ee.current=!1;let e=O.current;e&&(e.querySelector(`[data-face="${j}"]`)?.querySelector(`[data-autofocus]:not(:disabled)`)??e).focus({preventScroll:!0})},[j]);let he=e=>{e.key===`Escape`&&(j===`confirming`?(e.preventDefault(),e.stopPropagation(),ae()):(j===`done`||j===`error`)&&(e.preventDefault(),e.stopPropagation(),re()))},ge=n??(0,m.jsxs)(m.Fragment,{children:[e,`?`]}),_e=(()=>{switch(j){case`confirming`:return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{id:D,className:k6.prompt,children:ge}),(0,m.jsx)(`button`,{type:`button`,className:k6.secondary,"data-autofocus":!0,onClick:ae,children:i}),(0,m.jsx)(`button`,{type:`button`,className:k6.primary,onClick:()=>void ie(`confirm`),children:r})]});case`pending`:return(0,m.jsxs)(`span`,{className:k6.status,children:[(0,m.jsx)(bS,{className:k6.spinner,size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,m.jsx)(`span`,{children:P===`undo`?u:a})]});case`done`:return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`span`,{className:k6.status,"data-tone":`success`,children:[(0,m.jsx)(foe,{reduced:E}),(0,m.jsx)(`span`,{className:k6.statusText,children:o})]}),h&&(0,m.jsx)(`button`,{type:`button`,className:k6.secondary,"data-autofocus":!0,onClick:()=>void ie(`undo`),children:l})]});case`error`:return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`span`,{className:k6.status,"data-tone":`danger`,children:[(0,m.jsx)(Bx,{size:16,strokeWidth:1.75,"aria-hidden":`true`}),(0,m.jsx)(`span`,{className:k6.statusText,children:s})]}),(0,m.jsx)(`button`,{type:`button`,className:k6.secondary,"data-autofocus":!0,onClick:()=>void ie(P),children:c})]});default:return(0,m.jsxs)(`button`,{type:`button`,className:k6.trigger,"data-autofocus":!0,disabled:C,onClick:()=>{L(typeof ge==`string`?ge:``),ne(`confirming`)},children:[t&&(0,m.jsx)(`span`,{className:k6.icon,"aria-hidden":`true`,children:t}),(0,m.jsx)(`span`,{children:e})]})}})();return(0,m.jsxs)(`div`,{ref:O,className:[k6.root,w].filter(Boolean).join(` `),"data-state":j,"data-tone":d,"data-disabled":C||void 0,tabIndex:-1,onKeyDown:he,"aria-busy":j===`pending`||void 0,onPointerEnter:()=>{fe.current.hover=!0,me()},onPointerLeave:()=>{fe.current.hover=!1,me()},onPointerCancel:()=>{fe.current.hover=!1,me()},children:[(0,m.jsx)(H.div,{className:k6.surface,style:{width:se},children:(0,m.jsx)(V,{initial:!1,custom:M,children:(0,m.jsx)(doe,{id:j,direction:M,reduced:E,onSize:z,labelledBy:j===`confirming`?D:void 0,children:_e},j)})}),(0,m.jsx)(`span`,{className:k6.srOnly,role:`status`,"aria-live":`polite`,children:I})]})}var I6={wrapper:`_wrapper_1xob5_1`,scroller:`_scroller_1xob5_2`,band:`_band_1xob5_3`,table:`_table_1xob5_4`,srOnly:`_srOnly_1xob5_6`,selectCol:`_selectCol_1xob5_7`,sortButton:`_sortButton_1xob5_19`,sortInner:`_sortInner_1xob5_23`,sortIcon:`_sortIcon_1xob5_26`,sortHint:`_sortHint_1xob5_27`,sortArrow:`_sortArrow_1xob5_27`,selectCell:`_selectCell_1xob5_35`,selectHit:`_selectHit_1xob5_37`,selectInput:`_selectInput_1xob5_38`,selectBox:`_selectBox_1xob5_39`,selectFill:`_selectFill_1xob5_41`,selectMark:`_selectMark_1xob5_42`,footer:`_footer_1xob5_46`,count:`_count_1xob5_47`,swap:`_swap_1xob5_49`,swapInner:`_swapInner_1xob5_50`,swapText:`_swapText_1xob5_51`,number:`_number_1xob5_52`,clear:`_clear_1xob5_53`,empty:`_empty_1xob5_56`,stripFade:`_stripFade_1xob5_1`},poe=new Intl.Collator(`en`,{numeric:!0,sensitivity:`base`}),L6=e=>e==null||e===``,R6=e=>e instanceof Date?e.getTime():e,z6=e=>`blur(${e}px)`,B6={duration:Y.duration.standard,ease:[...Y.ease.enter]},V6={duration:Y.duration.fast,ease:[...Y.ease.standard]},H6={duration:Y.duration.instant},moe={enter:e=>({opacity:0,y:`${.3*e}em`,filter:z6(Y.blur.soft)}),shown:{opacity:1,y:`0em`,filter:z6(0),transition:B6},gone:e=>({opacity:0,y:`${-.3*e}em`,filter:z6(Y.blur.subtle),transition:V6})},hoe={enter:{opacity:0,y:`0em`,filter:z6(0)},shown:{opacity:1,y:`0em`,filter:z6(0),transition:H6},gone:{opacity:0,y:`0em`,filter:z6(0),transition:H6}},goe=`M4.25 9.25 L7.25 12.25 L13.75 5.75`,_oe=`M4.75 9 L9 9 L13.25 9`;function U6({value:e,direction:t,reduced:n,className:r}){let i=(0,p.useRef)(null),a=Gf(`auto`);return(0,p.useLayoutEffect)(()=>{let e=i.current;if(!e)return;let t=!1,r=()=>{let r=e.getBoundingClientRect().width;t&&!n?bp(a,r,Y.spring.morph):a.jump(r),t=!0};r();let o=new ResizeObserver(r);return o.observe(e),()=>o.disconnect()},[n,a]),(0,m.jsx)(H.span,{className:[I6.swap,r].filter(Boolean).join(` `),style:{width:a},children:(0,m.jsx)(`span`,{ref:i,className:I6.swapInner,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,custom:t,children:(0,m.jsx)(H.span,{className:I6.swapText,custom:t,variants:n?hoe:moe,initial:`enter`,animate:`shown`,exit:`gone`,children:e},e)})})})}function voe({active:e,descending:t,reduced:n}){let r=Gf(t?180:0),i=(0,p.useRef)({active:e,hiddenAt:-1/0});(0,p.useLayoutEffect)(()=>{let a=i.current;e?(a.active||performance.now()-a.hiddenAt<160)&&!n?bp(r,t?180:0,Y.spring.snappy):r.jump(t?180:0):a.active&&(a.hiddenAt=performance.now()),a.active=e},[e,t,n,r]);let a=n?H6:e?{opacity:B6,filter:B6,scale:Y.spring.snappy}:{duration:Y.duration.instant,ease:[...Y.ease.standard]};return(0,m.jsxs)(`span`,{className:I6.sortIcon,"aria-hidden":`true`,children:[(0,m.jsx)(wx,{className:I6.sortHint,size:16,strokeWidth:1.75}),(0,m.jsx)(H.span,{className:I6.sortArrow,style:{rotate:r},initial:!1,animate:e?{opacity:1,scale:1,filter:z6(0)}:{opacity:0,scale:.6,filter:z6(Y.blur.subtle)},transition:a,children:(0,m.jsx)(wx,{size:16,strokeWidth:1.75})})]})}function W6({checked:e,mixed:t=!1,label:n,nav:r,reduced:i,onToggle:a,inputRef:o}){let s=(0,p.useRef)(null),c=o??s,l=e||t;(0,p.useLayoutEffect)(()=>{c.current&&(c.current.indeterminate=t)},[t,c]);let u={duration:l?Y.duration.instant:Y.duration.fast,ease:[...Y.ease.standard]};return(0,m.jsxs)(`label`,{className:I6.selectHit,children:[(0,m.jsx)(`input`,{ref:c,type:`checkbox`,className:I6.selectInput,checked:e,"aria-label":n,"data-nav":r,onChange:e=>a(e.nativeEvent.shiftKey===!0)}),(0,m.jsxs)(`span`,{className:I6.selectBox,"data-on":l||void 0,"aria-hidden":`true`,children:[(0,m.jsx)(H.span,{className:I6.selectFill,initial:!1,animate:{opacity:+!!l,scale:l?1:.6},transition:i?{duration:0}:{scale:Y.spring.snappy,opacity:u}}),(0,m.jsx)(`svg`,{className:I6.selectMark,viewBox:`0 0 18 18`,fill:`none`,focusable:`false`,children:(0,m.jsx)(H.path,{initial:!1,animate:{d:t?_oe:goe,pathLength:+!!l,opacity:+!!l},transition:i?{duration:0}:{d:Y.spring.morph,pathLength:Y.spring.snappy,opacity:u},stroke:`currentColor`,strokeWidth:1.75,strokeLinecap:`round`,strokeLinejoin:`round`})})]})]})}function G6({rows:e,columns:t,rowKey:n,caption:r=`Data table`,emptyMessage:i=`No rows to show`,defaultSort:a,onSortChange:o,selectable:s=!1,selectedKeys:c,defaultSelectedKeys:l,onSelectionChange:u,itemName:d={one:`row`,other:`rows`}}){let f=Zf()??!1,h=(0,p.useRef)(null),g=(0,p.useRef)(null),_=(0,p.useRef)(null),[v,y]=(0,p.useState)(a??null),[b,x]=(0,p.useState)(``),[S,C]=(0,p.useState)(l??[]),w=(0,p.useMemo)(()=>new Set(c??S),[S,c]),T=(0,p.useMemo)(()=>v?e.map((e,t)=>({row:e,index:t})).sort((e,t)=>{let n=R6(e.row[v.key]),r=R6(t.row[v.key]);if(L6(n)||L6(r))return L6(n)===L6(r)?e.index-t.index:L6(n)?1:-1;let i=typeof n==`number`&&typeof r==`number`?n-r:poe.compare(String(n),String(r));return(v.direction===`asc`?i:-i)||e.index-t.index}).map(e=>e.row):e,[e,v]),E=(0,p.useMemo)(()=>new Set(t.filter(t=>t.numeric??(e.some(e=>typeof e[t.key]==`number`)&&e.every(e=>typeof e[t.key]==`number`||L6(e[t.key])))).map(e=>e.key)),[t,e]),D=T.map(e=>String(typeof n==`function`?n(e):e[n])),O=D.join(`\0`),k=D.filter(e=>w.has(e)).length,A=D.length>0&&k===D.length,j=[s?`select`:``,...t.map(e=>e.key)].join(`\0`),[M,N]=(0,p.useState)(null),P=M?.signature===j?M.widths:null;(0,p.useLayoutEffect)(()=>{let e=h.current;if(!e||P)return;let t=()=>{let t=e.getBoundingClientRect().width;if(!t||getComputedStyle(e).display!==`table`)return!1;let n={};return e.querySelectorAll(`thead th[data-key]`).forEach(e=>{n[e.dataset.key??``]=e.getBoundingClientRect().width/t*100}),N({signature:j,widths:n}),!0};if(t())return;let n=new ResizeObserver(()=>{t()&&n.disconnect()});return n.observe(e),()=>n.disconnect()},[j,P]);let[F,I]=(0,p.useState)(null),L=(0,p.useRef)(!1);(0,p.useLayoutEffect)(()=>{let e=h.current,t=v?.key,n=()=>{let n=t&&e?e.querySelector(`thead th[data-key="${CSS.escape(t)}"]`):null;if(!n||!e){I(null);return}let r=n.getBoundingClientRect(),i=r.left-e.getBoundingClientRect().left;I(e=>e?.left===i&&e.width===r.width?e:{left:i,width:r.width})};if(n(),!e||!t)return;let r=e.querySelector(`thead th[data-key="${CSS.escape(t)}"]`),i=r?.parentElement;if(r&&i&&i.scrollWidth>i.clientWidth&&getComputedStyle(e).display!==`table`){let e=i.getBoundingClientRect(),t=r.getBoundingClientRect(),n=Math.max(e.left,i.querySelector(`th:not([data-key])`)?.getBoundingClientRect().right??e.left)+8,a=t.right>e.right-8?t.right-e.right+8:t.left<n?t.left-n:0;a&&i.scrollTo({left:i.scrollLeft+a,behavior:f||!L.current?`auto`:`smooth`})}L.current=!0;let a=new ResizeObserver(n);return a.observe(e),()=>a.disconnect()},[f,v?.key,P]);let R=k||D.length,ee=k?`selected`:D.length===1?d.one:d.other,[te,ne]=(0,p.useState)(R),[re,ie]=(0,p.useState)(1);R!==te&&(ne(R),ie(R>te?1:-1));function ae(e){let t={key:e.key,direction:v?.key===e.key&&v.direction===`asc`?`desc`:`asc`};y(t),o?.(t),x(`Sorted by ${e.label}, ${t.direction===`asc`?`ascending`:`descending`}`)}function oe(e){let t=D.filter(t=>e.has(t));c===void 0&&C(t),u?.(t),x(t.length?`${t.length} of ${D.length} selected`:`Selection cleared`)}function se(e,t){let n=new Set(w),r=!w.has(e),i=t&&_.current?D.indexOf(_.current):-1,a=D.indexOf(e);(i<0?[e]:D.slice(Math.min(i,a),Math.max(i,a)+1)).forEach(e=>r?n.add(e):n.delete(e)),_.current=e,oe(n)}function ce(){oe(new Set),g.current?.focus()}function le(e,t){!s||e.target.closest(`a, button, input, label, select, textarea, [role='button'], [contenteditable='true']`)||window.getSelection()?.toString()||(se(t,e.shiftKey),e.currentTarget.querySelector(`input[type='checkbox']`)?.focus({preventScroll:!0}))}function z(e){let t=e.target;if(e.key===`Escape`&&k){e.preventDefault(),e.stopPropagation(),t.dataset.clear===void 0?oe(new Set):ce();return}let n=t.dataset.nav;if(!n)return;let r=t=>[...e.currentTarget.querySelectorAll(`[data-nav="${t}"]`)],i=r(n),a=i.indexOf(t),o=(n===`head`?{ArrowRight:[i,a+1],ArrowLeft:[i,a-1],Home:[i,0],End:[i,i.length-1],...t===g.current?{ArrowDown:[r(`row`),0]}:{}}:{ArrowDown:[i,a+1],ArrowUp:a===0&&g.current?[[g.current],0]:[i,a-1],Home:[i,0],End:[i,i.length-1]})[e.key],s=o?.[0][o[1]];s&&(e.preventDefault(),s.focus())}return(0,m.jsxs)(`div`,{className:I6.wrapper,onKeyDown:z,children:[(0,m.jsxs)(`div`,{className:I6.scroller,children:[F?(0,m.jsx)(`span`,{className:I6.band,style:{left:F.left,width:F.width},"aria-hidden":`true`}):null,(0,m.jsxs)(`table`,{ref:h,role:`table`,className:I6.table,"data-fixed":P?``:void 0,"data-selectable":s||void 0,children:[(0,m.jsx)(`caption`,{children:r}),(0,m.jsxs)(`colgroup`,{children:[s?(0,m.jsx)(`col`,{className:I6.selectCol}):null,t.map((e,t)=>(0,m.jsx)(`col`,{style:{width:e.width===void 0?P&&t>0?`${P[e.key]}%`:void 0:typeof e.width==`number`?`${e.width}px`:e.width}},e.key))]}),(0,m.jsx)(`thead`,{role:`rowgroup`,children:(0,m.jsxs)(`tr`,{role:`row`,children:[s?(0,m.jsx)(`th`,{scope:`col`,role:`columnheader`,className:I6.selectCell,children:(0,m.jsx)(W6,{inputRef:g,checked:A,mixed:k>0&&!A,label:`Select all rows`,nav:`head`,reduced:f,onToggle:()=>oe(A?new Set:new Set(D))})}):null,t.map((e,t)=>{let n=v?.key===e.key,r=e.sortable!==!1;return(0,m.jsx)(`th`,{scope:`col`,role:`columnheader`,"data-key":e.key,"data-primary":t===0||void 0,"data-sorted":n||void 0,"data-numeric":E.has(e.key)||void 0,"data-sortable":r||void 0,"aria-sort":r?n?v.direction===`asc`?`ascending`:`descending`:`none`:void 0,children:r?(0,m.jsx)(`button`,{className:I6.sortButton,type:`button`,"data-nav":`head`,onClick:()=>ae(e),"aria-label":`Sort by ${e.label}${n?`, currently ${v.direction===`asc`?`ascending`:`descending`}`:``}`,children:(0,m.jsxs)(`span`,{className:I6.sortInner,children:[(0,m.jsx)(`span`,{children:e.label}),(0,m.jsx)(voe,{active:n,descending:n&&v.direction===`desc`,reduced:f})]})}):e.label},e.key)})]})}),(0,m.jsx)(`tbody`,{role:`rowgroup`,children:T.length?T.map((e,n)=>{let r=D[n],i=s&&w.has(r);return(0,m.jsxs)(H.tr,{role:`row`,layout:!f&&`position`,layoutDependency:O,transition:Y.spring.smooth,"data-selected":i||void 0,onClick:e=>le(e,r),onMouseDown:e=>{s&&e.shiftKey&&e.preventDefault()},children:[s?(0,m.jsx)(`td`,{role:`cell`,className:I6.selectCell,children:(0,m.jsx)(W6,{checked:i,label:`Select ${String(e[t[0]?.key]??r)}`,nav:`row`,reduced:f,onToggle:e=>se(r,e)})}):null,t.map((t,n)=>(0,m.jsx)(`td`,{role:`cell`,"data-label":t.label,"data-primary":n===0||void 0,"data-sorted":v?.key===t.key||void 0,"data-numeric":E.has(t.key)||void 0,children:t.render?t.render(e[t.key],e):String(e[t.key]??`–`)},t.key))]},r)}):(0,m.jsx)(`tr`,{role:`row`,children:(0,m.jsx)(`td`,{role:`cell`,className:I6.empty,colSpan:t.length+ +!!s,children:i})})})]})]}),s?(0,m.jsxs)(`div`,{className:I6.footer,children:[(0,m.jsxs)(`span`,{className:I6.srOnly,children:[R,` `,ee]}),(0,m.jsxs)(`span`,{className:I6.count,"data-active":k>0||void 0,"aria-hidden":`true`,children:[(0,m.jsx)(U6,{className:I6.number,value:String(R),direction:re,reduced:f}),(0,m.jsx)(U6,{value:ee,direction:k?1:-1,reduced:f})]}),(0,m.jsx)(V,{initial:!1,children:k?(0,m.jsx)(H.button,{type:`button`,className:I6.clear,"data-clear":``,onClick:ce,initial:f?{opacity:0}:{opacity:0,scale:.96,filter:z6(Y.blur.soft)},animate:{opacity:1,scale:1,filter:z6(0)},exit:f?{opacity:0,transition:H6}:{opacity:0,scale:.98,filter:z6(Y.blur.subtle),transition:V6},transition:f?H6:B6,whileTap:f?void 0:{scale:.97,transition:{duration:Y.duration.instant}},children:`Clear selection`},`clear`):null})]}):null,(0,m.jsx)(`p`,{className:I6.srOnly,role:`status`,children:b})]})}var K6={frame:`_frame_14dj3_1`,content:`_content_14dj3_2`,group:`_group_14dj3_3`,chip:`_chip_14dj3_6`,body:`_body_14dj3_8`,surface:`_surface_14dj3_10`,check:`_check_14dj3_12`,slot:`_slot_14dj3_14`,label:`_label_14dj3_16`,more:`_more_14dj3_28`,moreText:`_moreText_14dj3_31`,moreLine:`_moreLine_14dj3_32`},q6=`\0more`,J6=[...Y.ease.standard],yoe=[...Y.ease.enter],boe={duration:Y.duration.fast,ease:J6},Y6={duration:.15,ease:J6},xoe={duration:Y.duration.fast,ease:J6},Soe={opacity:1,y:`0em`,scale:1,filter:`blur(0px)`},Coe={opacity:0,y:`0.3em`,filter:`blur(${Y.blur.soft}px)`},woe={opacity:0,y:`-0.3em`,filter:`blur(${Y.blur.subtle}px)`,transition:xoe};function X6(e,t,n){let r=Gf(0),i=(0,p.useRef)(null);return(0,p.useLayoutEffect)(()=>{let t=e.current;if(!t)return;let a=t.offsetWidth,o=i.current;if(i.current=a,o===null||o===a)return;if(n){r.jump(0);return}let s=r.getVelocity();r.jump(r.get()+o-a),bp(r,0,{...Y.spring.morph,velocity:s})},[t,r,e,n]),(0,p.useEffect)(()=>{let t=e.current;if(!t||typeof ResizeObserver>`u`)return;let n=new ResizeObserver(()=>{i.current=t.offsetWidth});return n.observe(t),()=>n.disconnect()},[e]),r}function Toe({morphKey:e,reduce:t,children:n}){let r=(0,p.useRef)(null),i=(0,p.useRef)(null),a=Gf(`auto`),o=(0,p.useRef)(0),s=(0,p.useRef)(void 0),c=(0,p.useRef)(!1);return(0,p.useLayoutEffect)(()=>{o.current=performance.now();let e=r.current;if(t||!e||s.current===void 0)return;let n=a.get(),i=typeof n==`number`?n:s.current;a.jump(i),Object.assign(e.style,{overflow:`clip`,height:`${i}px`,minHeight:`${i}px`});let l=0,u=requestAnimationFrame(()=>{l=requestAnimationFrame(()=>{c.current||(a.jump(`auto`),r.current&&Object.assign(r.current.style,{overflow:``,height:`auto`,minHeight:``}))})});return()=>{cancelAnimationFrame(u),cancelAnimationFrame(l)}},[e,t,a]),(0,p.useEffect)(()=>{let e=i.current;if(!e||typeof ResizeObserver>`u`)return;let n,l=()=>{c.current=!1,a.jump(`auto`),r.current&&Object.assign(r.current.style,{overflow:``,height:`auto`,minHeight:``})},u=a.on(`change`,e=>{r.current&&(r.current.style.minHeight=typeof e==`number`?`${e}px`:``)}),d=new ResizeObserver(([i])=>{let u=i.borderBoxSize?.[0]?.blockSize??e.offsetHeight,d=a.get(),f=typeof d==`number`?d:s.current;if(s.current=u,n?.stop(),t||f===void 0||Math.abs(f-u)<.5||performance.now()-o.current>160)return l();r.current&&Object.assign(r.current.style,{overflow:`clip`,height:`${f}px`,minHeight:`${f}px`}),c.current=!0,n=bp(a,[f,u],{...Y.spring.smooth,onComplete:l})});return d.observe(e),()=>{d.disconnect(),u(),n?.stop()}},[a,t]),(0,m.jsx)(H.div,{ref:r,className:K6.frame,style:{height:a},children:(0,m.jsx)(`div`,{ref:i,className:K6.content,children:n})})}function Eoe({follow:e,style:t,...n}){let r=Bu(),i=Gf(0);return(0,p.useLayoutEffect)(()=>{!r&&e&&i.jump(e.get())},[r,e,i]),(0,m.jsx)(H.span,{...n,style:e?{...t,x:r?e:i}:t,"aria-hidden":!r||n[`aria-hidden`]})}var Z6=18;function Doe({option:e,selected:t,tabbable:n,reduce:r,delay:i,onToggle:a,onFocusChip:o,ref:s}){let c=Bu(),l=(0,p.useRef)(null),u=X6(l,String(t),r),d=(0,p.useRef)(t?Z6:0),f=Gf(+!!t),h=Jf(u,e=>-e),g=Jf(f,e=>Math.min(e,1.1)),_=Jf(f,e=>Math.min(1,e*1.4)),v=Jf(f,e=>e>=1?`none`:`blur(${((1-e)*Y.blur.subtle).toFixed(2)}px)`),y=Jf(f,e=>Math.min(1,Math.max(.001,e)));(0,p.useLayoutEffect)(()=>{d.current=t?Z6:0;let e=()=>f.set(Math.max(0,(d.current+u.get())/Z6));return e(),u.on(`change`,e)},[t,u,f]);let b=r?{layout:{duration:0},default:Y6}:{layout:Y.spring.morph,default:{...Y.spring.snappy,delay:i},opacity:{...boe,delay:i}};return(0,m.jsx)(H.button,{ref:s,type:`button`,className:K6.chip,"data-chip":e.value,"aria-pressed":t,"aria-hidden":!c||void 0,tabIndex:c&&n?0:-1,onClick:()=>a(e.value),onFocus:()=>o(e.value),layout:`position`,initial:r?{opacity:0}:{opacity:0,scale:.9},animate:{opacity:1,scale:1},exit:r?{opacity:0,transition:Y6}:{opacity:0,scale:.9,transition:{duration:Y.duration.instant,ease:J6}},transition:b,children:(0,m.jsxs)(`span`,{ref:l,className:K6.body,"data-selected":t,children:[(0,m.jsx)(H.span,{className:K6.surface,style:{right:h},"aria-hidden":`true`}),(0,m.jsx)(H.span,{className:K6.check,style:{scale:g,opacity:_,filter:v},"aria-hidden":`true`,children:(0,m.jsx)(`svg`,{width:14,height:14,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,strokeLinejoin:`round`,children:(0,m.jsx)(H.path,{d:`M4 12.5 9.5 18 20 6.5`,style:{pathLength:y}})})}),(0,m.jsx)(`span`,{className:K6.slot,"aria-hidden":`true`}),(0,m.jsx)(H.span,{className:K6.label,style:{x:u},children:e.label})]})})}function Ooe({hidden:e,expanded:t,tabbable:n,reduce:r,onToggle:i,onFocusChip:a,ref:o}){let s=(0,p.useRef)(null),c=t?`Show less`:`+${e} more`,l=X6(s,c,r),u=Jf(l,e=>-e),d=Jf(l,e=>e/2);return(0,m.jsx)(H.button,{ref:o,type:`button`,className:`${K6.chip} ${K6.more}`,"data-more":``,"aria-expanded":t,tabIndex:n?0:-1,onClick:i,onFocus:()=>a(q6),layout:`position`,transition:{layout:r?{duration:0}:Y.spring.morph},children:(0,m.jsxs)(`span`,{ref:s,className:K6.body,children:[(0,m.jsx)(H.span,{className:K6.surface,style:{right:u},"aria-hidden":`true`}),(0,m.jsx)(`span`,{className:K6.moreText,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(Eoe,{follow:d,className:K6.moreLine,initial:r?{opacity:0}:Coe,animate:Soe,exit:r?{opacity:0,transition:Y6}:woe,transition:r?Y6:{duration:Y.duration.standard,ease:yoe},children:c},c)})})]})})}function Q6({options:e,value:t,onValueChange:n,label:r,multiple:i=!0,maxVisible:a=1/0,className:o}){let s=(0,p.useId)(),c=!!Zf(),[l,u]=(0,p.useState)(!1),[d,f]=(0,p.useState)(t),[h,g]=(0,p.useState)(null),_=e.length>a,v=!_||l?e:e.filter((e,n)=>n<a||d.includes(e.value)||t.includes(e.value)),y=e.length-v.length,b=_&&(l||y>0),x=[...v.map(e=>e.value),...b?[q6]:[]],S=h!==null&&x.includes(h)?h:v.find(e=>t.includes(e.value))?.value??x[0];function C(r){let a=t.includes(r);if(!i)return n(a?[]:[r]);n(e.filter(e=>e.value===r?!a:t.includes(e.value)).map(e=>e.value))}function w(){l&&f(t),u(!l)}function T(e){let t=Array.from(e.currentTarget.querySelectorAll(`:is(button[data-chip], button[data-more]):not([aria-hidden='true'])`)),n=t.indexOf(document.activeElement);if(n<0)return;let r=t.length-1,i={ArrowRight:n===r?0:n+1,ArrowDown:n===r?0:n+1,ArrowLeft:n===0?r:n-1,ArrowUp:n===0?r:n-1,Home:0,End:r};e.key in i&&(e.preventDefault(),t[i[e.key]].focus())}return(0,m.jsx)(Yu,{id:s,children:(0,m.jsx)(Toe,{morphKey:`${l}|${t.join(`,`)}`,reduce:c,children:(0,m.jsx)(`div`,{className:[K6.group,o].filter(Boolean).join(` `),role:`group`,"aria-label":r,onKeyDown:T,children:(0,m.jsxs)(V,{mode:`popLayout`,initial:!1,children:[v.map((e,n)=>(0,m.jsx)(Doe,{option:e,selected:t.includes(e.value),tabbable:S===e.value,reduce:c,delay:l?Math.min(Math.max(0,n-a)*Y.stagger.item,.3):0,onToggle:C,onFocusChip:g},e.value)),b?(0,m.jsx)(Ooe,{hidden:y,expanded:l,tabbable:S===q6,reduce:c,onToggle:w,onFocusChip:g},q6):null]})})})})}function koe({kind:e,onClose:t,onAdd:n,serviceNames:r=[],level:i=1}){let{t:a,locale:o}=K(),[s,c]=(0,p.useState)(``),[l,u]=(0,p.useState)(2e5),[d,f]=(0,p.useState)(`whole`),[h,g]=(0,p.useState)(`highest`),[_,v]=(0,p.useState)({}),[y,b]=(0,p.useState)(`Asia/Shanghai`),[x,S]=(0,p.useState)(`00:30`),[C,w]=(0,p.useState)(`08:30`),[T,E]=(0,p.useState)(.5),[D,O]=(0,p.useState)([1,2,3,4,5,6,7]),[k,A]=(0,p.useState)(``);(0,p.useEffect)(()=>{e&&(c(e===`context`?`>200K`:e===`time`?`off-peak`:`flex`),u(2e5),f(`whole`),g(`highest`),v({}),b(`Asia/Shanghai`),S(`00:30`),w(`08:30`),E(.5),O([1,2,3,4,5,6,7]),A(``))},[e]);let j=!0;try{new Intl.DateTimeFormat(`en`,{timeZone:y})}catch{j=!1}let M=k.split(/[,\s]+/).filter(Boolean),N=Object.values(_).every(e=>e==null||typeof e==`number`&&Number.isFinite(e)&&e>=0),P=/^([01]\d|2[0-3]):[0-5]\d$/.test(x)&&/^([01]\d|2[0-3]):[0-5]\d$/.test(C),F=e===`service`&&r.some(e=>e.toLowerCase()===s.trim().toLowerCase()),I=s.trim().length>0&&N&&(e===`context`?l!=null&&Number.isInteger(l)&&l>0:e===`time`?j&&P&&D.length>0&&T!=null&&Number.isFinite(T)&&T>=0&&M.every(Aoe):!F&&T!=null&&Number.isFinite(T)&&T>=0),L=()=>{I&&e&&(n(e===`context`?{kind:e,value:{name:s.trim(),threshold_input_tokens:l,mode:d,output_policy:h,prices:_}}:e===`time`?{kind:e,value:{name:s.trim(),timezone:y,start:x,end:C,multiplier:T,days:D.length===7?null:[...D].sort((e,t)=>e-t),exclude_dates:M.length?M:null}}:{kind:e,name:s.trim(),value:{multiplier:T}}),t())},R=a(e===`context`?`pricing.addTier`:e===`time`?`pricing.addWindow`:`pricing.addServiceTier`);return(0,m.jsx)(iP,{open:e!==null,onOpenChange:e=>!e&&t(),width:540,title:R,level:i,description:a(e===`context`?`pricing.contextTiers.hint`:e===`time`?`pricing.timeWindows.hint`:`pricing.serviceTiers.hint`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:t,children:a(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!I,onClick:L,children:a(`common.add`)})]}),children:(0,m.jsxs)(`div`,{className:`grid gap-4`,children:[(0,m.jsx)(LT,{label:a(`pricing.name`),error:F?a(`pricing.ruleNameTaken`):void 0,children:(0,m.jsx)(UT,{autoFocus:!0,value:s,onChange:e=>c(e.target.value),invalid:F})}),e===`context`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(LT,{label:a(`pricing.threshold`),children:(0,m.jsx)(GT,{value:l,onChange:u,min:1,step:1})}),(0,m.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,m.jsx)(LT,{label:a(`pricing.tierMode`),children:(0,m.jsx)(uP,{value:d,onChange:f,options:[{value:`whole`,label:a(`pricing.mode.whole`)},{value:`progressive`,label:a(`pricing.mode.progressive`)}]})}),(0,m.jsx)(LT,{label:a(`pricing.outputPolicy`),children:(0,m.jsx)(uP,{value:h,onChange:g,options:[{value:`highest`,label:a(`pricing.output.highest`)},{value:`base`,label:a(`pricing.output.base`)}]})})]}),(0,m.jsx)(`div`,{className:`grid grid-cols-2 gap-4`,children:[`input`,`cache_read`,`cache_write_5m`,`cache_write_1h`,`output`,`reasoning`].map(e=>(0,m.jsx)(LT,{label:e,children:(0,m.jsx)(GT,{value:_[e],onChange:t=>v({..._,[e]:t}),min:0})},e))})]}),e===`time`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(LT,{label:a(`pricing.timezone`),error:j?void 0:a(`pricing.invalidTimezone`),children:(0,m.jsx)(UT,{className:`font-mono`,value:y,onChange:e=>b(e.target.value),invalid:!j})}),(0,m.jsxs)(`div`,{className:`grid grid-cols-3 gap-4`,children:[(0,m.jsx)(LT,{label:a(`pricing.start`),children:(0,m.jsx)(UT,{type:`time`,value:x,onChange:e=>S(e.target.value)})}),(0,m.jsx)(LT,{label:a(`pricing.end`),children:(0,m.jsx)(UT,{type:`time`,value:C,onChange:e=>w(e.target.value)})}),(0,m.jsx)(LT,{label:a(`pricing.multiplier`),children:(0,m.jsx)(GT,{value:T,onChange:E,min:0})})]}),(0,m.jsx)(Q6,{label:a(`pricing.days`),options:(o===`zh`?[`一`,`二`,`三`,`四`,`五`,`六`,`日`]:[`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`,`Sun`]).map((e,t)=>({value:String(t+1),label:e})),value:D.map(String),onValueChange:e=>O(e.map(Number))}),(0,m.jsx)(LT,{label:a(`pricing.excludeDates`),children:(0,m.jsx)(UT,{className:`font-mono`,value:k,onChange:e=>A(e.target.value),placeholder:`2026-10-01, 2026-10-02`})})]}),e===`service`&&(0,m.jsx)(LT,{label:a(`pricing.multiplier`),children:(0,m.jsx)(GT,{value:T,onChange:E,min:0})})]})})}function Aoe(e){if(!/^\d{4}-\d{2}-\d{2}$/.test(e))return!1;let t=new Date(`${e}T00:00:00Z`);return Number.isFinite(t.getTime())&&t.toISOString().slice(0,10)===e}var $6=[`input`,`cache_read`,`cache_write_5m`,`cache_write_1h`,`output`,`reasoning`,`input_audio`,`output_audio`,`input_image`,`output_image`];function e8(){return{currency:`USD`,unit:`per_1m_tokens`,base:{input:null,output:null}}}function joe(e){if(!e.trim())return[null,null];try{let t=JSON.parse(e);return!t||typeof t!=`object`||Array.isArray(t)?[null,`not an object`]:!t.base||typeof t.base!=`object`?[null,`"base" is required`]:[{...t,currency:t.currency??`USD`,unit:t.unit??`per_1m_tokens`},null]}catch(e){return[null,e.message]}}function Moe(e){let t={...e,base:{...e.base}};for(let e of Object.keys(t.base))t.base[e]===void 0&&delete t.base[e];return t.context_tiers?.length||delete t.context_tiers,t.time_windows?.length||delete t.time_windows,(!t.service_tiers||Object.keys(t.service_tiers).length===0)&&delete t.service_tiers,t.per_request??delete t.per_request,t.notes||delete t.notes,t}var Noe=[{d:1,zh:`一`,en:`M`},{d:2,zh:`二`,en:`T`},{d:3,zh:`三`,en:`W`},{d:4,zh:`四`,en:`T`},{d:5,zh:`五`,en:`F`},{d:6,zh:`六`,en:`S`},{d:7,zh:`日`,en:`S`}];function t8({value:e,onChange:t,allowEmpty:n,dialogLevel:r=1}){let i=xv(),[a,o]=(0,p.useState)(`form`),[s,c]=(0,p.useState)(()=>EI(e)),[l,u]=(0,p.useState)(null),[d,f]=(0,p.useState)(null),[h,g]=(0,p.useState)(!1),[_,v]=(0,p.useState)(e8);if((0,p.useEffect)(()=>{a===`form`&&c(EI(e))},[e,a]),e===null&&a===`form`)return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-[var(--radius-panel)] border border-[var(--border)] px-4 py-3 text-[13px] text-[var(--text-secondary)]`,children:[i(`pricing.none`),(0,m.jsx)(X,{size:`sm`,variant:`primary`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),onClick:()=>{v(e8()),g(!0)},children:i(`pricing.add`)})]}),(0,m.jsx)(iP,{open:h,onOpenChange:g,width:660,title:i(`pricing.add`),level:r,footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:()=>g(!1),children:i(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,onClick:()=>{t(_),g(!1)},children:i(`common.add`)})]}),children:(0,m.jsx)(t8,{value:_,onChange:e=>e&&v(e),dialogLevel:r+1})})]});let y=e??e8(),b=e=>t(Moe({...y,...e})),x=(e,t)=>b({base:{...y.base,[e]:t}});return(0,m.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(zT,{ariaLabel:i(`pricing.editMode`),value:a,onChange:t=>{t===`json`&&c(EI(e)),o(t)},items:[{value:`form`,label:i(`pricing.mode.form`)},{value:`json`,label:`JSON`}]}),(0,m.jsx)(`span`,{className:`text-[12px] text-[var(--text-muted)]`,children:i(`pricing.unit`)}),n&&(0,m.jsx)(X,{size:`sm`,variant:`destructive`,className:`ml-auto`,onClick:()=>t(null),children:i(`pricing.remove`)})]}),a===`json`?(0,m.jsx)(LT,{label:`JSON`,error:l??void 0,children:(0,m.jsx)(WT,{rows:16,spellCheck:!1,className:`font-mono selectable`,value:s,invalid:!!l,onChange:e=>{c(e.target.value);let[n,r]=joe(e.target.value);u(r),!r&&n&&t(n)}})}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`div`,{children:[(0,m.jsx)(n8,{children:i(`pricing.base`)}),(0,m.jsxs)(`div`,{className:`grid grid-cols-[repeat(auto-fill,minmax(200px,1fr))] gap-x-5 gap-y-2`,children:[$6.map(e=>(0,m.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,m.jsx)(`span`,{className:`truncate font-mono text-[11px] text-[var(--text-secondary)]`,children:e}),(0,m.jsx)(GT,{className:`w-28`,label:e,value:y.base[e]??null,onChange:t=>x(e,t)})]},e)),(0,m.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,m.jsx)(`span`,{className:`truncate text-[12px] text-[var(--text-secondary)]`,children:i(`pricing.perRequest`)}),(0,m.jsx)(GT,{className:`w-28`,label:i(`pricing.perRequest`),value:y.per_request??null,onChange:e=>b({per_request:e})})]})]})]}),(0,m.jsx)(Poe,{tiers:y.context_tiers??[],onChange:e=>b({context_tiers:e}),onAdd:()=>f(`context`)}),(0,m.jsx)(Ioe,{windows:y.time_windows??[],onChange:e=>b({time_windows:e}),onAdd:()=>f(`time`)}),(0,m.jsx)(Loe,{tiers:y.service_tiers??{},onChange:e=>b({service_tiers:e}),onAdd:()=>f(`service`)}),(0,m.jsx)(WT,{label:i(`pricing.notes`),rows:2,className:`w-full`,value:y.notes??``,onChange:e=>b({notes:e.target.value||null})})]}),(0,m.jsx)(koe,{kind:d,onClose:()=>f(null),serviceNames:Object.keys(y.service_tiers??{}),level:r,onAdd:e=>{e.kind===`context`?b({context_tiers:[...y.context_tiers??[],e.value]}):e.kind===`time`?b({time_windows:[...y.time_windows??[],e.value]}):b({service_tiers:{...y.service_tiers,[e.name]:e.value}})}})]})}function n8({children:e,action:t}){return(0,m.jsxs)(`div`,{className:`mb-2 flex items-center justify-between`,children:[(0,m.jsx)(`span`,{className:`text-[13px] font-medium`,children:e}),t]})}function r8({onClick:e,label:t}){let n=xv();return(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),onClick:e,children:n(t)})}function i8({onClick:e}){let t=xv();return(0,m.jsx)(X,{size:`sm`,variant:`plain`,"aria-label":t(`common.delete`),icon:(0,m.jsx)(mC,{className:`size-3.5`}),onClick:e})}function Poe({tiers:e,onChange:t,onAdd:n}){let r=xv(),i=(n,r)=>t(e.map((e,t)=>t===n?{...e,...r}:e)),a=(t,n,r)=>i(t,{prices:{...e[t].prices,[n]:r}});return(0,m.jsxs)(`div`,{children:[(0,m.jsx)(n8,{action:(0,m.jsx)(r8,{label:`pricing.addTier`,onClick:n}),children:r(`pricing.contextTiers`)}),e.length===0&&(0,m.jsx)(a8,{children:r(`pricing.contextTiers.hint`)}),(0,m.jsx)(`div`,{className:`flex flex-col gap-2`,children:e.map((n,o)=>(0,m.jsxs)(`div`,{className:`rounded-[var(--radius-panel)] border border-[var(--border)] p-3`,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,m.jsx)(UT,{className:`w-28`,value:n.name,onChange:e=>i(o,{name:e.target.value}),placeholder:r(`pricing.name`)}),(0,m.jsx)(`span`,{className:`text-[12px] text-[var(--text-secondary)]`,children:r(`pricing.threshold`)}),(0,m.jsx)(GT,{className:`w-28`,label:r(`pricing.threshold`),value:n.threshold_input_tokens,onChange:e=>i(o,{threshold_input_tokens:e??0})}),(0,m.jsx)(uP,{className:`w-36`,value:n.mode,onChange:e=>i(o,{mode:e}),options:[{value:`whole`,label:r(`pricing.mode.whole`)},{value:`progressive`,label:r(`pricing.mode.progressive`)}]}),(0,m.jsx)(uP,{className:`w-40`,value:n.output_policy,onChange:e=>i(o,{output_policy:e}),options:[{value:`highest`,label:r(`pricing.output.highest`)},{value:`base`,label:r(`pricing.output.base`)}]}),(0,m.jsx)(`span`,{className:`ml-auto`,children:(0,m.jsx)(i8,{onClick:()=>t(e.filter((e,t)=>t!==o))})})]}),(0,m.jsx)(Foe,{prices:n.prices,onChange:(e,t)=>a(o,e,t)})]},o))})]})}function Foe({prices:e,onChange:t}){return(0,m.jsx)(`div`,{className:`mt-2 flex flex-wrap gap-x-4 gap-y-1.5`,children:[`input`,`cache_read`,`output`].map(n=>(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`font-mono text-[11px] text-[var(--text-secondary)]`,children:n}),(0,m.jsx)(GT,{className:`w-24`,label:n,value:e?.[n]??null,onChange:e=>t(n,e)})]},n))})}function Ioe({windows:e,onChange:t,onAdd:n}){let{t:r,locale:i}=K(),a=(n,r)=>t(e.map((e,t)=>t===n?{...e,...r}:e));return(0,m.jsxs)(`div`,{children:[(0,m.jsx)(n8,{action:(0,m.jsx)(r8,{label:`pricing.addWindow`,onClick:n}),children:r(`pricing.timeWindows`)}),e.length===0&&(0,m.jsx)(a8,{children:r(`pricing.timeWindows.hint`)}),(0,m.jsx)(`div`,{className:`flex flex-col gap-2`,children:e.map((n,o)=>(0,m.jsxs)(`div`,{className:`rounded-[var(--radius-panel)] border border-[var(--border)] p-3`,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,m.jsx)(UT,{className:`w-24`,value:n.name,onChange:e=>a(o,{name:e.target.value}),placeholder:r(`pricing.name`)}),(0,m.jsx)(UT,{className:`w-40 font-mono`,"aria-label":r(`pricing.timezone`),value:n.timezone,onChange:e=>a(o,{timezone:e.target.value}),placeholder:`Asia/Shanghai`}),(0,m.jsx)(UT,{className:`w-[110px] font-mono`,"aria-label":r(`pricing.start`),type:`time`,value:n.start,onChange:e=>a(o,{start:e.target.value})}),(0,m.jsx)(`span`,{className:`text-[var(--text-muted)]`,children:`–`}),(0,m.jsx)(UT,{className:`w-[110px] font-mono`,"aria-label":r(`pricing.end`),type:`time`,value:n.end,onChange:e=>a(o,{end:e.target.value})}),(0,m.jsx)(`span`,{className:`text-[12px] text-[var(--text-secondary)]`,children:`×`}),(0,m.jsx)(GT,{className:`w-20`,label:r(`pricing.multiplier`),value:n.multiplier??null,onChange:e=>a(o,{multiplier:e})}),(0,m.jsx)(`span`,{className:`ml-auto`,children:(0,m.jsx)(i8,{onClick:()=>t(e.filter((e,t)=>t!==o))})})]}),(0,m.jsxs)(`div`,{className:`mt-2 flex flex-wrap items-center gap-1`,children:[(0,m.jsx)(Q6,{label:r(`pricing.days`),options:Noe.map(({d:e,zh:t,en:n})=>({value:String(e),label:i===`zh`?t:n})),value:(n.days??[1,2,3,4,5,6,7]).map(String),onValueChange:e=>{let t=e.map(Number).sort();a(o,{days:t.length===7?null:t})}}),(0,m.jsx)(UT,{className:`ml-2 min-w-40 flex-1 font-mono`,placeholder:r(`pricing.excludeDates`),value:(n.exclude_dates??[]).join(`, `),onChange:e=>{let t=e.target.value.split(/[,\s]+/).filter(Boolean);a(o,{exclude_dates:t.length?t:null})}})]})]},o))})]})}function Loe({tiers:e,onChange:t,onAdd:n}){let r=xv(),i=Object.entries(e),a=e=>t(Object.fromEntries(e));return(0,m.jsxs)(`div`,{children:[(0,m.jsx)(n8,{action:(0,m.jsx)(r8,{label:`pricing.addServiceTier`,onClick:n}),children:r(`pricing.serviceTiers`)}),i.length===0&&(0,m.jsx)(a8,{children:r(`pricing.serviceTiers.hint`)}),(0,m.jsx)(`div`,{className:`flex flex-col gap-1.5`,children:i.map(([e,t],n)=>(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(UT,{className:`w-36 font-mono`,"aria-label":r(`pricing.name`),value:e,onChange:e=>a(i.map((t,r)=>r===n?[e.target.value,t[1]]:t))}),(0,m.jsx)(`span`,{className:`text-[12px] text-[var(--text-secondary)]`,children:`×`}),(0,m.jsx)(GT,{className:`w-24`,label:r(`pricing.multiplier`),value:t.multiplier??null,onChange:e=>a(i.map((t,r)=>r===n?[t[0],{...t[1],multiplier:e}]:t))}),t.prices&&(0,m.jsx)(`span`,{className:`text-[12px] text-[var(--text-muted)]`,children:r(`pricing.hasOwnPrices`)}),(0,m.jsx)(i8,{onClick:()=>a(i.filter((e,t)=>t!==n))})]},n))})]})}function a8({children:e}){return(0,m.jsx)(`div`,{className:`mb-2 text-[12px] text-[var(--text-muted)]`,children:e})}function o8({source:e,priceKey:t}){let{t:n}=K();switch(e){case`provider_override`:return(0,m.jsx)(Q,{tone:`orange`,children:n(`pricingSource.override`)});case`provider_price`:return(0,m.jsx)(Q,{tone:`accent`,children:n(`pricingSource.provider`,{key:t??``})});case`system_default`:return(0,m.jsx)(Q,{children:n(`pricingSource.default`)});default:return(0,m.jsx)(Q,{tone:`red`,children:n(`pricingSource.none`)})}}function Roe({result:e}){let{t}=K(),n=[{key:`type`,label:t(`billing.type`),render:(e,t)=>(0,m.jsxs)(`span`,{className:`font-mono text-[12px]`,children:[t.item.tokenType,t.item.pricedAs&&t.item.pricedAs!==t.item.tokenType&&(0,m.jsxs)(`span`,{className:`text-[var(--text-muted)]`,children:[` → `,t.item.pricedAs]})]})},{key:`tokens`,label:t(`billing.tokens`),numeric:!0,render:(e,t)=>t.item.isPerCall?`${t.item.tokens}×`:_I(t.item.tokens)},{key:`unitPrice`,label:t(`billing.unitPrice`),numeric:!0,render:(e,t)=>(0,m.jsxs)(m.Fragment,{children:[gI(t.item.unitPrice),t.item.multiplier!==1&&(0,m.jsxs)(`span`,{className:`text-[var(--text-muted)]`,children:[` (×`,t.item.multiplier,`)`]})]})},{key:`tier`,label:t(`billing.tier`)},{key:`cost`,label:t(`billing.cost`),numeric:!0,render:(e,t)=>hI(t.item.costNanos)}],r=e.items.map((e,t)=>({key:String(t),type:e.tokenType,tokens:e.tokens,unitPrice:Number(e.unitPrice)||0,tier:e.tier,cost:e.costNanos,item:e}));return(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`num text-[20px] font-medium`,children:hI(e.totalNanos)}),(0,m.jsx)(o8,{source:e.pricingSource,priceKey:e.priceKey}),!e.priced&&(0,m.jsx)(Q,{tone:`red`,children:t(`billing.unpriced`)})]}),r.length>0&&(0,m.jsx)(G6,{caption:t(`billing.type`),rows:r,columns:n,rowKey:`key`}),e.description&&(0,m.jsx)(`p`,{className:`text-[12px] leading-relaxed whitespace-pre-line text-[var(--text-secondary)] selectable`,children:e.description})]})}var zoe={input:1e6,output:1e5};function Boe({modelId:e,pricing:t}){let{t:n,locale:r}=K(),i=Xg(),a=jee(),[o,s]=(0,p.useState)(zoe),[c,l]=(0,p.useState)(``),[u,d]=(0,p.useState)(``),[f,h]=(0,p.useState)(``),g=()=>{let n=Object.fromEntries(Object.entries(o).filter(([,e])=>e&&e>0));a.mutate({...f?{modelId:e,providerId:f}:e&&!t?{modelId:e}:{pricing:t??null},usage:{tokens:n,serviceTier:c||null},requestTimeUtc:u?new Date(u).toISOString():void 0,locale:r})};return(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,m.jsx)(`div`,{className:`grid grid-cols-[repeat(auto-fill,minmax(200px,1fr))] gap-x-5 gap-y-2`,children:$6.map(e=>(0,m.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,m.jsx)(`span`,{className:`truncate font-mono text-[11px] text-[var(--text-secondary)]`,children:e}),(0,m.jsx)(GT,{className:`w-28`,label:e,step:1,min:0,value:o[e]??null,onChange:t=>s({...o,[e]:t})})]},e))}),(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[e&&(0,m.jsx)(uP,{className:`w-48`,value:f,onChange:h,options:[{value:``,label:n(`simulator.official`)},...(i.data??[]).map(e=>({value:e.id,label:e.name,detail:e.priceKey??e.templateId??void 0}))]}),(0,m.jsx)(UT,{className:`w-28`,placeholder:n(`simulator.serviceTier`),value:c,onChange:e=>l(e.target.value)}),(0,m.jsx)(UT,{className:`w-52`,"aria-label":n(`simulator.time`),type:`datetime-local`,value:u,onChange:e=>d(e.target.value)}),(0,m.jsx)(X,{variant:`primary`,icon:(0,m.jsx)(fte,{className:`size-3.5`}),loading:a.isPending,onClick:g,className:`ml-auto`,children:n(`simulator.run`)})]}),a.isError&&(0,m.jsx)(lE,{tone:`danger`,title:n(`common.error`),children:$(a.error)}),a.data&&(0,m.jsx)(Roe,{result:a.data})]})}var Voe=[{key:`vision`,label:`cap.vision`},{key:`tools`,label:`cap.tools`},{key:`reasoning`,label:`cap.reasoning`},{key:`promptCache`,label:`cap.promptCache`},{key:`audio`,label:`cap.audio`},{key:`pdf`,label:`cap.pdf`},{key:`structuredOutput`,label:`cap.structuredOutput`}];function Hoe(e){return{displayName:e.displayName,vendor:e.vendor,family:e.family??null,aliases:e.aliases,contextWindow:e.contextWindow??null,maxOutputTokens:e.maxOutputTokens??null,capabilities:e.capabilities,pricing:e.pricing??null,enabled:e.enabled}}function Uoe(){let{t:e,locale:t}=K(),n=Ah(),{id:r=``}=Ph(),i=decodeURIComponent(r),a=See(i),o=wee(i),s=Eee(i),c=Tee(),{toast:l}=pP(),u=(0,p.useMemo)(()=>a.data?Hoe(a.data):null,[a.data]),[d,f]=(0,p.useState)(u),[h,g]=(0,p.useState)(``);(0,p.useEffect)(()=>{f(u),g(u?.aliases?.join(`, `)??``)},[u]);let _=(0,m.jsx)(X,{variant:`glass`,icon:(0,m.jsx)(_x,{className:`size-4`}),"aria-label":e(`common.back`),onClick:()=>n(`/models`)});if(a.isError)return(0,m.jsx)(i6,{title:e(`nav.models`),leading:_,children:(0,m.jsx)(lE,{tone:`danger`,title:e(`common.error`),children:$(a.error)})});let v=a.data;if(!v||!d)return(0,m.jsx)(i6,{title:``,leading:_,children:(0,m.jsx)(QT,{lines:5,className:`mx-auto max-w-[1100px]`})});let y=e=>f(t=>({...t,...e})),b={...d,aliases:h.split(/[,\n]/).map(e=>e.trim()).filter(Boolean)},x=JSON.stringify(b)!==JSON.stringify(u),S=new Set(v.userModifiedFields),C=v.source===`seed`,w=()=>o.mutate(b,{onSuccess:()=>l(e(`common.saved`),`success`),onError:e=>l($(e),`error`)}),T=t=>S.has(t)?(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,m.jsx)(Q,{tone:`orange`,children:e(`models.modified`)}),C&&(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(HS,{className:`size-3`}),title:e(`models.resetField`),"aria-label":e(`models.resetField`),onClick:()=>s.mutate(t,{onSuccess:()=>l(e(`models.fieldReset`)),onError:e=>l($(e),`error`)})})]}):null;return(0,m.jsx)(i6,{title:v.displayName,subtitle:`${v.id} · ${e(`models.source.${v.source}`)} · ${e(`models.updated`,{time:CI(v.updatedAt,t)})}`,leading:_,actions:(0,m.jsxs)(m.Fragment,{children:[v.source===`user`&&(0,m.jsx)(c8,{label:e(`common.delete`),prompt:e(`models.deleteConfirm`,{id:v.id}),onConfirm:async()=>{await c.mutateAsync(v.id),n(`/models`)}}),x&&(0,m.jsx)(X,{onClick:()=>{f(u),g(u?.aliases?.join(`, `)??``)},children:e(`common.revert`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!x,loading:o.isPending,onClick:w,children:e(`common.save`)})]}),children:(0,m.jsxs)(`div`,{className:`mx-auto grid max-w-[1100px] gap-x-6 xl:grid-cols-[minmax(0,1fr)_minmax(0,1fr)]`,children:[(0,m.jsxs)(`div`,{children:[(0,m.jsxs)(VT,{title:e(`models.section.basic`),footer:C?e(`models.modifiedFooter`):void 0,children:[(0,m.jsx)(s8,{label:e(`models.field.displayName`),marker:T(`displayName`),children:(0,m.jsx)(UT,{className:`w-60`,"aria-label":e(`models.field.displayName`),value:d.displayName,onChange:e=>y({displayName:e.target.value})})}),(0,m.jsx)(s8,{label:e(`models.field.vendor`),children:(0,m.jsx)(UT,{className:`w-60`,"aria-label":e(`models.field.vendor`),value:d.vendor,onChange:e=>y({vendor:e.target.value})})}),(0,m.jsx)(s8,{label:e(`models.field.family`),marker:T(`family`),children:(0,m.jsx)(UT,{className:`w-60`,"aria-label":e(`models.field.family`),value:d.family??``,onChange:e=>y({family:e.target.value||null})})}),(0,m.jsx)(s8,{label:e(`models.field.aliases`),marker:T(`aliases`),children:(0,m.jsx)(UT,{className:`w-60 font-mono`,"aria-label":e(`models.field.aliases`),value:h,onChange:e=>g(e.target.value),placeholder:`a, b, c`})}),(0,m.jsx)(s8,{label:e(`models.field.contextWindow`),marker:T(`contextWindow`),children:(0,m.jsx)(GT,{className:`w-36`,label:e(`models.field.contextWindow`),value:d.contextWindow,onChange:e=>y({contextWindow:e})})}),(0,m.jsx)(s8,{label:e(`models.field.maxOutputTokens`),marker:T(`maxOutputTokens`),children:(0,m.jsx)(GT,{className:`w-36`,label:e(`models.field.maxOutputTokens`),value:d.maxOutputTokens,onChange:e=>y({maxOutputTokens:e})})}),(0,m.jsx)(s8,{label:e(`common.enabled`),children:(0,m.jsx)(BT,{checked:d.enabled??!0,label:e(`common.enabled`),onChange:e=>y({enabled:e})})})]}),(0,m.jsx)(VT,{title:(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[e(`models.section.capabilities`),` `,T(`capabilities`)]}),children:(0,m.jsx)(`div`,{className:`grid grid-cols-2 gap-x-4 gap-y-3 px-4 py-4`,children:Voe.map(t=>(0,m.jsx)(O6,{label:e(t.label),checked:!!d.capabilities?.[t.key],onCheckedChange:e=>y({capabilities:{...d.capabilities,[t.key]:e===!0}})},t.key))})}),(0,m.jsx)(Woe,{model:v}),v.providerOverrides.length>0&&(0,m.jsx)(VT,{title:e(`models.section.overrides`),footer:e(`models.overridesFooter`),children:v.providerOverrides.map(e=>(0,m.jsx)(Z,{label:(0,m.jsx)(Lg,{className:`text-[var(--accent)]`,to:`/providers/${e.providerId}`,children:e.providerName}),detail:`${e.modelId} · ${TI(e.pricing)}`},e.providerModelId))})]}),(0,m.jsxs)(`div`,{children:[(0,m.jsxs)(`section`,{className:`mb-5`,children:[(0,m.jsx)(eE,{action:T(`pricing`),children:e(`models.section.pricing`)}),(0,m.jsx)(`p`,{className:`mb-3 px-1 text-[12px] text-[var(--text-secondary)]`,children:e(`models.pricingHint`)}),(0,m.jsx)(`div`,{className:`card p-4`,children:(0,m.jsx)(t8,{value:d.pricing??null,onChange:e=>y({pricing:e}),allowEmpty:!0})})]}),(0,m.jsxs)(`section`,{className:`mb-5`,children:[(0,m.jsx)(eE,{children:e(`models.section.simulator`)}),(0,m.jsxs)(`div`,{className:`card p-4`,children:[(0,m.jsx)(Boe,{modelId:x?void 0:v.id,pricing:x?b.pricing:null}),x&&(0,m.jsx)(`p`,{className:`mt-3 text-[12px] text-[var(--text-muted)]`,children:e(`models.simulatorUnsaved`)})]})]})]})]})})}function s8({label:e,marker:t,children:n}){return(0,m.jsx)(Z,{label:(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[e,t]}),children:n})}function Woe({model:e}){let{t}=K(),n=Oee(e.id),[r,i]=(0,p.useState)(null);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(VT,{title:(0,m.jsxs)(`span`,{className:`flex items-center justify-between`,children:[t(`models.section.providerPrices`),(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),onClick:()=>i(`new`),children:t(`common.add`)})]}),footer:t(`models.providerPricesFooter`),children:[e.providerPrices.length===0&&(0,m.jsx)(Z,{label:(0,m.jsx)(`span`,{className:`text-[12px] text-[var(--text-muted)]`,children:t(`models.noProviderPrices`)})}),e.providerPrices.map(e=>(0,m.jsxs)(Z,{label:(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`font-mono text-[12.5px]`,children:e.priceKey}),e.userModified&&(0,m.jsx)(Q,{tone:`orange`,children:t(`models.modified`)})]}),detail:[TI(e.pricing),e.upstreamModelId,e.pricing.time_windows?.length?t(`models.hasTimeWindows`):null,e.pricing.context_tiers?.length?t(`models.hasTiers`):null].filter(Boolean).join(` · `),children:[(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(MS,{className:`size-3.5`}),"aria-label":t(`common.edit`),onClick:()=>i(e)}),(0,m.jsx)(c8,{label:t(`common.delete`),prompt:t(`models.deletePrice`,{key:e.priceKey}),onConfirm:()=>n.mutateAsync(e.priceKey)})]},e.priceKey))]}),(0,m.jsx)(Goe,{model:e,editing:r,onClose:()=>i(null)})]})}function Goe({model:e,editing:t,onClose:n}){let{t:r}=K(),{toast:i}=pP(),a=Jg(),o=Dee(e.id),s=t===`new`,[c,l]=(0,p.useState)(``),[u,d]=(0,p.useState)(``),[f,h]=(0,p.useState)(null);(0,p.useEffect)(()=>{t&&(t===`new`?(l(``),d(``),h(e.pricing?structuredClone(e.pricing):{currency:`USD`,unit:`per_1m_tokens`,base:{input:null,output:null}})):(l(t.priceKey),d(t.upstreamModelId??``),h(structuredClone(t.pricing))))},[t,e.pricing]);let g=new Set(e.providerPrices.map(e=>e.priceKey));return(0,m.jsx)(iP,{open:t!==null,onOpenChange:e=>!e&&n(),width:680,title:s?r(`models.addPrice`):r(`models.editPrice`,{key:c}),description:r(`models.priceSheetDetail`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:n,children:r(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!c||!f,loading:o.isPending,onClick:()=>o.mutate({priceKey:c,upstreamModelId:u||null,pricing:f},{onSuccess:()=>{i(r(`common.saved`),`success`),n()},onError:e=>i($(e),`error`)}),children:r(`common.save`)})]}),children:(0,m.jsxs)(`div`,{className:`grid gap-4`,children:[(0,m.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,m.jsx)(LT,{label:r(`providers.priceKey`),children:s?(0,m.jsx)(uP,{value:c,onChange:l,placeholder:r(`models.pickPriceKey`),options:(a.data??[]).map(e=>({value:e.priceKey,label:e.label,detail:e.priceKey,disabled:g.has(e.priceKey)}))}):(0,m.jsx)(UT,{value:c,disabled:!0,className:`font-mono`})}),(0,m.jsx)(LT,{label:r(`models.upstreamId`),hint:r(`models.upstreamIdHint`),children:(0,m.jsx)(UT,{className:`font-mono`,value:u,onChange:e=>d(e.target.value),placeholder:e.id})})]}),s&&(0,m.jsx)(UT,{className:`font-mono`,"aria-label":r(`models.customPriceKey`),placeholder:r(`models.customPriceKey`),value:c,onChange:e=>l(e.target.value.trim())}),(0,m.jsx)(t8,{value:f,onChange:h})]})})}function c8({label:e,prompt:t,onConfirm:n}){let{t:r}=K();return(0,m.jsx)(F6,{label:e,icon:(0,m.jsx)(mC,{className:`size-4`}),prompt:t,confirmLabel:r(`common.delete`),cancelLabel:r(`common.cancel`),pendingLabel:r(`common.deleting`),doneLabel:r(`common.deleted`),errorLabel:r(`common.error`),retryLabel:r(`common.retry`),onConfirm:n})}function Koe(){let{t:e}=K(),t=Ah(),[n,r]=(0,p.useState)(``),[i,a]=(0,p.useState)(``),[o,s]=(0,p.useState)(!1),[c,l]=(0,p.useState)(!1),u=(0,p.useRef)(null),d=Tv(n),f=qg(),h=qg(d,i),g=(0,p.useMemo)(()=>[...new Set((f.data??[]).map(e=>e.vendor))].sort(),[f.data]);return kv(e=>{e===`find`&&u.current?.focus()}),(0,m.jsxs)(i6,{title:e(`nav.models`),subtitle:h.data?e(`models.count`,{count:h.data.length}):void 0,actions:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(KT,{inputRef:u,className:`w-52`,value:n,onChange:r,placeholder:e(`models.search`)}),(0,m.jsx)(uP,{value:i,onChange:a,options:[{value:``,label:e(`models.allVendors`)},...g.map(e=>({value:e,label:e}))]}),(0,m.jsx)(X,{icon:(0,m.jsx)(Gx,{className:`size-3.5`}),onClick:()=>l(!0),children:e(`models.sync`)}),(0,m.jsx)(X,{variant:`primary`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),onClick:()=>s(!0),children:e(`models.new`)})]}),children:[h.isLoading&&(0,m.jsx)(QT,{lines:5}),h.isError&&(0,m.jsx)(lE,{tone:`danger`,title:e(`common.error`),children:$(h.error)}),h.data?.length===0&&(0,m.jsx)($T,{icon:(0,m.jsx)(Dx,{className:`size-6`}),title:e(`models.empty`)}),h.data&&h.data.length>0&&(0,m.jsx)(G6,{caption:e(`nav.models`),rowKey:`id`,rows:h.data.map(e=>({id:e.id,name:e.displayName,vendor:e.vendor,context:e.contextWindow??0,input:e.pricing?.base.input??0,providerPrices:e.providerPriceKeys.length,m:e})),columns:qoe(e,e=>t(`/models/${encodeURIComponent(e)}`))}),(0,m.jsx)(Joe,{open:o,onOpenChange:s,onCreated:e=>t(`/models/${encodeURIComponent(e)}`)}),(0,m.jsx)(Yoe,{open:c,onOpenChange:l})]})}function qoe(e,t){return[{key:`name`,label:e(`models.col.model`),render:(n,r)=>(0,m.jsxs)(`button`,{type:`button`,className:`block w-full min-w-0 text-left`,onClick:()=>t(r.id),children:[(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:Cv(`truncate font-medium hover:text-[var(--accent)]`,!r.m.enabled&&`text-[var(--text-muted)]`),children:r.name}),r.m.source===`user`&&(0,m.jsx)(Q,{tone:`accent`,children:e(`models.source.user`)}),r.m.userModifiedFields.length>0&&(0,m.jsx)(Q,{tone:`orange`,children:e(`models.modified`)})]}),(0,m.jsx)(`span`,{className:`block truncate font-mono text-[11px] text-[var(--text-muted)]`,children:r.id})]})},{key:`vendor`,label:e(`models.col.vendor`),width:120},{key:`context`,label:e(`models.col.context`),numeric:!0,width:96,render:(e,t)=>xI(t.m.contextWindow)},{key:`input`,label:e(`models.col.price`),numeric:!0,width:150,render:(e,t)=>{let n=t.m.pricing?.base;return n?`${gI(n.input)} / ${gI(n.output)}`:`—`}},{key:`providerPrices`,label:e(`models.col.providerPrices`),numeric:!0,width:130,render:(t,n)=>n.providerPrices?e(`models.providerPriceCount`,{count:n.providerPrices}):`—`}]}function Joe({open:e,onOpenChange:t,onCreated:n}){let{t:r}=K(),{toast:i}=pP(),a=Cee(),[o,s]=(0,p.useState)(``),[c,l]=(0,p.useState)(``),[u,d]=(0,p.useState)(``),[f,h]=(0,p.useState)(null),[g,_]=(0,p.useState)(null),[v,y]=(0,p.useState)(null);return(0,m.jsx)(iP,{open:e,onOpenChange:t,title:r(`models.new`),description:r(`models.newDetail`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:()=>t(!1),children:r(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!o.trim()||!u.trim(),loading:a.isPending,onClick:()=>a.mutate({id:o.trim(),displayName:c.trim()||o.trim(),vendor:u.trim(),contextWindow:f,pricing:g!=null||v!=null?{currency:`USD`,unit:`per_1m_tokens`,base:{input:g,output:v}}:null},{onSuccess:e=>{t(!1),s(``),l(``),n(e.id)},onError:e=>i($(e),`error`)}),children:r(`common.create`)})]}),children:(0,m.jsxs)(`div`,{className:`grid gap-4`,children:[(0,m.jsx)(LT,{label:r(`models.field.id`),hint:r(`models.field.idHint`),children:(0,m.jsx)(UT,{className:`font-mono`,value:o,onChange:e=>s(e.target.value),placeholder:`my-model-1`})}),(0,m.jsxs)(`div`,{className:`grid grid-cols-2 gap-4`,children:[(0,m.jsx)(LT,{label:r(`models.field.displayName`),children:(0,m.jsx)(UT,{value:c,onChange:e=>l(e.target.value)})}),(0,m.jsx)(LT,{label:r(`models.field.vendor`),children:(0,m.jsx)(UT,{value:u,onChange:e=>d(e.target.value),placeholder:`openai`})})]}),(0,m.jsxs)(`div`,{className:`grid grid-cols-3 gap-4`,children:[(0,m.jsx)(LT,{label:r(`models.field.contextWindow`),children:(0,m.jsx)(GT,{value:f,onChange:h})}),(0,m.jsx)(LT,{label:r(`models.field.inputPrice`),children:(0,m.jsx)(GT,{value:g,onChange:_})}),(0,m.jsx)(LT,{label:r(`models.field.outputPrice`),children:(0,m.jsx)(GT,{value:v,onChange:y})})]})]})})}function Yoe({open:e,onOpenChange:t}){let{t:n}=K(),{toast:r}=pP(),i=kee(),a=Aee(),[o,s]=(0,p.useState)(new Set),c=()=>i.mutate(void 0,{onSuccess:e=>s(new Set(e.changes.filter(e=>!e.skippedBecauseUserModified).map(e=>e.id)))}),l=i.data?.changes??[],u=e=>e.kind===`new_model`?n(`models.sync.newModel`):e.kind===`price`?n(`models.sync.price`,{key:e.priceKey??``}):n(`models.sync.field`,{field:e.field??``});return(0,m.jsxs)(iP,{open:e,onOpenChange:e=>{t(e),e&&!i.data&&c()},width:640,title:n(`models.sync`),description:n(`models.syncDetail`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{className:`mr-auto`,variant:`plain`,onClick:c,loading:i.isPending,children:n(`common.refresh`)}),(0,m.jsx)(X,{onClick:()=>t(!1),children:n(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:o.size===0,loading:a.isPending,onClick:()=>a.mutate([...o],{onSuccess:e=>{r(n(`models.sync.applied`,{count:e.applied}),`success`),t(!1),i.reset()},onError:e=>r($(e),`error`)}),children:n(`models.sync.apply`,{count:o.size})})]}),children:[e&&!i.data&&!i.isPending&&!i.isError&&(0,m.jsx)(`div`,{className:`py-6 text-center`,children:(0,m.jsx)(X,{variant:`primary`,onClick:c,children:n(`models.sync.check`)})}),i.isPending&&(0,m.jsx)(QT,{lines:4}),i.isError&&(0,m.jsx)(lE,{tone:`danger`,title:n(`common.error`),children:$(i.error)}),i.data&&l.length===0&&(0,m.jsx)(lE,{tone:`success`,title:n(`models.sync.none`)}),l.length>0&&(0,m.jsx)(G6,{caption:n(`models.sync`),selectable:!0,rowKey:`id`,itemName:{one:n(`models.sync.changeOne`),other:n(`models.sync.changeOther`)},selectedKeys:[...o],onSelectionChange:e=>s(new Set(e)),rows:l.map(e=>({id:e.id,model:e.modelId,kind:u(e),c:e})),columns:[{key:`model`,label:n(`models.col.model`),render:e=>(0,m.jsx)(`span`,{className:`font-mono text-[12px]`,children:String(e)})},{key:`kind`,label:n(`models.sync.change`),render:(e,t)=>(0,m.jsxs)(`span`,{className:`flex flex-col items-start gap-1`,children:[(0,m.jsxs)(`span`,{className:`flex flex-wrap gap-1`,children:[(0,m.jsx)(Q,{tone:t.c.kind===`new_model`?`green`:`neutral`,children:t.kind}),t.c.skippedBecauseUserModified&&(0,m.jsx)(Q,{tone:`orange`,children:n(`models.sync.userModified`)})]}),t.c.kind!==`new_model`&&(0,m.jsxs)(`span`,{className:`grid w-full grid-cols-2 gap-2 font-mono text-[10.5px]`,children:[(0,m.jsx)(`span`,{className:`truncate text-[var(--danger)]`,title:EI(t.c.before),children:JSON.stringify(t.c.before)??`∅`}),(0,m.jsx)(`span`,{className:`truncate text-[var(--success)]`,title:EI(t.c.after),children:JSON.stringify(t.c.after)??`∅`})]})]})}]})]})}function l8(e,t){let n=new Map;for(let r of e)n.set(r.bucket,(n.get(r.bucket)??0)+r[t]);return[...n.entries()].sort(([e],[t])=>e.localeCompare(t)).map(([e,t])=>({bucket:e,value:t}))}var u8=e=>String(e).padStart(2,`0`),d8=e=>`${e.getFullYear()}-${u8(e.getMonth()+1)}-${u8(e.getDate())}`,f8={"7d":7,"30d":30,"90d":90};function p8(e,t=new Date){if(e===`today`)return new Date(t.getFullYear(),t.getMonth(),t.getDate());let n=f8[e];return n?new Date(t.getFullYear(),t.getMonth(),t.getDate()-(n-1)):null}function m8(e=365,t=new Date){let n=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=new Date(n.getFullYear(),n.getMonth(),n.getDate()-(e-1)),i=new Date(r.getFullYear(),r.getMonth(),r.getDate()-(r.getDay()+6)%7),a=new Date(n.getFullYear(),n.getMonth(),n.getDate()+(6-(n.getDay()+6)%7)),o=[];for(let e=i;e<=a;e=new Date(e.getFullYear(),e.getMonth(),e.getDate()+1))o.push(d8(e));let s=[],c=[];for(let e=0;e<o.length;e+=7)s.push(Array.from({length:7},(t,n)=>e+n)),c.push({index:s.length-1,month:Number(o[e].slice(5,7)),year:Number(o[e].slice(0,4))});return{days:o,weeks:s,months:s.flatMap((e,t)=>{let n=e.find(e=>o[e].slice(8)===`01`);return n===void 0?[]:[{index:t,label:Number(o[n].slice(5,7))}]}),monthLabels:c}}function Xoe(e,t){return e<=0?0:t<=0?1:Math.min(4,Math.max(1,Math.ceil(e/t*4)))}function h8(e,t=new Date){if(e===`today`){let e=d8(t);return Array.from({length:24},(t,n)=>`${e}T${u8(n)}:00`)}let n=p8(e,t),r=f8[e]??0;return n?Array.from({length:r},(e,t)=>d8(new Date(n.getFullYear(),n.getMonth(),n.getDate()+t))):[]}function g8(e,t){if(t.length===0)return e;let n=new Map(e.map(e=>[e.bucket,e.value]));return t.map(e=>({bucket:e,value:n.get(e)??0}))}var _8=e=>`${e.slice(5,7)}/${e.slice(8,10)}`,Zoe=e=>e.includes(`T`)?e.slice(11,16):_8(e),Qoe=e=>e.includes(`T`)?`${_8(e)} ${e.slice(11,16)}`:_8(e);function v8(e){let t=new Map;for(let n of e){let e=t.get(n.key)??{key:n.key,requests:0,tokens:0,costUsd:0};e.requests+=n.requests,e.tokens+=n.tokens,e.costUsd+=n.costUsd,t.set(n.key,e)}let n=[...t.values()],r=n.reduce((e,t)=>e+t.costUsd,0),i=n.reduce((e,t)=>e+t.requests,0);return n.map(e=>({...e,share:r>0?e.costUsd/r:i>0?e.requests/i:0}))}var y8={figure:`_figure_7arn1_3`,scroll:`_scroll_7arn1_8`,plot:`_plot_7arn1_12`,months:`_months_7arn1_14`,month:`_month_7arn1_14`,weekdays:`_weekdays_7arn1_19`,weekday:`_weekday_7arn1_19`,grid:`_grid_7arn1_22`,week:`_week_7arn1_15`,cell:`_cell_7arn1_26`,swatch:`_swatch_7arn1_29`,bubble:`_bubble_7arn1_44`,foot:`_foot_7arn1_52`,summary:`_summary_7arn1_53`,legend:`_legend_7arn1_54`,srOnly:`_srOnly_7arn1_56`},$oe=[0,1,2,3,4],ese=44,b8=100;function tse({label:e,data:t,days:n=365,weekdays:r,summary:i,legend:a,formatDay:o,formatMonth:s,formatMonthStart:c}){let l=(0,p.useMemo)(()=>m8(n),[n]),u=(0,p.useMemo)(()=>new Map(t.map(e=>[e.day,e.requests])),[t]),d=(0,p.useMemo)(()=>t.reduce((e,t)=>Math.max(e,t.requests),0),[t]),f=(0,p.useMemo)(()=>l.weeks.map((e,t)=>{let n=l.months.find(e=>e.index===t);if(n)return s(n.label);if(t!==0)return;let r=l.monthLabels[0];return c(r.month,r.year)}),[s,c,l]),[h,g]=(0,p.useState)(null),_=(0,p.useRef)(null);return(0,m.jsxs)(`figure`,{className:y8.figure,children:[(0,m.jsx)(`figcaption`,{className:y8.srOnly,children:e}),(0,m.jsx)(`div`,{className:y8.scroll,children:(0,m.jsxs)(`div`,{className:y8.plot,ref:_,role:`img`,"aria-label":`${e}. ${i}`,children:[(0,m.jsx)(`div`,{className:y8.months,"data-months":!0,"aria-hidden":`true`,children:f.map((e,t)=>(0,m.jsx)(`span`,{className:y8.month,children:e??``},t))}),(0,m.jsx)(`div`,{className:y8.weekdays,"data-weekdays":!0,"aria-hidden":`true`,children:r.map((e,t)=>(0,m.jsx)(`span`,{className:y8.weekday,children:e},t))}),(0,m.jsx)(`div`,{className:y8.grid,"data-grid":!0,"aria-hidden":`true`,onPointerOver:e=>{let t=e.target.dataset.day===void 0?null:e.target,n=_.current?.getBoundingClientRect();if(!t||!n)return g(null);let r=t.getBoundingClientRect(),i=t.dataset.day,a=r.left+r.width/2-n.left,o=r.top-n.top,s=a<b8?`start`:a>n.width-b8?`end`:`center`;g({day:i,requests:u.get(i)??0,left:s===`start`?8:s===`end`?n.width-8:a,top:o,above:o>ese,align:s})},onPointerLeave:()=>g(null),children:l.weeks.map((e,t)=>(0,m.jsx)(`span`,{className:y8.week,children:e.map(e=>{let t=l.days[e],n=u.get(t)??0;return(0,m.jsx)(`span`,{className:y8.cell,"data-day":t,"data-level":Xoe(n,d)},e)})},t))}),h&&(0,m.jsx)(`span`,{className:y8.bubble,"data-bubble":!0,"data-align":h.align,"data-below":!h.above||void 0,style:{left:h.left,top:h.top},children:o(h.day,h.requests)})]})}),(0,m.jsxs)(`div`,{className:y8.foot,children:[(0,m.jsx)(`span`,{className:y8.summary,children:i}),(0,m.jsxs)(`span`,{className:y8.legend,"aria-hidden":`true`,children:[a.less,$oe.map(e=>(0,m.jsx)(`span`,{className:y8.swatch,"data-level":e},e)),a.more]})]})]})}var x8={figure:`_figure_uvuks_1`,header:`_header_uvuks_4`,kind:`_kind_uvuks_5`,when:`_when_uvuks_5`,value:`_value_uvuks_8`,unit:`_unit_uvuks_9`,swap:`_swap_uvuks_10`,swapText:`_swapText_uvuks_11`,roll:`_roll_uvuks_13`,digits:`_digits_uvuks_14`,digit:`_digit_uvuks_14`,sizer:`_sizer_uvuks_16`,chart:`_chart_uvuks_19`,plot:`_plot_uvuks_20`,svg:`_svg_uvuks_21`,grid:`_grid_uvuks_22`,baseline:`_baseline_uvuks_23`,cursor:`_cursor_uvuks_24`,mean:`_mean_uvuks_25`,bar:`_bar_uvuks_27`,gutter:`_gutter_uvuks_35`,tick:`_tick_uvuks_36`,meanLabel:`_meanLabel_uvuks_36`,tickText:`_tickText_uvuks_37`,axis:`_axis_uvuks_40`,axisLabel:`_axisLabel_uvuks_41`,scrubber:`_scrubber_uvuks_44`,srOnly:`_srOnly_uvuks_46`,measure:`_measure_uvuks_48`},{spring:S8,duration:C8,ease:w8,blur:T8,stagger:E8}=Y,D8=({visualDuration:e,bounce:t},n=.01)=>{let r=2*Math.PI/(e*1.2);return{type:`spring`,stiffness:r*r,damping:2*(1-t)*r,restDelta:n,restSpeed:n*2}},O8=D8(S8.smooth),k8=D8(S8.morph),nse=D8(S8.snappy),rse=D8(S8.smooth,1e-5),ise=D8({visualDuration:C8.standard,bounce:0}),A8={duration:C8.instant,ease:[...w8.standard]};function j8(e){let t=null,n=()=>{t=e()};return mr.update(n),()=>{hr(n),t?.stop()}}var M8=12,ase=.58,ose=28,sse=4,cse=new Intl.NumberFormat(`en-US`,{maximumFractionDigits:0}),N8=(e,t,n)=>Math.min(n,Math.max(t,e));function lse(e){let t=Math.max(e,1),n=10**Math.floor(Math.log10(t/4));for(let e of[1,2,3,5,10]){let r=e*n,i=Math.ceil(t/r);if(i<=4)return{top:i*r,ticks:Array.from({length:i+1},(e,t)=>t*r)}}return{top:t,ticks:[0,t]}}function use(e,t,n,r){if(t<=0||n<=.01)return`M${e.toFixed(2)} ${r}H${(e+Math.max(t,0)).toFixed(2)}Z`;let i=Math.min(sse,t/2,n),a=r-n,o=e=>e.toFixed(2);return`M${o(e)} ${r}V${o(a+i)}A${o(i)} ${o(i)} 0 0 1 ${o(e+i)} ${o(a)}H${o(e+t-i)}A${o(i)} ${o(i)} 0 0 1 ${o(e+t)} ${o(a+i)}V${r}Z`}function P8(e,t){let n=Gf(e);return(0,p.useEffect)(()=>{if(n.get()!==e){if(t){n.jump(e);return}return j8(()=>bp(n,e,O8))}},[e,t,n]),n}var F8=({width:e,unit:t},n)=>e.get()-(n+.5)*e.get()*t.get();function dse({id:e,place:t,value:n,delay:r,shown:i,active:a,frame:o,scale:s,height:c,reduced:l}){let[u,d]=zu(),f=Gf(0),h=P8(t,l),[g]=(0,p.useState)(r),_=(0,p.useRef)(!1),v=(0,p.useRef)(d);(0,p.useEffect)(()=>{v.current=d},[d]),(0,p.useEffect)(()=>{if(!u)return;if(l){f.jump(n),_.current=!0;return}if(!i)return;let e=!_.current;return _.current=!0,j8(()=>bp(f,n,e?{...k8,delay:g}:O8))},[f,g,u,l,i,n]),(0,p.useEffect)(()=>{if(!u){if(l){v.current?.();return}return j8(()=>bp(f,0,{...ise,onComplete:()=>v.current?.()}))}},[f,u,l]);let y=Jf(()=>{let e=o.width.get()*o.unit.get(),t=Math.min(e*ase,ose);return use(F8(o,h.get())-t/2,t,f.get()/s.get()*(c-M8),c)});return(0,m.jsx)(H.path,{className:x8.bar,"data-key":e,"data-active":a||void 0,d:y})}function I8(e,t,n){return Jf(()=>Math.round(n-e/t.get()*(n-M8))+.5)}function fse({value:e,scale:t,height:n}){let r=I8(e,t,n);return e===0?null:(0,m.jsx)(H.line,{className:x8.grid,x1:0,x2:`100%`,y1:r,y2:r,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:A8},transition:{duration:C8.standard,ease:[...w8.standard]}})}function pse({value:e,scale:t,height:n,avoid:r,format:i}){let a=I8(e,t,n),o=Jf(()=>r?N8((Math.abs(a.get()-r.get())-10)/6,0,1):1);return(0,m.jsx)(H.span,{className:x8.tick,style:{y:a},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:A8},transition:{duration:C8.standard,ease:[...w8.standard]},children:(0,m.jsx)(H.span,{className:x8.tickText,style:{opacity:o},children:i(e)})})}function mse({text:e,size:t,shift:n,place:r,frame:i,reduced:a}){let o=P8(r,a),s=Jf(()=>F8(i,o.get())-t/2+n);return(0,m.jsx)(H.span,{className:x8.axisLabel,style:{x:s},initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:A8},transition:{duration:C8.standard,ease:[...w8.standard]},children:e})}function hse(e,t,n){let r=new Map;if(!t)return r;let i=Math.max(1,e.length),a=e.flatMap((r,a)=>{let o=r.axisLabel?n[r.axisLabel]:void 0;if(o===void 0)return[];let s=t-(e.length-1-a+.5)*(t/i)-o/2;return[{key:r.key,size:o,natural:s,left:N8(s,0,Math.max(0,t-o))}]}).reverse();for(let e=1;e<=a.length;e++){let t=a.filter((t,n)=>n%e===0);if(e===a.length||t.every((e,n)=>n===0||e.left+e.size+10<=t[n-1].left)){t.forEach(e=>r.set(e.key,e.left-e.natural));break}}return r}var L8={hidden:e=>({opacity:0,y:`${.3*e}em`,filter:`blur(${T8.soft}px)`}),shown:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:C8.standard,ease:[...w8.enter]}},gone:e=>({opacity:0,y:`${-.3*e}em`,filter:`blur(${T8.subtle}px)`,transition:{duration:C8.instant,ease:[...w8.standard]}})},R8={hidden:{opacity:0,y:0,filter:`blur(0px)`},shown:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:C8.fast}},gone:{opacity:0,y:0,filter:`blur(0px)`,transition:{duration:C8.instant}}};function z8({text:e,direction:t,reduced:n}){return(0,m.jsx)(`span`,{className:x8.swap,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,custom:t,children:(0,m.jsx)(H.span,{className:x8.swapText,custom:t,variants:n?R8:L8,initial:`hidden`,animate:`shown`,exit:`gone`,children:e},e)})})}function gse({text:e,direction:t,reduced:n}){let r=(0,p.useRef)(null),i=Gf(`auto`);(0,p.useLayoutEffect)(()=>{let e=r.current;if(!e||typeof ResizeObserver>`u`)return;let t=null,a=new ResizeObserver(()=>{let r=e.offsetWidth;t!==null&&t!==e.textContent&&!n?bp(i,r,k8):i.jump(r),t=e.textContent});return a.observe(e),()=>a.disconnect()},[n,i]);let a=[...e],o=n?R8:L8;return(0,m.jsxs)(H.span,{className:x8.roll,style:{width:i},children:[(0,m.jsx)(`span`,{ref:r,className:x8.sizer,"aria-hidden":`true`,children:e}),(0,m.jsx)(`span`,{className:x8.digits,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,custom:t,anchorX:`right`,children:a.map((e,n)=>(0,m.jsx)(H.span,{className:x8.digit,custom:t,variants:o,initial:`hidden`,animate:`shown`,exit:`gone`,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,custom:t,anchorX:`right`,children:(0,m.jsx)(H.span,{className:x8.digit,custom:t,variants:o,initial:`hidden`,animate:`shown`,exit:`gone`,children:e},e)})},`p${a.length-n}`))})})]})}var _se=()=>()=>{};function vse(){let e=(0,p.useSyncExternalStore)(_se,()=>!0,()=>!1);return!!Zf()&&e}function yse({data:e,label:t,period:n,unit:r=``,averageLabel:i=`Daily average`,valueLabel:a=`Total`,categoryLabel:o=`Day`,showAverage:s=!0,height:c=176,formatValue:l=e=>cse.format(e)}){let u=vse(),d=(0,p.useRef)(null),f=(0,p.useRef)(null),h=Cp(d,{once:!0,amount:.35}),g=(0,p.useId)(),_=Math.max(e.length,1),v=e.length-1,y=e.length?e.reduce((e,t)=>e+t.value,0)/e.length:0,b=e.reduce((e,t)=>Math.max(e,t.value),0),{top:x,ticks:S}=(0,p.useMemo)(()=>lse(b),[b]),C=e.map(e=>e.key).join(`|`),w=r?` ${r}`:``,[T,E]=(0,p.useState)(()=>({signature:C,keys:new Set(e.map(e=>e.key)),fresh:new Map,changes:0})),[D,O]=(0,p.useState)(null);if(T.signature!==C){let t=e.map((e,t)=>({key:e.key,place:v-t})).filter(e=>!T.keys.has(e.key)).sort((e,t)=>e.place-t.place),n=Math.min(E8.item,.32/Math.max(1,t.length));E({signature:C,keys:new Set(e.map(e=>e.key)),fresh:new Map(t.map((e,t)=>[e.key,t*n])),changes:T.changes+1}),O(null)}let k=Math.min(E8.item,.36/_),A=D===null?null:Math.min(D,v),j=A!==null&&v>=0,M=j?e[A].value:y,[N,P]=(0,p.useState)({value:M,index:A,valueWay:1,indexWay:1});(N.value!==M||N.index!==A)&&P({value:M,index:A,valueWay:M===N.value?N.valueWay:M>N.value?1:-1,indexWay:A===null||N.index===null?1:Math.sign(A-N.index)||1});let F=Gf(0),I=Gf(1/_),L=Gf(x),R=Gf(0),ee=Gf(0),te=(0,p.useMemo)(()=>({width:F,unit:I}),[F,I]),[ne,re]=(0,p.useState)(0),[ie,ae]=(0,p.useState)({}),oe=(0,p.useRef)(null),se=[...new Set(e.map(e=>e.axisLabel).filter(e=>!!e))].join(`
|
|
78
|
-
`);(0,p.useLayoutEffect)(()=>{let e=f.current,t=oe.current;if(!e||!t)return;let n=()=>{F.set(e.clientWidth),re(e.clientWidth);let n={};t.querySelectorAll(`[data-text]`).forEach(e=>{n[e.dataset.text??``]=e.offsetWidth}),ae(e=>Object.keys(n).every(t=>e[t]===n[t])?e:n)};if(n(),typeof ResizeObserver>`u`)return;let r=new ResizeObserver(n);return r.observe(e),r.observe(t),()=>r.disconnect()},[se,F]);let ce=(0,p.useMemo)(()=>hse(e,ne,ie),[e,ne,ie]);(0,p.useEffect)(()=>{if(u){I.jump(1/_),L.jump(x);return}return j8(()=>{let e=[bp(I,1/_,rse),bp(L,x,O8)];return{stop:()=>e.forEach(e=>e.stop())}})},[_,u,L,x,I]);let le=(0,p.useRef)(!1);(0,p.useEffect)(()=>{if(u){R.jump(y);return}if(!h)return;let e=!le.current;return le.current=!0,j8(()=>bp(R,y,e?{...O8,delay:.12}:O8))},[y,h,R,u]);let z=(0,p.useRef)(!1);(0,p.useEffect)(()=>{if(A===null){z.current=!1;return}let e=v-A;if((u||!z.current)&&ee.jump(e),z.current=!0,u)return;let t=bp(ee,e,nse);return()=>t.stop()},[ee,A,v,u]);let ue=Jf(()=>Math.round(F8(te,ee.get()))+.5),de=Jf(()=>Math.round(c-R.get()/L.get()*(c-M8))+.5),fe=Jf(()=>`Avg ${l(Math.round(R.get()))}`),pe=e=>{let t=f.current?.getBoundingClientRect();if(!t?.width)return v;let n=Math.floor((t.right-e)/t.width*_);return N8(v-n,0,v)},me=e=>{if(e.key===`Escape`&&j){e.preventDefault(),O(null);return}let t=A??v+1,n=Math.min(7,_),r={ArrowLeft:t-1,ArrowDown:t-1,ArrowRight:A===null?v:t+1,ArrowUp:A===null?v:t+1,PageDown:t-n,PageUp:t+n,Home:0,End:v}[e.key];r===void 0||v<0||(e.preventDefault(),O(N8(r,0,v)))},he=e=>{e.pointerType!==`mouse`&&e.currentTarget.setPointerCapture?.(e.pointerId),O(pe(e.clientX))},ge=e=>{(e.pointerType===`mouse`||e.buttons)&&O(pe(e.clientX))},_e=e=>{e.pointerType!==`mouse`&&O(null)},ve=j?e[A]:null,ye=ve??e[v],be=ye?`${ye.label}: ${l(ye.value)}${w}`:`No data`,xe=e.reduce((e,t)=>!e||t.value>e.value?t:e,null),Se=e.reduce((e,t)=>!e||t.value<e.value?t:e,null),Ce=`${t}, ${n}. ${i} ${l(Math.round(y))}${w}.${xe?` Highest ${xe.label}, ${l(xe.value)}${w}.`:``}${Se&&Se!==xe?` Lowest ${Se.label}, ${l(Se.value)}${w}.`:``}`,we=h||u,Te=s?de:null;return(0,m.jsxs)(`figure`,{ref:d,className:x8.figure,"aria-labelledby":g,children:[(0,m.jsxs)(`figcaption`,{id:g,className:x8.srOnly,children:[t,`, `,n]}),(0,m.jsxs)(`div`,{className:x8.header,"aria-hidden":`true`,children:[(0,m.jsx)(`span`,{className:x8.kind,children:(0,m.jsx)(z8,{text:j?a:i,direction:1,reduced:u})}),(0,m.jsxs)(`span`,{className:x8.value,children:[(0,m.jsx)(gse,{text:l(j?e[A].value:Math.round(y)),direction:N.valueWay,reduced:u}),r&&(0,m.jsx)(`span`,{className:x8.unit,children:r})]}),(0,m.jsx)(`span`,{className:x8.when,children:(0,m.jsx)(z8,{text:ve?ve.label:n,direction:j?N.indexWay:1,reduced:u})})]}),(0,m.jsxs)(`div`,{className:x8.chart,"data-scrubbing":j||void 0,children:[(0,m.jsx)(`div`,{ref:f,className:x8.plot,style:{height:c},children:(0,m.jsxs)(`svg`,{className:x8.svg,width:`100%`,height:c,role:`img`,"aria-label":Ce,children:[(0,m.jsx)(V,{initial:!1,children:S.map(e=>(0,m.jsx)(fse,{value:e,scale:L,height:c},e))}),(0,m.jsx)(H.line,{className:x8.cursor,x1:ue,x2:ue,y1:M8,y2:c,initial:!1,animate:{opacity:+!!j},transition:u?{duration:0}:A8}),(0,m.jsx)(V,{initial:!1,children:e.map((e,t)=>(0,m.jsx)(dse,{id:e.key,place:v-t,value:e.value,delay:T.fresh.get(e.key)??t*k,shown:we,active:A===t,frame:te,scale:L,height:c,reduced:u},e.key))}),(0,m.jsx)(`line`,{className:x8.baseline,x1:0,x2:`100%`,y1:c-.5,y2:c-.5}),s&&(0,m.jsx)(H.line,{className:x8.mean,x1:0,x2:`100%`,y1:de,y2:de,initial:!1,animate:{opacity:+!!we},transition:u?{duration:0}:{duration:C8.standard,delay:.12}})]})}),(0,m.jsxs)(`div`,{className:x8.gutter,"aria-hidden":`true`,children:[(0,m.jsx)(V,{initial:!1,children:S.map(e=>(0,m.jsx)(pse,{value:e,scale:L,height:c,avoid:Te,format:l},e))}),s&&(0,m.jsx)(H.span,{className:x8.meanLabel,style:{y:de},initial:!1,animate:{opacity:+!!we},transition:u?{duration:0}:{duration:C8.standard,delay:.12},children:(0,m.jsx)(H.span,{className:x8.tickText,children:fe})})]}),(0,m.jsxs)(`div`,{className:x8.axis,"aria-hidden":`true`,children:[(0,m.jsx)(V,{initial:!1,children:e.map((e,t)=>e.axisLabel&&ce.has(e.key)?(0,m.jsx)(mse,{text:e.axisLabel,size:ie[e.axisLabel]??0,shift:ce.get(e.key)??0,place:v-t,frame:te,reduced:u},`${e.key}:${e.axisLabel}`):null)}),(0,m.jsx)(`span`,{ref:oe,className:x8.measure,children:se.split(`
|
|
79
|
-
`).filter(Boolean).map(e=>(0,m.jsx)(`span`,{"data-text":e,children:e},e))})]}),(0,m.jsx)(`div`,{className:x8.scrubber,role:`slider`,tabIndex:0,"aria-label":`${t}, explore by ${o.toLowerCase()}`,"aria-orientation":`horizontal`,"aria-valuemin":1,"aria-valuemax":Math.max(1,e.length),"aria-valuenow":(A??v)+1,"aria-valuetext":be,onPointerDown:he,onPointerMove:ge,onPointerUp:_e,onPointerCancel:()=>O(null),onPointerLeave:e=>{e.pointerType===`mouse`&&O(null)},onKeyDown:me,onBlur:()=>O(null),onFocus:e=>{e.currentTarget.matches(`:focus-visible`)&&v>=0&&O(e=>e??v)}})]}),(0,m.jsxs)(`table`,{className:x8.srOnly,children:[(0,m.jsxs)(`caption`,{children:[t,`, `,n]}),(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{children:[(0,m.jsx)(`th`,{scope:`col`,children:o}),(0,m.jsx)(`th`,{scope:`col`,children:t})]})}),(0,m.jsx)(`tbody`,{children:e.map(e=>(0,m.jsxs)(`tr`,{children:[(0,m.jsx)(`th`,{scope:`row`,children:e.label}),(0,m.jsxs)(`td`,{children:[l(e.value),w]})]},e.key))})]}),(0,m.jsx)(`p`,{className:x8.srOnly,"aria-live":`polite`,"aria-atomic":`true`,children:T.changes?`${n}. ${i} ${l(Math.round(y))}${w}.`:``})]})}var bse=Object.defineProperty,B8=(e,t)=>bse(e,`name`,{value:t,configurable:!0}),V8={Automatic:`automatic`,Manual:`manual`},H8=`Tabs`,[xse,Sse]=Pv(H8,[nj]),U8=nj(),[Cse,W8]=xse(H8),wse=p.forwardRef(B8(function(e,t){let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=V8.Automatic,...l}=e,u=vb(s),[d,f]=Ay({prop:r,onChange:i,defaultProp:a??``,caller:H8});return(0,m.jsx)(Cse,{scope:n,baseId:$y(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,m.jsx)(Ry.div,{dir:u,"data-orientation":o,...l,ref:t})})},`Tabs`)),Tse=`TabsList`,Ese=p.forwardRef(B8(function(e,t){let{__scopeTabs:n,loop:r=!0,...i}=e,a=W8(Tse,n),o=U8(n);return(0,m.jsx)(sj,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,m.jsx)(Ry.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})},`TabsList`)),Dse=`TabsTrigger`,Ose=p.forwardRef(B8(function(e,t){let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=W8(Dse,n),s=U8(n),c=K8(o.baseId,r),l=q8(o.baseId,r),u=r===o.value;return(0,m.jsx)(uj,{asChild:!0,...s,focusable:!i,active:u,children:(0,m.jsx)(Ry.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:q(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?(e.currentTarget.focus(),o.onValueChange(r)):e.preventDefault()}),onKeyDown:q(e.onKeyDown,e=>{i||e.target!==e.currentTarget||[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:q(e.onFocus,()=>{let e=o.activationMode!==V8.Manual;!u&&!i&&e&&o.onValueChange(r)})})})},`TabsTrigger`)),kse=`TabsContent`,G8=p.forwardRef(B8(function(e,t){let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=W8(kse,n),c=K8(s.baseId,r),l=q8(s.baseId,r),u=r===s.value,d=p.useRef(u);return p.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,m.jsx)(Uy,{present:i||u,children:({present:n})=>(0,m.jsx)(Ry.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})},`TabsContent`));function K8(e,t){return`${e}-trigger-${t}`}B8(K8,`makeTriggerId`);function q8(e,t){return`${e}-content-${t}`}B8(q8,`makeContentId`);var J8={root:`_root_8i0lj_1`,listShell:`_listShell_8i0lj_2`,viewport:`_viewport_8i0lj_3`,list:`_list_8i0lj_2`,scrollButton:`_scrollButton_8i0lj_10`,scrollLeft:`_scrollLeft_8i0lj_11`,scrollRight:`_scrollRight_8i0lj_12`,trigger:`_trigger_8i0lj_15`,selection:`_selection_8i0lj_18`,triggerLabel:`_triggerLabel_8i0lj_19`,content:`_content_8i0lj_22`},Y8=(0,p.createContext)({active:``,layoutId:`tabs`,direction:1,panelHeightRef:{current:null},leavingRectRef:{current:null}});function X8({value:e,defaultValue:t,onValueChange:n,className:r,...i}){let[a,o]=(0,p.useState)(t??``),[s,c]=(0,p.useState)(1),l=e??a,u=(0,p.useId)(),d=(0,p.useRef)(null),f=(0,p.useRef)(null),h=(0,p.useRef)(null);function g(t){let r=d.current;h.current=r?.querySelector(`:scope > [role="tabpanel"][data-state="active"]`)?.getBoundingClientRect()??null;let i=r?Array.from(r.querySelectorAll(`[role="tab"][data-value]`)).filter(e=>e.closest(`.${J8.root}`)===r).map(e=>e.dataset.value):[],a=i.indexOf(l),s=i.indexOf(t);a>=0&&s>=0&&a!==s&&c(s>a?1:-1),e===void 0&&o(t),n?.(t)}return(0,m.jsx)(Y8.Provider,{value:{active:l,layoutId:u,direction:s,panelHeightRef:f,leavingRectRef:h},children:(0,m.jsx)(Yu,{id:u,children:(0,m.jsx)(wse,{...i,ref:d,className:[J8.root,r].filter(Boolean).join(` `),value:l,onValueChange:g})})})}function Z8({className:e,...t}){let{active:n}=(0,p.useContext)(Y8),r=Zf(),i=(0,p.useRef)(null),a=(0,p.useRef)(null),o=(0,p.useRef)(null),[s,c]=(0,p.useState)({overflow:!1,left:!1,right:!1}),l=(0,p.useCallback)(()=>{let e=i.current,t=a.current;if(!e||!t)return;let n=Math.max(0,t.scrollWidth-t.clientWidth),r={overflow:t.scrollWidth>e.clientWidth+1,left:t.scrollLeft>1,right:t.scrollLeft<n-1};c(e=>e.overflow===r.overflow&&e.left===r.left&&e.right===r.right?e:r)},[]),u=(0,p.useCallback)(e=>{let t=a.current;if(!t||!e)return;let n=t.getBoundingClientRect(),i=e.getBoundingClientRect(),o=Math.max(0,t.scrollWidth-t.clientWidth),s=n.left+(t.scrollLeft>1?34:0),c=n.right-(t.scrollLeft<o-1?34:0),l=i.left<s?i.left-s:i.right>c?i.right-c:0;l&&t.scrollBy({left:l,behavior:r?`instant`:`smooth`})},[r]);(0,p.useLayoutEffect)(()=>{let e=i.current,t=a.current,n=o.current;if(!e||!t||!n)return;let r=new ResizeObserver(l);return r.observe(e),r.observe(t),r.observe(n),t.addEventListener(`scroll`,l,{passive:!0}),l(),()=>{r.disconnect(),t.removeEventListener(`scroll`,l)}},[l]),(0,p.useLayoutEffect)(()=>{u(o.current?.querySelector(`[role="tab"][data-state="active"]`)??null)},[n,u]);let d=e=>a.current?.scrollBy({left:e*(a.current?.clientWidth??0)*.75,behavior:r?`instant`:`smooth`});return(0,m.jsxs)(`div`,{ref:i,className:J8.listShell,"data-overflow":s.overflow,"data-left":s.left,"data-right":s.right,children:[s.overflow&&(0,m.jsx)(`button`,{type:`button`,className:`${J8.scrollButton} ${J8.scrollLeft}`,"aria-label":`Scroll tabs left`,disabled:!s.left,onClick:()=>d(-1),children:(0,m.jsx)(Px,{width:17,height:17,"aria-hidden":`true`})}),(0,m.jsx)(H.div,{ref:a,layoutScroll:!0,className:J8.viewport,onFocusCapture:e=>{e.target instanceof HTMLElement&&e.target.getAttribute(`role`)===`tab`&&u(e.target)},children:(0,m.jsx)(Ese,{...t,ref:o,className:[J8.list,e].filter(Boolean).join(` `)})}),s.overflow&&(0,m.jsx)(`button`,{type:`button`,className:`${J8.scrollButton} ${J8.scrollRight}`,"aria-label":`Scroll tabs right`,disabled:!s.right,onClick:()=>d(1),children:(0,m.jsx)(Ix,{width:17,height:17,"aria-hidden":`true`})})]})}function Q8({className:e,children:t,value:n,...r}){let{active:i}=(0,p.useContext)(Y8),a=Zf();return(0,m.jsxs)(Ose,{...r,value:n,"data-value":n,className:[J8.trigger,e].filter(Boolean).join(` `),children:[i===n&&(0,m.jsx)(H.span,{className:J8.selection,layoutId:`selection`,layoutDependency:i,transition:a?{duration:0}:Y.spring.morph,"aria-hidden":`true`}),(0,m.jsx)(`span`,{className:J8.triggerLabel,children:t})]})}var Ase={enter:e=>({opacity:0,x:e*8}),center:{opacity:1,x:0,transition:{opacity:{duration:Y.duration.standard,ease:[...Y.ease.enter]},x:Y.spring.smooth}},exit:e=>({opacity:0,x:e*-6,transition:{duration:Y.duration.instant,ease:[...Y.ease.standard]}})},jse={enter:{opacity:0,x:0},center:{opacity:1,x:0,transition:{duration:Y.duration.instant}},exit:{opacity:0,x:0,transition:{duration:.1}}};function $8({className:e,value:t,forceMount:n,children:r,...i}){let{active:a,direction:o,panelHeightRef:s,leavingRectRef:c}=(0,p.useContext)(Y8),l=Zf(),u=(0,p.useRef)(null),d=a===t,f=[J8.content,e].filter(Boolean).join(` `);return(0,p.useLayoutEffect)(()=>{let e=u.current;if(!e||n)return;if(!d){let t=c.current,n=e.getBoundingClientRect();t&&(e.style.translate=`${t.left-n.left}px ${t.top-n.top}px`),e.inert=!0;return}e.style.translate=``,e.inert=!1;let t=s.current,r=e.offsetHeight,i,a=()=>{e.style.height=``,e.style.overflow=``};t!==null&&Math.abs(t-r)>1&&!l&&(r>t&&(e.style.overflow=`clip`),i=bp(e,{height:[t,r]},{...Y.spring.smooth,onComplete:a})),s.current=i&&t!==null?t:r;let o=new ResizeObserver(()=>{s.current=e.offsetHeight});return o.observe(e),()=>{o.disconnect(),i?.stop(),a()}},[d,l,n,s,c]),n?(0,m.jsx)(G8,{...i,value:t,forceMount:!0,className:f,children:r}):(0,m.jsx)(V,{initial:!1,mode:`popLayout`,custom:o,children:d&&(0,p.createElement)(G8,{...i,key:t,value:t,forceMount:!0,asChild:!0},(0,m.jsx)(H.div,{ref:u,className:f,custom:o,variants:l?jse:Ase,initial:`enter`,animate:`center`,exit:`exit`,children:r}))})}function Mse(e){return!!(e.detection?.installed||e.install?.installed||e.enabled)}function Nse(e,t,n){let r=new Set((e??[]).filter(Mse).map(e=>e.kind));return t.filter(e=>r.has(e)||e===n)}function e5(e,t){return!Number.isFinite(t)||t<=0||!Number.isFinite(e)||e<0?null:Math.min(e/t,1)}var t5=e=>Number.isFinite(e)?Math.max(0,e):0;function n5(e){let t=t5(e.totalInputTokens),n=t5(e.totalOutputTokens),r=t5(e.cacheReadTokens),i=t5(e.cacheWriteTokens),a=t5(e.reasoningTokens);return{reported:e.usageSource===`reported`,input:t,output:n,read:r,write:i,reasoning:a,uncachedInput:Math.max(0,t-r-i),regularOutput:Math.max(0,n-a),hitRatio:e.usageSource===`reported`?e5(r,t):null}}var r5=e=>[e.clientKind,e.tokenId,e.providerId,e.status,e.requestedModel,e.upstreamModel,e.systemModelId,e.responseModel].join(`\0`),i5=new class{rows=new Map;list=[];connected=!1;listListeners=new Set;rowListeners=new Map;getList=()=>this.list;getConnected=()=>this.connected;get=e=>this.rows.get(e);subscribeList=e=>(this.listListeners.add(e),()=>void this.listListeners.delete(e));subscribeRow(e,t){let n=this.rowListeners.get(e);return n||this.rowListeners.set(e,n=new Set),n.add(t),()=>{n.delete(t),n.size===0&&this.rowListeners.delete(e)}}set(e){let t=this.rows.get(e.id);this.rows.set(e.id,e),this.notifyRow(e.id),(!t||r5(t)!==r5(e))&&this.rebuildList()}delete(e){this.rows.delete(e)&&(this.notifyRow(e),this.rebuildList())}reset(e){let t=[...this.rows.keys()];this.rows.clear();for(let e of t)this.notifyRow(e);let n=this.connected!==e||t.length>0;this.connected=e,n&&this.rebuildList()}setConnected(e){this.connected!==e&&(this.connected=e,this.rebuildList())}rebuildList(){this.list=[...this.rows.values()].sort((e,t)=>e.startedAtUtc===t.startedAtUtc?e.id<t.id?1:-1:e.startedAtUtc<t.startedAtUtc?1:-1);for(let e of this.listListeners)e()}notifyRow(e){let t=this.rowListeners.get(e);if(t)for(let e of t)e()}},a5=0,o5;function Pse(e,t){let n=new AbortController,r=t=>{let n=t.data;n&&typeof n==`object`&&n.request?.id&&(n.type===`persisted`?(e(n.request.id),setTimeout(()=>i5.delete(n.request.id),1500)):i5.set(n.request))};return(async()=>{let e=1e3;for(;!n.signal.aborted;){try{await qp(`/api/requests/live`,r,n.signal,()=>i5.setConnected(!0)),e=1e3}catch{}if(n.signal.aborted)return;i5.reset(!1),t(),await new Promise(t=>setTimeout(t,e)),e=Math.min(e*2,15e3)}})(),()=>{n.abort(),i5.reset(!1)}}function Fse(e){let t=g();(0,p.useEffect)(()=>{if(!e)return;let n,r=new Set,i=()=>{n||=setTimeout(()=>{n=void 0,t.invalidateQueries({queryKey:[`requests`]});for(let e of r)t.invalidateQueries({queryKey:[`request`,e]});r.clear()},250)};return a5++===0&&(o5=Pse(e=>{r.add(e),i()},i)),()=>{n&&clearTimeout(n),--a5===0&&(o5?.(),o5=void 0)}},[e,t])}var Ise=()=>(0,p.useSyncExternalStore)(i5.subscribeList,i5.getList),Lse=()=>(0,p.useSyncExternalStore)(i5.subscribeList,i5.getConnected);function Rse(e){return(0,p.useSyncExternalStore)(t=>i5.subscribeRow(e,t),()=>i5.get(e))}var s5={toolbar:`_toolbar_1p5c5_1`,leading:`_leading_1p5c5_2`,frame:`_frame_1p5c5_4`,chips:`_chips_1p5c5_5`,slot:`_slot_1p5c5_7`,chip:`_chip_1p5c5_5`,chipLabel:`_chipLabel_1p5c5_10`,value:`_value_1p5c5_11`,separator:`_separator_1p5c5_12`,morphText:`_morphText_1p5c5_13`,morphValue:`_morphValue_1p5c5_14`,measure:`_measure_1p5c5_15`,empty:`_empty_1p5c5_18`,actions:`_actions_1p5c5_19`,clear:`_clear_1p5c5_20`,clearText:`_clearText_1p5c5_21`,srOnly:`_srOnly_1p5c5_23`,menu:`_menu_1p5c5_27`,trigger:`_trigger_1p5c5_29`,face:`_face_1p5c5_31`,surface:`_surface_1p5c5_34`,panel:`_panel_1p5c5_42`,head:`_head_1p5c5_45`,back:`_back_1p5c5_47`,title:`_title_1p5c5_49`,titleText:`_titleText_1p5c5_50`,stage:`_stage_1p5c5_51`,step:`_step_1p5c5_52`,list:`_list_1p5c5_53`,highlight:`_highlight_1p5c5_54`,item:`_item_1p5c5_55`,itemIcon:`_itemIcon_1p5c5_57`,itemLabel:`_itemLabel_1p5c5_58`,itemMeta:`_itemMeta_1p5c5_59`,metaValue:`_metaValue_1p5c5_60`,hint:`_hint_1p5c5_61`,check:`_check_1p5c5_62`,noOptions:`_noOptions_1p5c5_64`},c5={duration:Y.duration.standard,ease:[...Y.ease.enter]},l5={duration:Y.duration.instant,ease:[...Y.ease.standard]},u5={duration:0},d5={duration:Y.duration.instant,ease:[...Y.ease.standard]},f5=e=>`blur(${e}px)`,p5=e=>Math.min(1,Math.max(0,e)),zse=e=>typeof e==`string`?{value:e}:e,Bse=e=>e.label??e.value,m5=e=>({initial:e?{opacity:0}:{opacity:0,y:`0.3em`,filter:f5(Y.blur.soft)},animate:{opacity:1,y:0,filter:f5(0)},exit:e?{opacity:0,transition:u5}:{opacity:0,y:`-0.3em`,filter:f5(Y.blur.subtle),transition:l5},transition:e?d5:c5});function Vse({text:e}){let t=Zf()??!1,n=(0,p.useRef)(null),r=Gf(`auto`);return(0,p.useLayoutEffect)(()=>{let e=n.current;if(!e||typeof ResizeObserver>`u`)return;let i=null,a=new ResizeObserver(([n])=>{let a=Math.ceil(n.borderBoxSize?.[0]?.inlineSize??e.offsetWidth),o=i!==null&&i!==e.textContent;i=e.textContent,o&&!t?bp(r,a,Y.spring.morph):r.jump(a)});return a.observe(e),()=>a.disconnect()},[t,r]),(0,m.jsxs)(H.span,{className:s5.morphText,style:{width:r},children:[(0,m.jsx)(`span`,{ref:n,className:s5.measure,"aria-hidden":`true`,children:e}),(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(H.span,{className:s5.morphValue,...m5(t),children:e},e)})]})}function Hse(e,t,n){let r=Gf(`auto`);return(0,p.useLayoutEffect)(()=>{let i=e.current;if(!i||typeof ResizeObserver>`u`)return;let a=!1,o=new ResizeObserver(()=>{let e=i.offsetHeight;if(!a||n||performance.now()>t.current){a=!0,r.jump(e);return}bp(r,e,Y.spring.smooth)});return o.observe(i),()=>o.disconnect()},[t,r,e,n]),r}function Use(e,t,n){(0,p.useLayoutEffect)(()=>{let r=e.current;if(!r||typeof ResizeObserver>`u`)return;let i=new Map,a=()=>{let e=performance.now();for(let a of Array.from(r.children)){let r=a.offsetLeft,o=a.offsetTop,s=i.get(a);if(!s){i.set(a,{x:r,y:o,dx:0,dy:0});continue}let c=s.x-r,l=s.y-o;if(s.x=r,s.y=o,n||e>t.current||Math.abs(l)<1&&Math.abs(c)<40)continue;s.stop?.();let u=s.dx+c,d=s.dy+l,f=e=>{s.dx=u*(1-e),s.dy=d*(1-e),a.style.translate=e>=1?``:`${s.dx}px ${s.dy}px`};f(0),s.stop=bp(0,1,{...Y.spring.smooth,onUpdate:f,onComplete:()=>f(1)}).stop}for(let e of i.keys())e.parentElement!==r&&i.delete(e)},o=new ResizeObserver(a),s=()=>{for(let e of Array.from(r.children))o.observe(e)},c=new MutationObserver(()=>{s(),a()});return o.observe(r),s(),c.observe(r,{childList:!0}),()=>{o.disconnect(),c.disconnect();for(let e of i.values())e.stop?.()}},[t,e,n])}var h5=e=>e.valueLabel??e.value,g5=e=>h5(e)?`${e.label}: ${h5(e)}`:e.label,_5={empty:`No filters applied`,clearAll:`Clear all`,back:`Back to fields`,noOptions:`No options available`,cleared:`All filters cleared`,remove:e=>`Remove ${g5(e)}`,added:e=>`Added ${g5(e)}`,changed:e=>`Changed ${g5(e)}`,removed:e=>`Removed ${g5(e)}`};function Wse(e,t,n){let r=e.filter(e=>!t.some(t=>t.id===e.id));if(!t.length&&r.length>1)return n.cleared;let i=t.filter(t=>!e.some(e=>e.id===t.id)),a=t.filter(t=>e.some(e=>e.id===t.id&&e.value!==t.value));return[...i.map(n.added),...a.map(n.changed),...r.map(n.removed)].join(`. `)}function v5({rows:e,labelledBy:t,onChoose:n,onBack:r,onLeave:i,radio:a,emptyMessage:o}){let s=Zf()??!1,c=Bu(),l=(0,p.useRef)(null),u=(0,p.useRef)(!1),d=(0,p.useRef)({text:``,at:0}),[f,h]=(0,p.useState)(()=>Math.max(0,e.findIndex(e=>e.checked))),[g,_]=(0,p.useState)(null),v=()=>Array.from(l.current?.querySelectorAll(`[data-row]`)??[]),y=e=>{let t=l.current;e&&t&&(e.focus({preventScroll:!0}),e.offsetTop<t.scrollTop?t.scrollTop=e.offsetTop:e.offsetTop+e.offsetHeight>t.scrollTop+t.clientHeight&&(t.scrollTop=e.offsetTop+e.offsetHeight-t.clientHeight))};function b(t){let i=v(),a=i.indexOf(document.activeElement),o=e=>{t.preventDefault(),u.current=!1,y(i[e])};if(t.key===`ArrowDown`)return o(a<0?0:(a+1)%i.length);if(t.key===`ArrowUp`)return o(a<0?i.length-1:(a-1+i.length)%i.length);if(t.key===`Home`)return o(0);if(t.key===`End`)return o(i.length-1);if(t.key===`ArrowRight`&&a>=0&&e[a]?.drill){t.preventDefault(),n(e[a],!0);return}if(t.key===`ArrowLeft`&&r){t.preventDefault(),r(!0);return}if(t.key.length===1&&/\S/.test(t.key)&&!t.metaKey&&!t.ctrlKey&&!t.altKey){let e=performance.now();d.current={text:e-d.current.at<700?d.current.text+t.key.toLowerCase():t.key.toLowerCase(),at:e};let n=[...i.slice(a+(d.current.text.length>1?0:1)),...i.slice(0,a+(d.current.text.length>1?0:1))].find(e=>(e.dataset.text??``).toLowerCase().startsWith(d.current.text));n&&o(i.indexOf(n))}}function x(e){let t=e.target.closest(`[data-row]`);if(!t)return;h(v().indexOf(t));let n=u.current&&!s,r=!u.current&&t.matches(`:focus-visible`);_(e=>({top:t.offsetTop,height:t.offsetHeight,glide:n&&!!e?.shown,ring:r,shown:!0}))}function S(e){l.current?.contains(e.relatedTarget)||_(e=>e&&{...e,glide:!1,ring:!1,shown:!1})}return(0,m.jsxs)(`div`,{ref:l,className:s5.list,role:`menu`,"aria-labelledby":t,"data-current":c?``:void 0,onKeyDown:b,onFocus:x,onBlur:S,onPointerLeave:()=>{u.current&&l.current?.contains(document.activeElement)&&i()},children:[(0,m.jsx)(H.span,{className:s5.highlight,"data-ring":g?.ring||void 0,"aria-hidden":`true`,initial:!1,animate:g?{y:g.top,height:g.height,opacity:+!!g.shown}:{opacity:0},transition:{default:g?.glide?Y.spring.snappy:u5,opacity:{duration:s?0:.08}}}),e.length===0?(0,m.jsx)(`p`,{className:s5.noOptions,children:o}):null,e.map((e,t)=>(0,m.jsxs)(`button`,{type:`button`,className:s5.item,role:a?`menuitemradio`:`menuitem`,"aria-checked":a?!!e.checked:void 0,tabIndex:t===f?0:-1,"data-row":e.key,"data-text":e.label,onPointerMove:e=>{u.current=!0,document.activeElement!==e.currentTarget&&e.currentTarget.focus({preventScroll:!0})},onClick:t=>n(e,t.detail===0),children:[e.icon?(0,m.jsx)(`span`,{className:s5.itemIcon,"aria-hidden":`true`,children:e.icon}):null,(0,m.jsx)(`span`,{className:s5.itemLabel,children:e.label}),e.meta?(0,m.jsx)(`span`,{className:s5.itemMeta,children:e.meta}):null]},e.key))]})}function Gse(e){let t={left:0,top:0,right:document.documentElement.clientWidth,bottom:window.innerHeight};for(let n=e.parentElement;n&&n!==document.body;n=n.parentElement){let e=getComputedStyle(n);if(e.overflowX===`visible`&&e.overflowY===`visible`)continue;let r=n.getBoundingClientRect();e.overflowX!==`visible`&&(t.left=Math.max(t.left,r.left),t.right=Math.min(t.right,r.right)),e.overflowY!==`visible`&&(t.top=Math.max(t.top,r.top),t.bottom=Math.min(t.bottom,r.bottom))}return t}function Kse({fields:e,onSelect:t,active:n=[],label:r=`Add filter`,align:i=`end`,messages:a}){let o={..._5,...a},s=Zf()??!1,c=(0,p.useId)(),l=`${c}panel`,u=`${c}title`,d=(0,p.useRef)(null),f=(0,p.useRef)(null),h=(0,p.useRef)(null),g=(0,p.useRef)(`closed`),_=(0,p.useRef)(0),v=(0,p.useRef)(null),[y,b]=(0,p.useState)(`closed`),[x,S]=(0,p.useState)(null),[C,w]=(0,p.useState)(1),[T,E]=(0,p.useState)(!1),[D,O]=(0,p.useState)(`100% 0`),k=Gf(`100%`),A=Gf(`100%`),j=Gf(0),M=Gf(0),N=Jf(()=>M.get()-j.get()),P=Gf(0),F=Gf(0),I=Jf(()=>{let e=k.get(),t=P.get(),n=F.get();return typeof e==`number`?n>t?p5((e-t)/(n-t)):1:0}),L=Jf(()=>p5(I.get()/.35)),R=Jf(()=>p5((I.get()-.4)/.5)),ee={opacity:Jf(()=>1-L.get()),scale:Jf(()=>1-L.get()*.04),filter:Jf(()=>L.get()?f5(L.get()*Y.blur.subtle):`none`)},te={opacity:R,transformOrigin:D,scale:Jf(()=>.96+R.get()*.04),y:Jf(()=>(1-R.get())*(T?-6:6)),filter:Jf(()=>R.get()===1?`none`:f5((1-R.get())*Y.blur.soft))},ne=y===`open`,re=e.find(e=>e.id===x)??null,ie=(0,p.useCallback)(e=>{let t=f.current,n=h.current;if(!t||!n)return;let r=t.getBoundingClientRect(),a=n.offsetWidth+2,o=n.offsetHeight+2,c=Gse(d.current??t),l=c.left+16-r.left,u=c.right-16-r.left-a,p=r.width-a,m=i===`end`?p>=l?p:0<=u?0:p:0<=u?0:p>=l?p:0;m=Math.round(Math.min(Math.max(m,l),Math.max(l,u)));let y=c.bottom-r.top,x=r.bottom-c.top,C=y<o+16&&x>y;g.current===`closed`&&(k.jump(r.width),A.jump(r.height),j.jump(0)),M.jump(m),P.jump(r.width),F.jump(a),g.current=`open`,_.current+=1,v.current=e,b(`open`),E(C),S(null),w(-1),O(`${Math.round(r.width/2-m)}px ${C?`100%`:`0`}`);let T=s?u5:Y.spring.morph;bp(j,m,T),bp(k,a,T),bp(A,o,T)},[i,P,A,j,s,M,F,k]),ae=(0,p.useCallback)(e=>{let t=f.current;if(g.current!==`open`||!t)return;g.current=`closing`;let n=_.current+=1;b(`closing`),e&&t.focus({preventScroll:!0,focusVisible:e===`keyboard`});let r=s?u5:Y.spring.snappy;bp(j,0,r);let i=t.getBoundingClientRect();bp(A,i.height,r),bp(k,i.width,{...r,onComplete:()=>{n===_.current&&(g.current=`closed`,k.jump(`100%`),A.jump(`100%`),b(`closed`),S(null))}})},[A,j,s,k]);(0,p.useLayoutEffect)(()=>{let e=h.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>{g.current===`open`&&bp(A,e.offsetHeight+2,s?u5:Y.spring.smooth)});return t.observe(e),()=>t.disconnect()},[A,s]),(0,p.useLayoutEffect)(()=>{let e=v.current,t=h.current;if(!e||!t||y!==`open`)return;if(v.current=null,e===`panel`){t.focus({preventScroll:!0});return}let n=Array.from(t.querySelectorAll(`[data-current] [data-row]`));(e===`first`?n[0]:e===`last`?n.at(-1):e===`checked`?n.find(e=>e.getAttribute(`aria-checked`)===`true`)??n[0]:n.find(t=>t.dataset.row===e.key)??n[0])?.focus({preventScroll:!0})},[y,x]),(0,p.useEffect)(()=>{if(y!==`open`)return;let e=e=>{let t=d.current,n=e.target;!t||n&&t.contains(n)||(ae(!1),n?.closest?.(`button, a[href], input, select, textarea, [tabindex], [contenteditable]`)||window.setTimeout(()=>{let e=document.activeElement;(!e||e===document.body||t.contains(e))&&f.current?.focus({preventScroll:!0,focusVisible:!1})},0))};return document.addEventListener(`pointerdown`,e,!0),()=>document.removeEventListener(`pointerdown`,e,!0)},[ae,y]);function oe(e){if(e.defaultPrevented)return;let t=Array.from(h.current?.querySelectorAll(`[data-current] [data-row]`)??[]);(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),(e.key===`ArrowDown`?t[0]:t.at(-1))?.focus({preventScroll:!0})),e.key===`ArrowLeft`&&re&&(e.preventDefault(),se(!0))}function se(e){re&&(v.current=e?{key:re.id}:`panel`,w(-1),S(null))}function ce(e,t){v.current=t?`checked`:`panel`,w(1),S(e.key)}function le(e,n){re&&(t({id:re.id,label:re.label,value:e.key,valueLabel:e.label},re),ae(n?`keyboard`:`pointer`))}let z=e=>n.find(t=>t.id===e.id),ue=e.map(e=>({key:e.id,label:e.label,icon:e.icon,drill:!0,meta:(0,m.jsxs)(m.Fragment,{children:[z(e)?(0,m.jsx)(`span`,{className:s5.metaValue,children:h5(z(e))}):null,(0,m.jsx)(Ix,{size:15,strokeWidth:1.8,"aria-hidden":`true`})]})})),de=re?re.options.map(zse).map(e=>{let t=Bse(e),n=z(re)?.value===e.value;return{key:e.value,label:t,icon:e.icon,checked:n,meta:e.hint!=null||n?(0,m.jsxs)(m.Fragment,{children:[e.hint==null?null:(0,m.jsx)(`span`,{className:s5.hint,children:e.hint}),(0,m.jsx)(`span`,{className:s5.check,"data-on":n||void 0,children:(0,m.jsx)(Ax,{size:15,strokeWidth:2,"aria-hidden":`true`})})]}):null}}):[],fe={enter:e=>s?{opacity:0}:{opacity:0,x:e*18,filter:f5(Y.blur.soft)},center:{opacity:1,x:0,filter:f5(0),transition:s?d5:{...c5,x:Y.spring.smooth}},exit:e=>s?{opacity:0,transition:u5}:{opacity:0,x:e*-18,filter:f5(Y.blur.subtle),transition:l5}};return(0,m.jsxs)(`div`,{ref:d,className:s5.menu,"data-state":y,"data-y":T?`up`:`down`,onKeyDown:e=>{e.key===`Escape`&&g.current===`open`&&(e.preventDefault(),e.stopPropagation(),ae(`keyboard`))},onBlur:e=>{let t=e.relatedTarget;g.current===`open`&&t&&!d.current?.contains(t)&&ae(!1)},children:[(0,m.jsx)(`button`,{ref:f,type:`button`,className:s5.trigger,"data-filter-trigger":``,"aria-haspopup":`dialog`,"aria-expanded":ne,"aria-controls":l,tabIndex:ne?-1:void 0,onClick:e=>{g.current!==`open`&&ie(e.detail===0?`first`:`panel`)},onKeyDown:e=>{(e.key===`ArrowDown`||e.key===`ArrowUp`)&&(e.preventDefault(),ie(e.key===`ArrowDown`?`first`:`last`))},children:(0,m.jsxs)(H.span,{className:s5.face,style:ee,children:[(0,m.jsx)(IS,{size:15,strokeWidth:1.8,"aria-hidden":`true`}),r]})}),(0,m.jsx)(H.div,{className:s5.surface,style:{left:j,width:k,height:A},children:(0,m.jsx)(H.div,{ref:h,id:l,className:s5.panel,role:`dialog`,"aria-labelledby":u,tabIndex:-1,inert:!ne,style:{x:N},onKeyDown:oe,children:(0,m.jsxs)(H.div,{style:te,children:[(0,m.jsxs)(`div`,{className:s5.head,children:[(0,m.jsx)(V,{initial:!1,children:re?(0,m.jsx)(H.button,{type:`button`,className:s5.back,"aria-label":o.back,onClick:e=>se(e.detail===0),initial:s?{opacity:0,width:28,marginRight:2}:{opacity:0,width:0,marginRight:0,scale:.6},animate:{opacity:1,width:28,marginRight:2,scale:1},exit:s?{opacity:0,transition:u5}:{opacity:0,width:0,marginRight:0,scale:.6,transition:{...Y.spring.snappy,opacity:l5}},transition:s?d5:{...Y.spring.snappy,opacity:c5},children:(0,m.jsx)(Px,{size:16,strokeWidth:1.8,"aria-hidden":`true`})},`back`):null}),(0,m.jsx)(`span`,{className:s5.title,id:u,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(H.span,{className:s5.titleText,...m5(s),children:re?re.label:r},re?.id??`fields`)})})]}),(0,m.jsx)(`div`,{className:s5.stage,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,custom:C,children:(0,m.jsx)(H.div,{className:s5.step,custom:C,variants:fe,initial:`enter`,animate:`center`,exit:`exit`,children:re?(0,m.jsx)(v5,{rows:de,labelledBy:u,emptyMessage:o.noOptions,radio:!0,onChoose:le,onBack:se,onLeave:()=>h.current?.focus({preventScroll:!0})}):(0,m.jsx)(v5,{rows:ue,labelledBy:u,emptyMessage:o.noOptions,onChoose:ce,onLeave:()=>h.current?.focus({preventScroll:!0})})},re?.id??`fields`)})})]})})})]})}function y5({filters:e,onRemove:t,onClearAll:n,leading:r,children:i,label:a=`Active filters`,addFilter:o,messages:s}){let c={..._5,...s},l=Zf()??!1,u=(0,p.useRef)(null),d=(0,p.useRef)(null),f=(0,p.useRef)(0),h=(0,p.useRef)(null),[g,_]=(0,p.useState)(e),[v,y]=(0,p.useState)(``);if(g!==e){_(e);let t=Wse(g,e,c);t&&y(t)}let b=e.map(e=>`${e.id}:${e.value??``}`).join(`|`);(0,p.useLayoutEffect)(()=>{f.current=performance.now()+900},[b]);let x=Hse(d,f,l);Use(d,f,l),(0,p.useLayoutEffect)(()=>{let t=h.current,n=u.current;if(t===null||!n)return;h.current=null;let r=e[Math.min(t,e.length-1)];(r?n.querySelector(`[data-chip-remove="${CSS.escape(r.id)}"]`):n.querySelector(`[data-filter-trigger]`))?.focus({preventScroll:!0})},[e]);let S={duration:0},C=e=>({initial:!l&&{width:0,marginRight:-e,overflow:`clip`,"--slot-moving":1},animate:{width:`auto`,marginRight:0,transitionEnd:{overflow:`visible`,"--slot-moving":0}},exit:l?{opacity:0,transition:S}:{width:0,marginRight:-e,overflow:`clip`,"--slot-moving":1,pointerEvents:`none`,transition:{...Y.spring.smooth,"--slot-moving":S}},transition:l?S:Y.spring.smooth}),w={initial:!l&&{opacity:0,scale:.9,filter:f5(Y.blur.soft)},animate:{opacity:1,scale:1,filter:f5(0)},exit:l?{opacity:0,transition:S}:{opacity:0,scale:.9,filter:f5(Y.blur.subtle),transition:l5},transition:l?S:{...c5,scale:Y.spring.snappy}},T=l?{...m5(!0),initial:!1}:m5(!1),E=l?T:{...T,transition:{...c5,delay:Y.duration.instant*.75}};return(0,m.jsxs)(`div`,{ref:u,className:s5.toolbar,role:`group`,"aria-label":a,children:[r?(0,m.jsx)(`div`,{className:s5.leading,children:r}):null,(0,m.jsx)(H.div,{className:s5.frame,style:{height:x},children:(0,m.jsxs)(`div`,{ref:d,className:s5.chips,children:[(0,m.jsx)(V,{initial:!1,children:e.map((e,n)=>(0,m.jsx)(H.span,{className:s5.slot,...C(8),children:(0,m.jsxs)(H.span,{className:s5.chip,...w,children:[(0,m.jsxs)(`span`,{className:s5.chipLabel,title:g5(e),children:[e.label,h5(e)?(0,m.jsxs)(`span`,{className:s5.value,children:[(0,m.jsx)(`span`,{className:s5.separator,children:` · `}),(0,m.jsx)(Vse,{text:h5(e)})]}):null]}),(0,m.jsx)(`button`,{type:`button`,"data-chip-remove":e.id,"aria-label":c.remove(e),onClick:r=>{document.activeElement===r.currentTarget&&(h.current=n),t(e.id)},children:(0,m.jsx)(vC,{size:14,strokeWidth:1.8,"aria-hidden":`true`})})]})},e.id))}),(0,m.jsx)(V,{initial:!1,children:e.length?null:(0,m.jsx)(H.span,{className:s5.empty,...E,children:c.empty},`empty`)})]})}),(0,m.jsxs)(`div`,{className:s5.actions,children:[o?(0,m.jsx)(Kse,{fields:o.fields,onSelect:o.onAdd,active:e,label:o.label,align:o.align,messages:c}):null,i,(0,m.jsx)(V,{initial:!1,children:e.length>0&&n?(0,m.jsx)(H.span,{className:s5.slot,...C(12),children:(0,m.jsx)(`button`,{className:s5.clear,type:`button`,onClick:()=>{h.current=-1,n?.()},children:(0,m.jsx)(H.span,{className:s5.clearText,...T,children:c.clearAll})})},`clear`):null})]}),(0,m.jsx)(`span`,{className:s5.srOnly,role:`status`,children:v})]})}var b5={nav:`_nav_1jt95_1`,mark:`_mark_1jt95_5`,step:`_step_1jt95_9`},qse=1e3/9,Jse={enter:e=>({opacity:0,x:`${qse*e}%`}),center:{opacity:1,x:`0%`},exit:e=>({opacity:0,x:`${-111.11111111111111*e}%`,transition:{x:Y.spring.smooth,opacity:{duration:Y.duration.instant,ease:[...Y.ease.standard]}}})};function x5({page:e,pageCount:t,onPageChange:n,label:r=`Pagination`}){let i=Zf()??!1,a=(0,p.useRef)(null),o=Gf(0),s=Gf(0),c=Math.max(0,Math.floor(t)),l=c>0?Math.min(Math.max(1,Math.floor(e)),c):0,u=c>0?Math.max(1,Math.min(c-4,l-2)):1,[d,f]=(0,p.useState)(u),[h,g]=(0,p.useState)(0);d!==u&&(g(u-d),f(u));let _=Array.from({length:Math.min(c,5)},(e,t)=>u+t);return(0,p.useLayoutEffect)(()=>{let e=a.current,t=e?.querySelector(`[aria-current='page']`);if(!e||!t)return;let n=e=>{let n=t.offsetLeft,r=t.offsetTop;if(e||i){o.jump(n),s.jump(r);return}bp(o,n,Y.spring.morph),bp(s,r,Y.spring.morph)};n(!(`markReady`in e.dataset)),e.dataset.markReady=``;let r=`${e.offsetWidth}x${e.offsetHeight}`,c=new ResizeObserver(()=>{let t=`${e.offsetWidth}x${e.offsetHeight}`;t!==r&&(r=t,n(!0))});return c.observe(e),()=>c.disconnect()},[l,u,c,i,o,s]),c?(0,m.jsxs)(`nav`,{ref:a,className:b5.nav,"aria-label":r,children:[(0,m.jsx)(`button`,{type:`button`,className:b5.step,onClick:()=>n(l-1),disabled:l<=1,"aria-label":`Previous page`,children:(0,m.jsx)(Px,{width:16,height:16,"aria-hidden":`true`})}),(0,m.jsx)(H.span,{"aria-hidden":`true`,className:b5.mark,style:{x:o,y:s}}),(0,m.jsx)(V,{mode:`popLayout`,initial:!1,custom:h,children:_.map(e=>(0,m.jsx)(H.button,{type:`button`,onClick:()=>n(e),"aria-label":`Page ${e}`,"aria-current":l===e?`page`:void 0,layout:!i&&`position`,layoutDependency:u,custom:h,variants:Jse,initial:!i&&`enter`,animate:`center`,exit:i?void 0:`exit`,transition:i?{duration:0}:{x:Y.spring.smooth,layout:Y.spring.smooth,opacity:{duration:Y.duration.standard,ease:[...Y.ease.enter]}},children:e},e))}),(0,m.jsx)(`button`,{type:`button`,className:b5.step,onClick:()=>n(l+1),disabled:l>=c,"aria-label":`Next page`,children:(0,m.jsx)(Ix,{width:16,height:16,"aria-hidden":`true`})})]}):(0,m.jsx)(`nav`,{className:b5.nav,"aria-label":r})}var Yse={input:`usage.input`,cache_read:`usage.cacheRead`,cache_write_5m:`usage.cacheWrite5m`,cache_write_1h:`usage.cacheWrite1h`,output:`usage.output`,reasoning:`usage.reasoning`,input_audio:`usage.inputAudio`,output_audio:`usage.outputAudio`,input_image:`usage.inputImage`,output_image:`usage.outputImage`};function Xse({type:e}){let t=xv(),n=Yse[e];return(0,m.jsxs)(`span`,{className:`inline-flex flex-col leading-snug`,children:[(0,m.jsx)(`span`,{className:Cv(e===`cache_read`&&`text-[var(--success)]`,e.startsWith(`cache_write_`)&&`text-[var(--warning)]`),children:n?t(n):e}),n&&(0,m.jsx)(`span`,{className:`font-mono text-[10.5px] text-[var(--text-muted)]`,children:e})]})}function Zse({usage:e,selected:t}){let n=xv(),r=n5(e);return!r.reported||r.read===0&&r.write===0?(0,m.jsx)(`span`,{className:`text-right opacity-50`,title:n(r.reported?`usage.noCache`:`usage.missing`),children:`—`}):(0,m.jsxs)(`span`,{className:`num flex flex-col items-end gap-px whitespace-nowrap text-[11px]`,children:[(0,m.jsxs)(`span`,{className:Cv(!t&&`text-[var(--success)]`),title:n(`usage.hitTooltip`,{read:_I(r.read),total:_I(r.input)}),children:[n(`usage.hitShort`),` `,_I(r.read,!0),r.hitRatio!=null&&(0,m.jsx)(`span`,{className:`ml-1 opacity-75`,children:bI(r.hitRatio)})]}),(0,m.jsxs)(`span`,{className:Cv(!t&&`text-[var(--text-secondary)]`),title:n(`usage.writeTooltip`,{tokens:_I(r.write)}),children:[n(`usage.writeShort`),` `,_I(r.write,!0)]})]})}function Qse({usage:e,selected:t}){let n=xv(),r=n5(e);return r.reported?(0,m.jsxs)(`span`,{className:`num flex flex-col items-end gap-px whitespace-nowrap`,title:n(`usage.totalsHint`),children:[(0,m.jsxs)(`span`,{children:[_I(r.input,!0),` / `,_I(r.output,!0)]}),r.reasoning>0&&(0,m.jsxs)(`span`,{className:Cv(`text-[11px]`,t?`opacity-75`:`text-[var(--text-secondary)]`),children:[n(`usage.reasoningShort`),` `,_I(r.reasoning,!0)]})]}):(0,m.jsx)(`span`,{className:`text-right opacity-50`,title:n(`usage.missing`),children:`—`})}function $se({usage:e}){let t=xv(),n=n5(e);return(0,m.jsx)(tE,{title:t(`usage.title`),children:n.reported?(0,m.jsxs)(`div`,{className:`card p-4`,children:[(0,m.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 sm:grid-cols-4`,children:[(0,m.jsx)(S5,{label:t(`usage.inputTotal`),value:_I(n.input)}),(0,m.jsx)(S5,{label:t(`usage.outputTotal`),value:_I(n.output)}),(0,m.jsx)(S5,{label:t(`usage.hitRate`),value:bI(n.hitRatio)}),(0,m.jsx)(S5,{label:t(`usage.reasoning`),value:_I(n.reasoning)})]}),(0,m.jsx)(C5,{label:t(`usage.inputTotal`),segments:[{label:t(`usage.uncachedInput`),count:n.uncachedInput,color:`var(--accent)`},{label:t(`usage.cacheRead`),count:n.read,color:`var(--green)`},{label:t(`usage.cacheWrite`),count:n.write,color:`var(--orange)`}]}),(0,m.jsx)(C5,{label:t(`usage.outputTotal`),segments:[{label:t(`usage.regularOutput`),count:n.regularOutput,color:`var(--label-2)`},{label:t(`usage.reasoning`),count:n.reasoning,color:`var(--accent)`}]}),(0,m.jsx)(`p`,{className:`mt-2 text-[11px] text-[var(--text-secondary)]`,children:t(`usage.totalsHint`)})]}):(0,m.jsx)(`p`,{className:`rounded-[var(--radius-control)] bg-[var(--surface-muted)] px-3 py-2 text-[12px] text-[var(--text-secondary)]`,children:t(`usage.missing`)})})}function S5({label:e,value:t}){return(0,m.jsxs)(`div`,{children:[(0,m.jsx)(`div`,{className:`text-[11px] text-[var(--text-secondary)]`,children:e}),(0,m.jsx)(`div`,{className:`num text-[17px] font-medium selectable`,children:t})]})}function C5({label:e,segments:t}){let n=t.reduce((e,t)=>e+t.count,0);return(0,m.jsxs)(`div`,{className:`mt-3`,children:[(0,m.jsx)(`div`,{"aria-label":e,className:`flex h-1.5 overflow-hidden rounded-full bg-[var(--surface-muted)]`,children:n>0&&t.filter(e=>e.count>0).map(e=>(0,m.jsx)(`span`,{"aria-hidden":!0,style:{background:e.color,width:`${(e.count/n*100).toFixed(3)}%`}},e.label))}),(0,m.jsx)(`div`,{className:`num mt-1 flex flex-wrap gap-x-4 gap-y-1 text-[11px] text-[var(--text-secondary)]`,children:t.map(e=>(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,m.jsx)(`span`,{"aria-hidden":!0,className:`size-1.5 rounded-full`,style:{background:e.color}}),e.label,` `,(0,m.jsx)(`span`,{className:`selectable`,children:_I(e.count)})]},e.label))})]})}var w5=50,ece=[`success`,`blocked`,`upstream_error`,`gateway_error`,`client_cancelled`],tce={api_key:`settings.privacy.category.api_key`,aws_key:`settings.privacy.category.aws_key`,jwt:`settings.privacy.category.jwt`,private_key:`settings.privacy.category.private_key`,email:`settings.privacy.category.email`,phone:`settings.privacy.category.phone`,intranet:`settings.privacy.category.intranet`,credit_card:`settings.privacy.category.credit_card`,national_id:`settings.privacy.category.national_id`,credential:`settings.privacy.category.credential`,custom:`settings.privacy.category.custom`},nce={warn:`settings.privacy.action.warn`,block:`settings.privacy.action.block`,redact:`settings.privacy.action.redact`};function rce(){let{t:e,locale:t}=K(),[n,r]=(0,p.useState)(``),[i,a]=(0,p.useState)({client:``,token:``,provider:``,status:``}),[o,s]=(0,p.useState)(1),[c,l]=(0,p.useState)(null),u=(0,p.useRef)(null),d=Tv(n.trim()),f=K_(),h=Xg(),_=fv(),v=g(),y=zee({client:i.client,token:i.token,provider:i.provider,status:i.status,model:d}),b={model:d,...i,page:o,pageSize:w5};Fse(o===1);let x=Lse(),S=Ise(),C=hv(b,o===1&&!x),w=C.data,T=w?Math.max(1,Math.ceil(w.total/w5)):1,E=new Set((w?.items??[]).map(e=>e.id)),D=o===1?S.filter(e=>!E.has(e.id)&&ice(e,d,i)):[],O=[...D,...w?.items??[]];kv(e=>{e===`find`&&u.current?.focus()});let k=t=>T5(t,e),A={client:(f.data??[]).map(e=>({value:e.kind,label:e.name})),token:(_.data??[]).map(e=>({value:e.id,label:e.name})),provider:(h.data??[]).map(e=>({value:e.id,label:e.name})),status:ece.map(t=>({value:t,label:e(`status.${t}`)}))},j={client:e(`requests.col.client`),token:e(`requests.col.token`),provider:e(`requests.col.provider`),status:e(`requests.col.status`)},M=Object.keys(A).map(e=>({id:e,label:j[e],options:A[e]})),N=Object.keys(i).filter(e=>i[e]).map(e=>({id:e,label:j[e],value:i[e],valueLabel:A[e].find(t=>t.value===i[e])?.label??i[e]}));n.trim()&&N.unshift({id:`model`,label:e(`requests.col.model`),value:n.trim()});let P=N.length>0,F=e=>`${e.label}: ${e.valueLabel??e.value??``}`,I=()=>{r(``),a({client:``,token:``,provider:``,status:``}),s(1)},L=(e,t)=>{a(n=>({...n,[e]:t})),s(1)},R=O.map(e=>({id:e.id,time:Date.parse(e.startedAtUtc),client:k(e),token:e.tokenName??``,model:e.requestedModel??``,provider:e.providerName??``,status:e.status,ttft:e.ttftMs??null,tokens:e.totalInputTokens+e.totalOutputTokens,cache:e.cacheReadTokens,cost:e.costNanoUsd??0,r:e})),ee=[{key:`time`,label:e(`requests.col.time`),width:92,render:(e,n)=>(0,m.jsx)(`span`,{className:`num`,children:SI(n.r.startedAtUtc,t)})},{key:`model`,label:e(`requests.col.model`),render:(t,n)=>(0,m.jsx)(E5,{r:n.r,children:t=>(0,m.jsxs)(`button`,{type:`button`,className:`block w-full min-w-0 text-left`,onClick:()=>l(t.id),"aria-label":e(`requests.openDetail`,{model:t.requestedModel||t.id}),children:[(0,m.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,m.jsx)(`span`,{className:`block min-w-0 truncate font-medium hover:text-[var(--accent)]`,title:t.requestedModel??``,children:t.requestedModel||`—`}),(0,m.jsx)(sce,{r:t})]}),(0,m.jsx)(`span`,{className:`block text-[11px]`,children:(0,m.jsx)(A5,{r:t,labeled:!0})}),(0,m.jsx)(`span`,{className:`block truncate text-[11px]`,children:(0,m.jsx)(O5,{r:t})})]})})},{key:`client`,label:e(`requests.col.client`),width:110,render:(e,t)=>(0,m.jsx)(E5,{r:t.r,children:e=>k(e)})},{key:`token`,label:e(`requests.col.token`),width:110,render:(e,t)=>(0,m.jsx)(E5,{r:t.r,children:e=>(0,m.jsx)(`span`,{className:`block truncate`,children:e.tokenName||`—`})})},{key:`provider`,label:e(`requests.col.provider`),width:130,render:(e,t)=>(0,m.jsx)(E5,{r:t.r,children:e=>(0,m.jsx)(`span`,{className:`block truncate`,children:e.providerName||`—`})})},{key:`status`,label:e(`requests.col.status`),width:104,render:(t,n)=>(0,m.jsx)(E5,{r:n.r,children:t=>t.status===`success`||t.status===`client_cancelled`||t.status===`pending`?(0,m.jsx)(D5,{status:t.status,http:t.httpStatus}):(0,m.jsx)(`button`,{type:`button`,className:`cursor-pointer rounded-full text-left hover:opacity-80 focus-visible:outline focus-visible:outline-2 focus-visible:outline-[var(--accent)]`,title:e(`requests.viewError`),"aria-label":`${e(`status.${t.status}`)}: ${e(`requests.viewError`)}`,onClick:()=>l(t.id),children:(0,m.jsx)(D5,{status:t.status,http:t.httpStatus,hint:e(`requests.viewError`)})})})},{key:`ttft`,label:`TTFT / TPS`,numeric:!0,width:112,render:(t,n)=>(0,m.jsx)(E5,{r:n.r,children:t=>(0,m.jsxs)(`div`,{className:`num whitespace-nowrap`,children:[t.status===`pending`&&t.ttftMs==null?(0,m.jsx)(`div`,{title:e(`requests.elapsed`),children:(0,m.jsx)(ace,{since:t.startedAtUtc})}):(0,m.jsx)(`div`,{title:`TTFT`,children:vI(t.ttftMs)}),(0,m.jsx)(`div`,{className:`text-[11px] text-[var(--text-muted)]`,title:e(`requests.detail.tps`),children:yI(t.outputTps)})]})})},{key:`tokens`,label:e(`requests.col.tokens`),numeric:!0,width:116,render:(e,t)=>(0,m.jsx)(E5,{r:t.r,children:e=>(0,m.jsx)(Qse,{usage:e})})},{key:`cache`,label:e(`requests.col.cache`),numeric:!0,width:136,render:(e,t)=>(0,m.jsx)(E5,{r:t.r,children:e=>(0,m.jsx)(Zse,{usage:e})})},{key:`cost`,label:e(`requests.col.cost`),numeric:!0,width:92,render:(e,t)=>(0,m.jsx)(E5,{r:t.r,children:e=>(0,m.jsx)(`span`,{className:Cv(e.usageSource===`missing`&&`text-[var(--warning)]`),children:hI(e.costNanoUsd)})})}];return(0,m.jsxs)(i6,{title:e(`nav.requests`),subtitle:w?e(`requests.total`,{count:_I(w.total+D.length)}):void 0,actions:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(oce,{rate:y.data}),(0,m.jsx)(X,{variant:`plain`,icon:(0,m.jsx)(BS,{className:Cv(`size-4`,C.isFetching&&`animate-spin`)}),"aria-label":e(`common.refresh`),onClick:()=>{C.refetch(),v.invalidateQueries({queryKey:G.stats(`rate`)})}})]}),children:[(0,m.jsx)(`div`,{className:`mb-3`,children:(0,m.jsx)(y5,{label:e(`requests.filters`),leading:(0,m.jsx)(KT,{inputRef:u,className:`w-full`,value:n,onChange:e=>{r(e),s(1)},placeholder:e(`requests.searchModel`),clearLabel:e(`common.clearSearch`)}),filters:N,messages:{empty:e(`requests.noFilters`),clearAll:e(`requests.clearFilters`),back:e(`requests.backToFilters`),noOptions:e(`common.noResults`),cleared:e(`requests.filtersCleared`),remove:t=>e(`requests.removeFilter`,{filter:F(t)}),added:t=>e(`requests.filterAdded`,{filter:F(t)}),changed:t=>e(`requests.filterChanged`,{filter:F(t)}),removed:t=>e(`requests.filterRemoved`,{filter:F(t)})},onRemove:e=>{e===`model`?(r(``),s(1)):L(e,``)},onClearAll:I,addFilter:{fields:M,label:e(`requests.addFilter`),onAdd:e=>{e.value&&L(e.id,e.value)}}})}),C.isLoading&&(0,m.jsx)(QT,{lines:4,className:`py-6`}),C.isError&&(0,m.jsx)(lE,{tone:`danger`,title:e(`common.error`),children:$(C.error)}),w&&O.length===0&&(0,m.jsx)($T,{icon:(0,m.jsx)(WS,{className:`size-6`}),title:e(P?`requests.filteredEmpty`:`requests.empty`),detail:e(P?`requests.filteredEmpty.detail`:`requests.empty.detail`),action:P?(0,m.jsx)(X,{onClick:I,children:e(`requests.clearFilters`)}):void 0}),w&&O.length>0&&(0,m.jsx)(G6,{caption:e(`nav.requests`),rows:R,columns:ee,rowKey:`id`,emptyMessage:e(`requests.empty`)}),w&&T>1&&(0,m.jsx)(`div`,{className:`mt-4 flex justify-center`,children:(0,m.jsx)(x5,{page:o,pageCount:T,onPageChange:s,label:e(`requests.page`,{page:o,pages:T})})}),(0,m.jsx)(j5,{id:c,onClose:()=>l(null)})]})}function T5(e,t){return e.clientKind?a3[e.clientKind]?.name??e.clientKind:e.tokenId?t(`requests.direct`):`—`}function ice(e,t,n){if(n.client&&e.clientKind!==n.client||n.token&&e.tokenId!==n.token||n.provider&&e.providerId!==n.provider||n.status&&e.status!==n.status)return!1;if(t){let n=t.toLowerCase();if(![e.requestedModel,e.upstreamModel,e.systemModelId,e.responseModel].some(e=>e?.toLowerCase().includes(n)))return!1}return!0}function E5({r:e,children:t}){return(0,m.jsx)(m.Fragment,{children:t(Rse(e.id)??e)})}function ace({since:e}){let[t,n]=(0,p.useState)(()=>Date.now());return(0,p.useEffect)(()=>{let e=setInterval(()=>n(Date.now()),200);return()=>clearInterval(e)},[]),(0,m.jsx)(m.Fragment,{children:vI(Math.max(0,t-Date.parse(e)))})}function oce({rate:e}){let{t}=K();if(!e)return null;let n=t(`requests.rate.hint`,{window:e.windowSeconds}),r=(e,t)=>(0,m.jsxs)(`span`,{className:`flex items-baseline gap-1`,children:[(0,m.jsx)(`span`,{className:`text-[10.5px] text-[var(--text-muted)]`,children:e}),(0,m.jsx)(`span`,{className:`num text-[12px]`,children:t})]},e);return(0,m.jsx)(r6,{side:`bottom`,content:n,children:(0,m.jsxs)(`div`,{className:`flex items-center gap-3 rounded-full border border-[var(--border)] px-3.5 py-1.5`,children:[r(t(`requests.rate.rpm`),(e=>e>=100?_I(Math.round(e)):e.toFixed(1))(e.rpm)),r(t(`requests.rate.tpm`),_I(Math.round(e.tpm),!0)),r(t(`usage.hitRate`),bI(e.cacheHitRate))]})})}function D5({status:e,http:t,hint:n}){let{t:r}=K();if(e===`pending`)return(0,m.jsx)(Q,{tone:`accent`,title:n,children:(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,m.jsx)(bS,{className:`size-3 animate-spin`,"aria-hidden":`true`}),r(`status.pending`)]})});let i=e===`success`?`green`:e===`client_cancelled`?`orange`:`red`,a=`status.${e}`;return(0,m.jsx)(Q,{tone:i,title:[t?`HTTP ${t}`:``,n].filter(Boolean).join(` · `)||void 0,children:r(a)})}function O5({r:e}){return e.passthrough||!e.upstreamProtocol||e.upstreamProtocol===e.inboundProtocol?(0,m.jsx)(`span`,{className:`text-[var(--text-muted)]`,children:e.inboundProtocol}):(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-0.5 text-[var(--warning)]`,children:[e.inboundProtocol,(0,m.jsx)(bx,{className:`size-3`}),e.upstreamProtocol]})}function k5(e,t){let n=[];return e.reasoningEffort&&n.push(e.reasoningEffort),e.reasoningMode&&n.push(e.reasoningMode),e.reasoningBudgetTokens!=null&&n.push(t(`requests.reasoning.budget`,{tokens:String(e.reasoningBudgetTokens)})),n}function sce({r:e}){let{t}=K(),n=k5(e,t);return n.length===0?null:(0,m.jsx)(Q,{tone:`neutral`,className:`max-w-44 text-[10px] font-normal`,title:`${t(`requests.reasoning.hint`)} ${n.join(` · `)}`,children:(0,m.jsxs)(`span`,{className:`block max-w-40 truncate`,children:[t(`requests.reasoning`),`: `,n.join(` · `)]})})}function cce({r:e}){let{t}=K(),n=k5(e,t);return n.length===0?(0,m.jsx)(`span`,{className:`text-[var(--text-muted)]`,title:t(`requests.reasoning.hint`),children:t(`requests.reasoning.notRecorded`)}):(0,m.jsx)(`span`,{title:t(`requests.reasoning.hint`),children:n.join(` · `)})}function A5({r:e,labeled:t=!1}){let{t:n}=K(),r=!!e.responseModel&&!!e.requestedModel,i=r&&e.responseModel===e.requestedModel,a=e.responseModel||n(`requests.modelNotRecorded`),o=e.responseModel?n(`requests.modelComparison`,{requested:e.requestedModel??`—`,upstream:e.upstreamModel??`—`,returned:e.responseModel}):n(`requests.modelNotRecorded.hint`);return(0,m.jsxs)(`span`,{className:Cv(`flex min-w-0 items-center gap-1`,r?i?`text-[var(--success)]`:`text-[var(--warning)]`:`text-[var(--text-muted)]`),title:o,children:[r&&(i?(0,m.jsx)(Ax,{className:`size-3 shrink-0`,"aria-hidden":`true`}):(0,m.jsx)(bx,{className:`size-3 shrink-0`,"aria-hidden":`true`})),(0,m.jsx)(`span`,{className:`truncate`,children:t?n(`requests.returnedModel`,{model:a}):a}),r&&(0,m.jsx)(`span`,{className:`shrink-0 text-[10px]`,children:n(i?`requests.modelMatch`:`requests.modelMismatch`)})]})}function j5({id:e,onClose:t}){let{t:n,locale:r}=K(),i=Ree(e),a=i.data,o=(a?.usageItems??[]).map((e,t)=>({key:String(t),type:e.tokenType,tokens:e.tokens,unitPrice:Number(e.unitPrice)||0,tier:e.tierApplied,cost:e.costNanoUsd,item:e})),s=[{key:`type`,label:n(`billing.type`),render:(e,t)=>(0,m.jsxs)(`span`,{children:[(0,m.jsx)(Xse,{type:t.item.tokenType}),t.item.pricedAs&&t.item.pricedAs!==t.item.tokenType&&(0,m.jsxs)(`span`,{className:`ml-1 font-mono text-[10.5px] text-[var(--text-muted)]`,children:[` → `,t.item.pricedAs]})]})},{key:`tokens`,label:n(`billing.tokens`),numeric:!0,render:(e,t)=>t.item.isPerCall?`${t.item.tokens}×`:_I(t.item.tokens)},{key:`unitPrice`,label:n(`billing.unitPrice`),numeric:!0,render:(e,t)=>(0,m.jsxs)(m.Fragment,{children:[gI(t.item.unitPrice),t.item.multipliers?.length?(0,m.jsxs)(`span`,{className:`text-[var(--text-muted)]`,children:[` (`,t.item.multipliers.join(`, `),`)`]}):null]})},{key:`tier`,label:n(`billing.tier`)},{key:`cost`,label:n(`billing.cost`),numeric:!0,render:(e,t)=>hI(t.item.costNanoUsd)}],c=[];a?.usageRaw!=null&&c.push({title:n(`requests.detail.usageRaw`),content:EI(a.usageRaw)}),a?.pricingSnapshot&&c.push({title:n(`requests.detail.pricingSnapshot`),content:EI(a.pricingSnapshot)});for(let e of[`clientRequest`,`upstreamRequest`,`upstreamRequestHeaders`,`upstreamResponse`,`clientResponse`]){let t=a?.bodies?.[e];t&&c.push({title:n(`requests.body.${e}`),content:EI(t)})}return(0,m.jsxs)(iP,{open:e!==null,onOpenChange:e=>!e&&t(),width:780,title:a?.requestedModel??n(`requests.detail.title`),description:a?.id,footer:(0,m.jsx)(X,{onClick:t,children:n(`common.close`)}),children:[i.isLoading&&(0,m.jsx)(QT,{lines:5}),i.isError&&(0,m.jsx)(lE,{tone:`danger`,title:n(`common.error`),children:$(i.error)}),a&&(0,m.jsxs)(`div`,{className:`flex flex-col gap-6 selectable`,children:[(0,m.jsxs)(`div`,{className:`grid gap-x-8 gap-y-5 sm:grid-cols-2`,children:[(0,m.jsxs)(tE,{title:n(`requests.detail.summary`),action:(0,m.jsx)(D5,{status:a.status,http:a.httpStatus}),children:[(0,m.jsx)(XT,{label:n(`requests.col.time`),children:CI(a.startedAtUtc,r)}),(0,m.jsx)(XT,{label:n(`requests.col.client`),children:T5(a,n)}),(0,m.jsx)(XT,{label:n(`requests.col.token`),children:a.tokenName??`—`}),(0,m.jsx)(XT,{label:n(`requests.col.provider`),children:a.providerName??`—`}),a.accountId&&(0,m.jsx)(XT,{label:n(`requests.detail.account`),children:a.accountName??a.accountId}),(0,m.jsx)(XT,{label:n(`requests.detail.protocol`),children:(0,m.jsx)(O5,{r:a})}),(0,m.jsx)(XT,{label:n(`requests.detail.requestedModel`),children:a.requestedModel??`—`}),(0,m.jsx)(XT,{label:n(`requests.detail.upstreamModel`),children:a.upstreamModel??`—`}),(0,m.jsx)(XT,{label:n(`requests.detail.responseModel`),children:(0,m.jsx)(A5,{r:a})}),(0,m.jsx)(XT,{label:n(`requests.detail.systemModel`),children:a.systemModelId??`—`}),(0,m.jsx)(XT,{label:n(`requests.detail.reasoning`),children:(0,m.jsx)(cce,{r:a})}),(0,m.jsx)(XT,{label:n(`requests.detail.stream`),children:a.stream?n(`common.yes`):n(`common.no`)}),a.serviceTier&&(0,m.jsx)(XT,{label:`service_tier`,children:a.serviceTier}),a.upstreamRequestId&&(0,m.jsx)(XT,{label:n(`requests.detail.upstreamId`),mono:!0,children:a.upstreamRequestId})]}),(0,m.jsxs)(tE,{title:n(`requests.detail.timing`),children:[(0,m.jsx)(XT,{label:`TTFB`,children:vI(a.ttfbMs)}),(0,m.jsx)(XT,{label:`TTFT`,children:vI(a.ttftMs)}),(0,m.jsx)(XT,{label:n(`requests.detail.generation`),children:vI(a.generationMs)}),(0,m.jsx)(XT,{label:n(`requests.detail.total`),children:vI(a.totalMs)}),(0,m.jsx)(XT,{label:n(`requests.detail.tps`),children:yI(a.outputTps)}),(0,m.jsxs)(XT,{label:n(`requests.col.tokens`),children:[_I(a.totalInputTokens),` / `,_I(a.totalOutputTokens)]})]})]}),(0,m.jsx)($se,{usage:a}),(a.errorType||a.errorMessage)&&(0,m.jsx)(lE,{tone:`danger`,title:a.errorType??n(`requests.detail.error`),children:a.errorMessage??void 0}),a.privacy&&(0,m.jsx)(tE,{title:n(`requests.detail.privacy`),action:(0,m.jsx)(Q,{tone:a.privacy.blocked?`red`:a.privacy.dryRun?`neutral`:`orange`,children:a.privacy.blocked?n(`requests.detail.privacyBlocked`):a.privacy.dryRun?n(`requests.detail.privacyDryRun`):n(`requests.detail.privacyRedacted`,{count:a.privacy.redactions})}),children:a.privacy.hits.length>0?(0,m.jsx)(`ul`,{className:`space-y-1 text-[12px]`,children:a.privacy.hits.map(e=>{let t=nce[e.action],r=tce[e.category];return(0,m.jsxs)(`li`,{className:`flex flex-wrap items-center gap-2`,children:[(0,m.jsx)(Q,{tone:e.action===`block`?`red`:e.action===`redact`?`orange`:`neutral`,children:t?n(t):e.action}),(0,m.jsxs)(`span`,{children:[r?n(r):e.category,` · `,e.ruleId,` × `,e.count]}),e.samples&&e.samples.length>0&&(0,m.jsx)(`span`,{className:`font-mono text-[11px] text-[var(--text-muted)]`,children:e.samples.join(` `)})]},`${e.ruleId}:${e.action}`)})}):(0,m.jsx)(`p`,{className:`text-[12px] text-[var(--text-secondary)]`,children:n(`settings.privacy.noHits`)})}),(0,m.jsxs)(tE,{title:n(`requests.detail.billing`),action:(0,m.jsx)(o8,{source:a.pricingSource??`none`,priceKey:a.priceKey}),children:[(0,m.jsx)(`div`,{className:`num mb-3 text-[22px] font-medium`,children:hI(a.costNanoUsd)}),a.usageSource===`missing`&&(0,m.jsx)(`div`,{className:`mb-3`,children:(0,m.jsx)(lE,{tone:`warning`,title:n(`requests.detail.usageMissing`)})}),o.length>0&&(0,m.jsx)(G6,{caption:n(`requests.detail.billing`),rows:o,columns:s,rowKey:`key`}),a.billingDescription&&(0,m.jsx)(`p`,{className:`mt-3 text-[12px] leading-relaxed whitespace-pre-line text-[var(--text-secondary)]`,children:a.billingDescription})]}),c.length>0&&(0,m.jsx)(OC,{defaultOpen:-1,items:c.map(e=>({title:e.title,content:(0,m.jsx)(ZT,{maxHeight:420,children:e.content})}))})]})]})}var M5={costUsd:1e6,requests:100,tokens:1};function lce(){let{t:e}=K(),t=g(),[n,r]=(0,p.useState)(`today`),[i,a]=(0,p.useState)(`all`),[o,s]=(0,p.useState)(`requests`),[c,l]=(0,p.useState)(``),u=fv(),d=i===`all`?void 0:i,f=c||void 0,h=u.data?.find(e=>e.id===f)?.name??f,_=Bee(n,d,f),v=_v(n,n===`today`?`hour`:`day`,`provider`,d,f),y=Gg(),b=tt({queryKey:[`stats`]})>0,x=_.data,S=x&&x.requests===0,C=e(`range.${n}`),w=(0,p.useMemo)(()=>g8(l8(v.data??[],o),h8(n)).map(e=>({key:e.bucket,label:Qoe(e.bucket),axisLabel:Zoe(e.bucket),value:Math.round(e.value*M5[o])})),[v.data,o,n]),T={costUsd:e(`overview.cost`),requests:e(`overview.requests`),tokens:e(`overview.tokens`)}[o],E=e=>{let t=e/M5[o];return o===`costUsd`?Sie(t):_I(Number(t.toFixed(2)),o===`tokens`)};return(0,m.jsxs)(i6,{title:e(`nav.overview`),actions:(0,m.jsx)(X,{variant:`plain`,icon:(0,m.jsx)(BS,{className:Cv(`size-4`,b&&`animate-spin`)}),"aria-label":e(`common.refresh`),onClick:()=>{t.invalidateQueries({queryKey:[`stats`]}),t.invalidateQueries({queryKey:[`requests`]})}}),children:[(0,m.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-between gap-2`,children:[(0,m.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,m.jsx)(dce,{value:i,onChange:a}),(0,m.jsx)(uP,{className:`w-44`,ariaLabel:e(`overview.tokenFilter`),value:c,onChange:l,options:[{value:``,label:e(`overview.allTokens`)},...(u.data??[]).map(e=>({value:e.id,label:e.name}))]})]}),(0,m.jsx)(zT,{ariaLabel:e(`overview.range`),value:n,onChange:r,items:[{value:`today`,label:e(`range.today`)},{value:`7d`,label:e(`range.7d`)},{value:`30d`,label:e(`range.30d`)},{value:`90d`,label:e(`range.90d`)}]})]}),(0,m.jsx)(uce,{clientKind:d,tokenId:f}),x?(0,m.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 md:grid-cols-3 xl:grid-cols-6`,children:[(0,m.jsx)(P5,{label:e(`overview.totalCost`),value:mI(x.costUsd),context:C}),(0,m.jsx)(P5,{label:e(`overview.totalRequests`),value:_I(x.requests),context:C}),(0,m.jsx)(P5,{label:e(`overview.tokens`),value:_I(x.inputTokens+x.outputTokens,!0),context:e(`overview.tokensContext`,{input:_I(x.inputTokens,!0),output:_I(x.outputTokens,!0)})}),(0,m.jsx)(P5,{label:e(`usage.hitRate`),value:bI(e5(x.cacheReadTokens,x.inputTokens)??0),context:e(`usage.cacheAmounts`,{read:_I(x.cacheReadTokens,!0),write:_I(x.cacheWriteTokens,!0)})}),(0,m.jsx)(P5,{label:e(`overview.successRate`),value:x.requests?bI(x.successRate):`—`,context:C}),(0,m.jsx)(P5,{label:e(`overview.avgTtft`),value:vI(x.avgTtftMs),context:x.avgTtftMs==null?e(`common.noData`):C})]}):(0,m.jsx)(QT,{lines:4}),S?(0,m.jsx)(`div`,{className:`card mt-4`,children:d?(0,m.jsx)($T,{icon:(0,m.jsx)(p3,{kind:d,size:32}),title:e(`overview.clientEmpty.title`,{client:a3[d].name}),detail:e(`overview.clientEmpty.detail`,{range:C})}):f?(0,m.jsx)($T,{icon:(0,m.jsx)(ux,{className:`size-6`}),title:e(`overview.tokenEmpty.title`,{token:h??``}),detail:e(`overview.tokenEmpty.detail`,{range:C})}):(0,m.jsx)($T,{icon:(0,m.jsx)(ux,{className:`size-6`}),title:e(`overview.empty.title`),detail:e(`overview.empty.detail`),action:y.data&&(0,m.jsx)(ZT,{language:`text`,filename:e(`settings.gatewayUrl`),children:`${y.data.gatewayBaseUrl}/v1`})})}):(0,m.jsxs)(`div`,{className:`mt-4 flex flex-col gap-4`,children:[(0,m.jsxs)(`section`,{className:`card p-5`,children:[(0,m.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center justify-between gap-2`,children:[(0,m.jsxs)(`div`,{className:`flex min-w-0 items-center gap-3`,children:[(0,m.jsxs)(`h2`,{className:`text-[13px] font-medium`,children:[e(`overview.usageTrend`),` · `,C]}),(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-[12px] text-[var(--text-secondary)]`,children:[(0,m.jsx)(`span`,{"aria-hidden":!0,className:`size-2.5 rounded-[3px] bg-[var(--accent)]`}),T]})]}),(0,m.jsx)(zT,{ariaLabel:e(`overview.measure`),value:o,onChange:s,items:[{value:`requests`,label:e(`overview.requests`)},{value:`tokens`,label:e(`overview.tokens`)},{value:`costUsd`,label:e(`overview.cost`)}]})]}),v.isLoading?(0,m.jsx)(QT,{lines:4}):(0,m.jsx)(yse,{data:w,label:T,period:C,height:180,formatValue:E,averageLabel:e(n===`today`?`overview.hourlyAverage`:`overview.dailyAverage`),valueLabel:e(`overview.total`),categoryLabel:e(n===`today`?`overview.hour`:`overview.day`)})]}),(0,m.jsx)(fce,{range:n,clientKind:d,tokenId:f,series:v.data??[],seriesLoading:v.isLoading})]})]})}var N5=365;function uce({clientKind:e,tokenId:t}){let{t:n,locale:r}=K(),i=Hee(N5,e,t),a=i.data??[],o=a.length,s=a.reduce((e,t)=>Math.max(e,t.requests),0),c=(0,p.useMemo)(()=>m8(N5),[]),l=(0,p.useMemo)(()=>Array.from({length:7},(e,t)=>Die(t,r)),[r]),u=`${n(`overview.activitySummary`,{from:c.days[0],to:c.days[c.days.length-1],active:o,days:N5})} · ${n(`overview.activityPeak`,{count:_I(s)})}`;return(0,m.jsxs)(`section`,{className:`card mb-3 p-5`,children:[(0,m.jsx)(`h2`,{className:`mb-3 text-[13px] font-medium`,children:n(`overview.activity`)}),i.isLoading?(0,m.jsx)(QT,{lines:3}):(0,m.jsx)(tse,{label:n(`overview.activity`),data:a,days:N5,weekdays:l,summary:u,legend:{less:n(`overview.activityLegend.less`),more:n(`overview.activityLegend.more`)},formatDay:(e,t)=>wie(e,t,r,n(`overview.activityUnit`),n(`overview.activityNone`)),formatMonth:e=>Tie(e,r),formatMonthStart:(e,t)=>Eie(e,t,r)})]})}function dce({value:e,onChange:t}){let{t:n}=K(),r=K_(),i=[{value:`all`,label:n(`overview.allClients`)},...Nse(r.data,o3,e).map(e=>({value:e,label:``,accessory:(0,m.jsxs)(`span`,{className:`inline-flex items-center`,title:a3[e].name,children:[(0,m.jsx)(f3,{kind:e,size:18}),(0,m.jsx)(`span`,{className:`sr-only`,children:a3[e].name})]})}))];return(0,m.jsx)(zT,{ariaLabel:n(`overview.clientFilter`),value:e,onChange:t,items:i})}function P5({label:e,value:t,context:n}){return(0,m.jsxs)(`article`,{className:`card min-w-0 px-4 py-3`,children:[(0,m.jsx)(`div`,{className:`truncate text-[12px] text-[var(--text-secondary)]`,children:e}),(0,m.jsx)(`div`,{className:`num mt-1 truncate text-[22px] leading-tight font-semibold selectable`,title:t,children:t}),(0,m.jsx)(`div`,{className:`mt-1 truncate text-[11px] text-[var(--text-muted)]`,title:n,children:n})]})}function fce({range:e,clientKind:t,tokenId:n,series:r,seriesLoading:i}){let{t:a,locale:o}=K(),[s,c]=(0,p.useState)(`requests`),[l,u]=(0,p.useState)(null),d=hv({client:t,token:n,from:(0,p.useMemo)(()=>p8(e)?.toISOString(),[e]),page:1,pageSize:20},s===`requests`),f=Vee(e,t,20,n),h=_v(e,e===`today`?`hour`:`day`,`token`,t,n),g=(d.data?.items??[]).map(e=>({id:e.id,time:Date.parse(e.startedAtUtc),client:e.clientKind?a3[e.clientKind]?.name??e.clientKind:e.tokenId?a(`requests.direct`):`—`,provider:e.providerName??``,model:e.requestedModel??``,input:e.totalInputTokens,output:e.totalOutputTokens,cache:e.cacheReadTokens,cost:e.costNanoUsd,speed:e.outputTps??-1,r:e})),_=[{key:`time`,label:a(`requests.col.time`),width:92,render:(e,t)=>(0,m.jsx)(`span`,{className:`num`,children:SI(t.r.startedAtUtc,o)})},{key:`client`,label:a(`requests.col.client`),width:150,render:(e,t)=>(0,m.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[t.r.clientKind&&t.r.clientKind in a3&&(0,m.jsx)(f3,{kind:t.r.clientKind,size:16}),(0,m.jsx)(`span`,{className:`truncate`,children:String(e)})]})},{key:`provider`,label:a(`requests.col.provider`),width:140,render:e=>(0,m.jsx)(`span`,{className:`block truncate`,children:String(e||`—`)})},{key:`model`,label:a(`requests.col.model`),render:(e,t)=>(0,m.jsxs)(`button`,{type:`button`,className:`flex w-full min-w-0 items-center gap-2 text-left`,onClick:()=>u(t.id),"aria-label":a(`requests.openDetail`,{model:t.model||t.id}),children:[(0,m.jsx)(`span`,{className:`truncate font-mono text-[12px] hover:text-[var(--accent)]`,title:t.model,children:t.model||`—`}),t.r.status!==`success`&&(0,m.jsx)(Q,{tone:t.r.status===`client_cancelled`?`orange`:`red`,children:a(`status.${t.r.status}`)})]})},{key:`input`,label:a(`overview.col.input`),numeric:!0,width:84,render:(e,t)=>F5(t.r,_I(t.input,!0))},{key:`output`,label:a(`overview.col.output`),numeric:!0,width:84,render:(e,t)=>F5(t.r,_I(t.output,!0))},{key:`cache`,label:a(`overview.col.cacheHit`),numeric:!0,width:96,render:(e,t)=>F5(t.r,t.cache>0?_I(t.cache,!0):`—`)},{key:`cost`,label:a(`requests.col.cost`),numeric:!0,width:104,render:(e,t)=>(0,m.jsx)(`span`,{className:Cv(`num whitespace-nowrap`,t.r.usageSource===`missing`&&`text-[var(--warning)]`),children:hI(t.r.costNanoUsd)})},{key:`speed`,label:a(`overview.col.speed`),numeric:!0,width:100,render:(e,t)=>(0,m.jsx)(`span`,{className:`num text-[var(--text-secondary)]`,children:yI(t.r.outputTps)})}],v=(0,p.useMemo)(()=>v8(r.map(e=>({key:e.key,requests:e.requests,tokens:e.tokens,costUsd:e.costUsd}))),[r]),y=(0,p.useMemo)(()=>v8((h.data??[]).map(e=>({key:e.key,requests:e.requests,tokens:e.tokens,costUsd:e.costUsd}))),[h.data]),b=(0,p.useMemo)(()=>{let e=new Map((f.data??[]).map(e=>[e.model,e5(e.cacheReadTokens,e.inputTokens)??-1]));return v8((f.data??[]).map(e=>({key:e.model,requests:e.requests,tokens:e.tokens,costUsd:e.costUsd}))).map(t=>({...t,cacheHit:e.get(t.key)??-1}))},[f.data]),x=(e,t=[])=>[{key:`key`,label:e,render:e=>(0,m.jsx)(`span`,{className:`block truncate font-mono text-[12px]`,children:String(e)})},{key:`requests`,label:a(`overview.requests`),numeric:!0,width:110,render:e=>_I(Number(e))},{key:`tokens`,label:a(`overview.tokens`),numeric:!0,width:110,render:e=>_I(Number(e),!0)},...t,{key:`costUsd`,label:a(`overview.cost`),numeric:!0,width:110,render:e=>mI(Number(e))},{key:`share`,label:a(`overview.col.share`),numeric:!0,width:150,render:e=>(0,m.jsx)(pce,{ratio:Number(e)})}],S={key:`cacheHit`,label:a(`usage.hitRate`),numeric:!0,width:120,render:e=>(0,m.jsx)(`span`,{className:Cv(`num`,Number(e)<0&&`text-[var(--text-muted)]`),children:Number(e)<0?`—`:bI(Number(e))})};return(0,m.jsxs)(`section`,{children:[(0,m.jsxs)(X8,{value:s,onValueChange:e=>c(e),children:[(0,m.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,m.jsxs)(Z8,{"aria-label":a(`overview.breakdown`),children:[(0,m.jsx)(Q8,{value:`requests`,children:a(`nav.requests`)}),(0,m.jsx)(Q8,{value:`providers`,children:a(`nav.providers`)}),(0,m.jsx)(Q8,{value:`models`,children:a(`nav.models`)}),(0,m.jsx)(Q8,{value:`tokens`,children:a(`nav.tokens`)})]}),s===`requests`&&(0,m.jsxs)(Lg,{to:`/requests`,className:`inline-flex items-center gap-1 text-[12px] text-[var(--text-secondary)] hover:text-[var(--accent)]`,children:[a(`overview.viewAll`),(0,m.jsx)(bx,{className:`size-3.5`})]})]}),(0,m.jsx)($8,{value:`requests`,children:d.isLoading?(0,m.jsx)(QT,{lines:4}):(0,m.jsx)(G6,{caption:a(`nav.requests`),rows:g,columns:_,rowKey:`id`,emptyMessage:a(`common.noData`)})}),(0,m.jsx)($8,{value:`providers`,children:i?(0,m.jsx)(QT,{lines:3}):(0,m.jsx)(G6,{caption:a(`nav.providers`),rows:v,columns:x(a(`requests.col.provider`)),rowKey:`key`,defaultSort:{key:`costUsd`,direction:`desc`},emptyMessage:a(`common.noData`)})}),(0,m.jsx)($8,{value:`models`,children:f.isLoading?(0,m.jsx)(QT,{lines:3}):(0,m.jsx)(G6,{caption:a(`overview.topModels`),rows:b,columns:x(a(`requests.col.model`),[S]),rowKey:`key`,defaultSort:{key:`costUsd`,direction:`desc`},emptyMessage:a(`common.noData`)})}),(0,m.jsx)($8,{value:`tokens`,children:h.isLoading?(0,m.jsx)(QT,{lines:3}):(0,m.jsx)(G6,{caption:a(`nav.tokens`),rows:y,columns:x(a(`overview.by.token`)),rowKey:`key`,defaultSort:{key:`costUsd`,direction:`desc`},emptyMessage:a(`common.noData`)})})]}),(0,m.jsx)(j5,{id:l,onClose:()=>u(null)})]})}function F5(e,t){return(0,m.jsx)(`span`,{className:Cv(`num`,e.usageSource===`missing`&&`opacity-50`),children:e.usageSource===`missing`?`—`:t})}function pce({ratio:e}){return(0,m.jsxs)(`span`,{className:`inline-flex w-full items-center justify-end gap-2`,children:[(0,m.jsx)(`span`,{"aria-hidden":!0,className:`h-1.5 w-16 overflow-hidden rounded-full bg-[var(--surface-muted)]`,children:(0,m.jsx)(`span`,{className:`block h-full rounded-full bg-[var(--accent)]`,style:{width:`${Math.min(100,e*100).toFixed(1)}%`}})}),(0,m.jsx)(`span`,{className:`num w-12 text-right`,children:bI(e)})]})}var mce={api_key:`settings.privacy.category.api_key`,aws_key:`settings.privacy.category.aws_key`,jwt:`settings.privacy.category.jwt`,private_key:`settings.privacy.category.private_key`,email:`settings.privacy.category.email`,phone:`settings.privacy.category.phone`,intranet:`settings.privacy.category.intranet`,credit_card:`settings.privacy.category.credit_card`,national_id:`settings.privacy.category.national_id`,credential:`settings.privacy.category.credential`,custom:`settings.privacy.category.custom`},I5={warn:`settings.privacy.action.warn`,block:`settings.privacy.action.block`,redact:`settings.privacy.action.redact`};function L5(){let{t:e}=K();return t=>{let n=mce[t];return n?e(n):t}}function hce({action:e}){let{t}=K();return(0,m.jsx)(Q,{tone:e===`block`?`red`:e===`redact`?`orange`:`neutral`,children:t(I5[e]??`settings.privacy.action.warn`)})}var R5=50,gce=[`block`,`redact`,`warn`];function _ce(){let{t:e,locale:t}=K(),n=L5(),[r,i]=(0,p.useState)(``),[a,o]=(0,p.useState)({client:``,category:``,action:``,blocked:``}),[s,c]=(0,p.useState)(1),[l,u]=(0,p.useState)(null),d=Tv(r),f=K_(),h=b_(),g=C_({model:d,...a,page:s,pageSize:R5},s===1),_=g.data,v=_?Math.max(1,Math.ceil(_.total/R5)):1,y=e=>e?a3[e]?.name??e:`—`,b=[...new Set((h.data?.rules??[]).map(e=>e.category))],x={client:(f.data??[]).map(e=>({value:e.kind,label:e.name})),category:b.map(e=>({value:e,label:n(e)})),action:gce.map(t=>({value:t,label:e(`settings.privacy.action.${t}`)})),blocked:[{value:`true`,label:e(`privacy.logs.blockedOnly`)},{value:`false`,label:e(`privacy.logs.passedOnly`)}]},S={client:e(`requests.col.client`),category:e(`privacy.stats.col.category`),action:e(`privacy.logs.col.action`),blocked:e(`privacy.logs.col.outcome`)},C=Object.keys(x).map(e=>({id:e,label:S[e],options:x[e].map(e=>e.label)})),w=Object.keys(a).filter(e=>a[e]).map(e=>({id:e,label:S[e],value:x[e].find(t=>t.value===a[e])?.label??a[e]})),T=(e,t)=>{o(n=>({...n,[e]:t})),c(1)},E=(_?.items??[]).map(e=>({id:e.id,time:Date.parse(e.startedAtUtc),client:y(e.clientKind),model:e.requestedModel??``,outcome:vce(e),hits:e.hits.reduce((e,t)=>e+t.count,0),e})),D=[{key:`time`,label:e(`requests.col.time`),width:92,render:(e,n)=>(0,m.jsx)(`span`,{className:`num`,children:SI(n.e.startedAtUtc,t)})},{key:`model`,label:e(`requests.col.model`),render:(t,n)=>(0,m.jsxs)(`button`,{type:`button`,className:`block w-full min-w-0 text-left`,onClick:()=>u(n.id),"aria-label":e(`privacy.logs.viewRequest`,{model:n.model||n.id}),children:[(0,m.jsx)(`span`,{className:`block truncate font-medium hover:text-[var(--accent)]`,children:n.model||`—`}),(0,m.jsx)(`span`,{className:`block truncate text-[11px] text-[var(--text-muted)]`,children:y(n.e.clientKind)})]})},{key:`outcome`,label:e(`privacy.logs.col.outcome`),width:130,render:(e,t)=>(0,m.jsx)(yce,{event:t.e})},{key:`hits`,label:e(`privacy.logs.col.hits`),render:(e,t)=>(0,m.jsx)(bce,{event:t.e})},{key:`client`,label:e(`requests.col.client`),width:110,render:e=>(0,m.jsx)(`span`,{className:`block truncate`,children:String(e||`—`)})}];return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`div`,{className:`mb-3 flex items-center gap-2`,children:[(0,m.jsx)(KT,{className:`w-52`,value:r,onChange:e=>{i(e),c(1)},placeholder:e(`requests.searchModel`)}),(0,m.jsx)(X,{variant:`plain`,icon:(0,m.jsx)(BS,{className:Cv(`size-4`,g.isFetching&&`animate-spin`)}),"aria-label":e(`common.refresh`),onClick:()=>void g.refetch()})]}),(0,m.jsx)(`div`,{className:`mb-3`,children:(0,m.jsx)(y5,{label:e(`requests.filters`),filters:w,onRemove:e=>T(e,``),onClearAll:()=>{o({client:``,category:``,action:``,blocked:``}),c(1)},addFilter:{fields:C,label:e(`requests.addFilter`),onAdd:e=>{let t=e.id,n=x[t].find(t=>t.label===e.value)?.value;n&&T(t,n)}}})}),g.isLoading&&(0,m.jsx)(QT,{lines:4,className:`py-6`}),g.isError&&(0,m.jsx)(lE,{tone:`danger`,title:e(`common.error`),children:$(g.error)}),_&&_.items.length===0&&(0,m.jsx)($T,{icon:(0,m.jsx)(nC,{className:`size-6`}),title:e(`privacy.logs.empty`),detail:e(`privacy.logs.empty.detail`)}),_&&_.items.length>0&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`p`,{className:`mb-2 text-[12px] text-[var(--text-secondary)]`,children:e(`privacy.logs.total`,{count:_I(_.total)})}),(0,m.jsx)(G6,{caption:e(`privacy.tab.logs`),rows:E,columns:D,rowKey:`id`,emptyMessage:e(`privacy.logs.empty`)})]}),_&&v>1&&(0,m.jsx)(`div`,{className:`mt-4 flex justify-center`,children:(0,m.jsx)(x5,{page:s,pageCount:v,onPageChange:c,label:e(`requests.page`,{page:s,pages:v})})}),(0,m.jsx)(j5,{id:l,onClose:()=>u(null)})]})}function vce(e){return e.blocked?`blocked`:e.redactions>0?`redact`:e.dryRun?`dryRun`:`warn`}function yce({event:e}){let{t}=K();return e.blocked?(0,m.jsx)(Q,{tone:`red`,children:t(`privacy.logs.outcome.blocked`)}):e.redactions>0?(0,m.jsx)(Q,{tone:`orange`,children:t(`privacy.logs.outcome.redacted`,{count:e.redactions})}):e.dryRun?(0,m.jsx)(Q,{tone:`neutral`,children:t(`privacy.logs.outcome.dryRun`)}):(0,m.jsx)(Q,{tone:`neutral`,children:t(`settings.privacy.action.warn`)})}function bce({event:e}){let t=L5(),{t:n}=K();if(e.hits.length===0)return(0,m.jsx)(`span`,{className:`text-[var(--text-muted)]`,children:`—`});let r=e.hits.slice(0,2),i=e.hits.length-r.length;return(0,m.jsxs)(`span`,{className:`flex flex-wrap items-center gap-x-2 gap-y-0.5 text-[12px]`,children:[r.map(e=>(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,m.jsx)(hce,{action:e.action}),(0,m.jsxs)(`span`,{children:[t(e.category),` × `,e.count]}),e.samples&&e.samples.length>0&&(0,m.jsx)(`span`,{className:`font-mono text-[11px] text-[var(--text-muted)]`,children:e.samples.slice(0,2).join(` `)})]},`${e.ruleId}:${e.action}`)),i>0&&(0,m.jsx)(`span`,{className:`text-[var(--text-muted)]`,children:n(`privacy.logs.moreHits`,{count:i})})]})}var z5={counter:`_counter_dnoch_1`,label:`_label_dnoch_2`,value:`_value_dnoch_4`,column:`_column_dnoch_6`,sizer:`_sizer_dnoch_7`,glyph:`_glyph_dnoch_8`,labelText:`_labelText_dnoch_9`,labelSwap:`_labelSwap_dnoch_10`,symbol:`_symbol_dnoch_11`,srOnly:`_srOnly_dnoch_12`},xce=[0,1,2,3,4,5,6,7,8,9],Sce={hidden:{opacity:0,y:`0.3em`,filter:`blur(${Y.blur.soft}px)`},shown:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:Y.duration.standard,ease:[...Y.ease.enter]}},gone:{opacity:0,y:`-0.3em`,filter:`blur(${Y.blur.subtle}px)`,transition:{duration:Y.duration.fast,ease:[...Y.ease.standard]}}},Cce={hidden:{opacity:0,y:0,filter:`blur(0px)`},shown:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:Y.duration.instant}},gone:{opacity:0,y:0,filter:`blur(0px)`,transition:{duration:Y.duration.instant}}},wce={...Y.spring.smooth,visualDuration:Y.duration.considered};function Tce(e,t,n){let r=new Intl.NumberFormat(n,{minimumFractionDigits:t,maximumFractionDigits:t,numberingSystem:`latn`}).formatToParts(e),i=r.reduce((e,t)=>e+(t.type===`integer`?t.value.length:0),0),a=0,o=0;return r.flatMap((e,t)=>e.type===`integer`?[...e.value].map(e=>({key:`i${--i}`,digit:Number(e),order:o++})):e.type===`fraction`?[...e.value].map(e=>({key:`f${a++}`,digit:Number(e),order:o++})):[{key:e.type===`group`?`g${i}`:e.type===`decimal`?`d`:`${e.type}${t}`,text:e.value}])}function Ece({position:e,digit:t}){let n=Jf(e,e=>((t-e)%10+15)%10-5),r=Jf(n,e=>`${e}em`),i=Jf(n,e=>Math.max(0,1-Math.abs(e))),a=Jf(n,e=>Math.abs(e)>=1?`hidden`:`visible`),o=Jf(n,e=>Math.abs(e)<.02||Math.abs(e)>=1?`none`:`blur(${(Math.abs(e)*Y.blur.subtle).toFixed(2)}px)`);return(0,m.jsx)(H.span,{className:z5.glyph,style:{y:r,opacity:i,filter:o,visibility:a},children:t})}var B5={initial:{width:0,opacity:0},animate:{width:`auto`,opacity:1},exit:{width:0,opacity:0}};function Dce({digit:e,direction:t,armed:n,delay:r,reduceMotion:i}){let a=Gf(n?0:e),o=(0,p.useRef)({digit:n?0:e,target:n?0:e,revealed:!n});return(0,p.useEffect)(()=>{let s=o.current;if(n||s.digit===e){n||(s.revealed=!0);return}s.target+=t<0&&s.revealed?-((s.digit-e+10)%10):(e-s.digit+10)%10,s.digit=e,i?a.jump(s.target):bp(a,s.target,s.revealed?Y.spring.smooth:{...wce,delay:r}),s.revealed=!0},[n,r,e,t,a,i]),(0,m.jsxs)(H.span,{className:z5.column,...B5,transition:i?{duration:0}:Y.spring.morph,children:[(0,m.jsx)(`span`,{className:z5.sizer,children:`0`}),xce.map(e=>(0,m.jsx)(Ece,{position:a,digit:e},e))]})}function Oce({value:e,label:t,prefix:n=``,suffix:r=``,decimals:i=0,animateOnView:a=!1,locale:o=`en-US`}){let s=(0,p.useRef)(null),c=Cp(s,{once:!0,amount:.6}),l=!!Zf(),[u,d]=(0,p.useState)(e),[f,h]=(0,p.useState)(1);e!==u&&(d(e),h(e>u?1:-1));let g=Tce(e,i,o),_=`${n}${g.map(e=>`text`in e?e.text:e.digit).join(``)}${r}`,v=a&&!c;return(0,m.jsxs)(`span`,{ref:s,className:z5.counter,children:[t&&(0,m.jsx)(`span`,{className:z5.label,children:(0,m.jsx)(`span`,{className:z5.labelSwap,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(H.span,{className:z5.labelText,variants:l?Cce:Sce,initial:`hidden`,animate:`shown`,exit:`gone`,children:t},t)})})}),(0,m.jsx)(`span`,{className:z5.srOnly,children:_}),(0,m.jsxs)(`span`,{className:z5.value,"aria-hidden":`true`,children:[n&&(0,m.jsx)(`span`,{className:z5.symbol,children:n}),(0,m.jsx)(V,{initial:!1,children:g.map(e=>`digit`in e?(0,m.jsx)(Dce,{digit:e.digit,direction:f,armed:v,delay:Math.min(e.order*Y.stagger.item,.25),reduceMotion:l},e.key):(0,m.jsx)(H.span,{className:z5.symbol,...B5,transition:l?{duration:0}:Y.spring.morph,children:e.text},e.key))}),r&&(0,m.jsx)(`span`,{className:z5.symbol,children:r})]})]})}var V5={card:`_card_1r6t9_1`,top:`_top_1r6t9_2`,swap:`_swap_1r6t9_8`,swapBlock:`_swapBlock_1r6t9_8`,text:`_text_1r6t9_11`,sizer:`_sizer_1r6t9_13`},kce={hidden:e=>({opacity:0,y:`${.3*e}em`,filter:`blur(${Y.blur.soft}px)`}),shown:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:Y.duration.standard,ease:[...Y.ease.enter]}},gone:e=>({opacity:0,y:`${-.3*e}em`,filter:`blur(${Y.blur.subtle}px)`,transition:{duration:Y.duration.fast,ease:[...Y.ease.standard]}})},Ace={hidden:{opacity:0,y:0,filter:`blur(0px)`},shown:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:Y.duration.instant}},gone:{opacity:0,y:0,filter:`blur(0px)`,transition:{duration:Y.duration.instant}}},H5=e=>Number(e.replace(/,/g,``).match(/-?\d+(?:\.\d+)?/)?.[0]??NaN);function U5({text:e,morph:t=!1,block:n=!1}){let r=!!Zf(),i=(0,p.useRef)(null),a=Gf(`auto`),[o,s]=(0,p.useState)({text:e,direction:1});return o.text!==e&&s({text:e,direction:H5(e)<H5(o.text)?-1:1}),(0,p.useEffect)(()=>{let e=i.current;if(!e||typeof ResizeObserver>`u`)return;let t=null,n=new ResizeObserver(([n])=>{let i=n.borderBoxSize?.[0]?.inlineSize??e.offsetWidth;i&&t!==null&&t!==e.textContent&&!r?bp(a,i,Y.spring.morph):a.jump(i||`auto`),t=i?e.textContent:null});return n.observe(e),()=>n.disconnect()},[t,r,a]),(0,m.jsxs)(H.span,{className:n?V5.swapBlock:V5.swap,style:t?{width:a}:void 0,children:[t&&(0,m.jsx)(`span`,{ref:i,className:V5.sizer,"aria-hidden":`true`,children:e}),(0,m.jsx)(V,{mode:`popLayout`,initial:!1,custom:o.direction,children:(0,m.jsx)(H.span,{className:V5.text,custom:o.direction,variants:r?Ace:kce,initial:`hidden`,animate:`shown`,exit:`gone`,children:e},e)})]})}function W5({label:e,value:t,suffix:n,context:r,change:i}){let a=!!Zf();return(0,m.jsxs)(`article`,{className:V5.card,children:[(0,m.jsxs)(`div`,{className:V5.top,children:[(0,m.jsx)(`span`,{children:(0,m.jsx)(U5,{text:e,block:!0})}),(0,m.jsx)(V,{initial:!1,children:i&&(0,m.jsx)(H.small,{"data-trend":/^[+]/.test(i)?`up`:/^[-−]/.test(i)?`down`:void 0,initial:{opacity:0,scale:a?1:.96},animate:{opacity:1,scale:1},exit:{opacity:0,scale:a?1:.96,transition:{duration:Y.duration.fast,ease:[...Y.ease.standard]}},transition:a?{duration:0}:Y.spring.snappy,children:(0,m.jsx)(U5,{text:i,morph:!0})},`change`)})]}),(0,m.jsx)(Oce,{value:t,suffix:n,animateOnView:!0}),(0,m.jsx)(`p`,{children:(0,m.jsx)(U5,{text:r,block:!0})})]})}var G5=[{id:`ipv4-all`,nameKey:`settings.privacy.template.ipv4All`,hintKey:`settings.privacy.template.ipv4AllHint`,pattern:String.raw`(?<![\d.])(?:\d{1,3}\.){3}\d{1,3}(?![\d.])`},{id:`landline`,nameKey:`settings.privacy.template.landline`,hintKey:`settings.privacy.template.genericHint`,pattern:String.raw`(?<!\d)0\d{2,3}[- ]?\d{7,8}(?!\d)`},{id:`license-plate`,nameKey:`settings.privacy.template.licensePlate`,hintKey:`settings.privacy.template.genericHint`,pattern:String.raw`[京津沪渝冀豫云辽黑湘皖鲁新苏浙赣鄂桂甘晋蒙陕吉闽贵粤青藏川宁琼使领][A-HJ-NP-Z][A-HJ-NP-Z0-9]{4,5}[A-HJ-NP-Z0-9挂学警港澳]`},{id:`passport-cn`,nameKey:`settings.privacy.template.passportCn`,hintKey:`settings.privacy.template.genericHint`,pattern:String.raw`(?<![A-Za-z0-9])[EG]\d{8}(?!\d)`},{id:`uscc`,nameKey:`settings.privacy.template.uscc`,hintKey:`settings.privacy.template.genericHint`,pattern:String.raw`(?<![0-9A-HJ-NPQRTUWXY])[0-9A-HJ-NPQRTUWXY]{18}(?![0-9A-HJ-NPQRTUWXY])`},{id:`long-token`,nameKey:`settings.privacy.template.longToken`,hintKey:`settings.privacy.template.longTokenHint`,pattern:String.raw`(?<![A-Za-z0-9])[A-Za-z0-9_\-]{32,}(?![A-Za-z0-9])`},{id:`mac-address`,nameKey:`settings.privacy.template.macAddress`,hintKey:`settings.privacy.template.genericHint`,pattern:String.raw`(?<![0-9A-Fa-f:])(?:[0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}(?![0-9A-Fa-f:])`},{id:`unix-home`,nameKey:`settings.privacy.template.unixHome`,hintKey:`settings.privacy.template.unixHomeHint`,pattern:String.raw`/(?:Users|home)/[A-Za-z0-9_.\-]+`},{id:`windows-profile`,nameKey:`settings.privacy.template.windowsProfile`,hintKey:`settings.privacy.template.unixHomeHint`,pattern:String.raw`[A-Za-z]:\\+Users\\+[A-Za-z0-9_.\-]+`},{id:`cloud-accesskey`,nameKey:`settings.privacy.template.cloudAccessKey`,hintKey:`settings.privacy.template.genericHint`,pattern:String.raw`(?<![A-Za-z0-9])(?:LTAI[A-Za-z0-9]{12,20}|AKID[A-Za-z0-9]{13,40})(?![A-Za-z0-9])`},{id:`aws-secret-key`,nameKey:`settings.privacy.template.awsSecretKey`,hintKey:`settings.privacy.template.genericHint`,pattern:String.raw`(?<![A-Za-z0-9/+=])[A-Za-z0-9/+=]{40}(?![A-Za-z0-9/+=])`},{id:`im-webhook`,nameKey:`settings.privacy.template.imWebhook`,hintKey:`settings.privacy.template.imWebhookHint`,pattern:String.raw`oapi\.dingtalk\.com/robot/send\?access_token=[0-9a-f]{64}|qyapi\.weixin\.qq\.com/cgi-bin/webhook/send\?key=[0-9a-f]{32}|open\.feishu\.cn/open-apis/bot/v2/hook/[0-9a-f\-]{20,}|hooks\.slack\.com/services/T[A-Za-z0-9]+/B[A-Za-z0-9]+/[A-Za-z0-9]+`},{id:`internal-service`,nameKey:`settings.privacy.template.internalService`,hintKey:`settings.privacy.template.genericHint`,pattern:String.raw`(?:gitlab|jenkins|jira|confluence|wiki|nexus|harbor|grafana|kibana|sonarqube|oa|sso)\.[A-Za-z0-9\-]+(?:\.[A-Za-z0-9\-]+)+`},{id:`jdbc-conn`,nameKey:`settings.privacy.template.jdbcConn`,hintKey:`settings.privacy.template.jdbcHint`,pattern:String.raw`jdbc:[A-Za-z0-9]+:[^\s"']*(?:[Uu]ser(?:[ _]?[Ii][Dd])?|[Pp]assword)=[^\s"&';]+`},{id:`smtp-conn`,nameKey:`settings.privacy.template.smtpConn`,hintKey:`settings.privacy.template.jdbcHint`,pattern:String.raw`(?:smtp|imap|pop3)s?://[^\s:@/]+:[^\s@]+@[^\s]+`},{id:`key-file-ref`,nameKey:`settings.privacy.template.keyFileRef`,hintKey:`settings.privacy.template.genericHint`,pattern:String.raw`[A-Za-z0-9_\-./\\]+\.(?:pem|key|pfx|p12|jks|keystore)\b`},{id:`confidential-marker`,nameKey:`settings.privacy.template.confidentialMarker`,hintKey:`settings.privacy.template.confidentialHint`,pattern:String.raw`(?:绝密|机密|商业秘密|内部资料|内部公开|仅限内部|请勿外传|Confidential|Internal Use Only|Internal Only|Company Private)`},{id:`employee-id`,nameKey:`settings.privacy.template.employeeId`,hintKey:`settings.privacy.template.genericHint`,pattern:String.raw`(?<![A-Za-z0-9])(?:[Ee][Mm][Pp]|工号)[::\- ]?\d{4,10}(?!\d)`},{id:`labeled-number`,nameKey:`settings.privacy.template.labeledNumber`,hintKey:`settings.privacy.template.genericHint`,pattern:String.raw`(?:合同|订单|采购单|工单|项目)编号[::]?\s*[A-Za-z0-9_\-]{4,32}`}],K5=[`off`,`warn`,`block`,`redact`],q5=I5;function jce(){let{t:e}=K(),{toast:t}=pP(),n=b_(),r=x_(),i=n.data?.settings,a=e=>{i&&r.mutate({...i,...e},{onError:e=>t($(e),`error`)})},o=K5.map(t=>({value:t,label:e(t===`off`?`settings.privacy.action.off`:q5[t])}));return(0,m.jsxs)(VT,{title:e(`settings.privacy`),footer:e(`settings.privacy.footer`),children:[n.isLoading&&(0,m.jsx)(QT,{className:`my-4`}),n.isError&&(0,m.jsx)(`div`,{className:`px-4 py-3 text-[12px] text-[var(--danger)]`,children:$(n.error)}),i&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Z,{label:e(`settings.privacy.enabled`),detail:e(`settings.privacy.enabledHint`),children:(0,m.jsx)(BT,{checked:i.enabled,label:e(`settings.privacy.enabled`),onChange:e=>a({enabled:e})})}),(0,m.jsx)(Z,{label:e(`settings.privacy.dryRun`),detail:e(`settings.privacy.dryRunHint`),children:(0,m.jsx)(BT,{checked:i.dryRun,disabled:!i.enabled,label:e(`settings.privacy.dryRun`),onChange:e=>a({dryRun:e})})}),(0,m.jsx)(Z,{label:e(`settings.privacy.restore`),detail:e(`settings.privacy.restoreHint`),children:(0,m.jsx)(BT,{checked:i.restoreResponses,disabled:!i.enabled,label:e(`settings.privacy.restore`),onChange:e=>a({restoreResponses:e})})}),(0,m.jsx)(Z,{label:e(`settings.privacy.recordSamples`),detail:e(`settings.privacy.recordSamplesHint`),children:(0,m.jsx)(BT,{checked:i.recordSamples,disabled:!i.enabled,label:e(`settings.privacy.recordSamples`),onChange:e=>a({recordSamples:e})})}),(0,m.jsx)(Z,{label:e(`settings.privacy.defaultAction`),children:(0,m.jsx)(uP,{className:`w-36`,ariaLabel:e(`settings.privacy.defaultAction`),value:i.defaultAction,disabled:!i.enabled,onChange:e=>a({defaultAction:e}),options:o})})]})]})}function Mce(){let{t:e}=K(),{toast:t}=pP(),n=b_(),r=x_(),i=n.data?.settings,a=L5(),o=e=>{i&&r.mutate({...i,...e},{onError:e=>t($(e),`error`)})},s=(e,t)=>o({categoryActions:{...i?.categoryActions,[e]:t}}),c=K5.map(t=>({value:t,label:e(t===`off`?`settings.privacy.action.off`:q5[t])})),l=[...new Set((n.data?.rules??[]).map(e=>e.category))],u=e=>n.data?.rules.find(t=>t.category===e)?.description;return n.isLoading?(0,m.jsx)(`div`,{className:`mx-auto max-w-[720px]`,children:(0,m.jsx)(QT,{className:`my-4`})}):i?(0,m.jsxs)(`div`,{className:`mx-auto flex max-w-[720px] flex-col gap-4`,children:[(0,m.jsx)(VT,{title:e(`settings.privacy.categories`),children:l.map(t=>{let n=i.categoryActions[t]??i.defaultAction,r=!i.enabled||n===`off`;return(0,m.jsxs)(Z,{label:a(t),detail:u(t),children:[n===`off`?(0,m.jsx)(Q,{children:e(`settings.privacy.action.off`)}):(0,m.jsx)(uP,{className:`w-36`,ariaLabel:a(t),value:n,disabled:!i.enabled,onChange:e=>s(t,e),options:c.filter(e=>e.value!==`off`)}),r&&(0,m.jsx)(X,{size:`sm`,variant:`plain`,disabled:!i.enabled,onClick:()=>s(t,i.categoryActions[t]??i.defaultAction),children:e(`settings.privacy.enableCategory`)})]},t)})}),(0,m.jsx)(Nce,{s:i,onPatch:o})]}):null}function Nce({s:e,onPatch:t}){let{t:n}=K(),{confirm:r}=pP(),[i,a]=(0,p.useState)(!1),o=(n,r)=>t({customRules:e.customRules.map(e=>e.id===n.id?{...e,enabled:r}:e)}),s=async i=>{await r({title:n(`settings.privacy.deleteRuleConfirm`,{name:i.name}),destructive:!0,confirmLabel:n(`common.delete`)})&&t({customRules:e.customRules.filter(e=>e.id!==i.id)})};return(0,m.jsxs)(VT,{title:n(`settings.privacy.customRules`),children:[e.customRules.length===0&&(0,m.jsx)(`div`,{className:`px-4 py-4 text-[12px] text-[var(--text-secondary)]`,children:n(`settings.privacy.noCustomRules`)}),e.customRules.map(t=>(0,m.jsxs)(Z,{label:t.name,detail:t.pattern,children:[(0,m.jsx)(BT,{checked:t.enabled,disabled:!e.enabled,label:t.name,onChange:e=>o(t,e)}),(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(mC,{className:`size-3.5`}),"aria-label":`${n(`common.delete`)} ${t.name}`,onClick:()=>void s(t)})]},t.id)),(0,m.jsx)(`div`,{className:`px-4 py-2`,children:(0,m.jsx)(X,{size:`sm`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),disabled:!e.enabled,onClick:()=>a(!0),children:n(`settings.privacy.addRule`)})}),(0,m.jsx)(Pce,{open:i,onOpenChange:a,onAdd:n=>t({customRules:[...e.customRules,n]})})]})}function Pce({open:e,onOpenChange:t,onAdd:n}){let{t:r}=K(),{toast:i}=pP(),[a,o]=(0,p.useState)(``),[s,c]=(0,p.useState)(``),[l,u]=(0,p.useState)(``);return(0,m.jsx)(iP,{open:e,onOpenChange:t,title:r(`settings.privacy.addRule`),width:480,footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:()=>t(!1),children:r(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!a.trim()||!s.trim(),onClick:()=>{if(a.trim()&&s.trim()){try{new RegExp(s)}catch(e){i(`${r(`settings.privacy.invalidPattern`)}: ${$(e)}`,`error`);return}n({id:`custom-${Date.now().toString(36)}`,name:a.trim(),pattern:s.trim(),enabled:!0}),o(``),c(``),u(``),t(!1)}},children:r(`common.create`)})]}),children:(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,m.jsx)(LT,{label:r(`settings.privacy.ruleTemplates`),hint:r(`settings.privacy.ruleTemplatesHint`),children:(0,m.jsx)(uP,{ariaLabel:r(`settings.privacy.ruleTemplates`),value:l,onChange:e=>{u(e);let t=G5.find(t=>t.id===e);t&&(o(r(t.nameKey)),c(t.pattern))},options:[{value:``,label:r(`settings.privacy.ruleTemplateNone`)},...G5.map(e=>({value:e.id,label:r(e.nameKey)}))]})}),(0,m.jsx)(UT,{label:r(`settings.privacy.ruleName`),value:a,onChange:e=>o(e.target.value),autoFocus:!0}),(0,m.jsx)(LT,{label:r(`settings.privacy.rulePattern`),hint:r(`settings.privacy.rulePatternHint`),children:(0,m.jsx)(WT,{mono:!0,rows:3,value:s,onChange:e=>c(e.target.value)})})]})})}function Fce(){let{t:e}=K(),{toast:t}=pP(),n=L5(),r=b_(),i=S_(),[a,o]=(0,p.useState)(``),s=i.data,c=r.data?.settings.enabled??!1;return(0,m.jsx)(VT,{title:e(`settings.privacy.tester`),footer:e(`settings.privacy.testerHint`),children:(0,m.jsxs)(`div`,{className:`flex flex-col gap-3 px-4 py-3`,children:[(0,m.jsx)(WT,{"aria-label":e(`settings.privacy.tester`),placeholder:e(`settings.privacy.testerPlaceholder`),rows:4,mono:!0,value:a,onChange:e=>o(e.target.value)}),(0,m.jsx)(`div`,{children:(0,m.jsx)(X,{icon:(0,m.jsx)(eC,{className:`size-3.5`}),disabled:!c||!a.trim(),loading:i.isPending,onClick:()=>i.mutate({text:a},{onError:e=>t($(e),`error`)}),children:e(`settings.privacy.runTest`)})}),s&&(0,m.jsxs)(`div`,{className:`rounded-lg border border-[var(--border)] px-3 py-2 text-[12px]`,children:[(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[s.blocked&&(0,m.jsx)(Q,{tone:`red`,children:e(`settings.privacy.wouldBlock`)}),s.wouldRedact>0&&(0,m.jsx)(Q,{tone:`orange`,children:e(`settings.privacy.wouldRedact`,{count:s.wouldRedact})}),!s.blocked&&s.wouldRedact===0&&(0,m.jsx)(Q,{tone:`green`,children:e(`settings.privacy.noHits`)})]}),s.hits.length>0&&(0,m.jsx)(`ul`,{className:`mt-2 space-y-1`,children:s.hits.map(t=>(0,m.jsxs)(`li`,{className:`flex flex-wrap items-center gap-2`,children:[(0,m.jsx)(Q,{tone:t.action===`block`?`red`:t.action===`redact`?`orange`:`neutral`,children:e(q5[t.action])}),(0,m.jsxs)(`span`,{children:[n(t.category),` · `,t.ruleId,` × `,t.count]}),t.samples&&t.samples.length>0&&(0,m.jsx)(`span`,{className:`font-mono text-[11px] text-[var(--text-muted)]`,children:t.samples.join(` `)})]},`${t.ruleId}:${t.action}`))})]})]})})}var Ice=[`today`,`7d`,`30d`,`all`];function Lce(){let{t:e}=K(),t=L5(),[n,r]=(0,p.useState)(`7d`),i=w_(n),a=i.data,o=[{key:`category`,label:e(`privacy.stats.col.category`),render:e=>t(String(e))},{key:`requests`,label:e(`privacy.stats.col.requests`),numeric:!0,width:110},{key:`hits`,label:e(`privacy.stats.col.hits`),numeric:!0,width:96},{key:`warnHits`,label:e(`privacy.stats.col.warn`),numeric:!0,width:84},{key:`blockHits`,label:e(`privacy.stats.col.block`),numeric:!0,width:84},{key:`redactHits`,label:e(`privacy.stats.col.redact`),numeric:!0,width:84}],s=(a?.categories??[]).map(e=>({...e}));return(0,m.jsxs)(`div`,{className:`flex flex-col gap-4`,children:[(0,m.jsxs)(`section`,{children:[(0,m.jsx)(eE,{action:(0,m.jsx)(zT,{ariaLabel:e(`overview.range`),value:n,onChange:r,items:Ice.map(t=>({value:t,label:e(`range.${t}`)}))}),children:e(`privacy.stats`)}),i.isLoading&&(0,m.jsx)(QT,{lines:3,className:`py-4`}),i.isError&&(0,m.jsx)(lE,{tone:`danger`,title:e(`common.error`),children:$(i.error)}),a&&(0,m.jsxs)(`div`,{className:`grid grid-cols-2 gap-3 lg:grid-cols-4`,children:[(0,m.jsx)(W5,{label:e(`privacy.stats.events`),value:a.events,context:e(`range.${n}`)}),(0,m.jsx)(W5,{label:e(`privacy.stats.blocked`),value:a.blocked,context:e(`range.${n}`)}),(0,m.jsx)(W5,{label:e(`privacy.stats.redactions`),value:a.redactions,context:e(`range.${n}`)}),(0,m.jsx)(W5,{label:e(`privacy.stats.dryRun`),value:a.dryRun,context:e(`range.${n}`)})]})]}),(0,m.jsxs)(`section`,{children:[(0,m.jsx)(eE,{children:e(`privacy.stats.byCategory`)}),a&&a.categories.length===0&&(0,m.jsx)(`div`,{className:`card`,children:(0,m.jsx)(Rce,{})}),a&&a.categories.length>0&&(0,m.jsx)(G6,{caption:e(`privacy.stats.byCategory`),rows:s,columns:o,rowKey:`category`,defaultSort:{key:`hits`,direction:`desc`}})]}),(0,m.jsx)(`div`,{className:`mx-auto w-full max-w-[720px]`,children:(0,m.jsx)(jce,{})})]})}function Rce(){let{t:e}=K();return(0,m.jsxs)(`div`,{className:`flex flex-col items-center gap-2 px-4 py-8 text-center`,children:[(0,m.jsx)(eC,{className:`size-6 text-[var(--text-muted)]`}),(0,m.jsx)(`div`,{className:`text-[13px]`,children:e(`privacy.logs.empty`)}),(0,m.jsx)(`div`,{className:`text-[12px] text-[var(--text-secondary)]`,children:e(`privacy.logs.empty.detail`)})]})}var J5=[`overview`,`logs`,`rules`,`tester`];function Y5(){let{t:e}=K(),{tab:t}=Ph(),n=Ah(),r=J5.includes(t)?t:`overview`;return(0,m.jsx)(i6,{title:e(`nav.privacy`),subtitle:e(`settings.privacy.footer`),children:(0,m.jsxs)(X8,{value:r,onValueChange:e=>n(`/privacy/${e}`,{replace:!0}),children:[(0,m.jsx)(Z8,{"aria-label":e(`nav.privacy`),children:J5.map(t=>(0,m.jsx)(Q8,{value:t,children:e(`privacy.tab.${t}`)},t))}),(0,m.jsx)($8,{value:`overview`,className:`pt-5`,children:(0,m.jsx)(Lce,{})}),(0,m.jsx)($8,{value:`logs`,className:`pt-4`,children:(0,m.jsx)(_ce,{})}),(0,m.jsx)($8,{value:`rules`,className:`pt-5`,children:(0,m.jsx)(Mce,{})}),(0,m.jsx)($8,{value:`tester`,className:`pt-5 [&>div]:mx-auto [&>div]:max-w-[680px]`,children:(0,m.jsx)(Fce,{})})]})})}var X5={card:`_card_i7fo0_3`,trigger:`_trigger_i7fo0_6`,media:`_media_i7fo0_7`,zoom:`_zoom_i7fo0_8`,content:`_content_i7fo0_9`,description:`_description_i7fo0_12`,footer:`_footer_i7fo0_13`,title:`_title_i7fo0_15`,byline:`_byline_i7fo0_22`,avatar:`_avatar_i7fo0_23`,bylineText:`_bylineText_i7fo0_26`,meta:`_meta_i7fo0_27`,status:`_status_i7fo0_28`,roll:`_roll_i7fo0_30`,line:`_line_i7fo0_31`,word:`_word_i7fo0_32`,srOnly:`_srOnly_i7fo0_33`,action:`_action_i7fo0_34`,overlay:`_overlay_i7fo0_36`,panel:`_panel_i7fo0_38`,closeSlot:`_closeSlot_i7fo0_48`,close:`_close_i7fo0_48`,details:`_details_i7fo0_51`},{blur:Z5,duration:Q5,ease:$5,spring:e7,stagger:zce}=Y,t7={...e7.smooth,visualDuration:.3},n7={...e7.smooth,visualDuration:.26},Bce=300,r7={duration:Q5.instant},i7=1.04,Vce={duration:Q5.considered*2,ease:[...$5.standard]},Hce={duration:Q5.considered,ease:[...$5.standard]},Uce={delay:Q5.instant,duration:Q5.standard,ease:[...$5.enter]},Wce={delay:Q5.instant,duration:Q5.fast,ease:[...$5.enter]},Gce={enter:{},center:{},exit:{opacity:0,y:`-.3em`,filter:`blur(${Z5.subtle}px)`,transition:{duration:Q5.fast,ease:[...$5.standard]}}},Kce={enter:{opacity:0,y:`.3em`,filter:`blur(${Z5.soft}px)`},center:e=>({opacity:1,y:0,filter:`blur(0px)`,transition:{duration:Q5.standard,ease:[...$5.enter],delay:e*zce.word}})};function qce({text:e,reduced:t}){return(0,m.jsxs)(`span`,{className:X5.status,role:`status`,children:[(0,m.jsx)(`span`,{className:X5.srOnly,children:e}),(0,m.jsx)(`span`,{className:X5.roll,"aria-hidden":`true`,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:(0,m.jsx)(H.span,{className:X5.line,variants:Gce,initial:!t&&`enter`,animate:`center`,exit:t?void 0:`exit`,children:e.split(/(\s+)/).map((e,t)=>(0,m.jsx)(H.span,{className:X5.word,custom:t/2,variants:Kce,children:e},t))},e)})})]})}function a7(e,t){let n=parseFloat(t);if(Number.isFinite(n))return t.trim().endsWith(`rem`)?n*parseFloat(getComputedStyle(e.ownerDocument.documentElement).fontSize):n}function Jce({title:e,description:t,media:n,action:r,avatar:i,meta:a,status:o,details:s,open:c,defaultOpen:l=!1,onOpenChange:u,children:d,className:f,style:h,...g}){let _=Zf()??!1,v=(0,p.useId)(),y=(0,p.useRef)(null),b=(0,p.useRef)(null),[x,S]=(0,p.useState)(l),[C,w]=(0,p.useState)(!1),[T,E]=(0,p.useState)({}),[D,O]=(0,p.useState)(null),k=s?c??x:!1,A=!!s&&!_,j=!k&&D!==null,M=!!t,N=(0,p.useCallback)(e=>{c===void 0&&S(e),u?.(e)},[c,u]);(0,p.useEffect)(()=>{let e=y.current,t=b.current;if(!A||!e||typeof ResizeObserver>`u`)return;let n=new ResizeObserver(()=>{let n=getComputedStyle(e),r=a7(e,n.borderTopLeftRadius),i=a7(e,n.getPropertyValue(`--radius-surface`)),a=t?.offsetWidth||void 0;E(e=>e.card!==void 0&&e.measure===a?e:{card:e.card??r,panel:e.panel??i,measure:a})});return n.observe(e),t&&n.observe(t),()=>n.disconnect()},[A,M]);let P=(0,p.useRef)(k);(0,p.useLayoutEffect)(()=>{let e=P.current&&!k;P.current=k;let t=y.current;if(k)O(null);else if(e&&A&&t){let e=t.getBoundingClientRect();O({top:e.top,left:e.left,width:e.width,height:e.height})}},[k,A]),(0,p.useEffect)(()=>{if(!j)return;let e=window.setTimeout(()=>O(null),Bce);return()=>window.clearTimeout(e)},[j]);let F=(e,t,n=!0)=>A?{layoutId:e,layout:n,layoutCrossfade:!1,layoutDependency:t===`card`?k:j?`return`:`panel`,transition:{layout:t===`card`?n7:t7}}:{},I=e=>i||a||o||r?(0,m.jsxs)(`div`,{className:X5.footer,children:[i||a||o?(0,m.jsxs)(H.div,{className:X5.byline,...F(`byline`,e,`position`),children:[i?(0,m.jsx)(`span`,{className:X5.avatar,children:i}):null,(0,m.jsxs)(`span`,{className:X5.bylineText,children:[a?(0,m.jsx)(`span`,{className:X5.meta,children:a}):null,o?(0,m.jsx)(qce,{text:o,reduced:_}):null]})]}):null,r?(0,m.jsx)(H.div,{className:X5.action,...F(`action`,e,`position`),children:r}):null]}):null,L=(0,m.jsxs)(H.article,{...g,ref:y,className:[X5.card,f].filter(Boolean).join(` `),style:{...h,borderRadius:T.card??h?.borderRadius},"data-hover":C||void 0,whileHover:_?void 0:{y:-2},onHoverStart:()=>w(!0),onHoverEnd:()=>w(!1),...F(`card`,`card`),transition:{default:e7.snappy,layout:n7},children:[n?(0,m.jsx)(H.div,{className:X5.media,...F(`media`,`card`),children:(0,m.jsx)(H.div,{className:X5.zoom,initial:!1,animate:{scale:C&&!_?i7:1},transition:C?Vce:Hce,children:n})}):null,(0,m.jsxs)(`div`,{className:X5.content,children:[(0,m.jsx)(H.h3,{className:X5.title,...F(`title`,`card`),children:s?(0,m.jsx)(LD,{asChild:!0,children:(0,m.jsx)(`button`,{type:`button`,className:X5.trigger,children:e})}):e}),t?(0,m.jsx)(H.p,{ref:b,className:X5.description,...F(`description`,`card`,`position`),children:t}):null,d,I(`card`)]})]});return s?(0,m.jsx)(FD,{open:k,onOpenChange:N,children:(0,m.jsxs)(Yu,{id:v,children:[L,(0,m.jsx)(V,{children:(k||j)&&(0,m.jsxs)(VD,{forceMount:!0,children:[(0,m.jsx)(V,{children:k&&(0,m.jsx)(UD,{asChild:!0,forceMount:!0,children:(0,m.jsx)(H.div,{className:X5.overlay,initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:_?r7:{duration:Q5.exit,ease:[...$5.standard]}},transition:_?r7:{duration:Q5.standard,ease:[...$5.enter]}})},`overlay`)}),(0,m.jsx)(qD,{asChild:!0,forceMount:!0,...t?{}:{"aria-describedby":void 0},children:(0,m.jsxs)(H.div,{className:X5.panel,"data-framer-portal-id":v,"data-returning":j||void 0,layoutScroll:!0,style:{borderRadius:T.panel,"--card-measure":T.measure?`${T.measure}px`:void 0,...D&&j?{"--landing-top":`${D.top}px`,"--landing-left":`${D.left}px`,"--landing-width":`${D.width}px`,"--landing-height":`${D.height}px`}:{}},...A?{...F(`card`,`panel`),initial:!1,animate:T.card!==void 0&&T.panel!==void 0?{borderRadius:j?T.card:T.panel}:void 0,transition:{layout:j?n7:t7,borderRadius:j?n7:t7},exit:{opacity:0,transition:{duration:0}}}:{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0,transition:r7},transition:r7},children:[n?(0,m.jsx)(H.div,{className:X5.media,...F(`media`,`panel`),children:(0,m.jsx)(H.div,{className:X5.zoom,initial:{scale:C&&!_?i7:1},animate:{scale:1},transition:t7,children:n})}):null,(0,m.jsx)(H.span,{className:X5.closeSlot,initial:_?{opacity:0}:{opacity:0,scale:.9},animate:j?{opacity:0,scale:.9}:{opacity:1,scale:1},transition:j||_?r7:Wce,children:(0,m.jsx)(eO,{asChild:!0,children:(0,m.jsx)(H.button,{type:`button`,className:X5.close,"aria-label":`Close quick look`,whileTap:_?void 0:{scale:.94},transition:e7.snappy,children:(0,m.jsx)(vC,{width:16,height:16,strokeWidth:1.75,"aria-hidden":`true`})})})}),(0,m.jsxs)(`div`,{className:X5.content,children:[(0,m.jsx)(ZD,{asChild:!0,children:(0,m.jsx)(H.h2,{className:X5.title,...F(`title`,`panel`),children:e})}),t?(0,m.jsx)(QD,{asChild:!0,children:(0,m.jsx)(H.p,{className:X5.description,...F(`description`,`panel`,`position`),children:t})}):null,d,I(`panel`),(0,m.jsx)(H.div,{className:X5.details,initial:!_&&{opacity:0,y:6},animate:j?{opacity:0,y:0}:{opacity:1,y:0},exit:{opacity:0,transition:r7},transition:j||_?r7:Uce,children:s})]})]})})]},`quick-look`)})]})}):L}var o7={root:`_root_1erkf_1`,ring:`_ring_1erkf_16`,card:`_card_1erkf_26`,label:`_label_1erkf_46`,meta:`_meta_1erkf_46`,indicator:`_indicator_1erkf_48`,indicatorDot:`_indicatorDot_1erkf_61`,body:`_body_1erkf_64`,labelText:`_labelText_1erkf_66`,icon:`_icon_1erkf_67`,description:`_description_1erkf_70`},Yce=[...Y.ease.standard],s7=((e,t)=>{let n=2*Math.PI/(e*1.2);return{type:`spring`,stiffness:n*n,damping:2*(1-t)*n,mass:1}})(.42,.14),Xce=()=>()=>{};function Zce(){let e=(0,p.useSyncExternalStore)(Xce,()=>!0,()=>!1);return!!Zf()&&e}var c7=(0,p.forwardRef)(function({options:e,value:t,defaultValue:n=null,onValueChange:r,layout:i=`grid`,minColumnWidth:a=180,name:o,required:s,disabled:c=!1,className:l,style:u,...d},f){let h=Zce(),g=(0,p.useId)().replace(/[^a-zA-Z0-9_-]/g,``),_=(0,p.useRef)(null);(0,p.useImperativeHandle)(f,()=>_.current);let[v,y]=(0,p.useState)(n),b=t===void 0?v:t,x=e.findIndex(e=>e.value===b),S=e=>!c&&!e.disabled,C=x>=0&&S(e[x])?x:e.findIndex(S),w=e=>{e!==b&&(t===void 0&&y(e),r?.(e))},T=Gf(0),E=Gf(0),D=Gf(0),O=Gf(0),k=Gf(0),A=(0,p.useRef)(!1),j=(0,p.useCallback)(e=>{let t=x<0?null:_.current?.querySelector(`[data-card="${x}"]`);if(!t){k.set(0),A.current=!1;return}let n=[t.offsetLeft,t.offsetTop,t.offsetWidth,t.offsetHeight];if(!e||!A.current||h){T.jump(n[0]),E.jump(n[1]),D.jump(n[2]),O.jump(n[3]),!A.current&&!h&&e?(k.jump(0),bp(k,1,{duration:Y.duration.fast,ease:Yce})):k.jump(1),A.current=!0;return}bp(T,n[0],s7),bp(E,n[1],s7),bp(D,n[2],s7),bp(O,n[3],s7),k.set(1)},[O,k,h,x,D,T,E]),M=(0,p.useRef)(j);(0,p.useLayoutEffect)(()=>{M.current=j,j(!0)},[j]),(0,p.useLayoutEffect)(()=>{let e=_.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>M.current(!1));return t.observe(e),()=>t.disconnect()},[]);let N=()=>Array.from(_.current?.querySelectorAll(`[data-card]`)??[]),P=(t,n)=>{let r=t.key===`ArrowRight`||t.key===`ArrowDown`?1:t.key===`ArrowLeft`||t.key===`ArrowUp`?-1:0;if(t.key===` `||t.key===`Enter`){t.preventDefault(),S(e[n])&&w(e[n].value);return}if(!r&&t.key!==`Home`&&t.key!==`End`)return;t.preventDefault();let i=e.length,a=r&&(t.key===`ArrowLeft`||t.key===`ArrowRight`)&&getComputedStyle(t.currentTarget).direction===`rtl`?-1:1,o=t.key===`Home`?-1:t.key===`End`?i:n,s=t.key===`Home`?1:t.key===`End`?-1:r*a;for(let t=0;t<i;t++)if(o=(o+s+i)%i,S(e[o])){N()[o]?.focus(),w(e[o].value);return}};return(0,m.jsxs)(`div`,{ref:_,role:`radiogroup`,"aria-disabled":c||void 0,"aria-required":s||void 0,className:[o7.root,l].filter(Boolean).join(` `),"data-layout":i,style:{"--min-column":`${a}px`,...u},...d,children:[(0,m.jsx)(H.span,{className:o7.ring,style:{x:T,y:E,width:D,height:O,opacity:k},"aria-hidden":`true`}),e.map((e,t)=>{let n=t===x,r=!S(e),i=`${g}-${t}-label`,a=`${g}-${t}-description`,o=r&&e.disabledReason?e.disabledReason:e.description;return(0,m.jsxs)(`div`,{role:`radio`,"data-card":t,className:o7.card,"aria-checked":n,"aria-disabled":r||void 0,"aria-labelledby":i,"aria-describedby":o?a:void 0,tabIndex:t===C?0:-1,"data-checked":n||void 0,onClick:()=>{r||w(e.value)},onKeyDown:e=>P(e,t),children:[(0,m.jsx)(`span`,{className:o7.indicator,"aria-hidden":`true`,children:(0,m.jsx)(H.span,{className:o7.indicatorDot,initial:!1,animate:{scale:+!!n},transition:h?{duration:0}:Y.spring.snappy})}),(0,m.jsxs)(`span`,{className:o7.body,children:[(0,m.jsxs)(`span`,{id:i,className:o7.label,children:[e.icon&&(0,m.jsx)(`span`,{className:o7.icon,children:e.icon}),(0,m.jsx)(`span`,{className:o7.labelText,children:e.label})]}),o&&(0,m.jsx)(`span`,{id:a,className:o7.description,children:o})]}),e.meta&&(0,m.jsx)(`span`,{className:o7.meta,children:e.meta})]},e.value)}),o&&(0,m.jsx)(`input`,{type:`hidden`,name:o,value:b??``,required:s})]})}),l7={figure:`_figure_1clu4_1`,caption:`_caption_1clu4_1`,label:`_label_1clu4_1`,accent:`_accent_1clu4_2`,success:`_success_1clu4_2`,warning:`_warning_1clu4_2`,danger:`_danger_1clu4_2`,point:`_point_1clu4_4`,roll:`_roll_1clu4_7`,track:`_track_1clu4_9`,slot:`_slot_1clu4_9`,glyph:`_glyph_1clu4_9`,sizer:`_sizer_1clu4_11`,plot:`_plot_1clu4_14`,chart:`_chart_1clu4_17`,baseline:`_baseline_1clu4_18`,area:`_area_1clu4_20`,line:`_line_1clu4_21`,trail:`_trail_1clu4_21`,cursor:`_cursor_1clu4_24`,end:`_end_1clu4_25`},Qce={hidden:e=>({opacity:0,y:`${.3*e}em`,filter:`blur(${Y.blur.soft}px)`}),shown:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:Y.duration.standard,ease:[...Y.ease.enter]}},gone:e=>({opacity:0,y:`${-.3*e}em`,filter:`blur(${Y.blur.subtle}px)`,transition:{duration:Y.duration.fast,ease:[...Y.ease.standard]}})},$ce={hidden:{opacity:0,y:0,filter:`blur(0px)`},shown:{opacity:1,y:0,filter:`blur(0px)`,transition:{duration:Y.duration.instant}},gone:{opacity:0,y:0,filter:`blur(0px)`,transition:{duration:Y.duration.instant}}},u7=e=>Number(e.replace(/,/g,``).replace(/−/g,`-`).match(/-?\d+(?:\.\d+)?/)?.[0]??NaN),ele=new Intl.NumberFormat(`en-US`),tle={duration:Y.duration.considered*1.75,ease:[...Y.ease.inOut]},d7={duration:Y.duration.fast,ease:[...Y.ease.standard]};function nle(e,t){if(!e)return[];if(t)return[{slot:`all`,key:e,text:e}];if(!/\p{L}/u.test(e))return[...e].map((e,t,n)=>({slot:`n${n.length-t}`,key:e,text:e}));let n=e.split(/(?<=\s)/);return n.map((e,t)=>({slot:`w${t}`,key:n.slice(0,t+1).join(``),text:e}))}function f7({text:e,direction:t,whole:n=!1,morph:r=!1,tone:i}){let a=!!Zf(),o=(0,p.useRef)(null),s=Gf(`auto`),[c,l]=(0,p.useState)({text:e,direction:1});c.text!==e&&l({text:e,direction:t??(u7(e)<u7(c.text)?-1:1)}),(0,p.useEffect)(()=>{let e=o.current;if(!e||typeof ResizeObserver>`u`)return;let t=null,n=new ResizeObserver(([n])=>{if(!n)return;let r=n.borderBoxSize?.[0]?.inlineSize??e.offsetWidth;t!==null&&t!==e.textContent&&!a?bp(s,r,Y.spring.morph):s.jump(r),t=e.textContent});return n.observe(e),()=>n.disconnect()},[r,a,s]);let u=!n&&!/\p{L}/u.test(e),d=a?$ce:Qce,f=u?`right`:`left`;return(0,m.jsxs)(H.span,{className:l7.roll,"data-end":u||void 0,"data-whole":n||void 0,style:r?{width:s}:void 0,children:[r&&(0,m.jsx)(`span`,{ref:o,className:l7.sizer,"aria-hidden":`true`,children:e}),(0,m.jsx)(`span`,{className:l7.track,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,custom:c.direction,anchorX:f,children:nle(e,n).map(e=>(0,m.jsx)(H.span,{className:l7.slot,custom:c.direction,variants:d,initial:`hidden`,animate:`shown`,exit:`gone`,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,custom:c.direction,anchorX:f,children:(0,m.jsx)(H.span,{className:i?`${l7.glyph} ${i}`:l7.glyph,custom:c.direction,variants:d,initial:`hidden`,animate:`shown`,exit:`gone`,children:e.text},`${i??``}${e.key}`)})},e.slot))})})]})}var rle=5,p7=1.25,ile=Array.from({length:161},(e,t)=>t/160);function ale(e){let t=Math.min(...e),n=Math.max(...e)-t,r=e.map(e=>n?(e-t)/n:.5),i=r.length-1,a=1/i,o=r.slice(1).map((e,t)=>(e-r[t])/a),s=r.map((e,t)=>t===0||t===i?o[0]:(Math.sign(o[t-1])+Math.sign(o[t]))*Math.min(Math.abs(o[t-1]),Math.abs(o[t]),Math.abs(o[t-1]+o[t])/4)||0);i>1&&(s[0]=(3*o[0]-s[1])/2,s[i]=(3*o[i-1]-s[i-1])/2);let c=Math.max(1,Math.min(16,Math.round(128/i))),l=[];for(let e=0;e<i;e++)for(let t=0;t<c;t++){let n=t/c,i=n*n,o=i*n,u=(2*o-3*i+1)*r[e]+(o-2*i+n)*a*s[e]+(3*i-2*o)*r[e+1]+(o-i)*a*s[e+1];l.push([(e+n)*a,Math.min(1,Math.max(0,u))])}return l.push([1,r[i]]),l}function m7(e,t){let n=0,r=e.length-1;if(t<=e[n][0])return e[n][1];if(t>=e[r][0])return e[r][1];for(;r-n>1;){let i=n+r>>1;e[i][0]<t?n=i:r=i}let[i,a]=e[n],[o,s]=e[r];return o===i?s:a+(s-a)*(t-i)/(o-i)}function h7(e,t,n,r){let i=e=>rle+(1-e)*(n-10),a=e.map(([e,n])=>[e*t,i(n)]),o=a.map(([e,t])=>`${e.toFixed(2)},${t.toFixed(2)}`),s=r*t,c=i(m7(e,r));return{points:a,line:o.join(` `),trail:`M${o.join(`L`)}`,fill:`M${o.join(`L`)}L${t},${n}L0,${n}Z`,dot:`${s},${c} ${s},${c}`,cx:s}}function ole(e,t){let n=e.slice(1).map(([t,n],r)=>Math.hypot(t-e[r][0],n-e[r][1])),r=t*n.reduce((e,t)=>e+t,0);for(let t=0;t<n.length;t++){let i=n[t],a=e[t][0];if(r<=i)return a+(e[t+1][0]-a)*(i?r/i:1);r-=i}return e[e.length-1][0]}function sle({data:e,label:t,value:n,change:r,tone:i=`accent`,width:a=160,height:o=52,labels:s,formatValue:c,area:l=!0,interactive:u=!0}){let d=e.length>1?e:[e[0]??0,e[0]??0],f=d.length-1,h=d.join(`,`),g=(0,p.useMemo)(()=>ale(h.split(`,`).map(Number)),[h]),_=`${t}: ${n??d[f]}. ${r??``}`.trim(),v=`sparkline${(0,p.useId)().replace(/[^a-zA-Z0-9_-]/g,``)}`,y=(0,p.useRef)(null),b=(0,p.useRef)(null),x=Cp(y,{once:!0,amount:.5}),S=!!Zf(),[C,w]=(0,p.useState)({w:a,h:o}),[T,E]=(0,p.useState)(null),[D,O]=(0,p.useState)(!1),k=T===null?null:Math.min(T,f),[A,j]=(0,p.useState)({index:k,direction:1});A.index!==k&&j({index:k,direction:k===null||A.index===null?1:Math.sign(k-A.index)||1});let[M]=(0,p.useState)(()=>h7(g,a,o,1)),N=(0,p.useRef)(g),P=(0,p.useRef)(C),F=Gf(0),I=Gf(1),L=Gf(M.line),R=Gf(M.trail),ee=Gf(M.fill),te=Gf(M.dot),ne=Gf(M.cx),re=Gf(M.cx+p7+16),ie=Gf(M.cx+p7),ae=Gf(0),oe=Jf(F,e=>+(e>.001)),se=(0,p.useCallback)(()=>{let{w:e,h:t}=P.current,n=F.get(),r=h7(N.current,e,t,I.get());L.set(r.line),R.set(r.trail),ee.set(r.fill),te.set(r.dot),ne.set(r.cx),re.set(r.cx+p7+16),ie.set(r.cx+p7),ae.set(n>=1?e+32:ole(r.points,n)+16)},[I,ne,ie,te,F,ee,L,re,ae,R]);Wf(I,`change`,se),Wf(F,`change`,se),(0,p.useLayoutEffect)(()=>{let e=b.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>{let t=e.clientWidth;t&&w(e=>Math.abs(e.w-t)<.5?e:{w:t,h:t*o/a})});return t.observe(e),()=>t.disconnect()},[o,a]),(0,p.useLayoutEffect)(()=>{P.current=C,se()},[C,se]),(0,p.useEffect)(()=>{if(S){F.jump(1);let e=requestAnimationFrame(()=>O(!0));return()=>cancelAnimationFrame(e)}if(!x)return;let e=bp(F,1,{...tle,onComplete:()=>O(!0)});return()=>e.stop()},[F,x,S]),(0,p.useEffect)(()=>{let e=N.current;if(e===g)return;if(S){N.current=g,se();return}let t=[...new Set([...ile,...g.map(([e])=>e)])].sort((e,t)=>e-t),n=t.map(t=>m7(e,t)),r=t.map(e=>m7(g,e)),i=bp(0,1,{...Y.spring.smooth,onUpdate:e=>{N.current=t.map((t,i)=>[t,n[i]+(r[i]-n[i])*e]),se()},onComplete:()=>{N.current=g,se()}});return()=>i.stop()},[se,S,g]),(0,p.useEffect)(()=>{let e=k===null?1:k/f;if(S){I.jump(e);return}let t=bp(I,e,Y.spring.snappy);return()=>t.stop()},[I,k,f,S]);let ce=k!==null,le=(e=>c?c(d[e],e):ele.format(d[e]))(k??f),z=s?.[k??f],ue=n===void 0?void 0:ce?le:n,de=k===null?r??``:n===void 0?[le,z].filter(Boolean).join(` · `):z??`${k+1} of ${f+1}`,fe=e=>{let t=b.current?.getBoundingClientRect();return t?.width?Math.max(0,Math.min(f,Math.round((e-t.left)/t.width*f))):f},pe=u?{role:`slider`,tabIndex:0,"aria-label":`${t}, explore values`,"aria-valuemin":1,"aria-valuemax":f+1,"aria-valuenow":(k??f)+1,"aria-valuetext":`${z??(k===null?`Latest`:`Point ${k+1} of ${f+1}`)}: ${le}`,onPointerDown:e=>E(fe(e.clientX)),onPointerMove:e=>{(e.pointerType===`mouse`||e.buttons)&&E(fe(e.clientX))},onPointerUp:e=>{e.pointerType!==`mouse`&&E(null)},onPointerLeave:()=>E(null),onPointerCancel:()=>E(null),onBlur:()=>E(null),onKeyDown:e=>{if(e.key===`Escape`&&ce){e.preventDefault(),E(null);return}let t=k??f,n=Math.max(1,Math.round((f+1)/6)),r={ArrowLeft:t-1,ArrowDown:t-1,ArrowRight:t+1,ArrowUp:t+1,PageDown:t-n,PageUp:t+n,Home:0,End:f}[e.key];r!==void 0&&(e.preventDefault(),E(Math.max(0,Math.min(f,r))))}}:{};return(0,m.jsxs)(`figure`,{ref:y,className:l7.figure,"aria-label":_,children:[(0,m.jsxs)(`figcaption`,{className:l7.caption,children:[(0,m.jsx)(`span`,{className:l7.label,children:(0,m.jsx)(f7,{text:t,whole:!0})}),ue!==void 0&&(0,m.jsx)(`strong`,{children:(0,m.jsx)(f7,{text:ue,morph:!0})}),(0,m.jsx)(`small`,{className:l7[i],children:(0,m.jsx)(f7,{text:de,direction:ce?A.direction:void 0,tone:ce?l7.point:void 0,morph:!0})})]}),(0,m.jsx)(`div`,{ref:b,className:l7.plot,"data-interactive":u||void 0,...pe,children:(0,m.jsxs)(`svg`,{className:l7.chart,viewBox:`0 0 ${C.w} ${C.h}`,"aria-hidden":`true`,focusable:`false`,children:[(0,m.jsxs)(`defs`,{children:[(0,m.jsx)(`clipPath`,{id:`${v}-lit`,clipPathUnits:`userSpaceOnUse`,children:(0,m.jsx)(H.rect,{x:-16,y:-16,width:re,height:C.h+32})}),(0,m.jsx)(`clipPath`,{id:`${v}-dim`,clipPathUnits:`userSpaceOnUse`,children:(0,m.jsx)(H.rect,{x:ie,y:-16,width:C.w+32,height:C.h+32})}),(0,m.jsx)(`clipPath`,{id:`${v}-fill`,clipPathUnits:`userSpaceOnUse`,children:(0,m.jsx)(H.rect,{x:-16,y:-16,width:ae,height:C.h+32})})]}),l&&(0,m.jsx)(H.path,{className:`${l7.area} ${l7[i]}`,d:ee,clipPath:`url(#${v}-fill)`}),(0,m.jsx)(`line`,{className:l7.baseline,x1:`0`,y1:C.h-.5,x2:C.w,y2:C.h-.5}),(0,m.jsx)(H.path,{className:l7.trail,d:R,clipPath:`url(#${v}-dim)`,initial:!1,animate:{opacity:ce&&D?1:0},transition:S?{duration:0}:d7}),(0,m.jsx)(H.polyline,{className:[l7.line,l7[i]].join(` `),points:L,clipPath:`url(#${v}-lit)`,style:{pathLength:F,opacity:oe}}),(0,m.jsx)(H.line,{className:l7.cursor,x1:ne,x2:ne,y1:0,y2:C.h,initial:!1,animate:{opacity:+!!ce},transition:S?{duration:0}:d7}),(0,m.jsx)(H.polyline,{className:[l7.end,l7[i]].join(` `),points:te,initial:!1,animate:{opacity:+!!D,strokeWidth:D?ce?10:7:0},transition:S?{duration:0}:{opacity:d7,strokeWidth:Y.spring.snappy},fill:`none`,strokeLinecap:`round`})]})})]})}var g7={root:`_root_1cea8_1`,horizontal:`_horizontal_1cea8_3`,list:`_list_1cea8_4`,item:`_item_1cea8_5`,vertical:`_vertical_1cea8_7`,compact:`_compact_1cea8_8`,head:`_head_1cea8_11`,marker:`_marker_1cea8_20`,ring:`_ring_1cea8_21`,disc:`_disc_1cea8_22`,glyph:`_glyph_1cea8_23`,icon:`_icon_1cea8_24`,connector:`_connector_1cea8_31`,fill:`_fill_1cea8_35`,text:`_text_1cea8_40`,label:`_label_1cea8_43`,slot:`_slot_1cea8_47`,slotInner:`_slotInner_1cea8_48`,description:`_description_1cea8_49`,error:`_error_1cea8_49`,caption:`_caption_1cea8_53`,captionLabel:`_captionLabel_1cea8_54`,srOnly:`_srOnly_1cea8_63`},_7=e=>`blur(${e}px)`,v7={duration:0},y7={duration:Y.duration.fast,ease:[...Y.ease.standard]},cle={duration:Y.duration.standard,ease:[...Y.ease.enter]},lle={opacity:0,y:`0.3em`,filter:_7(Y.blur.soft)},ule={opacity:1,y:0,filter:_7(0)},dle={opacity:0,y:`-0.3em`,filter:_7(Y.blur.subtle)},b7={opacity:0,scale:.5,filter:_7(Y.blur.subtle)},x7={opacity:1,scale:1,filter:_7(0)};function S7({text:e,className:t,reduced:n}){let r=(0,p.useRef)(null),i=(0,p.useRef)(0),a=Gf(`auto`);return(0,p.useLayoutEffect)(()=>{i.current=performance.now()+700},[e]),(0,p.useEffect)(()=>{let e=r.current,t=e?.parentElement;if(!e||!t||typeof ResizeObserver>`u`)return;let o=!1,s=new ResizeObserver(()=>{let t=e.offsetHeight;if(!o||n||performance.now()>i.current){o=!0,a.jump(t);return}bp(a,t,Y.spring.smooth)});return s.observe(e),()=>s.disconnect()},[a,n]),(0,m.jsx)(H.span,{className:g7.slot,style:{height:a},children:(0,m.jsx)(`span`,{ref:r,className:g7.slotInner,children:(0,m.jsx)(V,{mode:`popLayout`,initial:!1,children:e?(0,m.jsx)(H.span,{className:t,initial:lle,animate:ule,exit:{...dle,transition:n?v7:y7},transition:n?v7:cle,children:e},`${t}:${e}`):null})})})}function fle({kind:e,number:t,delay:n,reduced:r}){let i=r?v7:{scale:{...Y.spring.snappy,delay:n},opacity:{duration:Y.duration.fast,delay:n},filter:{duration:Y.duration.fast,delay:n}},a={...b7,transition:r?v7:y7},o=r?v7:{duration:Y.duration.standard,ease:Y.ease.enter,delay:n+.04};return e===`number`?(0,m.jsx)(H.span,{className:g7.glyph,initial:b7,animate:x7,exit:a,transition:i,children:t}):(0,m.jsx)(H.svg,{className:`${g7.glyph} ${g7.icon}`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2.5,strokeLinecap:`round`,strokeLinejoin:`round`,initial:b7,animate:x7,exit:a,transition:i,children:e===`check`?(0,m.jsx)(H.path,{d:`M5.5 12.5l4.25 4.25L18.5 8`,initial:{pathLength:0},animate:{pathLength:1},transition:o}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(H.path,{d:`M12 6.75v6.5`,initial:{pathLength:0},animate:{pathLength:1},transition:o}),(0,m.jsx)(H.circle,{cx:12,cy:17.4,r:1.4,fill:`currentColor`,stroke:`none`,initial:{scale:0},animate:{scale:1},transition:r?v7:{...Y.spring.snappy,delay:n+.16}})]})})}function ple({number:e,kind:t,current:n,glyphDelay:r,ringDelay:i,reduced:a}){return(0,m.jsxs)(`span`,{className:g7.marker,"aria-hidden":`true`,children:[(0,m.jsx)(V,{initial:!1,children:n?(0,m.jsx)(H.span,{className:g7.ring,initial:{opacity:0,scale:.6},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.6,transition:a?v7:y7},transition:a?v7:{scale:{...Y.spring.snappy,delay:i},opacity:{duration:Y.duration.fast,delay:i}}},`ring`):null}),(0,m.jsx)(`span`,{className:g7.disc,children:(0,m.jsx)(V,{initial:!1,children:(0,m.jsx)(fle,{kind:t,number:e,delay:r,reduced:a},t)})})]})}var C7={complete:`Completed`,current:``,upcoming:`Not started`,error:`Error`};function mle({steps:e,current:t,orientation:n=`horizontal`,onStepSelect:r,details:i=`all`,compact:a=!1,label:o=`Progress`,completeLabel:s=`All steps complete`,className:c}){let l=Zf()??!1,u=e.length,d=Math.min(Math.max(Math.round(t),0),u),[f,h]=(0,p.useState)({to:d,from:d});f.to!==d&&h({to:d,from:f.to});let g=f.from,_=Y.stagger.line,v=e=>l?0:d>g?e>=g&&e<d?(e-g)*_:0:e>=d&&e<g?(g-1-e)*_:0,y=l?0:Math.max(0,Math.abs(d-g)-1)*_+.12,b=!!r,x=n===`vertical`,S=d>=u?void 0:e[d];function C(e){let t=!x&&getComputedStyle(e.currentTarget).direction===`rtl`,n=[`ArrowUp`,t?`ArrowRight`:`ArrowLeft`],r=[`ArrowDown`,t?`ArrowLeft`:`ArrowRight`];if(![...n,...r,`Home`,`End`].includes(e.key))return;let i=Array.from(e.currentTarget.querySelectorAll(`button[data-reachable]`)),a=i.indexOf(e.target);a<0||(e.preventDefault(),i[e.key===`Home`?0:e.key===`End`?i.length-1:n.includes(e.key)?Math.max(0,a-1):Math.min(i.length-1,a+1)]?.focus())}let w=b?`nav`:`div`,T=[g7.root,x?g7.vertical:g7.horizontal,a?g7.compact:``,c].filter(Boolean).join(` `);return(0,m.jsxs)(w,{className:T,"aria-label":o,role:b?void 0:`group`,children:[(0,m.jsx)(`ol`,{className:g7.list,style:x?void 0:{gridTemplateColumns:u>1?`repeat(${u-1}, minmax(0, 1fr)) auto`:`auto`},onKeyDown:b?C:void 0,children:e.map((e,t)=>{let a=t===d,o=e.error?`error`:t<d?`complete`:a?`current`:`upcoming`,s=b&&t<d,c=e.error??(i===`all`||a?e.description:void 0),f=e.error?`error`:t<d?`check`:`number`,p=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(ple,{number:t+1,kind:f,current:a,glyphDelay:v(t),ringDelay:y,reduced:l}),(0,m.jsxs)(`span`,{className:g7.text,children:[(0,m.jsx)(`span`,{className:g7.label,children:e.label}),C7[o]?(0,m.jsxs)(`span`,{className:g7.srOnly,children:[`, `,C7[o]]}):null,(0,m.jsx)(S7,{text:c,className:e.error?g7.error:g7.description,reduced:l})]})]});return(0,m.jsxs)(`li`,{className:g7.item,"data-status":o,children:[t<u-1?(0,m.jsx)(`span`,{className:g7.connector,"aria-hidden":`true`,children:(0,m.jsx)(H.span,{className:g7.fill,initial:!1,animate:x?{scaleY:+(t<d)}:{scaleX:+(t<d)},transition:l?v7:{...Y.spring.smooth,delay:v(t)}},n)}):null,b?(0,m.jsx)(`button`,{type:`button`,className:g7.head,"data-clickable":s||void 0,"data-reachable":t<=d||void 0,"aria-current":a?`step`:void 0,"aria-disabled":!s||void 0,tabIndex:s?void 0:-1,onClick:s?()=>r?.(t):void 0,children:p}):(0,m.jsx)(`span`,{className:g7.head,"aria-current":a?`step`:void 0,children:p})]},e.id)})}),x?null:(0,m.jsxs)(`span`,{className:g7.caption,"aria-hidden":`true`,children:[(0,m.jsx)(S7,{text:S?.label??s,className:g7.captionLabel,reduced:l}),(0,m.jsx)(S7,{text:S?.error??S?.description,className:S?.error?g7.error:g7.description,reduced:l})]}),(0,m.jsx)(`span`,{className:g7.srOnly,"aria-live":`polite`,children:S?`Step ${d+1} of ${u}: ${S.label}`:s})]})}var hle={"openai-chat":`Chat`,"openai-responses":`Responses`,anthropic:`Anthropic`,gemini:`Gemini`},gle={new:`green`,same:`neutral`,sameHost:`orange`,off:`neutral`,skip:`red`},w7=e=>`${e.source}\u0000${e.ref}`,T7=e=>e.status!==`skip`&&e.status!==`same`;function E7(e){try{return new URL(e).host}catch{return e}}function _le({open:e,onOpenChange:t}){let{t:n}=K(),{toast:r}=pP(),i=$g(e),a=e_(),[o,s]=(0,p.useState)(``),[c,l]=(0,p.useState)(new Set),[u,d]=(0,p.useState)(null);(0,p.useEffect)(()=>{i.data&&l(new Set(i.data.flatMap(e=>e.items).filter(e=>e.status===`new`).map(w7)))},[i.data]),(0,p.useEffect)(()=>{e&&(s(``),d(null))},[e]);let f=o.trim().toLowerCase(),h=e=>!f||e.name.toLowerCase().includes(f)||e.endpoints.some(e=>e.baseUrl.toLowerCase().includes(f)),g=(0,p.useMemo)(()=>(i.data??[]).flatMap(e=>e.items).filter(e=>c.has(w7(e))&&T7(e)),[i.data,c]),_=(e,t)=>l(n=>{let r=new Set(n);return t?r.add(w7(e)):r.delete(w7(e)),r});return(0,m.jsx)(iP,{open:e,onOpenChange:t,width:680,title:n(`import.title`),description:n(`import.detail`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{icon:(0,m.jsx)(BS,{className:`size-3.5`}),onClick:()=>void i.refetch(),disabled:i.isFetching||a.isPending,children:n(`import.rescan`)}),(0,m.jsx)(X,{variant:`primary`,disabled:g.length===0||a.isPending,onClick:()=>{d(null),a.mutate(g.map(e=>({source:e.source,ref:e.ref})),{onSuccess:e=>{let i=e.skipped.length;r(i>0?n(`import.doneSkipped`,{count:e.added.length,skipped:i}):n(`import.done`,{count:e.added.length})),t(!1)},onError:e=>{d($(e)),i.refetch()}})},children:n(`import.selected`,{count:g.length})})]}),children:(0,m.jsxs)(`div`,{className:`grid gap-4`,children:[(0,m.jsx)(KT,{value:o,onChange:s,placeholder:n(`import.search`)}),u&&(0,m.jsx)(lE,{tone:`danger`,title:n(`common.error`),children:u}),i.isLoading&&(0,m.jsx)(QT,{lines:3}),i.isError&&(0,m.jsx)(lE,{tone:`danger`,title:n(`common.error`),children:$(i.error)}),(0,m.jsx)(`div`,{className:`grid max-h-[460px] gap-4 overflow-auto pr-1`,children:i.data?.map(e=>(0,m.jsx)(vle,{source:e,matches:h,selected:c,onToggle:_,filtering:f.length>0},e.id))}),(0,m.jsx)(`p`,{className:`text-[11px] text-[var(--text-muted)]`,children:n(`import.footnote`)})]})})}function vle({source:e,matches:t,selected:n,onToggle:r,filtering:i}){let{t:a}=K(),o=e.items.filter(t);return(0,m.jsxs)(`section`,{"aria-label":e.name,children:[(0,m.jsxs)(`div`,{className:`mb-1.5 flex flex-wrap items-baseline gap-x-2 px-1`,children:[(0,m.jsx)(`h3`,{className:`text-[13px] font-medium`,children:e.name}),e.path&&(0,m.jsx)(`span`,{className:`min-w-0 truncate font-mono text-[11px] text-[var(--text-muted)]`,title:a(`import.path`,{path:e.path}),children:e.path})]}),e.error?(0,m.jsx)(lE,{tone:`danger`,title:a(`import.sourceError`,{error:e.error})}):e.found?o.length===0?(0,m.jsx)(`p`,{className:`px-1 text-[12px] text-[var(--text-muted)]`,children:a(i?`import.noMatch`:`import.noItems`)}):(0,m.jsx)(`ul`,{className:`card divide-y divide-[var(--border)]`,children:o.map(e=>(0,m.jsx)(yle,{c:e,checked:n.has(w7(e)),onToggle:t=>r(e,t)},w7(e)))}):(0,m.jsx)(`p`,{className:`px-1 text-[12px] text-[var(--text-muted)]`,children:a(`import.notFound`)})]})}function yle({c:e,checked:t,onToggle:n}){let{t:r}=K(),i=T7(e),a=e.status===`skip`&&e.skipReason?r(`import.skip.${e.skipReason}`):e.status===`same`&&e.existing?r(`import.existing`,{name:e.existing.name}):e.status===`sameHost`&&e.existing?r(`import.sameHostHint`,{name:e.existing.name}):null,o=e.endpoints.map(e=>`${hle[e.protocol]??e.protocol} · ${E7(e.baseUrl)}`).join(` / `);return(0,m.jsxs)(`li`,{className:Cv(`flex items-start gap-3 px-4 py-3`,!i&&`opacity-60`),children:[(0,m.jsx)(O6,{checked:t&&i,disabled:!i,onCheckedChange:e=>n(e===!0),"aria-label":e.name}),(0,m.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`min-w-0 truncate text-[13px] font-medium`,title:e.name,children:e.name}),(0,m.jsx)(Q,{tone:gle[e.status],children:r(`import.status.${e.status}`)}),e.fromApp&&(0,m.jsx)(`span`,{className:`text-[11px] text-[var(--text-muted)]`,children:e.fromApp})]}),o&&(0,m.jsx)(`div`,{className:`mt-0.5 truncate font-mono text-[11px] text-[var(--text-muted)]`,title:o,children:o}),(0,m.jsxs)(`div`,{className:`mt-0.5 flex flex-wrap gap-x-3 text-[11px] text-[var(--text-muted)]`,children:[(0,m.jsx)(`span`,{className:`font-mono`,children:e.hasKey?e.keyMasked??`••••`:r(`import.noKey`)}),e.models.length>0&&(0,m.jsx)(`span`,{children:r(`import.models`,{count:e.models.length})}),e.templateId&&(0,m.jsx)(`span`,{children:r(`import.template`,{id:e.templateId})})]}),a&&(0,m.jsx)(`div`,{className:`mt-1 text-[11px] text-[var(--text-secondary,var(--text-muted))]`,children:a}),e.ignoredFields.length>0&&(0,m.jsx)(`div`,{className:`mt-1 text-[11px] text-[var(--warning)]`,children:r(`import.ignored`,{fields:e.ignoredFields.join(`, `)})})]})]})}function D7(e){return Math.max(0,Math.round(e.requests*(1-e.successRate)))}function O7(e){return!Number.isFinite(e)||e<=0?`$0`:e<.01?`$<0.01`:e<1e3?`$${e.toFixed(2)}`:mI(e,{compact:!0})}function ble(e,t=new Date){return g8(l8(e,`requests`),h8(`today`,t))}var k7=e=>String(e).padStart(2,`0`);function xle(e,t=new Date){let n=new Date(t.getFullYear(),t.getMonth(),t.getDate()-1),r=`${n.getFullYear()}-${k7(n.getMonth()+1)}-${k7(n.getDate())}`;return e.filter(e=>e.bucket===r).reduce((e,t)=>e+t.tokens,0)}function Sle(e,t){return t<=0?null:(e-t)/t}function Cle(e,t){let n=[...e].sort((e,t)=>t.tokens-e.tokens)[0];return!n||n.tokens<=0?null:{model:n.model,share:t>0?Math.min(1,n.tokens/t):1}}var wle={session:300,weekly:10080};function A7(e){return e==null||!Number.isFinite(e)?null:Math.min(100,Math.max(0,100-e))}function j7(e,t){let n=A7(t?.usedPercent);return n===null?null:{kind:e,windowMinutes:t?.windowMinutes??wle[e],remaining:n,resetsAt:t?.resetsAtUtc??null}}function Tle(e){let t=[];for(let{provider:n,account:r}of e){if(r.status!==`active`||!r.quota)continue;let e=r.quota,i=[j7(`session`,e.session),j7(`weekly`,e.weekly)].filter(e=>e!==null),a=A7(e.credits?.usedPercent);a!==null&&i.push({kind:`credits`,windowMinutes:null,remaining:a,resetsAt:null}),i.length!==0&&t.push({accountId:r.id,providerId:n.id,providerName:e.planLabel||n.name,providerIcon:n.icon??null,accountName:r.displayName||r.accountEmail||r.id,rows:i})}return t}function Ele(e){let t=[];for(let n of e){if(!n.enabled||!U7(n)||n.quota?.isValid===!1)continue;let e=[];for(let t of n.quota?.plans??[]){let n=R7(t);L7(t)?e.push({kind:`window`,windowMinutes:t.windowMinutes??null,remaining:100-(n??0),resetsAt:t.resetsAtUtc??null}):(t.remaining!=null||n!=null)&&e.push({kind:`balance`,windowMinutes:null,remaining:n==null?null:100-n,resetsAt:t.resetsAtUtc??null,amount:t.remaining==null?null:{value:t.remaining,unit:t.unit??null},label:t.name??null})}e.length!==0&&t.push({accountId:`provider:${n.id}`,providerId:n.id,providerName:n.name,providerIcon:n.icon??null,accountName:``,rows:e})}return t}function M7(e){let t=null;for(let n of e)for(let e of n.rows)e.remaining!==null&&(!t||e.remaining<t.row.remaining)&&(t={plan:n,row:{...e,remaining:e.remaining}});return t}function Dle(e,t){let n=[];for(let t of e)for(let e of t.rows)e.remaining!==null&&n.push({plan:t,row:{...e,remaining:e.remaining}});return n.sort((e,t)=>e.row.remaining-t.row.remaining).slice(0,t)}function Ole(e){return e<10?`red`:e<30?`orange`:`green`}function N7(e,t){let n=(e,n)=>new Intl.NumberFormat(t===`zh`?`zh-CN`:`en-US`,{style:`unit`,unit:n,unitDisplay:t===`zh`?`long`:`narrow`}).format(e);return e>=1440&&e%1440==0?n(e/1440,`day`):e>=60?n(Math.round(e/60),`hour`):n(e,`minute`)}function P7(e,t,n=Date.now()){if(!e)return null;let r=new Date(e).getTime()-n;if(!Number.isFinite(r)||r<=0)return null;let i=new Intl.RelativeTimeFormat(t===`zh`?`zh-CN`:`en-US`,{numeric:`auto`}),a=r/36e5;return a>=48?i.format(Math.round(a/24),`day`):a>=1?i.format(Math.round(a),`hour`):i.format(Math.max(1,Math.round(r/6e4)),`minute`)}function F7(e,t,n,r=Date.now()){if(!e)return null;let i=Math.max(0,(r-e)/1e3),a=new Intl.RelativeTimeFormat(t===`zh`?`zh-CN`:`en-US`,{numeric:`auto`});return i<60?n:i<3600?a.format(-Math.round(i/60),`minute`):a.format(-Math.round(i/3600),`hour`)}function kle(e,t,n){let r={title:``,detail:``};if(e===`none`)return r;if(e===`alerts`){if(!t.running)return{title:`!`,detail:n.stopped};let e=t.summary?D7(t.summary):0;if(e>0)return{title:`⚠ ${e}`,detail:n.failures(e)};let i=M7(t.plans);if(i&&i.row.remaining<10){let e=`${Math.round(i.row.remaining)}%`;return{title:`⚠ ${e}`,detail:n.quota(i.plan.providerName,n.windowName(i.row),e)}}return r}if(e===`quota`){let e=M7(t.plans);if(!e)return r;let i=`${Math.round(e.row.remaining)}%`;return{title:i,detail:n.quota(e.plan.providerName,n.windowName(e.row),i)}}let i=t.summary;if(!i||!t.running)return r;switch(e){case`requests`:{let e=_I(i.requests,!0);return{title:e,detail:n.requests(e)}}case`tokens`:{let e=_I(i.inputTokens+i.outputTokens,!0);return{title:e,detail:n.tokens(e)}}case`cost`:{let e=O7(i.costUsd);return{title:e,detail:n.cost(e)}}}}var Ale={config:`providers.quota.error.config`,no_key:`providers.quota.error.no_key`,unauthorized:`providers.quota.error.unauthorized`,no_endpoint:`providers.quota.error.no_endpoint`,rate_limited:`providers.quota.error.rate_limited`,upstream:`providers.quota.error.upstream`,timeout:`providers.quota.error.timeout`,network:`providers.quota.error.network`,not_json:`providers.quota.error.not_json`,too_large:`providers.quota.error.too_large`,empty:`providers.quota.error.empty`},jle=/^[A-Z]{3}$/;function I7(e,t,n){let r=n===`zh`?`zh-CN`:`en-US`;if(t&&jle.test(t))try{let n=e!==0&&Math.abs(e)<1;return new Intl.NumberFormat(r,{style:`currency`,currency:t,minimumFractionDigits:2,maximumFractionDigits:n?4:2}).format(e)}catch{}let i=new Intl.NumberFormat(r,{maximumFractionDigits:2}).format(e);return t?`${i} ${t}`:i}var L7=e=>e.windowMinutes!=null&&e.usedPercent!=null;function R7(e){return e.usedPercent!=null&&Number.isFinite(e.usedPercent)?Math.min(100,Math.max(0,e.usedPercent)):e.used!=null&&e.total!=null&&e.total>0?Math.min(100,Math.max(0,e.used/e.total*100)):null}function z7(e){return!e?.error||e.fetchedAtUtc&&e.errorAtUtc&&new Date(e.errorAtUtc).getTime()<new Date(e.fetchedAtUtc).getTime()?null:{code:e.errorCode??null,message:e.error}}function B7(e,t){return e.code?t(Ale[e.code]):e.message}function V7(e,t,n){let r=R7(e);if(L7(e))return t(`providers.quota.window`,{window:N7(e.windowMinutes,n),percent:Math.round(r??0)});if(e.remaining!=null){let i=t(`providers.quota.balance`,{amount:I7(e.remaining,e.unit,n)});return r==null?i:`${i} · ${t(`providers.quota.usedPercent`,{percent:Math.round(r)})}`}return r==null?e.used!=null&&e.total!=null?t(`providers.quota.totalUsed`,{used:I7(e.used,e.unit,n),total:I7(e.total,e.unit,n)}):null:t(`providers.quota.usedPercent`,{percent:Math.round(r)})}function H7(e,t,n){let r=P7(e.resetsAtUtc??null,n);return r?t(`providers.quota.resets`,{time:r}):null}function Mle(e,t,n){let r=(e?.plans??[]).map(e=>V7(e,t,n)).filter(e=>!!e);return e?.isValid===!1&&r.unshift(t(`providers.quota.invalid`)),r.length?r.join(` · `):null}var U7=e=>e.authScheme!==`oauth-subscription`&&!!e.quotaConfig?.enabled,W7=``,G7=`custom`,Nle=[{name:`userId`,secret:!1,required:!1},{name:`accessToken`,secret:!0,required:!1}],K7={method:`GET`,url:`{{baseUrl}}/user/balance`,auth:`provider`,headers:{}},Ple={isValid:`is_active`,remaining:`balance`,unit:{$const:`USD`}},q7=e=>JSON.stringify(e??{},null,2);function Fle(e){return{enabled:e.enabled,template:e.template??W7,intervalMinutes:e.intervalMinutes??null,timeoutSec:e.timeoutSec,baseUrl:e.baseUrl??``,params:{...e.params},secrets:{},method:e.request?.method??`GET`,url:e.request?.url??``,auth:e.request?.auth??`provider`,headers:q7(e.request?.headers),extract:e.extract?q7(e.extract):``}}function J7(e){try{let t=JSON.parse(e||`{}`);return t&&typeof t==`object`&&!Array.isArray(t)?t:null}catch{return null}}function Ile({provider:e}){let{t}=K(),{toast:n}=pP(),r=a_(),i=c_(e.id),a=l_(e.id),o=s_(),s=e.quotaConfig,c=(0,p.useMemo)(()=>Fle(s),[s]),[l,u]=(0,p.useState)(c),[d,f]=(0,p.useState)(null);(0,p.useEffect)(()=>u(c),[c]);let h=r.data??[],g=h.find(e=>e.id===s.suggestedTemplate),_=l.template===W7?g:h.find(e=>e.id===l.template),v=l.template===G7,y=v?Nle:_?.params??[],b=e=>u(t=>({...t,...e})),x=JSON.stringify(l)!==JSON.stringify(c),S=e=>{if(e!==G7||l.url)return b({template:e});let t=_??g;b({template:e,method:t?.request.method??K7.method,url:t?.request.url??K7.url,auth:t?.request.auth??K7.auth,headers:q7(t?.request.headers??K7.headers),extract:q7(t?.extract??Ple)})},C=()=>{let e={enabled:l.enabled,template:l.template===W7?null:l.template,intervalMinutes:l.intervalMinutes,timeoutSec:l.timeoutSec??10,baseUrl:l.baseUrl.trim()||null,params:Object.fromEntries(Object.entries(l.params).filter(([,e])=>e.trim()!==``).map(([e,t])=>[e,t.trim()])),secrets:Object.fromEntries(Object.entries(l.secrets).filter(([,e])=>e.trim()!==``))};if(v){let r=J7(l.headers),i=J7(l.extract);if(!r||!i)return n(t(`providers.quota.invalidJson`,{field:t(r?`providers.quota.extract`:`providers.quota.headers`)}),`error`),null;e.request={method:l.method,url:l.url.trim(),auth:l.auth,headers:r},e.extract=i}return e},w=()=>{let r=C();if(!r)return;let a=r.enabled&&!s.enabled;i.mutate(r,{onSuccess:()=>{n(t(`common.saved`),`success`),a&&o.mutate(e.id,{onError:e=>n($(e),`error`)})},onError:e=>n($(e),`error`)})},T=()=>{let e=C();e&&a.mutate(e,{onSuccess:f,onError:e=>n($(e),`error`)})},E=s.effectiveIntervalMinutes>0?t(`providers.quota.intervalEvery`,{minutes:s.effectiveIntervalMinutes}):t(`providers.quota.intervalOff`),D=[{value:W7,label:g?t(`providers.quota.templateAuto`,{name:g.name}):t(`providers.quota.templateNone`)},...h.map(e=>({value:e.id,label:e.name,detail:t(`providers.quota.kind.${e.kind}`)})),{value:G7,label:t(`providers.quota.custom`)}];return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(VT,{title:t(`providers.quota.title`),footer:t(`providers.quota.footer`),children:[(0,m.jsx)(Z,{label:t(`providers.quota.enable`),detail:t(`providers.quota.enableHint`),children:(0,m.jsx)(BT,{checked:l.enabled,label:t(`providers.quota.enable`),onChange:e=>b({enabled:e})})}),(0,m.jsx)(Z,{label:t(`providers.quota.template`),children:(0,m.jsx)(uP,{className:`w-64`,ariaLabel:t(`providers.quota.template`),value:l.template,onChange:S,options:D})}),y.map(e=>{let n=t(`providers.quota.param.${e.name}`),r=s.secrets.includes(e.name);return e.secret?(0,m.jsx)(Z,{label:n,detail:r?t(`providers.quota.secretStored`):void 0,children:(0,m.jsx)(UT,{type:`password`,autoComplete:`off`,className:`w-64 font-mono`,"aria-label":n,placeholder:r?`••••••••`:``,value:l.secrets[e.name]??``,onChange:t=>b({secrets:{...l.secrets,[e.name]:t.target.value}})})},e.name):(0,m.jsx)(Z,{label:n,children:(0,m.jsx)(UT,{className:`w-64 font-mono`,"aria-label":n,value:l.params[e.name]??``,onChange:t=>b({params:{...l.params,[e.name]:t.target.value}})})},e.name)}),y.length>0&&(0,m.jsx)(`div`,{className:`px-4 pb-2 text-[11px] text-[var(--text-muted)]`,children:t(`providers.quota.paramsHint`)}),v&&(0,m.jsxs)(`div`,{className:`flex flex-col gap-3 px-4 py-3`,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,m.jsx)(uP,{className:`w-28`,ariaLabel:t(`providers.quota.method`),value:l.method,onChange:e=>b({method:e}),options:[{value:`GET`,label:`GET`},{value:`POST`,label:`POST`}]}),(0,m.jsx)(UT,{className:`min-w-60 flex-1 font-mono`,"aria-label":t(`providers.quota.url`),value:l.url,onChange:e=>b({url:e.target.value})}),(0,m.jsx)(uP,{className:`w-52`,ariaLabel:t(`providers.quota.auth`),value:l.auth,onChange:e=>b({auth:e}),options:[{value:`provider`,label:t(`providers.quota.auth.provider`)},{value:`none`,label:t(`providers.quota.auth.none`)}]})]}),(0,m.jsx)(`div`,{className:`text-[11px] text-[var(--text-muted)]`,children:t(`providers.quota.urlHint`)}),(0,m.jsx)(WT,{label:t(`providers.quota.headers`),mono:!0,rows:3,value:l.headers,onChange:e=>b({headers:e.target.value})}),(0,m.jsx)(WT,{label:t(`providers.quota.extract`),mono:!0,rows:8,value:l.extract,onChange:e=>b({extract:e.target.value})}),(0,m.jsx)(`div`,{className:`text-[11px] text-[var(--text-muted)]`,children:t(`providers.quota.extractHint`)})]}),(0,m.jsx)(Z,{label:t(`providers.quota.interval`),detail:t(`providers.quota.intervalHint`,{value:E}),children:(0,m.jsx)(GT,{className:`w-28`,label:t(`providers.quota.interval`),min:0,step:1,value:l.intervalMinutes,onChange:e=>b({intervalMinutes:e})})}),(0,m.jsx)(Z,{label:t(`providers.quota.timeout`),children:(0,m.jsx)(GT,{className:`w-28`,label:t(`providers.quota.timeout`),min:1,step:1,value:l.timeoutSec,onChange:e=>b({timeoutSec:e})})}),(0,m.jsx)(Z,{label:t(`providers.quota.baseUrl`),detail:t(`providers.quota.baseUrlHint`),children:(0,m.jsx)(UT,{className:`w-64 font-mono`,"aria-label":t(`providers.quota.baseUrl`),placeholder:e.endpoints[0]?.baseUrl,value:l.baseUrl,onChange:e=>b({baseUrl:e.target.value})})}),(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 px-4 py-3`,children:[(0,m.jsx)(X,{size:`sm`,variant:`primary`,disabled:!x,loading:i.isPending,onClick:w,children:t(`common.save`)}),(0,m.jsx)(X,{size:`sm`,icon:(0,m.jsx)(rS,{className:`size-3.5`}),loading:a.isPending,onClick:T,title:t(`providers.quota.testDesc`),children:t(`providers.quota.test`)}),(0,m.jsx)(X,{size:`sm`,icon:(0,m.jsx)(cS,{className:`size-3.5`}),disabled:x,loading:o.isPending,onClick:()=>o.mutate(e.id,{onError:e=>n($(e),`error`)}),children:t(`providers.quota.fetch`)})]}),(0,m.jsx)(`div`,{className:`px-4 pb-4`,children:(0,m.jsx)(Y7,{snapshot:e.quota,checkedAtUtc:e.quotaCheckedAtUtc})})]}),(0,m.jsx)(iP,{open:d!==null,onOpenChange:e=>!e&&f(null),title:t(`providers.quota.test`),description:t(`providers.quota.testDesc`),width:560,children:d&&(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,m.jsxs)(lE,{tone:d.ok?`success`:`danger`,title:d.ok?t(`providers.quota.testOk`):t(`providers.quota.testFailed`),children:[!d.ok&&B7({code:d.errorCode??null,message:d.error??``},t),!d.ok&&d.error&&d.errorCode&&(0,m.jsx)(`div`,{className:`mt-1 text-[11px] opacity-80`,children:d.error})]}),d.url&&(0,m.jsx)(XT,{label:t(`providers.quota.requestUrl`),mono:!0,children:d.url}),d.httpStatus!=null&&(0,m.jsx)(XT,{label:t(`providers.quota.httpStatus`),children:d.httpStatus}),d.snapshot&&(0,m.jsxs)(`div`,{children:[(0,m.jsx)(`div`,{className:`mb-1 text-[12px] text-[var(--text-secondary)]`,children:t(`providers.quota.extracted`)}),(0,m.jsx)(Y7,{snapshot:d.snapshot})]}),d.raw!==void 0&&d.raw!==null&&(0,m.jsxs)(`div`,{children:[(0,m.jsx)(`div`,{className:`mb-1 text-[12px] text-[var(--text-secondary)]`,children:t(`providers.quota.rawResponse`)}),(0,m.jsx)(ZT,{children:q7(d.raw)})]})]})})]})}function Y7({snapshot:e,checkedAtUtc:t}){let{t:n,locale:r}=K(),i=z7(e),a=e?.plans??[],o=e?.fetchedAtUtc?new Date(e.fetchedAtUtc).getTime():0;return!e&&!t?(0,m.jsx)(`div`,{className:`text-[12px] text-[var(--text-muted)]`,children:n(`providers.quota.never`)}):(0,m.jsxs)(`div`,{className:`flex flex-col gap-2`,children:[i&&(0,m.jsxs)(lE,{tone:`warning`,title:n(`providers.quota.failed`,{error:B7(i,n)}),children:[(0,m.jsx)(`span`,{className:`text-[11px]`,children:i.message}),a.length>0&&(0,m.jsx)(`div`,{className:`mt-1 text-[11px]`,children:n(`providers.quota.lastGood`)})]}),e?.isValid===!1&&(0,m.jsx)(lE,{tone:`warning`,title:n(`providers.quota.invalid`),children:e.invalidMessage}),a.length>0&&(0,m.jsx)(`div`,{className:`flex flex-col gap-1`,children:a.map((e,t)=>(0,m.jsxs)(`div`,{className:`flex flex-wrap items-baseline gap-x-2 text-[13px]`,children:[e.name&&(0,m.jsx)(Q,{children:e.name}),(0,m.jsx)(`span`,{className:`num`,children:V7(e,n,r)??`—`}),H7(e,n,r)&&(0,m.jsx)(`span`,{className:`text-[11px] text-[var(--text-muted)]`,children:H7(e,n,r)}),e.extra&&(0,m.jsx)(`span`,{className:`text-[11px] text-[var(--text-muted)]`,children:e.extra})]},t))}),(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 text-[11px] text-[var(--text-muted)]`,children:[e?.planLabel&&(0,m.jsx)(Q,{tone:`accent`,children:e.planLabel}),o>0&&(0,m.jsx)(`span`,{children:n(`providers.quota.fetchedAt`,{time:F7(o,r,n(`tray.justNow`))??``})})]})]})}function Lle({provider:e}){let{t,locale:n}=K(),{toast:r}=pP(),i=s_();if(!U7(e))return null;let a=Mle(e.quota,t,n),o=z7(e.quota);return(0,m.jsxs)(`div`,{className:`mt-3 flex min-w-0 items-center gap-2 text-[12px]`,children:[(0,m.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[a&&(0,m.jsx)(`div`,{className:`num truncate text-[var(--text-secondary)]`,title:a,children:a}),o&&(0,m.jsx)(`div`,{className:`truncate text-[var(--warning)]`,title:o.message,children:t(`providers.quota.failed`,{error:B7(o,t)})}),!a&&!o&&(0,m.jsx)(`div`,{className:`text-[var(--text-muted)]`,children:t(`providers.quota.never`)})]}),(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(cS,{className:`size-3.5`}),"aria-label":t(`providers.quota.refresh`),title:t(`providers.quota.refresh`),loading:i.isPending,onClick:()=>i.mutate(e.id,{onError:e=>r($(e),`error`)})})]})}var X7=[{value:`openai-chat`,label:`OpenAI Chat`},{value:`openai-responses`,label:`OpenAI Responses`},{value:`anthropic`,label:`Anthropic Messages`},{value:`gemini`,label:`Gemini`}],Z7=[{value:`bearer`,label:`Authorization: Bearer`},{value:`x-api-key`,label:`x-api-key`},{value:`x-goog-api-key`,label:`x-goog-api-key`},{value:`query-key`,label:`?key=`},{value:`none`,label:`—`},{value:`oauth-subscription`,label:`OAuth 订阅`}];function Rle(){let{t:e}=K(),t=Ah(),[n,r]=fee(),i=Xg(),[a,o]=(0,p.useState)(n.get(`new`)===`1`),[s,c]=(0,p.useState)(!1);(0,p.useEffect)(()=>{n.get(`new`)===`1`&&(o(!0),n.delete(`new`),r(n,{replace:!0}))},[n,r]),kv(e=>{e===`new-provider`&&o(!0)});let l=_v(`7d`,`day`,`provider`),[u,d]=(0,p.useState)(null),f=(0,p.useMemo)(()=>{let e=Ble(zle),t=new Map;for(let n of l.data??[]){let r=e.indexOf(n.bucket);if(r<0)continue;let i=t.get(n.key);i||t.set(n.key,i={requests:e.map(()=>0),costUsd:0}),i.requests[r]=(i.requests[r]??0)+n.requests,i.costUsd+=n.costUsd}return{days:e,byProvider:t}},[l.data]);return(0,m.jsxs)(i6,{title:e(`nav.providers`),subtitle:i.data?e(`providers.count`,{count:i.data.length}):void 0,actions:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{icon:(0,m.jsx)(Xx,{className:`size-3.5`}),onClick:()=>c(!0),children:e(`providers.import`)}),(0,m.jsx)(X,{variant:`primary`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),onClick:()=>o(!0),children:e(`providers.add`)})]}),children:[(0,m.jsxs)(`div`,{className:`mx-auto max-w-[1100px]`,children:[i.isLoading&&(0,m.jsx)(QT,{lines:4}),i.isError&&(0,m.jsx)(lE,{tone:`danger`,title:e(`common.error`),children:$(i.error)}),i.data?.length===0&&(0,m.jsx)(`div`,{className:`card`,children:(0,m.jsx)($T,{icon:(0,m.jsx)(JS,{className:`size-6`}),title:e(`providers.empty`),detail:e(`providers.emptyDetail`),action:(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center justify-center gap-2`,children:[(0,m.jsx)(X,{variant:`primary`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),onClick:()=>o(!0),children:e(`providers.add`)}),(0,m.jsx)(X,{icon:(0,m.jsx)(Xx,{className:`size-3.5`}),onClick:()=>c(!0),children:e(`providers.import`)})]})})}),i.data&&i.data.length>0&&(0,m.jsx)(`div`,{className:`grid grid-cols-[repeat(auto-fill,minmax(min(100%,260px),1fr))] items-start gap-3`,children:i.data.map(e=>(0,m.jsx)(Hle,{p:e,days:f.days,usage:f.byProvider.get(e.name),onOpen:()=>t(`/providers/${e.id}`),onTest:()=>d(e)},e.id))})]}),(0,m.jsx)(_le,{open:s,onOpenChange:c}),(0,m.jsx)(Wle,{open:a,onOpenChange:o,onCreated:e=>t(`/providers/${e.id}`)}),u&&(0,m.jsx)(r9,{provider:u,open:!0,onOpenChange:e=>!e&&d(null)})]})}var zle=7;function Ble(e){let t=new Date;return Array.from({length:e},(n,r)=>{let i=new Date(t.getFullYear(),t.getMonth(),t.getDate()-(e-1-r));return`${i.getFullYear()}-${String(i.getMonth()+1).padStart(2,`0`)}-${String(i.getDate()).padStart(2,`0`)}`})}function Vle(e){if(!e)return null;try{return new URL(e).host}catch{return e}}var Q7=e=>e.stopPropagation();function Hle({p:e,days:t,usage:n,onOpen:r,onTest:i}){let{t:a}=K(),o=n_(e.id),{toast:s}=pP(),c=[...new Set(e.endpoints.map(e=>e.protocol))],l=!e.hasApiKey&&e.authScheme!==`none`&&e.authScheme!==`oauth-subscription`,u=[e.priceKey?a(`providers.priceKeyShort`,{key:e.priceKey}):null,e.priceMultiplier===1?null:`×${e.priceMultiplier}`].filter(Boolean).join(` · `),d=e.authScheme===`oauth-subscription`?a(`providers.card.subscription`):e.authScheme===`none`?a(`providers.card.noAuth`):e.hasApiKey?e.apiKeyMasked??`••••`:a(`providers.noKey`),f=e.enabled?l?{tone:`orange`,label:a(`providers.noKey`)}:{tone:`green`,label:a(`providers.card.active`)}:{tone:`neutral`,label:a(`providers.card.disabled`)},p=n?.requests??t.map(()=>0),h=p.reduce((e,t)=>e+t,0);return(0,m.jsxs)(Jce,{"data-density":`compact`,role:`button`,tabIndex:0,"aria-label":e.name,onClick:r,onKeyDown:e=>{e.target===e.currentTarget&&(e.key===`Enter`||e.key===` `)&&(e.preventDefault(),r())},style:{backgroundColor:`var(--surface)`},title:e.name,description:c.map(e=>X7.find(t=>t.value===e)?.label??e).join(` / `),media:(0,m.jsxs)(`div`,{className:`flex flex-col justify-between gap-2 self-stretch justify-self-stretch p-3`,style:{background:`linear-gradient(135deg, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%)`},children:[(0,m.jsxs)(`div`,{className:`flex items-start justify-between gap-2`,children:[(0,m.jsx)(`span`,{className:Cv(`transition-[filter,opacity]`,!e.enabled&&`opacity-50 grayscale`),children:(0,m.jsx)(_3,{name:e.name,icon:e.icon,colorKey:e.templateId,size:32})}),(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 rounded-full border border-[var(--border)] bg-[color-mix(in_oklab,var(--surface)_80%,transparent)] px-2 py-0.5 text-[11px] text-[var(--text-secondary)]`,children:[(0,m.jsx)(JT,{tone:f.tone}),f.label]})]}),(0,m.jsxs)(`div`,{className:`flex items-baseline justify-between gap-3 text-[11px] text-[var(--text-muted)]`,children:[(0,m.jsx)(`span`,{className:`min-w-0 truncate font-mono`,title:e.endpoints[0]?.baseUrl,children:Vle(e.endpoints[0]?.baseUrl)??`—`}),(0,m.jsx)(`span`,{className:`shrink-0`,children:a(`providers.modelCount`,{count:e.modelCount})})]})]}),meta:(0,m.jsx)(`span`,{className:Cv(e.hasApiKey&&e.authScheme!==`oauth-subscription`&&`font-mono`),children:d}),status:u||void 0,action:(0,m.jsxs)(`div`,{className:`flex items-center gap-1`,onClick:Q7,children:[(0,m.jsx)(X,{variant:`plain`,size:`sm`,icon:(0,m.jsx)(rS,{className:`size-3.5`}),"aria-label":a(`providers.test`),title:a(`providers.test`),onClick:i}),(0,m.jsx)(`span`,{className:`ml-1 inline-flex`,children:(0,m.jsx)(BT,{checked:e.enabled,label:a(`common.enabled`),onChange:e=>o.mutate({enabled:e},{onError:e=>s($(e),`error`)})})})]}),children:[(e.templateUpdateAvailable||e.boundClients.length>0)&&(0,m.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-1`,children:[e.templateUpdateAvailable&&(0,m.jsx)(Q,{tone:`accent`,children:a(`providers.templateUpdate`)}),e.boundClients.map(e=>(0,m.jsx)(Q,{tone:`green`,children:a3[e]?.name??e},e))]}),(0,m.jsx)(`div`,{onClick:Q7,children:(0,m.jsx)(Lle,{provider:e})}),(0,m.jsx)(`div`,{className:`mt-3`,onClick:Q7,children:h>0?(0,m.jsx)(sle,{label:a(`providers.card.requests7d`),data:p,labels:t.map(e=>e.slice(5)),value:_I(h,!0),change:mI(n?.costUsd??0),width:320,height:36,formatValue:e=>_I(e,!0)}):(0,m.jsxs)(`div`,{className:`grid gap-3`,children:[(0,m.jsx)(`div`,{className:`text-[13px] text-[var(--text-secondary)]`,children:a(`providers.card.requests7d`)}),(0,m.jsx)(`div`,{className:`grid aspect-[320/36] place-items-center border-b border-dashed border-[var(--border)] text-[11px] text-[var(--text-muted)]`,children:a(`providers.card.noRequests`)})]})})]})}var Ule=[`recommended`,`official`,`subscription`,`cn`,`aggregator`,`local`,`custom`];function Wle({open:e,onOpenChange:t,onCreated:n}){let{t:r}=K(),{toast:i}=pP(),a=Mee(),o=Jg(),s=t_(),c=Xg(),l=(0,p.useMemo)(()=>new Set((c.data??[]).filter(e=>e.authScheme===`oauth-subscription`&&e.templateId).map(e=>e.templateId)),[c.data]),[u,d]=(0,p.useState)(``),[f,h]=(0,p.useState)(null),[g,_]=(0,p.useState)(null),[v,y]=(0,p.useState)(``),[b,x]=(0,p.useState)(``),[S,C]=(0,p.useState)(``),[w,T]=(0,p.useState)(``),[E,D]=(0,p.useState)(``),[O,k]=(0,p.useState)(`openai-chat`),[A,j]=(0,p.useState)(`bearer`);(0,p.useEffect)(()=>{e||(h(null),_(null),d(``),y(``),x(``),C(``),T(``),D(``))},[e]);let M=(0,p.useMemo)(()=>{let e=u.trim().toLowerCase(),t=(a.data??[]).filter(t=>!e||t.name.toLowerCase().includes(e)||t.id.includes(e));return Ule.map(e=>({category:e,items:t.filter(t=>t.category===e)})).filter(e=>e.items.length)},[a.data,u]),N=e=>{h(e),e===`custom`?(y(``),T(``),C(``)):(y(e.name),T(e.priceKey??e.id),C(``),j(e.auth.scheme))},P=()=>{let e=f===`custom`;s.mutate({templateId:e?null:f.id,variantId:S||null,name:v.trim()||null,apiKey:b.trim()||null,priceKey:w,...e?{endpoints:[{protocol:O,baseUrl:E.trim()}],authScheme:A}:{}},{onSuccess:e=>{t(!1),i(r(`providers.created`,{name:e.name}),`success`),n(e)},onError:e=>i($(e),`error`)})},F=f&&f!==`custom`?f:null,I=()=>{if(g===`custom`)N(`custom`);else{let e=(a.data??[]).find(e=>e.id===g);e&&!l.has(e.id)&&N(e)}},L=f!==null&&(f===`custom`?/^https?:\/\//.test(E.trim())&&v.trim()!==``:!F.requiresApiKey||b.trim()!==``);return(0,m.jsxs)(iP,{open:e,onOpenChange:t,width:640,title:r(f?`providers.addTitleDetails`:`providers.addTitle`),description:f?F?F.name:r(`providers.custom`):r(`providers.addDetail`),footer:f?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{className:`mr-auto`,variant:`plain`,onClick:()=>h(null),children:r(`common.back`)}),(0,m.jsx)(X,{onClick:()=>t(!1),children:r(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!L,loading:s.isPending,onClick:P,children:r(`providers.create`)})]}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:()=>t(!1),children:r(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!g,onClick:I,children:r(`common.continue`)})]}),children:[(0,m.jsx)(mle,{className:`mb-6`,label:r(`providers.addTitle`),current:+!!f,steps:[{id:`template`,label:r(`providers.step.template`)},{id:`details`,label:r(`providers.step.details`)}]}),f?(0,m.jsxs)(`div`,{className:`grid gap-4`,children:[(0,m.jsx)(LT,{label:r(`providers.name`),children:(0,m.jsx)(UT,{value:v,onChange:e=>y(e.target.value)})}),F?.variants&&F.variants.length>0&&(0,m.jsx)(LT,{label:r(`providers.variant`),children:(0,m.jsx)(uP,{value:S,onChange:e=>{C(e);let t=F.variants?.find(t=>t.id===e);T(t?.priceKey??F.priceKey??F.id)},options:[{value:``,label:r(`providers.variantDefault`)},...F.variants.map(e=>({value:e.id,label:e.name}))]})}),f===`custom`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(LT,{label:r(`providers.baseUrl`),hint:r(`providers.baseUrlHint`),children:(0,m.jsx)(UT,{value:E,onChange:e=>D(e.target.value),placeholder:`https://api.example.com/v1`,className:`font-mono`})}),(0,m.jsxs)(`div`,{className:`grid grid-cols-2 gap-3`,children:[(0,m.jsx)(LT,{label:r(`providers.protocol`),children:(0,m.jsx)(uP,{value:O,onChange:k,options:X7})}),(0,m.jsx)(LT,{label:r(`providers.authScheme`),children:(0,m.jsx)(uP,{value:A,onChange:j,options:Z7})})]})]}),F?.authScheme===`oauth-subscription`?(0,m.jsx)(lE,{tone:`info`,title:r(`providers.subscriptionWizardHint`),children:r(`providers.subscriptionWizardDetail`)}):(0,m.jsxs)(`div`,{className:`font-mono`,children:[(0,m.jsx)(y6,{label:r(`providers.apiKey`),description:r(`providers.apiKeyHint`),autoComplete:`off`,placeholder:`sk-…`,value:b,onChange:e=>x(e.target.value)}),F?.apiKeyUrl&&(0,m.jsx)(`a`,{className:`mt-2 inline-block font-sans text-[12px] text-[var(--accent)]`,href:F.apiKeyUrl,target:`_blank`,rel:`noreferrer`,children:r(`providers.getKey`)})]}),(0,m.jsx)(LT,{label:r(`providers.priceKey`),hint:r(`providers.priceKeyHint`),children:(0,m.jsx)(uP,{value:w,onChange:T,options:[{value:``,label:r(`providers.priceKeyNone`)},...(o.data??[]).map(e=>({value:e.priceKey,label:e.label,detail:e.priceKey}))]})}),F&&F.models.length>0&&(0,m.jsx)(`p`,{className:`text-[12px] text-[var(--text-secondary)]`,children:r(`providers.templateModels`,{count:F.models.length})})]}):(0,m.jsxs)(`div`,{className:`flex flex-col gap-5`,children:[(0,m.jsx)(KT,{value:u,onChange:d,placeholder:r(`providers.searchTemplates`)}),a.isLoading&&(0,m.jsx)(QT,{lines:4}),a.isError&&(0,m.jsx)(lE,{tone:`danger`,title:r(`common.error`),children:$(a.error)}),M.map(e=>(0,m.jsxs)(`section`,{children:[(0,m.jsx)(`h3`,{className:`mb-2 text-[12px] font-medium text-[var(--text-secondary)]`,children:r(`providers.category.${e.category}`)}),(0,m.jsx)(c7,{name:`provider-template`,"aria-label":r(`providers.category.${e.category}`),minColumnWidth:170,value:e.items.some(e=>e.id===g)?g:null,onValueChange:_,options:e.items.map(e=>({value:e.id,label:e.name,description:[...new Set(e.endpoints.map(e=>e.protocol))].join(` · `),icon:(0,m.jsx)(_3,{name:e.name,icon:e.icon,colorKey:e.id,size:24}),disabled:l.has(e.id),disabledReason:r(`providers.subscriptionAdded`)}))})]},e.category)),(0,m.jsxs)(`section`,{children:[(0,m.jsx)(`h3`,{className:`mb-2 text-[12px] font-medium text-[var(--text-secondary)]`,children:r(`providers.custom`)}),(0,m.jsx)(c7,{name:`provider-template-custom`,"aria-label":r(`providers.custom`),layout:`list`,value:g===`custom`?`custom`:null,onValueChange:_,options:[{value:`custom`,label:r(`providers.custom`),description:r(`providers.customDetail`),icon:(0,m.jsx)(IS,{className:`size-4`})}]})]})]})]})}var Gle=3,$7=256,Kle=4096,e9={idle:`providers.testDialog.status.idle`,queued:`providers.testDialog.status.queued`,running:`providers.testDialog.status.running`,success:`providers.testDialog.status.success`,failed:`providers.testDialog.status.failed`,cancelled:`providers.testDialog.status.cancelled`};function qle(e){let t=e.endpoints.map(e=>e.protocol);return e.preferredUpstreamProtocols.find(e=>t.includes(e))??t[0]??`openai-chat`}var t9=e=>typeof e==`number`?e:null,n9=e=>typeof e==`string`?e:null;function r9({provider:e,open:t,onOpenChange:n}){let{t:r}=K(),i=g(),a=h_(t?e.id:void 0),o=e.endpoints.map(e=>e.protocol),[s,c]=(0,p.useState)(`single`),[l,u]=(0,p.useState)(()=>qle(e)),[d,f]=(0,p.useState)(!0),[h,_]=(0,p.useState)(``),[v,y]=(0,p.useState)($7),[b,x]=(0,p.useState)(``),[S,C]=(0,p.useState)(null),[w,T]=(0,p.useState)({}),[E,D]=(0,p.useState)([]),[O,k]=(0,p.useState)(new Set),[A,j]=(0,p.useState)([]),[M,N]=(0,p.useState)(``),[P,F]=(0,p.useState)(null),[I,L]=(0,p.useState)(!1),R=(0,p.useRef)(null),ee=(0,p.useRef)(new Map),te=(0,p.useRef)(!1),ne=(0,p.useRef)(!1),re=(0,p.useMemo)(()=>{let e=[...a.data??[]].sort((e,t)=>Number(t.enabled)-Number(e.enabled)||e.sortOrder-t.sortOrder).map(e=>e.modelId);return[...e,...A.filter(t=>!e.includes(t))]},[a.data,A]);(0,p.useEffect)(()=>{if(t){x(e=>e||(a.data??[]).find(e=>e.enabled)?.modelId||(a.data??[])[0]?.modelId||``);return}ne.current=!1,R.current?.abort();for(let e of ee.current.values())e.abort();ee.current.clear(),C(null),T({}),D([]),k(new Set),j([]),N(``),F(null)},[t,a.data]);let ie=(0,p.useCallback)(e=>({modelId:e,protocol:l,stream:d,prompt:h.trim()||null,maxOutputTokens:v??$7}),[l,d,h,v]),ae=(0,p.useCallback)((t,n,r)=>Zle(e.id,t,ie(t),n,r),[e.id,ie]),oe=()=>{let e=b.trim();if(!e)return;R.current?.abort();let t=new AbortController;R.current=t,ne.current=!0,F(null),C({modelId:e,status:`running`,text:``,reasoning:``}),ae(e,t.signal,e=>{e.status!==`running`&&e.status!==`queued`&&ce(),C(e)})},se=e=>{if(e.length===0)return;ne.current=!0,te.current=!1,F(null),D(e),T(Object.fromEntries(e.map(e=>[e,{modelId:e,status:`queued`,text:``,reasoning:``}])));let t=0;Promise.all(Array.from({length:Math.min(Gle,e.length)},async()=>{for(;;){if(!ne.current)return;let n=e[t++];if(n===void 0)return;if(te.current){T(e=>({...e,[n]:{...e[n],status:`cancelled`}}));continue}let r=new AbortController;ee.current.set(n,r),await ae(n,r.signal,e=>T(t=>({...t,[n]:e}))),ee.current.delete(n),ce()}}))},ce=()=>void i.invalidateQueries({queryKey:[`requests`]}),le=()=>{te.current=!0,T(e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,t.status===`queued`?{...t,status:`cancelled`}:t])))},z=S?.status===`running`||E.some(e=>w[e]?.status===`running`||w[e]?.status===`queued`&&!te.current),ue=E.filter(e=>w[e]&&w[e].status!==`queued`&&w[e].status!==`running`).length,de=E.filter(e=>w[e]?.status===`success`).length,fe=E.filter(e=>w[e]?.status===`failed`).length,pe=(e,t)=>k(n=>{let r=new Set(n);return t?r.add(e):r.delete(e),r}),me=()=>{z||n(!1)},he=e=>e.stopPropagation();return(0,m.jsx)(`span`,{onClick:he,onKeyDown:he,children:(0,m.jsxs)(iP,{open:t,onOpenChange:e=>e?n(!0):me(),width:1040,title:r(`providers.testDialog.title`,{name:e.name}),description:r(`providers.testDialog.subtitle`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:`mr-auto text-[11px] text-[var(--text-muted)]`,children:r(`providers.testDialog.realRequest`)}),(0,m.jsx)(X,{disabled:z,onClick:()=>n(!1),icon:(0,m.jsx)(vC,{className:`size-3.5`}),children:r(`common.close`)}),s===`single`?z?(0,m.jsx)(X,{variant:`primary`,icon:(0,m.jsx)(uC,{className:`size-3.5`}),onClick:()=>R.current?.abort(),children:r(`providers.testDialog.stop`)}):(0,m.jsx)(X,{variant:`primary`,disabled:b.trim()===``,icon:(0,m.jsx)(rS,{className:`size-3.5`}),onClick:oe,children:r(S?`providers.testDialog.retest`:`providers.testDialog.start`)}):z?(0,m.jsx)(X,{variant:`primary`,icon:(0,m.jsx)(uC,{className:`size-3.5`}),onClick:le,children:r(`providers.testDialog.stopRest`)}):(0,m.jsx)(X,{variant:`primary`,disabled:O.size===0,icon:(0,m.jsx)(rS,{className:`size-3.5`}),onClick:()=>se([...O]),children:r(`providers.testDialog.testN`,{count:O.size})})]}),children:[(0,m.jsxs)(`div`,{className:`flex items-center justify-between gap-3 pb-4`,children:[(0,m.jsx)(_3,{name:e.name,icon:e.icon,colorKey:e.templateId,size:32}),(0,m.jsx)(zT,{items:[{value:`single`,label:r(`providers.testDialog.modeSingle`)},{value:`batch`,label:r(`providers.testDialog.modeBatch`)}],value:s,onChange:e=>{c(e),F(null)},ariaLabel:r(`providers.testDialog.config`)})]}),s===`single`?(0,m.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,300px)_minmax(0,1fr)] gap-6`,children:[(0,m.jsxs)(`div`,{className:`flex flex-col gap-4 border-r border-[var(--border)] pr-6`,children:[(0,m.jsx)(`h3`,{className:`text-[13px] font-medium`,children:r(`providers.testDialog.config`)}),(0,m.jsx)(LT,{label:r(`providers.testDialog.model`),children:(0,m.jsx)(Jle,{value:b,models:re,onChange:x})}),(0,m.jsx)(i9,{protocols:o,protocol:l,onProtocol:u,stream:d,onStream:f,maxTokens:v,onMaxTokens:y,prompt:h,onPrompt:_}),(0,m.jsx)(`p`,{className:`mt-auto text-[11px] text-[var(--text-muted)]`,children:r(`providers.testDialog.savedCredentials`)})]}),(0,m.jsx)(a9,{run:S,onRetest:oe})]}):P===null?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Yle,{known:re,selected:O,onToggle:pe,onSelectAll:e=>k(e?new Set(re):new Set),onClear:()=>k(new Set),search:M,onSearch:N,onAdd:e=>{j(t=>t.includes(e)?t:[...t,e]),k(t=>new Set(t).add(e)),N(``)},configOpen:I,onConfigOpen:L,protocols:o,protocol:l,onProtocol:u,stream:d,onStream:f,maxTokens:v,onMaxTokens:y,prompt:h,onPrompt:_}),E.length>0?(0,m.jsxs)(`div`,{className:`mt-4 grid gap-2`,children:[(0,m.jsx)(`div`,{className:`text-[12px] text-[var(--text-secondary)]`,children:z?r(`providers.testDialog.progress`,{done:ue,total:E.length,ok:de,failed:fe}):r(`providers.testDialog.progressDone`,{total:E.length,ok:de,failed:fe})}),(0,m.jsx)(`div`,{className:`h-1 overflow-hidden rounded-full bg-[var(--surface-strong)]`,children:(0,m.jsx)(`div`,{className:`h-full rounded-full transition-[width]`,style:{width:`${ue/E.length*100}%`,background:`var(--accent)`}})})]}):null,E.length>0?(0,m.jsx)(`div`,{className:`mt-4`,children:(0,m.jsx)(Xle,{order:E,runs:w,onView:F})}):null]}):(0,m.jsxs)(`div`,{className:`grid gap-4`,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,m.jsx)(X,{variant:`plain`,icon:(0,m.jsx)(_x,{className:`size-4`}),"aria-label":r(`common.back`),onClick:()=>F(null)}),(0,m.jsx)(`span`,{className:`font-mono text-[13px]`,children:P})]}),(0,m.jsx)(a9,{run:w[P]??null})]})]})})}function Jle({value:e,models:t,onChange:n}){let{t:r}=K(),[i,a]=(0,p.useState)(!1),[o,s]=(0,p.useState)(0),[c,l]=(0,p.useState)(null),u=c===null?t:t.filter(e=>e.toLowerCase().includes(c.trim().toLowerCase())),d=()=>{l(null),s(Math.max(0,t.indexOf(e))),a(!0)},f=e=>{n(e),l(null),a(!1)};return(0,m.jsxs)(`div`,{className:`relative`,children:[(0,m.jsx)(UT,{className:`pr-9 font-mono`,value:e,placeholder:r(`providers.testDialog.modelPlaceholder`),"aria-expanded":i,role:`combobox`,onFocus:d,onClick:d,onChange:e=>{n(e.target.value),l(e.target.value),s(0),a(!0)},onKeyDown:e=>{if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(e.preventDefault(),!i)return d();if(u.length===0)return;let t=e.key===`ArrowDown`?1:-1;s(e=>(e+t+u.length)%u.length)}else e.key===`Enter`&&i?(e.preventDefault(),u[o]&&f(u[o])):e.key===`Escape`&&a(!1)}}),(0,m.jsx)(`button`,{type:`button`,className:`absolute inset-y-0 right-0 grid w-8 place-items-center text-[var(--text-muted)] hover:text-[var(--text)]`,"aria-label":r(`providers.testDialog.showModels`),onClick:()=>i?a(!1):d(),children:(0,m.jsx)(Mx,{className:`size-4`})}),i&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{className:`fixed inset-0 z-40`,onMouseDown:()=>a(!1)}),(0,m.jsx)(`ul`,{className:`absolute inset-x-0 top-full z-50 mt-1 max-h-64 overflow-auto rounded-lg border border-[var(--border)] bg-[var(--surface-raised)] py-1 shadow-lg`,children:u.length===0?(0,m.jsx)(`li`,{className:`px-3 py-2 text-[12px] text-[var(--text-muted)]`,children:r(`providers.testDialog.noModels`)}):u.map((e,t)=>(0,m.jsx)(`li`,{children:(0,m.jsx)(`button`,{type:`button`,className:Cv(`block w-full truncate px-3 py-1.5 text-left font-mono text-[12px] hover:bg-[var(--surface-strong)]`,t===o&&`bg-[var(--surface-strong)]`),onMouseEnter:()=>s(t),onMouseDown:t=>{t.preventDefault(),f(e)},children:e})},e))})]})]})}function i9({protocols:e,...t}){let{t:n}=K(),r=e.map(e=>({value:e,label:X7.find(t=>t.value===e)?.label??e}));return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(LT,{label:n(`providers.testDialog.protocol`),children:(0,m.jsx)(uP,{value:t.protocol,onChange:t.onProtocol,options:r})}),(0,m.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,m.jsx)(`span`,{className:`text-[12px] text-[var(--text-secondary)]`,children:n(`providers.testDialog.stream`)}),(0,m.jsx)(BT,{checked:t.stream,label:n(`providers.testDialog.stream`),onChange:t.onStream})]}),(0,m.jsx)(LT,{label:n(`providers.testDialog.maxTokens`),children:(0,m.jsx)(GT,{value:t.maxTokens,min:1,placeholder:String($7),label:n(`providers.testDialog.maxTokens`),onChange:e=>t.onMaxTokens(e===null?null:Math.min(Kle,Math.max(1,Math.round(e))))})}),(0,m.jsx)(LT,{label:n(`providers.testDialog.prompt`),hint:n(`providers.testDialog.promptHint`),children:(0,m.jsx)(WT,{rows:4,value:t.prompt,placeholder:`Reply with OK.`,onChange:e=>t.onPrompt(e.target.value)})})]})}function a9({run:e,onRetest:t}){let{t:n}=K(),[r,i]=(0,p.useState)(`preview`),a=e?.text??``,o=e?.raw??``,s=Object.entries(e?.headers??{}),c=e?.ttftMs!=null&&e?.httpMs!=null?Math.max(0,e.ttftMs-e.httpMs):null,l=r===`raw`?o:r===`headers`?s.map(([e,t])=>`${e}: ${t}`).join(`
|
|
80
|
-
`):a;return(0,m.jsxs)(`div`,{className:`grid min-w-0 content-start gap-4`,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[t&&e&&e.status!==`running`?(0,m.jsx)(X,{size:`sm`,icon:(0,m.jsx)(rS,{className:`size-3.5`}),onClick:t,children:n(`providers.testDialog.retest`)}):null,(0,m.jsx)(r6,{content:n(`providers.testDialog.metricsHelp`),children:(0,m.jsx)(`span`,{className:`inline-flex size-4 items-center justify-center text-[var(--text-muted)]`,tabIndex:0,children:(0,m.jsx)(gte,{className:`size-4`})})}),(0,m.jsx)(c9,{run:e}),e?.httpStatus?(0,m.jsxs)(Q,{tone:`neutral`,children:[`HTTP `,e.httpStatus]}):null]}),(0,m.jsxs)(`div`,{className:`grid grid-cols-2 gap-px overflow-hidden rounded-lg border border-[var(--border)] bg-[var(--border)] sm:grid-cols-4`,children:[(0,m.jsx)(s9,{label:n(`providers.testDialog.metrics.http`),value:e?.httpMs}),(0,m.jsx)(s9,{label:n(`providers.testDialog.metrics.firstWait`),value:c}),(0,m.jsx)(s9,{label:n(`providers.testDialog.metrics.ttft`),value:e?.ttftMs}),(0,m.jsx)(s9,{label:n(`providers.testDialog.metrics.total`),value:e?.totalMs})]}),(0,m.jsxs)(`section`,{className:`card overflow-hidden`,children:[(0,m.jsxs)(`header`,{className:`flex flex-wrap items-center gap-2 border-b border-[var(--border)] px-4 py-2.5`,children:[(0,m.jsx)(`h3`,{className:`text-[12px] font-medium`,children:n(`providers.testDialog.reply`)}),(0,m.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,m.jsx)(zT,{items:[{value:`preview`,label:n(`providers.testDialog.preview`)},{value:`raw`,label:n(`providers.testDialog.raw`)},{value:`headers`,label:n(`providers.testDialog.headers`)}],value:r,onChange:i,ariaLabel:n(`providers.testDialog.reply`)}),(0,m.jsx)(vw,{value:l,label:n(r===`headers`?`providers.testDialog.headers`:`providers.testDialog.reply`),iconOnly:!0})]})]}),(0,m.jsx)(`div`,{className:`h-[360px] overflow-auto px-4 py-3`,children:r===`headers`?s.length===0?(0,m.jsx)(`p`,{className:`text-[12px] text-[var(--text-muted)]`,children:n(`providers.testDialog.headersEmpty`)}):(0,m.jsx)(`table`,{className:`w-full text-[11px]`,children:(0,m.jsx)(`tbody`,{children:s.map(([e,t])=>(0,m.jsxs)(`tr`,{className:`border-b border-[var(--border)] last:border-0 align-top`,children:[(0,m.jsx)(`th`,{className:`w-[220px] py-1.5 pr-4 text-left font-mono font-normal text-[var(--text-secondary)]`,children:e}),(0,m.jsx)(`td`,{className:`py-1.5 font-mono break-all whitespace-pre-wrap selectable`,children:t})]},e))})}):r===`raw`?o?(0,m.jsxs)(`div`,{className:`grid gap-2`,children:[(0,m.jsxs)(`p`,{className:`text-[11px] text-[var(--text-muted)]`,children:[n(`providers.testDialog.rawNote`),e?.contentType?` · ${e.contentType}`:``]}),(0,m.jsx)(`pre`,{className:`font-mono text-[11px] leading-[1.6] break-all whitespace-pre-wrap selectable`,children:o}),e?.rawTruncated?(0,m.jsx)(`p`,{className:`text-[11px] text-[var(--warning)]`,children:n(`providers.testDialog.rawTruncated`)}):null]}):(0,m.jsx)(o9,{run:e}):e?.error?(0,m.jsx)(lE,{tone:`danger`,title:n(`providers.testDialog.status.failed`),children:e.error}):a||e?.reasoning?(0,m.jsxs)(`div`,{className:`grid gap-3`,children:[e?.reasoning?(0,m.jsxs)(`div`,{className:`rounded-md border border-[var(--border)] bg-[var(--surface-strong)] p-3`,children:[(0,m.jsx)(`div`,{className:`mb-1 text-[11px] text-[var(--text-muted)]`,children:n(`providers.testDialog.reasoning`)}),(0,m.jsx)(`pre`,{className:`font-mono text-[11px] leading-[1.6] whitespace-pre-wrap selectable`,children:e.reasoning})]}):null,a?(0,m.jsx)(`pre`,{className:`font-mono text-[12px] leading-[1.7] break-words whitespace-pre-wrap selectable`,children:a}):null]}):e?.status===`success`?(0,m.jsx)(`p`,{className:`text-[12px] text-[var(--text-muted)]`,children:n(`providers.testDialog.noText`)}):(0,m.jsx)(o9,{run:e})})]})]})}function o9({run:e}){let{t}=K();return e?.status===`running`||e?.status===`queued`?(0,m.jsx)(`div`,{className:`grid h-full place-items-center text-[12px] text-[var(--text-muted)]`,children:t(e9[e.status])}):(0,m.jsxs)(`div`,{className:`grid h-full place-items-center content-center gap-2 text-center`,children:[(0,m.jsx)(ux,{className:`mx-auto size-6 text-[var(--text-muted)]`}),(0,m.jsx)(`div`,{className:`text-[13px]`,children:t(`providers.testDialog.emptyTitle`)}),(0,m.jsx)(`p`,{className:`mx-auto max-w-[320px] text-[11px] text-[var(--text-muted)]`,children:t(`providers.testDialog.emptyDetail`)})]})}function s9({label:e,value:t}){return(0,m.jsxs)(`div`,{className:`bg-[var(--surface)] px-4 py-3`,children:[(0,m.jsx)(`div`,{className:`text-[11px] text-[var(--text-muted)]`,children:e}),(0,m.jsx)(`div`,{className:`mt-1 font-mono text-[15px] tabular-nums`,children:t==null?`—`:vI(t)})]})}function c9({run:e}){let{t}=K(),n=e?.status??`idle`;return(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-1.5 text-[12px] text-[var(--text-secondary)]`,children:[(0,m.jsx)(JT,{tone:n===`success`?`green`:n===`failed`?`red`:n===`running`?`orange`:`neutral`}),t(e9[n])]})}function Yle({known:e,selected:t,onToggle:n,onSelectAll:r,onClear:i,search:a,onSearch:o,onAdd:s,configOpen:c,onConfigOpen:l,...u}){let{t:d}=K(),f=a.trim(),p=f.toLowerCase(),h=p?e.filter(e=>e.toLowerCase().includes(p)):e,g=f!==``&&!e.some(e=>e.toLowerCase()===p);return(0,m.jsxs)(`div`,{className:`grid gap-3`,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`shrink-0 text-[12px] text-[var(--text-secondary)]`,children:d(`providers.testDialog.selected`,{n:t.size,total:e.length})}),(0,m.jsx)(`div`,{className:`min-w-[220px] flex-1`,children:(0,m.jsx)(KT,{value:a,onChange:o,placeholder:d(`providers.testDialog.searchModels`)})}),(0,m.jsx)(X,{variant:`plain`,disabled:t.size===0,onClick:i,children:d(`providers.testDialog.clearSelection`)}),(0,m.jsx)(X,{icon:(0,m.jsx)(rS,{className:`size-3.5`}),onClick:()=>l(!0),children:d(`providers.testDialog.config`)})]}),(0,m.jsx)(`div`,{className:`card max-h-[420px] overflow-auto`,children:h.length===0&&!g?(0,m.jsx)(`p`,{className:`px-4 py-6 text-center text-[12px] text-[var(--text-muted)]`,children:d(`providers.testDialog.noModels`)}):(0,m.jsxs)(`ul`,{className:`divide-y divide-[var(--border)]`,children:[(0,m.jsxs)(`li`,{className:`flex items-center gap-3 px-4 py-2`,children:[(0,m.jsx)(O6,{checked:t.size===e.length&&e.length>0||t.size!==0&&`indeterminate`,onCheckedChange:e=>r(e!==!1),"aria-label":d(`providers.testDialog.clearSelection`)}),(0,m.jsx)(`span`,{className:`text-[11px] text-[var(--text-muted)]`,children:d(`providers.testDialog.ownFilter`)})]}),g?(0,m.jsxs)(`li`,{className:`flex items-center gap-3 px-4 py-2.5`,children:[(0,m.jsx)(IS,{className:`size-3.5 shrink-0 text-[var(--accent)]`}),(0,m.jsx)(`button`,{type:`button`,className:`text-left font-mono text-[12px] text-[var(--accent)]`,onClick:()=>s(f),children:d(`providers.testDialog.addModel`,{id:f})})]}):null,h.map(e=>(0,m.jsxs)(`li`,{className:`flex items-center gap-3 px-4 py-2.5`,children:[(0,m.jsx)(O6,{checked:t.has(e),onCheckedChange:t=>n(e,t!==!1),"aria-label":e}),(0,m.jsx)(`span`,{className:`min-w-0 truncate font-mono text-[12px]`,title:e,children:e})]},e))]})}),(0,m.jsx)(iP,{open:c,onOpenChange:l,width:480,title:d(`providers.testDialog.config`),description:d(`providers.testDialog.savedCredentials`),children:(0,m.jsx)(`div`,{className:`grid gap-4`,children:(0,m.jsx)(i9,{...u})})})]})}function Xle({order:e,runs:t,onView:n}){let{t:r}=K();return(0,m.jsx)(`div`,{className:`card overflow-hidden`,children:(0,m.jsxs)(`table`,{className:`w-full text-[12px]`,children:[(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{className:`border-b border-[var(--border)] text-left text-[11px] text-[var(--text-muted)]`,children:[(0,m.jsx)(`th`,{className:`px-4 py-2 font-normal`,children:r(`providers.testDialog.model`)}),(0,m.jsx)(`th`,{className:`px-4 py-2 font-normal`,children:r(`providers.testDialog.statusColumn`)}),(0,m.jsx)(`th`,{className:`px-4 py-2 font-normal`,children:r(`providers.testDialog.metrics.ttft`)}),(0,m.jsx)(`th`,{className:`px-4 py-2 font-normal`,children:r(`providers.testDialog.metrics.total`)}),(0,m.jsx)(`th`,{className:`px-4 py-2 font-normal`,children:r(`providers.testDialog.reply`)})]})}),(0,m.jsx)(`tbody`,{children:e.map(e=>{let i=t[e];return(0,m.jsxs)(`tr`,{className:`border-b border-[var(--border)] last:border-0`,children:[(0,m.jsx)(`td`,{className:`px-4 py-2 font-mono`,children:e}),(0,m.jsx)(`td`,{className:`px-4 py-2`,children:(0,m.jsx)(c9,{run:i??null})}),(0,m.jsx)(`td`,{className:`px-4 py-2 font-mono tabular-nums`,children:i?.ttftMs==null?`—`:vI(i.ttftMs)}),(0,m.jsx)(`td`,{className:`px-4 py-2 font-mono tabular-nums`,children:i?.totalMs==null?`—`:vI(i.totalMs)}),(0,m.jsx)(`td`,{className:`px-4 py-2`,children:(0,m.jsx)(`button`,{type:`button`,className:`text-[var(--accent)] disabled:text-[var(--text-muted)]`,disabled:!i,onClick:()=>n(e),children:r(`providers.testDialog.view`)})})]},e)})})]})})}async function Zle(e,t,n,r,i){let a={modelId:t,status:`running`,text:``,reasoning:``};i(a);let o=e=>{a={...a,...e},i(a)};try{await d_(e,n,e=>{let t=e.data??{};switch(e.event){case`headers`:o({httpStatus:t9(t.httpStatus),httpMs:t9(t.httpMs),contentType:n9(t.contentType),headers:l9(t.headers)});break;case`delta`:{let e=n9(t.text)??``;n9(t.kind)===`reasoning`?o({reasoning:a.reasoning+e}):o({text:a.text+e});break}case`done`:{let t=e.data;o({status:t.ok?`success`:`failed`,error:t.error??null,httpStatus:t.httpStatus??null,httpMs:t.httpMs??null,ttftMs:t.ttftMs??null,totalMs:t.totalMs??null,text:t.text??``,reasoning:t.reasoning??``,raw:t.raw??``,rawTruncated:t.rawTruncated??!1,contentType:t.contentType??null,headers:l9(t.headers)});break}}},r)}catch(e){e?.name===`AbortError`?o({status:`cancelled`,error:null}):o({status:`failed`,error:e instanceof Hp?e.message:String(e)})}}function l9(e){if(typeof e!=`object`||!e)return{};let t={};for(let[n,r]of Object.entries(e))typeof r==`string`?t[n]=r:r!=null&&(t[n]=String(r));return t}function Qle({quota:e,className:t}){let{t:n,locale:r}=K(),i=e=>{if(!e)return null;let t=new Date(e);return Number.isNaN(t.getTime())?null:n(`providers.subscription.quotaResets`,{when:t.toLocaleString(r)})},a=[];e.session?.usedPercent!=null&&a.push({key:`session`,label:n(`providers.subscription.quotaWindowSession`),window:e.session}),e.weekly?.usedPercent!=null&&a.push({key:`weekly`,label:n(`providers.subscription.quotaWindowWeekly`),window:e.weekly}),e.credits?.usedPercent!=null&&a.push({key:`credits`,label:e.entitlement==null?n(`providers.subscription.quotaWindowCredits`):n(`providers.subscription.quotaWindowPremium`),window:{usedPercent:e.credits.usedPercent,resetsAtUtc:e.credits.resetsAtUtc??null}});let o=e.credits?.prepaidBalance==null?null:n(`providers.subscription.quotaBalance`,{balance:e.credits.prepaidBalance}),s=e.entitlement!=null&&e.entitlement>=0?[n(`providers.subscription.quotaPremiumCount`,{used:Math.max(0,(e.entitlement??0)-(e.remaining??0)),total:e.entitlement}),e.overageUsed?n(`providers.subscription.quotaOverage`,{count:e.overageUsed}):null,e.overagePermitted===!1?n(`providers.subscription.quotaOverageOff`):null].filter(Boolean).join(` · `):null,c=e.planLabel??(e.fetchedAtUtc?n(`providers.subscription.quotaFetchedAt`,{when:new Date(e.fetchedAtUtc).toLocaleString(r)}):null);return(0,m.jsx)(`div`,{className:Cv(`px-4 py-1`,t),children:(0,m.jsxs)(`div`,{className:`card flex flex-col gap-3 p-3`,children:[(c||o)&&(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 text-[11px] text-[var(--text-secondary)]`,children:[c&&(0,m.jsx)(`span`,{children:c}),o&&(0,m.jsx)(`span`,{children:o})]}),a.length===0?(0,m.jsx)(`div`,{className:`text-[12px] text-[var(--text-muted)]`,children:n(`providers.subscription.quotaNoWindows`)}):a.map(e=>(0,m.jsx)($le,{label:e.label,window:e.window,reset:i(e.window.resetsAtUtc)},e.key)),s&&(0,m.jsx)(`div`,{className:`text-[10.5px] text-[var(--text-muted)]`,children:s})]})})}function $le({label:e,window:t,reset:n}){let r=Math.max(0,Math.min(100,Math.round(t.usedPercent??0))),[i,a]=(0,p.useState)(0);(0,p.useEffect)(()=>{if(typeof matchMedia==`function`&&matchMedia(`(prefers-reduced-motion: reduce)`).matches){a(r);return}let e=requestAnimationFrame(()=>a(r));return()=>cancelAnimationFrame(e)},[r]);let o=r>=90?`var(--danger)`:r>=70?`var(--warning)`:`var(--accent)`,s=t.windowMinutes?Math.round(t.windowMinutes/60):null;return(0,m.jsxs)(`div`,{children:[(0,m.jsxs)(`div`,{className:`mb-1 flex items-baseline justify-between gap-2 text-[11.5px]`,children:[(0,m.jsxs)(`span`,{className:`text-[var(--text-secondary)]`,children:[e,s!=null&&(0,m.jsxs)(`span`,{className:`text-[var(--text-muted)]`,children:[` · `,s,`h`]})]}),(0,m.jsxs)(`span`,{className:`font-mono tabular-nums`,children:[r,`%`]})]}),(0,m.jsx)(`div`,{role:`progressbar`,"aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":e,className:`h-1.5 w-full overflow-hidden rounded-full bg-[var(--surface-muted)]`,children:(0,m.jsx)(`div`,{className:`h-full rounded-full transition-[width] duration-500 ease-out`,style:{width:`${i}%`,background:o}})}),n&&(0,m.jsx)(`div`,{className:`mt-1 text-[10.5px] text-[var(--text-muted)]`,children:n})]})}var eue={available:`green`,redeemed:`neutral`,expired:`orange`};function tue({account:e,providerId:t}){let{t:n}=K(),{toast:r,confirm:i}=pP(),a=W_(e.id,e.status===`active`),o=G_(t),s=a.data?.credits??[],c=a.data?.available_count??s.filter(e=>e.status===`available`).length,l=async t=>{await i({title:n(`providers.subscription.credits.consumeConfirm`,{title:t.title??t.reset_type??``}),detail:n(`providers.subscription.credits.consumeDetail`),confirmLabel:n(`providers.subscription.credits.consume`),destructive:!0})&&o.mutate({accountId:e.id,creditId:t.id},{onSuccess:()=>r(n(`providers.subscription.credits.consumed`),`success`),onError:e=>r(e instanceof Hp&&e.status===409?$(e):`${n(`providers.subscription.credits.consumeFailed`)}:${$(e)}`,`error`)})};return(0,m.jsxs)(VT,{title:n(`providers.subscription.credits.title`),footer:n(`providers.subscription.credits.footer`),children:[a.isLoading&&(0,m.jsx)(QT,{className:`my-4`}),a.isError&&(0,m.jsx)(`div`,{className:`px-4 py-3 text-[12px] text-[var(--text-secondary)]`,children:n(`providers.subscription.credits.unavailable`)}),a.data&&s.length===0&&(0,m.jsx)(`div`,{className:`px-4 py-5 text-center text-[12px] text-[var(--text-secondary)]`,children:n(`providers.subscription.credits.none`)}),s.map(e=>{let t=e.status!==`available`;return(0,m.jsxs)(Z,{className:Cv(t&&`opacity-55`),label:(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(xte,{className:`size-3.5 text-[var(--text-secondary)]`}),e.title??e.reset_type??e.id]}),detail:[e.description,e.expires_at?n(`providers.subscription.credits.expires`,{when:new Date(e.expires_at).toLocaleString()}):null,e.redeemed_at?n(`providers.subscription.credits.redeemedAt`,{when:new Date(e.redeemed_at).toLocaleString()}):null,e.is_supported_by_plan===!1?n(`providers.subscription.credits.notInPlan`):null].filter(Boolean).join(` · `),children:[(0,m.jsx)(Q,{tone:eue[e.status]??`neutral`,children:n(`providers.subscription.credits.status.${e.status}`)}),(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(fC,{className:`size-3.5`}),disabled:t,loading:o.isPending&&o.variables?.creditId===e.id,onClick:()=>void l(e),children:n(`providers.subscription.credits.consume`)})]},e.id)}),a.data&&s.length>0&&(0,m.jsx)(`div`,{className:`px-4 py-2 text-[11px] text-[var(--text-muted)]`,children:n(`providers.subscription.credits.availableCount`,{count:c})})]})}var nue={active:`green`,expired:`orange`,revoked:`red`},rue={active:`providers.subscription.status.active`,expired:`providers.subscription.status.expired`,revoked:`providers.subscription.status.revoked`},iue=3e5;function aue({provider:e,account:t,onRelogin:n,onMove:r}){let{t:i,locale:a}=K(),{toast:o,confirm:s}=pP(),c=O_(e.id),l=D_(e.id),u=F_(e.id),d=A_(e.id),f=j_(e.id),h=(0,p.useRef)(!1),g=t.status!==`active`,_=t.displayName||t.id,v=t.cooldownUntilUtc&&new Date(t.cooldownUntilUtc).getTime()>Date.now()?t.cooldownUntilUtc:null,y=e.templateId===`openai-subscription`;(0,p.useEffect)(()=>{if(g||h.current)return;let e=t.quota?.fetchedAtUtc?new Date(t.quota.fetchedAtUtc).getTime():0;Number.isFinite(e)&&e>0&&Date.now()-e<iue||(h.current=!0,c.mutate(t.id,{onError:()=>{}}))},[t.id,g,t.quota?.fetchedAtUtc]);let b=()=>c.mutate(t.id,{onError:e=>{e instanceof Hp&&e.status===501?o(i(`providers.subscription.quotaUnsupported`),`error`):o($(e),`error`)}}),x=()=>l.mutate(t.id,{onSuccess:()=>o(i(`providers.subscription.tokenRefreshed`),`success`),onError:e=>o($(e),`error`)}),S=()=>d.mutate(t.id,{onSuccess:()=>o(i(`providers.subscription.activated`,{name:_}),`success`),onError:e=>o($(e),`error`)}),C=()=>f.mutate({id:t.id,enabled:!t.enabled},{onError:e=>o($(e),`error`)}),w=async()=>{await s({title:i(`providers.subscription.logoutConfirm`,{name:_}),destructive:!0,confirmLabel:i(`providers.subscription.logout`)})&&u.mutate(t.id,{onError:e=>o($(e),`error`)})},T=t.plan?.trim();return(0,m.jsxs)(VT,{className:Cv(`overflow-hidden`,(g||!t.enabled)&&`opacity-60`),children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3 px-4 py-3`,children:[(0,m.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`truncate text-[13.5px] font-medium`,children:_}),t.isCurrent&&(0,m.jsx)(Q,{tone:`accent`,children:i(`providers.subscription.current`)}),T&&(0,m.jsx)(Q,{tone:`accent`,children:T}),(0,m.jsx)(Q,{tone:nue[t.status],children:i(rue[t.status])}),!t.enabled&&(0,m.jsx)(Q,{tone:`neutral`,children:i(`providers.subscription.disabled`)})]}),(0,m.jsxs)(`div`,{className:`mt-0.5 flex flex-wrap items-center gap-x-2 text-[11px] text-[var(--text-secondary)]`,children:[t.accountEmail&&t.accountEmail!==t.displayName&&(0,m.jsx)(`span`,{children:t.accountEmail}),t.expiresAtUtc&&(0,m.jsxs)(`span`,{children:[i(`providers.subscription.expires`),` `,new Date(t.expiresAtUtc).toLocaleString()]}),v&&(0,m.jsx)(`span`,{className:`text-[var(--orange)]`,title:t.lastError??void 0,children:i(`providers.subscription.cooldown`,{when:CI(v,a)})})]})]}),(0,m.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(cS,{className:`size-3.5`}),"aria-label":i(`providers.subscription.quotaRefresh`),loading:c.isPending&&c.variables===t.id,disabled:g,onClick:b}),(0,m.jsx)(aP,{label:i(`common.more`),icon:(0,m.jsx)(`span`,{className:`text-[15px] leading-none`,children:`⋯`}),items:[{id:`activate`,label:i(`providers.subscription.activate`),icon:(0,m.jsx)(ute,{className:`size-3.5`}),disabled:t.isCurrent||g,onSelect:S},{id:`toggle`,label:i(t.enabled?`providers.subscription.disable`:`providers.subscription.enable`),icon:(0,m.jsx)(RS,{className:`size-3.5`}),onSelect:C},...r?[{id:`up`,label:i(`providers.subscription.moveUp`),icon:(0,m.jsx)(wx,{className:`size-3.5`}),disabled:!r.up,onSelect:()=>r.up?.()},{id:`down`,label:i(`providers.subscription.moveDown`),icon:(0,m.jsx)(lte,{className:`size-3.5`}),disabled:!r.down,onSelect:()=>r.down?.()}]:[],{id:`refresh`,separatorBefore:!0,label:i(`providers.subscription.refreshToken`),icon:(0,m.jsx)(HS,{className:`size-3.5`}),disabled:t.status===`revoked`,onSelect:x},{id:`relogin`,label:i(`providers.subscription.relogin`),disabled:!g,onSelect:()=>n(t.id)},{id:`remove`,label:i(`providers.subscription.logout`),icon:(0,m.jsx)(mC,{className:`size-3.5`}),destructive:!0,separatorBefore:!0,onSelect:()=>void w()}]})]})]}),t.quota?(0,m.jsx)(Qle,{quota:t.quota}):(0,m.jsx)(`div`,{className:`px-4 pb-3 text-[11.5px] text-[var(--text-muted)]`,children:i(g?`providers.subscription.quotaNoAccount`:`providers.subscription.quotaLoading`)}),y&&!g&&(0,m.jsx)(tue,{account:t,providerId:e.id})]})}var oue={imported:`providers.subscription.importBatchStatus.imported`,duplicate:`providers.subscription.importBatchStatus.duplicate`,invalid_format:`providers.subscription.importBatchStatus.invalid_format`,failed:`providers.subscription.importBatchStatus.failed`},sue={imported:`green`,duplicate:`neutral`,invalid_format:`orange`,failed:`red`};function cue(e){let t=0;for(let n of e.split(`
|
|
81
|
-
`)){let e=n.trim();e.length===0||e.startsWith(`#`)||(t+=e.split(/[,;\s]+/).filter(e=>e.replace(/^["']+|["']+$/g,``).length>0).length)}return t}function lue({providerId:e}){let{t}=K(),{toast:n}=pP(),r=U_(e),[i,a]=(0,p.useState)(!1),[o,s]=(0,p.useState)(``),[c,l]=(0,p.useState)(null),u=(0,p.useMemo)(()=>cue(o),[o]);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{size:`sm`,icon:(0,m.jsx)(vS,{className:`size-3.5`}),onClick:()=>{l(null),a(!0)},title:t(`providers.subscription.importBatchDesc`),children:t(`providers.subscription.importBatch`)}),(0,m.jsx)(iP,{open:i,onOpenChange:a,title:t(`providers.subscription.importBatchTitle`),description:t(`providers.subscription.importBatchDesc`),children:(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,m.jsx)(WT,{mono:!0,rows:8,value:o,onChange:e=>s(e.target.value),placeholder:t(`providers.subscription.importBatchPlaceholder`),"aria-label":t(`providers.subscription.importBatchLabel`),spellCheck:!1}),(0,m.jsxs)(`div`,{className:`flex items-center justify-between gap-2`,children:[(0,m.jsx)(`span`,{className:`text-[11px] text-[var(--text-muted)]`,children:t(`providers.subscription.importBatchCount`,{n:u})}),(0,m.jsx)(X,{variant:`primary`,loading:r.isPending,disabled:u===0,onClick:()=>r.mutate(o,{onSuccess:e=>{l(e),n(t(`providers.subscription.importBatchSummary`,{ok:e.imported,dup:e.duplicates,fail:e.failed}),e.failed>0?`info`:`success`),e.failed===0&&s(``)},onError:e=>n($(e),`error`)}),children:t(`providers.subscription.importBatchRun`)})]}),c&&(0,m.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,m.jsx)(`div`,{className:`text-[12px] font-medium`,children:t(`providers.subscription.importBatchSummary`,{ok:c.imported,dup:c.duplicates,fail:c.failed})}),(0,m.jsx)(`ul`,{className:`card divide-y divide-[var(--border)]`,children:c.items.map(e=>(0,m.jsxs)(`li`,{className:`flex items-start gap-2 px-3 py-2 text-[12px]`,children:[(0,m.jsx)(`span`,{className:`w-6 shrink-0 text-[var(--text-muted)]`,children:e.index}),(0,m.jsx)(`span`,{className:`selectable w-28 shrink-0 font-mono`,children:e.source}),(0,m.jsx)(Q,{tone:sue[e.status],children:t(oue[e.status])}),(0,m.jsx)(`span`,{className:`selectable min-w-0 flex-1 break-words text-[var(--text-secondary)]`,children:e.account?.displayName&&e.status===`imported`?`${e.account.displayName}${e.message?` · ${e.message}`:``}`:e.message??``})]},e.index))})]})]})})]})}function uue({provider:e}){let{t}=K(),{toast:n}=pP(),r=e.authScheme===`oauth-subscription`,i=N_(e.id,r),a=P_(e.id);if(!r||!i.data)return null;let o=i.data,s=e=>a.mutate(e,{onError:e=>n($(e),`error`)}),c=o.claudeSubscription||o.clientPolicy===`claude-code-only`;return(0,m.jsxs)(VT,{title:t(`providers.subscription.policy.title`),footer:t(`providers.subscription.policy.footer`),children:[c&&(0,m.jsx)(Z,{label:t(`providers.subscription.policy.claudeCodeOnly`),detail:t(`providers.subscription.policy.claudeCodeOnlyDetail`),children:(0,m.jsx)(BT,{label:t(`providers.subscription.policy.claudeCodeOnly`),checked:o.clientPolicy===`claude-code-only`,disabled:a.isPending,onChange:e=>s({clientPolicy:e?`claude-code-only`:`any`})})}),o.claudeSubscription&&(0,m.jsx)(Z,{label:t(`providers.subscription.policy.mimic`),detail:t(`providers.subscription.policy.mimicDetail`),children:(0,m.jsx)(BT,{label:t(`providers.subscription.policy.mimic`),checked:o.mimicClaudeCode,disabled:a.isPending,onChange:e=>s({mimicClaudeCode:e})})}),c&&o.clientPolicy===`any`&&(0,m.jsx)(`div`,{className:`px-4 py-3`,children:o.mimicClaudeCode?(0,m.jsx)(lE,{tone:`warning`,title:t(`providers.subscription.policy.mimicWarning`)}):(0,m.jsx)(lE,{tone:`warning`,title:t(`providers.subscription.policy.anyWarning`)})}),(0,m.jsx)(Z,{label:t(`providers.subscription.policy.switchMode`),detail:t(o.switchMode===`balanced`?`providers.subscription.policy.balancedDetail`:o.switchMode===`failover`?`providers.subscription.policy.failoverDetail`:`providers.subscription.policy.manualDetail`),children:(0,m.jsx)(zT,{ariaLabel:t(`providers.subscription.policy.switchMode`),value:o.switchMode,onChange:e=>s({switchMode:e}),items:[{value:`manual`,label:t(`providers.subscription.policy.manual`)},{value:`failover`,label:t(`providers.subscription.policy.failover`)},{value:`balanced`,label:t(`providers.subscription.policy.balanced`)}]})})]})}function due({provider:e}){let{t}=K(),{toast:n}=pP(),r=g(),i=e.authScheme===`oauth-subscription`,a=T_(e.id,i),o=I_(e.id),s=L_(e.id),c=B_(e.id),l=O_(e.id),u=e.templateId===`openai-subscription`,d=R_(i&&u),f=z_(e.id),h=e.templateId===`github-copilot-subscription`,_=V_(i&&h),v=H_(e.id),[y,b]=(0,p.useState)(``),x=M_(e.id),[S,C]=(0,p.useState)(!1),[w,T]=(0,p.useState)(null),[E,D]=(0,p.useState)(null),[O,k]=(0,p.useState)(!1),[A,j]=(0,p.useState)(``),M=(0,p.useRef)(new Set),N=(0,p.useRef)(new Set),P=()=>f.mutate(void 0,{onSuccess:e=>{let r=e.account.displayName||e.account.accountEmail||e.account.id;n(t(`providers.subscription.importOk`,{name:r}),e.warning?`info`:`success`),e.warning&&n(e.warning,`error`),d.refetch()},onError:e=>n($(e),`error`)}),F=()=>v.mutate(y,{onSuccess:e=>{let r=e.account.displayName||e.account.accountEmail||e.account.id;n(t(`providers.subscription.importOk`,{name:r}),e.warning?`info`:`success`),e.warning&&n(e.warning,`error`),b(``)},onError:e=>n($(e),`error`)});if((0,p.useEffect)(()=>{if(i)for(let e of a.data??[]){if(e.status!==`active`||N.current.has(e.id))continue;let t=e.quota?.fetchedAtUtc?new Date(e.quota.fetchedAtUtc).getTime():0;Number.isFinite(t)&&Date.now()-t<3e5||(N.current.add(e.id),l.mutate(e.id,{onError:()=>{}}))}},[a.data,i]),(0,p.useEffect)(()=>{if(!S||w?.mode!==`pkce`)return;let e=setInterval(()=>void a.refetch(),3e3);return()=>clearInterval(e)},[S,w,a]),(0,p.useEffect)(()=>{if(!S||w?.mode!==`pkce`)return;let e=(a.data??[]).find(e=>!M.current.has(e.id));e&&I(!0,e.displayName||e.accountEmail||e.id)},[a.data,S,w]),(0,p.useEffect)(()=>{if(!S||w?.mode!==`device`&&w?.mode!==`cli`)return;let e=!1,t=0,n=async()=>{try{let n=await s.mutateAsync(w.state);if(e)return;t=0,n.status===`done`?I(!0,n.account.displayName||n.account.accountEmail||n.account.id):n.status!==`pending`&&n.status!==`slow_down`&&I(!1,void 0,`error`in n?n.error??n.status:n.status)}catch(n){if(e)return;if(n instanceof Hp&&(n.status===404||n.status===400)){I(!1,void 0,$(n));return}++t>=5&&I(!1,void 0,$(n))}},r=setInterval(()=>void n(),Math.max(w.interval||5,3)*1e3);return()=>{e=!0,clearInterval(r)}},[S,w]),!i)return null;let I=(i,a,o)=>{if(r.invalidateQueries({queryKey:G.providerAccounts(e.id)}),i){T(null),D(null),C(!1),n(t(`providers.subscription.loginOk`,{name:a??``}),`success`);return}o&&D(o)},L=e=>{M.current=new Set((a.data??[]).map(e=>e.id)),D(null),o.mutate(e,{onSuccess:e=>{T(e),C(!0),e.mode!==`device`&&window.open(e.authorizeUrl,`_blank`,`noopener`)},onError:e=>{e instanceof Hp&&e.details?.needsVerification?n(t(`providers.subscription.needsVerification`),`error`):n($(e),`error`)}})},R=async()=>{if(w){k(!0);try{let e=await s.mutateAsync(w.state);e.status===`done`?I(!0,e.account.displayName||e.account.accountEmail||e.account.id):e.status===`pending`||e.status===`slow_down`?n(t(`providers.subscription.stillWaiting`),`info`):I(!1,void 0,`error`in e?e.error??e.status:e.status)}catch(e){if(e instanceof Hp&&e.status===404){let t=((await a.refetch()).data??[]).find(e=>!M.current.has(e.id));t?I(!0,t.displayName||t.accountEmail||t.id):I(!1,void 0,$(e))}else I(!1,void 0,$(e))}finally{k(!1)}}},ee=async()=>{if(w&&w.mode===`paste`&&A.trim().length!==0){k(!0);try{let e=await c.mutateAsync({state:w.state,code:A.trim()});e.status===`done`?(j(``),I(!0,e.account.displayName||e.account.accountEmail||e.account.id)):I(!1,void 0,`error`in e?e.error??e.status:e.status)}catch(e){I(!1,void 0,$(e))}finally{k(!1)}}},te=(e,t)=>{let r=(a.data??[]).map(e=>e.id),i=e+t;i<0||i>=r.length||([r[e],r[i]]=[r[i],r[e]],x.mutate(r,{onError:e=>n($(e),`error`)}))};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(uue,{provider:e}),(0,m.jsxs)(VT,{title:t(`providers.subscription`),footer:t(`providers.subscription.footer`),children:[a.isLoading&&(0,m.jsx)(QT,{className:`my-4`}),!a.isLoading&&(a.data?.length??0)===0&&(0,m.jsx)(`div`,{className:`px-4 py-5 text-center text-[12px] text-[var(--text-secondary)]`,children:t(`providers.subscription.none`)}),a.data?.map((t,n,r)=>(0,m.jsx)(aue,{provider:e,account:t,onRelogin:L,onMove:r.length>1?{up:n>0?()=>te(n,-1):void 0,down:n<r.length-1?()=>te(n,1):void 0}:void 0},t.id)),(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 px-4 py-2`,children:[(0,m.jsx)(X,{size:`sm`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),loading:o.isPending,onClick:()=>L(),children:t(`providers.subscription.login`)}),u&&d.data?.available&&(0,m.jsx)(X,{size:`sm`,icon:(0,m.jsx)(Xx,{className:`size-3.5`}),loading:f.isPending,onClick:P,title:t(`providers.subscription.importCodexHint`),children:t(`providers.subscription.importCodex`)}),h&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{size:`sm`,icon:(0,m.jsx)(Xx,{className:`size-3.5`}),loading:v.isPending,onClick:F,title:t(`providers.subscription.importCopilotHint`),children:t(`providers.subscription.importCopilot`)}),(0,m.jsx)(UT,{className:`w-56`,mono:!0,value:y,onChange:e=>b(e.target.value),placeholder:t(`providers.subscription.importCopilotPlaceholder`),"aria-label":t(`providers.subscription.importCopilotToken`)}),(0,m.jsx)(lue,{providerId:e.id})]})]}),u&&d.data?.available&&(0,m.jsxs)(`div`,{className:`px-4 pb-2 text-[11px] text-[var(--text-muted)]`,children:[t(`providers.subscription.localCodexFound`,{who:d.data.accountEmail??d.data.plan??t(`providers.subscription.unknownAccount`)}),d.data.detail?` · ${d.data.detail}`:``]}),h&&(0,m.jsxs)(`div`,{className:`px-4 pb-2 text-[11px] text-[var(--text-muted)]`,children:[_.data?.available?t(`providers.subscription.localCopilotFound`,{source:_.data.source??``}):t(`providers.subscription.localCopilotHint`),_.data?.detail?` · ${_.data.detail}`:``]})]}),(0,m.jsxs)(iP,{open:S,onOpenChange:e=>{C(e),e||(T(null),D(null))},title:t(`providers.subscription.login`),description:t(`providers.subscription.loginDesc`),children:[E&&(0,m.jsx)(lE,{tone:`danger`,title:t(`providers.subscription.loginFailed`),children:E}),w?.mode===`paste`&&(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,m.jsx)(lE,{tone:`info`,title:t(`providers.subscription.pasteTitle`),children:t(`providers.subscription.pasteDetail`)}),(0,m.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:(0,m.jsx)(X,{onClick:()=>window.open(w.authorizeUrl,`_blank`,`noopener`),children:t(`providers.subscription.openAuthorize`)})}),(0,m.jsx)(UT,{mono:!0,value:A,onChange:e=>j(e.target.value),placeholder:t(`providers.subscription.pastePlaceholder`),"aria-label":t(`providers.subscription.pasteCode`)}),(0,m.jsx)(X,{variant:`primary`,loading:O,onClick:()=>void ee(),children:t(`providers.subscription.pasteSubmit`)})]}),w?.mode===`pkce`&&(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,m.jsx)(lE,{tone:`info`,title:t(`providers.subscription.waiting`),children:t(`providers.subscription.waitingDetail`)}),(0,m.jsxs)(`div`,{className:`flex gap-2`,children:[(0,m.jsx)(X,{onClick:()=>window.open(w.authorizeUrl,`_blank`,`noopener`),children:t(`providers.subscription.openAuthorize`)}),(0,m.jsx)(X,{variant:`primary`,onClick:()=>{r.invalidateQueries({queryKey:G.providerAccounts(e.id)}),a.refetch()},children:t(`providers.subscription.doneAuthorize`)})]})]}),w?.mode===`cli`&&(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,m.jsx)(lE,{tone:`info`,title:t(`providers.subscription.waiting`),children:t(`providers.subscription.cliDetail`)}),(0,m.jsx)(X,{onClick:()=>window.open(w.authorizeUrl,`_blank`,`noopener`),children:t(`providers.subscription.openAuthorize`)})]}),w?.mode===`device`&&(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,m.jsxs)(`div`,{children:[(0,m.jsx)(`div`,{className:`text-[11px] text-[var(--text-secondary)]`,children:t(`providers.subscription.deviceCode`)}),(0,m.jsx)(`div`,{className:`selectable font-mono text-[18px] font-medium tracking-wide`,children:w.userCode})]}),(0,m.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[w.verificationUrl&&(0,m.jsx)(X,{onClick:()=>window.open(w.verificationUrl??void 0,`_blank`,`noopener`),children:t(`providers.subscription.visitPage`)}),(0,m.jsx)(X,{variant:`primary`,loading:O,onClick:()=>void R(),children:t(`providers.subscription.checkNow`)})]}),(0,m.jsx)(lE,{tone:`info`,title:t(`providers.subscription.waiting`),children:t(`providers.subscription.checkNowHint`)})]})]})]})}function fue(e){let t=e?.model_map,n={};if(!t||typeof t!=`object`||Array.isArray(t))return n;for(let[e,r]of Object.entries(t))e&&typeof r==`string`&&r&&(n[e]=r);return n}function pue(){let{t:e}=K(),{id:t=``}=Ph(),n=Ah(),r=Zg(t),[i,a]=(0,p.useState)(`models`),[o,s]=(0,p.useState)(null),c=h_(t),l=c.data?.find(e=>e.id===o)??null;if(r.isError)return(0,m.jsx)(i6,{title:e(`nav.providers`),leading:(0,m.jsx)(u9,{onClick:()=>n(`/providers`)}),children:(0,m.jsx)(lE,{tone:`danger`,title:e(`common.error`),children:$(r.error)})});let u=r.data;return(0,m.jsx)(i6,{title:u?u.name:``,subtitle:u?[u.templateId,u.priceKey?e(`providers.priceKeyShort`,{key:u.priceKey}):null].filter(Boolean).join(` · `):void 0,leading:(0,m.jsx)(u9,{onClick:()=>n(`/providers`)}),actions:u&&(0,m.jsx)(mue,{p:u}),children:u?(0,m.jsxs)(X8,{className:`mx-auto max-w-[860px]`,value:i,onValueChange:e=>a(e),children:[(0,m.jsxs)(Z8,{"aria-label":u.name,children:[(0,m.jsx)(Q8,{value:`models`,children:e(`providers.tab.models`)}),(0,m.jsx)(Q8,{value:`settings`,children:e(`providers.tab.settings`)})]}),(0,m.jsx)($8,{value:`models`,className:`pt-4`,children:(0,m.jsx)(gue,{provider:u,models:c.data,loading:c.isLoading,selected:o,onSelect:s})}),(0,m.jsx)($8,{value:`settings`,className:`pt-4`,children:(0,m.jsx)(wue,{provider:u})}),(0,m.jsx)(Sue,{provider:u,pm:i===`models`?l:null,onClose:()=>s(null)})]}):(0,m.jsx)(QT,{lines:4,className:`mx-auto mt-6 max-w-[860px]`})})}function u9({onClick:e}){let{t}=K();return(0,m.jsx)(X,{variant:`glass`,icon:(0,m.jsx)(_x,{className:`size-4`}),"aria-label":t(`common.back`),onClick:e})}function mue({p:e}){let{t}=K(),n=Ah(),{toast:r,confirm:i}=pP(),a=u_(),o=i_(),[s,c]=(0,p.useState)(!1),[l,u]=(0,p.useState)(!1),d=async()=>{await i({title:t(`providers.deleteConfirm`,{name:e.name}),detail:t(`providers.deleteDetail`),destructive:!0,confirmLabel:t(`common.delete`)})&&o.mutate(e.id,{onSuccess:()=>{r(t(`providers.deleted`)),n(`/providers`)},onError:e=>{let n=e instanceof Hp&&e.status===409?e.details?.boundClients??[]:[];r(n.length?t(`providers.deleteBound`,{clients:n.map(e=>a3[e]?.name??e).join(`, `)}):$(e),`error`)}})};return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{icon:(0,m.jsx)(rS,{className:`size-3.5`}),onClick:()=>u(!0),children:t(`providers.test`)}),(0,m.jsx)(aP,{label:t(`common.more`),icon:(0,m.jsx)(Qx,{className:`size-4`}),items:[{id:`dup`,label:t(`providers.duplicate`),icon:(0,m.jsx)(Jx,{className:`size-3.5`}),onSelect:()=>a.mutate(e.id,{onSuccess:e=>n(`/providers/${e.id}`),onError:e=>r($(e),`error`)})},{id:`tpl`,label:t(`providers.templateUpdate`),icon:(0,m.jsx)(oC,{className:`size-3.5`}),disabled:!e.templateId,onSelect:()=>c(!0)},{id:`del`,label:t(`common.delete`),icon:(0,m.jsx)(mC,{className:`size-3.5`}),destructive:!0,separatorBefore:!0,onSelect:()=>void d()}]}),(0,m.jsx)(hue,{open:s,onOpenChange:c,provider:e}),(0,m.jsx)(r9,{provider:e,open:l,onOpenChange:u})]})}function hue({open:e,onOpenChange:t,provider:n}){let{t:r}=K(),{toast:i}=pP(),a=p_(n.id,e),o=m_(n.id),s=a.data&&a.data.latestVersion<=a.data.currentVersion;return(0,m.jsxs)(iP,{open:e,onOpenChange:t,title:r(`providers.templateUpdate`),description:a.data?r(`providers.templateVersions`,{current:a.data.currentVersion,latest:a.data.latestVersion}):void 0,footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:()=>t(!1),children:r(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!a.data||s,loading:o.isPending,onClick:()=>o.mutate(void 0,{onSuccess:()=>{t(!1),i(r(`providers.templateApplied`),`success`)},onError:e=>i($(e),`error`)}),children:r(`common.apply`)})]}),children:[a.isLoading&&(0,m.jsx)(QT,{}),a.isError&&(0,m.jsx)(lE,{tone:`danger`,title:r(`common.error`),children:$(a.error)}),s&&(0,m.jsx)(lE,{tone:`success`,title:r(`providers.templateUpToDate`)}),a.data&&!s&&(0,m.jsx)(`ul`,{className:`list-disc pl-5 text-[12px]`,children:a.data.changes.map((e,t)=>(0,m.jsx)(`li`,{children:e},t))})]})}function gue({provider:e,models:t,loading:n,selected:r,onSelect:i}){let{t:a}=K(),{toast:o}=pP(),[s,c]=(0,p.useState)(``),[l,u]=(0,p.useState)(!1),[d,f]=(0,p.useState)(!1),h=v_(e.id),g=(t??[]).filter(e=>!s||e.modelId.toLowerCase().includes(s.toLowerCase())||e.effective.displayName.toLowerCase().includes(s.toLowerCase()));return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2`,children:[(0,m.jsx)(KT,{className:`w-56`,value:s,onChange:c,placeholder:a(`providers.searchModels`)}),(0,m.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[(0,m.jsx)(X,{icon:(0,m.jsx)(IS,{className:`size-3.5`}),onClick:()=>f(!0),children:a(`providers.addModels`)}),(0,m.jsx)(X,{variant:`primary`,icon:(0,m.jsx)(Gx,{className:`size-3.5`}),onClick:()=>u(!0),children:a(`providers.fetchRemote`)})]})]}),n&&(0,m.jsx)(QT,{lines:4}),t?.length===0&&(0,m.jsx)(`div`,{className:`card`,children:(0,m.jsx)($T,{title:a(`providers.noModels`),detail:a(`providers.noModelsDetail`)})}),g.length>0&&(0,m.jsx)(VT,{footer:a(`providers.modelsFooter`),children:g.map(e=>(0,m.jsxs)(Z,{selected:e.id===r,onClick:()=>i(e.id),label:(0,m.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:Cv(`font-mono text-[12.5px]`,!e.enabled&&`text-[var(--text-muted)]`),children:e.modelId}),!e.systemModelId&&(0,m.jsx)(Q,{tone:`orange`,children:a(`providers.unlinked`)})]}),detail:[e.effective.displayName===e.modelId?null:e.effective.displayName,e.effective.contextWindow?xI(e.effective.contextWindow):null,TI(e.effectivePricing)].filter(Boolean).join(` · `),children:[(0,m.jsx)(o8,{source:e.pricingSource,priceKey:e.priceKey}),(0,m.jsx)(BT,{checked:e.enabled,label:a(`common.enabled`),onChange:t=>h.mutate({pmId:e.id,enabled:t},{onError:e=>o($(e),`error`)})})]},e.id))}),t&&(0,m.jsx)(_ue,{provider:e,models:t}),(0,m.jsx)(yue,{open:d,onOpenChange:f,provider:e}),(0,m.jsx)(bue,{open:l,onOpenChange:u,provider:e})]})}function _ue({provider:e,models:t}){let{t:n}=K(),{toast:r}=pP(),i=r_(e.id),[a,o]=(0,p.useState)(!1),s=fue(e.settings),c=Object.entries(s),l=new Set(t.map(e=>e.modelId)),u=(e,t)=>i.mutate(e,{onSuccess:()=>{t?.(),r(n(`providers.modelMap.saved`),`success`)},onError:e=>r($(e),`error`)});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(VT,{title:n(`providers.modelMap.title`),footer:n(`providers.modelMap.footer`),children:[c.map(([e,t])=>(0,m.jsx)(Z,{label:(0,m.jsxs)(`span`,{className:`flex items-center gap-2 font-mono text-[12.5px]`,children:[(0,m.jsx)(`span`,{className:`truncate`,children:e}),(0,m.jsx)(bx,{className:`size-3.5 shrink-0 text-[var(--text-muted)]`,"aria-hidden":!0}),(0,m.jsx)(`span`,{className:Cv(`truncate`,!l.has(t)&&`text-[var(--text-muted)]`),children:t}),!l.has(t)&&(0,m.jsx)(Q,{tone:`orange`,children:n(`providers.modelMap.missingTarget`)})]}),children:(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(vC,{className:`size-3.5`}),"aria-label":n(`providers.modelMap.remove`,{from:e}),title:n(`providers.modelMap.remove`,{from:e}),disabled:i.isPending,onClick:()=>u(Object.fromEntries(c.filter(([t])=>t!==e)))})},e)),(0,m.jsx)(Z,{icon:(0,m.jsx)(IS,{className:`size-4 text-[var(--text-secondary)]`}),label:n(`providers.modelMap.add`),detail:t.length===0?n(`providers.modelMap.needModels`):void 0,onClick:t.length===0?void 0:()=>o(!0)})]}),(0,m.jsx)(vue,{open:a,onOpenChange:o,models:t,saving:i.isPending,onSave:(e,t)=>u({...s,[e]:t},()=>o(!1))})]})}function vue({open:e,onOpenChange:t,models:n,saving:r,onSave:i}){let{t:a}=K(),[o,s]=(0,p.useState)(``),[c,l]=(0,p.useState)(``);(0,p.useEffect)(()=>{e&&(s(``),l(``))},[e]);let u=o.trim();return(0,m.jsx)(iP,{open:e,onOpenChange:t,title:a(`providers.modelMap.add`),description:a(`providers.modelMap.addDetail`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:()=>t(!1),children:a(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!u||!c||u===c,loading:r,onClick:()=>i(u,c),children:a(`common.save`)})]}),children:(0,m.jsxs)(`div`,{className:`flex flex-col gap-3`,children:[(0,m.jsx)(UT,{autoFocus:!0,mono:!0,label:a(`providers.modelMap.from`),placeholder:`deepseek-v4.1`,spellCheck:!1,value:o,onChange:e=>s(e.target.value)}),(0,m.jsx)(uP,{label:a(`providers.modelMap.to`),value:c,onChange:l,placeholder:a(`providers.modelMap.toPlaceholder`),options:n.map(e=>({value:e.modelId,label:e.modelId}))})]})})}function yue({open:e,onOpenChange:t,provider:n}){let{t:r}=K(),{toast:i}=pP(),a=__(n.id),[o,s]=(0,p.useState)(``);(0,p.useEffect)(()=>{e&&s(``)},[e]);let c=[...new Set(o.split(/[\s,]+/).map(e=>e.trim()).filter(Boolean))];return(0,m.jsx)(iP,{open:e,onOpenChange:t,title:r(`providers.addModels`),description:r(`providers.addModelsDetail`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:()=>t(!1),children:r(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:c.length===0,loading:a.isPending,onClick:()=>a.mutate(c,{onSuccess:e=>{t(!1),i(r(`providers.modelsAdded`,{count:e.length}),`success`)},onError:e=>i($(e),`error`)}),children:r(`providers.addSelected`,{count:c.length})})]}),children:(0,m.jsx)(WT,{autoFocus:!0,label:r(`providers.modelIds`),rows:6,spellCheck:!1,className:`w-full font-mono text-[12px]`,placeholder:`deepseek-v4-pro
|
|
82
|
-
claude-sonnet-4-6`,value:o,onChange:e=>s(e.target.value)})})}function bue({open:e,onOpenChange:t,provider:n}){let{t:r}=K(),{toast:i}=pP(),a=f_(n.id,e),o=__(n.id),[s,c]=(0,p.useState)(new Set),[l,u]=(0,p.useState)(``);(0,p.useEffect)(()=>{e&&c(new Set)},[e]);let d=(a.data??[]).filter(e=>!l||e.id.toLowerCase().includes(l.toLowerCase())),f=e=>c(t=>{let n=new Set(t);return n.has(e)?n.delete(e):n.add(e),n});return(0,m.jsxs)(iP,{open:e,onOpenChange:t,width:560,title:r(`providers.fetchRemote`),description:r(`providers.fetchRemoteDetail`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{variant:`plain`,className:`mr-auto`,onClick:()=>c(new Set(d.filter(e=>!e.alreadyAdded).map(e=>e.id))),disabled:d.length===0,children:r(`common.selectAll`)}),(0,m.jsx)(X,{onClick:()=>t(!1),children:r(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:s.size===0,loading:o.isPending,onClick:()=>o.mutate([...s],{onSuccess:e=>{t(!1),i(r(`providers.modelsAdded`,{count:e.length}),`success`)},onError:e=>i($(e),`error`)}),children:r(`providers.addSelected`,{count:s.size})})]}),children:[(0,m.jsx)(KT,{className:`mb-3`,value:l,onChange:u,placeholder:r(`providers.searchModels`)}),a.isLoading&&(0,m.jsx)(QT,{lines:4}),a.isError&&(0,m.jsx)(lE,{tone:`danger`,title:r(`common.error`),children:$(a.error)}),(0,m.jsx)(`div`,{className:`card divide-y divide-[var(--border)]`,children:d.map(e=>(0,m.jsx)(Z,{onClick:e.alreadyAdded?void 0:()=>f(e.id),label:(0,m.jsx)(`span`,{className:`font-mono text-[12px]`,children:e.id}),detail:e.linkedSystemModelId?r(`providers.linksTo`,{id:e.linkedSystemModelId}):r(`providers.noLink`),children:e.alreadyAdded?(0,m.jsx)(Q,{children:r(`providers.added`)}):(0,m.jsx)(`span`,{onClick:e=>e.stopPropagation(),children:(0,m.jsx)(O6,{"aria-label":e.id,checked:s.has(e.id),onCheckedChange:()=>f(e.id)})})},e.id))})]})}function xue({origin:e}){let{t}=K();return e===`overridden`?(0,m.jsx)(Q,{tone:`orange`,children:t(`origin.overridden`)}):e===`inherited`?(0,m.jsx)(Q,{children:t(`origin.inherited`)}):(0,m.jsx)(Q,{tone:`red`,children:t(`origin.unset`)})}function Sue({provider:e,pm:t,onClose:n}){let{t:r}=K(),{toast:i}=pP(),a=v_(e.id),o=y_(e.id),s=qg(),[c,l]=(0,p.useState)({}),[u,d]=(0,p.useState)(``),[f,h]=(0,p.useState)(!1);if((0,p.useEffect)(()=>{t&&(l(t.overrides),d(t.systemModelId??``),h(t.overrides.pricing!=null))},[t]),!t)return(0,m.jsx)(iP,{open:!1,onOpenChange:()=>n(),title:r(`providers.tab.models`)});let g={...c,pricing:f?c.pricing??null:null},_=JSON.stringify(g)!==JSON.stringify({...t.overrides,pricing:t.overrides.pricing??null})||u!==(t.systemModelId??``),v=()=>a.mutate({pmId:t.id,overrides:g,systemModelId:u||null},{onSuccess:()=>{i(r(`common.saved`),`success`),n()},onError:e=>i($(e),`error`)}),y=(e,n,i)=>(0,m.jsxs)(`div`,{children:[(0,m.jsxs)(`div`,{className:`mb-1 flex items-center justify-between gap-2`,children:[(0,m.jsx)(`span`,{className:`text-[13px] font-medium`,children:n}),(0,m.jsxs)(`span`,{className:`flex items-center gap-1`,children:[(0,m.jsx)(xue,{origin:c[e]==null?t.origins[e]===`overridden`?`inherited`:t.origins[e]:`overridden`}),c[e]!=null&&(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(HS,{className:`size-3`}),title:r(`origin.reset`),"aria-label":r(`origin.reset`),onClick:()=>l({...c,[e]:null})})]})]}),i]});return(0,m.jsx)(iP,{open:!0,onOpenChange:e=>!e&&n(),width:720,title:t.modelId,description:e.name,footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`div`,{className:`mr-auto`,children:(0,m.jsx)(F6,{label:r(`providers.removeModelShort`),icon:(0,m.jsx)(mC,{className:`size-4`}),prompt:r(`providers.removeModel`,{id:t.modelId}),confirmLabel:r(`common.delete`),cancelLabel:r(`common.cancel`),pendingLabel:r(`common.deleting`),doneLabel:r(`common.deleted`),errorLabel:r(`common.error`),retryLabel:r(`common.retry`),onConfirm:async()=>{await o.mutateAsync(t.id),n()}})}),(0,m.jsx)(X,{onClick:n,children:r(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!_,loading:a.isPending,onClick:v,children:r(`common.save`)})]}),children:(0,m.jsxs)(`div`,{className:`flex flex-col gap-6`,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,m.jsx)(o8,{source:t.pricingSource,priceKey:t.priceKey}),t.multiplier!==1&&t.pricingSource!==`provider_override`&&(0,m.jsxs)(Q,{children:[`×`,t.multiplier]})]}),(0,m.jsxs)(tE,{title:r(`providers.linkedModel`),children:[(0,m.jsx)(uP,{className:`w-full`,ariaLabel:r(`providers.linkedModel`),value:u,onChange:d,options:[{value:``,label:r(`providers.noLink`)},...(s.data??[]).map(e=>({value:e.id,label:e.id,detail:e.displayName}))]}),(0,m.jsx)(`p`,{className:`mt-2 text-[11px] text-[var(--text-muted)]`,children:r(`providers.linkedModelHint`)})]}),(0,m.jsx)(tE,{title:r(`providers.overrides`),children:(0,m.jsxs)(`div`,{className:`grid gap-3 sm:grid-cols-3`,children:[y(`displayName`,r(`models.field.displayName`),(0,m.jsx)(UT,{className:`w-full`,"aria-label":r(`models.field.displayName`),placeholder:t.effective.displayName,value:c.displayName??``,onChange:e=>l({...c,displayName:e.target.value||null})})),y(`contextWindow`,r(`models.field.contextWindow`),(0,m.jsx)(GT,{className:`w-full`,label:r(`models.field.contextWindow`),placeholder:String(t.effective.contextWindow??``),value:c.contextWindow,onChange:e=>l({...c,contextWindow:e})})),y(`maxOutputTokens`,r(`models.field.maxOutputTokens`),(0,m.jsx)(GT,{className:`w-full`,label:r(`models.field.maxOutputTokens`),placeholder:String(t.effective.maxOutputTokens??``),value:c.maxOutputTokens,onChange:e=>l({...c,maxOutputTokens:e})}))]})}),(0,m.jsxs)(tE,{title:r(`providers.price`),action:(0,m.jsxs)(`label`,{className:`flex items-center gap-2 text-[12px] text-[var(--text-secondary)]`,children:[r(`providers.customPrice`),(0,m.jsx)(BT,{checked:f,label:r(`providers.customPrice`),onChange:e=>{h(e),e&&c.pricing==null&&l({...c,pricing:t.effectivePricing??{currency:`USD`,unit:`per_1m_tokens`,base:{input:null,output:null}}})}})]}),children:[(0,m.jsx)(`p`,{className:`mb-3 text-[11px] text-[var(--text-muted)]`,children:r(f?`providers.customPriceHint`:`providers.inheritedPriceHint`)}),f?(0,m.jsx)(`div`,{className:`card p-4`,children:(0,m.jsx)(t8,{value:c.pricing??null,onChange:e=>l({...c,pricing:e})})}):t.effectivePricing?(0,m.jsx)(ZT,{maxHeight:220,children:EI(t.effectivePricing)}):(0,m.jsx)(lE,{tone:`warning`,title:r(`pricingSource.none`)})]})]})})}function Cue(e){return{name:e.name,apiKey:``,endpoints:e.endpoints,preferredUpstreamProtocols:e.preferredUpstreamProtocols,authScheme:e.authScheme,extraHeaders:e.extraHeaders,httpProxy:e.httpProxy??null,priceMultiplier:e.priceMultiplier,priceKey:e.priceKey??null,settings:e.settings,enabled:e.enabled,notes:e.notes??null}}function wue({provider:e}){let{t}=K(),{toast:n}=pP(),r=n_(e.id),i=Jg(),a=(0,p.useMemo)(()=>Cue(e),[e]),[o,s]=(0,p.useState)(a),[c,l]=(0,p.useState)(Object.entries(e.extraHeaders)),[u,d]=(0,p.useState)(!1),[f,h]=(0,p.useState)(!1);(0,p.useEffect)(()=>{s(a),l(Object.entries(a.extraHeaders))},[a]);let g=e=>s(t=>({...t,...e})),_={...o,extraHeaders:Object.fromEntries(c.filter(([e])=>e.trim()))},v=JSON.stringify(_)!==JSON.stringify(a),y=()=>{let e={};for(let t of Object.keys(_))t!==`apiKey`&&JSON.stringify(_[t])!==JSON.stringify(a[t])&&(e[t]=_[t]);o.apiKey&&(e.apiKey=o.apiKey),r.mutate(e,{onSuccess:()=>n(t(`common.saved`),`success`),onError:e=>n($(e),`error`)})},b=(e,t)=>g({endpoints:o.endpoints.map((n,r)=>r===e?{...n,...t}:n)});return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(VT,{title:t(`providers.section.basic`),children:[(0,m.jsx)(Z,{label:t(`providers.name`),children:(0,m.jsx)(UT,{className:`w-64`,"aria-label":t(`providers.name`),value:o.name,onChange:e=>g({name:e.target.value})})}),(0,m.jsx)(Z,{label:t(`common.enabled`),children:(0,m.jsx)(BT,{checked:o.enabled,label:t(`common.enabled`),onChange:e=>g({enabled:e})})}),(0,m.jsx)(Z,{label:t(`providers.notes`),children:(0,m.jsx)(UT,{className:`w-64`,"aria-label":t(`providers.notes`),value:o.notes??``,onChange:e=>g({notes:e.target.value||null})})})]}),(0,m.jsxs)(VT,{title:t(`providers.section.auth`),footer:t(`providers.apiKeyStored`),children:[(0,m.jsx)(Z,{label:t(`providers.apiKey`),detail:e.hasApiKey?e.apiKeyMasked??`••••`:t(`providers.noKey`),children:(0,m.jsx)(UT,{type:`password`,autoComplete:`off`,className:`w-64 font-mono`,"aria-label":t(`providers.apiKey`),placeholder:t(`providers.replaceKey`),value:o.apiKey,onChange:e=>g({apiKey:e.target.value})})}),(0,m.jsx)(Z,{label:t(`providers.authScheme`),children:(0,m.jsx)(uP,{className:`w-48`,value:o.authScheme,onChange:e=>g({authScheme:e}),options:Z7})})]}),(0,m.jsx)(due,{provider:e}),e.authScheme!==`oauth-subscription`&&(0,m.jsx)(Ile,{provider:e}),(0,m.jsxs)(VT,{title:t(`providers.section.endpoints`),footer:t(`providers.endpointsFooter`),children:[o.endpoints.map((e,n)=>(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2 px-4 py-3`,children:[(0,m.jsx)(uP,{className:`w-48`,value:e.protocol,onChange:e=>b(n,{protocol:e}),options:X7}),(0,m.jsx)(UT,{className:`min-w-60 flex-1 font-mono`,"aria-label":t(`providers.baseUrl`),value:e.baseUrl,onChange:e=>b(n,{baseUrl:e.target.value})}),(0,m.jsxs)(`label`,{className:`flex items-center gap-2 text-[12px] text-[var(--text-secondary)]`,children:[(0,m.jsx)(BT,{checked:!!e.fullUrl,label:t(`providers.fullUrl`),onChange:e=>b(n,{fullUrl:e})}),t(`providers.fullUrl`)]}),(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(mC,{className:`size-3.5`}),"aria-label":t(`common.delete`),onClick:()=>g({endpoints:o.endpoints.filter((e,t)=>t!==n)})})]},n)),(0,m.jsx)(`div`,{className:`px-4 py-2`,children:(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),onClick:()=>d(!0),children:t(`providers.addEndpoint`)})}),(0,m.jsx)(Z,{label:t(`providers.preferred`),detail:(0,m.jsxs)(m.Fragment,{children:[t(`providers.preferredHint`),o.preferredUpstreamProtocols.filter(e=>!o.endpoints.some(t=>t.protocol===e)).map(e=>(0,m.jsx)(`span`,{className:`mt-1 block text-[var(--warning)]`,children:t(`providers.preferredMissing`,{protocol:X7.find(t=>t.value===e)?.label??e})},e))]}),children:(0,m.jsx)(Q6,{label:t(`providers.preferred`),options:X7.map(e=>{let t=o.preferredUpstreamProtocols.indexOf(e.value);return{value:e.value,label:t>=0?`${t+1}. ${e.label}`:e.label}}),value:o.preferredUpstreamProtocols,onValueChange:e=>{let t=o.preferredUpstreamProtocols.filter(t=>e.includes(t)),n=e.filter(e=>!t.includes(e));g({preferredUpstreamProtocols:[...t,...n]})}})})]}),(0,m.jsxs)(VT,{title:t(`providers.section.billing`),footer:t(`providers.billingFooter`),children:[(0,m.jsx)(Z,{label:t(`providers.priceKey`),detail:t(`providers.priceKeyHint`),children:(0,m.jsx)(uP,{className:`w-56`,value:o.priceKey==null?`inherit`:`price:${o.priceKey}`,onChange:e=>g({priceKey:e===`inherit`?null:e.slice(6)}),options:[{value:`inherit`,label:t(`providers.priceKeyDefault`,{id:e.templateId??`—`})},{value:`price:`,label:t(`providers.priceKeyNone`)},...(i.data??[]).map(e=>({value:`price:${e.priceKey}`,label:e.label,detail:e.priceKey}))]})}),(0,m.jsx)(Z,{label:t(`providers.multiplier`),detail:t(`providers.multiplierHint`),children:(0,m.jsx)(GT,{className:`w-28`,label:t(`providers.multiplier`),step:.01,min:0,value:o.priceMultiplier,onChange:e=>g({priceMultiplier:e??1})})})]}),(0,m.jsxs)(VT,{title:t(`providers.section.advanced`),children:[(0,m.jsx)(Z,{label:t(`providers.proxy`),detail:t(`providers.proxyHint`),children:(0,m.jsx)(UT,{className:`w-64 font-mono`,"aria-label":t(`providers.proxy`),placeholder:`http://127.0.0.1:7890`,value:o.httpProxy??``,onChange:e=>g({httpProxy:e.target.value||null})})}),(0,m.jsxs)(`div`,{className:`px-4 py-3`,children:[(0,m.jsx)(`div`,{className:`mb-2 text-[13px]`,children:t(`providers.headers`)}),c.map(([e,n],r)=>(0,m.jsxs)(`div`,{className:`mb-2 flex gap-2`,children:[(0,m.jsx)(UT,{className:`w-48 font-mono`,"aria-label":t(`providers.headerName`),placeholder:`Header`,value:e,onChange:e=>l(c.map((t,n)=>n===r?[e.target.value,t[1]]:t))}),(0,m.jsx)(UT,{className:`flex-1 font-mono`,"aria-label":t(`providers.headerValue`),placeholder:`value`,value:n,onChange:e=>l(c.map((t,n)=>n===r?[t[0],e.target.value]:t))}),(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(mC,{className:`size-3.5`}),"aria-label":t(`common.delete`),onClick:()=>l(c.filter((e,t)=>t!==r))})]},r)),(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),onClick:()=>h(!0),children:t(`providers.addHeader`)})]}),Object.keys(e.settings).length>0&&(0,m.jsx)(`div`,{className:`px-4 py-3`,children:(0,m.jsx)(WT,{label:t(`providers.adapterSettings`),rows:4,className:`w-full font-mono`,defaultValue:EI(o.settings),onBlur:e=>{try{g({settings:JSON.parse(e.target.value)})}catch{n(t(`common.invalidJson`),`error`)}}})})]}),(0,m.jsx)(VT,{title:t(`providers.section.info`),children:(0,m.jsxs)(`div`,{className:`px-4 py-3`,children:[(0,m.jsx)(XT,{label:`ID`,children:e.id}),e.adapterId&&(0,m.jsx)(XT,{label:t(`providers.adapter`),children:e.adapterId}),(0,m.jsx)(XT,{label:t(`providers.boundClients`),children:e.boundClients.map(e=>a3[e]?.name??e).join(`, `)||`—`})]})}),(0,m.jsx)(Tue,{open:u,onOpenChange:d,onAdd:e=>g({endpoints:[...o.endpoints,e]})}),(0,m.jsx)(Eue,{open:f,onOpenChange:h,onAdd:e=>l([...c.filter(([t])=>t.toLowerCase()!==e[0].toLowerCase()),e])}),(0,m.jsx)(`div`,{className:`sticky bottom-2 flex justify-end`,children:v&&(0,m.jsxs)(`div`,{className:`glass flex items-center gap-2 rounded-full p-1 pl-4 text-[12px]`,children:[(0,m.jsx)(`span`,{className:`text-[var(--text-secondary)]`,children:t(`common.unsaved`)}),(0,m.jsx)(X,{size:`sm`,onClick:()=>{s(a),l(Object.entries(a.extraHeaders))},children:t(`common.revert`)}),(0,m.jsx)(X,{size:`sm`,variant:`primary`,loading:r.isPending,onClick:y,children:t(`common.save`)})]})})]})}function Tue({open:e,onOpenChange:t,onAdd:n}){let{t:r}=K(),[i,a]=(0,p.useState)(`openai-chat`),[o,s]=(0,p.useState)(``),[c,l]=(0,p.useState)(!1);(0,p.useEffect)(()=>{e&&(s(``),l(!1))},[e]);let u=/^https?:\/\/\S+$/.test(o.trim());return(0,m.jsx)(iP,{open:e,onOpenChange:t,title:r(`providers.addEndpoint`),description:r(`providers.addEndpointDetail`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:()=>t(!1),children:r(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!u,onClick:()=>{n({protocol:i,baseUrl:o.trim(),...c?{fullUrl:!0}:{}}),t(!1)},children:r(`common.add`)})]}),children:(0,m.jsxs)(`div`,{className:`grid gap-3`,children:[(0,m.jsx)(LT,{label:r(`providers.protocol`),children:(0,m.jsx)(uP,{value:i,onChange:a,options:X7})}),(0,m.jsx)(LT,{label:r(`providers.baseUrl`),hint:r(c?`providers.fullUrlHint`:`providers.baseUrlHint`),children:(0,m.jsx)(UT,{autoFocus:!0,className:`font-mono`,placeholder:`https://api.example.com/v1`,value:o,invalid:o!==``&&!u,onChange:e=>s(e.target.value)})}),(0,m.jsxs)(`label`,{className:`flex items-center gap-2 text-[12px] text-[var(--text-secondary)]`,children:[(0,m.jsx)(BT,{checked:c,onChange:l,label:r(`providers.fullUrl`)}),r(`providers.fullUrl`)]})]})})}function Eue({open:e,onOpenChange:t,onAdd:n}){let{t:r}=K(),[i,a]=(0,p.useState)(``),[o,s]=(0,p.useState)(``);(0,p.useEffect)(()=>{e&&(a(``),s(``))},[e]);let c=/^[A-Za-z0-9-]+$/.test(i.trim());return(0,m.jsx)(iP,{open:e,onOpenChange:t,title:r(`providers.addHeader`),description:r(`providers.addHeaderDetail`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:()=>t(!1),children:r(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!c,onClick:()=>{n([i.trim(),o]),t(!1)},children:r(`common.add`)})]}),children:(0,m.jsxs)(`div`,{className:`grid gap-3`,children:[(0,m.jsx)(LT,{label:r(`providers.headerName`),children:(0,m.jsx)(UT,{autoFocus:!0,className:`font-mono`,placeholder:`X-Custom-Header`,value:i,invalid:i!==``&&!c,onChange:e=>a(e.target.value)})}),(0,m.jsx)(LT,{label:r(`providers.headerValue`),children:(0,m.jsx)(UT,{className:`font-mono`,value:o,onChange:e=>s(e.target.value)})})]})})}var d9={field:`_field_bhhp1_1`,head:`_head_bhhp1_6`,label:`_label_bhhp1_7`,limit:`_limit_bhhp1_9`,control:`_control_bhhp1_14`,step:`_step_bhhp1_22`,icon:`_icon_bhhp1_23`,valueWrap:`_valueWrap_bhhp1_34`,value:`_value_bhhp1_34`,affix:`_affix_bhhp1_38`,char:`_char_bhhp1_39`,number:`_number_bhhp1_42`,display:`_display_bhhp1_43`,mirror:`_mirror_bhhp1_45`,input:`_input_bhhp1_46`,column:`_column_bhhp1_52`,sizer:`_sizer_bhhp1_53`,glyph:`_glyph_bhhp1_54`,symbol:`_symbol_bhhp1_55`,messageSlot:`_messageSlot_bhhp1_57`,hint:`_hint_bhhp1_58`,words:`_words_bhhp1_60`,wordSlot:`_wordSlot_bhhp1_61`,wordSizer:`_wordSizer_bhhp1_62`,word:`_word_bhhp1_60`,srOnly:`_srOnly_bhhp1_64`},{spring:f9,duration:p9,blur:m9}=Y,h9=[...Y.ease.enter],g9=[...Y.ease.standard],Due=[0,1,2,3,4,5,6,7,8,9],_9=6,Oue=400,kue=40,Aue=240,jue=1500,Mue=700,Nue=700,Pue=.22,Fue=4,Iue=130,Lue=(()=>{let e=2*Math.PI/(f9.morph.visualDuration*1.2);return{type:`spring`,stiffness:e*e,damping:2*(1-f9.morph.bounce)*e}})(),v9=e=>(String(e).split(`.`)[1]??``).length,y9=e=>e.replace(/[.*+?^${}()|[\]\\-]/g,`\\$&`),b9=(e,t)=>typeof e==`function`?e(t):e??``,Rue=(e,t=10)=>Math.sign(e)*(1-1/(Math.abs(e)*.55/t+1))*t;function zue(e,t){let n=t.formatToParts(e),r=n.reduce((e,t)=>e+(t.type===`integer`?t.value.length:0),0),i=0;return n.flatMap((e,t)=>e.type===`integer`?[...e.value].map(e=>({key:`i${--r}`,digit:Number(e)})):e.type===`fraction`?[...e.value].map(e=>({key:`f${i++}`,digit:Number(e)})):[{key:e.type===`group`?`g${r}`:e.type===`decimal`?`d`:e.type===`minusSign`?`m`:`${e.type}${t}`,text:e.value}])}var x9={enter:e=>({width:0,scale:.6,opacity:0,y:`${e*.3}em`,filter:`blur(${m9.soft}px)`}),center:{width:`auto`,scale:1,opacity:1,y:0,filter:`blur(0px)`,transitionEnd:{filter:`none`},transition:{width:f9.morph,scale:f9.morph,opacity:f9.morph,y:f9.snappy,filter:{duration:.3,ease:g9}}},exit:e=>({width:0,scale:.6,opacity:0,y:`${e*-.3}em`,filter:`blur(${m9.subtle}px)`,transition:{width:f9.smooth,scale:f9.smooth,y:{duration:p9.fast,ease:g9},opacity:{duration:p9.instant},filter:{duration:p9.instant}}})},S9=e=>({width:`auto`,scale:1,opacity:e,y:0,filter:`none`}),C9={enter:S9(0),center:{...S9(1),transition:{duration:p9.instant}},exit:{width:0,opacity:0,transition:{duration:0}}},Bue={enter:S9(1),center:{...S9(1),transition:{duration:0}},exit:{width:0,opacity:0,transition:{duration:0}}};function Vue({position:e,digit:t}){let n=e=>((t-e)%10+15)%10-5,r=Jf(e,e=>`${n(e)*1.05}em`),i=Jf(e,e=>Math.max(0,1-Math.abs(n(e))**1.5*1.1)),a=Jf(e,e=>Math.abs(n(e))>=1?`hidden`:`visible`),o=Jf(e,e=>{let t=Math.abs(n(e));return t<.02||t>=1?`none`:`blur(${(t*m9.soft*.75).toFixed(2)}px)`});return(0,m.jsx)(H.span,{className:d9.glyph,style:{y:r,opacity:i,filter:o,visibility:a},children:t})}function Hue({digit:e,direction:t,instant:n}){let r=Zf(),i=Gf(e),a=(0,p.useRef)({digit:e,target:e});return(0,p.useLayoutEffect)(()=>{let o=a.current;if(o.digit===e)return;let s=t>0?(e-o.digit+10)%10:-((o.digit-e+10)%10);Math.abs(s)>5&&(s-=Math.sign(s)*10),o.target+=s,o.digit=e,n||r?i.jump(o.target):bp(i,o.target,f9.snappy)},[e,t,n,i,r]),(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:d9.sizer,children:`0`}),Due.map(e=>(0,m.jsx)(Vue,{position:i,digit:e},e))]})}function Uue({value:e,format:t,direction:n,instant:r}){let i=Zf(),a=r?Bue:i?C9:x9;return(0,m.jsx)(V,{initial:!1,custom:n,children:zue(e,t).map(e=>(0,m.jsx)(H.span,{className:`digit`in e?d9.column:d9.symbol,custom:n,variants:a,initial:`enter`,animate:`center`,exit:`exit`,children:`digit`in e?(0,m.jsx)(Hue,{digit:e.digit,direction:n,instant:r}):e.text},e.key))})}function w9({text:e,direction:t,className:n}){let r=Zf();return(0,m.jsx)(`span`,{className:n,children:(0,m.jsx)(V,{initial:!1,custom:t,children:[...e].map((e,n)=>(0,m.jsx)(H.span,{className:d9.char,custom:t,variants:r?C9:x9,initial:`enter`,animate:`center`,exit:`exit`,children:e},`${n}:${e}`))})})}var T9=e=>{let t=e?.replace(/[^\d.-]/g,``);return t&&/\d/.test(t)&&Number.isFinite(Number(t))?Number(t):null},E9=(e,t)=>{let n=e.split(` `);return t.split(` `).map((e,t)=>{let r=T9(n[t]),i=T9(e);return r!==null&&i!==null&&i<r?-1:1})},Wue={enter:e=>({opacity:0,y:`${e*.3}em`,filter:`blur(${m9.soft}px)`}),center:{opacity:1,y:0,filter:`blur(0px)`,transitionEnd:{filter:`none`},transition:{duration:.22,ease:h9,opacity:f9.morph}},exit:e=>({opacity:0,y:`${e*-.3}em`,filter:`blur(${m9.subtle}px)`,transition:{duration:.14,ease:g9}})},Gue={enter:{opacity:0,y:0,filter:`none`},center:{opacity:1,y:0,filter:`none`,transition:{duration:p9.instant}},exit:{opacity:0,transition:{duration:0}}};function Kue({word:e,direction:t}){let n=Zf(),r=(0,p.useRef)(null),i=Gf(`auto`),a=(0,p.useRef)(!1);return(0,p.useLayoutEffect)(()=>{let e=r.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(()=>{!a.current||n?i.jump(e.offsetWidth):bp(i,e.offsetWidth,f9.morph),a.current=!0});return t.observe(e),()=>t.disconnect()},[n,i]),(0,m.jsxs)(H.span,{className:d9.wordSlot,style:{width:i},children:[(0,m.jsx)(`span`,{ref:r,className:d9.wordSizer,children:e}),(0,m.jsx)(V,{initial:!1,mode:`popLayout`,custom:t,children:(0,m.jsx)(H.span,{className:d9.word,custom:t,variants:n?Gue:Wue,initial:`enter`,animate:`center`,exit:`exit`,children:e},e)})]})}function que({text:e}){let[t,n]=(0,p.useState)({text:e,directions:[]});t.text!==e&&n({text:e,directions:E9(t.text,e)});let r=t.text===e?t.directions:E9(t.text,e),i=e.split(` `);return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:d9.srOnly,children:e}),(0,m.jsx)(`span`,{className:d9.words,"aria-hidden":`true`,children:i.map((e,t)=>(0,m.jsxs)(p.Fragment,{children:[t>0&&` `,(0,m.jsx)(Kue,{word:e,direction:r[t]??1})]},t))})]})}function Jue({id:e,text:t,className:n}){return(0,m.jsx)(V,{initial:!1,children:t?(0,m.jsx)(Yue,{id:e,text:t,className:n},`message`):null})}function Yue({id:e,text:t,className:n}){let r=Zf(),i=(0,p.useRef)(null),[a,o]=(0,p.useState)(`auto`);return(0,p.useLayoutEffect)(()=>{let e=i.current;if(!e||typeof ResizeObserver>`u`)return;let t=new ResizeObserver(([t])=>o(t.borderBoxSize?.[0]?.blockSize??e.offsetHeight));return t.observe(e),()=>t.disconnect()},[]),(0,m.jsx)(H.span,{className:d9.messageSlot,initial:{height:0,opacity:0},animate:{height:a,opacity:1},exit:{height:0,opacity:0,transition:r?{duration:0}:{height:f9.smooth,opacity:{duration:p9.instant}}},transition:r?{duration:0}:{height:f9.smooth,opacity:{duration:p9.fast}},children:(0,m.jsx)(H.span,{ref:i,id:e,className:n,initial:!r&&{y:`0.35em`,filter:`blur(${m9.soft}px)`},animate:{y:0,filter:`blur(0px)`},transition:{duration:r?0:p9.standard,ease:h9},children:(0,m.jsx)(que,{text:t})})})}function Xue({id:e,edge:t,text:n}){let r=Zf();return(0,m.jsx)(V,{initial:!1,children:t!==0&&(0,m.jsx)(H.span,{id:e,className:d9.limit,initial:r?{opacity:0}:{opacity:0,y:`${t*.45}em`,filter:`blur(${m9.subtle}px)`},animate:{opacity:1,y:0,filter:`blur(0px)`,transitionEnd:{filter:`none`}},exit:{opacity:0,transition:{duration:r?p9.instant:p9.standard,ease:g9}},transition:r?{duration:p9.instant}:{y:f9.snappy,opacity:{duration:p9.fast},filter:{duration:p9.fast}},children:n},`limit`)})}function D9({toward:e,label:t,disabled:n,controls:r,limit:i,pressed:a,iconRef:o,onPress:s,onRelease:c,onActivate:l}){let u=e>0?IS:wS;return(0,m.jsx)(`button`,{type:`button`,className:d9.step,disabled:n,"aria-controls":r,"aria-label":`${e>0?`Increase`:`Decrease`} ${t}`,"aria-disabled":i||void 0,"data-pressed":a||void 0,onPointerDown:e=>{e.button===0&&s()},onPointerUp:c,onPointerLeave:c,onPointerCancel:c,onMouseDown:e=>e.preventDefault(),onClick:e=>{e.detail===0&&l()},onContextMenu:e=>e.preventDefault(),children:(0,m.jsx)(`span`,{ref:o,className:d9.icon,children:(0,m.jsx)(u,{size:16,strokeWidth:1.75,"aria-hidden":`true`})})})}function Zue({label:e,value:t,defaultValue:n=0,onValueChange:r,min:i=0,max:a=2**53-1,step:o=1,largeStep:s,description:c,disabled:l,id:u,prefix:d,suffix:f,scrub:h=!1,locale:g=`en-US`,formatOptions:_,size:v=`md`,limitHint:y=!0}){let b=Zf(),x=(0,p.useId)(),S=u??x,C=c?`${S}-description`:void 0,w=`${S}-limit`,T=o>0?o:1,[E,D]=(0,p.useState)(n),O=t??E,[k,A]=(0,p.useState)(``),[j,M]=(0,p.useState)(!1),[N,P]=(0,p.useState)(0),[F,I]=(0,p.useState)(!1),[L,R]=(0,p.useState)(``),[ee,te]=(0,p.useState)(0),[ne,re]=(0,p.useState)(!1),ie=(0,p.useRef)(null),ae=(0,p.useRef)(null),oe=(0,p.useRef)(null),se=(0,p.useRef)(void 0),ce=(0,p.useRef)(void 0),le=(0,p.useRef)(void 0),z=(0,p.useRef)({edge:0,count:0,at:0}),ue=(0,p.useRef)(null),de=(0,p.useRef)(null),fe=(0,p.useRef)(O),pe=(0,p.useRef)(O),me=(0,p.useRef)(void 0),he=(0,p.useRef)(null),ge=(0,p.useRef)(!1),_e=(0,p.useRef)(null),ve=(0,p.useRef)(!1),ye=(0,p.useRef)(()=>!1),be=Gf(0),xe=Gf(0),Se=Gf(0),Ce=Jf(()=>xe.get()+Se.get()),we=Number.isFinite(i)?i:0,Te=Math.max(v9(T),v9(we)),Ee=_?.minimumFractionDigits??Te,De=Math.max(Ee,_?.maximumFractionDigits??Te),Oe=_?.useGrouping??!0,ke=(0,p.useMemo)(()=>new Intl.NumberFormat(g,{minimumFractionDigits:Ee,maximumFractionDigits:De,useGrouping:Oe,numberingSystem:`latn`}),[g,Ee,De,Oe]),Ae=(0,p.useMemo)(()=>{let e=new Intl.NumberFormat(g).formatToParts(-1234.5);return{group:e.find(e=>e.type===`group`)?.value??`,`,decimal:e.find(e=>e.type===`decimal`)?.value??`.`}},[g]),je=e=>Number(e.toFixed(Te))||0,Me=e=>Math.min(a,Math.max(i,e)),Ne=e=>je(we+Math.round((e-we)/T)*T),Pe=(e,t)=>{let n=(e-we)/T;return je(we+((t>0?Math.floor(n+1e-7):Math.ceil(n-1e-7))+t)*T)},Fe=e=>`${b9(d,e)}${ke.format(e)}${b9(f,e)}`.trim();function Ie(e){let t=e.split(Ae.group).join(``).replace(Ae.decimal,`.`).replace(/[^\d.-]/g,``);if(!/\d/.test(t))return null;let n=Number(t);return Number.isFinite(n)?n:null}let Le=j?Ie(k):null,Re=Le??O,[ze,Be]=(0,p.useState)({value:Re,direction:1});ze.value!==Re&&Be({value:Re,direction:Re>ze.value?1:-1});let Ve=ze.value===Re?ze.direction:Re>ze.value?1:-1;(0,p.useEffect)(()=>()=>{window.clearTimeout(me.current),window.clearTimeout(se.current),window.clearTimeout(ce.current),window.clearTimeout(le.current)},[]);function He(e,t){let n=performance.now(),r=z.current;r.count=r.edge===e&&n-r.at<Nue?r.count+1:1,r.edge=e,r.at=n;let i=ie.current;if(i&&(i.dataset.strain=e>0?`max`:`min`,window.clearTimeout(le.current),le.current=window.setTimeout(()=>{delete i.dataset.strain},420)),!b){bp(be,0,{...Lue,velocity:-e*Iue*(1+Math.min(r.count-1,Fue)*Pue)});let n=(e>0?oe:ae).current;n&&(t===`button`||t===`key`)&&bp(n,{x:[0,-2.5,2.5,-1.5,1,0]},{duration:.32,ease:`easeOut`})}y&&(te(e),window.clearTimeout(se.current),se.current=window.setTimeout(()=>te(0),jue))}function Ue(e,n){if(!Number.isFinite(e))return!1;let i=Me(e),a=Math.sign(e-i);return a&&n!==`scrub`?(He(a>0?1:-1,n),R(`${Fe(i)}, ${a>0?`maximum`:`minimum`}`)):n===`button`&&i!==fe.current&&R(Fe(i)),i!==fe.current&&(fe.current=i,t===void 0&&D(i),r?.(i),!0)}let We=(e,t,n)=>Ue(Pe(fe.current,e*t),n);(0,p.useLayoutEffect)(()=>{fe.current=O,ye.current=We});function Ge(){let e=de.current;e&&_e.current===null&&(_e.current=e.getBoundingClientRect().left-xe.get()-Se.get())}(0,p.useLayoutEffect)(()=>{let e=_e.current,t=de.current;if(_e.current=null,ve.current){ve.current=!1;let e=ue.current;if(e&&document.activeElement===e){let t=e.value.length;e.setSelectionRange(t,t)}}if(e===null||!t)return;let n=e-(t.getBoundingClientRect().left-xe.get()-Se.get());Math.abs(n)<.5||(Se.set(Se.get()+n),b?Se.jump(0):bp(Se,0,f9.morph))});function Ke(){window.clearTimeout(ce.current),re(!1)}function qe(){if(!j)return;Ge(),M(!1),Ke();let e=Ie(k);e!==null&&Ue(Ne(e),`type`)}function Je(){window.clearTimeout(me.current),me.current=void 0,P(0)}function Ye(e,t,n){Je(),qe();let r=Math.max(1,Math.round(t/T));n===`button`&&P(e);let i=0,a=()=>{let t=ye.current(e,r,n);me.current=window.setTimeout(a,t?Math.max(kue,150*.86**++i):Aue)};me.current=window.setTimeout(a,We(e,r,n)?Oue:360)}function Xe(e){let t=s??T*10,n={ArrowUp:[1,e.shiftKey?t:T],ArrowDown:[-1,e.shiftKey?t:T],PageUp:[1,t],PageDown:[-1,t]}[e.key];if(n){e.preventDefault(),e.repeat||Ye(n[0],n[1],`key`);return}if(!j&&(e.key===`Home`&&Number.isFinite(i)||e.key===`End`&&a<2**53-1)){e.preventDefault(),Ue(e.key===`Home`?i:a,`key`);return}e.key===`Enter`&&(e.preventDefault(),j?(ve.current=!0,qe()):e.currentTarget.select()),e.key===`Escape`&&j&&(e.preventDefault(),Ge(),M(!1),Ke(),ve.current=!0,Ue(pe.current,`type`))}function Ze(e){let t=RegExp(`[^0-9${y9(Ae.group)}${Te||De?y9(Ae.decimal):``}${i<0?`\\-`:``}]`,`g`),n=e.replace(t,``);j||(pe.current=O),Ge(),A(n),M(!0);let r=Ie(n);r!==null&&r>=i&&r<=a&&Ne(r)===r&&Ue(r,`type`),Ke(),r!==null&&r<i&&(ce.current=window.setTimeout(()=>re(!0),Mue))}function Qe(e){ge.current=!1,h&&!l&&e.button===0&&(qe(),he.current={pointer:e.pointerId,x:e.clientX,from:fe.current,active:!1},e.currentTarget.setPointerCapture(e.pointerId))}function $e(e){let t=he.current;if(!t||t.pointer!==e.pointerId)return;let n=e.clientX-t.x;if(!t.active){if(Math.abs(n)<3)return;t.active=!0,I(!0)}let r=n/_9,o=Math.trunc(r);Ue(o?Pe(t.from,o):t.from,`scrub`);let s=t.from+r*T,c=s>a?(s-a)/T*_9:s<i?(s-i)/T*_9:0;xe.set(b?0:Rue(c))}function et(e){let t=he.current;t&&t.pointer===e.pointerId&&(he.current=null,t.active&&(ge.current=!0,I(!1),bp(xe,0,b?{duration:0}:f9.snappy),R(Fe(fe.current))))}let tt=t=>({toward:t,label:e,disabled:l,controls:S,limit:t>0?Re>=a:Re<=i,pressed:N===t}),nt=Le===null?0:Le>a?1:Le<i&&ne?-1:0,rt=y?nt||ee:0,it=rt>0?a:i,at=rt?typeof y==`function`?y(rt>0?`max`:`min`,it):`${rt>0?`Max`:`Min`} ${Fe(it)}`:``,ot=[C,nt&&y?w:void 0].filter(Boolean).join(` `)||void 0;return(0,m.jsxs)(`div`,{className:d9.field,"data-size":v,children:[(0,m.jsxs)(`div`,{className:d9.head,children:[(0,m.jsx)(`label`,{htmlFor:S,className:d9.label,"data-scrub":h&&!l||void 0,onPointerDown:Qe,onPointerMove:$e,onPointerUp:et,onPointerCancel:et,onClick:e=>{ge.current&&=(e.preventDefault(),!1)},children:e}),(0,m.jsx)(Xue,{id:w,edge:rt,text:at})]}),(0,m.jsxs)(`div`,{ref:ie,className:d9.control,"data-scrubbing":F||void 0,"data-disabled":l||void 0,"data-warn":nt?nt>0?`max`:`min`:void 0,children:[(0,m.jsx)(D9,{...tt(-1),iconRef:ae,onPress:()=>Ye(-1,T,`button`),onRelease:Je,onActivate:()=>{qe(),We(-1,1,`button`)}}),(0,m.jsx)(`div`,{className:d9.valueWrap,onMouseDown:e=>{e.target!==ue.current&&e.preventDefault()},onClick:e=>{!l&&e.target!==ue.current&&(ue.current?.focus(),ue.current?.select())},children:(0,m.jsxs)(H.span,{ref:de,className:d9.value,style:{x:Ce,y:be},children:[(0,m.jsx)(w9,{text:b9(d,Re),direction:Ve,className:d9.affix}),(0,m.jsxs)(`span`,{className:d9.number,children:[(0,m.jsx)(`span`,{className:d9.display,"data-hidden":j||void 0,"aria-hidden":`true`,children:(0,m.jsx)(Uue,{value:Re,format:ke,direction:Ve,instant:j})}),j&&(0,m.jsx)(`span`,{className:d9.mirror,"aria-hidden":`true`,children:k}),(0,m.jsx)(`input`,{ref:ue,id:S,className:d9.input,type:`text`,role:`spinbutton`,inputMode:i<0?`text`:Te||De?`decimal`:`numeric`,autoComplete:`off`,spellCheck:!1,value:j?k:ke.format(O),disabled:l,"aria-describedby":ot,"aria-invalid":nt?!0:void 0,"aria-valuenow":O,"aria-valuetext":Fe(O),"aria-valuemin":Number.isFinite(i)?i:void 0,"aria-valuemax":a<2**53-1?a:void 0,onChange:e=>Ze(e.currentTarget.value),onKeyDown:Xe,onKeyUp:e=>{/^(Arrow(Up|Down)|Page(Up|Down))$/.test(e.key)&&Je()},onBlur:()=>{Je(),qe()}})]}),(0,m.jsx)(w9,{text:b9(f,Re),direction:Ve,className:d9.affix})]})}),(0,m.jsx)(D9,{...tt(1),iconRef:oe,onPress:()=>Ye(1,T,`button`),onRelease:Je,onActivate:()=>{qe(),We(1,1,`button`)}})]}),(0,m.jsx)(Jue,{id:C,text:c,className:d9.hint}),(0,m.jsx)(`span`,{className:d9.srOnly,"aria-live":`polite`,"aria-atomic":`true`,children:L})]})}var Que={green:`var(--success)`,orange:`var(--warning)`,red:`var(--danger)`},O9=(0,p.forwardRef)(function({prefs:e,state:t,data:n,onCommand:r,onRefresh:i,onCopyAddress:a,onSwitchClient:o,preview:s,tab:c,onTabChange:l,className:u},d){let{t:f}=K(),[h,g]=(0,p.useState)(`overview`),_=t.activity!==null,v=t.running&&!_,y=e=>r?.(e),b=[`overview`];e.sections.quota&&(n.plans.length>0||n.hasSubscriptions)&&b.push(`quota`),e.sections.clients&&n.clients.some(e=>e.enabled)&&b.push(`clients`);let x=c??h,S=b.includes(x)?x:`overview`,C=e=>{g(e),l?.(e)},w=(t.running||_)&&b.length>1,T=n.settings?.gatewayBaseUrl.replace(/^https?:\/\//,``)??(t.port?`127.0.0.1:${t.port}`:``),E=t.activity?f(`tray.status.${t.activity}`):t.running?f(`tray.status.running`):f(`tray.status.stopped`);return(0,m.jsxs)(`div`,{ref:d,className:Cv(`chrome flex max-h-full flex-col overflow-hidden rounded-[14px] border border-[var(--border-strong)] bg-[var(--surface-raised)] text-[13px] text-[var(--foreground)]`,u),children:[(0,m.jsxs)(`header`,{"data-tray-part":`header`,className:`shrink-0 border-b border-[var(--border)] px-4 pt-3.5 pb-3`,children:[(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(JT,{tone:_?`orange`:t.running?`green`:`red`}),(0,m.jsx)(`span`,{className:`min-w-0 flex-1 truncate text-[14px] font-semibold`,children:E}),(0,m.jsx)(k9,{label:f(`tray.copyAddress`),onClick:a,disabled:!T,children:(0,m.jsx)(Jx,{className:`size-4`})}),(0,m.jsx)(k9,{label:f(`tray.settings`),onClick:()=>y(`open-settings`),children:(0,m.jsx)(XS,{className:`size-4`})}),(0,m.jsx)(k9,{label:f(`tray.more`),onClick:()=>y(`menu`),children:(0,m.jsx)(Qx,{className:`size-4`})}),!s&&(0,m.jsx)(k9,{label:f(`common.close`),onClick:()=>y(`hide`),children:(0,m.jsx)(vC,{className:`size-4`})})]}),T&&(0,m.jsx)(`div`,{className:`selectable mt-0.5 truncate pl-4 font-mono text-[12px] text-[var(--text-secondary)]`,children:T}),(t.apiVersionMismatch||t.updateAvailable)&&(0,m.jsxs)(`div`,{className:`mt-2 flex flex-wrap gap-1.5 pl-4`,children:[t.apiVersionMismatch&&(0,m.jsxs)(A9,{tone:`orange`,children:[(0,m.jsx)(gC,{className:`size-3`}),f(`tray.mismatch`)]}),t.updateAvailable&&(0,m.jsx)(`button`,{type:`button`,onClick:()=>y(`check-updates`),className:`cursor-default`,children:(0,m.jsx)(A9,{tone:`accent`,children:f(`tray.update`)})})]})]}),(0,m.jsx)(`div`,{"data-tray-part":`tabs`,className:`shrink-0`,children:w&&(0,m.jsx)($ue,{tabs:b,active:S,onChange:C})}),(0,m.jsx)(`div`,{className:`scroll min-h-0 flex-1 overflow-y-auto`,children:(0,m.jsx)(`div`,{"data-tray-part":`body`,className:`flex flex-col gap-3 px-4 py-3.5`,children:!t.running&&!_?(0,m.jsx)(tde,{onStart:()=>y(`start`)}):(0,m.jsxs)(m.Fragment,{children:[S===`overview`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(ede,{prefs:e,data:n,onViewQuota:()=>C(`quota`)}),(0,m.jsx)(rde,{prefs:e,data:n,onRefresh:i}),e.sections.quota&&(0,m.jsx)(ade,{data:n,onViewAll:()=>C(`quota`)})]}),S===`quota`&&(0,m.jsx)(ode,{data:n,plain:!0}),S===`clients`&&(0,m.jsx)(cde,{data:n,disabled:!v,onSwitch:o,plain:!0})]})})}),(0,m.jsxs)(`footer`,{"data-tray-part":`footer`,className:`flex shrink-0 items-center gap-1 border-t border-[var(--border)] px-3 py-2.5`,children:[t.running?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(k9,{label:f(`tray.restart`),onClick:()=>y(`restart`),disabled:_,children:(0,m.jsx)(HS,{className:`size-4`})}),(0,m.jsx)(k9,{label:f(`tray.stop`),onClick:()=>y(`stop`),disabled:_,children:(0,m.jsx)(dte,{className:`size-4`})})]}):(0,m.jsx)(k9,{label:f(`shell.startService`),onClick:()=>y(`start`),disabled:_,children:(0,m.jsx)(PS,{className:`size-4`})}),(0,m.jsx)(`div`,{className:`flex-1`}),(0,m.jsx)(`button`,{type:`button`,onClick:()=>y(`quit`),className:`h-8 cursor-default rounded-[8px] px-2.5 text-[13px] text-[var(--text-secondary)] transition-colors hover:bg-[var(--surface-muted)] hover:text-[var(--foreground)]`,children:f(`tray.quit`)}),(0,m.jsxs)(`button`,{type:`button`,onClick:()=>y(`open`),className:`inline-flex h-8 cursor-default items-center gap-1.5 rounded-[8px] border border-[var(--border-strong)] px-3 text-[13px] font-medium transition-colors hover:bg-[var(--surface-muted)]`,children:[f(`tray.open`),(0,m.jsx)(Sx,{className:`size-3.5`})]})]})]})});function k9({label:e,onClick:t,disabled:n,children:r}){return(0,m.jsx)(`button`,{type:`button`,title:e,"aria-label":e,disabled:n,onClick:t,className:`inline-flex size-8 shrink-0 cursor-default items-center justify-center rounded-[8px] text-[var(--text-secondary)] transition-colors hover:bg-[var(--surface-muted)] hover:text-[var(--foreground)] disabled:opacity-40 disabled:hover:bg-transparent`,children:r})}function A9({tone:e,children:t,title:n}){let r={red:`var(--danger)`,orange:`var(--warning)`,accent:`var(--accent)`,neutral:`var(--text-secondary)`}[e];return(0,m.jsx)(`span`,{title:n,className:`inline-flex max-w-full items-center gap-1 rounded-[6px] border px-1.5 py-px text-[11.5px] leading-[18px] whitespace-nowrap`,style:{color:r,borderColor:`color-mix(in oklab, ${r} 45%, transparent)`,background:`color-mix(in oklab, ${r} 10%, transparent)`},children:t})}function $ue({tabs:e,active:t,onChange:n}){let{t:r}=K(),i={overview:r(`tray.tab.overview`),quota:r(`tray.tab.quota`),clients:r(`tray.clients`)};return(0,m.jsx)(`div`,{role:`tablist`,className:`flex gap-1 px-3 pt-2.5`,children:e.map(e=>(0,m.jsx)(`button`,{type:`button`,role:`tab`,"aria-selected":e===t,onClick:()=>n(e),className:Cv(`h-7 cursor-default rounded-[7px] px-2.5 text-[12.5px] transition-colors`,e===t?`bg-[var(--surface-muted)] font-medium text-[var(--foreground)]`:`text-[var(--text-secondary)] hover:text-[var(--foreground)]`),children:i[e]},e))})}function j9({tone:e,onClick:t,children:n}){let r=e===`red`?`var(--danger)`:`var(--warning)`,i={color:r,borderColor:`color-mix(in oklab, ${r} 45%, transparent)`,background:`color-mix(in oklab, ${r} 10%, transparent)`},a=`flex w-full items-center gap-1.5 rounded-[8px] border px-2.5 py-1.5 text-left text-[12.5px]`,o=(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(gC,{className:`size-3.5 shrink-0`}),(0,m.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:n})]});return t?(0,m.jsxs)(`button`,{type:`button`,onClick:t,className:Cv(a,`cursor-default`),style:i,children:[o,(0,m.jsx)(Ix,{className:`size-3.5 shrink-0`})]}):(0,m.jsx)(`div`,{className:a,style:i,children:o})}function ede({prefs:e,data:t,onViewQuota:n}){let{t:r,locale:i}=K(),a=t.summary,o=e.sections.overview&&a?D7(a):0,s=e.sections.quota?M7(t.plans):null,c=s&&s.row.remaining<30?s:null;return!a||o===0&&!c?null:(0,m.jsxs)(`div`,{className:`flex flex-col gap-1.5`,children:[o>0&&(0,m.jsx)(j9,{tone:`red`,children:r(`tray.alert.failures`,{count:o,share:bI(o/a.requests)})}),c&&(0,m.jsx)(j9,{tone:c.row.remaining<10?`red`:`orange`,onClick:n,children:r(`tray.alert.quota`,{plan:c.plan.providerName,window:P9(c.row,r,i),remaining:`${Math.round(c.row.remaining)}%`})})]})}function tde({onStart:e}){let{t}=K();return(0,m.jsxs)(`div`,{className:`flex flex-col items-center gap-2 py-6 text-center`,children:[(0,m.jsx)(`div`,{className:`text-[13px] font-medium`,children:t(`tray.status.stopped`)}),(0,m.jsx)(`div`,{className:`max-w-[260px] text-[12px] text-[var(--text-secondary)]`,children:t(`tray.stoppedHint`)}),(0,m.jsxs)(`button`,{type:`button`,onClick:e,className:`mt-1 inline-flex h-8 cursor-default items-center gap-1.5 rounded-[8px] bg-[var(--accent)] px-3 text-[13px] font-medium text-[var(--on-accent)]`,children:[(0,m.jsx)(PS,{className:`size-3.5`}),t(`shell.startService`)]})]})}function nde(e=3e4){let[t,n]=(0,p.useState)(()=>Date.now());return(0,p.useEffect)(()=>{let t=setInterval(()=>n(Date.now()),e);return()=>clearInterval(t)},[e]),t}function rde({prefs:e,data:t,onRefresh:n}){let{t:r,locale:i}=K(),a=nde(),o=t.summary,s=e.sections,c=s.overview||s.cost,l=o?o.inputTokens+o.outputTokens:0,u=F7(t.updatedAt,i,r(`tray.justNow`),a),d=s.topModel?Cle(t.top,l):null,f=s.cacheHitRate&&o?e5(o.cacheReadTokens,o.inputTokens):null,p=s.compareYesterday&&o?Sle(l,xle(t.daily,new Date(a))):null,h=s.topModel||s.cacheHitRate||s.compareYesterday;return!c&&!s.chart&&!h?null:(0,m.jsxs)(`section`,{className:`flex flex-col gap-3`,children:[(0,m.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,m.jsx)(`span`,{className:`text-[13px] text-[var(--text-secondary)]`,children:r(`tray.today`)}),(0,m.jsx)(`div`,{className:`flex-1`}),u&&(0,m.jsx)(`span`,{className:`text-[12px] text-[var(--text-muted)]`,children:r(`tray.updated`,{time:u})}),(0,m.jsx)(k9,{label:r(`common.refresh`),onClick:n,children:(0,m.jsx)(BS,{className:`size-3.5`})})]}),o?(0,m.jsxs)(m.Fragment,{children:[c&&(0,m.jsxs)(`div`,{className:`grid auto-cols-fr grid-flow-col gap-px overflow-hidden rounded-[10px] bg-[var(--border)]`,children:[s.overview&&(0,m.jsx)(M9,{label:r(`tray.requests`),value:_I(o.requests,!0)}),s.overview&&(0,m.jsx)(M9,{label:r(`tray.tokens`),value:_I(l,!0)}),s.cost&&(0,m.jsx)(M9,{label:r(`tray.cost`),value:O7(o.costUsd)})]}),s.chart&&(0,m.jsx)(ide,{data:t,now:a}),h&&(0,m.jsxs)(`div`,{className:`flex flex-wrap gap-1.5`,children:[d&&(0,m.jsxs)(N9,{label:r(`tray.topModel`),title:d.model,children:[(0,m.jsx)(`span`,{className:`truncate`,children:d.model}),(0,m.jsxs)(`span`,{className:`shrink-0`,children:[`· `,bI(d.share)]})]}),s.cacheHitRate&&(0,m.jsx)(N9,{label:r(`tray.cacheHit`),children:(0,m.jsx)(`span`,{children:f==null?`—`:bI(f)})}),s.compareYesterday&&(0,m.jsx)(N9,{label:r(`tray.vsYesterday`),children:p==null?(0,m.jsx)(`span`,{children:`—`}):(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-0.5`,children:[p>=0?(0,m.jsx)(Sx,{className:`size-3`}):(0,m.jsx)(cte,{className:`size-3`}),bI(Math.abs(p))]})})]})]}):t.error?(0,m.jsx)(`div`,{className:`text-[12px] text-[var(--danger)]`,children:r(`tray.loadFailed`)}):(0,m.jsx)(QT,{lines:2})]})}function M9({label:e,value:t}){return(0,m.jsxs)(`div`,{className:`min-w-0 bg-[var(--surface-muted)] px-3 py-2.5`,children:[(0,m.jsx)(`div`,{className:`truncate text-[12px] text-[var(--text-secondary)]`,children:e}),(0,m.jsx)(`div`,{className:`num mt-0.5 truncate text-[20px] leading-tight font-semibold`,title:t,children:t})]})}function N9({label:e,title:t,children:n}){return(0,m.jsxs)(`span`,{title:t,className:`inline-flex max-w-full min-w-0 items-center gap-1.5 rounded-[7px] border border-[var(--border)] px-2 py-0.5 text-[12px]`,children:[(0,m.jsx)(`span`,{className:`shrink-0 text-[var(--text-secondary)]`,children:e}),(0,m.jsx)(`span`,{className:`flex min-w-0 items-center gap-1 font-medium`,children:n})]})}function ide({data:e,now:t}){let{t:n}=K(),r=ble(e.hourly,new Date(t)),i=Math.max(1,...r.map(e=>e.value)),a=new Date(t).getHours();return(0,m.jsx)(`div`,{role:`img`,"aria-label":n(`tray.chartLabel`),className:`flex h-16 items-end gap-[3px]`,children:r.map((e,t)=>{let r=e.value>0?Math.max(4,Math.round(e.value/i*64)):2;return(0,m.jsx)(`span`,{title:n(`tray.hourBar`,{hour:`${String(t).padStart(2,`0`)}:00`,count:e.value}),className:`flex-1 rounded-[2px]`,style:{height:r,background:t===a?`var(--accent)`:e.value>0?`color-mix(in oklab, var(--foreground) 32%, transparent)`:`var(--border)`,opacity:t>a?.5:1}},e.bucket)})})}function ade({data:e,onViewAll:t}){let{t:n,locale:r}=K();if(e.plans.length===0)return e.hasSubscriptions?(0,m.jsx)(`div`,{className:`border-t border-[var(--border)] pt-3 text-[12px] text-[var(--text-muted)]`,children:n(`tray.quotaPending`)}):null;let i=Dle(e.plans,3),a=e.plans.reduce((e,t)=>e+t.rows.length,0);return(0,m.jsxs)(`section`,{className:`flex flex-col gap-2 border-t border-[var(--border)] pt-3`,children:[(0,m.jsxs)(`div`,{className:`flex items-center text-[12px] text-[var(--text-secondary)]`,children:[(0,m.jsx)(`span`,{className:`flex-1`,children:n(`tray.quotaTightest`)}),a>i.length&&(0,m.jsxs)(`button`,{type:`button`,onClick:t,className:`inline-flex cursor-default items-center gap-0.5 hover:text-[var(--foreground)]`,children:[n(`tray.viewAll`),(0,m.jsx)(Ix,{className:`size-3`})]})]}),i.map(({plan:e,row:t},i)=>(0,m.jsxs)(`div`,{className:`grid grid-cols-[minmax(0,1fr)_64px_40px_60px] items-center gap-2 text-[12.5px]`,children:[(0,m.jsxs)(`span`,{className:`flex min-w-0 items-center gap-1.5`,children:[(0,m.jsx)(_3,{name:e.providerName,icon:e.providerIcon,size:14}),(0,m.jsx)(`span`,{className:`truncate font-medium`,children:e.providerName}),(0,m.jsx)(`span`,{className:`shrink-0 text-[var(--text-secondary)]`,children:P9(t,n,r)})]}),(0,m.jsx)(F9,{row:t,locale:r})]},`${e.accountId}-${t.kind}-${i}`))]})}function ode({data:e,plain:t}){let{t:n}=K();if(e.plans.length===0&&!e.hasSubscriptions)return null;let r=new Map;for(let t of e.plans)r.set(t.providerId,(r.get(t.providerId)??0)+1);return(0,m.jsxs)(`section`,{className:Cv(`flex flex-col gap-2`,!t&&`border-t border-[var(--border)] pt-3`),children:[(0,m.jsxs)(`div`,{className:`grid grid-cols-[1fr_48px_72px] items-center gap-2 text-[12px] text-[var(--text-secondary)]`,children:[(0,m.jsx)(`span`,{children:n(`tray.quota`)}),(0,m.jsx)(`span`,{className:`text-right`,children:n(`tray.quotaRemaining`)}),(0,m.jsx)(`span`,{className:`text-right`,children:n(`tray.quotaReset`)})]}),e.plans.length===0?(0,m.jsx)(`div`,{className:`text-[12px] text-[var(--text-muted)]`,children:n(`tray.quotaPending`)}):e.plans.map(e=>(0,m.jsx)(sde,{plan:e,showAccount:(r.get(e.providerId)??0)>1},e.accountId))]})}function P9(e,t,n){return e.kind===`balance`?e.label??t(`tray.quotaBalance`):e.kind===`credits`||e.windowMinutes==null?t(`tray.quotaCredits`):N7(e.windowMinutes,n)}function F9({row:e,locale:t}){let n=e.remaining,r=n===null?void 0:Que[Ole(n)];return(0,m.jsxs)(m.Fragment,{children:[n===null?(0,m.jsx)(`span`,{}):(0,m.jsx)(`span`,{className:`h-1.5 overflow-hidden rounded-full bg-[var(--surface-muted)]`,children:(0,m.jsx)(`span`,{className:`block h-full rounded-full`,style:{width:`${n}%`,background:r}})}),e.amount?(0,m.jsx)(`span`,{className:`num col-span-2 truncate text-right font-medium`,children:I7(e.amount.value,e.amount.unit,t)}):(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(`span`,{className:`num text-right font-medium`,children:n===null?`—`:`${Math.round(n)}%`}),(0,m.jsx)(`span`,{className:`truncate text-right text-[var(--text-secondary)]`,children:P7(e.resetsAt,t)??`—`})]})]})}function sde({plan:e,showAccount:t}){let{t:n,locale:r}=K();return(0,m.jsxs)(`div`,{className:`flex flex-col gap-1`,children:[(0,m.jsxs)(`div`,{className:`flex min-w-0 items-center gap-2`,children:[(0,m.jsx)(_3,{name:e.providerName,icon:e.providerIcon,size:16}),(0,m.jsx)(`span`,{className:`truncate text-[13px] font-medium`,children:e.providerName}),t&&(0,m.jsx)(`span`,{className:`truncate text-[12px] text-[var(--text-muted)]`,children:e.accountName})]}),e.rows.map((e,t)=>{let i=P9(e,n,r);return(0,m.jsxs)(`div`,{className:`grid grid-cols-[52px_1fr_48px_72px] items-center gap-2 pl-6 text-[12.5px]`,children:[(0,m.jsx)(`span`,{className:`truncate text-[var(--text-secondary)]`,title:i,children:i}),(0,m.jsx)(F9,{row:e,locale:r})]},`${e.kind}-${t}`)})]})}function cde({data:e,disabled:t,onSwitch:n,plain:r}){let{t:i}=K(),a=e.clients.filter(e=>e.enabled);if(a.length===0)return null;let o=t=>e.providers.find(e=>e.id===t)?.name??i(`tray.unbound`);return(0,m.jsxs)(`section`,{className:Cv(`flex flex-col gap-1`,!r&&`border-t border-[var(--border)] pt-3`),children:[(0,m.jsx)(`div`,{className:`mb-0.5 text-[12px] text-[var(--text-secondary)]`,children:i(`tray.clients`)}),a.map(e=>(0,m.jsxs)(`button`,{type:`button`,disabled:t||!n,onClick:()=>n?.(e),"aria-label":i(`tray.switchProvider`,{client:e.name}),className:`-mx-2 flex h-8 cursor-default items-center gap-2 rounded-[8px] px-2 text-left transition-colors enabled:hover:bg-[var(--surface-muted)]`,children:[e.kind in a3&&(0,m.jsx)(f3,{kind:e.kind,size:16}),(0,m.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:e.name}),(0,m.jsx)(`span`,{className:`max-w-[45%] truncate text-[12px] text-[var(--text-secondary)]`,children:o(e.providerId)}),n&&(0,m.jsx)(mte,{className:`size-3.5 shrink-0 text-[var(--text-muted)]`})]},e.kind))]})}var I9={title:`requests`,sections:{overview:!0,cost:!0,chart:!0,topModel:!0,compareYesterday:!1,cacheHitRate:!1,quota:!0,clients:!1}},lde=()=>!!jp()?.tray;function L9(){let[e,t]=(0,p.useState)(I9),[n,r]=(0,p.useState)(!jp()?.tray);return(0,p.useEffect)(()=>{let e=jp()?.tray;if(!e)return;let n=!0;e.getPrefs().then(e=>{n&&(t(e),r(!0))});let i=e.onPrefsChanged(t);return()=>{n=!1,i()}},[]),[e,(0,p.useCallback)(e=>{t(e);let n=jp()?.tray;n&&n.setPrefs(e).then(t)},[]),n]}function R9(){let e=Hg(),[t,n]=(0,p.useState)(null);return(0,p.useEffect)(()=>{let e=jp()?.tray;if(!e)return;let t=!0;e.getState().then(e=>{t&&n(e)});let r=e.onStateChanged(n);return()=>{t=!1,r()}},[]),t??{running:e.isSuccess,port:null,activity:null,apiVersionMismatch:!1,updateAvailable:null}}function ude(e,t,n){return{...e,sections:{...e.sections,[t]:n}}}var z9=3e5,B9=new Map,V9=()=>-new Date().getTimezoneOffset();function H9(e,t){let n=g(),{enabled:r,background:i}=t,a={refetchInterval:15e3,refetchIntervalInBackground:i},o=e.sections.quota||e.title===`quota`||e.title===`alerts`,s=et({queryKey:G.settings,queryFn:()=>U(`GET`,`/api/settings`),enabled:r}),c=et({queryKey:G.stats(`summary`,`today`,``,``),queryFn:()=>U(`GET`,`/api/stats/summary?range=today`),enabled:r,...a}),l=et({queryKey:G.stats(`timeseries`,`today`,`hour`,`provider`,``,``,V9()),queryFn:()=>U(`GET`,`/api/stats/timeseries?range=today&groupBy=hour&by=provider&tzOffset=${V9()}`),enabled:r&&e.sections.chart,...a,refetchInterval:3e4}),u=et({queryKey:G.stats(`timeseries`,`7d`,`day`,`provider`,``,``,V9()),queryFn:()=>U(`GET`,`/api/stats/timeseries?range=7d&groupBy=day&by=provider&tzOffset=${V9()}`),enabled:r&&e.sections.compareYesterday,...a,refetchInterval:6e4}),d=et({queryKey:G.stats(`top`,`today`,``,3,``),queryFn:()=>U(`GET`,`/api/stats/top-models?range=today&limit=3`),enabled:r&&e.sections.topModel,...a,refetchInterval:3e4}),f=et({queryKey:G.providers,queryFn:()=>U(`GET`,`/api/providers`),enabled:r&&(o||e.sections.clients),...a,refetchInterval:6e4}),m=et({queryKey:G.clients,queryFn:()=>U(`GET`,`/api/clients`),enabled:r&&e.sections.clients,...a,refetchInterval:3e4}),h=(0,p.useMemo)(()=>(f.data??[]).filter(e=>e.enabled&&e.authScheme===`oauth-subscription`),[f.data]),_=Qe({queries:h.map(e=>({queryKey:G.providerAccounts(e.id),queryFn:()=>U(`GET`,`/api/providers/${W(e.id)}/accounts`),enabled:r&&o,...a,refetchInterval:6e4}))}),v=h.flatMap((e,t)=>(_[t]?.data??[]).map(t=>({provider:e,account:t}))),y=v.map(e=>`${e.account.id}:${e.account.status}:${e.account.quota?.fetchedAtUtc??``}`).join(`|`),b=nt({mutationFn:e=>U(`POST`,`/api/provider-accounts/${W(e)}/quota`),onSettled:e=>{e&&n.invalidateQueries({queryKey:G.providerAccounts(e.providerId)})}}),x=r&&o&&(t.live||e.title===`quota`||e.title===`alerts`);(0,p.useEffect)(()=>{if(!x)return;let e=Date.now();for(let{account:t}of v){if(t.status!==`active`)continue;let n=t.quota?.fetchedAtUtc?new Date(t.quota.fetchedAtUtc).getTime():0;Number.isFinite(n)&&e-n<z9||e-(B9.get(t.id)??0)<z9||(B9.set(t.id,e),b.mutate(t.id,{onError:()=>{}}))}},[x,y]);let S=[...Tle(v),...Ele(f.data??[])];return{settings:s.data,summary:c.data,hourly:l.data??[],daily:u.data??[],top:d.data??[],plans:S,hasSubscriptions:v.some(e=>e.account.status===`active`),clients:m.data??[],providers:f.data??[],updatedAt:c.dataUpdatedAt,loading:c.isLoading,error:c.isError}}var dde=[`overview`,`cost`,`chart`,`topModel`,`compareYesterday`,`cacheHitRate`,`quota`];function fde(){let{t:e}=K(),t=g(),[n,r]=L9(),i=R9(),a=H9(n,{enabled:i.running,background:!1,live:!0}),o=t=>(0,m.jsx)(Z,{label:e(`settings.tray.section.${t}`),detail:e(`settings.tray.section.${t}.hint`),children:(0,m.jsx)(BT,{checked:n.sections[t],label:e(`settings.tray.section.${t}`),onChange:e=>r(ude(n,t,e))})},t);return(0,m.jsxs)(`div`,{className:`mx-auto grid max-w-[1120px] items-start gap-4 lg:grid-cols-[minmax(0,1fr)_392px]`,children:[(0,m.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4`,children:[(0,m.jsx)(U9,{title:e(`settings.tray.titleHeading`),hint:e(`settings.tray.titleHint`),children:(0,m.jsx)(`div`,{className:`p-4`,children:(0,m.jsx)(c7,{"aria-label":e(`settings.tray.titleHeading`),minColumnWidth:150,value:n.title,onValueChange:e=>r({...n,title:e}),options:Ap.map(t=>({value:t,label:e(`settings.tray.title.${t}`),description:e(`settings.tray.title.${t}.hint`)}))})})}),(0,m.jsx)(U9,{title:e(`settings.tray.usageHeading`),children:(0,m.jsx)(`div`,{className:`divide-y divide-[var(--border)]`,children:dde.map(o)})}),(0,m.jsx)(U9,{title:e(`settings.tray.clientsHeading`),children:(0,m.jsx)(`div`,{className:`divide-y divide-[var(--border)]`,children:o(`clients`)})}),(0,m.jsx)(`div`,{children:(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(HS,{className:`size-3.5`}),onClick:()=>r(I9),children:e(`settings.tray.reset`)})})]}),(0,m.jsx)(`div`,{className:`lg:sticky lg:top-0`,children:(0,m.jsxs)(U9,{title:e(`settings.tray.previewHeading`),hint:e(`settings.tray.previewHint`),children:[(0,m.jsx)(`div`,{className:`flex justify-center bg-[var(--surface-muted)] px-4 py-5`,children:(0,m.jsx)(O9,{preview:!0,className:`w-[360px] max-w-full shadow-[0_12px_40px_rgb(0_0_0/0.25)]`,prefs:n,state:i,data:a,onRefresh:()=>void t.invalidateQueries({queryKey:[`stats`]})})}),(0,m.jsx)(`p`,{className:`border-t border-[var(--border)] px-4 py-2.5 text-[11px] text-[var(--text-muted)]`,children:e(`settings.tray.previewFooter`)})]})})]})}function U9({title:e,hint:t,children:n}){let{t:r}=K();return(0,m.jsxs)(`section`,{className:`card`,children:[(0,m.jsxs)(`header`,{className:`border-b border-[var(--border)] px-4 py-3`,children:[(0,m.jsx)(`div`,{className:`text-[11px] text-[var(--text-muted)]`,children:r(`settings.tab.tray`)}),(0,m.jsx)(`h3`,{className:`text-[14px] font-semibold`,children:e}),t&&(0,m.jsx)(`p`,{className:`mt-0.5 text-[12px] text-[var(--text-secondary)]`,children:t})]}),n]})}var pde=[{id:`blue`,color:`#007aff`},{id:`purple`,color:`#a550a7`},{id:`pink`,color:`#f74f9e`},{id:`red`,color:`#ff5257`},{id:`orange`,color:`#f7821b`},{id:`yellow`,color:`#ffc600`},{id:`green`,color:`#62ba46`},{id:`graphite`,color:`#8c8c8c`}],W9=`astra.theme`,G9=`astra.accent`,K9=(0,p.createContext)(null);function q9(e){try{return localStorage.getItem(e)}catch{return null}}function J9(e,t){try{localStorage.setItem(e,t)}catch{}}function mde(){if(typeof document>`u`||!globalThis.CSS?.supports?.(`color`,`AccentColor`))return null;let e=document.createElement(`span`);e.style.color=`AccentColor`,e.style.display=`none`,document.body.appendChild(e);let t=getComputedStyle(e).color;return e.remove(),hde(t)}function hde(e){let t=/rgba?\((\d+)[,\s]+(\d+)[,\s]+(\d+)/.exec(e);return t?`#${[t[1],t[2],t[3]].map(e=>Number(e).toString(16).padStart(2,`0`)).join(``)}`:null}function gde(e){let t=/^#([0-9a-f]{6})$/i.exec(e);if(!t)return`#ffffff`;let n=parseInt(t[1],16),[r,i,a]=[n>>16&255,n>>8&255,n&255].map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*r+.7152*i+.0722*a>.45?`#1d1d1f`:`#ffffff`}function _de(e=document.documentElement){let t=q9(W9),n=t===`dark`||t!==`light`&&(globalThis.matchMedia?.(`(prefers-color-scheme: dark)`).matches??!1);e.dataset.theme=n?`dark`:`light`}function vde({children:e}){let t=jp(),[n,r]=(0,p.useState)(()=>{let e=q9(W9);return e===`light`||e===`dark`?e:`system`}),[i,a]=(0,p.useState)(()=>globalThis.matchMedia?.(`(prefers-color-scheme: dark)`).matches??!1),[o,s]=(0,p.useState)(()=>q9(G9)??`system`),[c,l]=(0,p.useState)(()=>t?.accentColor??null);(0,p.useEffect)(()=>{let e=globalThis.matchMedia?.(`(prefers-color-scheme: dark)`);if(!e)return;let t=()=>a(e.matches);return e.addEventListener(`change`,t),()=>e.removeEventListener(`change`,t)},[]),(0,p.useEffect)(()=>{if(t)return t.getAccentColor().then(e=>l(e)),t.onAccentColorChanged(e=>l(e));l(mde())},[t]);let u=n===`system`?i?`dark`:`light`:n,d=o===`system`?c??`#007aff`:o;(0,p.useEffect)(()=>{let e=document.documentElement;e.dataset.theme=u,e.style.setProperty(`--accent`,d),e.style.setProperty(`--on-accent`,gde(d))},[u,d]);let f=(0,p.useCallback)(e=>{r(e),J9(W9,e),t?.setThemeSource(e)},[t]);(0,p.useEffect)(()=>{t?.setThemeSource(n)},[]);let h=(0,p.useCallback)(e=>{s(e),J9(G9,e)},[]),g=(0,p.useMemo)(()=>({theme:n,resolvedTheme:u,setTheme:f,accentChoice:o,accent:d,systemAccent:c,setAccentChoice:h}),[n,u,f,o,d,c,h]);return(0,m.jsx)(K9.Provider,{value:g,children:e})}function yde(){let e=(0,p.useContext)(K9);if(!e)throw Error(`useAppearance outside AppearanceProvider`);return e}var bde=[`general`,`tray`];function Y9(){let{t:e}=K(),{tab:t}=Ph(),n=Ah(),r=lde(),i=r&&bde.includes(t)?t:`general`;return r?(0,m.jsx)(i6,{title:e(`nav.settings`),children:(0,m.jsxs)(X8,{value:i,onValueChange:e=>n(e===`general`?`/settings`:`/settings/${e}`,{replace:!0}),children:[(0,m.jsxs)(Z8,{"aria-label":e(`nav.settings`),children:[(0,m.jsx)(Q8,{value:`general`,children:(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,m.jsx)(iC,{className:`size-3.5`}),e(`settings.tab.general`)]})}),(0,m.jsx)(Q8,{value:`tray`,children:(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,m.jsx)(AS,{className:`size-3.5`}),e(`settings.tab.tray`)]})})]}),(0,m.jsx)($8,{value:`general`,className:`pt-5`,children:(0,m.jsx)(X9,{})}),(0,m.jsx)($8,{value:`tray`,className:`pt-5`,children:(0,m.jsx)(fde,{})})]})}):(0,m.jsx)(i6,{title:e(`nav.settings`),children:(0,m.jsx)(X9,{})})}function X9(){let{t:e,locale:t,setLocale:n}=K(),r=yde(),i=Gg(),a=Kg(),o=g(),s=Ug(),c=Wg(),l=yee(),{toast:u}=pP(),d=i.data,f=e=>a.mutate(e,{onError:e=>u($(e),`error`)}),p=e=>{n(e),f({locale:e})},h=async t=>{await Av.copy(t)&&u(e(`common.copied`))};return(0,m.jsxs)(`div`,{className:`mx-auto max-w-[680px]`,children:[(0,m.jsxs)(VT,{title:e(`settings.appearance`),children:[(0,m.jsx)(Z,{label:e(`settings.theme`),children:(0,m.jsx)(zT,{ariaLabel:e(`settings.theme`),value:r.theme,onChange:r.setTheme,items:[{value:`system`,label:e(`settings.theme.system`)},{value:`light`,label:e(`settings.theme.light`)},{value:`dark`,label:e(`settings.theme.dark`)}]})}),(0,m.jsx)(Z,{label:e(`settings.accent`),detail:r.accentChoice===`system`?r.systemAccent?e(`settings.accent.followingSystem`):e(`settings.accent.systemUnavailable`):void 0,children:(0,m.jsx)(uP,{className:`w-40`,ariaLabel:e(`settings.accent`),value:r.accentChoice,onChange:r.setAccentChoice,options:[{value:`system`,label:e(`settings.accent.system`)},...pde.map(t=>({value:t.color,label:e(`settings.accent.${t.id}`)}))]})}),(0,m.jsx)(Z,{label:e(`settings.language`),detail:e(`settings.languageHint`),children:(0,m.jsx)(zT,{ariaLabel:e(`settings.language`),value:t,onChange:p,items:[{value:`zh`,label:`中文`},{value:`en`,label:`English`}]})})]}),d?(0,m.jsxs)(m.Fragment,{children:[(0,m.jsxs)(VT,{title:e(`settings.gateway`),footer:e(`settings.gatewayFooter`),children:[(0,m.jsx)(Z,{label:e(`settings.gatewayUrl`),detail:`${d.gatewayBaseUrl}/v1`,children:(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(Jx,{className:`size-3.5`}),"aria-label":e(`common.copy`),onClick:()=>void h(`${d.gatewayBaseUrl}/v1`)})}),(0,m.jsx)(Z,{label:e(`settings.listen`),detail:`${d.host}:${d.port}`}),(0,m.jsx)(Z,{label:e(`settings.dataDir`),detail:d.dataDir,children:Av.canOpenPaths?(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(aS,{className:`size-3.5`}),"aria-label":e(`settings.openFolder`),onClick:()=>void Av.openPath(d.dataDir)}):(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(Jx,{className:`size-3.5`}),"aria-label":e(`common.copy`),onClick:()=>void h(d.dataDir)})}),(0,m.jsx)(Z,{label:e(`settings.streamIdle`),detail:e(`settings.streamIdleHint`),children:(0,m.jsx)(Z9,{label:e(`settings.streamIdle`),value:d.streamIdleTimeoutSec,onCommit:e=>f({streamIdleTimeoutSec:e??300}),suffix:` s`})})]}),(0,m.jsx)(Sde,{settings:d}),(0,m.jsx)(VT,{title:e(`settings.quota`),footer:e(`settings.quota.autoIntervalHint`),children:(0,m.jsx)(Z,{label:e(`settings.quota.autoInterval`),children:(0,m.jsx)(Z9,{label:e(`settings.quota.autoInterval`),value:d.quotaAutoIntervalMinutes,onCommit:e=>a.mutate({quotaAutoIntervalMinutes:e??30},{onSuccess:()=>void o.invalidateQueries({queryKey:G.providers}),onError:e=>u($(e),`error`)}),suffix:` ${e(`settings.minutes`)}`})})}),(0,m.jsxs)(VT,{title:e(`settings.logging`),footer:e(`settings.debugBodiesHint`),children:[(0,m.jsx)(Z,{label:e(`settings.debugBodies`),children:(0,m.jsx)(BT,{checked:d.debugBodies,label:e(`settings.debugBodies`),onChange:e=>f({debugBodies:e})})}),(0,m.jsx)(Z,{label:e(`settings.bodyRetention`),children:(0,m.jsx)(Z9,{label:e(`settings.bodyRetention`),value:d.bodyRetentionDays,onCommit:e=>f({bodyRetentionDays:e??7}),suffix:` ${e(`settings.days`)}`})}),(0,m.jsxs)(Z,{label:e(`settings.requestRetention`),detail:d.requestRetentionDays==null?e(`settings.keepForever`):void 0,children:[(0,m.jsx)(BT,{checked:d.requestRetentionDays!=null,label:e(`settings.requestRetention`),onChange:e=>f({requestRetentionDays:e?90:null})}),d.requestRetentionDays!=null&&(0,m.jsx)(Z9,{label:e(`settings.requestRetention`),value:d.requestRetentionDays,onCommit:e=>f({requestRetentionDays:e??90}),suffix:` ${e(`settings.days`)}`})]})]}),(0,m.jsx)(VT,{title:e(`settings.effort`),footer:e(`settings.effortHint`),children:[`low`,`medium`,`high`].map(t=>(0,m.jsx)(Z,{label:e(`settings.effort.${t}`),children:(0,m.jsx)(Z9,{label:e(`settings.effort.${t}`),value:d.effortBudgets[t],onCommit:e=>f({effortBudgets:{...d.effortBudgets,[t]:e??d.effortBudgets[t]}}),suffix:` tokens`,step:1024})},t))})]}):i.isError?(0,m.jsx)(`div`,{className:`text-[12px] text-[var(--danger)]`,children:$(i.error)}):(0,m.jsx)(QT,{className:`mx-auto my-8`}),(0,m.jsxs)(VT,{title:e(`settings.about`),children:[(0,m.jsx)(Z,{label:e(`settings.serverVersion`),detail:s.data?`${s.data.version} · API ${s.data.apiVersion}`:`—`}),Lp&&(0,m.jsx)(Z,{label:e(`settings.desktopVersion`),detail:jp()?.version||`—`}),(0,m.jsx)(xde,{}),Lp&&(0,m.jsx)(Z,{label:e(`settings.logs`),onClick:()=>void Av.revealLogs(),children:(0,m.jsx)(aS,{className:`size-4 text-[var(--text-secondary)]`})}),c.data?.required&&(0,m.jsx)(Z,{label:e(`settings.logout`),onClick:()=>l.mutate(),children:(0,m.jsx)(SS,{className:`size-4 text-[var(--text-secondary)]`})})]})]})}function xde(){let{t:e}=K(),{toast:t}=pP(),n=g(),r=Kg(),i=bee(),a=xee(),o=i.data,s=jp()?.updates??null,[c,l]=(0,p.useState)(!1),u=()=>a.mutate(void 0,{onSuccess:n=>t(n.available?e(`settings.updateAvailable`,{version:n.available}):e(`settings.upToDate`)),onError:e=>t($(e),`error`)}),d=()=>{s&&!c&&(l(!0),s.apply().then(r=>{r===`server`?(t(e(`settings.updateApplied`)),n.invalidateQueries({queryKey:G.version}),n.invalidateQueries({queryKey:G.update})):t(e(r===`desktop`?`settings.updateDesktopRelaunch`:`settings.upToDate`))}).catch(e=>t($(e),`error`)).finally(()=>l(!1)))},f=o?.lastCheckAt?new Date(o.lastCheckAt).toLocaleString():void 0,h=o?.available?s?e(`settings.updateAvailable`,{version:o.available}):`${e(`settings.updateAvailable`,{version:o.available})} ${e(`settings.updateApplyHint`)}`:void 0;return(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Z,{label:e(`settings.autoCheck`),detail:o&&!o.feedConfigured?e(`settings.updateCheckFailed`,{error:`feed-not-configured`}):void 0,children:(0,m.jsx)(BT,{checked:o?.autoCheck??!0,label:e(`settings.autoCheck`),onChange:e=>r.mutate({updateAutoCheck:e},{onError:e=>t($(e),`error`)})})}),(0,m.jsxs)(Z,{label:e(`settings.checkUpdates`),detail:a.isError?e(`settings.updateCheckFailed`,{error:$(a.error)}):o?.available?h:f?e(`settings.lastChecked`,{time:f}):void 0,children:[(0,m.jsx)(X,{size:`sm`,variant:`plain`,disabled:a.isPending,onClick:u,children:a.isPending?(0,m.jsx)(QT,{className:`size-3.5`}):(0,m.jsx)(BS,{className:`size-3.5`})}),s&&o?.available&&(0,m.jsx)(X,{size:`sm`,variant:`plain`,disabled:c,"aria-label":e(`settings.updateApply`),onClick:d,children:c?(0,m.jsx)(QT,{className:`size-3.5`}):(0,m.jsx)(Xx,{className:`size-3.5`})})]})]})}function Sde({settings:e}){let{t}=K(),{toast:n}=pP(),r=Kg(),[i,a]=(0,p.useState)(e.proxyMode),[o,s]=(0,p.useState)({url:e.proxyUrl??``,username:e.proxyUsername??``,password:``,bypass:e.proxyBypass??``});(0,p.useEffect)(()=>a(e.proxyMode),[e.proxyMode]),(0,p.useEffect)(()=>s({url:e.proxyUrl??``,username:e.proxyUsername??``,password:``,bypass:e.proxyBypass??``}),[e.proxyUrl,e.proxyUsername,e.proxyBypass,e.hasProxyPassword]);let c=t=>{a(t),(t!==`custom`||e.proxyUrl)&&r.mutate({proxyMode:t},{onError:e=>n($(e),`error`)})},l=()=>r.mutate({proxyMode:`custom`,proxyUrl:o.url.trim()||null,proxyUsername:o.username.trim()||null,proxyBypass:o.bypass.trim()||null,...o.password?{proxyPassword:o.password}:{}},{onSuccess:()=>n(t(`settings.proxy.saved`)),onError:e=>n($(e),`error`)}),u=i!==e.proxyMode||o.url!==(e.proxyUrl??``)||o.username!==(e.proxyUsername??``)||o.password!==``||o.bypass!==(e.proxyBypass??``);return(0,m.jsxs)(VT,{title:t(`settings.proxy`),footer:t(`settings.proxy.footer`),children:[(0,m.jsx)(Z,{label:t(`settings.proxy.mode`),detail:t(`settings.proxy.mode.${i}.hint`),children:(0,m.jsx)(zT,{ariaLabel:t(`settings.proxy.mode`),value:i,onChange:c,items:[{value:`system`,label:t(`settings.proxy.mode.system`)},{value:`custom`,label:t(`settings.proxy.mode.custom`)},{value:`direct`,label:t(`settings.proxy.mode.direct`)}]})}),i===`custom`&&(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(Z,{label:t(`settings.proxy.url`),detail:t(`settings.proxy.urlHint`),children:(0,m.jsx)(UT,{className:`w-64`,mono:!0,"aria-label":t(`settings.proxy.url`),placeholder:`http://127.0.0.1:7890`,value:o.url,onChange:e=>s({...o,url:e.target.value})})}),(0,m.jsx)(Z,{label:t(`settings.proxy.username`),detail:t(`settings.proxy.optional`),children:(0,m.jsx)(UT,{className:`w-64`,autoComplete:`off`,"aria-label":t(`settings.proxy.username`),value:o.username,onChange:e=>s({...o,username:e.target.value})})}),(0,m.jsx)(Z,{label:t(`settings.proxy.password`),detail:e.hasProxyPassword?t(`settings.proxy.passwordSaved`):t(`settings.proxy.optional`),children:(0,m.jsx)(UT,{className:`w-64`,type:`password`,autoComplete:`new-password`,"aria-label":t(`settings.proxy.password`),placeholder:e.hasProxyPassword?`••••••••`:void 0,value:o.password,onChange:e=>s({...o,password:e.target.value})})}),(0,m.jsx)(Z,{label:t(`settings.proxy.bypass`),detail:t(`settings.proxy.bypassHint`),children:(0,m.jsx)(UT,{className:`w-64`,mono:!0,"aria-label":t(`settings.proxy.bypass`),placeholder:`example.com, *.lan`,value:o.bypass,onChange:e=>s({...o,bypass:e.target.value})})}),(0,m.jsx)(`div`,{className:`flex justify-end px-4 py-2`,children:(0,m.jsx)(X,{size:`sm`,disabled:!u||!o.url.trim()||r.isPending,onClick:l,children:t(`common.save`)})})]})]})}function Z9({label:e,value:t,onCommit:n,suffix:r,step:i=1}){let[a,o]=(0,p.useState)(t);(0,p.useEffect)(()=>o(t),[t]);let s=(0,p.useRef)(n);return(0,p.useEffect)(()=>{s.current=n}),(0,p.useEffect)(()=>{if(a===t)return;let e=setTimeout(()=>s.current(a),600);return()=>clearTimeout(e)},[a,t]),(0,m.jsx)(`div`,{className:`astra-label-hidden w-36`,children:(0,m.jsx)(Zue,{label:e,size:`sm`,value:a,onValueChange:o,min:0,step:i,suffix:r})})}function Cde(){let{t:e}=K(),t=fv(),n=Gg(),[r,i]=(0,p.useState)(!1),[a,o]=(0,p.useState)(null);return(0,m.jsxs)(i6,{title:e(`nav.tokens`),subtitle:e(`tokens.subtitle`),actions:(0,m.jsx)(X,{variant:`primary`,icon:(0,m.jsx)(IS,{className:`size-3.5`}),onClick:()=>i(!0),children:e(`tokens.add`)}),children:[(0,m.jsxs)(`div`,{className:`mx-auto flex max-w-[1100px] flex-col gap-4`,children:[n.data&&(0,m.jsx)(`p`,{className:`px-1 text-[12px] text-[var(--text-secondary)]`,children:e(`tokens.directHint`,{url:`${n.data.gatewayBaseUrl}/v1`})}),t.isLoading&&(0,m.jsx)(QT,{lines:4}),t.isError&&(0,m.jsx)(lE,{tone:`danger`,title:e(`common.error`),children:$(t.error)}),t.data?.length===0&&(0,m.jsx)(`div`,{className:`card`,children:(0,m.jsx)($T,{icon:(0,m.jsx)(mS,{className:`size-6`}),title:e(`tokens.empty`)})}),t.data&&t.data.length>0&&(0,m.jsx)(`div`,{className:`card divide-y divide-[var(--border-subtle)] overflow-hidden p-0`,children:t.data.map(e=>(0,m.jsx)(wde,{token:e,defaultOpen:t.data.length===1,onEdit:()=>o(e)},e.id))})]}),(0,m.jsx)(Ede,{open:r,onOpenChange:i}),(0,m.jsx)(Dde,{token:a,onClose:()=>o(null)})]})}function wde({token:e,defaultOpen:t,onEdit:n}){let{t:r,locale:i}=K(),{toast:a,confirm:o}=pP(),s=Xg(),c=Lee(),l=mv(),u=Fee(),d=Iee(),[f,h]=(0,p.useState)(t),g=(s.data??[]).find(t=>t.id===e.providerId),_=`token-detail-${e.id}`,v=(e,t)=>{a(t,`success`),e.skipped.length>0&&a(r(`tokens.skipped`,{clients:e.skipped.map(e=>a3[e]?.name??e).join(`, `)}),`error`)},y=()=>c.mutate(e.id,{onSuccess:async({token:e})=>{await Av.copy(e)&&a(r(`tokens.copied`))},onError:e=>a($(e),`error`)}),b=async()=>{(!e.enabled||await o({title:r(`tokens.disableConfirm`,{name:e.name}),detail:r(`tokens.disableDetail`),confirmLabel:r(`tokens.disable`),destructive:!0}))&&l.mutate({id:e.id,enabled:!e.enabled},{onError:e=>a($(e),`error`)})},x=async()=>{await o({title:r(`tokens.resetConfirm`,{name:e.name}),detail:r(`tokens.resetDetail`),confirmLabel:r(`tokens.reset`),destructive:!0})&&u.mutate(e.id,{onSuccess:e=>v(e,r(`tokens.resetDone`,{count:e.rewritten.length})),onError:e=>a($(e),`error`)})},S=async()=>{await o({title:r(`tokens.deleteConfirm`,{name:e.name}),detail:r(`tokens.deleteDetail`),confirmLabel:r(`common.delete`),destructive:!0})&&d.mutate(e.id,{onSuccess:t=>v(t,r(`tokens.deleted`,{name:e.name})),onError:e=>a($(e),`error`)})},C=e.lastUsedAt?CI(e.lastUsedAt,i):r(`tokens.neverUsed`);return(0,m.jsxs)(`article`,{children:[(0,m.jsxs)(`div`,{className:`flex cursor-pointer flex-wrap items-center gap-x-5 gap-y-2 px-4 py-3 hover:bg-[var(--surface-muted)]`,onClick:()=>h(e=>!e),children:[(0,m.jsxs)(`div`,{className:`flex min-w-0 flex-1 basis-56 items-start gap-2`,children:[(0,m.jsx)(`button`,{type:`button`,className:`mt-0.5 rounded text-[var(--text-muted)]`,"aria-expanded":f,"aria-controls":_,"aria-label":r(`tokens.details`),onClick:e=>{e.stopPropagation(),h(e=>!e)},children:(0,m.jsx)(Ix,{className:`size-4 transition-transform ${f?`rotate-90`:``}`})}),(0,m.jsxs)(`div`,{className:`min-w-0`,children:[(0,m.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,m.jsx)(`h2`,{className:`truncate text-[14px] font-medium ${e.enabled?``:`text-[var(--text-muted)]`}`,children:e.name}),e.isDefault&&(0,m.jsx)(Q,{tone:`accent`,children:r(`tokens.default`)}),!e.enabled&&(0,m.jsx)(Q,{tone:`orange`,children:r(`tokens.disabledBadge`)})]}),(0,m.jsxs)(`div`,{className:`mt-0.5 flex items-center gap-1`,onClick:e=>e.stopPropagation(),children:[(0,m.jsx)(`code`,{className:`font-mono text-[12px] text-[var(--text-secondary)] selectable`,children:e.keyMasked}),(0,m.jsx)(X,{size:`sm`,variant:`plain`,icon:(0,m.jsx)(Jx,{className:`size-3.5`}),"aria-label":r(`tokens.copy`),title:r(`tokens.copy`),loading:c.isPending,onClick:y})]})]})]}),(0,m.jsx)(`div`,{className:`hidden w-16 items-center gap-1.5 md:flex`,title:e.clients.map(e=>a3[e]?.name??e).join(`, `)||r(`tokens.noClients`),children:e.clients.length===0?(0,m.jsx)(`span`,{className:`text-[12px] text-[var(--text-muted)]`,children:`—`}):e.clients.map(e=>(0,m.jsx)(f3,{kind:e,size:16},e))}),(0,m.jsx)(Q9,{label:r(`tokens.today`),value:mI(e.today.costUsd),context:r(`tokens.requestsContext`,{count:_I(e.today.requests)})}),(0,m.jsx)(Q9,{label:r(`tokens.total`),value:mI(e.total.costUsd),context:`${_I(e.total.totalTokens,!0)} Token`}),(0,m.jsx)(Q9,{label:r(`tokens.lastUsedTitle`),value:e.lastUsedAt?SI(e.lastUsedAt,i):`—`,context:e.lastUsedAt?``:r(`tokens.neverUsed`),title:C}),(0,m.jsx)(`div`,{onClick:e=>e.stopPropagation(),children:(0,m.jsx)(aP,{label:r(`common.more`),icon:(0,m.jsx)(Qx,{className:`size-4`}),items:[{id:`settings`,label:r(`tokens.settings`),icon:(0,m.jsx)(MS,{className:`size-3.5`}),onSelect:n},{id:`toggle`,label:e.enabled?r(`tokens.disable`):r(`tokens.enable`),icon:(0,m.jsx)(RS,{className:`size-3.5`}),onSelect:()=>void b()},{id:`reset`,label:r(`tokens.reset`),icon:(0,m.jsx)(HS,{className:`size-3.5`}),onSelect:()=>void x()},...e.isDefault?[]:[{id:`delete`,label:r(`tokens.delete`),icon:(0,m.jsx)(mC,{className:`size-3.5`}),destructive:!0,separatorBefore:!0,onSelect:()=>void S()}]]})})]}),f&&(0,m.jsxs)(`div`,{id:_,className:`border-t border-[var(--border-subtle)] bg-[var(--surface-muted)] px-4 py-3 md:pl-10`,children:[(0,m.jsxs)(`dl`,{className:`flex flex-wrap gap-x-8 gap-y-2 text-[12px]`,children:[(0,m.jsxs)(`div`,{className:`min-w-0`,children:[(0,m.jsx)(`dt`,{className:`text-[var(--text-muted)]`,children:r(`tokens.clients`)}),(0,m.jsx)(`dd`,{className:`mt-0.5 flex min-h-5 flex-wrap items-center gap-x-3 gap-y-1 text-[var(--text-secondary)]`,children:e.clients.length===0?r(`tokens.noClients`):e.clients.map(e=>(0,m.jsxs)(`span`,{className:`inline-flex items-center gap-1`,children:[(0,m.jsx)(f3,{kind:e,size:14}),a3[e]?.name??e]},e))})]}),(0,m.jsxs)(`div`,{className:`min-w-0`,children:[(0,m.jsx)(`dt`,{className:`text-[var(--text-muted)]`,children:r(`tokens.directProvider`)}),(0,m.jsx)(`dd`,{className:`mt-0.5 truncate text-[var(--text-secondary)]`,children:g?.name??(e.providerId?e.providerId:r(`tokens.directNone`))})]}),(0,m.jsxs)(`div`,{className:`min-w-0`,children:[(0,m.jsx)(`dt`,{className:`text-[var(--text-muted)]`,children:r(`tokens.lastUsedTitle`)}),(0,m.jsx)(`dd`,{className:`mt-0.5 truncate text-[var(--text-secondary)]`,children:C})]})]}),(0,m.jsx)(Tde,{today:e.today,total:e.total})]})]})}function Q9({label:e,value:t,context:n,title:r}){return(0,m.jsxs)(`div`,{className:`w-24 min-w-0`,title:r,children:[(0,m.jsx)(`div`,{className:`truncate text-[11px] text-[var(--text-muted)]`,children:e}),(0,m.jsx)(`div`,{className:`num truncate text-[14px] leading-tight font-semibold`,children:t}),(0,m.jsx)(`div`,{className:`truncate text-[11px] text-[var(--text-muted)]`,children:n||`\xA0`})]})}function Tde({today:e,total:t}){let{t:n}=K(),r=[[n(`tokens.today`),e],[n(`tokens.total`),t]],i=`px-3 py-1.5 text-right font-normal whitespace-nowrap text-[var(--text-muted)]`,a=`num px-3 py-1.5 text-right whitespace-nowrap`;return(0,m.jsx)(`div`,{className:`mt-3 overflow-x-auto rounded-[var(--radius-control)] bg-[var(--surface)]`,children:(0,m.jsxs)(`table`,{className:`w-full text-[12px]`,children:[(0,m.jsx)(`thead`,{children:(0,m.jsxs)(`tr`,{className:`border-b border-[var(--border-subtle)]`,children:[(0,m.jsx)(`th`,{className:`${i} text-left`}),(0,m.jsx)(`th`,{className:i,children:n(`tokens.cost`)}),(0,m.jsx)(`th`,{className:i,children:n(`tokens.requests`)}),(0,m.jsx)(`th`,{className:i,children:n(`tokens.tokens`)}),(0,m.jsx)(`th`,{className:i,children:n(`tokens.inOut`)}),(0,m.jsx)(`th`,{className:i,children:n(`tokens.cacheHit`)}),(0,m.jsx)(`th`,{className:i,title:n(`tokens.tpsContext`),children:n(`tokens.tps`)})]})}),(0,m.jsx)(`tbody`,{children:r.map(([e,t])=>(0,m.jsxs)(`tr`,{children:[(0,m.jsx)(`th`,{scope:`row`,className:`px-3 py-1.5 text-left font-medium whitespace-nowrap text-[var(--text-secondary)]`,children:e}),(0,m.jsx)(`td`,{className:`${a} font-semibold selectable`,children:mI(t.costUsd)}),(0,m.jsx)(`td`,{className:a,children:_I(t.requests)}),(0,m.jsx)(`td`,{className:a,children:_I(t.totalTokens,!0)}),(0,m.jsxs)(`td`,{className:`${a} text-[var(--text-secondary)]`,children:[_I(t.inputTokens,!0),` / `,_I(t.outputTokens,!0)]}),(0,m.jsx)(`td`,{className:a,title:n(`usage.cacheAmounts`,{read:_I(t.cacheReadTokens,!0),write:_I(t.cacheWriteTokens,!0)}),children:t.cacheHitRate==null?`—`:bI(t.cacheHitRate)}),(0,m.jsx)(`td`,{className:a,children:t.tps==null?`—`:yI(t.tps)})]},e))})]})})}function $9(){let{t:e}=K(),t=(Xg().data??[]).filter(e=>e.enabled);return{providers:t,options:[{value:``,label:e(`tokens.directNone`)},...t.map(e=>({value:e.id,label:e.name}))]}}function Ede({open:e,onOpenChange:t}){let{t:n}=K(),{toast:r}=pP(),i=Pee(),{options:a}=$9(),[o,s]=(0,p.useState)(``),[c,l]=(0,p.useState)(``);return(0,p.useEffect)(()=>{e&&(s(``),l(``))},[e]),(0,m.jsx)(iP,{open:e,onOpenChange:t,title:n(`tokens.createTitle`),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:()=>t(!1),children:n(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!o.trim(),loading:i.isPending,onClick:()=>i.mutate({name:o.trim(),providerId:c||null},{onSuccess:e=>{t(!1),r(n(`tokens.created`,{name:e.name}),`success`)},onError:e=>r($(e),`error`)}),children:n(`common.create`)})]}),children:(0,m.jsxs)(`div`,{className:`grid gap-4`,children:[(0,m.jsx)(LT,{label:n(`tokens.name`),children:(0,m.jsx)(UT,{value:o,maxLength:64,placeholder:n(`tokens.namePlaceholder`),onChange:e=>s(e.target.value)})}),(0,m.jsx)(LT,{label:n(`tokens.directProvider`),children:(0,m.jsx)(uP,{value:c,onChange:l,options:a})})]})})}function Dde({token:e,onClose:t}){let{t:n}=K(),{toast:r}=pP(),i=mv(),{providers:a,options:o}=$9(),[s,c]=(0,p.useState)(``),[l,u]=(0,p.useState)(``),[d,f]=(0,p.useState)(``),h=a.find(e=>e.id===l),g=h?.authScheme===`oauth-subscription`,_=T_(h?.id,g);return(0,p.useEffect)(()=>{e&&(c(e.name),u(e.providerId??``),f(e.accountId??``))},[e]),(0,m.jsx)(iP,{open:e!==null,onOpenChange:e=>!e&&t(),title:n(`tokens.settingsTitle`,{name:e?.name??``}),footer:(0,m.jsxs)(m.Fragment,{children:[(0,m.jsx)(X,{onClick:t,children:n(`common.cancel`)}),(0,m.jsx)(X,{variant:`primary`,disabled:!s.trim(),loading:i.isPending,onClick:()=>{e&&i.mutate({id:e.id,name:s.trim(),providerId:l||null,accountId:g&&d||null},{onSuccess:()=>{t(),r(n(`common.saved`),`success`)},onError:e=>r($(e),`error`)})},children:n(`common.save`)})]}),children:(0,m.jsxs)(`div`,{className:`grid gap-4`,children:[(0,m.jsx)(LT,{label:n(`tokens.name`),children:(0,m.jsx)(UT,{value:s,maxLength:64,onChange:e=>c(e.target.value)})}),(0,m.jsx)(LT,{label:n(`tokens.directProvider`),children:(0,m.jsx)(uP,{value:l,onChange:e=>{u(e),f(``)},options:o})}),g&&(0,m.jsx)(LT,{label:n(`tokens.directAccount`),children:(0,m.jsx)(uP,{value:d,onChange:f,options:[{value:``,label:n(`clients.accountDefault`)},...(_.data??[]).map(e=>({value:e.id,label:e.displayName||e.id}))]})})]})})}var Ode=new Set([`astra.theme`,`astra.accent`,`astra.locale`]);function kde(){let{t:e,locale:t}=K(),n=g(),{toast:r}=pP(),i=jp(),[a]=L9(),o=R9(),[s,c]=(0,p.useState)(!1),[l,u]=(0,p.useState)(`overview`),d=H9(a,{enabled:o.running,background:!0,live:s}),f=Z_(),h=(0,p.useRef)(null);(0,p.useLayoutEffect)(()=>{let e=document.documentElement;e.dataset.view=`tray`,e.style.background=`transparent`,document.body.style.background=`transparent`},[]);let _=(0,p.useCallback)(()=>{n.invalidateQueries({queryKey:[`stats`]}),n.invalidateQueries({queryKey:G.providers}),n.invalidateQueries({queryKey:G.clients}),n.invalidateQueries({queryKey:[`provider-accounts`]})},[n]);(0,p.useEffect)(()=>i?.tray.onVisibilityChanged(e=>{c(e),e&&(u(`overview`),_())}),[i,_]),(0,p.useEffect)(()=>{o.running&&_()},[o.running,_]),(0,p.useEffect)(()=>{let e=e=>{e.key&&Ode.has(e.key)&&window.location.reload()};return window.addEventListener(`storage`,e),()=>window.removeEventListener(`storage`,e)},[]),(0,p.useEffect)(()=>{let e=e=>{e.key===`Escape`&&i?.tray.command(`hide`)};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[i]),(0,p.useLayoutEffect)(()=>{let e=h.current;if(!e||!i)return;let t=[`header`,`tabs`,`body`,`footer`].map(t=>e.querySelector(`[data-tray-part="${t}"]`)),n=()=>{let n=e.offsetHeight-e.clientHeight,r=t.reduce((e,t)=>e+(t?.offsetHeight??0),0)+n;i.tray.resize(r)},r=new ResizeObserver(n);for(let e of t)e&&r.observe(e);return n(),()=>r.disconnect()},[i]);let v=(0,p.useMemo)(()=>({requests:t=>e(`tray.title.requests`,{count:t}),tokens:t=>e(`tray.title.tokens`,{count:t}),cost:t=>e(`tray.title.cost`,{amount:t}),quota:(t,n,r)=>e(`tray.title.quota`,{plan:t,window:n,remaining:r}),failures:t=>e(`tray.title.failures`,{count:t}),stopped:e(`tray.status.stopped`),windowName:n=>n.kind===`balance`?n.label??e(`tray.quotaBalance`):n.kind===`credits`||n.windowMinutes==null?e(`tray.quotaCredits`):N7(n.windowMinutes,t)}),[e,t]),y=kle(a.title,{running:o.running,summary:d.summary,plans:d.plans},v);(0,p.useEffect)(()=>{i?.tray.setTitle(y.title,y.detail)},[i,y.title,y.detail]);let b=e=>void i?.tray.command(e),x=async()=>{d.settings&&await Av.copy(`${d.settings.gatewayBaseUrl}/v1`)&&r(e(`common.copied`))},S=async t=>{let n=d.providers;if(n.length===0)return;let i=await Av.contextMenu(n.map(n=>({id:n.id,label:n.enabled?n.name:e(`tray.disabledProvider`,{name:n.name}),type:`checkbox`,checked:n.id===t.providerId})));i&&i!==t.providerId&&f.mutate({kind:t.kind,providerId:i},{onError:e=>r($(e),`error`)})};return(0,m.jsx)(`div`,{className:`h-full`,children:(0,m.jsx)(O9,{ref:h,className:`h-full`,prefs:a,state:o,data:d,tab:l,onTabChange:u,onCommand:b,onRefresh:_,onCopyAddress:()=>void x(),onSwitchClient:e=>void S(e)})})}var Ade=Lp?Ig:Fg;function jde(){return(0,m.jsx)(Ade,{children:(0,m.jsx)(Mde,{children:(0,m.jsxs)(og,{children:[(0,m.jsx)(ig,{path:`tray`,element:(0,m.jsx)(kde,{})}),(0,m.jsxs)(ig,{element:(0,m.jsx)(OP,{}),children:[(0,m.jsx)(ig,{index:!0,element:(0,m.jsx)(lce,{})}),(0,m.jsx)(ig,{path:`requests`,element:(0,m.jsx)(rce,{})}),(0,m.jsx)(ig,{path:`tokens`,element:(0,m.jsx)(Cde,{})}),(0,m.jsx)(ig,{path:`clients`,element:(0,m.jsx)(d6,{})}),(0,m.jsx)(ig,{path:`clients/:kind`,element:(0,m.jsx)(d6,{})}),(0,m.jsx)(ig,{path:`providers`,element:(0,m.jsx)(Rle,{})}),(0,m.jsx)(ig,{path:`providers/:id`,element:(0,m.jsx)(pue,{})}),(0,m.jsx)(ig,{path:`models`,element:(0,m.jsx)(Koe,{})}),(0,m.jsx)(ig,{path:`models/:id`,element:(0,m.jsx)(Uoe,{})}),(0,m.jsx)(ig,{path:`privacy`,element:(0,m.jsx)(Y5,{})}),(0,m.jsx)(ig,{path:`privacy/:tab`,element:(0,m.jsx)(Y5,{})}),(0,m.jsx)(ig,{path:`settings`,element:(0,m.jsx)(Y9,{})}),(0,m.jsx)(ig,{path:`settings/:tab`,element:(0,m.jsx)(Y9,{})}),(0,m.jsx)(ig,{path:`*`,element:(0,m.jsx)(ng,{to:`/`,replace:!0})})]})]})})})}function Mde({children:e}){let t=Wg();return t.isLoading?(0,m.jsx)(`div`,{className:`wallpaper flex h-full items-center justify-center`,children:(0,m.jsx)(QT,{})}):t.data?.required&&!t.data.signedIn?(0,m.jsx)(Kae,{}):(0,m.jsx)(m.Fragment,{children:e})}Bp(),_de();var Nde=new Be({defaultOptions:{queries:{staleTime:5e3,retry:(e,t)=>e<1&&!(t instanceof Hp&&t.status>=400&&t.status<500)}}});(0,kp.createRoot)(document.getElementById(`root`)).render((0,m.jsx)(p.StrictMode,{children:(0,m.jsx)(_,{client:Nde,children:(0,m.jsx)(Jee,{children:(0,m.jsx)(vde,{children:(0,m.jsx)(nd,{reducedMotion:`user`,children:(0,m.jsx)(fP,{children:(0,m.jsx)(jde,{})})})})})})}));
|