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;li[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 ee(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var x=ee.prototype=new b;x.constructor=ee,_(x,y.prototype),x.isPureReactComponent=!0;var te=Array.isArray;function S(){}var C={H:null,A:null,T:null,S:null},ne=Object.prototype.hasOwnProperty;function w(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function re(e,t){return w(e.type,t,e.props)}function ie(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ae(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var oe=/\/+/g;function se(e,t){return typeof e==`object`&&e&&e.key!=null?ae(``+e.key):t.toString(36)}function ce(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(S,S):(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 le(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,le(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+se(e,0):a,te(o)?(i=``,c!=null&&(i=c.replace(oe,`$&/`)+`/`),le(o,r,i,``,function(e){return e})):o!=null&&(ie(o)&&(o=re(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(oe,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(te(e))for(var u=0;u{t.exports=l()})),d=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0>>1,a=e[r];if(0>>1;ri(c,n))li(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(li(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 ee(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,x||(x=!0,re());else{var t=n(l);t!==null&&oe(ee,t.startTime-e)}}}var x=!1,te=-1,S=5,C=-1;function ne(){return g?!0:!(e.unstable_now()-Ct&&ne());){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&&oe(ee,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?re():x=!1}}}var re;if(typeof y==`function`)re=function(){y(w)};else if(typeof MessageChannel<`u`){var ie=new MessageChannel,ae=ie.port2;ie.port1.onmessage=w,re=function(){ae.postMessage(null)}}else re=function(){_(w,0)};function oe(t,n){te=_(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||125o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(te),te=-1):h=!0,oe(ee,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,x||(x=!0,re()))),r},e.unstable_shouldYield=ne,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{var t=u();function n(e){var t=`https://react.dev/errors/`+e;if(1{function n(){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE==`function`)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=p()})),h=o((e=>{var t=f(),n=u(),r=m();function i(e){var t=`https://react.dev/errors/`+e;if(1Ee||(e.current=Te[Ee],Te[Ee]=null,Ee--)}function k(e,t){Ee++,Te[Ee]=e.current,e.current=t}var ke=De(null),Ae=De(null),je=De(null),Me=De(null);function Ne(e,t){switch(k(je,t),k(Ae,e),k(ke,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?up(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=up(t),e=dp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}Oe(ke),k(ke,e)}function Pe(){Oe(ke),Oe(Ae),Oe(je)}function Fe(e){var t=e.memoizedState;t!==null&&(sh._currentValue=t.memoizedState,k(Me,e)),t=ke.current;var n=dp(t,e.type);t!==n&&(k(Ae,e),k(ke,n))}function Ie(e){Ae.current===e&&(Oe(ke),Oe(Ae)),Me.current===e&&(Oe(Me),sh._currentValue=we)}var Le,Re;function ze(e){if(Le===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Le=t&&t[1]||``,Re=-1)`:-1i||c[r]!==l[i]){var u=` `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(``)&&(u=u.replace(``,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{Be=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ze(n):``}function He(e,t){switch(e.tag){case 26:case 27:case 5:return ze(e.type);case 16:return ze(`Lazy`);case 13:return e.child!==t&&t!==null?ze(`Suspense Fallback`):ze(`Suspense`);case 19:return ze(`SuspenseList`);case 0:case 15:return Ve(e.type,!1);case 11:return Ve(e.type.render,!1);case 1:return Ve(e.type,!0);case 31:return ze(`Activity`);case 30:return ze(`ViewTransition`);default:return``}}function Ue(e){try{var t=``,n=null;do t+=He(e,n),n=e,e=e.return;while(e);return t}catch(e){return` Error generating stack: `+e.message+` `+e.stack}}var We=Object.prototype.hasOwnProperty,Ge=t.unstable_scheduleCallback,Ke=t.unstable_cancelCallback,qe=t.unstable_shouldYield,Je=t.unstable_requestPaint,Ye=t.unstable_now,Xe=t.unstable_getCurrentPriorityLevel,Ze=t.unstable_ImmediatePriority,Qe=t.unstable_UserBlockingPriority,$e=t.unstable_NormalPriority,et=t.unstable_LowPriority,tt=t.unstable_IdlePriority,nt=t.log,rt=t.unstable_setDisableYieldValue,it=null,at=null;function ot(e){if(typeof nt==`function`&&rt(e),at&&typeof at.setStrictMode==`function`)try{at.setStrictMode(it,e)}catch{}}var st=Math.clz32?Math.clz32:ut,ct=Math.log,lt=Math.LN2;function ut(e){return e>>>=0,e===0?32:31-(ct(e)/lt|0)|0}var dt=256,ft=262144,pt=4194304;function mt(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 ht(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=mt(n))):i=mt(o):i=mt(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=mt(n))):i=mt(o)):i=mt(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 gt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function _t(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0n;n++)t.push(e);return t}function xt(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function St(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=gr),yr=` `,br=!1;function xr(e,t){switch(e){case`keyup`:return mr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Sr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Cr=!1;function wr(e,t){switch(e){case`compositionend`:return Sr(t);case`keypress`:return t.which===32?(br=!0,yr):null;case`textInput`:return e=t.data,e===yr&&br?null:e;default:return null}}function Tr(e,t){if(Cr)return e===`compositionend`||!hr&&xr(e,t)?(e=Ln(),In=Fn=Pn=null,Cr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Jr(n)}}function Xr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Xr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Zr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=qr(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=qr(e.document)}return t}function Qr(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 $r=jn&&`documentMode`in document&&11>=document.documentMode,ei=null,ti=null,ni=null,ri=!1;function ii(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;ri||ei==null||ei!==qr(r)||(r=ei,`selectionStart`in r&&Qr(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}),ni&&Kr(ni,r)||(ni=r,r=Jf(ti,`onSelect`),0>=o,i-=o,$i=1<<32-st(t)+i|n<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),R&&ta(i,h),l;if(d===null){for(;hg?(_=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),R&&ta(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 R&&ta(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)}),R&&ta(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===oe&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case ie:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===oe){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),uo(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===me&&ro(l)===r.type){n(e,r.sibling),c=a(r,o.props),uo(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===oe?(c=Vi(o.props.children,e.mode,c,o.key),uo(c,o),c.return=e,e=c):(c=Bi(o.type,o.key,o.props,null,e.mode,c),uo(c,o),c.return=e,e=c)}return s(e);case ae: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=Wi(o,e.mode,c),c.return=e,e=c}return s(e);case me:return o=ro(o),_(e,r,o,c)}if(Ce(o))return h(e,r,o,c);if(be(o)){if(l=be(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,lo(o),c);if(o.$$typeof===ue)return _(e,r,Oa(e,o),c);fo(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=Hi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{co=0;var i=_(e,t,n,r);return so=null,i}catch(t){if(t===Za||t===$a)throw t;var a=Ii(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var mo=po(!0),ho=po(!1),go=!1;function _o(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function vo(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 yo(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function bo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,G&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ni(e),Mi(e,null,n),t}return ki(e,r,t,n),Ni(e)}function xo(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,wt(e,n)}}function So(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 Co=!1;function wo(){if(Co){var e=Ha;if(e!==null)throw e}}function To(e,t,n,r){Co=!1;var i=e.updateQueue;go=!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?(J&f)===f:(r&f)===f){f!==0&&f===Va&&(Co=!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=w({},d,f);break a;case 2:go=!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),sd|=o,e.lanes=o,e.memoizedState=d}}function Eo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Do(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;ea?a:8;var o=D.T,s={};s.types=o===null?null:o.types,D.T=s,fc(e,!1,t,n);try{var c=i(),l=D.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?dc(e,t,Ga(c,r),jd(e)):dc(e,t,r,jd(e))}catch(n){dc(e,t,{then:function(){},status:`rejected`,reason:n},jd())}finally{O.p=a,o!==null&&s.types!==null&&(o.types=s.types),D.T=o}}function tc(){}function nc(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=rc(e).queue;ec(e,a,t,we,n===null?tc:function(){return ic(e),n(r)})}function rc(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:we,baseState:we,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:we},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ps,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ic(e){var t=rc(e);t.next===null&&(t=e.alternate.memoizedState),dc(e,t.next.queue,{},jd())}function ac(){return Da(sh)}function oc(){return cs().memoizedState}function sc(){return cs().memoizedState}function cc(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=jd();e=yo(n);var r=bo(t,e,n);r!==null&&(Pd(r,t,n),xo(r,t,n)),t={cache:Pa()},e.payload=t;return}t=t.return}}function lc(e,t,n){var r=jd();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},pc(e)?mc(t,n):(n=Ai(e,t,n,r),n!==null&&(Pd(n,e,r),hc(n,t,r)))}function uc(e,t,n){dc(e,t,n,jd())}function dc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(pc(e))mc(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,Gr(s,o))return ki(e,t,i,0),K===null&&Oi(),!1}catch{}if(n=Ai(e,t,i,r),n!==null)return Pd(n,e,r),hc(n,t,r),!0}return!1}function fc(e,t,n,r){if(r={lane:2,revertLane:Pf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},pc(e)){if(t)throw Error(i(479))}else t=Ai(e,n,r,2),t!==null&&Pd(t,e,2)}function pc(e){var t=e.alternate;return e===z||t!==null&&t===z}function mc(e,t){qo=Ko=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,wt(e,n)}}var gc={readContext:Da,use:ds,useCallback:V,useContext:V,useEffect:V,useImperativeHandle:V,useLayoutEffect:V,useInsertionEffect:V,useMemo:V,useReducer:V,useRef:V,useState:V,useDebugValue:V,useDeferredValue:V,useTransition:V,useSyncExternalStore:V,useId:V,useHostTransitionStatus:V,useFormState:V,useActionState:V,useOptimistic:V,useMemoCache:V,useCacheRefresh:V,useEffectEvent:V},_c={readContext:Da,use:ds,useCallback:function(e,t){return ss().memoizedState=[e,t===void 0?null:t],e},useContext:Da,useEffect:Vs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),zs(4194308,4,qs.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zs(4194308,4,e,t)},useInsertionEffect:function(e,t){zs(4,2,e,t)},useMemo:function(e,t){var n=ss();t=t===void 0?null:t;var r=e();if(Jo){ot(!0);try{e()}finally{ot(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=ss();if(n!==void 0){var i=n(t);if(Jo){ot(!0);try{n(t)}finally{ot(!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=lc.bind(null,z,e),[r.memoizedState,e]},useRef:function(e){var t=ss();return e={current:e},t.memoizedState=e},useState:function(e){e=Cs(e);var t=e.queue,n=uc.bind(null,z,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Ys,useDeferredValue:function(e,t){return Qs(ss(),e,t)},useTransition:function(){var e=Cs(!1);return e=ec.bind(null,z,e.queue,!0,!1),ss().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=z,a=ss();if(R){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),K===null)throw Error(i(349));J&127||vs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Vs(bs.bind(null,r,o,e),[e]),r.flags|=2048,Ls(9,{destroy:void 0},ys.bind(null,r,o,n,t),null),n},useId:function(){var e=ss(),t=K.identifierPrefix;if(R){var n=ea,r=$i;n=(r&~(1<<32-st(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Yo++,0<\/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[j]=t,o[At]=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(np(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&&hl(t)}}return H(t),t.subtreeFlags&=-33554433,gl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&hl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=je.current,pa(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=oa,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[j]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||ua(t,!0)}else e=lp(e).createTextNode(r),e[j]=t,t.stateNode=e}return H(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=pa(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[j]=t}else ma(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;H(t),e=!1}else n=ha(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(zo(t),t):(zo(t),null);if(t.flags&128)throw Error(i(558))}return H(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=pa(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[j]=t}else ma(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;H(t),a=!1}else a=ha(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(zo(t),t):(zo(t),null)}return zo(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),vl(t,t.updateQueue),H(t),null);case 4:return Pe(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,H(t),null;case 10:return xa(t.type),H(t),null;case 19:if(Ho(t),r=t.memoizedState,r===null)return H(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)yl(r,!1);else{if(od!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Uo(e),o!==null){for(t.flags|=128,yl(r,!1),e=o.updateQueue,t.updateQueue=e,vl(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)zi(n,e),n=n.sibling;return Vo(t,Bo.current&1|2),R&&ta(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Ye()>_d&&(t.flags|=128,a=!0,yl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Uo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,vl(t,e),yl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!R)return H(t),null}else 2*Ye()-r.renderingStartTime>_d&&n!==536870912&&(t.flags|=128,a=!0,yl(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=Ye(),e.sibling=null,o=Bo.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||R?Vo(t,o):(n=o,k(No,t),k(Bo,n),Po===null&&(Po=t)),R&&ta(t,r.treeForkCount),e}return H(t),null;case 22:case 23:return zo(t),Mo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(H(t),t.subtreeFlags&6&&(t.flags|=8192)):H(t),n=t.updateQueue,n!==null&&vl(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&&Oe(qa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xa(Na),H(t),null;case 25:return null;case 30:return t.flags|=33554432,H(t),null}throw Error(i(156,t.tag))}function xl(e,t){switch(ia(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return xa(Na),Pe(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Ie(t),null;case 31:if(t.memoizedState!==null){if(zo(t),t.alternate===null)throw Error(i(340));ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(zo(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ma()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ho(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 Pe(),null;case 10:return xa(t.type),null;case 22:case 23:return zo(t),Mo(),e!==null&&Oe(qa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return xa(Na),null;case 25:return null;default:return null}}function Sl(e,t){switch(ia(t),t.tag){case 3:xa(Na),Pe();break;case 26:case 27:case 5:Ie(t);break;case 4:Pe();break;case 31:t.memoizedState!==null&&zo(t);break;case 13:zo(t);break;case 19:Ho(t);break;case 10:xa(t.type);break;case 22:case 23:zo(t),Mo(),e!==null&&Oe(qa);break;case 24:xa(Na)}}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){Z(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){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Tl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Do(t,n)}catch(t){Z(e,e.return,t)}}}function El(e,t,n){n.props=wc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(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=xi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Pp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Fp(e);h(e.child,!1,Qp,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){Z(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){Z(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){Z(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 title`))),np(r,t,n),r[j]=e,Ht(r),t=r;break a;case`link`:if(o=Gm(`link`,`href`,a).get(t+(n.href||``))){for(s=0;sg&&(o=g,g=h,h=o);var _=Yr(s,h),v=Yr(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;sn?32:n,D.T=null,n=wd,wd=null;var o=bd,s=Sd;if(X=0,xd=bd=null,Sd=0,G&6)throw Error(i(331));var c=G;if(G|=4,Xu(o.current),Hu(o,o.current,s,n),G=c,Df(0,!1),at&&typeof at.onPostCommitFiberRoot==`function`)try{at.onPostCommitFiberRoot(it,o)}catch{}return!0}finally{O.p=a,D.T=r,uf(e,t)}}function pf(e,t,n){t=I(n,t),t=Ac(e.stateNode,t,2),e=bo(e,t,2),e!==null&&(xt(e,2),Ef(e))}function Z(e,t,n){if(e.tag===3)pf(e,e,n);else for(;t!==null;){if(t.tag===3){pf(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(yd===null||!yd.has(r))){e=I(n,e),n=jc(2),r=bo(t,n,2),r!==null&&(Mc(n,r,t,e),xt(r,2),Ef(r));break}}t=t.return}}function mf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new ed;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)||(id=!0,i.add(n),e=hf.bind(null,e,t,n),t.then(e,e))}function hf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,K===e&&(J&n)===n&&(od===4||od===3&&(J&62914560)===J&&300>Ye()-hd?G&2?ld|=n:Vd(e,0):ld|=n,dd===J&&(dd=0)),Ef(e)}function gf(e,t){t===0&&(t=yt()),e=ji(e,t),e!==null&&(xt(e,t),Ef(e))}function _f(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),gf(e,n)}function vf(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),gf(e,n)}function yf(e,t){return Ge(e,t)}var bf=null,xf=null,Sf=!1,Cf=!1,wf=!1,Tf=0;function Ef(e){e!==xf&&e.next===null&&(xf===null?bf=xf=e:xf=xf.next=e),Cf=!0,Sf||(Sf=!0,Nf())}function Df(e,t){if(!wf&&Cf){wf=!0;do for(var n=!1,r=bf;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-st(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,Mf(r,a))}else a=J,a=ht(r,r===K?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||gt(r,a)||(n=!0,Mf(r,a))}r=r.next}while(n);wf=!1}}function Of(){kf()}function kf(){Cf=Sf=!1;var e=0;Tf!==0&&hp()&&(e=Tf);for(var t=Ye(),n=null,r=bf;r!==null;){var i=r.next,a=Af(r,t);a===0?(r.next=null,n===null?bf=i:n.next=i,i===null&&(xf=n)):(n=r,(e!==0||a&3)&&(Cf=!0)),r=i}X!==0&&X!==5||Df(e,!1),Tf!==0&&(Tf=0)}function Af(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0s)break;var u=c.transferSize,d=c.initiatorType;u&&ap(d)&&(c=c.responseEnd,o+=u*(c$m){s.length=o;break}f=new Promise(jp.bind(f)),s.push(f)}}}if(0`u`?null:document;function Tm(e,t,n){var r=wm;if(r&&typeof t==`string`&&t){var i=cn(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),ym.has(i)||(ym.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),np(t,`link`,e),Ht(t),r.head.appendChild(t)))}}function Em(e){xm.D(e),Tm(`dns-prefetch`,e,null)}function Dm(e,t){xm.C(e,t),Tm(`preconnect`,e,t)}function Om(e,t,n){xm.L(e,t,n);var r=wm;if(r&&e&&t){var i=`link[rel="preload"][as="`+cn(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+cn(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+cn(n.imageSizes)+`"]`)):i+=`[href="`+cn(e)+`"]`;var a=i;switch(t){case`style`:a=Pm(e);break;case`script`:a=Rm(e)}if(!(vm.has(a)||(e=w({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),vm.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Fm(a))||t===`script`&&r.querySelector(zm(a))))){var o=r.createElement(`link`);np(o,`link`,e),t===`style`&&(o[Lt]=!0,o.onload=o.onerror=function(){Ut(o)}),Ht(o),r.head.appendChild(o)}}}function km(e,t){xm.m(e,t);var n=wm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+cn(r)+`"][href="`+cn(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Rm(e)}if(!vm.has(a)&&(e=w({rel:`modulepreload`,href:e},t),vm.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(zm(a)))return}r=n.createElement(`link`),np(r,`link`,e),Ht(r),n.head.appendChild(r)}}}function Am(e,t,n){xm.S(e,t,n);var r=wm;if(r&&e){var i=Vt(r).hoistableStyles,a=Pm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Fm(a)))s.loading=5;else{e=w({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=vm.get(a))&&Hm(e,n);var c=o=r.createElement(`link`);Ht(c),np(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,Vm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function jm(e,t){xm.X(e,t);var n=wm;if(n&&e){var r=Vt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=w({src:e,async:!0},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ht(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Mm(e,t){xm.M(e,t);var n=wm;if(n&&e){var r=Vt(n).hoistableScripts,i=Rm(e),a=r.get(i);a||(a=n.querySelector(zm(i)),a||(e=w({src:e,async:!0,type:`module`},t),(t=vm.get(i))&&Um(e,t),a=n.createElement(`script`),Ht(a),np(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t,n,r){var a=(a=je.current)?bm(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=Pm(n.href),t=Vt(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=Pm(n.href);var o=Vt(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(Fm(e)))?o._p||(s.instance=o,s.state.loading=5):(o=vm.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},vm.set(e,o)),Lm(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=Rm(n),t=Vt(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 Pm(e){return`href="`+cn(e)+`"`}function Fm(e){return`link[rel="stylesheet"][`+e+`]`}function Im(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Lm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Lt]){r.loading=1;return}}else t=e.createElement(`link`),t[Lt]=!0,t.onload=t.onerror=Ut.bind(null,t),np(t,`link`,n),Ht(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 Rm(e){return`[src="`+cn(e)+`"]`}function zm(e){return`script[async]`+e}function Bm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+cn(n.href)+`"]`);if(r)return t.instance=r,Ht(r),r;var a=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),Ht(r),np(r,`style`,a),Vm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Pm(n.href);var o=e.querySelector(Fm(a));if(o)return t.state.loading|=4,t.instance=o,Ht(o),o;r=Im(n),(a=vm.get(a))&&Hm(r,a),o=(e.ownerDocument||e).createElement(`link`),Ht(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),np(o,`link`,r),t.state.loading|=4,Vm(o,n.precedence,e),t.instance=o;case`script`:return o=Rm(n.src),(a=e.querySelector(zm(o)))?(t.instance=a,Ht(a),a):(r=n,(a=vm.get(o))&&(r=w({},n),Um(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),Ht(a),np(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,Vm(r,n.precedence,e));return t.instance}function Vm(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 title`):null)}function qm(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 Jm(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Ym(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Xm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Zm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Xm(t),e.suspenseyImages.push(t)),e=rh.bind(e),t.decode().then(e,e))}function Qm(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=Pm(r.href),a=t.querySelector(Fm(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=nh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,Ht(a);return}a=t.ownerDocument||t,r=Im(r),(i=vm.get(i))&&Hm(r,i),a=a.createElement(`link`),Ht(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),np(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=nh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var $m=0;function eh(e,t){return e.stylesheets&&e.count===0&&ah(e,e.stylesheets),0$m?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function th(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)ah(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function nh(){this.count--,th(this)}function rh(){this.imgCount--,th(this)}var ih=null;function ah(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ih=new Map,t.forEach(oh,e),ih=null,nh.call(e))}function oh(e,t){if(!(t.state.loading&4)){var n=ih.get(e);if(n)var r=n.get(null);else{n=new Map,ih.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a{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=h()})),_=e=>e?.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase();function v(e,t,n=[]){if(t==null)throw Error(`[lucide]: iconNode is required when icon name is used`);return{name:_(e),size:24,node:t,...n.length>0?{aliases:n}:{}}}var y=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},b=e=>{let t=y(e);return t.charAt(0).toUpperCase()+t.slice(1)},ee=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),x={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 te(e){return e!=null}function S(e,t={}){let n=t.attributeNames??{},r=e=>n[e]??e,i=e.size??e.width??x.width,a=e.size??e.height??x.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?ee(...c):ee(`lucide`,...s,...c),u=t.absoluteStrokeWidth?Number(t.strokeWidth??x[`stroke-width`])*Number(e.size??e.width??x.width)/Number(t.size??t.width??x.width):t.strokeWidth??x[`stroke-width`];return[`svg`,{...Object.entries(x).reduce((e,[t,n])=>(e[r(t)]=n,e),{}),...`color`in t&&t.color&&{[r(`stroke`)]:t.color},...`size`in t&&te(t.size)&&{[r(`width`)]:t.size,[r(`height`)]:t.size},...`width`in t&&te(t.width)&&{[r(`width`)]:t.width},...`height`in t&&te(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 C(e,t={}){return S(e,{...t,attributeNames:{...t.attributeNames,class:`className`,"stroke-width":`strokeWidth`,"stroke-linecap":`strokeLinecap`,"stroke-linejoin":`strokeLinejoin`,"vector-effect":`vectorEffect`}})}var ne=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},w=c(u(),1),re=(0,w.createContext)({}),ie=()=>(0,w.useContext)(re),ae=(0,w.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:p=24,strokeWidth:m=2,absoluteStrokeWidth:h=!1,nonScalingStroke:g=!1,color:_=`currentColor`,className:v=``}=ie()??{},y=!!c||ne(d),[b,x,te=[]]=C(u,{color:e??_,width:n??t??p,height:r??t??p,strokeWidth:i??m,absoluteStrokeWidth:a??h,nonScalingStroke:o??g,className:ee(v,s),hasA11yProp:y,attributes:d});return(0,w.createElement)(b,{ref:f,...x},[...te.map(([e,t])=>(0,w.createElement)(e,t)),...Array.isArray(c)?c:[c]])});function oe(e,t=[],n=[]){let r=typeof e==`string`?v(e,t,n):e,i=(0,w.forwardRef)(({className:e,...t},n)=>(0,w.createElement)(ae,{ref:n,icon:r,className:e,...t}));return r.name&&(i.displayName=b(r.name)),i}var se={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`}]]};se.node;var ce=oe(se),le={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`}]]};le.node;var ue=oe(le),T={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`}]]};T.node;var de=oe(T),fe={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`}]]};fe.node;var pe=oe(fe),me={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`}]]};me.node;var he=oe(me),ge=g(),_e=Object.defineProperty,ve=(e,t)=>_e(e,`name`,{value:t,configurable:!0});function E(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}ve(E,`setRef`);function ye(...e){return t=>{let n=!1,r=e.map(e=>{let r=E(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;txe(e,`name`,{value:t,configurable:!0});function Ce(e){let t=w.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];ke(r)&&typeof Ne==`function`&&(r=Ne(r._payload)),w.Children.forEach(r,e=>{if(Oe(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;ke(n)&&typeof Ne==`function`&&(n=Ne(n._payload)),a=Te(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=w.cloneElement(a,void 0,s):!o&&w.Children.count(r)===1&&w.isValidElement(r)&&(a=r);let c=a?De(a):void 0,l=be(n,c);if(!a){if(r||r===0)throw Error(o?Me(e):je(e));return r}let u=Ee(i,a.props??{});return a.type!==w.Fragment&&(u.ref=n?l:c),w.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}Se(Ce,`createSlot`);var D=Ce(`Slot`),O=Symbol.for(`radix.slottable`);function we(e){let t=Se(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=O,t}Se(we,`createSlottable`);var Te=Se((e,t)=>{if(`child`in e.props){let t=e.props.child;return w.isValidElement(t)?w.cloneElement(t,void 0,e.props.children(t.props.children)):null}return w.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function Ee(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(` `))}return{...e,...n}}Se(Ee,`mergeProps`);function De(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)}Se(De,`getElementRef`);function Oe(e){return w.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===O}Se(Oe,`isSlottable`);var k=Symbol.for(`react.lazy`);function ke(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===k&&`_payload`in e&&Ae(e._payload)}Se(ke,`isLazyComponent`);function Ae(e){return typeof e==`object`&&!!e&&`then`in e}Se(Ae,`isPromiseLike`);var je=Se(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Me=Se(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Ne=w.use;function Pe(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;ttypeof e==`boolean`?`${e}`:e===0?`0`:e,Le=Fe,Re=(e,t)=>n=>{if(t?.variants==null)return Le(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=Ie(t)||Ie(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return Le(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},ze=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t({classGroupId:e,validator:t}),Ve=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),He=`-`,Ue=[],We=`arbitrary..`,Ge=e=>{let t=Je(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return qe(e);let n=e.split(He);return Ke(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?ze(i,t):t:i||Ue}return n[e]||Ue}}},Ke=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Ke(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(He):e.slice(t).join(He),s=a.length;for(let e=0;ee.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?We+r:void 0})(),Je=e=>{let{theme:t,classGroups:n}=e;return Ye(n,t)},Ye=(e,t)=>{let n=Ve();for(let r in e){let i=e[r];Xe(i,n,r,t)}return n},Xe=(e,t,n,r)=>{let i=e.length;for(let a=0;a{if(typeof e==`string`){Qe(e,t,n);return}if(typeof e==`function`){$e(e,t,n,r);return}et(e,t,n,r)},Qe=(e,t,n)=>{let r=e===``?t:tt(t,e);r.classGroupId=n},$e=(e,t,n,r)=>{if(nt(e)){Xe(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(Be(n,e))},et=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e{let n=e,r=t.split(He),i=r.length;for(let e=0;e`isThemeGetter`in e&&e.isThemeGetter===!0,rt=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},it=`!`,at=`:`,ot=[],st=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),ct=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;si?a-i:void 0;return st(t,l,c,u)};if(t){let e=t+at,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):st(ot,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},lt=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},ut=e=>({cache:rt(e.cacheSize),parseClassName:ct(e),sortModifiers:lt(e),postfixLookupClassGroupIds:dt(e),...Ge(e)}),dt=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(ft),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+it:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e0?` `+l:l)}return l},mt=(...e)=>{let t=0,n,r,i=``;for(;t{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r{let n,r,i,a,o=o=>(n=ut(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=pt(e,n);return i(e,a),a};return a=o,(...e)=>a(mt(...e))},_t=[],vt=e=>{let t=t=>t[e]||_t;return t.isThemeGetter=!0,t.themeKey=e,t},yt=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,bt=/^\((?:(\w[\w-]*):)?(.+)\)$/i,xt=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,St=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ct=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,wt=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix|color|light-dark)\(.+\)$/,Tt=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Et=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Dt=e=>xt.test(e),A=e=>!!e&&!Number.isNaN(Number(e)),Ot=e=>!!e&&Number.isInteger(Number(e)),kt=e=>e.endsWith(`%`)&&A(e.slice(0,-1)),j=e=>St.test(e),At=()=>!0,jt=e=>Ct.test(e)&&!wt.test(e),Mt=()=>!1,Nt=e=>Tt.test(e),Pt=e=>Et.test(e),Ft=e=>!M(e)&&!N(e),It=e=>e.startsWith(`@container`)&&(e[10]===`/`&&e[11]!==void 0||e[11]===`s`&&e[16]!==void 0&&e.startsWith(`-size/`,10)||e[11]===`n`&&e[18]!==void 0&&e.startsWith(`-normal/`,10)),Lt=e=>Zt(e,tn,Mt),M=e=>yt.test(e),Rt=e=>Zt(e,nn,jt),zt=e=>Zt(e,rn,A),Bt=e=>Zt(e,on,At),Vt=e=>Zt(e,an,Mt),Ht=e=>Zt(e,$t,Mt),Ut=e=>Zt(e,en,Pt),Wt=e=>Zt(e,sn,Nt),N=e=>bt.test(e),Gt=e=>Qt(e,nn),Kt=e=>Qt(e,an),qt=e=>Qt(e,$t),Jt=e=>Qt(e,tn),Yt=e=>Qt(e,en),Xt=e=>Qt(e,sn,!0),P=e=>Qt(e,on,!0),Zt=(e,t,n)=>{let r=yt.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},Qt=(e,t,n=!1)=>{let r=bt.exec(e);return r?r[1]?t(r[1]):n:!1},$t=e=>e===`position`||e===`percentage`,en=e=>e===`image`||e===`url`,tn=e=>e===`length`||e===`size`||e===`bg-size`,nn=e=>e===`length`,rn=e=>e===`number`,an=e=>e===`family-name`,on=e=>e===`number`||e===`weight`,sn=e=>e===`shadow`,cn=gt(()=>{let e=vt(`color`),t=vt(`font`),n=vt(`text`),r=vt(`font-weight`),i=vt(`tracking`),a=vt(`leading`),o=vt(`breakpoint`),s=vt(`container`),c=vt(`spacing`),l=vt(`radius`),u=vt(`shadow`),d=vt(`inset-shadow`),f=vt(`text-shadow`),p=vt(`drop-shadow`),m=vt(`blur`),h=vt(`perspective`),g=vt(`aspect`),_=vt(`ease`),v=vt(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],ee=()=>[...b(),N,M],x=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],te=()=>[`auto`,`contain`,`none`],S=()=>[N,M,c],C=()=>[Dt,`full`,`auto`,...S()],ne=()=>[Ot,`none`,`subgrid`,N,M],w=()=>[`auto`,{span:[`full`,Ot,N,M]},Ot,N,M],re=()=>[Ot,`auto`,N,M],ie=()=>[`auto`,`min`,`max`,`fr`,N,M],ae=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],oe=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],se=()=>[`auto`,...S()],ce=()=>[Dt,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...S()],le=()=>[s,Dt,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...S()],ue=()=>[Dt,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...S()],T=()=>[e,N,M],de=()=>[...b(),qt,Ht,{position:[N,M]}],fe=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],pe=()=>[`auto`,`cover`,`contain`,Jt,Lt,{size:[N,M]}],me=()=>[kt,Gt,Rt],he=()=>[``,`none`,`full`,l,N,M],ge=()=>[``,A,Gt,Rt],_e=()=>[`solid`,`dashed`,`dotted`,`double`],ve=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],E=()=>[A,kt,qt,Ht],ye=()=>[``,`none`,m,N,M],be=()=>[`none`,A,N,M],xe=()=>[`none`,A,N,M],Se=()=>[A,N,M],Ce=()=>[Dt,`full`,...S()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[j],breakpoint:[j],color:[At],container:[j],"drop-shadow":[j],ease:[`in`,`out`,`in-out`],font:[Ft],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[j],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[j],shadow:[j],spacing:[`px`,A],text:[j],"text-shadow":[j],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,Dt,M,N,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,N,M]}],"container-named":[It],columns:[{columns:[A,`auto`,M,N,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"break-inside":[{"break-inside":[`auto`,`avoid`,`avoid-page`,`avoid-column`]}],"box-decoration":[{"box-decoration":[`slice`,`clone`]}],box:[{box:[`border`,`content`]}],display:[`block`,`inline-block`,`inline`,`flex`,`inline-flex`,`table`,`inline-table`,`table-caption`,`table-cell`,`table-column`,`table-column-group`,`table-footer-group`,`table-header-group`,`table-row-group`,`table-row`,`flow-root`,`grid`,`inline-grid`,`contents`,`list-item`,`hidden`],sr:[`sr-only`,`not-sr-only`],float:[{float:[`right`,`left`,`none`,`start`,`end`]}],clear:[{clear:[`left`,`right`,`both`,`none`,`start`,`end`]}],isolation:[`isolate`,`isolation-auto`],"object-fit":[{object:[`contain`,`cover`,`fill`,`none`,`scale-down`]}],"object-position":[{object:ee()}],overflow:[{overflow:x()}],"overflow-x":[{"overflow-x":x()}],"overflow-y":[{"overflow-y":x()}],overscroll:[{overscroll:te()}],"overscroll-x":[{"overscroll-x":te()}],"overscroll-y":[{"overscroll-y":te()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{"inset-s":C(),start:C()}],end:[{"inset-e":C(),end:C()}],"inset-bs":[{"inset-bs":C()}],"inset-be":[{"inset-be":C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[Ot,`auto`,N,M]}],basis:[{basis:[Dt,`full`,`auto`,s,...S()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[A,Dt,`auto`,`initial`,`none`,M]}],grow:[{grow:[``,A,N,M]}],shrink:[{shrink:[``,A,N,M]}],order:[{order:[Ot,`first`,`last`,`none`,N,M]}],"grid-cols":[{"grid-cols":ne()}],"col-start-end":[{col:w()}],"col-start":[{"col-start":re()}],"col-end":[{"col-end":re()}],"grid-rows":[{"grid-rows":ne()}],"row-start-end":[{row:w()}],"row-start":[{"row-start":re()}],"row-end":[{"row-end":re()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":ie()}],"auto-rows":[{"auto-rows":ie()}],gap:[{gap:S()}],"gap-x":[{"gap-x":S()}],"gap-y":[{"gap-y":S()}],"justify-content":[{justify:[...ae(),`normal`]}],"justify-items":[{"justify-items":[...oe(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...oe()]}],"align-content":[{content:[`normal`,...ae()]}],"align-items":[{items:[...oe(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...oe(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":ae()}],"place-items":[{"place-items":[...oe(),`baseline`]}],"place-self":[{"place-self":[`auto`,...oe()]}],p:[{p:S()}],px:[{px:S()}],py:[{py:S()}],ps:[{ps:S()}],pe:[{pe:S()}],pbs:[{pbs:S()}],pbe:[{pbe:S()}],pt:[{pt:S()}],pr:[{pr:S()}],pb:[{pb:S()}],pl:[{pl:S()}],m:[{m:se()}],mx:[{mx:se()}],my:[{my:se()}],ms:[{ms:se()}],me:[{me:se()}],mbs:[{mbs:se()}],mbe:[{mbe:se()}],mt:[{mt:se()}],mr:[{mr:se()}],mb:[{mb:se()}],ml:[{ml:se()}],"space-x":[{"space-x":S()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":S()}],"space-y-reverse":[`space-y-reverse`],size:[{size:ce()}],"inline-size":[{inline:[`auto`,...le()]}],"min-inline-size":[{"min-inline":[`auto`,...le()]}],"max-inline-size":[{"max-inline":[`none`,...le()]}],"block-size":[{block:[`auto`,...ue()]}],"min-block-size":[{"min-block":[`auto`,...ue()]}],"max-block-size":[{"max-block":[`none`,...ue()]}],w:[{w:[s,`screen`,...ce()]}],"min-w":[{"min-w":[s,`screen`,`none`,...ce()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...ce()]}],h:[{h:[`screen`,`lh`,...ce()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...ce()]}],"max-h":[{"max-h":[`screen`,`lh`,`none`,...ce()]}],"font-size":[{text:[`base`,n,Gt,Rt]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,P,Bt]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,kt,M]}],"font-family":[{font:[Kt,Vt,t]}],"font-features":[{"font-features":[M]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,N,M]}],"line-clamp":[{"line-clamp":[A,`none`,N,zt]}],leading:[{leading:[`none`,a,...S()]}],"list-image":[{"list-image":[`none`,N,M]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,N,M]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:T()}],"text-color":[{text:T()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[..._e(),`wavy`]}],"text-decoration-thickness":[{decoration:[A,`from-font`,`auto`,N,Rt]}],"text-decoration-color":[{decoration:T()}],"underline-offset":[{"underline-offset":[A,`auto`,N,M]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:S()}],"tab-size":[{tab:[Ot,N,M]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,N,M]}],whitespace:[{whitespace:[`normal`,`nowrap`,`pre`,`pre-line`,`pre-wrap`,`break-spaces`]}],break:[{break:[`normal`,`words`,`all`,`keep`]}],wrap:[{wrap:[`break-word`,`anywhere`,`normal`]}],hyphens:[{hyphens:[`none`,`manual`,`auto`]}],content:[{content:[`none`,N,M]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:de()}],"bg-repeat":[{bg:fe()}],"bg-size":[{bg:pe()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},Ot,N,M],radial:[``,N,M],conic:[``,Ot,N,M]},Yt,Ut]}],"bg-color":[{bg:T()}],"gradient-from-pos":[{from:me()}],"gradient-via-pos":[{via:me()}],"gradient-to-pos":[{to:me()}],"gradient-from":[{from:T()}],"gradient-via":[{via:T()}],"gradient-to":[{to:T()}],rounded:[{rounded:he()}],"rounded-s":[{"rounded-s":he()}],"rounded-e":[{"rounded-e":he()}],"rounded-t":[{"rounded-t":he()}],"rounded-r":[{"rounded-r":he()}],"rounded-b":[{"rounded-b":he()}],"rounded-l":[{"rounded-l":he()}],"rounded-ss":[{"rounded-ss":he()}],"rounded-se":[{"rounded-se":he()}],"rounded-ee":[{"rounded-ee":he()}],"rounded-es":[{"rounded-es":he()}],"rounded-tl":[{"rounded-tl":he()}],"rounded-tr":[{"rounded-tr":he()}],"rounded-br":[{"rounded-br":he()}],"rounded-bl":[{"rounded-bl":he()}],"border-w":[{border:ge()}],"border-w-x":[{"border-x":ge()}],"border-w-y":[{"border-y":ge()}],"border-w-s":[{"border-s":ge()}],"border-w-e":[{"border-e":ge()}],"border-w-bs":[{"border-bs":ge()}],"border-w-be":[{"border-be":ge()}],"border-w-t":[{"border-t":ge()}],"border-w-r":[{"border-r":ge()}],"border-w-b":[{"border-b":ge()}],"border-w-l":[{"border-l":ge()}],"divide-x":[{"divide-x":ge()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":ge()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[..._e(),`hidden`,`none`]}],"divide-style":[{divide:[..._e(),`hidden`,`none`]}],"border-color":[{border:T()}],"border-color-x":[{"border-x":T()}],"border-color-y":[{"border-y":T()}],"border-color-s":[{"border-s":T()}],"border-color-e":[{"border-e":T()}],"border-color-bs":[{"border-bs":T()}],"border-color-be":[{"border-be":T()}],"border-color-t":[{"border-t":T()}],"border-color-r":[{"border-r":T()}],"border-color-b":[{"border-b":T()}],"border-color-l":[{"border-l":T()}],"divide-color":[{divide:T()}],"outline-style":[{outline:[..._e(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[A,N,M]}],"outline-w":[{outline:[``,A,Gt,Rt]}],"outline-color":[{outline:T()}],shadow:[{shadow:[``,`inner`,`none`,u,Xt,Wt]}],"shadow-color":[{shadow:T()}],"inset-shadow":[{"inset-shadow":[`none`,d,Xt,Wt]}],"inset-shadow-color":[{"inset-shadow":T()}],"ring-w":[{ring:ge()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:T()}],"ring-offset-w":[{"ring-offset":[A,Rt]}],"ring-offset-color":[{"ring-offset":T()}],"inset-ring-w":[{"inset-ring":ge()}],"inset-ring-color":[{"inset-ring":T()}],"text-shadow":[{"text-shadow":[`none`,f,Xt,Wt]}],"text-shadow-color":[{"text-shadow":T()}],opacity:[{opacity:[A,N,M]}],"mix-blend":[{"mix-blend":[...ve(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ve()}],"mask-clip":[{"mask-clip":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]},`mask-no-clip`],"mask-composite":[{mask:[`add`,`subtract`,`intersect`,`exclude`]}],"mask-image-linear-pos":[{"mask-linear":[A]}],"mask-image-linear-from-pos":[{"mask-linear-from":E()}],"mask-image-linear-to-pos":[{"mask-linear-to":E()}],"mask-image-linear-from-color":[{"mask-linear-from":T()}],"mask-image-linear-to-color":[{"mask-linear-to":T()}],"mask-image-t-from-pos":[{"mask-t-from":E()}],"mask-image-t-to-pos":[{"mask-t-to":E()}],"mask-image-t-from-color":[{"mask-t-from":T()}],"mask-image-t-to-color":[{"mask-t-to":T()}],"mask-image-r-from-pos":[{"mask-r-from":E()}],"mask-image-r-to-pos":[{"mask-r-to":E()}],"mask-image-r-from-color":[{"mask-r-from":T()}],"mask-image-r-to-color":[{"mask-r-to":T()}],"mask-image-b-from-pos":[{"mask-b-from":E()}],"mask-image-b-to-pos":[{"mask-b-to":E()}],"mask-image-b-from-color":[{"mask-b-from":T()}],"mask-image-b-to-color":[{"mask-b-to":T()}],"mask-image-l-from-pos":[{"mask-l-from":E()}],"mask-image-l-to-pos":[{"mask-l-to":E()}],"mask-image-l-from-color":[{"mask-l-from":T()}],"mask-image-l-to-color":[{"mask-l-to":T()}],"mask-image-x-from-pos":[{"mask-x-from":E()}],"mask-image-x-to-pos":[{"mask-x-to":E()}],"mask-image-x-from-color":[{"mask-x-from":T()}],"mask-image-x-to-color":[{"mask-x-to":T()}],"mask-image-y-from-pos":[{"mask-y-from":E()}],"mask-image-y-to-pos":[{"mask-y-to":E()}],"mask-image-y-from-color":[{"mask-y-from":T()}],"mask-image-y-to-color":[{"mask-y-to":T()}],"mask-image-radial":[{"mask-radial":[N,M]}],"mask-image-radial-from-pos":[{"mask-radial-from":E()}],"mask-image-radial-to-pos":[{"mask-radial-to":E()}],"mask-image-radial-from-color":[{"mask-radial-from":T()}],"mask-image-radial-to-color":[{"mask-radial-to":T()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[A]}],"mask-image-conic-from-pos":[{"mask-conic-from":E()}],"mask-image-conic-to-pos":[{"mask-conic-to":E()}],"mask-image-conic-from-color":[{"mask-conic-from":T()}],"mask-image-conic-to-color":[{"mask-conic-to":T()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:de()}],"mask-repeat":[{mask:fe()}],"mask-size":[{mask:pe()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,N,M]}],filter:[{filter:[``,`none`,N,M]}],blur:[{blur:ye()}],brightness:[{brightness:[A,N,M]}],contrast:[{contrast:[A,N,M]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Xt,Wt]}],"drop-shadow-color":[{"drop-shadow":T()}],grayscale:[{grayscale:[``,A,N,M]}],"hue-rotate":[{"hue-rotate":[A,N,M]}],invert:[{invert:[``,A,N,M]}],saturate:[{saturate:[A,N,M]}],sepia:[{sepia:[``,A,N,M]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,N,M]}],"backdrop-blur":[{"backdrop-blur":ye()}],"backdrop-brightness":[{"backdrop-brightness":[A,N,M]}],"backdrop-contrast":[{"backdrop-contrast":[A,N,M]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,A,N,M]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[A,N,M]}],"backdrop-invert":[{"backdrop-invert":[``,A,N,M]}],"backdrop-opacity":[{"backdrop-opacity":[A,N,M]}],"backdrop-saturate":[{"backdrop-saturate":[A,N,M]}],"backdrop-sepia":[{"backdrop-sepia":[``,A,N,M]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":S()}],"border-spacing-x":[{"border-spacing-x":S()}],"border-spacing-y":[{"border-spacing-y":S()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,N,M]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[A,`initial`,N,M]}],ease:[{ease:[`linear`,`initial`,_,N,M]}],delay:[{delay:[A,N,M]}],animate:[{animate:[`none`,v,N,M]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,N,M]}],"perspective-origin":[{"perspective-origin":ee()}],rotate:[{rotate:be()}],"rotate-x":[{"rotate-x":be()}],"rotate-y":[{"rotate-y":be()}],"rotate-z":[{"rotate-z":be()}],scale:[{scale:xe()}],"scale-x":[{"scale-x":xe()}],"scale-y":[{"scale-y":xe()}],"scale-z":[{"scale-z":xe()}],"scale-3d":[`scale-3d`],skew:[{skew:Se()}],"skew-x":[{"skew-x":Se()}],"skew-y":[{"skew-y":Se()}],transform:[{transform:[N,M,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:ee()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:Ce()}],"translate-x":[{"translate-x":Ce()}],"translate-y":[{"translate-y":Ce()}],"translate-z":[{"translate-z":Ce()}],"translate-none":[`translate-none`],zoom:[{zoom:[Ot,N,M]}],accent:[{accent:T()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:T()}],"color-scheme":[{scheme:[`normal`,`dark`,`light`,`light-dark`,`only-dark`,`only-light`]}],cursor:[{cursor:[`auto`,`default`,`pointer`,`wait`,`text`,`move`,`help`,`not-allowed`,`none`,`context-menu`,`progress`,`cell`,`crosshair`,`vertical-text`,`alias`,`copy`,`no-drop`,`grab`,`grabbing`,`all-scroll`,`col-resize`,`row-resize`,`n-resize`,`e-resize`,`s-resize`,`w-resize`,`ne-resize`,`nw-resize`,`se-resize`,`sw-resize`,`ew-resize`,`ns-resize`,`nesw-resize`,`nwse-resize`,`zoom-in`,`zoom-out`,N,M]}],"field-sizing":[{"field-sizing":[`fixed`,`content`]}],"pointer-events":[{"pointer-events":[`auto`,`none`]}],resize:[{resize:[`none`,``,`y`,`x`]}],"scroll-behavior":[{scroll:[`auto`,`smooth`]}],"scrollbar-thumb-color":[{"scrollbar-thumb":T()}],"scrollbar-track-color":[{"scrollbar-track":T()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":S()}],"scroll-mx":[{"scroll-mx":S()}],"scroll-my":[{"scroll-my":S()}],"scroll-ms":[{"scroll-ms":S()}],"scroll-me":[{"scroll-me":S()}],"scroll-mbs":[{"scroll-mbs":S()}],"scroll-mbe":[{"scroll-mbe":S()}],"scroll-mt":[{"scroll-mt":S()}],"scroll-mr":[{"scroll-mr":S()}],"scroll-mb":[{"scroll-mb":S()}],"scroll-ml":[{"scroll-ml":S()}],"scroll-p":[{"scroll-p":S()}],"scroll-px":[{"scroll-px":S()}],"scroll-py":[{"scroll-py":S()}],"scroll-ps":[{"scroll-ps":S()}],"scroll-pe":[{"scroll-pe":S()}],"scroll-pbs":[{"scroll-pbs":S()}],"scroll-pbe":[{"scroll-pbe":S()}],"scroll-pt":[{"scroll-pt":S()}],"scroll-pr":[{"scroll-pr":S()}],"scroll-pb":[{"scroll-pb":S()}],"scroll-pl":[{"scroll-pl":S()}],"snap-align":[{snap:[`start`,`end`,`center`,`align-none`]}],"snap-stop":[{snap:[`normal`,`always`]}],"snap-type":[{snap:[`none`,`x`,`y`,`both`]}],"snap-strictness":[{snap:[`mandatory`,`proximity`]}],touch:[{touch:[`auto`,`none`,`manipulation`]}],"touch-x":[{"touch-pan":[`x`,`left`,`right`]}],"touch-y":[{"touch-pan":[`y`,`up`,`down`]}],"touch-pz":[`touch-pinch-zoom`],select:[{select:[`none`,`text`,`all`,`auto`]}],"will-change":[{"will-change":[`auto`,`scroll`,`contents`,`transform`,N,M]}],fill:[{fill:[`none`,...T()]}],"stroke-w":[{stroke:[A,Gt,Rt,zt]}],stroke:[{stroke:[`none`,...T()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`start`,`end`,`right`,`left`],"inset-y":[`inset-bs`,`inset-be`,`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`ps`,`pe`,`pr`,`pl`],py:[`pbs`,`pbe`,`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`ms`,`me`,`mr`,`ml`],my:[`mbs`,`mbe`,`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-s`,`border-w-e`,`border-w-r`,`border-w-l`],"border-w-y":[`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-s`,`border-color-e`,`border-color-r`,`border-color-l`],"border-color-y":[`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-ms`,`scroll-me`,`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-ps`,`scroll-pe`,`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function ln(...e){return cn(Fe(e))}var un=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=un()}))(),dn=Re(`inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0`,{variants:{variant:{default:`bg-primary text-primary-foreground shadow hover:bg-primary/90`,destructive:`bg-destructive text-destructive-foreground shadow-sm hover:bg-destructive/90`,outline:`border border-input bg-background shadow-sm hover:bg-accent hover:text-accent-foreground`,secondary:`bg-secondary text-secondary-foreground shadow-sm hover:bg-secondary/80`,ghost:`hover:bg-accent hover:text-accent-foreground`,link:`text-primary underline-offset-4 hover:underline`},size:{default:`h-9 px-4 py-2`,sm:`h-8 rounded-md px-3 text-xs`,lg:`h-10 rounded-md px-8`,icon:`h-9 w-9`}},defaultVariants:{variant:`default`,size:`default`}}),fn=w.forwardRef(({className:e,variant:t,size:n,asChild:r=!1,...i},a)=>(0,F.jsx)(r?D:`button`,{className:ln(dn({variant:t,size:n,className:e})),ref:a,...i}));fn.displayName=`Button`;var pn=w.forwardRef(({className:e,type:t,...n},r)=>(0,F.jsx)(`input`,{type:t,className:ln(`flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:r,...n}));pn.displayName=`Input`;var mn=c(m(),1),hn=Object.defineProperty,gn=(e,t)=>hn(e,`name`,{value:t,configurable:!0}),_n=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=Ce(`Primitive.${t}`),r=w.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,F.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function vn(e,t){e&&mn.flushSync(()=>e.dispatchEvent(t))}gn(vn,`dispatchDiscreteCustomEvent`);var yn=Object.defineProperty,bn=w.forwardRef(((e,t)=>yn(e,`name`,{value:t,configurable:!0}))(function(e,t){return(0,F.jsx)(_n.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},`Label`)),xn=Re(`text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70`),Sn=w.forwardRef(({className:e,...t},n)=>(0,F.jsx)(bn,{ref:n,className:ln(xn(),e),...t}));Sn.displayName=bn.displayName;var Cn=Object.defineProperty,wn=(e,t)=>Cn(e,`name`,{value:t,configurable:!0}),Tn=!!(typeof window<`u`&&window.document&&window.document.createElement);function En(e,t,{checkForDefaultPrevented:n=!0}={}){return wn(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}wn(En,`composeEventHandlers`);function Dn(e){if(!Tn)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}wn(Dn,`getOwnerWindow`);function On(e){if(!Tn)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}wn(On,`getOwnerDocument`);function kn(e,t=!1){let{activeElement:n}=On(e);if(!n?.nodeName)return null;if(An(n)&&n.contentDocument)return kn(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=On(n).getElementById(e);if(t)return t}}return n}wn(kn,`getActiveElement`);function An(e){return e.tagName===`IFRAME`}wn(An,`isFrame`);var jn=Object.defineProperty,Mn=(e,t)=>jn(e,`name`,{value:t,configurable:!0});function Nn(e,t){let n=w.createContext(t);n.displayName=e+`Context`;let r=Mn(e=>{let{children:t,...r}=e,i=w.useMemo(()=>r,Object.values(r));return(0,F.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=w.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Mn(i,`useContext`),[r,i]}Mn(Nn,`createContext`);function Pn(e,t=[]){let n=[];function r(t,r){let i=w.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Mn(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=w.useMemo(()=>o,Object.values(o));return(0,F.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=w.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Mn(s,`useContext`),[o,s]}Mn(r,`createContext`);let i=Mn(()=>{let t=n.map(e=>w.createContext(e));return Mn(function(n){let r=n?.[e]||t;return w.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Fn(i,...t)]}Mn(Pn,`createContextScope`);function Fn(...e){let t=e[0];if(e.length===1)return t;let n=Mn(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Mn(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return w.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Mn(Fn,`composeContextScopes`);var In=Object.defineProperty,Ln=(e,t)=>In(e,`name`,{value:t,configurable:!0});function Rn(e){let t=e+`CollectionProvider`,[n,r]=Pn(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Ln(e=>{let{scope:t,children:n}=e,r=w.useRef(null),a=w.useRef(new Map).current;return(0,F.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=Ce(s),l=w.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=be(t,a(s,n).collectionRef);return(0,F.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=Ce(u),p=w.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=w.useRef(null),s=be(t,o),c=a(u,n);return w.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,F.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return w.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 Ln(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}Ln(Rn,`createCollection`);var zn=new WeakMap,Bn=class e extends Map{static{Ln(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],zn.set(this,!0)}set(e,t){return zn.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=Un(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=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 Vn(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=Hn(e,t);return n===-1?void 0:e[n]}Ln(Vn,`at`);function Hn(e,t){let n=e.length,r=Un(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Ln(Hn,`toSafeIndex`);function Un(e){return e!==e||e===0?0:Math.trunc(e)}Ln(Un,`toSafeInteger`);function Wn(e){let t=e+`CollectionProvider`,[n,r]=Pn(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Bn,setItemMap:Ln(()=>void 0,`setItemMap`)}),o=Ln(({state:e,...t})=>e?(0,F.jsx)(c,{...t,state:e}):(0,F.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=Ln(e=>{let t=h();return(0,F.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=Ln(e=>{let{scope:t,children:n,state:r}=e,a=w.useRef(null),[o,s]=w.useState(null),c=be(a,s),[l,u]=r;return w.useEffect(()=>{if(!o)return;let e=Jn(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,F.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=Ce(l),d=w.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=be(t,a(l,n).collectionRef);return(0,F.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=Ce(f),m=w.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=w.useRef(null),[s,c]=w.useState(null),l=be(t,o,c),{setItemMap:u}=a(f,n),d=w.useRef(i);Gn(d.current,i)||(d.current=i);let m=d.current;return w.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(qn):(t.set(s,{...e,element:s}),t.toSorted(qn)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new Bn(e)))}},[s,m,u]),(0,F.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return w.useState(new Bn)}Ln(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return Ln(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}Ln(Wn,`createCollection`);function Gn(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}Ln(Gn,`shallowEqual`);function Kn(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Ln(Kn,`isElementPreceding`);function qn(e,t){return!e[1].element||!t[1].element?0:Kn(e[1].element,t[1].element)?-1:1}Ln(qn,`sortByDocumentPosition`);function Jn(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}Ln(Jn,`getChildListObserver`);var Yn=globalThis?.document?w.useLayoutEffect:()=>{},Xn=Object.defineProperty,Zn=(e,t)=>Xn(e,`name`,{value:t,configurable:!0}),Qn=w.useId||(()=>void 0),$n=0;function er(e){let[t,n]=w.useState(Qn());return Yn(()=>{e||n(e=>e??String($n++))},[e]),e||(t?`radix-${t}`:``)}Zn(er,`useId`);var tr=Object.defineProperty,nr=(e,t)=>tr(e,`name`,{value:t,configurable:!0});function rr(e){let t=w.useRef(e);return w.useEffect(()=>{t.current=e}),w.useMemo(()=>((...e)=>t.current?.(...e)),[])}nr(rr,`useCallbackRef`);var ir=Object.defineProperty,ar=(e,t)=>ir(e,`name`,{value:t,configurable:!0}),or=w.useEffectEvent,sr=w.useInsertionEffect;function cr(e){if(typeof or==`function`)return or(e);let t=w.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof sr==`function`?sr(()=>{t.current=e}):Yn(()=>{t.current=e}),w.useMemo(()=>((...e)=>t.current?.(...e)),[])}ar(cr,`useEffectEvent`);var lr=Object.defineProperty,ur=(e,t)=>lr(e,`name`,{value:t,configurable:!0}),dr=w.useInsertionEffect||Yn;function fr({prop:e,defaultProp:t,onChange:n=ur(()=>{},`onChange`),caller:r}){let[i,a,o]=pr({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,w.useCallback(t=>{if(s){let n=mr(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}ur(fr,`useControllableState`);function pr({defaultProp:e,onChange:t}){let[n,r]=w.useState(e),i=w.useRef(n),a=w.useRef(t);return dr(()=>{a.current=t},[t]),w.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}ur(pr,`useUncontrolledState`);function mr(e){return typeof e==`function`}ur(mr,`isFunction`);var hr=Symbol(`RADIX:SYNC_STATE`);function gr(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=cr(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=w.useReducer((t,n)=>{if(n.type===hr)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=w.useRef(p);w.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=w.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return w.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:hr,state:i})},[i,d.state,c]),[h,f]}ur(gr,`useControllableStateReducer`);var _r=Object.defineProperty,vr=(e,t)=>_r(e,`name`,{value:t,configurable:!0}),yr=w.createContext(void 0);function br(e){let t=w.useContext(yr);return e||t||`ltr`}vr(br,`useDirection`);var xr=Object.defineProperty,Sr=(e,t)=>xr(e,`name`,{value:t,configurable:!0}),Cr=!1;function wr(){let[e,t]=w.useState(Cr);return w.useEffect(()=>{Cr||(Cr=!0,t(!0))},[]),e}Sr(wr,`useIsHydrated`);var Tr=w.useSyncExternalStore;function Er(){return()=>{}}Sr(Er,`subscribe`);function Dr(){return Tr(Er,()=>!0,()=>!1)}Sr(Dr,`useIsHydratedModern`);var Or=typeof Tr==`function`?Dr:wr,kr=Object.defineProperty,Ar=(e,t)=>kr(e,`name`,{value:t,configurable:!0}),jr=`rovingFocusGroup.onEntryFocus`,Mr={bubbles:!1,cancelable:!0},Nr=`RovingFocusGroup`,[Pr,Fr,Ir]=Rn(Nr),[Lr,Rr]=Pn(Nr,[Ir]),[zr,Br]=Lr(Nr),Vr=w.forwardRef(Ar(function(e,t){return(0,F.jsx)(Pr.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(Pr.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,F.jsx)(Hr,{...e,ref:t})})})},`RovingFocusGroup`)),Hr=w.forwardRef(Ar(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=w.useRef(null),p=be(t,f),m=br(a),[h,g]=fr({prop:o,defaultProp:s??null,onChange:c,caller:Nr}),[_,v]=w.useState(!1),y=rr(l),b=Fr(n),ee=w.useRef(!1),[x,te]=w.useState(0);return w.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(jr,y),()=>e.removeEventListener(jr,y)},[y]),(0,F.jsx)(zr,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:w.useCallback(e=>g(e),[g]),onItemShiftTab:w.useCallback(()=>v(!0),[]),onFocusableItemAdd:w.useCallback(()=>te(e=>e+1),[]),onFocusableItemRemove:w.useCallback(()=>te(e=>e-1),[]),children:(0,F.jsx)(_n.div,{tabIndex:_||x===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:En(e.onMouseDown,()=>{ee.current=!0}),onFocus:En(e.onFocus,e=>{let t=!ee.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(jr,Mr);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);Jr([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}ee.current=!1}),onBlur:En(e.onBlur,()=>v(!1))})})},`RovingFocusGroupImpl`)),Ur=`RovingFocusGroupItem`,Wr=w.forwardRef(Ar(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=er(),l=a||c,u=Br(Ur,n),d=u.currentTabStopId===l,f=Fr(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=Or();return Yn(()=>{if(g&&r)return p(),()=>m()},[g,r,p,m]),w.useEffect(()=>{if(!g&&r)return p(),()=>m()},[g,r,p,m]),(0,F.jsx)(Pr.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,F.jsx)(_n.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:En(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:En(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:En(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=qr(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?Yr(n,r+1):n.slice(r+1)}setTimeout(()=>Jr(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),Gr={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function Kr(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}Ar(Kr,`getDirectionAwareKey`);function qr(e,t,n){let r=Kr(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Gr[r]}Ar(qr,`getFocusIntent`);function Jr(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}Ar(Jr,`focusFirst`);function Yr(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Ar(Yr,`wrapArray`);var Xr=Vr,Zr=Wr,Qr=Object.defineProperty,$r=(e,t)=>Qr(e,`name`,{value:t,configurable:!0});function ei(e,t){return w.useReducer((e,n)=>t[e][n]??e,e)}$r(ei,`useStateMachine`);var ti=$r(e=>{let{present:t,children:n}=e,r=ni(t),i=typeof n==`function`?n({present:r.isPresent}):w.Children.only(n),a=ii(r.ref,oi(i));return typeof n==`function`||r.isPresent?w.cloneElement(i,{ref:a}):null},`Presence`);function ni(e){let[t,n]=w.useState(),r=w.useRef(null),i=w.useRef(e),a=w.useRef(`none`),o=w.useRef(void 0),[s,c]=ei(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return w.useEffect(()=>{s===`mounted`?(a.current=o.current??ai(r.current),o.current=void 0):a.current=`none`},[s]),Yn(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=ai(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]),Yn(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=$r(a=>{let o=ai(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=$r(e=>{e.target===t&&(a.current=ai(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:w.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=ai(t)}else r.current=null;n(e)},[])}}$r(ni,`usePresence`);function ri(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}$r(ri,`setRef`);function ii(...e){let t=w.useRef(e);return t.current=e,w.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=ri(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;esi(e,`name`,{value:t,configurable:!0}),li=`Tabs`,[ui,di]=Pn(li,[Rr]),fi=Rr(),[pi,mi]=ui(li),hi=w.forwardRef(ci(function(e,t){let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=br(s),[d,f]=fr({prop:r,onChange:i,defaultProp:a??``,caller:li});return(0,F.jsx)(pi,{scope:n,baseId:er(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,F.jsx)(_n.div,{dir:u,"data-orientation":o,...l,ref:t})})},`Tabs`)),gi=`TabsList`,_i=w.forwardRef(ci(function(e,t){let{__scopeTabs:n,loop:r=!0,...i}=e,a=mi(gi,n),o=fi(n);return(0,F.jsx)(Xr,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,F.jsx)(_n.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})},`TabsList`)),vi=`TabsTrigger`,yi=w.forwardRef(ci(function(e,t){let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=mi(vi,n),s=fi(n),c=Si(o.baseId,r),l=Ci(o.baseId,r),u=r===o.value;return(0,F.jsx)(Zr,{asChild:!0,...s,focusable:!i,active:u,children:(0,F.jsx)(_n.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:En(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:En(e.onKeyDown,e=>{i||e.target!==e.currentTarget||[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:En(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})},`TabsTrigger`)),bi=`TabsContent`,xi=w.forwardRef(ci(function(e,t){let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=mi(bi,n),c=Si(s.baseId,r),l=Ci(s.baseId,r),u=r===s.value,d=w.useRef(u);return w.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,F.jsx)(ti,{present:i||u,children:({present:n})=>(0,F.jsx)(_n.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 Si(e,t){return`${e}-trigger-${t}`}ci(Si,`makeTriggerId`);function Ci(e,t){return`${e}-content-${t}`}ci(Ci,`makeContentId`);var wi=hi,Ti=_i,Ei=yi,Di=xi,Oi=wi,ki=w.forwardRef(({className:e,...t},n)=>(0,F.jsx)(Ti,{ref:n,className:ln(`inline-flex h-9 items-center justify-center rounded-lg bg-muted p-1 text-muted-foreground`,e),...t}));ki.displayName=Ti.displayName;var Ai=w.forwardRef(({className:e,...t},n)=>(0,F.jsx)(Ei,{ref:n,className:ln(`inline-flex items-center justify-center whitespace-nowrap rounded-md px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow`,e),...t}));Ai.displayName=Ei.displayName;var ji=w.forwardRef(({className:e,...t},n)=>(0,F.jsx)(Di,{ref:n,className:ln(`mt-2 ring-offset-background focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2`,e),...t}));ji.displayName=Di.displayName;var Mi=w.forwardRef(({className:e,containerProps:t,...n},r)=>(0,F.jsx)(`div`,{className:`relative w-full overflow-auto`,...t,children:(0,F.jsx)(`table`,{ref:r,className:ln(`w-full caption-bottom text-sm`,e),...n})}));Mi.displayName=`Table`;var Ni=w.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`thead`,{ref:n,className:ln(`[&_tr]:border-b`,e),...t}));Ni.displayName=`TableHeader`;var Pi=w.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`tbody`,{ref:n,className:ln(`[&_tr:last-child]:border-0`,e),...t}));Pi.displayName=`TableBody`;var Fi=w.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`tfoot`,{ref:n,className:ln(`border-t bg-muted/50 font-medium [&>tr]:last:border-b-0`,e),...t}));Fi.displayName=`TableFooter`;var Ii=w.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`tr`,{ref:n,className:ln(`border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted`,e),...t}));Ii.displayName=`TableRow`;var Li=w.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`th`,{ref:n,className:ln(`h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),...t}));Li.displayName=`TableHead`;var Ri=w.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`td`,{ref:n,className:ln(`p-2 align-middle [&:has([role=checkbox])]:pr-0 [&>[role=checkbox]]:translate-y-[2px]`,e),...t}));Ri.displayName=`TableCell`;var zi=w.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`caption`,{ref:n,className:ln(`mt-4 text-sm text-muted-foreground`,e),...t}));zi.displayName=`TableCaption`;var Bi=Re(`inline-flex items-center rounded-md border px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2`,{variants:{variant:{default:`border-transparent bg-primary text-primary-foreground shadow hover:bg-primary/80`,secondary:`border-transparent bg-secondary text-secondary-foreground hover:bg-secondary/80`,destructive:`border-transparent bg-destructive text-destructive-foreground shadow hover:bg-destructive/80`,outline:`text-foreground`}},defaultVariants:{variant:`default`}});function Vi({className:e,variant:t,...n}){return(0,F.jsx)(`div`,{className:ln(Bi({variant:t}),e),...n})}var Hi=class extends Error{status;constructor(e,t){super(t),this.status=e}};async function Ui(e,t={}){let n=await fetch(`/admin/api/${e}`,{...t,credentials:`same-origin`,headers:{"Content-Type":`application/json`,...t.headers}}),r=await n.json();if(n.status===401&&e!==`login`&&e!==`session`&&window.dispatchEvent(new Event(`session-expired`)),!n.ok)throw new Hi(n.status,r.error??`request failed`);return r}var Wi=e=>e instanceof Error?e.message:`something went wrong; try again`,Gi=e=>typeof e==`string`?e:JSON.stringify(e,null,2),I=e=>new Intl.NumberFormat().format(e),Ki=e=>e<.01?`${(e*100).toFixed(e<.001?3:2)}¢`:`$${e.toFixed(2)}`,qi=e=>new Date(e*1e3).toLocaleString();function Ji(e){try{let t=new URL(e);return/^(https?:)$/.test(t.protocol)?t.href:void 0}catch{return}}function Yi({children:e}){return(0,F.jsx)(`p`,{role:`alert`,className:`notice`,children:e})}function Xi({children:e}){return(0,F.jsx)(`div`,{className:`empty`,children:e})}function Zi({error:e,children:t}){return(0,F.jsx)(Vi,{variant:e?`destructive`:`secondary`,children:t})}function Qi({value:e}){return(0,F.jsx)(`pre`,{className:`json-view`,tabIndex:0,children:Gi(e)})}function $i({url:e,children:t}){let n=Ji(e);return n?(0,F.jsx)(`a`,{className:`source-link`,href:n,target:`_blank`,rel:`noreferrer`,children:t||e}):(0,F.jsx)(`span`,{className:`break-all`,children:t||e})}function ea({calls:e}){return e.length?(0,F.jsx)(`div`,{className:`divide-y`,children:e.map(e=>(0,F.jsxs)(`details`,{className:`py-4`,children:[(0,F.jsxs)(`summary`,{className:`call-summary`,children:[(0,F.jsx)(`span`,{children:e.task}),(0,F.jsx)(`span`,{className:`muted`,children:e.model}),(0,F.jsxs)(`span`,{className:`numeric`,children:[I(e.latencyMs),` ms`]}),(0,F.jsx)(Zi,{error:!!e.error,children:e.error?`error`:`ok`})]}),(0,F.jsxs)(`div`,{className:`mt-4 space-y-4`,children:[e.error&&(0,F.jsx)(Yi,{children:e.error}),e.inputTokens!=null&&(0,F.jsxs)(`p`,{className:`muted`,children:[I(e.inputTokens),` input / `,I(e.outputTokens??0),` output tokens`]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h4`,{children:`request`}),(0,F.jsx)(Qi,{value:e.request})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h4`,{children:`raw response`}),(0,F.jsx)(Qi,{value:e.response})]})]})]},e.id))}):(0,F.jsx)(Xi,{children:`no model calls recorded for this stage.`})}function ta({id:e}){let[t,n]=(0,w.useState)(null),[r,i]=(0,w.useState)(``);return(0,w.useEffect)(()=>{let t=new AbortController;return n(null),i(``),Ui(`requests/${encodeURIComponent(e)}`,{signal:t.signal}).then(n).catch(e=>{t.signal.aborted||i(Wi(e))}),()=>t.abort()},[e]),r?(0,F.jsx)(Yi,{children:r}):t?(0,F.jsxs)(Oi,{defaultValue:`evidence`,className:`min-w-0`,children:[(0,F.jsxs)(ki,{"aria-label":`request details`,className:`flex-wrap h-auto justify-start`,children:[(0,F.jsxs)(Ai,{value:`evidence`,children:[`evidence (`,t.evidence.length,`)`]}),(0,F.jsxs)(Ai,{value:`completions`,children:[`summarizer (`,t.completions.length,`)`]}),(0,F.jsxs)(Ai,{value:`decisions`,children:[`jev (`,t.decisions.length,`)`]}),(0,F.jsx)(Ai,{value:`request`,children:`request log`})]}),(0,F.jsxs)(ji,{value:`evidence`,children:[!t.evidence.length&&(0,F.jsx)(Xi,{children:`no passages recorded. metadata-only searches and raw-text reads do not select evidence.`}),t.evidence.map(e=>(0,F.jsxs)(`details`,{className:`evidence-source`,open:t.evidence.length===1,children:[(0,F.jsx)(`summary`,{className:`break-all`,children:e.sourceId}),(0,F.jsxs)(`p`,{className:`muted my-3`,children:[e.packet.passages?.length??0,` kept / `,e.packet.candidates,` judged / `,e.packet.total_passages,` source passages · `,I(e.packet.used_chars),` / `,I(e.packet.budget_chars),` characters`]}),(0,F.jsx)($i,{url:e.packet.url,children:`open source`}),e.packet.passages?.map(e=>(0,F.jsxs)(`article`,{className:`passage`,children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsx)(Zi,{children:e.role}),(0,F.jsxs)(`span`,{className:`muted`,children:[e.heading||e.id,` · bytes `,e.start_byte,`–`,e.end_byte]})]}),(0,F.jsx)(`p`,{className:`source-text`,children:e.text}),(0,F.jsx)(`dl`,{className:`judgments`,children:Object.entries(e.judgments).map(([e,t])=>(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:e.replaceAll(`_`,` `)}),(0,F.jsxs)(`dd`,{children:[(t*100).toFixed(1),`%`]})]},e))})]},e.id)),!e.packet.passages?.length&&(0,F.jsx)(Xi,{children:`no usable evidence was selected from the inspected passages.`}),(0,F.jsxs)(`details`,{className:`mt-4`,children:[(0,F.jsxs)(`summary`,{className:`muted`,children:[`raw evidence packet · `,e.policy]}),(0,F.jsx)(Qi,{value:e.packet})]})]},e.id))]}),(0,F.jsx)(ji,{value:`completions`,children:(0,F.jsx)(ea,{calls:t.completions})}),(0,F.jsxs)(ji,{value:`decisions`,children:[(0,F.jsx)(`p`,{className:`muted mt-4`,children:`each call includes the original input and judgment. at most 200 calls are shown per stage.`}),(0,F.jsx)(ea,{calls:t.decisions})]}),(0,F.jsx)(ji,{value:`request`,children:(0,F.jsx)(Qi,{value:t.requests})})]}):(0,F.jsx)(`p`,{role:`status`,className:`loading`,children:`loading request details…`})}function na(e){return e.detail?typeof e.detail==`string`?e.detail:e.detail.query||e.detail.urls?.join(`, `)||`no query recorded`:`no query recorded`}function ra({revision:e,refresh:t}){let[n,r]=(0,w.useState)(null),[i,a]=(0,w.useState)([]),[o,s]=(0,w.useState)(``),[c,l]=(0,w.useState)(!1),[u,d]=(0,w.useState)(``),[f,p]=(0,w.useState)(!1),[m,h]=(0,w.useState)(null),g=(0,w.useRef)(null);(0,w.useEffect)(()=>{m&&(g.current?.focus({preventScroll:!0}),g.current?.scrollIntoView({block:`start`}))},[m]);let _=i.at(-1);return(0,w.useEffect)(()=>{let e=new AbortController,t=new URLSearchParams({endpoint:o,errors:String(c)});return _&&t.set(`before`,String(_)),p(!0),d(``),Ui(`requests?${t}`,{signal:e.signal}).then(r).catch(t=>{e.signal.aborted||d(Wi(t))}).finally(()=>{e.signal.aborted||p(!1)}),()=>e.abort()},[_,o,c,e]),(0,F.jsxs)(`div`,{className:`space-y-6`,children:[(0,F.jsxs)(`div`,{className:`section-toolbar`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{children:`request activity`}),(0,F.jsx)(`p`,{className:`muted`,children:`shared history from http, mcp, and this playground.`})]}),(0,F.jsxs)(fn,{variant:`outline`,onClick:()=>{a([]),t()},disabled:f,children:[(0,F.jsx)(he,{"aria-hidden":`true`}),`refresh`]})]}),(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-4`,children:[(0,F.jsxs)(`label`,{className:`inline-control`,children:[`endpoint`,(0,F.jsxs)(`select`,{value:o,onChange:e=>{s(e.target.value),a([])},children:[(0,F.jsx)(`option`,{value:``,children:`all endpoints`}),(0,F.jsx)(`option`,{children:`search`}),(0,F.jsx)(`option`,{children:`contents`}),(0,F.jsx)(`option`,{children:`answer`})]})]}),(0,F.jsxs)(`label`,{className:`inline-control`,children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:c,onChange:e=>{l(e.target.checked),a([])}}),`request errors only`]}),f&&(0,F.jsx)(`span`,{role:`status`,className:`muted`,children:`loading…`})]}),u&&(0,F.jsx)(Yi,{children:u}),(0,F.jsx)(`p`,{id:`table-scroll-help`,className:`muted text-xs sm:hidden`,children:`scroll the table horizontally for outcome, jev cost, caller, and time. keyboard: focus the table and use arrow keys.`}),(0,F.jsxs)(`div`,{className:`table-frame`,"aria-busy":f,children:[(0,F.jsxs)(Mi,{"aria-label":`request activity`,containerProps:{role:`region`,"aria-label":`scrollable request activity`,"aria-describedby":`table-scroll-help`,tabIndex:0},children:[(0,F.jsx)(Ni,{children:(0,F.jsxs)(Ii,{children:[(0,F.jsx)(Li,{children:`query / urls`}),(0,F.jsx)(Li,{children:`endpoint`}),(0,F.jsx)(Li,{children:`outcome`}),(0,F.jsx)(Li,{children:`jev cost`}),(0,F.jsx)(Li,{children:`caller`}),(0,F.jsx)(Li,{children:`time`})]})}),(0,F.jsx)(Pi,{children:n?.rows.map(e=>(0,F.jsxs)(Ii,{"data-state":m?.id===e.id?`selected`:void 0,children:[(0,F.jsxs)(Ri,{children:[(0,F.jsx)(`button`,{className:`request-link`,onClick:()=>h(e),children:na(e)}),(0,F.jsx)(`div`,{className:`muted font-mono text-xs mt-1`,children:e.requestId.slice(0,12)})]}),(0,F.jsx)(Ri,{children:e.endpoint}),(0,F.jsx)(Ri,{children:(0,F.jsx)(Zi,{error:e.outcome!==`ok`,children:e.outcome})}),(0,F.jsx)(Ri,{className:`whitespace-nowrap`,children:e.decisionCalls?(0,F.jsxs)(F.Fragment,{children:[Ki(e.jevUsd??0),(0,F.jsxs)(`div`,{className:`muted text-xs mt-1`,title:e.decisionModels??void 0,children:[e.decisionCalls,` calls · `,I(e.inputTokens??0),` tok`]})]}):(0,F.jsx)(`span`,{className:`muted`,children:`—`})}),(0,F.jsx)(Ri,{className:`muted`,children:e.caller||`—`}),(0,F.jsx)(Ri,{className:`muted whitespace-nowrap`,children:qi(e.createdAt)})]},e.id))})]}),n?.rows.length===0&&(0,F.jsx)(Xi,{children:c?`no matching request errors. model retries are visible inside each request.`:`no matching requests yet. run a query in the playground to start a trace.`})]}),(0,F.jsxs)(`div`,{className:`section-toolbar`,children:[(0,F.jsx)(`p`,{className:`muted`,children:`30 requests per page. “ok” means the request completed, not that every url succeeded.`}),(0,F.jsxs)(`div`,{className:`flex gap-2`,children:[(0,F.jsx)(fn,{variant:`outline`,size:`sm`,disabled:f||!i.length,onClick:()=>a(i.slice(0,-1)),children:`newer`}),(0,F.jsx)(fn,{variant:`outline`,size:`sm`,disabled:f||!n?.nextBefore,onClick:()=>a([...i,n.nextBefore]),children:`older`})]})]}),m&&(0,F.jsxs)(`section`,{ref:g,tabIndex:-1,className:`inspector`,"aria-label":`selected request`,children:[(0,F.jsxs)(`div`,{className:`section-toolbar`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{children:`request inspection`}),(0,F.jsx)(`p`,{className:`muted break-all font-mono text-xs mt-1`,children:m.requestId})]}),(0,F.jsx)(fn,{variant:`ghost`,size:`sm`,onClick:()=>h(null),children:`close`})]}),(0,F.jsx)(`p`,{className:`my-4 break-words`,children:na(m)}),(0,F.jsx)(ta,{id:m.requestId},m.requestId)]})]})}var ia=w.forwardRef(({className:e,...t},n)=>(0,F.jsx)(`textarea`,{className:ln(`flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-sm placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 md:text-sm`,e),ref:n,...t}));ia.displayName=`Textarea`;function aa(e){let t={text:e.text?{maxCharacters:e.characters}:!1,highlights:e.highlights?{query:e.query.trim(),maxCharacters:e.characters}:!1,summary:e.summary?{query:e.query.trim()}:!1};switch(e.endpoint){case`search`:return{query:e.query.trim(),numResults:e.count,...e.domains.trim()?{includeDomains:e.domains.trim().split(/[\s,]+/)}:{},contents:t};case`contents`:return{urls:e.urls.trim().split(/\s+/).filter(Boolean),...t};case`answer`:return{query:e.query.trim(),text:e.text}}}function oa({result:e}){return(0,F.jsxs)(`article`,{className:`result-item`,children:[(0,F.jsx)(`h3`,{children:(0,F.jsx)($i,{url:e.url,children:e.title||e.url})}),(0,F.jsx)(`p`,{className:`muted break-all text-xs mt-1`,children:e.url}),e.summary&&(0,F.jsx)(`p`,{className:`source-text`,children:e.summary}),!!e.highlights?.length&&(0,F.jsxs)(`details`,{className:`mt-4`,open:!0,children:[(0,F.jsxs)(`summary`,{children:[`selected highlights (`,e.highlights.length,`)`]}),e.highlights.map((t,n)=>(0,F.jsxs)(`div`,{className:`highlight`,children:[e.highlightScores?.[n]!=null&&(0,F.jsxs)(`span`,{className:`muted text-xs`,children:[`evidence score `,(e.highlightScores[n]*100).toFixed(1),`%`]}),(0,F.jsx)(`p`,{className:`source-text mt-1`,children:t})]},n))]}),e.text!=null&&(0,F.jsxs)(`details`,{className:`mt-4`,children:[(0,F.jsxs)(`summary`,{children:[`source text (`,I(e.text.length),` characters)`]}),(0,F.jsx)(`pre`,{className:`source-text`,children:e.text})]})]})}function L({onRun:e}){let[t,n]=(0,w.useState)({endpoint:`search`,query:``,urls:``,domains:``,count:3,highlights:!0,summary:!0,text:!1,characters:4e3}),[r,i]=(0,w.useState)(null),[a,o]=(0,w.useState)(!1),[s,c]=(0,w.useState)(``),[l,u]=(0,w.useState)(null),d=(0,w.useRef)(null);(0,w.useEffect)(()=>()=>d.current?.abort(),[]);let f=(e,t)=>n(n=>({...n,[e]:t}));async function p(n){if(n.preventDefault(),a)return;let i;try{i=r===null?aa(t):JSON.parse(r)}catch{c(`request json is invalid. correct it and try again.`);return}o(!0),c(``),u(null);let s=performance.now(),l=new AbortController;d.current=l;try{let n=await fetch(`/admin/api/${t.endpoint}`,{method:`POST`,credentials:`same-origin`,headers:{"Content-Type":`application/json`},body:JSON.stringify(i),signal:l.signal}),r=await n.json();if(n.status===401){window.dispatchEvent(new Event(`session-expired`));return}u({body:r,request:i,status:n.status,ms:Math.round(performance.now()-s),endpoint:t.endpoint}),e()}catch(e){c(l.signal.aborted?`request canceled. any completed model calls remain in the activity log.`:Wi(e))}finally{o(!1),d.current=null}}return(0,F.jsxs)(`div`,{className:`playground-grid`,children:[(0,F.jsxs)(`form`,{className:`query-form`,onSubmit:p,onKeyDown:e=>{e.key===`Enter`&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),e.currentTarget.requestSubmit())},children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h2`,{children:`query playground`}),(0,F.jsxs)(`p`,{className:`muted`,children:[`real requests, real provider usage. results are logged as `,(0,F.jsx)(`code`,{children:`admin-dashboard`}),`.`]})]}),(0,F.jsxs)(`fieldset`,{disabled:a,className:`space-y-5`,children:[(0,F.jsxs)(`div`,{className:`field`,children:[(0,F.jsx)(Sn,{htmlFor:`endpoint`,children:`endpoint`}),(0,F.jsxs)(`select`,{id:`endpoint`,value:t.endpoint,onChange:e=>{f(`endpoint`,e.target.value),i(null)},children:[(0,F.jsx)(`option`,{value:`search`,children:`search`}),(0,F.jsx)(`option`,{value:`contents`,children:`contents`}),(0,F.jsx)(`option`,{value:`answer`,children:`answer`})]})]}),(0,F.jsxs)(`fieldset`,{disabled:r!==null,className:`space-y-5`,children:[t.endpoint===`contents`&&(0,F.jsxs)(`div`,{className:`field`,children:[(0,F.jsx)(Sn,{htmlFor:`urls`,children:`urls · one per line`}),(0,F.jsx)(ia,{id:`urls`,rows:3,required:r===null,value:t.urls,onChange:e=>f(`urls`,e.target.value),placeholder:`https://sqlite.org/wal.html`})]}),(0,F.jsxs)(`div`,{className:`field`,children:[(0,F.jsx)(Sn,{htmlFor:`query`,children:t.endpoint===`contents`?`focus query (optional)`:`query`}),(0,F.jsx)(ia,{id:`query`,rows:4,maxLength:4e3,required:t.endpoint!==`contents`&&r===null,value:t.query,onChange:e=>f(`query`,e.target.value),placeholder:`can sqlite wal have multiple writers at once?`})]}),t.endpoint===`search`&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`div`,{className:`field`,children:[(0,F.jsx)(Sn,{htmlFor:`domains`,children:`include domains (optional)`}),(0,F.jsx)(pn,{id:`domains`,value:t.domains,onChange:e=>f(`domains`,e.target.value),placeholder:`sqlite.org, go.dev`})]}),(0,F.jsxs)(`div`,{className:`field`,children:[(0,F.jsx)(Sn,{htmlFor:`count`,children:`number of results`}),(0,F.jsx)(pn,{id:`count`,type:`number`,min:1,max:20,required:!0,value:t.count,onChange:e=>f(`count`,Number(e.target.value))})]})]}),(0,F.jsxs)(`div`,{className:`field`,children:[(0,F.jsx)(`span`,{className:`text-sm font-medium`,children:`return`}),(0,F.jsxs)(`div`,{className:`flex flex-wrap gap-4`,children:[t.endpoint!==`answer`&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`label`,{className:`inline-control`,children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:t.highlights,onChange:e=>f(`highlights`,e.target.checked)}),`highlights`]}),(0,F.jsxs)(`label`,{className:`inline-control`,children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:t.summary,onChange:e=>f(`summary`,e.target.checked)}),`summary`]})]}),(0,F.jsxs)(`label`,{className:`inline-control`,children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:t.text,onChange:e=>f(`text`,e.target.checked)}),t.endpoint===`answer`?`citation evidence`:`source text`]})]})]}),t.endpoint!==`answer`&&(0,F.jsxs)(`div`,{className:`field`,children:[(0,F.jsx)(Sn,{htmlFor:`characters`,children:`maximum text / highlight characters`}),(0,F.jsx)(pn,{id:`characters`,type:`number`,min:1,max:1e4,required:!0,value:t.characters,onChange:e=>f(`characters`,Number(e.target.value))})]})]}),(0,F.jsxs)(`details`,{children:[(0,F.jsx)(`summary`,{children:`request json`}),(0,F.jsxs)(`div`,{className:`space-y-3 mt-3`,children:[(0,F.jsxs)(`label`,{className:`inline-control`,children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:r!==null,onChange:e=>i(e.target.checked?JSON.stringify(aa(t),null,2):null)}),`edit json instead of form`]}),r===null?(0,F.jsx)(Qi,{value:aa(t)}):(0,F.jsx)(ia,{"aria-label":`request json`,className:`font-mono text-xs min-h-64`,spellCheck:!1,value:r,onChange:e=>i(e.target.value)})]})]})]}),s&&(0,F.jsx)(Yi,{children:s}),(0,F.jsxs)(`div`,{className:`flex items-center gap-3`,children:[(0,F.jsxs)(fn,{type:`submit`,disabled:a,children:[(0,F.jsx)(pe,{"aria-hidden":`true`}),a?`running…`:`run query`]}),a?(0,F.jsx)(fn,{type:`button`,variant:`outline`,onClick:()=>d.current?.abort(),children:`cancel`}):(0,F.jsx)(`span`,{className:`muted text-xs`,children:`⌘ / ctrl + enter`})]})]}),(0,F.jsxs)(`section`,{className:`query-output`,"aria-label":`query output`,"aria-busy":a,children:[(0,F.jsxs)(`div`,{className:`section-toolbar`,children:[(0,F.jsx)(`h2`,{children:`response`}),l&&(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,F.jsxs)(Zi,{error:l.status>=400,children:[`http `,l.status]}),(0,F.jsxs)(`span`,{className:`muted numeric`,children:[(l.ms/1e3).toFixed(2),` s`]})]})]}),a&&(0,F.jsxs)(`div`,{className:`empty`,role:`status`,children:[`running `,t.endpoint,`…`,(0,F.jsx)(`p`,{className:`muted mt-2`,children:`fetching pages and judging evidence can take up to 90 seconds.`})]}),!l&&!a&&(0,F.jsx)(Xi,{children:`run a query to inspect results, selected passages, and raw model calls.`}),l&&(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`p`,{className:`muted font-mono text-xs my-4 break-all`,children:[l.endpoint,` · `,l.body.requestId||`no request id`]}),(0,F.jsxs)(Oi,{defaultValue:`results`,children:[(0,F.jsxs)(ki,{"aria-label":`query response`,children:[(0,F.jsx)(Ai,{value:`results`,children:`results`}),(0,F.jsx)(Ai,{value:`trace`,disabled:!l.body.requestId,children:`trace`}),(0,F.jsx)(Ai,{value:`json`,children:`json`})]}),(0,F.jsxs)(ji,{value:`results`,children:[l.body.error&&(0,F.jsxs)(Yi,{children:[l.body.tag?`${l.body.tag}: `:``,l.body.error]}),l.body.answer&&(0,F.jsx)(`p`,{className:`source-text text-base`,children:l.body.answer}),l.body.statuses&&(0,F.jsx)(`div`,{className:`url-statuses`,children:l.body.statuses.map((e,t)=>(0,F.jsxs)(`div`,{children:[(0,F.jsx)(Zi,{error:!!e.error,children:e.error?.tag||e.status}),(0,F.jsx)(`span`,{className:`break-all`,children:e.id}),e.source&&(0,F.jsx)(`span`,{className:`muted`,children:e.source})]},t))}),(l.body.results||l.body.citations||[]).map((e,t)=>(0,F.jsx)(oa,{result:e},`${e.id}-${t}`)),!l.body.error&&!l.body.answer&&!l.body.results?.length&&(0,F.jsx)(Xi,{children:`the request completed without results. try a broader query or inspect the raw response.`})]}),(0,F.jsx)(ji,{value:`trace`,children:l.body.requestId&&(0,F.jsx)(ta,{id:l.body.requestId})}),(0,F.jsxs)(ji,{value:`json`,children:[(0,F.jsx)(`h3`,{className:`mt-5`,children:`response`}),(0,F.jsx)(Qi,{value:l.body}),(0,F.jsx)(`h3`,{className:`mt-5`,children:`sent request`}),(0,F.jsx)(Qi,{value:l.request})]})]},l.body.requestId||l.ms)]})]})]})}function R({onLogin:e,expired:t}){let[n,r]=(0,w.useState)(``),[i,a]=(0,w.useState)(!1),[o,s]=(0,w.useState)(``);async function c(t){t.preventDefault(),a(!0),s(``);try{await Ui(`login`,{method:`POST`,body:JSON.stringify({password:n})}),r(``),e()}catch(e){s(Wi(e))}finally{a(!1)}}return(0,F.jsx)(`main`,{className:`login`,children:(0,F.jsxs)(`form`,{onSubmit:c,className:`space-y-6`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h1`,{children:`web extract`}),(0,F.jsx)(`p`,{className:`muted mt-2`,children:`sign in to inspect activity and test queries.`})]}),t&&(0,F.jsx)(Yi,{children:`your session ended. sign in again to continue.`}),(0,F.jsxs)(`div`,{className:`field`,children:[(0,F.jsx)(Sn,{htmlFor:`password`,children:`admin password`}),(0,F.jsx)(pn,{id:`password`,type:`password`,autoComplete:`current-password`,required:!0,autoFocus:!0,value:n,onChange:e=>r(e.target.value)})]}),o&&(0,F.jsx)(Yi,{children:o}),(0,F.jsx)(fn,{disabled:i,className:`w-full`,type:`submit`,children:i?`signing in…`:`sign in`}),(0,F.jsxs)(`p`,{className:`muted text-xs`,children:[`configured with `,(0,F.jsx)(`code`,{children:`ADMIN_PASSWORD`}),` on the server. sessions last 12 hours.`]})]})})}function sa({onLogout:e}){let[t,n]=(0,w.useState)(null),[r,i]=(0,w.useState)(``),[a,o]=(0,w.useState)(0),[s,c]=(0,w.useState)(!1),[l,u]=(0,w.useState)(!1),d=(0,w.useCallback)(()=>o(e=>e+1),[]);(0,w.useEffect)(()=>{let e=new AbortController;return Ui(`overview`,{signal:e.signal}).then(e=>{n(e),i(``)}).catch(t=>{e.signal.aborted||i(Wi(t))}),()=>e.abort()},[a]),(0,w.useEffect)(()=>{if(!s)return;let e=setInterval(()=>{document.hidden||d()},1e4);return()=>clearInterval(e)},[s,d]);async function f(){u(!0);try{await Ui(`logout`,{method:`POST`,body:`{}`}),e()}catch(e){i(Wi(e))}finally{u(!1)}}return(0,F.jsxs)(`div`,{className:`shell`,children:[(0,F.jsxs)(`header`,{className:`app-header`,children:[(0,F.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,F.jsx)(`h1`,{children:`web extract`}),(0,F.jsx)(Zi,{children:`admin`})]}),(0,F.jsxs)(fn,{variant:`ghost`,size:`sm`,disabled:l,onClick:f,children:[(0,F.jsx)(de,{"aria-hidden":`true`}),`sign out`]})]}),(0,F.jsxs)(`main`,{children:[(0,F.jsxs)(`div`,{className:`section-toolbar mb-3`,children:[(0,F.jsx)(`p`,{className:`muted`,children:`observability & query testing`}),(0,F.jsxs)(`label`,{className:`inline-control muted`,children:[(0,F.jsx)(`input`,{type:`checkbox`,checked:s,onChange:e=>c(e.target.checked)}),`refresh every 10s`]})]}),r&&(0,F.jsx)(Yi,{children:r}),t?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsxs)(`dl`,{className:`metrics`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`requests · 24h`}),(0,F.jsxs)(`dd`,{children:[I(t.requests.total),(0,F.jsxs)(`span`,{children:[I(t.requests.errors),` errors`]})]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`model calls · 24h`}),(0,F.jsxs)(`dd`,{children:[I(t.models.calls),(0,F.jsxs)(`span`,{children:[I(t.models.errors),` failed attempts`]})]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`mean model latency`}),(0,F.jsxs)(`dd`,{children:[(t.models.meanLatencyMs/1e3).toFixed(2),(0,F.jsx)(`small`,{children:`s`}),(0,F.jsx)(`span`,{children:`not end-to-end latency`})]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`jev cost · 24h`}),(0,F.jsxs)(`dd`,{children:[Ki(t.decisions.jevUsd),(0,F.jsxs)(`span`,{children:[I(t.decisions.calls),` decision calls · `,I(t.decisions.inputTokens),` tokens · `,Ki(t.decisions.requests?t.decisions.jevUsd/t.decisions.requests:0),` per request`]})]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`dt`,{children:`summarizer tokens · 24h`}),(0,F.jsxs)(`dd`,{children:[I(t.tokens.input+t.tokens.output),(0,F.jsxs)(`span`,{children:[I(t.tokens.input),` in / `,I(t.tokens.output),` out`]})]})]})]}),(0,F.jsxs)(`details`,{className:`configuration`,children:[(0,F.jsx)(`summary`,{children:`configuration & storage`}),(0,F.jsxs)(`div`,{className:`config-grid`,children:[(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h3`,{children:`providers`}),(0,F.jsxs)(`p`,{children:[`jev: `,t.config.jevConfigured?t.config.jevModel:`not configured`]}),(0,F.jsxs)(`p`,{children:[`summarizer: `,t.config.summarizerConfigured?t.config.summarizerModel:`not configured`]}),(0,F.jsxs)(`p`,{children:[`search: `,t.config.searchConfigured?`configured`:`not configured`,` · browser: `,t.config.browserConfigured?`configured`:`not configured`]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h3`,{children:`limits`}),(0,F.jsxs)(`p`,{children:[t.config.passageCandidates,` passage candidates · `,I(t.config.evidenceCharacters),` evidence characters`]}),(0,F.jsxs)(`p`,{children:[t.config.requestTimeoutSeconds,`s request timeout`]})]}),(0,F.jsxs)(`div`,{children:[(0,F.jsx)(`h3`,{children:`training logs`}),(0,F.jsxs)(`p`,{children:[(t.databaseBytes/1048576).toFixed(1),` mib including sqlite wal`]}),(0,F.jsxs)(`p`,{children:[t.tokens.reportedCalls,` / `,t.tokens.calls,` summarizer calls reported token counts.`]}),(0,F.jsxs)(`p`,{children:[`jev cost prices decision input tokens at $`,t.config.jevPricePerMillion,`/M, whichever model answered; `,I(t.decisions.estimatedCalls),` calls reported no usage and are estimated from request size.`]})]})]})]})]}):!r&&(0,F.jsx)(`p`,{className:`loading`,role:`status`,children:`loading activity totals…`}),(0,F.jsxs)(Oi,{defaultValue:`activity`,className:`mt-7`,children:[(0,F.jsxs)(ki,{"aria-label":`dashboard navigation`,className:`mb-6`,children:[(0,F.jsxs)(Ai,{value:`activity`,className:`gap-2`,children:[(0,F.jsx)(ce,{size:15,"aria-hidden":`true`}),`activity`]}),(0,F.jsxs)(Ai,{value:`playground`,className:`gap-2`,children:[(0,F.jsx)(ue,{size:15,"aria-hidden":`true`}),`playground`]})]}),(0,F.jsx)(ji,{value:`activity`,children:(0,F.jsx)(ra,{revision:a,refresh:d})}),(0,F.jsx)(ji,{value:`playground`,forceMount:!0,className:`data-[state=inactive]:hidden`,children:(0,F.jsx)(L,{onRun:d})})]})]}),(0,F.jsx)(`footer`,{children:`read-only log inspection. playground requests use the existing api and training-log format.`})]})}function ca(){let[e,t]=(0,w.useState)(`checking`),[n,r]=(0,w.useState)(!1),[i,a]=(0,w.useState)(``);return(0,w.useEffect)(()=>{let e=new AbortController;Ui(`session`,{signal:e.signal}).then(()=>t(`ready`)).catch(n=>{e.signal.aborted||(t(`login`),n.status!==401&&a(Wi(n)))});let n=()=>{r(!0),t(`login`)};return window.addEventListener(`session-expired`,n),()=>{e.abort(),window.removeEventListener(`session-expired`,n)}},[]),e===`checking`?(0,F.jsx)(`p`,{role:`status`,className:`loading`,children:`checking session…`}):e===`login`?(0,F.jsxs)(F.Fragment,{children:[i&&(0,F.jsx)(Yi,{children:i}),(0,F.jsx)(R,{expired:n,onLogin:()=>{a(``),r(!1),t(`ready`)}})]}):(0,F.jsx)(sa,{onLogout:()=>{r(!1),t(`login`)}})}(0,ge.createRoot)(document.getElementById(`root`)).render((0,F.jsx)(w.StrictMode,{children:(0,F.jsx)(ca,{})}));