@oh-my-pi/omp-stats 18.4.1 → 18.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- var VM=Object.create;var{getPrototypeOf:$M,defineProperty:L1,getOwnPropertyNames:XM}=Object;var C1=Object.prototype.hasOwnProperty;function jM(r){return this[r]}var YM,QM,Y=(r,i,u)=>{var c=r!=null&&typeof r==="object";if(c){var f=i?YM??=new WeakMap:QM??=new WeakMap,v=f.get(r);if(v)return v}u=r!=null?VM($M(r)):{};let p=i||!r||!r.__esModule||!C1.call(r,"default")?L1(u,"default",{value:r,enumerable:!0}):u;if(r&&typeof r==="object"||typeof r==="function"){for(let b of XM(r))if(!C1.call(p,b))L1(p,b,{get:jM.bind(r,b),enumerable:!0})}if(c)f.set(r,p);return p};var Fs=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports);var k1=Fs(function(ui){(function(){function r(){if(N=!1,Z){var te=ui.unstable_now();ge=te;var ve=!0;try{e:{F=!1,K&&(K=!1,B(W),W=-1),z=!0;var ke=_;try{t:{v(te);for(D=u(C);D!==null&&!(D.expirationTime>te&&b());){var je=D.callback;if(typeof je==="function"){D.callback=null,_=D.priorityLevel;var ae=je(D.expirationTime<=te);if(te=ui.unstable_now(),typeof ae==="function"){D.callback=ae,v(te),ve=!0;break t}D===u(C)&&c(C),v(te)}else c(C);D=u(C)}if(D!==null)ve=!0;else{var P=u(R);P!==null&&S(p,P.startTime-te),ve=!1}}break e}finally{D=null,_=ke,z=!1}ve=void 0}}finally{ve?Ne():Z=!1}}}function i(te,ve){var ke=te.length;te.push(ve);e:for(;0<ke;){var je=ke-1>>>1,ae=te[je];if(0<f(ae,ve))te[je]=ve,te[ke]=ae,ke=je;else break e}}function u(te){return te.length===0?null:te[0]}function c(te){if(te.length===0)return null;var ve=te[0],ke=te.pop();if(ke!==ve){te[0]=ke;e:for(var je=0,ae=te.length,P=ae>>>1;je<P;){var ue=2*(je+1)-1,se=te[ue],ne=ue+1,pe=te[ne];if(0>f(se,ke))ne<ae&&0>f(pe,se)?(te[je]=pe,te[ne]=ke,je=ne):(te[je]=se,te[ue]=ke,je=ue);else if(ne<ae&&0>f(pe,ke))te[je]=pe,te[ne]=ke,je=ne;else break e}}return ve}function f(te,ve){var ke=te.sortIndex-ve.sortIndex;return ke!==0?ke:te.id-ve.id}function v(te){for(var ve=u(R);ve!==null;){if(ve.callback===null)c(R);else if(ve.startTime<=te)c(R),ve.sortIndex=ve.expirationTime,i(C,ve);else break;ve=u(R)}}function p(te){if(K=!1,v(te),!F)if(u(C)!==null)F=!0,Z||(Z=!0,Ne());else{var ve=u(R);ve!==null&&S(p,ve.startTime-te)}}function b(){return N?!0:ui.unstable_now()-ge<X?!1:!0}function S(te,ve){W=oe(function(){te(ui.unstable_now())},ve)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),ui.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var k=performance;ui.unstable_now=function(){return k.now()}}else{var h=Date,x=h.now();ui.unstable_now=function(){return h.now()-x}}var C=[],R=[],L=1,D=null,_=3,z=!1,F=!1,K=!1,N=!1,oe=typeof setTimeout==="function"?setTimeout:null,B=typeof clearTimeout==="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null,Z=!1,W=-1,X=5,ge=-1;if(typeof ee==="function")var Ne=function(){ee(r)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,Be=Ce.port2;Ce.port1.onmessage=r,Ne=function(){Be.postMessage(null)}}else Ne=function(){oe(r,0)};ui.unstable_IdlePriority=5,ui.unstable_ImmediatePriority=1,ui.unstable_LowPriority=4,ui.unstable_NormalPriority=3,ui.unstable_Profiling=null,ui.unstable_UserBlockingPriority=2,ui.unstable_cancelCallback=function(te){te.callback=null},ui.unstable_forceFrameRate=function(te){0>te||125<te?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<te?Math.floor(1000/te):5},ui.unstable_getCurrentPriorityLevel=function(){return _},ui.unstable_next=function(te){switch(_){case 1:case 2:case 3:var ve=3;break;default:ve=_}var ke=_;_=ve;try{return te()}finally{_=ke}},ui.unstable_requestPaint=function(){N=!0},ui.unstable_runWithPriority=function(te,ve){switch(te){case 1:case 2:case 3:case 4:case 5:break;default:te=3}var ke=_;_=te;try{return ve()}finally{_=ke}},ui.unstable_scheduleCallback=function(te,ve,ke){var je=ui.unstable_now();switch(typeof ke==="object"&&ke!==null?(ke=ke.delay,ke=typeof ke==="number"&&0<ke?je+ke:je):ke=je,te){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5000}return ae=ke+ae,te={id:L++,callback:ve,priorityLevel:te,startTime:ke,expirationTime:ae,sortIndex:-1},ke>je?(te.sortIndex=ke,i(R,te),u(C)===null&&te===u(R)&&(K?(B(W),W=-1):K=!0,S(p,ke-je))):(te.sortIndex=ae,i(C,te),F||z||(F=!0,Z||(Z=!0,Ne()))),te},ui.unstable_shouldYield=b,ui.unstable_wrapCallback=function(te){var ve=_;return function(){var ke=_;_=ve;try{return te.apply(this,arguments)}finally{_=ke}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ut=Fs(function(ZM,sm){(function(){function r(y,O){Object.defineProperty(c.prototype,y,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",O[0],O[1])}})}function i(y){if(y===null||typeof y!=="object")return null;return y=pa&&y[pa]||y["@@iterator"],typeof y==="function"?y:null}function u(y,O){y=(y=y.constructor)&&(y.displayName||y.name)||"ReactClass";var ie=y+"."+O;re[ie]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",O,y),re[ie]=!0)}function c(y,O,ie){this.props=y,this.context=O,this.refs=Kt,this.updater=ie||ma}function f(){}function v(y,O,ie){this.props=y,this.context=O,this.refs=Kt,this.updater=ie||ma}function p(){}function b(y){return""+y}function S(y){try{b(y);var O=!1}catch(we){O=!0}if(O){O=console;var ie=O.error,me=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return ie.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",me),b(y)}}function k(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===Et?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case ae:return"Fragment";case ue:return"Profiler";case P:return"StrictMode";case Lt:return"Suspense";case Ye:return"SuspenseList";case Mt:return"Activity"}if(typeof y==="object")switch(typeof y.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case je:return"Portal";case ne:return y.displayName||"Context";case se:return(y._context.displayName||"Context")+".Consumer";case pe:var O=y.render;return y=y.displayName,y||(y=O.displayName||O.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case V:return O=y.displayName||null,O!==null?O:k(y.type)||"Memo";case Pe:O=y._payload,y=y._init;try{return k(y(O))}catch(ie){}}return null}function h(y){if(y===ae)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===Pe)return"<...>";try{var O=k(y);return O?"<"+O+">":"<...>"}catch(ie){return"<...>"}}function x(){var y=Ee.A;return y===null?null:y.getOwner()}function C(){return Error("react-stack-top-frame")}function R(y){if(rl.call(y,"key")){var O=Object.getOwnPropertyDescriptor(y,"key").get;if(O&&O.isReactWarning)return!1}return y.key!==void 0}function L(y,O){function ie(){Vc||(Vc=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",O))}ie.isReactWarning=!0,Object.defineProperty(y,"key",{get:ie,configurable:!0})}function D(){var y=k(this.type);return Kr[y]||(Kr[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function _(y,O,ie,me,we,$e){var Xe=ie.ref;return y={$$typeof:ke,type:y,key:O,props:ie,_owner:me},(Xe!==void 0?Xe:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:D}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function z(y,O){return O=_(y.type,O,y.props,y._owner,y._debugStack,y._debugTask),y._store&&(O._store.validated=y._store.validated),O}function F(y){K(y)?y._store&&(y._store.validated=1):typeof y==="object"&&y!==null&&y.$$typeof===Pe&&(y._payload.status==="fulfilled"?K(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function K(y){return typeof y==="object"&&y!==null&&y.$$typeof===ke}function N(y){var O={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(ie){return O[ie]})}function oe(y,O){return typeof y==="object"&&y!==null&&y.key!=null?(S(y.key),N(""+y.key)):O.toString(36)}function B(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status==="string"?y.then(p,p):(y.status="pending",y.then(function(O){y.status==="pending"&&(y.status="fulfilled",y.value=O)},function(O){y.status==="pending"&&(y.status="rejected",y.reason=O)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function ee(y,O,ie,me,we){var $e=typeof y;if($e==="undefined"||$e==="boolean")y=null;var Xe=!1;if(y===null)Xe=!0;else switch($e){case"bigint":case"string":case"number":Xe=!0;break;case"object":switch(y.$$typeof){case ke:case je:Xe=!0;break;case Pe:return Xe=y._init,ee(Xe(y._payload),O,ie,me,we)}}if(Xe){Xe=y,we=we(Xe);var yt=me===""?"."+oe(Xe,0):me;return gt(we)?(ie="",yt!=null&&(ie=yt.replace(ru,"$&/")+"/"),ee(we,O,ie,"",function(Za){return Za})):we!=null&&(K(we)&&(we.key!=null&&(Xe&&Xe.key===we.key||S(we.key)),ie=z(we,ie+(we.key==null||Xe&&Xe.key===we.key?"":(""+we.key).replace(ru,"$&/")+"/")+yt),me!==""&&Xe!=null&&K(Xe)&&Xe.key==null&&Xe._store&&!Xe._store.validated&&(ie._store.validated=2),we=ie),O.push(we)),1}if(Xe=0,yt=me===""?".":me+":",gt(y))for(var Oe=0;Oe<y.length;Oe++)me=y[Oe],$e=yt+oe(me,Oe),Xe+=ee(me,O,ie,$e,we);else if(Oe=i(y),typeof Oe==="function")for(Oe===y.entries&&(nu||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),nu=!0),y=Oe.call(y),Oe=0;!(me=y.next()).done;)me=me.value,$e=yt+oe(me,Oe++),Xe+=ee(me,O,ie,$e,we);else if($e==="object"){if(typeof y.then==="function")return ee(B(y),O,ie,me,we);throw O=String(y),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return Xe}function Z(y,O,ie){if(y==null)return y;var me=[],we=0;return ee(y,me,"","",function($e){return O.call(ie,$e,we++)}),me}function W(y){if(y._status===-1){var O=y._ioInfo;O!=null&&(O.start=O.end=performance.now()),O=y._result;var ie=O();if(ie.then(function(we){if(y._status===0||y._status===-1){y._status=1,y._result=we;var $e=y._ioInfo;$e!=null&&($e.end=performance.now()),ie.status===void 0&&(ie.status="fulfilled",ie.value=we)}},function(we){if(y._status===0||y._status===-1){y._status=2,y._result=we;var $e=y._ioInfo;$e!=null&&($e.end=performance.now()),ie.status===void 0&&(ie.status="rejected",ie.reason=we)}}),O=y._ioInfo,O!=null){O.value=ie;var me=ie.displayName;typeof me==="string"&&(O.name=me)}y._status===-1&&(y._status=0,y._result=ie)}if(y._status===1)return O=y._result,O===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
1
+ var $M=Object.create;var{getPrototypeOf:XM,defineProperty:C1,getOwnPropertyNames:jM}=Object;var k1=Object.prototype.hasOwnProperty;function YM(r){return this[r]}var QM,ZM,Y=(r,i,u)=>{var c=r!=null&&typeof r==="object";if(c){var f=i?QM??=new WeakMap:ZM??=new WeakMap,v=f.get(r);if(v)return v}u=r!=null?$M(XM(r)):{};let p=i||!r||!r.__esModule||!k1.call(r,"default")?C1(u,"default",{value:r,enumerable:!0}):u;if(r&&typeof r==="object"||typeof r==="function"){for(let b of jM(r))if(!k1.call(p,b))C1(p,b,{get:YM.bind(r,b),enumerable:!0})}if(c)f.set(r,p);return p};var Fs=(r,i)=>()=>(i||r((i={exports:{}}).exports,i),i.exports);var w1=Fs(function(ui){(function(){function r(){if(N=!1,Z){var te=ui.unstable_now();ge=te;var ve=!0;try{e:{F=!1,K&&(K=!1,B(W),W=-1),z=!0;var ke=_;try{t:{v(te);for(D=u(C);D!==null&&!(D.expirationTime>te&&b());){var je=D.callback;if(typeof je==="function"){D.callback=null,_=D.priorityLevel;var ae=je(D.expirationTime<=te);if(te=ui.unstable_now(),typeof ae==="function"){D.callback=ae,v(te),ve=!0;break t}D===u(C)&&c(C),v(te)}else c(C);D=u(C)}if(D!==null)ve=!0;else{var P=u(R);P!==null&&S(p,P.startTime-te),ve=!1}}break e}finally{D=null,_=ke,z=!1}ve=void 0}}finally{ve?Ne():Z=!1}}}function i(te,ve){var ke=te.length;te.push(ve);e:for(;0<ke;){var je=ke-1>>>1,ae=te[je];if(0<f(ae,ve))te[je]=ve,te[ke]=ae,ke=je;else break e}}function u(te){return te.length===0?null:te[0]}function c(te){if(te.length===0)return null;var ve=te[0],ke=te.pop();if(ke!==ve){te[0]=ke;e:for(var je=0,ae=te.length,P=ae>>>1;je<P;){var ue=2*(je+1)-1,se=te[ue],ne=ue+1,pe=te[ne];if(0>f(se,ke))ne<ae&&0>f(pe,se)?(te[je]=pe,te[ne]=ke,je=ne):(te[je]=se,te[ue]=ke,je=ue);else if(ne<ae&&0>f(pe,ke))te[je]=pe,te[ne]=ke,je=ne;else break e}}return ve}function f(te,ve){var ke=te.sortIndex-ve.sortIndex;return ke!==0?ke:te.id-ve.id}function v(te){for(var ve=u(R);ve!==null;){if(ve.callback===null)c(R);else if(ve.startTime<=te)c(R),ve.sortIndex=ve.expirationTime,i(C,ve);else break;ve=u(R)}}function p(te){if(K=!1,v(te),!F)if(u(C)!==null)F=!0,Z||(Z=!0,Ne());else{var ve=u(R);ve!==null&&S(p,ve.startTime-te)}}function b(){return N?!0:ui.unstable_now()-ge<X?!1:!0}function S(te,ve){W=oe(function(){te(ui.unstable_now())},ve)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),ui.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var k=performance;ui.unstable_now=function(){return k.now()}}else{var h=Date,x=h.now();ui.unstable_now=function(){return h.now()-x}}var C=[],R=[],L=1,D=null,_=3,z=!1,F=!1,K=!1,N=!1,oe=typeof setTimeout==="function"?setTimeout:null,B=typeof clearTimeout==="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null,Z=!1,W=-1,X=5,ge=-1;if(typeof ee==="function")var Ne=function(){ee(r)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,Be=Ce.port2;Ce.port1.onmessage=r,Ne=function(){Be.postMessage(null)}}else Ne=function(){oe(r,0)};ui.unstable_IdlePriority=5,ui.unstable_ImmediatePriority=1,ui.unstable_LowPriority=4,ui.unstable_NormalPriority=3,ui.unstable_Profiling=null,ui.unstable_UserBlockingPriority=2,ui.unstable_cancelCallback=function(te){te.callback=null},ui.unstable_forceFrameRate=function(te){0>te||125<te?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):X=0<te?Math.floor(1000/te):5},ui.unstable_getCurrentPriorityLevel=function(){return _},ui.unstable_next=function(te){switch(_){case 1:case 2:case 3:var ve=3;break;default:ve=_}var ke=_;_=ve;try{return te()}finally{_=ke}},ui.unstable_requestPaint=function(){N=!0},ui.unstable_runWithPriority=function(te,ve){switch(te){case 1:case 2:case 3:case 4:case 5:break;default:te=3}var ke=_;_=te;try{return ve()}finally{_=ke}},ui.unstable_scheduleCallback=function(te,ve,ke){var je=ui.unstable_now();switch(typeof ke==="object"&&ke!==null?(ke=ke.delay,ke=typeof ke==="number"&&0<ke?je+ke:je):ke=je,te){case 1:var ae=-1;break;case 2:ae=250;break;case 5:ae=1073741823;break;case 4:ae=1e4;break;default:ae=5000}return ae=ke+ae,te={id:L++,callback:ve,priorityLevel:te,startTime:ke,expirationTime:ae,sortIndex:-1},ke>je?(te.sortIndex=ke,i(R,te),u(C)===null&&te===u(R)&&(K?(B(W),W=-1):K=!0,S(p,ke-je))):(te.sortIndex=ae,i(C,te),F||z||(F=!0,Z||(Z=!0,Ne()))),te},ui.unstable_shouldYield=b,ui.unstable_wrapCallback=function(te){var ve=_;return function(){var ke=_;_=ve;try{return te.apply(this,arguments)}finally{_=ke}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ut=Fs(function(WM,sm){(function(){function r(y,O){Object.defineProperty(c.prototype,y,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",O[0],O[1])}})}function i(y){if(y===null||typeof y!=="object")return null;return y=pa&&y[pa]||y["@@iterator"],typeof y==="function"?y:null}function u(y,O){y=(y=y.constructor)&&(y.displayName||y.name)||"ReactClass";var ie=y+"."+O;re[ie]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",O,y),re[ie]=!0)}function c(y,O,ie){this.props=y,this.context=O,this.refs=Kt,this.updater=ie||ma}function f(){}function v(y,O,ie){this.props=y,this.context=O,this.refs=Kt,this.updater=ie||ma}function p(){}function b(y){return""+y}function S(y){try{b(y);var O=!1}catch(we){O=!0}if(O){O=console;var ie=O.error,me=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return ie.call(O,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",me),b(y)}}function k(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===Et?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case ae:return"Fragment";case ue:return"Profiler";case P:return"StrictMode";case Lt:return"Suspense";case Ye:return"SuspenseList";case Mt:return"Activity"}if(typeof y==="object")switch(typeof y.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),y.$$typeof){case je:return"Portal";case ne:return y.displayName||"Context";case se:return(y._context.displayName||"Context")+".Consumer";case pe:var O=y.render;return y=y.displayName,y||(y=O.displayName||O.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case V:return O=y.displayName||null,O!==null?O:k(y.type)||"Memo";case Pe:O=y._payload,y=y._init;try{return k(y(O))}catch(ie){}}return null}function h(y){if(y===ae)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===Pe)return"<...>";try{var O=k(y);return O?"<"+O+">":"<...>"}catch(ie){return"<...>"}}function x(){var y=Ee.A;return y===null?null:y.getOwner()}function C(){return Error("react-stack-top-frame")}function R(y){if(rl.call(y,"key")){var O=Object.getOwnPropertyDescriptor(y,"key").get;if(O&&O.isReactWarning)return!1}return y.key!==void 0}function L(y,O){function ie(){Vc||(Vc=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",O))}ie.isReactWarning=!0,Object.defineProperty(y,"key",{get:ie,configurable:!0})}function D(){var y=k(this.type);return Kr[y]||(Kr[y]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),y=this.props.ref,y!==void 0?y:null}function _(y,O,ie,me,we,$e){var Xe=ie.ref;return y={$$typeof:ke,type:y,key:O,props:ie,_owner:me},(Xe!==void 0?Xe:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:D}):Object.defineProperty(y,"ref",{enumerable:!1,value:null}),y._store={},Object.defineProperty(y._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(y,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(y,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:we}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:$e}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function z(y,O){return O=_(y.type,O,y.props,y._owner,y._debugStack,y._debugTask),y._store&&(O._store.validated=y._store.validated),O}function F(y){K(y)?y._store&&(y._store.validated=1):typeof y==="object"&&y!==null&&y.$$typeof===Pe&&(y._payload.status==="fulfilled"?K(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function K(y){return typeof y==="object"&&y!==null&&y.$$typeof===ke}function N(y){var O={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(ie){return O[ie]})}function oe(y,O){return typeof y==="object"&&y!==null&&y.key!=null?(S(y.key),N(""+y.key)):O.toString(36)}function B(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status==="string"?y.then(p,p):(y.status="pending",y.then(function(O){y.status==="pending"&&(y.status="fulfilled",y.value=O)},function(O){y.status==="pending"&&(y.status="rejected",y.reason=O)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function ee(y,O,ie,me,we){var $e=typeof y;if($e==="undefined"||$e==="boolean")y=null;var Xe=!1;if(y===null)Xe=!0;else switch($e){case"bigint":case"string":case"number":Xe=!0;break;case"object":switch(y.$$typeof){case ke:case je:Xe=!0;break;case Pe:return Xe=y._init,ee(Xe(y._payload),O,ie,me,we)}}if(Xe){Xe=y,we=we(Xe);var yt=me===""?"."+oe(Xe,0):me;return gt(we)?(ie="",yt!=null&&(ie=yt.replace(ru,"$&/")+"/"),ee(we,O,ie,"",function(Za){return Za})):we!=null&&(K(we)&&(we.key!=null&&(Xe&&Xe.key===we.key||S(we.key)),ie=z(we,ie+(we.key==null||Xe&&Xe.key===we.key?"":(""+we.key).replace(ru,"$&/")+"/")+yt),me!==""&&Xe!=null&&K(Xe)&&Xe.key==null&&Xe._store&&!Xe._store.validated&&(ie._store.validated=2),we=ie),O.push(we)),1}if(Xe=0,yt=me===""?".":me+":",gt(y))for(var Oe=0;Oe<y.length;Oe++)me=y[Oe],$e=yt+oe(me,Oe),Xe+=ee(me,O,ie,$e,we);else if(Oe=i(y),typeof Oe==="function")for(Oe===y.entries&&(nu||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),nu=!0),y=Oe.call(y),Oe=0;!(me=y.next()).done;)me=me.value,$e=yt+oe(me,Oe++),Xe+=ee(me,O,ie,$e,we);else if($e==="object"){if(typeof y.then==="function")return ee(B(y),O,ie,me,we);throw O=String(y),Error("Objects are not valid as a React child (found: "+(O==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":O)+"). If you meant to render a collection of children, use an array instead.")}return Xe}function Z(y,O,ie){if(y==null)return y;var me=[],we=0;return ee(y,me,"","",function($e){return O.call(ie,$e,we++)}),me}function W(y){if(y._status===-1){var O=y._ioInfo;O!=null&&(O.start=O.end=performance.now()),O=y._result;var ie=O();if(ie.then(function(we){if(y._status===0||y._status===-1){y._status=1,y._result=we;var $e=y._ioInfo;$e!=null&&($e.end=performance.now()),ie.status===void 0&&(ie.status="fulfilled",ie.value=we)}},function(we){if(y._status===0||y._status===-1){y._status=2,y._result=we;var $e=y._ioInfo;$e!=null&&($e.end=performance.now()),ie.status===void 0&&(ie.status="rejected",ie.reason=we)}}),O=y._ioInfo,O!=null){O.value=ie;var me=ie.displayName;typeof me==="string"&&(O.name=me)}y._status===-1&&(y._status=0,y._result=ie)}if(y._status===1)return O=y._result,O===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
2
 
3
3
  Your code should look like:
4
4
  const MyComponent = lazy(() => import('./MyComponent'))
@@ -10,16 +10,16 @@ Your code should look like:
10
10
  1. You might have mismatching versions of React and the renderer (such as React DOM)
11
11
  2. You might be breaking the Rules of Hooks
12
12
  3. You might have more than one copy of React in the same app
13
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),y}function ge(){Ee.asyncTransitions--}function Ne(y){if(es===null)try{var O=("require"+Math.random()).slice(0,7);es=(sm&&sm[O]).call(sm,"timers").setImmediate}catch(ie){es=function(me){$c===!1&&($c=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var we=new MessageChannel;we.port1.onmessage=me,we.port2.postMessage(void 0)}}return es(y)}function Ce(y){return 1<y.length&&typeof AggregateError==="function"?AggregateError(y):y[0]}function Be(y,O){O!==ts-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ts=O}function te(y,O,ie){var me=Ee.actQueue;if(me!==null)if(me.length!==0)try{ve(me),Ne(function(){return te(y,O,ie)});return}catch(we){Ee.thrownErrors.push(we)}else Ee.actQueue=null;0<Ee.thrownErrors.length?(me=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,ie(me)):O(y)}function ve(y){if(!os){os=!0;var O=0;try{for(;O<y.length;O++){var ie=y[O];do{Ee.didUsePromise=!1;var me=ie(!1);if(me!==null){if(Ee.didUsePromise){y[O]=ie,y.splice(0,O);return}ie=me}else break}while(1)}y.length=0}catch(we){y.splice(0,O+1),Ee.thrownErrors.push(we)}finally{os=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ke=Symbol.for("react.transitional.element"),je=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),Lt=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),Pe=Symbol.for("react.lazy"),Mt=Symbol.for("react.activity"),pa=Symbol.iterator,re={},ma={isMounted:function(){return!1},enqueueForceUpdate:function(y){u(y,"forceUpdate")},enqueueReplaceState:function(y){u(y,"replaceState")},enqueueSetState:function(y){u(y,"setState")}},Ia=Object.assign,Kt={};Object.freeze(Kt),c.prototype.isReactComponent={},c.prototype.setState=function(y,O){if(typeof y!=="object"&&typeof y!=="function"&&y!=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,y,O,"setState")},c.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};var Yt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Kn in Yt)Yt.hasOwnProperty(Kn)&&r(Kn,Yt[Kn]);f.prototype=c.prototype,Yt=v.prototype=new f,Yt.constructor=v,Ia(Yt,c.prototype),Yt.isPureReactComponent=!0;var gt=Array.isArray,Et=Symbol.for("react.client.reference"),Ee={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},rl=Object.prototype.hasOwnProperty,_t=console.createTask?console.createTask:function(){return null};Yt={react_stack_bottom_frame:function(y){return y()}};var Vc,Rl,Kr={},Jr=Yt.react_stack_bottom_frame.bind(Yt,C)(),Om=_t(h(C)),nu=!1,ru=/\/+/g,Wn=typeof reportError==="function"?reportError:function(y){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(O))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",y);return}console.error(y)},$c=!1,es=null,ts=0,as=!1,os=!1,Ri=typeof queueMicrotask==="function"?function(y){queueMicrotask(function(){return queueMicrotask(y)})}:Ne;Yt=Object.freeze({__proto__:null,c:function(y){return X().useMemoCache(y)}});var Kn={map:Z,forEach:function(y,O,ie){Z(y,function(){O.apply(this,arguments)},ie)},count:function(y){var O=0;return Z(y,function(){O++}),O},toArray:function(y){return Z(y,function(O){return O})||[]},only:function(y){if(!K(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};ZM.Activity=Mt,ZM.Children=Kn,ZM.Component=c,ZM.Fragment=ae,ZM.Profiler=ue,ZM.PureComponent=v,ZM.StrictMode=P,ZM.Suspense=Lt,ZM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ee,ZM.__COMPILER_RUNTIME=Yt,ZM.act=function(y){var O=Ee.actQueue,ie=ts;ts++;var me=Ee.actQueue=O!==null?O:[],we=!1;try{var $e=y()}catch(Oe){Ee.thrownErrors.push(Oe)}if(0<Ee.thrownErrors.length)throw Be(O,ie),y=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,y;if($e!==null&&typeof $e==="object"&&typeof $e.then==="function"){var Xe=$e;return Ri(function(){we||as||(as=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Oe,Za){we=!0,Xe.then(function(xo){if(Be(O,ie),ie===0){try{ve(me),Ne(function(){return te(xo,Oe,Za)})}catch(Mi){Ee.thrownErrors.push(Mi)}if(0<Ee.thrownErrors.length){var Jn=Ce(Ee.thrownErrors);Ee.thrownErrors.length=0,Za(Jn)}}else Oe(xo)},function(xo){Be(O,ie),0<Ee.thrownErrors.length?(xo=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,Za(xo)):Za(xo)})}}}var yt=$e;if(Be(O,ie),ie===0&&(ve(me),me.length!==0&&Ri(function(){we||as||(as=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Ee.actQueue=null),0<Ee.thrownErrors.length)throw y=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,y;return{then:function(Oe,Za){we=!0,ie===0?(Ee.actQueue=me,Ne(function(){return te(yt,Oe,Za)})):Oe(yt)}}},ZM.cache=function(y){return function(){return y.apply(null,arguments)}},ZM.cacheSignal=function(){return null},ZM.captureOwnerStack=function(){var y=Ee.getCurrentStack;return y===null?null:y()},ZM.cloneElement=function(y,O,ie){if(y===null||y===void 0)throw Error("The argument must be a React element, but you passed "+y+".");var me=Ia({},y.props),{key:we,_owner:$e}=y;if(O!=null){var Xe;e:{if(rl.call(O,"ref")&&(Xe=Object.getOwnPropertyDescriptor(O,"ref").get)&&Xe.isReactWarning){Xe=!1;break e}Xe=O.ref!==void 0}Xe&&($e=x()),R(O)&&(S(O.key),we=""+O.key);for(yt in O)!rl.call(O,yt)||yt==="key"||yt==="__self"||yt==="__source"||yt==="ref"&&O.ref===void 0||(me[yt]=O[yt])}var yt=arguments.length-2;if(yt===1)me.children=ie;else if(1<yt){Xe=Array(yt);for(var Oe=0;Oe<yt;Oe++)Xe[Oe]=arguments[Oe+2];me.children=Xe}me=_(y.type,we,me,$e,y._debugStack,y._debugTask);for(we=2;we<arguments.length;we++)F(arguments[we]);return me},ZM.createContext=function(y){return y={$$typeof:ne,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:se,_context:y},y._currentRenderer=null,y._currentRenderer2=null,y},ZM.createElement=function(y,O,ie){for(var me=2;me<arguments.length;me++)F(arguments[me]);me={};var we=null;if(O!=null)for(Oe in Rl||!("__self"in O)||"key"in O||(Rl=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),R(O)&&(S(O.key),we=""+O.key),O)rl.call(O,Oe)&&Oe!=="key"&&Oe!=="__self"&&Oe!=="__source"&&(me[Oe]=O[Oe]);var $e=arguments.length-2;if($e===1)me.children=ie;else if(1<$e){for(var Xe=Array($e),yt=0;yt<$e;yt++)Xe[yt]=arguments[yt+2];Object.freeze&&Object.freeze(Xe),me.children=Xe}if(y&&y.defaultProps)for(Oe in $e=y.defaultProps,$e)me[Oe]===void 0&&(me[Oe]=$e[Oe]);we&&L(me,typeof y==="function"?y.displayName||y.name||"Unknown":y);var Oe=1e4>Ee.recentlyCreatedOwnerStacks++;return _(y,we,me,x(),Oe?Error("react-stack-top-frame"):Jr,Oe?_t(h(y)):Om)},ZM.createRef=function(){var y={current:null};return Object.seal(y),y},ZM.forwardRef=function(y){y!=null&&y.$$typeof===V?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof y!=="function"?console.error("forwardRef requires a render function but was given %s.",y===null?"null":typeof y):y.length!==0&&y.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",y.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),y!=null&&y.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var O={$$typeof:pe,render:y},ie;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return ie},set:function(me){ie=me,y.name||y.displayName||(Object.defineProperty(y,"name",{value:me}),y.displayName=me)}}),O},ZM.isValidElement=K,ZM.lazy=function(y){y={_status:-1,_result:y};var O={$$typeof:Pe,_payload:y,_init:W},ie={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return y._ioInfo=ie,O._debugInfo=[{awaited:ie}],O},ZM.memo=function(y,O){y==null&&console.error("memo: The first argument must be a component. Instead received: %s",y===null?"null":typeof y),O={$$typeof:V,type:y,compare:O===void 0?null:O};var ie;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return ie},set:function(me){ie=me,y.name||y.displayName||(Object.defineProperty(y,"name",{value:me}),y.displayName=me)}}),O},ZM.startTransition=function(y){var O=Ee.T,ie={};ie._updatedFibers=new Set,Ee.T=ie;try{var me=y(),we=Ee.S;we!==null&&we(ie,me),typeof me==="object"&&me!==null&&typeof me.then==="function"&&(Ee.asyncTransitions++,me.then(ge,ge),me.then(p,Wn))}catch($e){Wn($e)}finally{O===null&&ie._updatedFibers&&(y=ie._updatedFibers.size,ie._updatedFibers.clear(),10<y&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),O!==null&&ie.types!==null&&(O.types!==null&&O.types!==ie.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),O.types=ie.types),Ee.T=O}},ZM.unstable_useCacheRefresh=function(){return X().useCacheRefresh()},ZM.use=function(y){return X().use(y)},ZM.useActionState=function(y,O,ie){return X().useActionState(y,O,ie)},ZM.useCallback=function(y,O){return X().useCallback(y,O)},ZM.useContext=function(y){var O=X();return y.$$typeof===se&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),O.useContext(y)},ZM.useDebugValue=function(y,O){return X().useDebugValue(y,O)},ZM.useDeferredValue=function(y,O){return X().useDeferredValue(y,O)},ZM.useEffect=function(y,O){return y==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useEffect(y,O)},ZM.useEffectEvent=function(y){return X().useEffectEvent(y)},ZM.useId=function(){return X().useId()},ZM.useImperativeHandle=function(y,O,ie){return X().useImperativeHandle(y,O,ie)},ZM.useInsertionEffect=function(y,O){return y==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useInsertionEffect(y,O)},ZM.useLayoutEffect=function(y,O){return y==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useLayoutEffect(y,O)},ZM.useMemo=function(y,O){return X().useMemo(y,O)},ZM.useOptimistic=function(y,O){return X().useOptimistic(y,O)},ZM.useReducer=function(y,O,ie){return X().useReducer(y,O,ie)},ZM.useRef=function(y){return X().useRef(y)},ZM.useState=function(y){return X().useState(y)},ZM.useSyncExternalStore=function(y,O,ie){return X().useSyncExternalStore(y,O,ie)},ZM.useTransition=function(){return X().useTransition()},ZM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var w1=Fs(function(WM){var pb=Y(ut());(function(){function r(){}function i(h){return""+h}function u(h,x,C){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(R);var L=!1}catch(D){L=!0}return L&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object"),i(R)),{$$typeof:S,key:R==null?null:""+R,children:h,containerInfo:x,implementation:C}}function c(h,x){if(h==="font")return"";if(typeof x==="string")return x==="use-credentials"?x:""}function f(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":'something with type "'+typeof h+'"'}function v(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":typeof h==="string"?JSON.stringify(h):typeof h==="number"?"`"+h+"`":'something with type "'+typeof h+'"'}function p(){var h=k.H;return h===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),y}function ge(){Ee.asyncTransitions--}function Ne(y){if(es===null)try{var O=("require"+Math.random()).slice(0,7);es=(sm&&sm[O]).call(sm,"timers").setImmediate}catch(ie){es=function(me){$c===!1&&($c=!0,typeof MessageChannel>"u"&&console.error("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var we=new MessageChannel;we.port1.onmessage=me,we.port2.postMessage(void 0)}}return es(y)}function Ce(y){return 1<y.length&&typeof AggregateError==="function"?AggregateError(y):y[0]}function Be(y,O){O!==ts-1&&console.error("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),ts=O}function te(y,O,ie){var me=Ee.actQueue;if(me!==null)if(me.length!==0)try{ve(me),Ne(function(){return te(y,O,ie)});return}catch(we){Ee.thrownErrors.push(we)}else Ee.actQueue=null;0<Ee.thrownErrors.length?(me=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,ie(me)):O(y)}function ve(y){if(!os){os=!0;var O=0;try{for(;O<y.length;O++){var ie=y[O];do{Ee.didUsePromise=!1;var me=ie(!1);if(me!==null){if(Ee.didUsePromise){y[O]=ie,y.splice(0,O);return}ie=me}else break}while(1)}y.length=0}catch(we){y.splice(0,O+1),Ee.thrownErrors.push(we)}finally{os=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var ke=Symbol.for("react.transitional.element"),je=Symbol.for("react.portal"),ae=Symbol.for("react.fragment"),P=Symbol.for("react.strict_mode"),ue=Symbol.for("react.profiler"),se=Symbol.for("react.consumer"),ne=Symbol.for("react.context"),pe=Symbol.for("react.forward_ref"),Lt=Symbol.for("react.suspense"),Ye=Symbol.for("react.suspense_list"),V=Symbol.for("react.memo"),Pe=Symbol.for("react.lazy"),Mt=Symbol.for("react.activity"),pa=Symbol.iterator,re={},ma={isMounted:function(){return!1},enqueueForceUpdate:function(y){u(y,"forceUpdate")},enqueueReplaceState:function(y){u(y,"replaceState")},enqueueSetState:function(y){u(y,"setState")}},Ia=Object.assign,Kt={};Object.freeze(Kt),c.prototype.isReactComponent={},c.prototype.setState=function(y,O){if(typeof y!=="object"&&typeof y!=="function"&&y!=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,y,O,"setState")},c.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};var Yt={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]};for(Kn in Yt)Yt.hasOwnProperty(Kn)&&r(Kn,Yt[Kn]);f.prototype=c.prototype,Yt=v.prototype=new f,Yt.constructor=v,Ia(Yt,c.prototype),Yt.isPureReactComponent=!0;var gt=Array.isArray,Et=Symbol.for("react.client.reference"),Ee={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},rl=Object.prototype.hasOwnProperty,_t=console.createTask?console.createTask:function(){return null};Yt={react_stack_bottom_frame:function(y){return y()}};var Vc,Rl,Kr={},Jr=Yt.react_stack_bottom_frame.bind(Yt,C)(),Om=_t(h(C)),nu=!1,ru=/\/+/g,Wn=typeof reportError==="function"?reportError:function(y){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var O=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof y==="object"&&y!==null&&typeof y.message==="string"?String(y.message):String(y),error:y});if(!window.dispatchEvent(O))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",y);return}console.error(y)},$c=!1,es=null,ts=0,as=!1,os=!1,Ri=typeof queueMicrotask==="function"?function(y){queueMicrotask(function(){return queueMicrotask(y)})}:Ne;Yt=Object.freeze({__proto__:null,c:function(y){return X().useMemoCache(y)}});var Kn={map:Z,forEach:function(y,O,ie){Z(y,function(){O.apply(this,arguments)},ie)},count:function(y){var O=0;return Z(y,function(){O++}),O},toArray:function(y){return Z(y,function(O){return O})||[]},only:function(y){if(!K(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};WM.Activity=Mt,WM.Children=Kn,WM.Component=c,WM.Fragment=ae,WM.Profiler=ue,WM.PureComponent=v,WM.StrictMode=P,WM.Suspense=Lt,WM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ee,WM.__COMPILER_RUNTIME=Yt,WM.act=function(y){var O=Ee.actQueue,ie=ts;ts++;var me=Ee.actQueue=O!==null?O:[],we=!1;try{var $e=y()}catch(Oe){Ee.thrownErrors.push(Oe)}if(0<Ee.thrownErrors.length)throw Be(O,ie),y=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,y;if($e!==null&&typeof $e==="object"&&typeof $e.then==="function"){var Xe=$e;return Ri(function(){we||as||(as=!0,console.error("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),{then:function(Oe,Za){we=!0,Xe.then(function(xo){if(Be(O,ie),ie===0){try{ve(me),Ne(function(){return te(xo,Oe,Za)})}catch(Mi){Ee.thrownErrors.push(Mi)}if(0<Ee.thrownErrors.length){var Jn=Ce(Ee.thrownErrors);Ee.thrownErrors.length=0,Za(Jn)}}else Oe(xo)},function(xo){Be(O,ie),0<Ee.thrownErrors.length?(xo=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,Za(xo)):Za(xo)})}}}var yt=$e;if(Be(O,ie),ie===0&&(ve(me),me.length!==0&&Ri(function(){we||as||(as=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),Ee.actQueue=null),0<Ee.thrownErrors.length)throw y=Ce(Ee.thrownErrors),Ee.thrownErrors.length=0,y;return{then:function(Oe,Za){we=!0,ie===0?(Ee.actQueue=me,Ne(function(){return te(yt,Oe,Za)})):Oe(yt)}}},WM.cache=function(y){return function(){return y.apply(null,arguments)}},WM.cacheSignal=function(){return null},WM.captureOwnerStack=function(){var y=Ee.getCurrentStack;return y===null?null:y()},WM.cloneElement=function(y,O,ie){if(y===null||y===void 0)throw Error("The argument must be a React element, but you passed "+y+".");var me=Ia({},y.props),{key:we,_owner:$e}=y;if(O!=null){var Xe;e:{if(rl.call(O,"ref")&&(Xe=Object.getOwnPropertyDescriptor(O,"ref").get)&&Xe.isReactWarning){Xe=!1;break e}Xe=O.ref!==void 0}Xe&&($e=x()),R(O)&&(S(O.key),we=""+O.key);for(yt in O)!rl.call(O,yt)||yt==="key"||yt==="__self"||yt==="__source"||yt==="ref"&&O.ref===void 0||(me[yt]=O[yt])}var yt=arguments.length-2;if(yt===1)me.children=ie;else if(1<yt){Xe=Array(yt);for(var Oe=0;Oe<yt;Oe++)Xe[Oe]=arguments[Oe+2];me.children=Xe}me=_(y.type,we,me,$e,y._debugStack,y._debugTask);for(we=2;we<arguments.length;we++)F(arguments[we]);return me},WM.createContext=function(y){return y={$$typeof:ne,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:se,_context:y},y._currentRenderer=null,y._currentRenderer2=null,y},WM.createElement=function(y,O,ie){for(var me=2;me<arguments.length;me++)F(arguments[me]);me={};var we=null;if(O!=null)for(Oe in Rl||!("__self"in O)||"key"in O||(Rl=!0,console.warn("Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform")),R(O)&&(S(O.key),we=""+O.key),O)rl.call(O,Oe)&&Oe!=="key"&&Oe!=="__self"&&Oe!=="__source"&&(me[Oe]=O[Oe]);var $e=arguments.length-2;if($e===1)me.children=ie;else if(1<$e){for(var Xe=Array($e),yt=0;yt<$e;yt++)Xe[yt]=arguments[yt+2];Object.freeze&&Object.freeze(Xe),me.children=Xe}if(y&&y.defaultProps)for(Oe in $e=y.defaultProps,$e)me[Oe]===void 0&&(me[Oe]=$e[Oe]);we&&L(me,typeof y==="function"?y.displayName||y.name||"Unknown":y);var Oe=1e4>Ee.recentlyCreatedOwnerStacks++;return _(y,we,me,x(),Oe?Error("react-stack-top-frame"):Jr,Oe?_t(h(y)):Om)},WM.createRef=function(){var y={current:null};return Object.seal(y),y},WM.forwardRef=function(y){y!=null&&y.$$typeof===V?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof y!=="function"?console.error("forwardRef requires a render function but was given %s.",y===null?"null":typeof y):y.length!==0&&y.length!==2&&console.error("forwardRef render functions accept exactly two parameters: props and ref. %s",y.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),y!=null&&y.defaultProps!=null&&console.error("forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?");var O={$$typeof:pe,render:y},ie;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return ie},set:function(me){ie=me,y.name||y.displayName||(Object.defineProperty(y,"name",{value:me}),y.displayName=me)}}),O},WM.isValidElement=K,WM.lazy=function(y){y={_status:-1,_result:y};var O={$$typeof:Pe,_payload:y,_init:W},ie={name:"lazy",start:-1,end:-1,value:null,owner:null,debugStack:Error("react-stack-top-frame"),debugTask:console.createTask?console.createTask("lazy()"):null};return y._ioInfo=ie,O._debugInfo=[{awaited:ie}],O},WM.memo=function(y,O){y==null&&console.error("memo: The first argument must be a component. Instead received: %s",y===null?"null":typeof y),O={$$typeof:V,type:y,compare:O===void 0?null:O};var ie;return Object.defineProperty(O,"displayName",{enumerable:!1,configurable:!0,get:function(){return ie},set:function(me){ie=me,y.name||y.displayName||(Object.defineProperty(y,"name",{value:me}),y.displayName=me)}}),O},WM.startTransition=function(y){var O=Ee.T,ie={};ie._updatedFibers=new Set,Ee.T=ie;try{var me=y(),we=Ee.S;we!==null&&we(ie,me),typeof me==="object"&&me!==null&&typeof me.then==="function"&&(Ee.asyncTransitions++,me.then(ge,ge),me.then(p,Wn))}catch($e){Wn($e)}finally{O===null&&ie._updatedFibers&&(y=ie._updatedFibers.size,ie._updatedFibers.clear(),10<y&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.")),O!==null&&ie.types!==null&&(O.types!==null&&O.types!==ie.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),O.types=ie.types),Ee.T=O}},WM.unstable_useCacheRefresh=function(){return X().useCacheRefresh()},WM.use=function(y){return X().use(y)},WM.useActionState=function(y,O,ie){return X().useActionState(y,O,ie)},WM.useCallback=function(y,O){return X().useCallback(y,O)},WM.useContext=function(y){var O=X();return y.$$typeof===se&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),O.useContext(y)},WM.useDebugValue=function(y,O){return X().useDebugValue(y,O)},WM.useDeferredValue=function(y,O){return X().useDeferredValue(y,O)},WM.useEffect=function(y,O){return y==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useEffect(y,O)},WM.useEffectEvent=function(y){return X().useEffectEvent(y)},WM.useId=function(){return X().useId()},WM.useImperativeHandle=function(y,O,ie){return X().useImperativeHandle(y,O,ie)},WM.useInsertionEffect=function(y,O){return y==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useInsertionEffect(y,O)},WM.useLayoutEffect=function(y,O){return y==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),X().useLayoutEffect(y,O)},WM.useMemo=function(y,O){return X().useMemo(y,O)},WM.useOptimistic=function(y,O){return X().useOptimistic(y,O)},WM.useReducer=function(y,O,ie){return X().useReducer(y,O,ie)},WM.useRef=function(y){return X().useRef(y)},WM.useState=function(y){return X().useState(y)},WM.useSyncExternalStore=function(y,O,ie){return X().useSyncExternalStore(y,O,ie)},WM.useTransition=function(){return X().useTransition()},WM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var T1=Fs(function(KM){var pb=Y(ut());(function(){function r(){}function i(h){return""+h}function u(h,x,C){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{i(R);var L=!1}catch(D){L=!0}return L&&(console.error("The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",typeof Symbol==="function"&&Symbol.toStringTag&&R[Symbol.toStringTag]||R.constructor.name||"Object"),i(R)),{$$typeof:S,key:R==null?null:""+R,children:h,containerInfo:x,implementation:C}}function c(h,x){if(h==="font")return"";if(typeof x==="string")return x==="use-credentials"?x:""}function f(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":'something with type "'+typeof h+'"'}function v(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":typeof h==="string"?JSON.stringify(h):typeof h==="number"?"`"+h+"`":'something with type "'+typeof h+'"'}function p(){var h=k.H;return h===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
14
  1. You might have mismatching versions of React and the renderer (such as React DOM)
15
15
  2. You might be breaking the Rules of Hooks
16
16
  3. You might have more than one copy of React in the same app
17
- See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var b={d:{f:r,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},S=Symbol.for("react.portal"),k=pb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),WM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,WM.createPortal=function(h,x){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error("Target container is not a DOM element.");return u(h,x,null,C)},WM.flushSync=function(h){var x=k.T,C=b.p;try{if(k.T=null,b.p=2,h)return h()}finally{k.T=x,b.p=C,b.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},WM.preconnect=function(h,x){typeof h==="string"&&h?x!=null&&typeof x!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",v(x)):x!=null&&typeof x.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",f(x.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h)),typeof h==="string"&&(x?(x=x.crossOrigin,x=typeof x==="string"?x==="use-credentials"?x:"":void 0):x=null,b.d.C(h,x))},WM.prefetchDNS=function(h){if(typeof h!=="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h));else if(1<arguments.length){var x=arguments[1];typeof x==="object"&&x.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(x)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(x))}typeof h==="string"&&b.d.D(h)},WM.preinit=function(h,x){if(typeof h==="string"&&h?x==null||typeof x!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",v(x)):x.as!=="style"&&x.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',v(x.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h)),typeof h==="string"&&x&&typeof x.as==="string"){var C=x.as,R=c(C,x.crossOrigin),L=typeof x.integrity==="string"?x.integrity:void 0,D=typeof x.fetchPriority==="string"?x.fetchPriority:void 0;C==="style"?b.d.S(h,typeof x.precedence==="string"?x.precedence:void 0,{crossOrigin:R,integrity:L,fetchPriority:D}):C==="script"&&b.d.X(h,{crossOrigin:R,integrity:L,fetchPriority:D,nonce:typeof x.nonce==="string"?x.nonce:void 0})}},WM.preinitModule=function(h,x){var C="";if(typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x!==void 0&&typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":x&&("as"in x)&&x.as!=="script"&&(C+=" The `as` option encountered was "+v(x.as)+"."),C)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",C);else switch(C=x&&typeof x.as==="string"?x.as:"script",C){case"script":break;default:C=v(C),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',C,h)}if(typeof h==="string")if(typeof x==="object"&&x!==null){if(x.as==null||x.as==="script")C=c(x.as,x.crossOrigin),b.d.M(h,{crossOrigin:C,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0})}else x==null&&b.d.M(h)},WM.preload=function(h,x){var C="";if(typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x==null||typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":typeof x.as==="string"&&x.as||(C+=" The `as` option encountered was "+f(x.as)+"."),C&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',C),typeof h==="string"&&typeof x==="object"&&x!==null&&typeof x.as==="string"){C=x.as;var R=c(C,x.crossOrigin);b.d.L(h,C,{crossOrigin:R,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0,type:typeof x.type==="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority==="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy==="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet==="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes==="string"?x.imageSizes:void 0,media:typeof x.media==="string"?x.media:void 0})}},WM.preloadModule=function(h,x){var C="";typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x!==void 0&&typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":x&&("as"in x)&&typeof x.as!=="string"&&(C+=" The `as` option encountered was "+f(x.as)+"."),C&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',C),typeof h==="string"&&(x?(C=c(x.as,x.crossOrigin),b.d.m(h,{as:typeof x.as==="string"&&x.as!=="script"?x.as:void 0,crossOrigin:C,integrity:typeof x.integrity==="string"?x.integrity:void 0})):b.d.m(h))},WM.requestFormReset=function(h){b.d.r(h)},WM.unstable_batchedUpdates=function(h,x){return h(x)},WM.useFormState=function(h,x,C){return p().useFormState(h,x,C)},WM.useFormStatus=function(){return p().useHostTransitionStatus()},WM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rc=Fs(function(KM,um){um.exports=Y(w1())});var T1=Fs(function(JM){var bt=Y(k1()),ii=Y(ut()),mb=Y(rc());(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,a,o){if(a>=t.length)return o;var l=t[a],n=Ra(e)?e.slice():rt({},e);return n[l]=i(e[l],t,a+1,o),n}function u(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,o){var l=t[o],n=Ra(e)?e.slice():rt({},e);return o+1===t.length?(n[a[o]]=n[l],Ra(n)?n.splice(l,1):delete n[l]):n[l]=c(e[l],t,a,o+1),n}function f(e,t,a){var o=t[a],l=Ra(e)?e.slice():rt({},e);if(a+1===t.length)return Ra(l)?l.splice(o,1):delete l[o],l;return l[o]=f(e[o],t,a+1),l}function v(){return!1}function p(){return null}function b(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function k(){}function h(){}function x(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function C(e,t,a,o){return new OT(e,t,a,o)}function R(e,t){e.context===vr&&(Og(e.current,2,t,e,null,null),vu())}function L(e,t){if(Xo!==null){var a=t.staleFamilies;t=t.updatedFamilies,td(),R0(e.current,t,a),vu()}}function D(e){Xo=e}function _(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function z(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function F(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function K(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function N(e){if(z(e)!==e)throw Error("Unable to find node on an unmounted component.")}function oe(e){var t=e.alternate;if(!t){if(t=z(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var l=a.return;if(l===null)break;var n=l.alternate;if(n===null){if(o=l.return,o!==null){a=o;continue}break}if(l.child===n.child){for(n=l.child;n;){if(n===a)return N(l),e;if(n===o)return N(l),t;n=n.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=l,o=n;else{for(var s=!1,d=l.child;d;){if(d===a){s=!0,a=l,o=n;break}if(d===o){s=!0,o=l,a=n;break}d=d.sibling}if(!s){for(d=n.child;d;){if(d===a){s=!0,a=n,o=l;break}if(d===o){s=!0,o=n,a=l;break}d=d.sibling}if(!s)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function B(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=B(e),t!==null)return t;e=e.sibling}return null}function ee(e){if(e===null||typeof e!=="object")return null;return e=Bx&&e[Bx]||e["@@iterator"],typeof e==="function"?e:null}function Z(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===eR?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Tu:return"Fragment";case zg:return"Profiler";case tp:return"StrictMode";case Hg:return"Suspense";case Fg:return"SuspenseList";case Gg:return"Activity"}if(typeof e==="object")switch(typeof e.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case wu:return"Portal";case Xl:return e.displayName||"Context";case _g:return(e._context.displayName||"Context")+".Consumer";case cd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ap:return t=e.displayName||null,t!==null?t:Z(e.type)||"Memo";case Ao:t=e._payload,e=e._init;try{return Z(e(t))}catch(a){}}return null}function W(e){return typeof e.tag==="number"?X(e):typeof e.name==="string"?e.name:null}function X(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z(t);case 8:return t===tp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t==="function")return t.displayName||t.name||null;if(typeof t==="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name==="string")return t[a].name}if(e.return!==null)return X(e.return)}return null}function ge(e){return{current:e}}function Ne(e,t){0>Tn?console.error("Unexpected pop."):(t!==$g[Tn]&&console.error("Unexpected Fiber popped."),e.current=Vg[Tn],Vg[Tn]=null,$g[Tn]=null,Tn--)}function Ce(e,t,a){Tn++,Vg[Tn]=e.current,$g[Tn]=a,e.current=t}function Be(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function te(e,t){Ce(pr,t,e),Ce(fd,e,e),Ce(fr,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?nx(t):_n:_n;break;default:if(a=t.tagName,t=t.namespaceURI)t=nx(t),t=rx(t,a);else switch(a){case"svg":t=ri;break;case"math":t=em;break;default:t=_n}}a=a.toLowerCase(),a=Jb(null,a),a={context:t,ancestorInfo:a},Ne(fr,e),Ce(fr,a,e)}function ve(e){Ne(fr,e),Ne(fd,e),Ne(pr,e)}function ke(){return Be(fr.current)}function je(e){e.memoizedState!==null&&Ce(op,e,e);var t=Be(fr.current),a=e.type,o=rx(t.context,a);a=Jb(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ce(fd,e,e),Ce(fr,o,e))}function ae(e){fd.current===e&&(Ne(fr,e),Ne(fd,e)),op.current===e&&(Ne(op,e),oc._currentValue=Hs)}function P(){}function ue(){if(pd===0){Nx=console.log,Ux=console.info,Px=console.warn,zx=console.error,_x=console.group,Hx=console.groupCollapsed,Fx=console.groupEnd;var e={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}pd++}function se(){if(pd--,pd===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:rt({},e,{value:Nx}),info:rt({},e,{value:Ux}),warn:rt({},e,{value:Px}),error:rt({},e,{value:zx}),group:rt({},e,{value:_x}),groupCollapsed:rt({},e,{value:Hx}),groupEnd:rt({},e,{value:Fx})})}0>pd&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ne(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),h}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var b={d:{f:r,r:function(){throw Error("Invalid form element. requestFormReset must be passed a form that was rendered by React.")},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},S=Symbol.for("react.portal"),k=pb.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),KM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,KM.createPortal=function(h,x){var C=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!x||x.nodeType!==1&&x.nodeType!==9&&x.nodeType!==11)throw Error("Target container is not a DOM element.");return u(h,x,null,C)},KM.flushSync=function(h){var x=k.T,C=b.p;try{if(k.T=null,b.p=2,h)return h()}finally{k.T=x,b.p=C,b.d.f()&&console.error("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.")}},KM.preconnect=function(h,x){typeof h==="string"&&h?x!=null&&typeof x!=="object"?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",v(x)):x!=null&&typeof x.crossOrigin!=="string"&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",f(x.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h)),typeof h==="string"&&(x?(x=x.crossOrigin,x=typeof x==="string"?x==="use-credentials"?x:"":void 0):x=null,b.d.C(h,x))},KM.prefetchDNS=function(h){if(typeof h!=="string"||!h)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h));else if(1<arguments.length){var x=arguments[1];typeof x==="object"&&x.hasOwnProperty("crossOrigin")?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(x)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",v(x))}typeof h==="string"&&b.d.D(h)},KM.preinit=function(h,x){if(typeof h==="string"&&h?x==null||typeof x!=="object"?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",v(x)):x.as!=="style"&&x.as!=="script"&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',v(x.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",f(h)),typeof h==="string"&&x&&typeof x.as==="string"){var C=x.as,R=c(C,x.crossOrigin),L=typeof x.integrity==="string"?x.integrity:void 0,D=typeof x.fetchPriority==="string"?x.fetchPriority:void 0;C==="style"?b.d.S(h,typeof x.precedence==="string"?x.precedence:void 0,{crossOrigin:R,integrity:L,fetchPriority:D}):C==="script"&&b.d.X(h,{crossOrigin:R,integrity:L,fetchPriority:D,nonce:typeof x.nonce==="string"?x.nonce:void 0})}},KM.preinitModule=function(h,x){var C="";if(typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x!==void 0&&typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":x&&("as"in x)&&x.as!=="script"&&(C+=" The `as` option encountered was "+v(x.as)+"."),C)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",C);else switch(C=x&&typeof x.as==="string"?x.as:"script",C){case"script":break;default:C=v(C),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',C,h)}if(typeof h==="string")if(typeof x==="object"&&x!==null){if(x.as==null||x.as==="script")C=c(x.as,x.crossOrigin),b.d.M(h,{crossOrigin:C,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0})}else x==null&&b.d.M(h)},KM.preload=function(h,x){var C="";if(typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x==null||typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":typeof x.as==="string"&&x.as||(C+=" The `as` option encountered was "+f(x.as)+"."),C&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',C),typeof h==="string"&&typeof x==="object"&&x!==null&&typeof x.as==="string"){C=x.as;var R=c(C,x.crossOrigin);b.d.L(h,C,{crossOrigin:R,integrity:typeof x.integrity==="string"?x.integrity:void 0,nonce:typeof x.nonce==="string"?x.nonce:void 0,type:typeof x.type==="string"?x.type:void 0,fetchPriority:typeof x.fetchPriority==="string"?x.fetchPriority:void 0,referrerPolicy:typeof x.referrerPolicy==="string"?x.referrerPolicy:void 0,imageSrcSet:typeof x.imageSrcSet==="string"?x.imageSrcSet:void 0,imageSizes:typeof x.imageSizes==="string"?x.imageSizes:void 0,media:typeof x.media==="string"?x.media:void 0})}},KM.preloadModule=function(h,x){var C="";typeof h==="string"&&h||(C+=" The `href` argument encountered was "+f(h)+"."),x!==void 0&&typeof x!=="object"?C+=" The `options` argument encountered was "+f(x)+".":x&&("as"in x)&&typeof x.as!=="string"&&(C+=" The `as` option encountered was "+f(x.as)+"."),C&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',C),typeof h==="string"&&(x?(C=c(x.as,x.crossOrigin),b.d.m(h,{as:typeof x.as==="string"&&x.as!=="script"?x.as:void 0,crossOrigin:C,integrity:typeof x.integrity==="string"?x.integrity:void 0})):b.d.m(h))},KM.requestFormReset=function(h){b.d.r(h)},KM.unstable_batchedUpdates=function(h,x){return h(x)},KM.useFormState=function(h,x,C){return p().useFormState(h,x,C)},KM.useFormStatus=function(){return p().useHostTransitionStatus()},KM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var rc=Fs(function(JM,um){um.exports=Y(T1())});var I1=Fs(function(eA){var bt=Y(w1()),ii=Y(ut()),mb=Y(rc());(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function i(e,t,a,o){if(a>=t.length)return o;var l=t[a],n=Ra(e)?e.slice():rt({},e);return n[l]=i(e[l],t,a+1,o),n}function u(e,t,a){if(t.length!==a.length)console.warn("copyWithRename() expects paths of the same length");else{for(var o=0;o<a.length-1;o++)if(t[o]!==a[o]){console.warn("copyWithRename() expects paths to be the same except for the deepest key");return}return c(e,t,a,0)}}function c(e,t,a,o){var l=t[o],n=Ra(e)?e.slice():rt({},e);return o+1===t.length?(n[a[o]]=n[l],Ra(n)?n.splice(l,1):delete n[l]):n[l]=c(e[l],t,a,o+1),n}function f(e,t,a){var o=t[a],l=Ra(e)?e.slice():rt({},e);if(a+1===t.length)return Ra(l)?l.splice(o,1):delete l[o],l;return l[o]=f(e[o],t,a+1),l}function v(){return!1}function p(){return null}function b(){console.error("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks")}function S(){console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")}function k(){}function h(){}function x(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function C(e,t,a,o){return new qT(e,t,a,o)}function R(e,t){e.context===vr&&(Og(e.current,2,t,e,null,null),vu())}function L(e,t){if(Xo!==null){var a=t.staleFamilies;t=t.updatedFamilies,td(),M0(e.current,t,a),vu()}}function D(e){Xo=e}function _(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function z(e){var t=e,a=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,(t.flags&4098)!==0&&(a=t.return),e=t.return;while(e)}return t.tag===3?a:null}function F(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function K(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function N(e){if(z(e)!==e)throw Error("Unable to find node on an unmounted component.")}function oe(e){var t=e.alternate;if(!t){if(t=z(e),t===null)throw Error("Unable to find node on an unmounted component.");return t!==e?null:e}for(var a=e,o=t;;){var l=a.return;if(l===null)break;var n=l.alternate;if(n===null){if(o=l.return,o!==null){a=o;continue}break}if(l.child===n.child){for(n=l.child;n;){if(n===a)return N(l),e;if(n===o)return N(l),t;n=n.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=l,o=n;else{for(var s=!1,d=l.child;d;){if(d===a){s=!0,a=l,o=n;break}if(d===o){s=!0,o=l,a=n;break}d=d.sibling}if(!s){for(d=n.child;d;){if(d===a){s=!0,a=n,o=l;break}if(d===o){s=!0,o=n,a=l;break}d=d.sibling}if(!s)throw Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(a.alternate!==o)throw Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(a.tag!==3)throw Error("Unable to find node on an unmounted component.");return a.stateNode.current===a?e:t}function B(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=B(e),t!==null)return t;e=e.sibling}return null}function ee(e){if(e===null||typeof e!=="object")return null;return e=Nx&&e[Nx]||e["@@iterator"],typeof e==="function"?e:null}function Z(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===tR?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Tu:return"Fragment";case zg:return"Profiler";case tp:return"StrictMode";case Hg:return"Suspense";case Fg:return"SuspenseList";case Gg:return"Activity"}if(typeof e==="object")switch(typeof e.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),e.$$typeof){case wu:return"Portal";case Xl:return e.displayName||"Context";case _g:return(e._context.displayName||"Context")+".Consumer";case cd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case ap:return t=e.displayName||null,t!==null?t:Z(e.type)||"Memo";case Ao:t=e._payload,e=e._init;try{return Z(e(t))}catch(a){}}return null}function W(e){return typeof e.tag==="number"?X(e):typeof e.name==="string"?e.name:null}function X(e){var t=e.type;switch(e.tag){case 31:return"Activity";case 24:return"Cache";case 9:return(t._context.displayName||"Context")+".Consumer";case 10:return t.displayName||"Context";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 26:case 27:case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Z(t);case 8:return t===tp?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 14:case 15:if(typeof t==="function")return t.displayName||t.name||null;if(typeof t==="string")return t;break;case 29:if(t=e._debugInfo,t!=null){for(var a=t.length-1;0<=a;a--)if(typeof t[a].name==="string")return t[a].name}if(e.return!==null)return X(e.return)}return null}function ge(e){return{current:e}}function Ne(e,t){0>Tn?console.error("Unexpected pop."):(t!==$g[Tn]&&console.error("Unexpected Fiber popped."),e.current=Vg[Tn],Vg[Tn]=null,$g[Tn]=null,Tn--)}function Ce(e,t,a){Tn++,Vg[Tn]=e.current,$g[Tn]=a,e.current=t}function Be(e){return e===null&&console.error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue."),e}function te(e,t){Ce(pr,t,e),Ce(fd,e,e),Ce(fr,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?rx(t):_n:_n;break;default:if(a=t.tagName,t=t.namespaceURI)t=rx(t),t=sx(t,a);else switch(a){case"svg":t=ri;break;case"math":t=em;break;default:t=_n}}a=a.toLowerCase(),a=e0(null,a),a={context:t,ancestorInfo:a},Ne(fr,e),Ce(fr,a,e)}function ve(e){Ne(fr,e),Ne(fd,e),Ne(pr,e)}function ke(){return Be(fr.current)}function je(e){e.memoizedState!==null&&Ce(op,e,e);var t=Be(fr.current),a=e.type,o=sx(t.context,a);a=e0(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ce(fd,e,e),Ce(fr,o,e))}function ae(e){fd.current===e&&(Ne(fr,e),Ne(fd,e)),op.current===e&&(Ne(op,e),oc._currentValue=Hs)}function P(){}function ue(){if(pd===0){Ux=console.log,Px=console.info,zx=console.warn,_x=console.error,Hx=console.group,Fx=console.groupCollapsed,Gx=console.groupEnd;var e={configurable:!0,enumerable:!0,value:P,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}pd++}function se(){if(pd--,pd===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:rt({},e,{value:Ux}),info:rt({},e,{value:Px}),warn:rt({},e,{value:zx}),error:rt({},e,{value:_x}),group:rt({},e,{value:Hx}),groupCollapsed:rt({},e,{value:Fx}),groupEnd:rt({},e,{value:Gx})})}0>pd&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ne(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
18
18
  `)&&(e=e.slice(29)),t=e.indexOf(`
19
19
  `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf("react_stack_bottom_frame"),t!==-1&&(t=e.lastIndexOf(`
20
- `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function pe(e){if(Xg===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Xg=t&&t[1]||"",Gx=-1<a.stack.indexOf(`
20
+ `,t)),t!==-1)e=e.slice(0,t);else return"";return e}function pe(e){if(Xg===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Xg=t&&t[1]||"",Vx=-1<a.stack.indexOf(`
21
21
  at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
22
- `+Xg+e+Gx}function Lt(e,t){if(!e||jg)return"";var a=Yg.get(e);if(a!==void 0)return a;jg=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=G.H,G.H=null,ue();try{var l={DetermineComponentFrameRoot:function(){try{if(t){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(de){var U=de}Reflect.construct(e,[],T)}else{try{T.call()}catch(de){U=de}e.call(T.prototype)}}else{try{throw Error()}catch(de){U=de}(T=e())&&typeof T.catch==="function"&&T.catch(function(){})}}catch(de){if(de&&U&&typeof de.stack==="string")return[de.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),d=s[0],m=s[1];if(d&&m){var g=d.split(`
22
+ `+Xg+e+Vx}function Lt(e,t){if(!e||jg)return"";var a=Yg.get(e);if(a!==void 0)return a;jg=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=G.H,G.H=null,ue();try{var l={DetermineComponentFrameRoot:function(){try{if(t){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(de){var U=de}Reflect.construct(e,[],T)}else{try{T.call()}catch(de){U=de}e.call(T.prototype)}}else{try{throw Error()}catch(de){U=de}(T=e())&&typeof T.catch==="function"&&T.catch(function(){})}}catch(de){if(de&&U&&typeof de.stack==="string")return[de.stack,U.stack]}return[null,null]}};l.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var n=Object.getOwnPropertyDescriptor(l.DetermineComponentFrameRoot,"name");n&&n.configurable&&Object.defineProperty(l.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=l.DetermineComponentFrameRoot(),d=s[0],m=s[1];if(d&&m){var g=d.split(`
23
23
  `),A=m.split(`
24
24
  `);for(s=n=0;n<g.length&&!g[n].includes("DetermineComponentFrameRoot");)n++;for(;s<A.length&&!A[s].includes("DetermineComponentFrameRoot");)s++;if(n===g.length||s===A.length)for(n=g.length-1,s=A.length-1;1<=n&&0<=s&&g[n]!==A[s];)s--;for(;1<=n&&0<=s;n--,s--)if(g[n]!==A[s]){if(n!==1||s!==1)do if(n--,s--,0>s||g[n]!==A[s]){var E=`
25
25
  `+g[n].replace(" at new "," at ");return e.displayName&&E.includes("<anonymous>")&&(E=E.replace("<anonymous>",e.displayName)),typeof e==="function"&&Yg.set(e,E),E}while(1<=n&&0<=s);break}}}finally{jg=!1,G.H=o,se(),Error.prepareStackTrace=a}return g=(g=e?e.displayName||e.name:"")?pe(g):"",typeof e==="function"&&Yg.set(e,g),g}function Ye(e,t){switch(e.tag){case 26:case 27:case 5:return pe(e.type);case 16:return pe("Lazy");case 13:return e.child!==t&&t!==null?pe("Suspense Fallback"):pe("Suspense");case 19:return pe("SuspenseList");case 0:case 15:return Lt(e.type,!1);case 11:return Lt(e.type.render,!1);case 1:return Lt(e.type,!0);case 31:return pe("Activity");default:return""}}function V(e){try{var t="",a=null;do{t+=Ye(e,a);var o=e._debugInfo;if(o)for(var l=o.length-1;0<=l;l--){var n=o[l];if(typeof n.name==="string"){var s=t;e:{var{name:d,env:m,debugLocation:g}=n;if(g!=null){var A=ne(g),E=A.lastIndexOf(`
@@ -30,24 +30,24 @@ Error generating stack: `+de.message+`
30
30
  `+l)}}else if(e.debugStack!=null){var n=e.debugStack;(e=e.owner)&&n&&(t+=`
31
31
  `+ne(n))}else break;var s=t}catch(d){s=`
32
32
  Error generating stack: `+d.message+`
33
- `+d.stack}return s}function re(e,t,a,o,l,n,s){var d=Do;ma(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,l,n,s)):t(a,o,l,n,s)}finally{ma(d)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ma(e){G.getCurrentStack=e===null?null:pa,jl=!1,Do=e}function Ia(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Kt(e){try{return Yt(e),!1}catch(t){return!0}}function Yt(e){return""+e}function gt(e,t){if(Kt(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ia(e)),Yt(e)}function Et(e,t){if(Kt(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ia(e)),Yt(e)}function Ee(e){if(Kt(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ia(e)),Yt(e)}function rl(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Ru=t.inject(e),Ka=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function _t(e){if(typeof sR==="function"&&uR(e),Ka&&typeof Ka.setStrictMode==="function")try{Ka.setStrictMode(Ru,e)}catch(t){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",t))}}function Vc(e){return e>>>=0,e===0?32:31-(iR(e)/dR|0)|0}function Rl(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&261888;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 console.error("Should have found matching lanes. This is a bug in React."),e}}function Kr(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var l=0,n=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=o&134217727;return d!==0?(o=d&~n,o!==0?l=Rl(o):(s&=d,s!==0?l=Rl(s):a||(a=d&~e,a!==0&&(l=Rl(a))))):(d=o&~n,d!==0?l=Rl(d):s!==0?l=Rl(s):a||(a=o&~e,a!==0&&(l=Rl(a)))),l===0?0:t!==0&&t!==l&&(t&n)===0&&(n=l&-l,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:l}function Jr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Om(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function nu(){var e=rp;return rp<<=1,(rp&62914560)===0&&(rp=4194304),e}function ru(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Wn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $c(e,t,a,o,l,n){var s=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:d,expirationTimes:m,hiddenUpdates:g}=e;for(a=s&~a;0<a;){var A=31-ao(a),E=1<<A;d[A]=0,m[A]=-1;var T=g[A];if(T!==null)for(g[A]=null,A=0;A<T.length;A++){var U=T[A];U!==null&&(U.lane&=-536870913)}a&=~E}o!==0&&es(e,o,0),n!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=n&~(s&~t))}function es(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-ao(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function ts(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-ao(a),l=1<<o;l&t|e[o]&t&&(e[o]|=t),a&=~l}}function as(e,t){var a=t&-t;return a=(a&42)!==0?1:os(a),(a&(e.suspendedLanes|t))!==0?0:a}function os(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ri(e,t,a){if(Ql)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-ao(a),l=1<<o;e[o].add(t),a&=~l}}function Kn(e,t){if(Ql)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var l=31-ao(t);e=1<<l,l=a[l],0<l.size&&(l.forEach(function(n){var s=n.alternate;s!==null&&o.has(s)||o.add(n)}),l.clear()),t&=~e}}function y(e){return e&=-e,Eo!==0&&Eo<e?cl!==0&&cl<e?(e&134217727)!==0?Zl:sp:cl:Eo}function O(){var e=kt.p;if(e!==0)return e;return e=window.event,e===void 0?Zl:Rx(e.type)}function ie(e,t){var a=kt.p;try{return kt.p=e,t()}finally{kt.p=a}}function me(e){delete e[Xa],delete e[oo],delete e[Jg],delete e[cR],delete e[fR]}function we(e){var t=e[Xa];if(t)return t;for(var a=e.parentNode;a;){if(t=a[hr]||a[Xa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=mx(e);e!==null;){if(a=e[Xa])return a;e=mx(e)}return t}e=a,a=e.parentNode}return null}function $e(e){if(e=e[Xa]||e[hr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xe(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function yt(e){var t=e[Vx];return t||(t=e[Vx]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Oe(e){e[md]=!0}function Za(e,t){xo(e,t),xo(e+"Capture",t)}function xo(e,t){vs[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),vs[e]=t;var a=e.toLowerCase();ey[a]=e,e==="onDoubleClick"&&(ey.ondblclick=e);for(e=0;e<t.length;e++)$x.add(t[e])}function Jn(e,t){pR[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||(e==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Mi(e){if(dl.call(jx,e))return!0;if(dl.call(Xx,e))return!1;if(mR.test(e))return jx[e]=!0;return Xx[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function Pb(e,t,a){if(Mi(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&a===!0)return!0;return gt(a,t),e===""+a?a:e}}function Xc(e,t,a){if(Mi(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}gt(a,t),e.setAttribute(t,""+a)}}function jc(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}gt(a,t),e.setAttribute(t,""+a)}}function yn(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}gt(o,a),e.setAttributeNS(t,a,""+o)}}function Ho(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ee(e),e;default:return""}}function zb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function dT(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:l,set:n}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){Ee(s),a=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(s){Ee(s),a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qm(e){if(!e._valueTracker){var t=zb(e)?"checked":"value";e._valueTracker=dT(e,t,""+e[t])}}function _b(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=zb(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Yc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Fo(e){return e.replace(hR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Hb(e,t){t.checked===void 0||t.defaultChecked===void 0||Qx||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component",t.type),Qx=!0),t.value===void 0||t.defaultValue===void 0||Yx||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component",t.type),Yx=!0)}function Bm(e,t,a,o,l,n,s,d){if(e.name="",s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"?(gt(s,"type"),e.type=s):e.removeAttribute("type"),t!=null)if(s==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Ho(t)}else e.value!==""+Ho(t)&&(e.value=""+Ho(t));else s!=="submit"&&s!=="reset"||e.removeAttribute("value");t!=null?Nm(e,s,Ho(t)):a!=null?Nm(e,s,Ho(a)):o!=null&&e.removeAttribute("value"),l==null&&n!=null&&(e.defaultChecked=!!n),l!=null&&(e.checked=l&&typeof l!=="function"&&typeof l!=="symbol"),d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"?(gt(d,"name"),e.name=""+Ho(d)):e.removeAttribute("name")}function Fb(e,t,a,o,l,n,s,d){if(n!=null&&typeof n!=="function"&&typeof n!=="symbol"&&typeof n!=="boolean"&&(gt(n,"type"),e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!==void 0&&t!==null)){qm(e);return}a=a!=null?""+Ho(a):"",t=t!=null?""+Ho(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:l,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=d?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(gt(s,"name"),e.name=s),qm(e)}function Nm(e,t,a){t==="number"&&Yc(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Gb(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?ii.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||Wx||(Wx=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||Kx||(Kx=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Zx||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Zx=!0)}function Vb(){var e=Mt();return e?`
33
+ `+d.stack}return s}function re(e,t,a,o,l,n,s){var d=Do;ma(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,l,n,s)):t(a,o,l,n,s)}finally{ma(d)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function ma(e){G.getCurrentStack=e===null?null:pa,jl=!1,Do=e}function Ia(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Kt(e){try{return Yt(e),!1}catch(t){return!0}}function Yt(e){return""+e}function gt(e,t){if(Kt(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ia(e)),Yt(e)}function Et(e,t){if(Kt(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ia(e)),Yt(e)}function Ee(e){if(Kt(e))return console.error("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",Ia(e)),Yt(e)}function rl(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools"),!0;try{Ru=t.inject(e),Ka=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function _t(e){if(typeof uR==="function"&&iR(e),Ka&&typeof Ka.setStrictMode==="function")try{Ka.setStrictMode(Ru,e)}catch(t){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",t))}}function Vc(e){return e>>>=0,e===0?32:31-(dR(e)/cR|0)|0}function Rl(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&261888;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 console.error("Should have found matching lanes. This is a bug in React."),e}}function Kr(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var l=0,n=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var d=o&134217727;return d!==0?(o=d&~n,o!==0?l=Rl(o):(s&=d,s!==0?l=Rl(s):a||(a=d&~e,a!==0&&(l=Rl(a))))):(d=o&~n,d!==0?l=Rl(d):s!==0?l=Rl(s):a||(a=o&~e,a!==0&&(l=Rl(a)))),l===0?0:t!==0&&t!==l&&(t&n)===0&&(n=l&-l,a=t&-t,n>=a||n===32&&(a&4194048)!==0)?t:l}function Jr(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Om(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5000;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return console.error("Should have found matching lanes. This is a bug in React."),-1}}function nu(){var e=rp;return rp<<=1,(rp&62914560)===0&&(rp=4194304),e}function ru(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Wn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $c(e,t,a,o,l,n){var s=e.pendingLanes;e.pendingLanes=a,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=a,e.entangledLanes&=a,e.errorRecoveryDisabledLanes&=a,e.shellSuspendCounter=0;var{entanglements:d,expirationTimes:m,hiddenUpdates:g}=e;for(a=s&~a;0<a;){var A=31-ao(a),E=1<<A;d[A]=0,m[A]=-1;var T=g[A];if(T!==null)for(g[A]=null,A=0;A<T.length;A++){var U=T[A];U!==null&&(U.lane&=-536870913)}a&=~E}o!==0&&es(e,o,0),n!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=n&~(s&~t))}function es(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-ao(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function ts(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-ao(a),l=1<<o;l&t|e[o]&t&&(e[o]|=t),a&=~l}}function as(e,t){var a=t&-t;return a=(a&42)!==0?1:os(a),(a&(e.suspendedLanes|t))!==0?0:a}function os(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ri(e,t,a){if(Ql)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-ao(a),l=1<<o;e[o].add(t),a&=~l}}function Kn(e,t){if(Ql)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var l=31-ao(t);e=1<<l,l=a[l],0<l.size&&(l.forEach(function(n){var s=n.alternate;s!==null&&o.has(s)||o.add(n)}),l.clear()),t&=~e}}function y(e){return e&=-e,Eo!==0&&Eo<e?cl!==0&&cl<e?(e&134217727)!==0?Zl:sp:cl:Eo}function O(){var e=kt.p;if(e!==0)return e;return e=window.event,e===void 0?Zl:Mx(e.type)}function ie(e,t){var a=kt.p;try{return kt.p=e,t()}finally{kt.p=a}}function me(e){delete e[Xa],delete e[oo],delete e[Jg],delete e[fR],delete e[pR]}function we(e){var t=e[Xa];if(t)return t;for(var a=e.parentNode;a;){if(t=a[hr]||a[Xa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=hx(e);e!==null;){if(a=e[Xa])return a;e=hx(e)}return t}e=a,a=e.parentNode}return null}function $e(e){if(e=e[Xa]||e[hr]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function Xe(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function yt(e){var t=e[$x];return t||(t=e[$x]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Oe(e){e[md]=!0}function Za(e,t){xo(e,t),xo(e+"Capture",t)}function xo(e,t){vs[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),vs[e]=t;var a=e.toLowerCase();ey[a]=e,e==="onDoubleClick"&&(ey.ondblclick=e);for(e=0;e<t.length;e++)Xx.add(t[e])}function Jn(e,t){mR[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||(e==="select"?console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`."):console.error("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`.")),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Mi(e){if(dl.call(Yx,e))return!0;if(dl.call(jx,e))return!1;if(hR.test(e))return Yx[e]=!0;return jx[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function zb(e,t,a){if(Mi(t)){if(!e.hasAttribute(t)){switch(typeof a){case"symbol":case"object":return a;case"function":return a;case"boolean":if(a===!1)return a}return a===void 0?void 0:null}if(e=e.getAttribute(t),e===""&&a===!0)return!0;return gt(a,t),e===""+a?a:e}}function Xc(e,t,a){if(Mi(t))if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var o=t.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(t);return}}gt(a,t),e.setAttribute(t,""+a)}}function jc(e,t,a){if(a===null)e.removeAttribute(t);else{switch(typeof a){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}gt(a,t),e.setAttribute(t,""+a)}}function yn(e,t,a,o){if(o===null)e.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(a);return}gt(o,a),e.setAttributeNS(t,a,""+o)}}function Ho(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return Ee(e),e;default:return""}}function _b(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function cT(e,t,a){var o=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof o<"u"&&typeof o.get==="function"&&typeof o.set==="function"){var{get:l,set:n}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return l.call(this)},set:function(s){Ee(s),a=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(s){Ee(s),a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function qm(e){if(!e._valueTracker){var t=_b(e)?"checked":"value";e._valueTracker=cT(e,t,""+e[t])}}function Hb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=_b(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Yc(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch(t){return e.body}}function Fo(e){return e.replace(gR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Fb(e,t){t.checked===void 0||t.defaultChecked===void 0||Zx||(console.error("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component",t.type),Zx=!0),t.value===void 0||t.defaultValue===void 0||Qx||(console.error("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component",t.type),Qx=!0)}function Bm(e,t,a,o,l,n,s,d){if(e.name="",s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"?(gt(s,"type"),e.type=s):e.removeAttribute("type"),t!=null)if(s==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Ho(t)}else e.value!==""+Ho(t)&&(e.value=""+Ho(t));else s!=="submit"&&s!=="reset"||e.removeAttribute("value");t!=null?Nm(e,s,Ho(t)):a!=null?Nm(e,s,Ho(a)):o!=null&&e.removeAttribute("value"),l==null&&n!=null&&(e.defaultChecked=!!n),l!=null&&(e.checked=l&&typeof l!=="function"&&typeof l!=="symbol"),d!=null&&typeof d!=="function"&&typeof d!=="symbol"&&typeof d!=="boolean"?(gt(d,"name"),e.name=""+Ho(d)):e.removeAttribute("name")}function Gb(e,t,a,o,l,n,s,d){if(n!=null&&typeof n!=="function"&&typeof n!=="symbol"&&typeof n!=="boolean"&&(gt(n,"type"),e.type=n),t!=null||a!=null){if(!(n!=="submit"&&n!=="reset"||t!==void 0&&t!==null)){qm(e);return}a=a!=null?""+Ho(a):"",t=t!=null?""+Ho(t):a,d||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:l,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=d?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(gt(s,"name"),e.name=s),qm(e)}function Nm(e,t,a){t==="number"&&Yc(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Vb(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?ii.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||Kx||(Kx=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||Jx||(Jx=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Wx||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Wx=!0)}function $b(){var e=Mt();return e?`
34
34
 
35
- Check the render method of \``+e+"`.":""}function su(e,t,a,o){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&o&&(e[a].defaultSelected=!0)}else{a=""+Ho(a),t=null;for(l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function $b(e,t){for(e=0;e<eL.length;e++){var a=eL[e];if(t[a]!=null){var o=Ra(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,Vb()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,Vb())}}t.value===void 0||t.defaultValue===void 0||Jx||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),Jx=!0)}function Xb(e,t){t.value===void 0||t.defaultValue===void 0||tL||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component"),tL=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function jb(e,t,a){if(t!=null&&(t=""+Ho(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ho(a):""}function Yb(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ra(o)){if(1<o.length)throw Error("<textarea> can only have at most one child.");o=o[0]}a=o}a==null&&(a=""),t=a}a=Ho(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),qm(e)}function Qb(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Qb(e.children[0],t):e}function Lo(e){return" "+" ".repeat(e)}function uu(e){return"+ "+" ".repeat(e)}function ls(e){return"- "+" ".repeat(e)}function Zb(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Ai(e,t){return aL.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function Qc(e,t,a){var o=120-2*a;if(t===null)return uu(a)+Ai(e,o)+`
35
+ Check the render method of \``+e+"`.":""}function su(e,t,a,o){if(e=e.options,t){t={};for(var l=0;l<a.length;l++)t["$"+a[l]]=!0;for(a=0;a<e.length;a++)l=t.hasOwnProperty("$"+e[a].value),e[a].selected!==l&&(e[a].selected=l),l&&o&&(e[a].defaultSelected=!0)}else{a=""+Ho(a),t=null;for(l=0;l<e.length;l++){if(e[l].value===a){e[l].selected=!0,o&&(e[l].defaultSelected=!0);return}t!==null||e[l].disabled||(t=e[l])}t!==null&&(t.selected=!0)}}function Xb(e,t){for(e=0;e<tL.length;e++){var a=tL[e];if(t[a]!=null){var o=Ra(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,$b()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,$b())}}t.value===void 0||t.defaultValue===void 0||eL||(console.error("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components"),eL=!0)}function jb(e,t){t.value===void 0||t.defaultValue===void 0||aL||(console.error("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components",Mt()||"A component"),aL=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Yb(e,t,a){if(t!=null&&(t=""+Ho(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Ho(a):""}function Qb(e,t,a,o){if(t==null){if(o!=null){if(a!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Ra(o)){if(1<o.length)throw Error("<textarea> can only have at most one child.");o=o[0]}a=o}a==null&&(a=""),t=a}a=Ho(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),qm(e)}function Zb(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?Zb(e.children[0],t):e}function Lo(e){return" "+" ".repeat(e)}function uu(e){return"+ "+" ".repeat(e)}function ls(e){return"- "+" ".repeat(e)}function Wb(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return"Lazy";case 31:return"Activity";case 13:return"Suspense";case 19:return"SuspenseList";case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Ai(e,t){return oL.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?'{"..."}':"{"+e.slice(0,t-7)+'..."}':"{"+e+"}"):e.length>t?5>t?'{"..."}':e.slice(0,t-3)+"...":e}function Qc(e,t,a){var o=120-2*a;if(t===null)return uu(a)+Ai(e,o)+`
36
36
  `;if(typeof t==="string"){for(var l=0;l<t.length&&l<e.length&&t.charCodeAt(l)===e.charCodeAt(l);l++);return l>o-8&&10<l&&(e="..."+e.slice(l-8),t="..."+t.slice(l-8)),uu(a)+Ai(e,o)+`
37
37
  `+ls(a)+Ai(t,o)+`
38
38
  `}return Lo(a)+Ai(e,o)+`
39
- `}function Um(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function Di(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Ra(e))return"[...]";if(e.$$typeof===$l)return(t=Z(e.type))?"<"+t+">":"<...>";var a=Um(e);if(a==="Object"){a="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var l=JSON.stringify(o);if(l!=='"'+o+'"'&&(o=l),t-=o.length-2,l=Di(e[o],15>t?t:15),t-=l.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+o+":"+l}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function iu(e,t){return typeof e!=="string"||aL.test(e)?"{"+Di(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Pm(e,t,a){var o=120-a.length-e.length,l=[],n;for(n in t)if(t.hasOwnProperty(n)&&n!=="children"){var s=iu(t[n],120-a.length-n.length-1);o-=n.length+s.length+2,l.push(n+"="+s)}return l.length===0?a+"<"+e+`>
39
+ `}function Um(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function Di(e,t){switch(typeof e){case"string":return e=JSON.stringify(e),e.length>t?5>t?'"..."':e.slice(0,t-4)+'..."':e;case"object":if(e===null)return"null";if(Ra(e))return"[...]";if(e.$$typeof===$l)return(t=Z(e.type))?"<"+t+">":"<...>";var a=Um(e);if(a==="Object"){a="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var l=JSON.stringify(o);if(l!=='"'+o+'"'&&(o=l),t-=o.length-2,l=Di(e[o],15>t?t:15),t-=l.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+o+":"+l}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function iu(e,t){return typeof e!=="string"||oL.test(e)?"{"+Di(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Pm(e,t,a){var o=120-a.length-e.length,l=[],n;for(n in t)if(t.hasOwnProperty(n)&&n!=="children"){var s=iu(t[n],120-a.length-n.length-1);o-=n.length+s.length+2,l.push(n+"="+s)}return l.length===0?a+"<"+e+`>
40
40
  `:0<o?a+"<"+e+" "+l.join(" ")+`>
41
41
  `:a+"<"+e+`
42
42
  `+a+" "+l.join(`
43
43
  `+a+" ")+`
44
44
  `+a+`>
45
- `}function cT(e,t,a){var o="",l=rt({},t),n;for(n in e)if(e.hasOwnProperty(n)){delete l[n];var s=120-2*a-n.length-2,d=Di(e[n],s);t.hasOwnProperty(n)?(s=Di(t[n],s),o+=uu(a)+n+": "+d+`
45
+ `}function fT(e,t,a){var o="",l=rt({},t),n;for(n in e)if(e.hasOwnProperty(n)){delete l[n];var s=120-2*a-n.length-2,d=Di(e[n],s);t.hasOwnProperty(n)?(s=Di(t[n],s),o+=uu(a)+n+": "+d+`
46
46
  `,o+=ls(a)+n+": "+s+`
47
47
  `):o+=uu(a)+n+": "+d+`
48
48
  `}for(var m in l)l.hasOwnProperty(m)&&(e=Di(l[m],120-2*a-m.length-2),o+=ls(a)+m+": "+e+`
49
- `);return o}function fT(e,t,a,o){var l="",n=new Map;for(g in a)a.hasOwnProperty(g)&&n.set(g.toLowerCase(),g);if(n.size===1&&n.has("children"))l+=Pm(e,t,Lo(o));else{for(var s in t)if(t.hasOwnProperty(s)&&s!=="children"){var d=120-2*(o+1)-s.length-1,m=n.get(s.toLowerCase());if(m!==void 0){n.delete(s.toLowerCase());var g=t[s];m=a[m];var A=iu(g,d);d=iu(m,d),typeof g==="object"&&g!==null&&typeof m==="object"&&m!==null&&Um(g)==="Object"&&Um(m)==="Object"&&(2<Object.keys(g).length||2<Object.keys(m).length||-1<A.indexOf("...")||-1<d.indexOf("..."))?l+=Lo(o+1)+s+`={{
50
- `+cT(g,m,o+2)+Lo(o+1)+`}}
49
+ `);return o}function pT(e,t,a,o){var l="",n=new Map;for(g in a)a.hasOwnProperty(g)&&n.set(g.toLowerCase(),g);if(n.size===1&&n.has("children"))l+=Pm(e,t,Lo(o));else{for(var s in t)if(t.hasOwnProperty(s)&&s!=="children"){var d=120-2*(o+1)-s.length-1,m=n.get(s.toLowerCase());if(m!==void 0){n.delete(s.toLowerCase());var g=t[s];m=a[m];var A=iu(g,d);d=iu(m,d),typeof g==="object"&&g!==null&&typeof m==="object"&&m!==null&&Um(g)==="Object"&&Um(m)==="Object"&&(2<Object.keys(g).length||2<Object.keys(m).length||-1<A.indexOf("...")||-1<d.indexOf("..."))?l+=Lo(o+1)+s+`={{
50
+ `+fT(g,m,o+2)+Lo(o+1)+`}}
51
51
  `:(l+=uu(o+1)+s+"="+A+`
52
52
  `,l+=ls(o+1)+s+"="+d+`
53
53
  `)}else l+=Lo(o+1)+s+"="+iu(t[s],d)+`
@@ -55,22 +55,22 @@ Check the render method of \``+e+"`.":""}function su(e,t,a,o){if(e=e.options,t){
55
55
  `}}),l=l===""?Lo(o)+"<"+e+`>
56
56
  `:Lo(o)+"<"+e+`
57
57
  `+l+Lo(o)+`>
58
- `}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(n="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")n=""+t;l+=Qc(n,""+e,o+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")l=e==null?l+Qc(""+t,null,o+1):l+Qc(""+t,void 0,o+1);return l}function Wb(e,t){var a=Zb(e);if(a===null){a="";for(e=e.child;e;)a+=Wb(e,t),e=e.sibling;return a}return Lo(t)+"<"+a+`>
59
- `}function zm(e,t){var a=Qb(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Lo(t)+`...
58
+ `}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(n="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")n=""+t;l+=Qc(n,""+e,o+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")l=e==null?l+Qc(""+t,null,o+1):l+Qc(""+t,void 0,o+1);return l}function Kb(e,t){var a=Wb(e);if(a===null){a="";for(e=e.child;e;)a+=Kb(e,t),e=e.sibling;return a}return Lo(t)+"<"+a+`>
59
+ `}function zm(e,t){var a=Zb(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Lo(t)+`...
60
60
  `+zm(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var l=0;l<o.length;l++){var n=o[l].name;typeof n==="string"&&(a+=Lo(t)+"<"+n+`>
61
- `,t++)}if(o="",l=e.fiber.pendingProps,e.fiber.tag===6)o=Qc(l,e.serverProps,t),t++;else if(n=Zb(e.fiber),n!==null)if(e.serverProps===void 0){o=t;var s=120-2*o-n.length-2,d="";for(g in l)if(l.hasOwnProperty(g)&&g!=="children"){var m=iu(l[g],15);if(s-=g.length+m.length+2,0>s){d+=" ...";break}d+=" "+g+"="+m}o=Lo(o)+"<"+n+d+`>
62
- `,t++}else e.serverProps===null?(o=Pm(n,l,uu(t)),t++):typeof e.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(o=fT(n,l,e.serverProps,t),t++);var g="";l=e.fiber.child;for(n=0;l&&n<e.children.length;)s=e.children[n],s.fiber===l?(g+=zm(s,t),n++):g+=Wb(l,t),l=l.sibling;l&&0<e.children.length&&(g+=Lo(t)+`...
61
+ `,t++)}if(o="",l=e.fiber.pendingProps,e.fiber.tag===6)o=Qc(l,e.serverProps,t),t++;else if(n=Wb(e.fiber),n!==null)if(e.serverProps===void 0){o=t;var s=120-2*o-n.length-2,d="";for(g in l)if(l.hasOwnProperty(g)&&g!=="children"){var m=iu(l[g],15);if(s-=g.length+m.length+2,0>s){d+=" ...";break}d+=" "+g+"="+m}o=Lo(o)+"<"+n+d+`>
62
+ `,t++}else e.serverProps===null?(o=Pm(n,l,uu(t)),t++):typeof e.serverProps==="string"?console.error("Should not have matched a non HostText fiber to a Text node. This is a bug in React."):(o=pT(n,l,e.serverProps,t),t++);var g="";l=e.fiber.child;for(n=0;l&&n<e.children.length;)s=e.children[n],s.fiber===l?(g+=zm(s,t),n++):g+=Kb(l,t),l=l.sibling;l&&0<e.children.length&&(g+=Lo(t)+`...
63
63
  `),l=e.serverTail,e.serverProps===null&&t--;for(e=0;e<l.length;e++)n=l[e],g=typeof n==="string"?g+(ls(t)+Ai(n,120-2*t)+`
64
64
  `):g+Pm(n.type,n.props,ls(t));return a+o+g}function _m(e){try{return`
65
65
 
66
- `+zm(e,0)}catch(t){return""}}function Kb(e,t,a){for(var o=t,l=null,n=0;o;)o===e&&(n=0),l={fiber:o,children:l!==null?[l]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:n},n++,o=o.return;return l!==null?_m(l).replaceAll(/^[+-]/gm,">"):""}function Jb(e,t){var a=rt({},e||lL),o={tag:t};if(oL.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),yR.indexOf(t)!==-1&&(a.pTagInButtonScope=null),gR.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=o,t==="form"&&(a.formTag=o),t==="a"&&(a.aTagInScope=o),t==="button"&&(a.buttonTagInScope=o),t==="nobr"&&(a.nobrTagInScope=o),t==="p"&&(a.pTagInButtonScope=o),t==="li"&&(a.listItemTagAutoclosing=o),t==="dd"||t==="dt")a.dlItemTagAutoclosing=o;return t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=o),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function e0(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return bR.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function pT(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function t0(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Hm(e,t){t=t||lL;var a=t.current;if(t=(a=e0(e,a&&a.tag,t.implicitRootScope)?null:a)?null:pT(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,up[t])return!1;up[t]=!0;var l=(t=Do)?t0(t.return,o):null,n=t!==null&&l!==null?Kb(l,t,null):"",s="<"+e+">";return a?(a="",o==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
66
+ `+zm(e,0)}catch(t){return""}}function Jb(e,t,a){for(var o=t,l=null,n=0;o;)o===e&&(n=0),l={fiber:o,children:l!==null?[l]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:n},n++,o=o.return;return l!==null?_m(l).replaceAll(/^[+-]/gm,">"):""}function e0(e,t){var a=rt({},e||nL),o={tag:t};if(lL.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),bR.indexOf(t)!==-1&&(a.pTagInButtonScope=null),yR.indexOf(t)!==-1&&t!=="address"&&t!=="div"&&t!=="p"&&(a.listItemTagAutoclosing=null,a.dlItemTagAutoclosing=null),a.current=o,t==="form"&&(a.formTag=o),t==="a"&&(a.aTagInScope=o),t==="button"&&(a.buttonTagInScope=o),t==="nobr"&&(a.nobrTagInScope=o),t==="p"&&(a.pTagInButtonScope=o),t==="li"&&(a.listItemTagAutoclosing=o),t==="dd"||t==="dt")a.dlItemTagAutoclosing=o;return t==="#document"||t==="html"?a.containerTagInScope=null:a.containerTagInScope||(a.containerTagInScope=o),e!==null||t!=="#document"&&t!=="html"&&t!=="body"?a.implicitRootScope===!0&&(a.implicitRootScope=!1):a.implicitRootScope=!0,a}function t0(e,t,a){switch(t){case"select":return e==="hr"||e==="option"||e==="optgroup"||e==="script"||e==="template"||e==="#text";case"optgroup":return e==="option"||e==="#text";case"option":return e==="#text";case"tr":return e==="th"||e==="td"||e==="style"||e==="script"||e==="template";case"tbody":case"thead":case"tfoot":return e==="tr"||e==="style"||e==="script"||e==="template";case"colgroup":return e==="col"||e==="template";case"table":return e==="caption"||e==="colgroup"||e==="tbody"||e==="tfoot"||e==="thead"||e==="style"||e==="script"||e==="template";case"head":return e==="base"||e==="basefont"||e==="bgsound"||e==="link"||e==="meta"||e==="title"||e==="noscript"||e==="noframes"||e==="style"||e==="script"||e==="template";case"html":if(a)break;return e==="head"||e==="body"||e==="frameset";case"frameset":return e==="frame";case"#document":if(!a)return e==="html"}switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t!=="h1"&&t!=="h2"&&t!=="h3"&&t!=="h4"&&t!=="h5"&&t!=="h6";case"rp":case"rt":return vR.indexOf(t)===-1;case"caption":case"col":case"colgroup":case"frameset":case"frame":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return t==null;case"head":return a||t===null;case"html":return a&&t==="#document"||t===null;case"body":return a&&(t==="#document"||t==="html")||t===null}return!0}function mT(e,t){switch(e){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return t.pTagInButtonScope;case"form":return t.formTag||t.pTagInButtonScope;case"li":return t.listItemTagAutoclosing;case"dd":case"dt":return t.dlItemTagAutoclosing;case"button":return t.buttonTagInScope;case"a":return t.aTagInScope;case"nobr":return t.nobrTagInScope}return null}function a0(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Hm(e,t){t=t||nL;var a=t.current;if(t=(a=t0(e,a&&a.tag,t.implicitRootScope)?null:a)?null:mT(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,up[t])return!1;up[t]=!0;var l=(t=Do)?a0(t.return,o):null,n=t!==null&&l!==null?Jb(l,t,null):"",s="<"+e+">";return a?(a="",o==="table"&&e==="tr"&&(a+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
67
  This will cause a hydration error.%s`,s,o,a,n)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
68
  This will cause a hydration error.%s`,s,o,n),t&&(e=t.return,l===null||e===null||l===e&&e._debugOwner===t._debugOwner||re(l,function(){console.error(`<%s> cannot contain a nested %s.
69
- See this log for the ancestor stack trace.`,o,s)})),!1}function Zc(e,t,a){if(a||e0("#text",t,!1))return!0;if(a="#text|"+t,up[a])return!1;up[a]=!0;var o=(a=Do)?t0(a,t):null;return a=a!==null&&o!==null?Kb(o,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
69
+ See this log for the ancestor stack trace.`,o,s)})),!1}function Zc(e,t,a){if(a||t0("#text",t,!1))return!0;if(a="#text|"+t,up[a])return!1;up[a]=!0;var o=(a=Do)?a0(a,t):null;return a=a!==null&&o!==null?Jb(o,a,a.tag!==6?{children:null}:null):"",/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
70
  This will cause a hydration error.%s`,t,a):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
- This will cause a hydration error.%s`,t,a),!1}function Ei(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function mT(e){return e.replace(xR,function(t,a){return a.toUpperCase()})}function a0(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?Mu.hasOwnProperty(t)&&Mu[t]||(Mu[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,mT(t.replace(SR,"ms-")))):vR.test(t)?Mu.hasOwnProperty(t)&&Mu[t]||(Mu[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!sL.test(a)||ay.hasOwnProperty(a)&&ay[a]||(ay[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(sL,""))),typeof a==="number"&&(isNaN(a)?uL||(uL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||iL||(iL=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||dL.has(t)?t==="float"?e.cssFloat=a:(Et(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function o0(e,t,a){if(t!=null&&typeof t!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var o={};if(a){for(var l in a)if(a.hasOwnProperty(l)&&!t.hasOwnProperty(l))for(var n=ty[l]||[l],s=0;s<n.length;s++)o[n[s]]=l}for(var d in t)if(t.hasOwnProperty(d)&&(!a||a[d]!==t[d]))for(l=ty[d]||[d],n=0;n<l.length;n++)o[l[n]]=d;d={};for(var m in t)for(l=ty[m]||[m],n=0;n<l.length;n++)d[l[n]]=m;m={};for(var g in o)if(l=o[g],(n=d[g])&&l!==n&&(s=l+","+n,!m[s])){m[s]=!0,s=console;var A=t[l];s.error.call(s,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",A==null||typeof A==="boolean"||A===""?"Removing":"Updating",l,n)}}for(var E in a)!a.hasOwnProperty(E)||t!=null&&t.hasOwnProperty(E)||(E.indexOf("--")===0?e.setProperty(E,""):E==="float"?e.cssFloat="":e[E]="");for(var T in t)g=t[T],t.hasOwnProperty(T)&&a[T]!==g&&a0(e,T,g)}else for(o in t)t.hasOwnProperty(o)&&a0(e,o,t[o])}function Oi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function l0(e){return LR.get(e)||e}function hT(e,t){if(dl.call(Du,t)&&Du[t])return!0;if(kR.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=cL.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Du[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Du[t]=!0}if(CR.test(t)){if(e=t.toLowerCase(),e=cL.hasOwnProperty(e)?e:null,e==null)return Du[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Du[t]=!0)}return!0}function gT(e,t){var a=[],o;for(o in t)hT(e,o)||a.push(o);t=a.map(function(l){return"`"+l+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function yT(e,t,a,o){if(dl.call(lo,t)&&lo[t])return!0;var l=t.toLowerCase();if(l==="onfocusin"||l==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),lo[t]=!0;if(typeof a==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(l)?e[l]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),lo[t]=!0;if(pL.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),lo[t]=!0}else if(pL.test(t))return wR.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),lo[t]=!0;if(TR.test(t)||IR.test(t))return!0;if(l==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),lo[t]=!0;if(l==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),lo[t]=!0;if(l==="is"&&a!==null&&a!==void 0&&typeof a!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),lo[t]=!0;if(typeof a==="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),lo[t]=!0;if(dp.hasOwnProperty(l)){if(l=dp[l],l!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,l),lo[t]=!0}else if(t!==l)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,l),lo[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(l=t.toLowerCase().slice(0,5),l==="data-"||l==="aria-")return!0;return a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),lo[t]=!0}case"function":case"symbol":return lo[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),lo[t]=!0}}return!0}function bT(e,t,a){var o=[],l;for(l in t)yT(e,l,t[l],a)||o.push(l);t=o.map(function(n){return"`"+n+"`"}).join(", "),o.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function qi(e){return RR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function bn(){}function Fm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function n0(e){var t=$e(e);if(t&&(e=t.stateNode)){var a=e[oo]||null;e:switch(e=t.stateNode,t.type){case"input":if(Bm(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;gt(t,"name"),a=a.querySelectorAll('input[name="'+Fo(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var l=o[oo]||null;if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Bm(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&_b(o)}break e;case"textarea":jb(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&su(e,!!a.multiple,t,!1)}}}function r0(e,t,a){if(oy)return e(t,a);oy=!0;try{var o=e(t);return o}finally{if(oy=!1,Eu!==null||Ou!==null){if(vu(),Eu&&(t=Eu,e=Ou,Ou=Eu=null,n0(t),e))for(t=0;t<e.length;t++)n0(e[t])}}}function Bi(e,t){var a=e.stateNode;if(a===null)return null;var o=a[oo]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function s0(){if(cp)return cp;var e,t=ny,a=t.length,o,l="value"in gr?gr.value:gr.textContent,n=l.length;for(e=0;e<a&&t[e]===l[e];e++);var s=a-e;for(o=1;o<=s&&t[a-o]===l[n-o];o++);return cp=l.slice(e,1<o?1-o:void 0)}function Wc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Kc(){return!0}function u0(){return!1}function fo(e){function t(a,o,l,n,s){this._reactName=a,this._targetInst=l,this.type=o,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(n):n[d]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Kc:u0,this.isPropagationStopped=u0,this}return rt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Kc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Kc)},persist:function(){},isPersistent:Kc}),t}function vT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=HR[e])?!!t[e]:!1}function Gm(){return vT}function i0(e,t){switch(e){case"keyup":return JR.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==yL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function d0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function ST(e,t){switch(e){case"compositionend":return d0(t);case"keypress":if(t.which!==vL)return null;return xL=!0,SL;case"textInput":return e=t.data,e===SL&&xL?null:e;default:return null}}function xT(e,t){if(qu)return e==="compositionend"||!iy&&i0(e,t)?(e=s0(),cp=ny=gr=null,qu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return bL&&t.locale!=="ko"?null:t.data;default:return null}}function c0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!tM[e.type]:t==="textarea"?!0:!1}function LT(e){if(!Wl)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]==="function"),t}function f0(e,t,a,o){Eu?Ou?Ou.push(o):Ou=[o]:Eu=o,t=$f(t,"onChange"),0<t.length&&(a=new fp("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function CT(e){YS(e,0)}function Jc(e){var t=Xe(e);if(_b(t))return e}function p0(e,t){if(e==="change")return t}function m0(){Sd&&(Sd.detachEvent("onpropertychange",h0),xd=Sd=null)}function h0(e){if(e.propertyName==="value"&&Jc(xd)){var t=[];f0(t,xd,e,Fm(e)),r0(CT,t)}}function kT(e,t,a){e==="focusin"?(m0(),Sd=t,xd=a,Sd.attachEvent("onpropertychange",h0)):e==="focusout"&&m0()}function wT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jc(xd)}function TT(e,t){if(e==="click")return Jc(t)}function IT(e,t){if(e==="input"||e==="change")return Jc(t)}function RT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ni(e,t){if(no(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var l=a[o];if(!dl.call(t,l)||!no(e[l],t[l]))return!1}return!0}function g0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function y0(e,t){var a=g0(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=g0(a)}}function b0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?b0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function v0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yc(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=Yc(e.document)}return t}function Vm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function S0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cy||Bu==null||Bu!==Yc(o)||(o=Bu,("selectionStart"in o)&&Vm(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ld&&Ni(Ld,o)||(Ld=o,o=$f(dy,"onSelect"),0<o.length&&(t=new fp("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Bu)))}function ns(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function rs(e){if(fy[e])return fy[e];if(!Nu[e])return e;var t=Nu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in CL)return fy[e]=t[a];return e}function sl(e,t){RL.set(e,t),Za(t,[e])}function MT(e){for(var t=mp,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Ra(o)&&o.length===2&&typeof o[0]==="string"){if(t!==mp&&t!==yy)return hy;t=yy}else return hy;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==mp&&t!==gy)return hy;t=gy}}return t}function $m(e,t,a,o){for(var l in e)dl.call(e,l)&&l[0]!=="_"&&Ml(l,e[l],t,a,o)}function Ml(e,t,a,o,l){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===$l){var n=Z(t.type)||"…",s=t.key;t=t.props;var d=Object.keys(t),m=d.length;if(s==null&&m===0){t="<"+n+" />";break}if(3>o||m===1&&d[0]==="children"&&s==null){t="<"+n+" … />";break}a.push([l+"  ".repeat(o)+e,"<"+n]),s!==null&&Ml("key",s,a,o+1,l),e=!1;for(var g in t)g==="children"?t.children!=null&&(!Ra(t.children)||0<t.children.length)&&(e=!0):dl.call(t,g)&&g[0]!=="_"&&Ml(g,t[g],a,o+1,l);a.push(["",e?">…</"+n+">":"/>"]);return}if(n=Object.prototype.toString.call(t),n=n.slice(8,n.length-1),n==="Array"){if(g=MT(t),g===gy||g===mp){t=JSON.stringify(t);break}else if(g===yy){a.push([l+"  ".repeat(o)+e,""]);for(e=0;e<t.length;e++)n=t[e],Ml(n[0],n[1],a,o+1,l);return}}if(n==="Promise"){if(t.status==="fulfilled"){if(n=a.length,Ml(e,t.value,a,o,l),a.length>n){a=a[n],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(n=a.length,Ml(e,t.reason,a,o,l),a.length>n)){a=a[n],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(o)+e,"Promise"]);return}n==="Object"&&(g=Object.getPrototypeOf(t))&&typeof g.constructor==="function"&&(n=g.constructor.name),a.push([l+"  ".repeat(o)+e,n==="Object"?3>o?"":"…":n]),3>o&&$m(t,a,o+1,l);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===uM?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([l+"  ".repeat(o)+e,t])}function x0(e,t,a,o){var l=!0;for(s in e)s in t||(a.push([hp+"  ".repeat(o)+s,"…"]),l=!1);for(var n in t)if(n in e){var s=e[n],d=t[n];if(s!==d){if(o===0&&n==="children")l="  ".repeat(o)+n,a.push([hp+l,"…"],[gp+l,"…"]);else{if(!(3<=o)){if(typeof s==="object"&&typeof d==="object"&&s!==null&&d!==null&&s.$$typeof===d.$$typeof)if(d.$$typeof===$l){if(s.type===d.type&&s.key===d.key){s=Z(d.type)||"…",l="  ".repeat(o)+n,s="<"+s+" … />",a.push([hp+l,s],[gp+l,s]),l=!1;continue}}else{var m=Object.prototype.toString.call(s),g=Object.prototype.toString.call(d);if(m===g&&(g==="[object Object]"||g==="[object Array]")){m=[DL+"  ".repeat(o)+n,g==="[object Array]"?"Array":""],a.push(m),g=a.length,x0(s,d,a,o+1)?g===a.length&&(m[1]="Referentially unequal but deeply equal objects. Consider memoization."):l=!1;continue}}else if(typeof s==="function"&&typeof d==="function"&&s.name===d.name&&s.length===d.length&&(m=Function.prototype.toString.call(s),g=Function.prototype.toString.call(d),m===g)){s=d.name===""?"() => {}":d.name+"() {}",a.push([DL+"  ".repeat(o)+n,s+" Referentially unequal function closure. Consider memoization."]);continue}}Ml(n,s,a,o,hp),Ml(n,d,a,o,gp)}l=!1}}else a.push([gp+"  ".repeat(o)+n,"…"]),l=!1;return l}function Co(e){it=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Al(e,t,a,o){Gt&&(br.start=t,br.end=a,In.color="warning",In.tooltipText=o,In.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,br)):performance.measure(o,br))}function ef(e,t,a){Al(e,t,a,"Reconnect")}function tf(e,t,a,o,l){var n=X(e);if(n!==null&&Gt){var{alternate:s,actualDuration:d}=e;if(s===null||s.child!==e.child)for(var m=e.child;m!==null;m=m.sibling)d-=m.actualDuration;o=0.5>d?o?"tertiary-light":"primary-light":10>d?o?"tertiary":"primary":100>d?o?"tertiary-dark":"primary-dark":"error";var g=e.memoizedProps;d=e._debugTask,g!==null&&s!==null&&s.memoizedProps!==g?(m=[iM],g=x0(s.memoizedProps,g,m,0),1<m.length&&(g&&!yr&&(s.lanes&l)===0&&100<e.actualDuration?(yr=!0,m[0]=dM,In.color="warning",In.tooltipText=EL):(In.color=o,In.tooltipText=n),In.properties=m,br.start=t,br.end=a,d!=null?d.run(performance.measure.bind(performance,"​"+n,br)):performance.measure("​"+n,br))):d!=null?d.run(console.timeStamp.bind(console,n,t,a,Vo,void 0,o)):console.timeStamp(n,t,a,Vo,void 0,o)}}function Xm(e,t,a,o){if(Gt){var l=X(e);if(l!==null){for(var n=null,s=[],d=0;d<o.length;d++){var m=o[d];n==null&&m.source!==null&&(n=m.source._debugTask),m=m.value,s.push(["Error",typeof m==="object"&&m!==null&&typeof m.message==="string"?String(m.message):String(m)])}e.key!==null&&Ml("key",e.key,s,0,""),e.memoizedProps!==null&&$m(e.memoizedProps,s,0,""),n==null&&(n=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Vo,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:s}}},n?n.run(performance.measure.bind(performance,"​"+l,e)):performance.measure("​"+l,e)}}}function Dl(e,t,a,o,l){if(l!==null){if(Gt){var n=X(e);if(n!==null){o=[];for(var s=0;s<l.length;s++){var d=l[s].value;o.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e.key!==null&&Ml("key",e.key,o,0,""),e.memoizedProps!==null&&$m(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Vo,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+n,t)):performance.measure("​"+n,t)}}}else n=X(e),n!==null&&Gt&&(l=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,n,t,a,Vo,void 0,l)):console.timeStamp(n,t,a,Vo,void 0,l))}function AT(e,t,a,o){if(Gt&&!(t<=e)){var l=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",o?o.run(console.timeStamp.bind(console,a,e,t,it,st,l)):console.timeStamp(a,e,t,it,st,l)}}function L0(e,t,a,o){!Gt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,it,st,a)):console.timeStamp("Prewarm",e,t,it,st,a))}function C0(e,t,a,o){!Gt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,it,st,a)):console.timeStamp("Suspended",e,t,it,st,a))}function DT(e,t,a,o,l,n){if(Gt&&!(t<=e)){a=[];for(var s=0;s<o.length;s++){var d=o[s].value;a.push(["Recoverable Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:it,trackGroup:st,tooltipText:l?"Hydration Failed":"Recovered after Error",properties:a}}},n?n.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function jm(e,t,a,o){!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,it,st,"error")):console.timeStamp("Errored",e,t,it,st,"error"))}function ET(e,t,a,o){!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,it,st,"secondary-light")):console.timeStamp(a,e,t,it,st,"secondary-light"))}function k0(e,t,a,o,l){if(Gt&&!(t<=e)){for(var n=[],s=0;s<a.length;s++){var d=a[s].value;n.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"error",track:it,trackGroup:st,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:n}}},l?l.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Ui(e,t,a){!Gt||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,it,st,"secondary-dark")):console.timeStamp("Animating",e,t,it,st,"secondary-dark"))}function af(){for(var e=Uu,t=by=Uu=0;t<e;){var a=$o[t];$o[t++]=null;var o=$o[t];$o[t++]=null;var l=$o[t];$o[t++]=null;var n=$o[t];if($o[t++]=null,o!==null&&l!==null){var s=o.pending;s===null?l.next=l:(l.next=s.next,s.next=l),o.pending=l}n!==0&&w0(a,l,n)}}function of(e,t,a,o){$o[Uu++]=e,$o[Uu++]=t,$o[Uu++]=a,$o[Uu++]=o,by|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ym(e,t,a,o){return of(e,t,a,o),lf(e)}function Wa(e,t){return of(e,null,null,t),lf(e)}function w0(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var l=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&Cd||(l=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,l&&t!==null&&(l=31-ao(a),e=n.hiddenUpdates,o=e[l],o===null?e[l]=[t]:o.push(t),t.lane=a|536870912),n):null}function lf(e){if(Zd>wM)throw Bs=Zd=0,Wd=Wy=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Bs>TM&&(Bs=0,Wd=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&HS(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&HS(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function ss(e){if(Xo===null)return e;var t=Xo(e);return t===void 0?e:t.current}function Qm(e){if(Xo===null)return e;var t=Xo(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=ss(e.render),e.render!==t)?(t={$$typeof:cd,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function T0(e,t){if(Xo===null)return!1;var a=e.elementType;t=t.type;var o=!1,l=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(o=!0);break;case 0:typeof t==="function"?o=!0:l===Ao&&(o=!0);break;case 11:l===cd?o=!0:l===Ao&&(o=!0);break;case 14:case 15:l===ap?o=!0:l===Ao&&(o=!0);break;default:return!1}return o&&(e=Xo(a),e!==void 0&&e===Xo(t))?!0:!1}function I0(e){Xo!==null&&typeof WeakSet==="function"&&(Pu===null&&(Pu=new WeakSet),Pu.add(e))}function R0(e,t,a){do{var o=e,l=o.alternate,n=o.child,s=o.sibling,d=o.tag;o=o.type;var m=null;switch(d){case 0:case 15:case 1:m=o;break;case 11:m=o.render}if(Xo===null)throw Error("Expected resolveFamily to be set during hot reload.");var g=!1;if(o=!1,m!==null&&(m=Xo(m),m!==void 0&&(a.has(m)?o=!0:t.has(m)&&(d===1?o=!0:g=!0))),Pu!==null&&(Pu.has(e)||l!==null&&Pu.has(l))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||g)l=Wa(e,2),l!==null&&oa(l,e,2);if(n===null||o||R0(n,t,a),s===null)break;e=s}while(1)}function OT(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,OL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Zm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vn(e,t){var a=e.alternate;switch(a===null?(a=C(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=ss(e.type);break;case 1:a.type=ss(e.type);break;case 11:a.type=Qm(e.type)}return a}function M0(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Wm(e,t,a,o,l,n){var s=0,d=e;if(typeof e==="function")Zm(e)&&(s=1),d=ss(d);else if(typeof e==="string")s=ke(),s=FI(e,a,s)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Gg:return t=C(31,a,t,l),t.elementType=Gg,t.lanes=n,t;case Tu:return us(a.children,l,n,t);case tp:s=8,l|=Ja,l|=fl;break;case zg:return e=a,o=l,typeof e.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=C(12,e,t,o|tt),t.elementType=zg,t.lanes=n,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Hg:return t=C(13,a,t,l),t.elementType=Hg,t.lanes=n,t;case Fg:return t=C(19,a,t,l),t.elementType=Fg,t.lanes=n,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Xl:s=10;break e;case _g:s=9;break e;case cd:s=11,d=Qm(d);break e;case ap:s=14;break e;case Ao:s=16,d=null;break e}if(d="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)d+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";e===null?a="null":Ra(e)?a="array":e!==void 0&&e.$$typeof===$l?(a="<"+(Z(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(s=o?W(o):null)&&(d+=`
71
+ This will cause a hydration error.%s`,t,a),!1}function Ei(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function hT(e){return e.replace(LR,function(t,a){return a.toUpperCase()})}function o0(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?Mu.hasOwnProperty(t)&&Mu[t]||(Mu[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,hT(t.replace(xR,"ms-")))):SR.test(t)?Mu.hasOwnProperty(t)&&Mu[t]||(Mu[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!uL.test(a)||ay.hasOwnProperty(a)&&ay[a]||(ay[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(uL,""))),typeof a==="number"&&(isNaN(a)?iL||(iL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||dL||(dL=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),a==null||typeof a==="boolean"||a===""?o?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":o?e.setProperty(t,a):typeof a!=="number"||a===0||cL.has(t)?t==="float"?e.cssFloat=a:(Et(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function l0(e,t,a){if(t!=null&&typeof t!=="object")throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,a!=null){if(t){var o={};if(a){for(var l in a)if(a.hasOwnProperty(l)&&!t.hasOwnProperty(l))for(var n=ty[l]||[l],s=0;s<n.length;s++)o[n[s]]=l}for(var d in t)if(t.hasOwnProperty(d)&&(!a||a[d]!==t[d]))for(l=ty[d]||[d],n=0;n<l.length;n++)o[l[n]]=d;d={};for(var m in t)for(l=ty[m]||[m],n=0;n<l.length;n++)d[l[n]]=m;m={};for(var g in o)if(l=o[g],(n=d[g])&&l!==n&&(s=l+","+n,!m[s])){m[s]=!0,s=console;var A=t[l];s.error.call(s,"%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",A==null||typeof A==="boolean"||A===""?"Removing":"Updating",l,n)}}for(var E in a)!a.hasOwnProperty(E)||t!=null&&t.hasOwnProperty(E)||(E.indexOf("--")===0?e.setProperty(E,""):E==="float"?e.cssFloat="":e[E]="");for(var T in t)g=t[T],t.hasOwnProperty(T)&&a[T]!==g&&o0(e,T,g)}else for(o in t)t.hasOwnProperty(o)&&o0(e,o,t[o])}function Oi(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function n0(e){return CR.get(e)||e}function gT(e,t){if(dl.call(Du,t)&&Du[t])return!0;if(wR.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=fL.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Du[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Du[t]=!0}if(kR.test(t)){if(e=t.toLowerCase(),e=fL.hasOwnProperty(e)?e:null,e==null)return Du[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Du[t]=!0)}return!0}function yT(e,t){var a=[],o;for(o in t)gT(e,o)||a.push(o);t=a.map(function(l){return"`"+l+"`"}).join(", "),a.length===1?console.error("Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e):1<a.length&&console.error("Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props",t,e)}function bT(e,t,a,o){if(dl.call(lo,t)&&lo[t])return!0;var l=t.toLowerCase();if(l==="onfocusin"||l==="onfocusout")return console.error("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),lo[t]=!0;if(typeof a==="function"&&(e==="form"&&t==="action"||e==="input"&&t==="formAction"||e==="button"&&t==="formAction"))return!0;if(o!=null){if(e=o.possibleRegistrationNames,o.registrationNameDependencies.hasOwnProperty(t))return!0;if(o=e.hasOwnProperty(l)?e[l]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),lo[t]=!0;if(mL.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),lo[t]=!0}else if(mL.test(t))return TR.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),lo[t]=!0;if(IR.test(t)||RR.test(t))return!0;if(l==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),lo[t]=!0;if(l==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),lo[t]=!0;if(l==="is"&&a!==null&&a!==void 0&&typeof a!=="string")return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof a),lo[t]=!0;if(typeof a==="number"&&isNaN(a))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),lo[t]=!0;if(dp.hasOwnProperty(l)){if(l=dp[l],l!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,l),lo[t]=!0}else if(t!==l)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,l),lo[t]=!0;switch(t){case"dangerouslySetInnerHTML":case"children":case"style":case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":return!0;case"innerText":case"textContent":return!0}switch(typeof a){case"boolean":switch(t){case"autoFocus":case"checked":case"multiple":case"muted":case"selected":case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"capture":case"download":case"inert":return!0;default:if(l=t.toLowerCase().slice(0,5),l==="data-"||l==="aria-")return!0;return a?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',a,t,t,a,t):console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',a,t,t,a,t,t,t),lo[t]=!0}case"function":case"symbol":return lo[t]=!0,!1;case"string":if(a==="false"||a==="true"){switch(t){case"checked":case"selected":case"multiple":case"muted":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":case"inert":break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",a,t,a==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',t,a),lo[t]=!0}}return!0}function vT(e,t,a){var o=[],l;for(l in t)bT(e,l,t[l],a)||o.push(l);t=o.map(function(n){return"`"+n+"`"}).join(", "),o.length===1?console.error("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e):1<o.length&&console.error("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior ",t,e)}function qi(e){return MR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function bn(){}function Fm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function r0(e){var t=$e(e);if(t&&(e=t.stateNode)){var a=e[oo]||null;e:switch(e=t.stateNode,t.type){case"input":if(Bm(e,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name),t=a.name,a.type==="radio"&&t!=null){for(a=e;a.parentNode;)a=a.parentNode;gt(t,"name"),a=a.querySelectorAll('input[name="'+Fo(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var l=o[oo]||null;if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Bm(o,l.value,l.defaultValue,l.defaultValue,l.checked,l.defaultChecked,l.type,l.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&Hb(o)}break e;case"textarea":Yb(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&su(e,!!a.multiple,t,!1)}}}function s0(e,t,a){if(oy)return e(t,a);oy=!0;try{var o=e(t);return o}finally{if(oy=!1,Eu!==null||Ou!==null){if(vu(),Eu&&(t=Eu,e=Ou,Ou=Eu=null,r0(t),e))for(t=0;t<e.length;t++)r0(e[t])}}}function Bi(e,t){var a=e.stateNode;if(a===null)return null;var o=a[oo]||null;if(o===null)return null;a=o[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(a&&typeof a!=="function")throw Error("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof a+"` type.");return a}function u0(){if(cp)return cp;var e,t=ny,a=t.length,o,l="value"in gr?gr.value:gr.textContent,n=l.length;for(e=0;e<a&&t[e]===l[e];e++);var s=a-e;for(o=1;o<=s&&t[a-o]===l[n-o];o++);return cp=l.slice(e,1<o?1-o:void 0)}function Wc(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Kc(){return!0}function i0(){return!1}function fo(e){function t(a,o,l,n,s){this._reactName=a,this._targetInst=l,this.type=o,this.nativeEvent=n,this.target=s,this.currentTarget=null;for(var d in e)e.hasOwnProperty(d)&&(a=e[d],this[d]=a?a(n):n[d]);return this.isDefaultPrevented=(n.defaultPrevented!=null?n.defaultPrevented:n.returnValue===!1)?Kc:i0,this.isPropagationStopped=i0,this}return rt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var a=this.nativeEvent;a&&(a.preventDefault?a.preventDefault():typeof a.returnValue!=="unknown"&&(a.returnValue=!1),this.isDefaultPrevented=Kc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Kc)},persist:function(){},isPersistent:Kc}),t}function ST(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=FR[e])?!!t[e]:!1}function Gm(){return ST}function d0(e,t){switch(e){case"keyup":return eM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==bL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function c0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function xT(e,t){switch(e){case"compositionend":return c0(t);case"keypress":if(t.which!==SL)return null;return LL=!0,xL;case"textInput":return e=t.data,e===xL&&LL?null:e;default:return null}}function LT(e,t){if(qu)return e==="compositionend"||!iy&&d0(e,t)?(e=u0(),cp=ny=gr=null,qu=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return vL&&t.locale!=="ko"?null:t.data;default:return null}}function f0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!aM[e.type]:t==="textarea"?!0:!1}function CT(e){if(!Wl)return!1;e="on"+e;var t=e in document;return t||(t=document.createElement("div"),t.setAttribute(e,"return;"),t=typeof t[e]==="function"),t}function p0(e,t,a,o){Eu?Ou?Ou.push(o):Ou=[o]:Eu=o,t=$f(t,"onChange"),0<t.length&&(a=new fp("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function kT(e){QS(e,0)}function Jc(e){var t=Xe(e);if(Hb(t))return e}function m0(e,t){if(e==="change")return t}function h0(){Sd&&(Sd.detachEvent("onpropertychange",g0),xd=Sd=null)}function g0(e){if(e.propertyName==="value"&&Jc(xd)){var t=[];p0(t,xd,e,Fm(e)),s0(kT,t)}}function wT(e,t,a){e==="focusin"?(h0(),Sd=t,xd=a,Sd.attachEvent("onpropertychange",g0)):e==="focusout"&&h0()}function TT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Jc(xd)}function IT(e,t){if(e==="click")return Jc(t)}function RT(e,t){if(e==="input"||e==="change")return Jc(t)}function MT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ni(e,t){if(no(e,t))return!0;if(typeof e!=="object"||e===null||typeof t!=="object"||t===null)return!1;var a=Object.keys(e),o=Object.keys(t);if(a.length!==o.length)return!1;for(o=0;o<a.length;o++){var l=a[o];if(!dl.call(t,l)||!no(e[l],t[l]))return!1}return!0}function y0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function b0(e,t){var a=y0(e);e=0;for(var o;a;){if(a.nodeType===3){if(o=e+a.textContent.length,e<=t&&o>=t)return{node:a,offset:t-e};e=o}e:{for(;a;){if(a.nextSibling){a=a.nextSibling;break e}a=a.parentNode}a=void 0}a=y0(a)}}function v0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?v0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function S0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Yc(e.document);t instanceof e.HTMLIFrameElement;){try{var a=typeof t.contentWindow.location.href==="string"}catch(o){a=!1}if(a)e=t.contentWindow;else break;t=Yc(e.document)}return t}function Vm(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function x0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;cy||Bu==null||Bu!==Yc(o)||(o=Bu,("selectionStart"in o)&&Vm(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focusNode:o.focusNode,focusOffset:o.focusOffset}),Ld&&Ni(Ld,o)||(Ld=o,o=$f(dy,"onSelect"),0<o.length&&(t=new fp("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Bu)))}function ns(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function rs(e){if(fy[e])return fy[e];if(!Nu[e])return e;var t=Nu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in kL)return fy[e]=t[a];return e}function sl(e,t){ML.set(e,t),Za(t,[e])}function AT(e){for(var t=mp,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Ra(o)&&o.length===2&&typeof o[0]==="string"){if(t!==mp&&t!==yy)return hy;t=yy}else return hy;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==mp&&t!==gy)return hy;t=gy}}return t}function $m(e,t,a,o){for(var l in e)dl.call(e,l)&&l[0]!=="_"&&Ml(l,e[l],t,a,o)}function Ml(e,t,a,o,l){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===$l){var n=Z(t.type)||"…",s=t.key;t=t.props;var d=Object.keys(t),m=d.length;if(s==null&&m===0){t="<"+n+" />";break}if(3>o||m===1&&d[0]==="children"&&s==null){t="<"+n+" … />";break}a.push([l+"  ".repeat(o)+e,"<"+n]),s!==null&&Ml("key",s,a,o+1,l),e=!1;for(var g in t)g==="children"?t.children!=null&&(!Ra(t.children)||0<t.children.length)&&(e=!0):dl.call(t,g)&&g[0]!=="_"&&Ml(g,t[g],a,o+1,l);a.push(["",e?">…</"+n+">":"/>"]);return}if(n=Object.prototype.toString.call(t),n=n.slice(8,n.length-1),n==="Array"){if(g=AT(t),g===gy||g===mp){t=JSON.stringify(t);break}else if(g===yy){a.push([l+"  ".repeat(o)+e,""]);for(e=0;e<t.length;e++)n=t[e],Ml(n[0],n[1],a,o+1,l);return}}if(n==="Promise"){if(t.status==="fulfilled"){if(n=a.length,Ml(e,t.value,a,o,l),a.length>n){a=a[n],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(n=a.length,Ml(e,t.reason,a,o,l),a.length>n)){a=a[n],a[1]="Rejected Promise<"+a[1]+">";return}a.push(["  ".repeat(o)+e,"Promise"]);return}n==="Object"&&(g=Object.getPrototypeOf(t))&&typeof g.constructor==="function"&&(n=g.constructor.name),a.push([l+"  ".repeat(o)+e,n==="Object"?3>o?"":"…":n]),3>o&&$m(t,a,o+1,l);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===iM?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([l+"  ".repeat(o)+e,t])}function L0(e,t,a,o){var l=!0;for(s in e)s in t||(a.push([hp+"  ".repeat(o)+s,"…"]),l=!1);for(var n in t)if(n in e){var s=e[n],d=t[n];if(s!==d){if(o===0&&n==="children")l="  ".repeat(o)+n,a.push([hp+l,"…"],[gp+l,"…"]);else{if(!(3<=o)){if(typeof s==="object"&&typeof d==="object"&&s!==null&&d!==null&&s.$$typeof===d.$$typeof)if(d.$$typeof===$l){if(s.type===d.type&&s.key===d.key){s=Z(d.type)||"…",l="  ".repeat(o)+n,s="<"+s+" … />",a.push([hp+l,s],[gp+l,s]),l=!1;continue}}else{var m=Object.prototype.toString.call(s),g=Object.prototype.toString.call(d);if(m===g&&(g==="[object Object]"||g==="[object Array]")){m=[EL+"  ".repeat(o)+n,g==="[object Array]"?"Array":""],a.push(m),g=a.length,L0(s,d,a,o+1)?g===a.length&&(m[1]="Referentially unequal but deeply equal objects. Consider memoization."):l=!1;continue}}else if(typeof s==="function"&&typeof d==="function"&&s.name===d.name&&s.length===d.length&&(m=Function.prototype.toString.call(s),g=Function.prototype.toString.call(d),m===g)){s=d.name===""?"() => {}":d.name+"() {}",a.push([EL+"  ".repeat(o)+n,s+" Referentially unequal function closure. Consider memoization."]);continue}}Ml(n,s,a,o,hp),Ml(n,d,a,o,gp)}l=!1}}else a.push([gp+"  ".repeat(o)+n,"…"]),l=!1;return l}function Co(e){it=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Al(e,t,a,o){Gt&&(br.start=t,br.end=a,In.color="warning",In.tooltipText=o,In.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,br)):performance.measure(o,br))}function ef(e,t,a){Al(e,t,a,"Reconnect")}function tf(e,t,a,o,l){var n=X(e);if(n!==null&&Gt){var{alternate:s,actualDuration:d}=e;if(s===null||s.child!==e.child)for(var m=e.child;m!==null;m=m.sibling)d-=m.actualDuration;o=0.5>d?o?"tertiary-light":"primary-light":10>d?o?"tertiary":"primary":100>d?o?"tertiary-dark":"primary-dark":"error";var g=e.memoizedProps;d=e._debugTask,g!==null&&s!==null&&s.memoizedProps!==g?(m=[dM],g=L0(s.memoizedProps,g,m,0),1<m.length&&(g&&!yr&&(s.lanes&l)===0&&100<e.actualDuration?(yr=!0,m[0]=cM,In.color="warning",In.tooltipText=OL):(In.color=o,In.tooltipText=n),In.properties=m,br.start=t,br.end=a,d!=null?d.run(performance.measure.bind(performance,"​"+n,br)):performance.measure("​"+n,br))):d!=null?d.run(console.timeStamp.bind(console,n,t,a,Vo,void 0,o)):console.timeStamp(n,t,a,Vo,void 0,o)}}function Xm(e,t,a,o){if(Gt){var l=X(e);if(l!==null){for(var n=null,s=[],d=0;d<o.length;d++){var m=o[d];n==null&&m.source!==null&&(n=m.source._debugTask),m=m.value,s.push(["Error",typeof m==="object"&&m!==null&&typeof m.message==="string"?String(m.message):String(m)])}e.key!==null&&Ml("key",e.key,s,0,""),e.memoizedProps!==null&&$m(e.memoizedProps,s,0,""),n==null&&(n=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:Vo,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:s}}},n?n.run(performance.measure.bind(performance,"​"+l,e)):performance.measure("​"+l,e)}}}function Dl(e,t,a,o,l){if(l!==null){if(Gt){var n=X(e);if(n!==null){o=[];for(var s=0;s<l.length;s++){var d=l[s].value;o.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e.key!==null&&Ml("key",e.key,o,0,""),e.memoizedProps!==null&&$m(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:Vo,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,"​"+n,t)):performance.measure("​"+n,t)}}}else n=X(e),n!==null&&Gt&&(l=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,n,t,a,Vo,void 0,l)):console.timeStamp(n,t,a,Vo,void 0,l))}function DT(e,t,a,o){if(Gt&&!(t<=e)){var l=(a&738197653)===a?"tertiary-dark":"primary-dark";a=(a&536870912)===a?"Prepared":(a&201326741)===a?"Hydrated":"Render",o?o.run(console.timeStamp.bind(console,a,e,t,it,st,l)):console.timeStamp(a,e,t,it,st,l)}}function C0(e,t,a,o){!Gt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,it,st,a)):console.timeStamp("Prewarm",e,t,it,st,a))}function k0(e,t,a,o){!Gt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,it,st,a)):console.timeStamp("Suspended",e,t,it,st,a))}function ET(e,t,a,o,l,n){if(Gt&&!(t<=e)){a=[];for(var s=0;s<o.length;s++){var d=o[s].value;a.push(["Recoverable Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:it,trackGroup:st,tooltipText:l?"Hydration Failed":"Recovered after Error",properties:a}}},n?n.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function jm(e,t,a,o){!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,it,st,"error")):console.timeStamp("Errored",e,t,it,st,"error"))}function OT(e,t,a,o){!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,it,st,"secondary-light")):console.timeStamp(a,e,t,it,st,"secondary-light"))}function w0(e,t,a,o,l){if(Gt&&!(t<=e)){for(var n=[],s=0;s<a.length;s++){var d=a[s].value;n.push(["Error",typeof d==="object"&&d!==null&&typeof d.message==="string"?String(d.message):String(d)])}e={start:e,end:t,detail:{devtools:{color:"error",track:it,trackGroup:st,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:n}}},l?l.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function Ui(e,t,a){!Gt||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,it,st,"secondary-dark")):console.timeStamp("Animating",e,t,it,st,"secondary-dark"))}function af(){for(var e=Uu,t=by=Uu=0;t<e;){var a=$o[t];$o[t++]=null;var o=$o[t];$o[t++]=null;var l=$o[t];$o[t++]=null;var n=$o[t];if($o[t++]=null,o!==null&&l!==null){var s=o.pending;s===null?l.next=l:(l.next=s.next,s.next=l),o.pending=l}n!==0&&T0(a,l,n)}}function of(e,t,a,o){$o[Uu++]=e,$o[Uu++]=t,$o[Uu++]=a,$o[Uu++]=o,by|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Ym(e,t,a,o){return of(e,t,a,o),lf(e)}function Wa(e,t){return of(e,null,null,t),lf(e)}function T0(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var l=!1,n=e.return;n!==null;)n.childLanes|=a,o=n.alternate,o!==null&&(o.childLanes|=a),n.tag===22&&(e=n.stateNode,e===null||e._visibility&Cd||(l=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,l&&t!==null&&(l=31-ao(a),e=n.hiddenUpdates,o=e[l],o===null?e[l]=[t]:o.push(t),t.lane=a|536870912),n):null}function lf(e){if(Zd>TM)throw Bs=Zd=0,Wd=Wy=null,Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Bs>IM&&(Bs=0,Wd=null,console.error("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.")),e.alternate===null&&(e.flags&4098)!==0&&FS(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&FS(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function ss(e){if(Xo===null)return e;var t=Xo(e);return t===void 0?e:t.current}function Qm(e){if(Xo===null)return e;var t=Xo(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=ss(e.render),e.render!==t)?(t={$$typeof:cd,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function I0(e,t){if(Xo===null)return!1;var a=e.elementType;t=t.type;var o=!1,l=typeof t==="object"&&t!==null?t.$$typeof:null;switch(e.tag){case 1:typeof t==="function"&&(o=!0);break;case 0:typeof t==="function"?o=!0:l===Ao&&(o=!0);break;case 11:l===cd?o=!0:l===Ao&&(o=!0);break;case 14:case 15:l===ap?o=!0:l===Ao&&(o=!0);break;default:return!1}return o&&(e=Xo(a),e!==void 0&&e===Xo(t))?!0:!1}function R0(e){Xo!==null&&typeof WeakSet==="function"&&(Pu===null&&(Pu=new WeakSet),Pu.add(e))}function M0(e,t,a){do{var o=e,l=o.alternate,n=o.child,s=o.sibling,d=o.tag;o=o.type;var m=null;switch(d){case 0:case 15:case 1:m=o;break;case 11:m=o.render}if(Xo===null)throw Error("Expected resolveFamily to be set during hot reload.");var g=!1;if(o=!1,m!==null&&(m=Xo(m),m!==void 0&&(a.has(m)?o=!0:t.has(m)&&(d===1?o=!0:g=!0))),Pu!==null&&(Pu.has(e)||l!==null&&Pu.has(l))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||g)l=Wa(e,2),l!==null&&oa(l,e,2);if(n===null||o||M0(n,t,a),s===null)break;e=s}while(1)}function qT(e,t,a,o){this.tag=e,this.key=a,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,qL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Zm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vn(e,t){var a=e.alternate;switch(a===null?(a=C(e.tag,t,e.key,e.mode),a.elementType=e.elementType,a.type=e.type,a.stateNode=e.stateNode,a._debugOwner=e._debugOwner,a._debugStack=e._debugStack,a._debugTask=e._debugTask,a._debugHookTypes=e._debugHookTypes,a.alternate=e,e.alternate=a):(a.pendingProps=t,a.type=e.type,a.flags=0,a.subtreeFlags=0,a.deletions=null,a.actualDuration=-0,a.actualStartTime=-1.1),a.flags=e.flags&65011712,a.childLanes=e.childLanes,a.lanes=e.lanes,a.child=e.child,a.memoizedProps=e.memoizedProps,a.memoizedState=e.memoizedState,a.updateQueue=e.updateQueue,t=e.dependencies,a.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},a.sibling=e.sibling,a.index=e.index,a.ref=e.ref,a.refCleanup=e.refCleanup,a.selfBaseDuration=e.selfBaseDuration,a.treeBaseDuration=e.treeBaseDuration,a._debugInfo=e._debugInfo,a._debugNeedsRemount=e._debugNeedsRemount,a.tag){case 0:case 15:a.type=ss(e.type);break;case 1:a.type=ss(e.type);break;case 11:a.type=Qm(e.type)}return a}function A0(e,t){e.flags&=65011714;var a=e.alternate;return a===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null,e.selfBaseDuration=0,e.treeBaseDuration=0):(e.childLanes=a.childLanes,e.lanes=a.lanes,e.child=a.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=a.memoizedProps,e.memoizedState=a.memoizedState,e.updateQueue=a.updateQueue,e.type=a.type,t=a.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext,_debugThenableState:t._debugThenableState},e.selfBaseDuration=a.selfBaseDuration,e.treeBaseDuration=a.treeBaseDuration),e}function Wm(e,t,a,o,l,n){var s=0,d=e;if(typeof e==="function")Zm(e)&&(s=1),d=ss(d);else if(typeof e==="string")s=ke(),s=GI(e,a,s)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Gg:return t=C(31,a,t,l),t.elementType=Gg,t.lanes=n,t;case Tu:return us(a.children,l,n,t);case tp:s=8,l|=Ja,l|=fl;break;case zg:return e=a,o=l,typeof e.id!=="string"&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=C(12,e,t,o|tt),t.elementType=zg,t.lanes=n,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Hg:return t=C(13,a,t,l),t.elementType=Hg,t.lanes=n,t;case Fg:return t=C(19,a,t,l),t.elementType=Fg,t.lanes=n,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Xl:s=10;break e;case _g:s=9;break e;case cd:s=11,d=Qm(d);break e;case ap:s=14;break e;case Ao:s=16,d=null;break e}if(d="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)d+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.";e===null?a="null":Ra(e)?a="array":e!==void 0&&e.$$typeof===$l?(a="<"+(Z(e.type)||"Unknown")+" />",d=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(s=o?W(o):null)&&(d+=`
72
72
 
73
- Check the render method of \``+s+"`."),s=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+d)),d=null}return t=C(s,a,t,l),t.elementType=e,t.type=d,t.lanes=n,t._debugOwner=o,t}function nf(e,t,a){return t=Wm(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function us(e,t,a,o){return e=C(7,e,o,t),e.lanes=a,e}function Km(e,t,a){return e=C(6,e,null,t),e.lanes=a,e}function A0(e){var t=C(18,null,null,ze);return t.stateNode=e,t}function Jm(e,t,a){return t=C(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ko(e,t){if(typeof e==="object"&&e!==null){var a=vy.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:V(t)},vy.set(e,t),t}return{value:e,source:t,stack:V(t)}}function Sn(e,t){er(),zu[_u++]=kd,zu[_u++]=yp,yp=e,kd=t}function D0(e,t,a){er(),jo[Yo++]=Mn,jo[Yo++]=An,jo[Yo++]=xs,xs=e;var o=Mn;e=An;var l=32-ao(o)-1;o&=~(1<<l),a+=1;var n=32-ao(t)+l;if(30<n){var s=l-l%5;n=(o&(1<<s)-1).toString(32),o>>=s,l-=s,Mn=1<<32-ao(t)+l|a<<l|o,An=n+e}else Mn=1<<n|a<<l|o,An=e}function eh(e){er(),e.return!==null&&(Sn(e,1),D0(e,1,0))}function th(e){for(;e===yp;)yp=zu[--_u],zu[_u]=null,kd=zu[--_u],zu[_u]=null;for(;e===xs;)xs=jo[--Yo],jo[Yo]=null,An=jo[--Yo],jo[Yo]=null,Mn=jo[--Yo],jo[Yo]=null}function E0(){return er(),xs!==null?{id:Mn,overflow:An}:null}function O0(e,t){er(),jo[Yo++]=Mn,jo[Yo++]=An,jo[Yo++]=xs,Mn=t.id,An=t.overflow,xs=e}function er(){dt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function is(e,t){if(e.return===null){if(Oo===null)Oo={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Oo.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Oo.distanceFromLeaf>t&&(Oo.distanceFromLeaf=t)}return Oo}var a=is(e.return,t+1).children;if(0<a.length&&a[a.length-1].fiber===e)return a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a;return t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t}function q0(){dt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function rf(e,t){Kl||(e=is(e,0),e.serverProps=null,t!==null&&(t=fx(t),e.serverTail.push(t)))}function tr(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=Oo;throw o!==null&&(Oo=null,a=_m(o)),Pi(ko(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
73
+ Check the render method of \``+s+"`."),s=29,a=Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: "+(a+"."+d)),d=null}return t=C(s,a,t,l),t.elementType=e,t.type=d,t.lanes=n,t._debugOwner=o,t}function nf(e,t,a){return t=Wm(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function us(e,t,a,o){return e=C(7,e,o,t),e.lanes=a,e}function Km(e,t,a){return e=C(6,e,null,t),e.lanes=a,e}function D0(e){var t=C(18,null,null,ze);return t.stateNode=e,t}function Jm(e,t,a){return t=C(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ko(e,t){if(typeof e==="object"&&e!==null){var a=vy.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:V(t)},vy.set(e,t),t}return{value:e,source:t,stack:V(t)}}function Sn(e,t){er(),zu[_u++]=kd,zu[_u++]=yp,yp=e,kd=t}function E0(e,t,a){er(),jo[Yo++]=Mn,jo[Yo++]=An,jo[Yo++]=xs,xs=e;var o=Mn;e=An;var l=32-ao(o)-1;o&=~(1<<l),a+=1;var n=32-ao(t)+l;if(30<n){var s=l-l%5;n=(o&(1<<s)-1).toString(32),o>>=s,l-=s,Mn=1<<32-ao(t)+l|a<<l|o,An=n+e}else Mn=1<<n|a<<l|o,An=e}function eh(e){er(),e.return!==null&&(Sn(e,1),E0(e,1,0))}function th(e){for(;e===yp;)yp=zu[--_u],zu[_u]=null,kd=zu[--_u],zu[_u]=null;for(;e===xs;)xs=jo[--Yo],jo[Yo]=null,An=jo[--Yo],jo[Yo]=null,Mn=jo[--Yo],jo[Yo]=null}function O0(){return er(),xs!==null?{id:Mn,overflow:An}:null}function q0(e,t){er(),jo[Yo++]=Mn,jo[Yo++]=An,jo[Yo++]=xs,Mn=t.id,An=t.overflow,xs=e}function er(){dt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function is(e,t){if(e.return===null){if(Oo===null)Oo={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(Oo.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");Oo.distanceFromLeaf>t&&(Oo.distanceFromLeaf=t)}return Oo}var a=is(e.return,t+1).children;if(0<a.length&&a[a.length-1].fiber===e)return a=a[a.length-1],a.distanceFromLeaf>t&&(a.distanceFromLeaf=t),a;return t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},a.push(t),t}function B0(){dt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function rf(e,t){Kl||(e=is(e,0),e.serverProps=null,t!==null&&(t=px(t),e.serverTail.push(t)))}function tr(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=Oo;throw o!==null&&(Oo=null,a=_m(o)),Pi(ko(Error("Hydration failed because the server rendered "+(t?"text":"HTML")+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
74
74
 
75
75
  - A server/client branch \`if (typeof window !== 'undefined')\`.
76
76
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -80,7 +80,7 @@ Check the render method of \``+s+"`."),s=29,a=Error("Element type is invalid: ex
80
80
 
81
81
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
82
82
 
83
- https://react.dev/link/hydration-mismatch`+a),e)),Sy}function B0(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[Xa]=e,t[oo]=o,xg(a,o),a){case"dialog":ft("cancel",t),ft("close",t);break;case"iframe":case"object":case"embed":ft("load",t);break;case"video":case"audio":for(a=0;a<Kd.length;a++)ft(Kd[a],t);break;case"source":ft("error",t);break;case"img":case"image":case"link":ft("error",t),ft("load",t);break;case"details":ft("toggle",t);break;case"input":Jn("input",o),ft("invalid",t),Hb(t,o),Fb(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":Gb(t,o);break;case"select":Jn("select",o),ft("invalid",t),$b(t,o);break;case"textarea":Jn("textarea",o),ft("invalid",t),Xb(t,o),Yb(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||KS(t.textContent,a)?(o.popover!=null&&(ft("beforetoggle",t),ft("toggle",t)),o.onScroll!=null&&ft("scroll",t),o.onScrollEnd!=null&&ft("scrollend",t),o.onClick!=null&&(t.onclick=bn),t=!0):t=!1,t||tr(e,!0)}function N0(e){for(ja=e.return;ja;)switch(ja.tag){case 5:case 31:case 13:Qo=!1;return;case 27:case 3:Qo=!0;return;default:ja=ja.return}}function du(e){if(e!==ja)return!1;if(!dt)return N0(e),dt=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||Tg(e.type,e.memoizedProps);a=!a}if(a&&Vt){for(a=Vt;a;){var o=is(e,0),l=fx(a);o.serverTail.push(l),a=l.type==="Suspense"?Ag(a):Mo(a.nextSibling)}tr(e)}if(N0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vt=Ag(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vt=Ag(e)}else t===27?(t=Vt,cr(e.type)?(e=ib,ib=null,Vt=e):Vt=t):Vt=ja?Mo(e.stateNode.nextSibling):null;return!0}function ds(){Vt=ja=null,Kl=dt=!1}function ah(){var e=Sr;return e!==null&&(io===null?io=e:io.push.apply(io,e),Sr=null),e}function Pi(e){Sr===null?Sr=[e]:Sr.push(e)}function oh(){var e=Oo;if(e!==null){Oo=null;for(var t=_m(e);0<e.children.length;)e=e.children[0];re(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
83
+ https://react.dev/link/hydration-mismatch`+a),e)),Sy}function N0(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[Xa]=e,t[oo]=o,xg(a,o),a){case"dialog":ft("cancel",t),ft("close",t);break;case"iframe":case"object":case"embed":ft("load",t);break;case"video":case"audio":for(a=0;a<Kd.length;a++)ft(Kd[a],t);break;case"source":ft("error",t);break;case"img":case"image":case"link":ft("error",t),ft("load",t);break;case"details":ft("toggle",t);break;case"input":Jn("input",o),ft("invalid",t),Fb(t,o),Gb(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":Vb(t,o);break;case"select":Jn("select",o),ft("invalid",t),Xb(t,o);break;case"textarea":Jn("textarea",o),ft("invalid",t),jb(t,o),Qb(t,o.value,o.defaultValue,o.children)}a=o.children,typeof a!=="string"&&typeof a!=="number"&&typeof a!=="bigint"||t.textContent===""+a||o.suppressHydrationWarning===!0||JS(t.textContent,a)?(o.popover!=null&&(ft("beforetoggle",t),ft("toggle",t)),o.onScroll!=null&&ft("scroll",t),o.onScrollEnd!=null&&ft("scrollend",t),o.onClick!=null&&(t.onclick=bn),t=!0):t=!1,t||tr(e,!0)}function U0(e){for(ja=e.return;ja;)switch(ja.tag){case 5:case 31:case 13:Qo=!1;return;case 27:case 3:Qo=!0;return;default:ja=ja.return}}function du(e){if(e!==ja)return!1;if(!dt)return U0(e),dt=!0,!1;var t=e.tag,a;if(a=t!==3&&t!==27){if(a=t===5)a=e.type,a=!(a!=="form"&&a!=="button")||Tg(e.type,e.memoizedProps);a=!a}if(a&&Vt){for(a=Vt;a;){var o=is(e,0),l=px(a);o.serverTail.push(l),a=l.type==="Suspense"?Ag(a):Mo(a.nextSibling)}tr(e)}if(U0(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vt=Ag(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");Vt=Ag(e)}else t===27?(t=Vt,cr(e.type)?(e=ib,ib=null,Vt=e):Vt=t):Vt=ja?Mo(e.stateNode.nextSibling):null;return!0}function ds(){Vt=ja=null,Kl=dt=!1}function ah(){var e=Sr;return e!==null&&(io===null?io=e:io.push.apply(io,e),Sr=null),e}function Pi(e){Sr===null?Sr=[e]:Sr.push(e)}function oh(){var e=Oo;if(e!==null){Oo=null;for(var t=_m(e);0<e.children.length;)e=e.children[0];re(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
84
84
 
85
85
  - A server/client branch \`if (typeof window !== 'undefined')\`.
86
86
  - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
@@ -90,45 +90,45 @@ https://react.dev/link/hydration-mismatch`+a),e)),Sy}function B0(e){var{stateNod
90
90
 
91
91
  It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
92
92
 
93
- %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function sf(){Hu=bp=null,Fu=!1}function ar(e,t,a){Ce(xy,t._currentValue,e),t._currentValue=a,Ce(Ly,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==BL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=BL}function xn(e,t){e._currentValue=xy.current;var a=Ly.current;Ne(Ly,t),e._currentRenderer=a,Ne(xy,t)}function lh(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function nh(e,t,a,o){var l=e.child;l!==null&&(l.return=e);for(;l!==null;){var n=l.dependencies;if(n!==null){var s=l.child;n=n.firstContext;e:for(;n!==null;){var d=n;n=l;for(var m=0;m<t.length;m++)if(d.context===t[m]){n.lanes|=a,d=n.alternate,d!==null&&(d.lanes|=a),lh(n.return,a,e),o||(s=null);break e}n=d.next}}else if(l.tag===18){if(s=l.return,s===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");s.lanes|=a,n=s.alternate,n!==null&&(n.lanes|=a),lh(s,a,e),s=null}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===e){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}}function cu(e,t,a,o){e=null;for(var l=t,n=!1;l!==null;){if(!n){if((l.flags&524288)!==0)n=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var s=l.alternate;if(s===null)throw Error("Should have a current fiber. This is a bug in React.");if(s=s.memoizedProps,s!==null){var d=l.type;no(l.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(l===op.current){if(s=l.alternate,s===null)throw Error("Should have a current fiber. This is a bug in React.");s.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(oc):e=[oc])}l=l.return}e!==null&&nh(t,e,a,o),t.flags|=262144}function uf(e){for(e=e.firstContext;e!==null;){if(!no(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cs(e){bp=e,Hu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qt(e){return Fu&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),U0(bp,e)}function df(e,t){return bp===null&&cs(e),U0(e,t)}function U0(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Hu===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Hu=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Hu=Hu.next=t;return a}function rh(){return{controller:new pM,data:new Map,refCount:0}}function fs(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function zi(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&mM(hM,function(){e.controller.abort()})}function El(e,t,a){if((e&127)!==0)0>Jl&&(Jl=Sa(),Td=vp(t),Cy=t,a!=null&&(ky=X(a)),(ht&(Aa|No))!==Pa&&(la=!0,Cr=wd),e=rd(),t=nd(),e!==Gu||t!==Id?Gu=-1.1:t!==null&&(Cr=wd),Cs=e,Id=t);else if((e&4194048)!==0&&0>Zo&&(Zo=Sa(),Rd=vp(t),NL=t,a!=null&&(UL=X(a)),0>On)){if(e=rd(),t=nd(),e!==wr||t!==ks)wr=-1.1;kr=e,ks=t}}function qT(e){if(0>Jl){Jl=Sa(),Td=e._debugTask!=null?e._debugTask:null,(ht&(Aa|No))!==Pa&&(Cr=wd);var t=rd(),a=nd();t!==Gu||a!==Id?Gu=-1.1:a!==null&&(Cr=wd),Cs=t,Id=a}if(0>Zo&&(Zo=Sa(),Rd=e._debugTask!=null?e._debugTask:null,0>On)){if(e=rd(),t=nd(),e!==wr||t!==ks)wr=-1.1;kr=e,ks=t}}function Ln(){var e=Ls;return Ls=0,e}function cf(e){var t=Ls;return Ls=e,t}function _i(e){var t=Ls;return Ls+=e,t}function ff(){Ue=qe=-1.1}function wo(){var e=qe;return qe=-1.1,e}function To(e){0<=e&&(qe=e)}function Ol(){var e=Jt;return Jt=-0,e}function ql(e){0<=e&&(Jt=e)}function Bl(){var e=Zt;return Zt=null,e}function Nl(){var e=la;return la=!1,e}function sh(e){ro=Sa(),0>e.actualStartTime&&(e.actualStartTime=ro)}function uh(e){if(0<=ro){var t=Sa()-ro;e.actualDuration+=t,e.selfBaseDuration=t,ro=-1}}function P0(e){if(0<=ro){var t=Sa()-ro;e.actualDuration+=t,ro=-1}}function Ul(){if(0<=ro){var e=Sa(),t=e-ro;ro=-1,Ls+=t,Jt+=t,Ue=e}}function z0(e){Zt===null&&(Zt=[]),Zt.push(e),En===null&&(En=[]),En.push(e)}function Pl(){ro=Sa(),0>qe&&(qe=ro)}function Hi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function BT(e,t){if(Ad===null){var a=Ad=[];Ty=0,ws=yg(),Vu={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Ty++,t.then(_0,_0),t}function _0(){if(--Ty===0&&(-1<Zo||(On=-1.1),Ad!==null)){Vu!==null&&(Vu.status="fulfilled");var e=Ad;Ad=null,ws=0,Vu=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function NT(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){o.status="rejected",o.reason=l;for(l=0;l<a.length;l++)(0,a[l])(void 0)}),o}function ih(){var e=Ts.current;return e!==null?e:Pt.pooledCache}function pf(e,t){t===null?Ce(Ts,Ts.current,e):Ce(Ts,t.pool,e)}function H0(){var e=ih();return e===null?null:{parent:va._currentValue,pool:e}}function F0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function G0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function V0(e,t,a){G.actQueue!==null&&(G.didUsePromise=!0);var o=e.thenables;if(a=o[a],a===void 0?o.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(bn,bn),t=a),t._debugInfo===void 0){e=performance.now(),o=t.displayName;var l={name:typeof o==="string"?o:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:l}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){l.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,X0(e),e;default:if(typeof t.status==="string")t.then(bn,bn);else{if(e=Pt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=n}},function(n){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,X0(e),e}throw Rs=t,Ud=!0,$u}}function or(e){try{return vM(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw Rs=t,Ud=!0,$u;throw t}}function $0(){if(Rs===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Rs;return Rs=null,Ud=!1,e}function X0(e){if(e===$u||e===Ip)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Ga(e){var t=at;return e!=null&&(at=t===null?e:t.concat(e)),t}function dh(){var e=at;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function mf(e,t,a){for(var o=Object.keys(e.props),l=0;l<o.length;l++){var n=o[l];if(n!=="children"&&n!=="key"){t===null&&(t=nf(e,a.mode,0),t._debugInfo=at,t.return=a),re(t,function(s){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s)},n);break}}}function hf(e){var t=Pd;return Pd+=1,Xu===null&&(Xu=F0()),V0(Xu,e,t)}function Fi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function j0(e,t){if(t.$$typeof===KI)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
93
+ %s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function sf(){Hu=bp=null,Fu=!1}function ar(e,t,a){Ce(xy,t._currentValue,e),t._currentValue=a,Ce(Ly,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==NL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=NL}function xn(e,t){e._currentValue=xy.current;var a=Ly.current;Ne(Ly,t),e._currentRenderer=a,Ne(xy,t)}function lh(e,t,a){for(;e!==null;){var o=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,o!==null&&(o.childLanes|=t)):o!==null&&(o.childLanes&t)!==t&&(o.childLanes|=t),e===a)break;e=e.return}e!==a&&console.error("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function nh(e,t,a,o){var l=e.child;l!==null&&(l.return=e);for(;l!==null;){var n=l.dependencies;if(n!==null){var s=l.child;n=n.firstContext;e:for(;n!==null;){var d=n;n=l;for(var m=0;m<t.length;m++)if(d.context===t[m]){n.lanes|=a,d=n.alternate,d!==null&&(d.lanes|=a),lh(n.return,a,e),o||(s=null);break e}n=d.next}}else if(l.tag===18){if(s=l.return,s===null)throw Error("We just came from a parent so we must have had a parent. This is a bug in React.");s.lanes|=a,n=s.alternate,n!==null&&(n.lanes|=a),lh(s,a,e),s=null}else s=l.child;if(s!==null)s.return=l;else for(s=l;s!==null;){if(s===e){s=null;break}if(l=s.sibling,l!==null){l.return=s.return,s=l;break}s=s.return}l=s}}function cu(e,t,a,o){e=null;for(var l=t,n=!1;l!==null;){if(!n){if((l.flags&524288)!==0)n=!0;else if((l.flags&262144)!==0)break}if(l.tag===10){var s=l.alternate;if(s===null)throw Error("Should have a current fiber. This is a bug in React.");if(s=s.memoizedProps,s!==null){var d=l.type;no(l.pendingProps.value,s.value)||(e!==null?e.push(d):e=[d])}}else if(l===op.current){if(s=l.alternate,s===null)throw Error("Should have a current fiber. This is a bug in React.");s.memoizedState.memoizedState!==l.memoizedState.memoizedState&&(e!==null?e.push(oc):e=[oc])}l=l.return}e!==null&&nh(t,e,a,o),t.flags|=262144}function uf(e){for(e=e.firstContext;e!==null;){if(!no(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function cs(e){bp=e,Hu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Qt(e){return Fu&&console.error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo()."),P0(bp,e)}function df(e,t){return bp===null&&cs(e),P0(e,t)}function P0(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Hu===null){if(e===null)throw Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");Hu=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Hu=Hu.next=t;return a}function rh(){return{controller:new mM,data:new Map,refCount:0}}function fs(e){e.controller.signal.aborted&&console.warn("A cache instance was retained after it was already freed. This likely indicates a bug in React."),e.refCount++}function zi(e){e.refCount--,0>e.refCount&&console.warn("A cache instance was released after it was already freed. This likely indicates a bug in React."),e.refCount===0&&hM(gM,function(){e.controller.abort()})}function El(e,t,a){if((e&127)!==0)0>Jl&&(Jl=Sa(),Td=vp(t),Cy=t,a!=null&&(ky=X(a)),(ht&(Aa|No))!==Pa&&(la=!0,Cr=wd),e=rd(),t=nd(),e!==Gu||t!==Id?Gu=-1.1:t!==null&&(Cr=wd),Cs=e,Id=t);else if((e&4194048)!==0&&0>Zo&&(Zo=Sa(),Rd=vp(t),UL=t,a!=null&&(PL=X(a)),0>On)){if(e=rd(),t=nd(),e!==wr||t!==ks)wr=-1.1;kr=e,ks=t}}function BT(e){if(0>Jl){Jl=Sa(),Td=e._debugTask!=null?e._debugTask:null,(ht&(Aa|No))!==Pa&&(Cr=wd);var t=rd(),a=nd();t!==Gu||a!==Id?Gu=-1.1:a!==null&&(Cr=wd),Cs=t,Id=a}if(0>Zo&&(Zo=Sa(),Rd=e._debugTask!=null?e._debugTask:null,0>On)){if(e=rd(),t=nd(),e!==wr||t!==ks)wr=-1.1;kr=e,ks=t}}function Ln(){var e=Ls;return Ls=0,e}function cf(e){var t=Ls;return Ls=e,t}function _i(e){var t=Ls;return Ls+=e,t}function ff(){Ue=qe=-1.1}function wo(){var e=qe;return qe=-1.1,e}function To(e){0<=e&&(qe=e)}function Ol(){var e=Jt;return Jt=-0,e}function ql(e){0<=e&&(Jt=e)}function Bl(){var e=Zt;return Zt=null,e}function Nl(){var e=la;return la=!1,e}function sh(e){ro=Sa(),0>e.actualStartTime&&(e.actualStartTime=ro)}function uh(e){if(0<=ro){var t=Sa()-ro;e.actualDuration+=t,e.selfBaseDuration=t,ro=-1}}function z0(e){if(0<=ro){var t=Sa()-ro;e.actualDuration+=t,ro=-1}}function Ul(){if(0<=ro){var e=Sa(),t=e-ro;ro=-1,Ls+=t,Jt+=t,Ue=e}}function _0(e){Zt===null&&(Zt=[]),Zt.push(e),En===null&&(En=[]),En.push(e)}function Pl(){ro=Sa(),0>qe&&(qe=ro)}function Hi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function NT(e,t){if(Ad===null){var a=Ad=[];Ty=0,ws=yg(),Vu={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Ty++,t.then(H0,H0),t}function H0(){if(--Ty===0&&(-1<Zo||(On=-1.1),Ad!==null)){Vu!==null&&(Vu.status="fulfilled");var e=Ad;Ad=null,ws=0,Vu=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function UT(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(l){a.push(l)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var l=0;l<a.length;l++)(0,a[l])(t)},function(l){o.status="rejected",o.reason=l;for(l=0;l<a.length;l++)(0,a[l])(void 0)}),o}function ih(){var e=Ts.current;return e!==null?e:Pt.pooledCache}function pf(e,t){t===null?Ce(Ts,Ts.current,e):Ce(Ts,t.pool,e)}function F0(){var e=ih();return e===null?null:{parent:va._currentValue,pool:e}}function G0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function V0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function $0(e,t,a){G.actQueue!==null&&(G.didUsePromise=!0);var o=e.thenables;if(a=o[a],a===void 0?o.push(t):a!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error("A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.")),t.then(bn,bn),t=a),t._debugInfo===void 0){e=performance.now(),o=t.displayName;var l={name:typeof o==="string"?o:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:l}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){l.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,j0(e),e;default:if(typeof t.status==="string")t.then(bn,bn);else{if(e=Pt,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");e=t,e.status="pending",e.then(function(n){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=n}},function(n){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=n}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,j0(e),e}throw Rs=t,Ud=!0,$u}}function or(e){try{return SM(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw Rs=t,Ud=!0,$u;throw t}}function X0(){if(Rs===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Rs;return Rs=null,Ud=!1,e}function j0(e){if(e===$u||e===Ip)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Ga(e){var t=at;return e!=null&&(at=t===null?e:t.concat(e)),t}function dh(){var e=at;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var a=e[t].debugTask;if(a!=null)return a}}return null}function mf(e,t,a){for(var o=Object.keys(e.props),l=0;l<o.length;l++){var n=o[l];if(n!=="children"&&n!=="key"){t===null&&(t=nf(e,a.mode,0),t._debugInfo=at,t.return=a),re(t,function(s){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s)},n);break}}}function hf(e){var t=Pd;return Pd+=1,Xu===null&&(Xu=G0()),$0(Xu,e,t)}function Fi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Y0(e,t){if(t.$$typeof===JI)throw Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
94
94
  - Multiple copies of the "react" package is used.
95
95
  - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
96
- - A compiler tries to "inline" JSX instead of using the runtime.`);throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function gf(e,t){var a=dh();a!==null?a.run(j0.bind(null,e,t)):j0(e,t)}function Y0(e,t){var a=X(e)||"Component";oC[a]||(oC[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
96
+ - A compiler tries to "inline" JSX instead of using the runtime.`);throw e=Object.prototype.toString.call(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.")}function gf(e,t){var a=dh();a!==null?a.run(Y0.bind(null,e,t)):Y0(e,t)}function Q0(e,t){var a=X(e)||"Component";lC[a]||(lC[a]=!0,t=t.displayName||t.name||"Component",e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
97
97
  root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
98
- <%s>{%s}</%s>`,t,t,a,t,a))}function yf(e,t){var a=dh();a!==null?a.run(Y0.bind(null,e,t)):Y0(e,t)}function Q0(e,t){var a=X(e)||"Component";lC[a]||(lC[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
98
+ <%s>{%s}</%s>`,t,t,a,t,a))}function yf(e,t){var a=dh();a!==null?a.run(Q0.bind(null,e,t)):Q0(e,t)}function Z0(e,t){var a=X(e)||"Component";nC[a]||(nC[a]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
99
99
  root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
100
- <%s>%s</%s>`,a,t,a))}function bf(e,t){var a=dh();a!==null?a.run(Q0.bind(null,e,t)):Q0(e,t)}function Z0(e){function t(w,I){if(e){var M=w.deletions;M===null?(w.deletions=[I],w.flags|=16):M.push(I)}}function a(w,I){if(!e)return null;for(;I!==null;)t(w,I),I=I.sibling;return null}function o(w){for(var I=new Map;w!==null;)w.key!==null?I.set(w.key,w):I.set(w.index,w),w=w.sibling;return I}function l(w,I){return w=vn(w,I),w.index=0,w.sibling=null,w}function n(w,I,M){if(w.index=M,!e)return w.flags|=1048576,I;if(M=w.alternate,M!==null)return M=M.index,M<I?(w.flags|=67108866,I):M;return w.flags|=67108866,I}function s(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function d(w,I,M,Q){if(I===null||I.tag!==6)return I=Km(M,w.mode,Q),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;return I=l(I,M),I.return=w,I._debugInfo=at,I}function m(w,I,M,Q){var he=M.type;if(he===Tu)return I=A(w,I,M.props.children,Q,M.key),mf(M,I,w),I;if(I!==null&&(I.elementType===he||T0(I,M)||typeof he==="object"&&he!==null&&he.$$typeof===Ao&&or(he)===I.type))return I=l(I,M.props),Fi(I,M),I.return=w,I._debugOwner=M._owner,I._debugInfo=at,I;return I=nf(M,w.mode,Q),Fi(I,M),I.return=w,I._debugInfo=at,I}function g(w,I,M,Q){if(I===null||I.tag!==4||I.stateNode.containerInfo!==M.containerInfo||I.stateNode.implementation!==M.implementation)return I=Jm(M,w.mode,Q),I.return=w,I._debugInfo=at,I;return I=l(I,M.children||[]),I.return=w,I._debugInfo=at,I}function A(w,I,M,Q,he){if(I===null||I.tag!==7)return I=us(M,w.mode,Q,he),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;return I=l(I,M),I.return=w,I._debugInfo=at,I}function E(w,I,M){if(typeof I==="string"&&I!==""||typeof I==="number"||typeof I==="bigint")return I=Km(""+I,w.mode,M),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;if(typeof I==="object"&&I!==null){switch(I.$$typeof){case $l:return M=nf(I,w.mode,M),Fi(M,I),M.return=w,w=Ga(I._debugInfo),M._debugInfo=at,at=w,M;case wu:return I=Jm(I,w.mode,M),I.return=w,I._debugInfo=at,I;case Ao:var Q=Ga(I._debugInfo);return I=or(I),w=E(w,I,M),at=Q,w}if(Ra(I)||ee(I))return M=us(I,w.mode,M,null),M.return=w,M._debugOwner=w,M._debugTask=w._debugTask,w=Ga(I._debugInfo),M._debugInfo=at,at=w,M;if(typeof I.then==="function")return Q=Ga(I._debugInfo),w=E(w,hf(I),M),at=Q,w;if(I.$$typeof===Xl)return E(w,df(w,I),M);gf(w,I)}return typeof I==="function"&&yf(w,I),typeof I==="symbol"&&bf(w,I),null}function T(w,I,M,Q){var he=I!==null?I.key:null;if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return he!==null?null:d(w,I,""+M,Q);if(typeof M==="object"&&M!==null){switch(M.$$typeof){case $l:return M.key===he?(he=Ga(M._debugInfo),w=m(w,I,M,Q),at=he,w):null;case wu:return M.key===he?g(w,I,M,Q):null;case Ao:return he=Ga(M._debugInfo),M=or(M),w=T(w,I,M,Q),at=he,w}if(Ra(M)||ee(M)){if(he!==null)return null;return he=Ga(M._debugInfo),w=A(w,I,M,Q,null),at=he,w}if(typeof M.then==="function")return he=Ga(M._debugInfo),w=T(w,I,hf(M),Q),at=he,w;if(M.$$typeof===Xl)return T(w,I,df(w,M),Q);gf(w,M)}return typeof M==="function"&&yf(w,M),typeof M==="symbol"&&bf(w,M),null}function U(w,I,M,Q,he){if(typeof Q==="string"&&Q!==""||typeof Q==="number"||typeof Q==="bigint")return w=w.get(M)||null,d(I,w,""+Q,he);if(typeof Q==="object"&&Q!==null){switch(Q.$$typeof){case $l:return M=w.get(Q.key===null?M:Q.key)||null,w=Ga(Q._debugInfo),I=m(I,M,Q,he),at=w,I;case wu:return w=w.get(Q.key===null?M:Q.key)||null,g(I,w,Q,he);case Ao:var Ge=Ga(Q._debugInfo);return Q=or(Q),I=U(w,I,M,Q,he),at=Ge,I}if(Ra(Q)||ee(Q))return M=w.get(M)||null,w=Ga(Q._debugInfo),I=A(I,M,Q,he,null),at=w,I;if(typeof Q.then==="function")return Ge=Ga(Q._debugInfo),I=U(w,I,M,hf(Q),he),at=Ge,I;if(Q.$$typeof===Xl)return U(w,I,M,df(I,Q),he);gf(I,Q)}return typeof Q==="function"&&yf(I,Q),typeof Q==="symbol"&&bf(I,Q),null}function de(w,I,M,Q){if(typeof M!=="object"||M===null)return Q;switch(M.$$typeof){case $l:case wu:h(w,I,M);var he=M.key;if(typeof he!=="string")break;if(Q===null){Q=new Set,Q.add(he);break}if(!Q.has(he)){Q.add(he);break}re(I,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",he)});break;case Ao:M=or(M),de(w,I,M,Q)}return Q}function ye(w,I,M,Q){for(var he=null,Ge=null,De=null,Te=I,We=I=0,$t=null;Te!==null&&We<M.length;We++){Te.index>We?($t=Te,Te=null):$t=Te.sibling;var ga=T(w,Te,M[We],Q);if(ga===null){Te===null&&(Te=$t);break}he=de(w,ga,M[We],he),e&&Te&&ga.alternate===null&&t(w,Te),I=n(ga,I,We),De===null?Ge=ga:De.sibling=ga,De=ga,Te=$t}if(We===M.length)return a(w,Te),dt&&Sn(w,We),Ge;if(Te===null){for(;We<M.length;We++)Te=E(w,M[We],Q),Te!==null&&(he=de(w,Te,M[We],he),I=n(Te,I,We),De===null?Ge=Te:De.sibling=Te,De=Te);return dt&&Sn(w,We),Ge}for(Te=o(Te);We<M.length;We++)$t=U(Te,w,We,M[We],Q),$t!==null&&(he=de(w,$t,M[We],he),e&&$t.alternate!==null&&Te.delete($t.key===null?We:$t.key),I=n($t,I,We),De===null?Ge=$t:De.sibling=$t,De=$t);return e&&Te.forEach(function(Fn){return t(w,Fn)}),dt&&Sn(w,We),Ge}function Ft(w,I,M,Q){if(M==null)throw Error("An iterable object provided no iterator.");for(var he=null,Ge=null,De=I,Te=I=0,We=null,$t=null,ga=M.next();De!==null&&!ga.done;Te++,ga=M.next()){De.index>Te?(We=De,De=null):We=De.sibling;var Fn=T(w,De,ga.value,Q);if(Fn===null){De===null&&(De=We);break}$t=de(w,Fn,ga.value,$t),e&&De&&Fn.alternate===null&&t(w,De),I=n(Fn,I,Te),Ge===null?he=Fn:Ge.sibling=Fn,Ge=Fn,De=We}if(ga.done)return a(w,De),dt&&Sn(w,Te),he;if(De===null){for(;!ga.done;Te++,ga=M.next())De=E(w,ga.value,Q),De!==null&&($t=de(w,De,ga.value,$t),I=n(De,I,Te),Ge===null?he=De:Ge.sibling=De,Ge=De);return dt&&Sn(w,Te),he}for(De=o(De);!ga.done;Te++,ga=M.next())We=U(De,w,Te,ga.value,Q),We!==null&&($t=de(w,We,ga.value,$t),e&&We.alternate!==null&&De.delete(We.key===null?Te:We.key),I=n(We,I,Te),Ge===null?he=We:Ge.sibling=We,Ge=We);return e&&De.forEach(function(GM){return t(w,GM)}),dt&&Sn(w,Te),he}function pt(w,I,M,Q){if(typeof M==="object"&&M!==null&&M.type===Tu&&M.key===null&&(mf(M,null,w),M=M.props.children),typeof M==="object"&&M!==null){switch(M.$$typeof){case $l:var he=Ga(M._debugInfo);e:{for(var Ge=M.key;I!==null;){if(I.key===Ge){if(Ge=M.type,Ge===Tu){if(I.tag===7){a(w,I.sibling),Q=l(I,M.props.children),Q.return=w,Q._debugOwner=M._owner,Q._debugInfo=at,mf(M,Q,w),w=Q;break e}}else if(I.elementType===Ge||T0(I,M)||typeof Ge==="object"&&Ge!==null&&Ge.$$typeof===Ao&&or(Ge)===I.type){a(w,I.sibling),Q=l(I,M.props),Fi(Q,M),Q.return=w,Q._debugOwner=M._owner,Q._debugInfo=at,w=Q;break e}a(w,I);break}else t(w,I);I=I.sibling}M.type===Tu?(Q=us(M.props.children,w.mode,Q,M.key),Q.return=w,Q._debugOwner=w,Q._debugTask=w._debugTask,Q._debugInfo=at,mf(M,Q,w),w=Q):(Q=nf(M,w.mode,Q),Fi(Q,M),Q.return=w,Q._debugInfo=at,w=Q)}return w=s(w),at=he,w;case wu:e:{he=M;for(M=he.key;I!==null;){if(I.key===M)if(I.tag===4&&I.stateNode.containerInfo===he.containerInfo&&I.stateNode.implementation===he.implementation){a(w,I.sibling),Q=l(I,he.children||[]),Q.return=w,w=Q;break e}else{a(w,I);break}else t(w,I);I=I.sibling}Q=Jm(he,w.mode,Q),Q.return=w,w=Q}return s(w);case Ao:return he=Ga(M._debugInfo),M=or(M),w=pt(w,I,M,Q),at=he,w}if(Ra(M))return he=Ga(M._debugInfo),w=ye(w,I,M,Q),at=he,w;if(ee(M)){if(he=Ga(M._debugInfo),Ge=ee(M),typeof Ge!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var De=Ge.call(M);if(De===M){if(w.tag!==0||Object.prototype.toString.call(w.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(De)!=="[object Generator]")tC||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),tC=!0}else M.entries!==Ge||Ay||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ay=!0);return w=Ft(w,I,De,Q),at=he,w}if(typeof M.then==="function")return he=Ga(M._debugInfo),w=pt(w,I,hf(M),Q),at=he,w;if(M.$$typeof===Xl)return pt(w,I,df(w,M),Q);gf(w,M)}if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return he=""+M,I!==null&&I.tag===6?(a(w,I.sibling),Q=l(I,he),Q.return=w,w=Q):(a(w,I),Q=Km(he,w.mode,Q),Q.return=w,Q._debugOwner=w,Q._debugTask=w._debugTask,Q._debugInfo=at,w=Q),s(w);return typeof M==="function"&&yf(w,M),typeof M==="symbol"&&bf(w,M),a(w,I)}return function(w,I,M,Q){var he=at;at=null;try{Pd=0;var Ge=pt(w,I,M,Q);return Xu=null,Ge}catch($t){if($t===$u||$t===Ip)throw $t;var De=C(29,$t,null,w.mode);De.lanes=Q,De.return=w;var Te=De._debugInfo=at;if(De._debugOwner=w._debugOwner,De._debugTask=w._debugTask,Te!=null){for(var We=Te.length-1;0<=We;We--)if(typeof Te[We].stack==="string"){De._debugOwner=Te[We],De._debugTask=Te[We].debugTask;break}}return De}finally{at=he}}}function W0(e,t){var a=Ra(e);return e=!a&&typeof ee(e)==="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function ch(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fh(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 lr(e){return{lane:e,tag:rC,payload:null,callback:null,next:null}}function nr(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Ey===o&&!iC){var l=X(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
100
+ <%s>%s</%s>`,a,t,a))}function bf(e,t){var a=dh();a!==null?a.run(Z0.bind(null,e,t)):Z0(e,t)}function W0(e){function t(w,I){if(e){var M=w.deletions;M===null?(w.deletions=[I],w.flags|=16):M.push(I)}}function a(w,I){if(!e)return null;for(;I!==null;)t(w,I),I=I.sibling;return null}function o(w){for(var I=new Map;w!==null;)w.key!==null?I.set(w.key,w):I.set(w.index,w),w=w.sibling;return I}function l(w,I){return w=vn(w,I),w.index=0,w.sibling=null,w}function n(w,I,M){if(w.index=M,!e)return w.flags|=1048576,I;if(M=w.alternate,M!==null)return M=M.index,M<I?(w.flags|=67108866,I):M;return w.flags|=67108866,I}function s(w){return e&&w.alternate===null&&(w.flags|=67108866),w}function d(w,I,M,Q){if(I===null||I.tag!==6)return I=Km(M,w.mode,Q),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;return I=l(I,M),I.return=w,I._debugInfo=at,I}function m(w,I,M,Q){var he=M.type;if(he===Tu)return I=A(w,I,M.props.children,Q,M.key),mf(M,I,w),I;if(I!==null&&(I.elementType===he||I0(I,M)||typeof he==="object"&&he!==null&&he.$$typeof===Ao&&or(he)===I.type))return I=l(I,M.props),Fi(I,M),I.return=w,I._debugOwner=M._owner,I._debugInfo=at,I;return I=nf(M,w.mode,Q),Fi(I,M),I.return=w,I._debugInfo=at,I}function g(w,I,M,Q){if(I===null||I.tag!==4||I.stateNode.containerInfo!==M.containerInfo||I.stateNode.implementation!==M.implementation)return I=Jm(M,w.mode,Q),I.return=w,I._debugInfo=at,I;return I=l(I,M.children||[]),I.return=w,I._debugInfo=at,I}function A(w,I,M,Q,he){if(I===null||I.tag!==7)return I=us(M,w.mode,Q,he),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;return I=l(I,M),I.return=w,I._debugInfo=at,I}function E(w,I,M){if(typeof I==="string"&&I!==""||typeof I==="number"||typeof I==="bigint")return I=Km(""+I,w.mode,M),I.return=w,I._debugOwner=w,I._debugTask=w._debugTask,I._debugInfo=at,I;if(typeof I==="object"&&I!==null){switch(I.$$typeof){case $l:return M=nf(I,w.mode,M),Fi(M,I),M.return=w,w=Ga(I._debugInfo),M._debugInfo=at,at=w,M;case wu:return I=Jm(I,w.mode,M),I.return=w,I._debugInfo=at,I;case Ao:var Q=Ga(I._debugInfo);return I=or(I),w=E(w,I,M),at=Q,w}if(Ra(I)||ee(I))return M=us(I,w.mode,M,null),M.return=w,M._debugOwner=w,M._debugTask=w._debugTask,w=Ga(I._debugInfo),M._debugInfo=at,at=w,M;if(typeof I.then==="function")return Q=Ga(I._debugInfo),w=E(w,hf(I),M),at=Q,w;if(I.$$typeof===Xl)return E(w,df(w,I),M);gf(w,I)}return typeof I==="function"&&yf(w,I),typeof I==="symbol"&&bf(w,I),null}function T(w,I,M,Q){var he=I!==null?I.key:null;if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return he!==null?null:d(w,I,""+M,Q);if(typeof M==="object"&&M!==null){switch(M.$$typeof){case $l:return M.key===he?(he=Ga(M._debugInfo),w=m(w,I,M,Q),at=he,w):null;case wu:return M.key===he?g(w,I,M,Q):null;case Ao:return he=Ga(M._debugInfo),M=or(M),w=T(w,I,M,Q),at=he,w}if(Ra(M)||ee(M)){if(he!==null)return null;return he=Ga(M._debugInfo),w=A(w,I,M,Q,null),at=he,w}if(typeof M.then==="function")return he=Ga(M._debugInfo),w=T(w,I,hf(M),Q),at=he,w;if(M.$$typeof===Xl)return T(w,I,df(w,M),Q);gf(w,M)}return typeof M==="function"&&yf(w,M),typeof M==="symbol"&&bf(w,M),null}function U(w,I,M,Q,he){if(typeof Q==="string"&&Q!==""||typeof Q==="number"||typeof Q==="bigint")return w=w.get(M)||null,d(I,w,""+Q,he);if(typeof Q==="object"&&Q!==null){switch(Q.$$typeof){case $l:return M=w.get(Q.key===null?M:Q.key)||null,w=Ga(Q._debugInfo),I=m(I,M,Q,he),at=w,I;case wu:return w=w.get(Q.key===null?M:Q.key)||null,g(I,w,Q,he);case Ao:var Ge=Ga(Q._debugInfo);return Q=or(Q),I=U(w,I,M,Q,he),at=Ge,I}if(Ra(Q)||ee(Q))return M=w.get(M)||null,w=Ga(Q._debugInfo),I=A(I,M,Q,he,null),at=w,I;if(typeof Q.then==="function")return Ge=Ga(Q._debugInfo),I=U(w,I,M,hf(Q),he),at=Ge,I;if(Q.$$typeof===Xl)return U(w,I,M,df(I,Q),he);gf(I,Q)}return typeof Q==="function"&&yf(I,Q),typeof Q==="symbol"&&bf(I,Q),null}function de(w,I,M,Q){if(typeof M!=="object"||M===null)return Q;switch(M.$$typeof){case $l:case wu:h(w,I,M);var he=M.key;if(typeof he!=="string")break;if(Q===null){Q=new Set,Q.add(he);break}if(!Q.has(he)){Q.add(he);break}re(I,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",he)});break;case Ao:M=or(M),de(w,I,M,Q)}return Q}function ye(w,I,M,Q){for(var he=null,Ge=null,De=null,Te=I,We=I=0,$t=null;Te!==null&&We<M.length;We++){Te.index>We?($t=Te,Te=null):$t=Te.sibling;var ga=T(w,Te,M[We],Q);if(ga===null){Te===null&&(Te=$t);break}he=de(w,ga,M[We],he),e&&Te&&ga.alternate===null&&t(w,Te),I=n(ga,I,We),De===null?Ge=ga:De.sibling=ga,De=ga,Te=$t}if(We===M.length)return a(w,Te),dt&&Sn(w,We),Ge;if(Te===null){for(;We<M.length;We++)Te=E(w,M[We],Q),Te!==null&&(he=de(w,Te,M[We],he),I=n(Te,I,We),De===null?Ge=Te:De.sibling=Te,De=Te);return dt&&Sn(w,We),Ge}for(Te=o(Te);We<M.length;We++)$t=U(Te,w,We,M[We],Q),$t!==null&&(he=de(w,$t,M[We],he),e&&$t.alternate!==null&&Te.delete($t.key===null?We:$t.key),I=n($t,I,We),De===null?Ge=$t:De.sibling=$t,De=$t);return e&&Te.forEach(function(Fn){return t(w,Fn)}),dt&&Sn(w,We),Ge}function Ft(w,I,M,Q){if(M==null)throw Error("An iterable object provided no iterator.");for(var he=null,Ge=null,De=I,Te=I=0,We=null,$t=null,ga=M.next();De!==null&&!ga.done;Te++,ga=M.next()){De.index>Te?(We=De,De=null):We=De.sibling;var Fn=T(w,De,ga.value,Q);if(Fn===null){De===null&&(De=We);break}$t=de(w,Fn,ga.value,$t),e&&De&&Fn.alternate===null&&t(w,De),I=n(Fn,I,Te),Ge===null?he=Fn:Ge.sibling=Fn,Ge=Fn,De=We}if(ga.done)return a(w,De),dt&&Sn(w,Te),he;if(De===null){for(;!ga.done;Te++,ga=M.next())De=E(w,ga.value,Q),De!==null&&($t=de(w,De,ga.value,$t),I=n(De,I,Te),Ge===null?he=De:Ge.sibling=De,Ge=De);return dt&&Sn(w,Te),he}for(De=o(De);!ga.done;Te++,ga=M.next())We=U(De,w,Te,ga.value,Q),We!==null&&($t=de(w,We,ga.value,$t),e&&We.alternate!==null&&De.delete(We.key===null?Te:We.key),I=n(We,I,Te),Ge===null?he=We:Ge.sibling=We,Ge=We);return e&&De.forEach(function(VM){return t(w,VM)}),dt&&Sn(w,Te),he}function pt(w,I,M,Q){if(typeof M==="object"&&M!==null&&M.type===Tu&&M.key===null&&(mf(M,null,w),M=M.props.children),typeof M==="object"&&M!==null){switch(M.$$typeof){case $l:var he=Ga(M._debugInfo);e:{for(var Ge=M.key;I!==null;){if(I.key===Ge){if(Ge=M.type,Ge===Tu){if(I.tag===7){a(w,I.sibling),Q=l(I,M.props.children),Q.return=w,Q._debugOwner=M._owner,Q._debugInfo=at,mf(M,Q,w),w=Q;break e}}else if(I.elementType===Ge||I0(I,M)||typeof Ge==="object"&&Ge!==null&&Ge.$$typeof===Ao&&or(Ge)===I.type){a(w,I.sibling),Q=l(I,M.props),Fi(Q,M),Q.return=w,Q._debugOwner=M._owner,Q._debugInfo=at,w=Q;break e}a(w,I);break}else t(w,I);I=I.sibling}M.type===Tu?(Q=us(M.props.children,w.mode,Q,M.key),Q.return=w,Q._debugOwner=w,Q._debugTask=w._debugTask,Q._debugInfo=at,mf(M,Q,w),w=Q):(Q=nf(M,w.mode,Q),Fi(Q,M),Q.return=w,Q._debugInfo=at,w=Q)}return w=s(w),at=he,w;case wu:e:{he=M;for(M=he.key;I!==null;){if(I.key===M)if(I.tag===4&&I.stateNode.containerInfo===he.containerInfo&&I.stateNode.implementation===he.implementation){a(w,I.sibling),Q=l(I,he.children||[]),Q.return=w,w=Q;break e}else{a(w,I);break}else t(w,I);I=I.sibling}Q=Jm(he,w.mode,Q),Q.return=w,w=Q}return s(w);case Ao:return he=Ga(M._debugInfo),M=or(M),w=pt(w,I,M,Q),at=he,w}if(Ra(M))return he=Ga(M._debugInfo),w=ye(w,I,M,Q),at=he,w;if(ee(M)){if(he=Ga(M._debugInfo),Ge=ee(M),typeof Ge!=="function")throw Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");var De=Ge.call(M);if(De===M){if(w.tag!==0||Object.prototype.toString.call(w.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(De)!=="[object Generator]")aC||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),aC=!0}else M.entries!==Ge||Ay||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Ay=!0);return w=Ft(w,I,De,Q),at=he,w}if(typeof M.then==="function")return he=Ga(M._debugInfo),w=pt(w,I,hf(M),Q),at=he,w;if(M.$$typeof===Xl)return pt(w,I,df(w,M),Q);gf(w,M)}if(typeof M==="string"&&M!==""||typeof M==="number"||typeof M==="bigint")return he=""+M,I!==null&&I.tag===6?(a(w,I.sibling),Q=l(I,he),Q.return=w,w=Q):(a(w,I),Q=Km(he,w.mode,Q),Q.return=w,Q._debugOwner=w,Q._debugTask=w._debugTask,Q._debugInfo=at,w=Q),s(w);return typeof M==="function"&&yf(w,M),typeof M==="symbol"&&bf(w,M),a(w,I)}return function(w,I,M,Q){var he=at;at=null;try{Pd=0;var Ge=pt(w,I,M,Q);return Xu=null,Ge}catch($t){if($t===$u||$t===Ip)throw $t;var De=C(29,$t,null,w.mode);De.lanes=Q,De.return=w;var Te=De._debugInfo=at;if(De._debugOwner=w._debugOwner,De._debugTask=w._debugTask,Te!=null){for(var We=Te.length-1;0<=We;We--)if(typeof Te[We].stack==="string"){De._debugOwner=Te[We],De._debugTask=Te[We].debugTask;break}}return De}finally{at=he}}}function K0(e,t){var a=Ra(e);return e=!a&&typeof ee(e)==="function",a||e?(a=a?"array":"iterable",console.error("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",a,t,a),!1):!0}function ch(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fh(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 lr(e){return{lane:e,tag:sC,payload:null,callback:null,next:null}}function nr(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Ey===o&&!dC){var l=X(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
101
101
 
102
- Please update the following component: %s`,l),iC=!0}if((ht&Aa)!==Pa)return l=o.pending,l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,t=lf(e),w0(e,null,a),t;return of(e,o,t,a),lf(e)}function Gi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ts(e,a)}}function vf(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var l=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?l=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?l=n=t:n=n.next=t}else l=n=t;a={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Vi(){if(Oy){var e=Vu;if(e!==null)throw e}}function $i(e,t,a,o){Oy=!1;var l=e.updateQueue;Tr=!1,Ey=l.shared;var{firstBaseUpdate:n,lastBaseUpdate:s}=l,d=l.shared.pending;if(d!==null){l.shared.pending=null;var m=d,g=m.next;m.next=null,s===null?n=g:s.next=g,s=m;var A=e.alternate;A!==null&&(A=A.updateQueue,d=A.lastBaseUpdate,d!==s&&(d===null?A.firstBaseUpdate=g:d.next=g,A.lastBaseUpdate=m))}if(n!==null){var E=l.baseState;s=0,A=g=m=null,d=n;do{var T=d.lane&-536870913,U=T!==d.lane;if(U?(ot&T)===T:(o&T)===T){T!==0&&T===ws&&(Oy=!0),A!==null&&(A=A.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{T=e;var de=d,ye=t,Ft=a;switch(de.tag){case sC:if(de=de.payload,typeof de==="function"){Fu=!0;var pt=de.call(Ft,E,ye);if(T.mode&Ja){_t(!0);try{de.call(Ft,E,ye)}finally{_t(!1)}}Fu=!1,E=pt;break e}E=de;break e;case Dy:T.flags=T.flags&-65537|128;case rC:if(pt=de.payload,typeof pt==="function"){if(Fu=!0,de=pt.call(Ft,E,ye),T.mode&Ja){_t(!0);try{pt.call(Ft,E,ye)}finally{_t(!1)}}Fu=!1}else de=pt;if(de===null||de===void 0)break e;E=rt({},E,de);break e;case uC:Tr=!0}}T=d.callback,T!==null&&(e.flags|=64,U&&(e.flags|=8192),U=l.callbacks,U===null?l.callbacks=[T]:U.push(T))}else U={lane:T,tag:d.tag,payload:d.payload,callback:d.callback,next:null},A===null?(g=A=U,m=E):A=A.next=U,s|=T;if(d=d.next,d===null)if(d=l.shared.pending,d===null)break;else U=d,d=U.next,U.next=null,l.lastBaseUpdate=U,l.shared.pending=null}while(1);A===null&&(m=E),l.baseState=m,l.firstBaseUpdate=g,l.lastBaseUpdate=A,n===null&&(l.shared.lanes=0),Mr|=s,e.lanes=s,e.memoizedState=E}Ey=null}function K0(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function UT(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)K0(a[e],t)}function J0(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)K0(a[e],t)}function ev(e,t){var a=an;Ce(Mp,a,e),Ce(ju,t,e),an=a|t.baseLanes}function ph(e){Ce(Mp,an,e),Ce(ju,ju.current,e)}function mh(e){an=Mp.current,Ne(ju,e),Ne(Mp,e)}function rr(e){var t=e.alternate;Ce(ha,ha.current&Yu,e),Ce(qo,e,e),Wo===null&&(t===null||ju.current!==null?Wo=e:t.memoizedState!==null&&(Wo=e))}function hh(e){Ce(ha,ha.current,e),Ce(qo,e,e),Wo===null&&(Wo=e)}function tv(e){e.tag===22?(Ce(ha,ha.current,e),Ce(qo,e,e),Wo===null&&(Wo=e)):sr(e)}function sr(e){Ce(ha,ha.current,e),Ce(qo,qo.current,e)}function Io(e){Ne(qo,e),Wo===e&&(Wo=null),Ne(ha,e)}function Sf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Rg(a)||Mg(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function nt(){var e=H;Jo===null?Jo=[e]:Jo.push(e)}function le(){var e=H;if(Jo!==null&&(Un++,Jo[Un]!==e)){var t=X(Fe);if(!dC.has(t)&&(dC.add(t),Jo!==null)){for(var a="",o=0;o<=Un;o++){var l=Jo[o],n=o===Un?e:l;for(l=o+1+". "+l;30>l.length;)l+=" ";l+=n+`
102
+ Please update the following component: %s`,l),dC=!0}if((ht&Aa)!==Pa)return l=o.pending,l===null?t.next=t:(t.next=l.next,l.next=t),o.pending=t,t=lf(e),T0(e,null,a),t;return of(e,o,t,a),lf(e)}function Gi(e,t,a){if(t=t.updateQueue,t!==null&&(t=t.shared,(a&4194048)!==0)){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ts(e,a)}}function vf(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var l=null,n=null;if(a=a.firstBaseUpdate,a!==null){do{var s={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};n===null?l=n=s:n=n.next=s,a=a.next}while(a!==null);n===null?l=n=t:n=n.next=t}else l=n=t;a={baseState:o.baseState,firstBaseUpdate:l,lastBaseUpdate:n,shared:o.shared,callbacks:o.callbacks},e.updateQueue=a;return}e=a.lastBaseUpdate,e===null?a.firstBaseUpdate=t:e.next=t,a.lastBaseUpdate=t}function Vi(){if(Oy){var e=Vu;if(e!==null)throw e}}function $i(e,t,a,o){Oy=!1;var l=e.updateQueue;Tr=!1,Ey=l.shared;var{firstBaseUpdate:n,lastBaseUpdate:s}=l,d=l.shared.pending;if(d!==null){l.shared.pending=null;var m=d,g=m.next;m.next=null,s===null?n=g:s.next=g,s=m;var A=e.alternate;A!==null&&(A=A.updateQueue,d=A.lastBaseUpdate,d!==s&&(d===null?A.firstBaseUpdate=g:d.next=g,A.lastBaseUpdate=m))}if(n!==null){var E=l.baseState;s=0,A=g=m=null,d=n;do{var T=d.lane&-536870913,U=T!==d.lane;if(U?(ot&T)===T:(o&T)===T){T!==0&&T===ws&&(Oy=!0),A!==null&&(A=A.next={lane:0,tag:d.tag,payload:d.payload,callback:null,next:null});e:{T=e;var de=d,ye=t,Ft=a;switch(de.tag){case uC:if(de=de.payload,typeof de==="function"){Fu=!0;var pt=de.call(Ft,E,ye);if(T.mode&Ja){_t(!0);try{de.call(Ft,E,ye)}finally{_t(!1)}}Fu=!1,E=pt;break e}E=de;break e;case Dy:T.flags=T.flags&-65537|128;case sC:if(pt=de.payload,typeof pt==="function"){if(Fu=!0,de=pt.call(Ft,E,ye),T.mode&Ja){_t(!0);try{pt.call(Ft,E,ye)}finally{_t(!1)}}Fu=!1}else de=pt;if(de===null||de===void 0)break e;E=rt({},E,de);break e;case iC:Tr=!0}}T=d.callback,T!==null&&(e.flags|=64,U&&(e.flags|=8192),U=l.callbacks,U===null?l.callbacks=[T]:U.push(T))}else U={lane:T,tag:d.tag,payload:d.payload,callback:d.callback,next:null},A===null?(g=A=U,m=E):A=A.next=U,s|=T;if(d=d.next,d===null)if(d=l.shared.pending,d===null)break;else U=d,d=U.next,U.next=null,l.lastBaseUpdate=U,l.shared.pending=null}while(1);A===null&&(m=E),l.baseState=m,l.firstBaseUpdate=g,l.lastBaseUpdate=A,n===null&&(l.shared.lanes=0),Mr|=s,e.lanes=s,e.memoizedState=E}Ey=null}function J0(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function PT(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)J0(a[e],t)}function ev(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)J0(a[e],t)}function tv(e,t){var a=an;Ce(Mp,a,e),Ce(ju,t,e),an=a|t.baseLanes}function ph(e){Ce(Mp,an,e),Ce(ju,ju.current,e)}function mh(e){an=Mp.current,Ne(ju,e),Ne(Mp,e)}function rr(e){var t=e.alternate;Ce(ha,ha.current&Yu,e),Ce(qo,e,e),Wo===null&&(t===null||ju.current!==null?Wo=e:t.memoizedState!==null&&(Wo=e))}function hh(e){Ce(ha,ha.current,e),Ce(qo,e,e),Wo===null&&(Wo=e)}function av(e){e.tag===22?(Ce(ha,ha.current,e),Ce(qo,e,e),Wo===null&&(Wo=e)):sr(e)}function sr(e){Ce(ha,ha.current,e),Ce(qo,qo.current,e)}function Io(e){Ne(qo,e),Wo===e&&(Wo=null),Ne(ha,e)}function Sf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Rg(a)||Mg(a)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if((t.flags&128)!==0)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}function nt(){var e=H;Jo===null?Jo=[e]:Jo.push(e)}function le(){var e=H;if(Jo!==null&&(Un++,Jo[Un]!==e)){var t=X(Fe);if(!cC.has(t)&&(cC.add(t),Jo!==null)){for(var a="",o=0;o<=Un;o++){var l=Jo[o],n=o===Un?e:l;for(l=o+1+". "+l;30>l.length;)l+=" ";l+=n+`
103
103
  `,a+=l}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
104
104
 
105
105
  Previous render Next render
106
106
  ------------------------------------------------------
107
107
  %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
108
- `,t,a)}}}function fu(e){e===void 0||e===null||Ra(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",H,typeof e)}function xf(){var e=X(Fe);fC.has(e)||(fC.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function da(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
108
+ `,t,a)}}}function fu(e){e===void 0||e===null||Ra(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",H,typeof e)}function xf(){var e=X(Fe);pC.has(e)||(pC.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function da(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
109
109
  1. You might have mismatching versions of React and the renderer (such as React DOM)
110
110
  2. You might be breaking the Rules of Hooks
111
111
  3. You might have more than one copy of React in the same app
112
112
  See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function gh(e,t){if(Hd)return!1;if(t===null)return console.error("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",H),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
113
113
 
114
114
  Previous: %s
115
- Incoming: %s`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!no(e[a],t[a]))return!1;return!0}function yh(e,t,a,o,l,n){if(Bn=n,Fe=t,Jo=e!==null?e._debugHookTypes:null,Un=-1,Hd=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")n=X(Fe),qy.has(n)||(qy.add(n),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",n===null?"An unknown Component":"<"+n+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e!==null&&e.memoizedState!==null?Ny:Jo!==null?pC:By,As=n=(t.mode&Ja)!==ze;var s=Iy(a,o,l);if(As=!1,Zu&&(s=bh(t,a,o,l)),n){_t(!0);try{s=bh(t,a,o,l)}finally{_t(!1)}}return av(e,t),s}function av(e,t){t._debugHookTypes=Jo,t.dependencies===null?Nn!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Nn}):t.dependencies._debugThenableState=Nn,G.H=Fd;var a=Ut!==null&&Ut.next!==null;if(Bn=0,Jo=H=xa=Ut=Fe=null,Un=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Dp=!1,_d=0,Nn=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||La||(e=e.dependencies,e!==null&&uf(e)&&(La=!0)),Ud?(Ud=!1,e=!0):e=!1,e&&(t=X(t)||"Unknown",cC.has(t)||qy.has(t)||(cC.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function bh(e,t,a,o){Fe=e;var l=0;do{if(Zu&&(Nn=null),_d=0,Zu=!1,l>=xM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l+=1,Hd=!1,xa=Ut=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}Un=-1,G.H=mC,n=Iy(t,a,o)}while(Zu);return n}function PT(){var e=G.H,t=e.useState()[0];return t=typeof t.then==="function"?Xi(t):t,e=e.useState()[0],(Ut!==null?Ut.memoizedState:null)!==e&&(Fe.flags|=1024),t}function vh(){var e=Ep!==0;return Ep=0,e}function Sh(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&fl)!==ze?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function xh(e){if(Dp){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Dp=!1}Bn=0,Jo=xa=Ut=Fe=null,Un=-1,H=null,Zu=!1,_d=Ep=0,Nn=null}function to(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xa===null?Fe.memoizedState=xa=e:xa=xa.next=e,xa}function At(){if(Ut===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ut.next;var t=xa===null?Fe.memoizedState:xa.next;if(t!==null)xa=t,Ut=e;else{if(e===null){if(Fe.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}Ut=e,e={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},xa===null?Fe.memoizedState=xa=e:xa=xa.next=e}return xa}function Lf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xi(e){var t=_d;return _d+=1,Nn===null&&(Nn=F0()),e=V0(Nn,e,t),t=Fe,(xa===null?t.memoizedState:xa.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?Ny:By),e}function ur(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Xi(e);if(e.$$typeof===Xl)return Qt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function ps(e){var t=null,a=Fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Fe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Lf(),Fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Hd)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=JI;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function ul(e,t){return typeof t==="function"?t(e):t}function Lh(e,t,a){var o=to();if(a!==void 0){var l=a(t);if(As){_t(!0);try{a(t)}finally{_t(!1)}}}else l=t;return o.memoizedState=o.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},o.queue=e,e=e.dispatch=GT.bind(null,Fe,e),[o.memoizedState,e]}function pu(e){var t=At();return Ch(t,Ut,e)}function Ch(e,t,a){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var l=e.baseQueue,n=o.pending;if(n!==null){if(l!==null){var s=l.next;l.next=n.next,n.next=s}t.baseQueue!==l&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=l=n,o.pending=null}if(n=e.baseState,l===null)e.memoizedState=n;else{t=l.next;var d=s=null,m=null,g=t,A=!1;do{var E=g.lane&-536870913;if(E!==g.lane?(ot&E)===E:(Bn&E)===E){var T=g.revertLane;if(T===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),E===ws&&(A=!0);else if((Bn&T)===T){g=g.next,T===ws&&(A=!0);continue}else E={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},m===null?(d=m=E,s=n):m=m.next=E,Fe.lanes|=T,Mr|=T;E=g.action,As&&a(n,E),n=g.hasEagerState?g.eagerState:a(n,E)}else T={lane:E,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},m===null?(d=m=T,s=n):m=m.next=T,Fe.lanes|=E,Mr|=E;g=g.next}while(g!==null&&g!==t);if(m===null?s=n:m.next=d,!no(n,e.memoizedState)&&(La=!0,A&&(a=Vu,a!==null)))throw a;e.memoizedState=n,e.baseState=s,e.baseQueue=m,o.lastRenderedState=n}return l===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ji(e){var t=At(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var{dispatch:o,pending:l}=a,n=t.memoizedState;if(l!==null){a.pending=null;var s=l=l.next;do n=e(n,s.action),s=s.next;while(s!==l);no(n,t.memoizedState)||(La=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function kh(e,t,a){var o=Fe,l=to();if(dt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var n=a();Qu||n===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Qu=!0)}else{if(n=t(),Qu||(a=t(),no(n,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Qu=!0)),Pt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ot&127)!==0||ov(o,t,n)}return l.memoizedState=n,a={value:n,getSnapshot:t},l.queue=a,Tf(nv.bind(null,o,a,e),[e]),o.flags|=2048,hu(Ko|uo,{destroy:void 0},lv.bind(null,o,a,n,t),null),n}function Cf(e,t,a){var o=Fe,l=At(),n=dt;if(n){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Qu){var s=t();no(a,s)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Qu=!0)}if(s=!no((Ut||l).memoizedState,a))l.memoizedState=a,La=!0;l=l.queue;var d=nv.bind(null,o,l,e);if(po(2048,uo,d,[e]),l.getSnapshot!==t||s||xa!==null&&xa.memoizedState.tag&Ko){if(o.flags|=2048,hu(Ko|uo,{destroy:void 0},lv.bind(null,o,l,a,t),null),Pt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");n||(Bn&127)!==0||ov(o,t,a)}return a}function ov(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Fe.updateQueue,t===null?(t=Lf(),Fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function lv(e,t,a,o){t.value=a,t.getSnapshot=o,rv(t)&&sv(e)}function nv(e,t,a){return a(function(){rv(t)&&(El(2,"updateSyncExternalStore()",e),sv(e))})}function rv(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!no(e,a)}catch(o){return!0}}function sv(e){var t=Wa(e,2);t!==null&&oa(t,e,2)}function wh(e){var t=to();if(typeof e==="function"){var a=e;if(e=a(),As){_t(!0);try{a()}finally{_t(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:e},t}function Th(e){e=wh(e);var t=e.queue,a=Tv.bind(null,Fe,t);return t.dispatch=a,[e.memoizedState,a]}function Ih(e){var t=to();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Hh.bind(null,Fe,!0,a),a.dispatch=t,[e,t]}function uv(e,t){var a=At();return iv(a,Ut,e,t)}function iv(e,t,a,o){return e.baseState=a,Ch(e,Ut,typeof o==="function"?o:ul)}function dv(e,t){var a=At();if(Ut!==null)return iv(a,Ut,e,t);return a.baseState=e,[e,a.queue.dispatch]}function zT(e,t,a,o,l){if(Ef(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var n={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){n.listeners.push(s)}};G.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,cv(t,n)):(n.next=a.next,t.pending=a.next=n)}}function cv(e,t){var{action:a,payload:o}=t,l=e.state;if(t.isTransition){var n=G.T,s={};s._updatedFibers=new Set,G.T=s;try{var d=a(l,o),m=G.S;m!==null&&m(s,d),fv(e,t,d)}catch(g){Rh(e,t,g)}finally{n!==null&&s.types!==null&&(n.types!==null&&n.types!==s.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),n.types=s.types),G.T=n,n===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{s=a(l,o),fv(e,t,s)}catch(g){Rh(e,t,g)}}function fv(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(G.asyncTransitions++,a.then(Df,Df),a.then(function(o){pv(e,t,o)},function(o){return Rh(e,t,o)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):pv(e,t,a)}function pv(e,t,a){t.status="fulfilled",t.value=a,mv(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,cv(e,a)))}function Rh(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,mv(t),t=t.next;while(t!==o)}e.action=null}function mv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function hv(e,t){return t}function mu(e,t){if(dt){var a=Pt.formState;if(a!==null){e:{var o=Fe;if(dt){if(Vt){t:{var l=Vt;for(var n=Qo;l.nodeType!==8;){if(!n){l=null;break t}if(l=Mo(l.nextSibling),l===null){l=null;break t}}n=l.data,l=n===nb||n===JC?l:null}if(l){Vt=Mo(l.nextSibling),o=l.data===nb;break e}}tr(o)}o=!1}o&&(t=a[0])}}return a=to(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:hv,lastRenderedState:t},a.queue=o,a=Tv.bind(null,Fe,o),o.dispatch=a,o=wh(!1),n=Hh.bind(null,Fe,!1,o.queue),o=to(),l={state:t,dispatch:null,action:e,pending:null},o.queue=l,a=zT.bind(null,Fe,l,n,a),l.dispatch=a,o.memoizedState=e,[t,a,!1]}function kf(e){var t=At();return gv(t,Ut,e)}function gv(e,t,a){if(t=Ch(e,t,hv)[0],e=pu(ul)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Xi(t)}catch(s){if(s===$u)throw Ip;throw s}else o=t;t=At();var l=t.queue,n=l.dispatch;return a!==t.memoizedState&&(Fe.flags|=2048,hu(Ko|uo,{destroy:void 0},_T.bind(null,l,a),null)),[o,n,e]}function _T(e,t){e.action=t}function wf(e){var t=At(),a=Ut;if(a!==null)return gv(t,a,e);At(),t=t.memoizedState,a=At();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function hu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Fe.updateQueue,t===null&&(t=Lf(),Fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function Mh(e){var t=to();return e={current:e},t.memoizedState=e}function ms(e,t,a,o){var l=to();Fe.flags|=e,l.memoizedState=hu(Ko|t,{destroy:void 0},a,o===void 0?null:o)}function po(e,t,a,o){var l=At();o=o===void 0?null:o;var n=l.memoizedState.inst;Ut!==null&&o!==null&&gh(o,Ut.memoizedState.deps)?l.memoizedState=hu(t,n,a,o):(Fe.flags|=e,l.memoizedState=hu(Ko|t,n,a,o))}function Tf(e,t){(Fe.mode&fl)!==ze?ms(276826112,uo,e,t):ms(8390656,uo,e,t)}function HT(e){Fe.flags|=4;var t=Fe.updateQueue;if(t===null)t=Lf(),Fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ah(e){var t=to(),a={impl:e};return t.memoizedState=a,function(){if((ht&Aa)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function If(e){var t=At().memoizedState;return HT({ref:t,nextImpl:e}),function(){if((ht&Aa)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Dh(e,t){var a=4194308;return(Fe.mode&fl)!==ze&&(a|=134217728),ms(a,Bo,e,t)}function yv(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Eh(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null;var o=4194308;(Fe.mode&fl)!==ze&&(o|=134217728),ms(o,Bo,yv.bind(null,t,e),a)}function Rf(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null,po(4,Bo,yv.bind(null,t,e),a)}function Oh(e,t){return to().memoizedState=[e,t===void 0?null:t],e}function Mf(e,t){var a=At();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&gh(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function qh(e,t){var a=to();t=t===void 0?null:t;var o=e();if(As){_t(!0);try{e()}finally{_t(!1)}}return a.memoizedState=[o,t],o}function Af(e,t){var a=At();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&gh(t,o[1]))return o[0];if(o=e(),As){_t(!0);try{e()}finally{_t(!1)}}return a.memoizedState=[o,t],o}function Bh(e,t){var a=to();return Nh(a,e,t)}function bv(e,t){var a=At();return Sv(a,Ut.memoizedState,e,t)}function vv(e,t){var a=At();return Ut===null?Nh(a,e,t):Sv(a,Ut.memoizedState,e,t)}function Nh(e,t,a){if(a===void 0||(Bn&1073741824)!==0&&(ot&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=xS(),Fe.lanes|=e,Mr|=e,a}function Sv(e,t,a,o){if(no(a,t))return a;if(ju.current!==null)return e=Nh(e,a,o),no(e,t)||(La=!0),e;if((Bn&42)===0||(Bn&1073741824)!==0&&(ot&261930)===0)return La=!0,e.memoizedState=a;return e=xS(),Fe.lanes|=e,Mr|=e,t}function Df(){G.asyncTransitions--}function xv(e,t,a,o,l){var n=kt.p;kt.p=n!==0&&n<cl?n:cl;var s=G.T,d={};d._updatedFibers=new Set,G.T=d,Hh(e,!1,t,a);try{var m=l(),g=G.S;if(g!==null&&g(d,m),m!==null&&typeof m==="object"&&typeof m.then==="function"){G.asyncTransitions++,m.then(Df,Df);var A=NT(m,o);Yi(e,t,A,Ro(e))}else Yi(e,t,o,Ro(e))}catch(E){Yi(e,t,{then:function(){},status:"rejected",reason:E},Ro(e))}finally{kt.p=n,s!==null&&d.types!==null&&(s.types!==null&&s.types!==d.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),s.types=d.types),G.T=s,s===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Uh(e,t,a,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var l=Lv(e).queue;qT(e),xv(e,l,t,Hs,a===null?k:function(){return Cv(e),a(o)})}function Lv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Hs,baseState:Hs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:Hs},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Cv(e){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Lv(e);t.next===null&&(t=e.alternate.memoizedState),Yi(e,t.next.queue,{},Ro(e))}function Ph(){var e=wh(!1);return e=xv.bind(null,Fe,e.queue,!0,!1),to().memoizedState=e,[!1,e]}function kv(){var e=pu(ul)[0],t=At().memoizedState;return[typeof e==="boolean"?e:Xi(e),t]}function wv(){var e=ji(ul)[0],t=At().memoizedState;return[typeof e==="boolean"?e:Xi(e),t]}function hs(){return Qt(oc)}function zh(){var e=to(),t=Pt.identifierPrefix;if(dt){var a=An,o=Mn;a=(o&~(1<<32-ao(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ep++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=SM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function _h(){return to().memoizedState=FT.bind(null,Fe)}function FT(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Ro(a),l=lr(o),n=nr(a,l,o);n!==null&&(El(o,"refresh()",e),oa(n,a,o),Gi(n,a,o)),e=rh(),t!==null&&t!==void 0&&n!==null&&console.error("The seed argument is not enabled outside experimental channels."),l.payload={cache:e};return}a=a.return}}function GT(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Ro(e);var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Ef(e)?Iv(t,l):(l=Ym(e,t,l,o),l!==null&&(El(o,"dispatch()",e),oa(l,e,o),Rv(l,t,o)))}function Tv(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Ro(e),Yi(e,t,a,o)&&El(o,"setState()",e)}function Yi(e,t,a,o){var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ef(e))Iv(t,l);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null)){var s=G.H;G.H=ml;try{var d=t.lastRenderedState,m=n(d,a);if(l.hasEagerState=!0,l.eagerState=m,no(m,d))return of(e,t,l,0),Pt===null&&af(),!1}catch(g){}finally{G.H=s}}if(a=Ym(e,t,l,o),a!==null)return oa(a,e,o),Rv(a,t,o),!0}return!1}function Hh(e,t,a,o){if(G.T===null&&ws===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),o={lane:2,revertLane:yg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ef(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Ym(e,a,o,2),t!==null&&(El(2,"setOptimistic()",e),oa(t,e,2))}function Ef(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function Iv(e,t){Zu=Dp=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Rv(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ts(e,a)}}function Fh(e){if(e!==null&&typeof e!=="function"){var t=String(e);wC.has(t)||(wC.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Gh(e,t,a,o){var l=e.memoizedState,n=a(o,l);if(e.mode&Ja){_t(!0);try{n=a(o,l)}finally{_t(!1)}}n===void 0&&(t=Z(t)||"Component",xC.has(t)||(xC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),l=n===null||n===void 0?l:rt({},l,n),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}function Mv(e,t,a,o,l,n,s){var d=e.stateNode;if(typeof d.shouldComponentUpdate==="function"){if(a=d.shouldComponentUpdate(o,n,s),e.mode&Ja){_t(!0);try{a=d.shouldComponentUpdate(o,n,s)}finally{_t(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Z(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Ni(a,o)||!Ni(l,n):!0}function Av(e,t,a,o){var l=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==l&&(e=X(e)||"Component",gC.has(e)||(gC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Uy.enqueueReplaceState(t,t.state,null))}function gs(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=rt({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function Dv(e){my(e),console.warn(`%s
115
+ Incoming: %s`,H,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!no(e[a],t[a]))return!1;return!0}function yh(e,t,a,o,l,n){if(Bn=n,Fe=t,Jo=e!==null?e._debugHookTypes:null,Un=-1,Hd=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")n=X(Fe),qy.has(n)||(qy.add(n),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",n===null?"An unknown Component":"<"+n+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,G.H=e!==null&&e.memoizedState!==null?Ny:Jo!==null?mC:By,As=n=(t.mode&Ja)!==ze;var s=Iy(a,o,l);if(As=!1,Zu&&(s=bh(t,a,o,l)),n){_t(!0);try{s=bh(t,a,o,l)}finally{_t(!1)}}return ov(e,t),s}function ov(e,t){t._debugHookTypes=Jo,t.dependencies===null?Nn!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Nn}):t.dependencies._debugThenableState=Nn,G.H=Fd;var a=Ut!==null&&Ut.next!==null;if(Bn=0,Jo=H=xa=Ut=Fe=null,Un=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Dp=!1,_d=0,Nn=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||La||(e=e.dependencies,e!==null&&uf(e)&&(La=!0)),Ud?(Ud=!1,e=!0):e=!1,e&&(t=X(t)||"Unknown",fC.has(t)||qy.has(t)||(fC.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function bh(e,t,a,o){Fe=e;var l=0;do{if(Zu&&(Nn=null),_d=0,Zu=!1,l>=LM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l+=1,Hd=!1,xa=Ut=null,e.updateQueue!=null){var n=e.updateQueue;n.lastEffect=null,n.events=null,n.stores=null,n.memoCache!=null&&(n.memoCache.index=0)}Un=-1,G.H=hC,n=Iy(t,a,o)}while(Zu);return n}function zT(){var e=G.H,t=e.useState()[0];return t=typeof t.then==="function"?Xi(t):t,e=e.useState()[0],(Ut!==null?Ut.memoizedState:null)!==e&&(Fe.flags|=1024),t}function vh(){var e=Ep!==0;return Ep=0,e}function Sh(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&fl)!==ze?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function xh(e){if(Dp){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Dp=!1}Bn=0,Jo=xa=Ut=Fe=null,Un=-1,H=null,Zu=!1,_d=Ep=0,Nn=null}function to(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return xa===null?Fe.memoizedState=xa=e:xa=xa.next=e,xa}function At(){if(Ut===null){var e=Fe.alternate;e=e!==null?e.memoizedState:null}else e=Ut.next;var t=xa===null?Fe.memoizedState:xa.next;if(t!==null)xa=t,Ut=e;else{if(e===null){if(Fe.alternate===null)throw Error("Update hook called on initial render. This is likely a bug in React. Please file an issue.");throw Error("Rendered more hooks than during the previous render.")}Ut=e,e={memoizedState:Ut.memoizedState,baseState:Ut.baseState,baseQueue:Ut.baseQueue,queue:Ut.queue,next:null},xa===null?Fe.memoizedState=xa=e:xa=xa.next=e}return xa}function Lf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xi(e){var t=_d;return _d+=1,Nn===null&&(Nn=G0()),e=$0(Nn,e,t),t=Fe,(xa===null?t.memoizedState:xa.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?Ny:By),e}function ur(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Xi(e);if(e.$$typeof===Xl)return Qt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function ps(e){var t=null,a=Fe.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Fe.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(l){return l.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=Lf(),Fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Hd)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=eR;else a.length!==e&&console.error("Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.",a.length,e);return t.index++,a}function ul(e,t){return typeof t==="function"?t(e):t}function Lh(e,t,a){var o=to();if(a!==void 0){var l=a(t);if(As){_t(!0);try{a(t)}finally{_t(!1)}}}else l=t;return o.memoizedState=o.baseState=l,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:l},o.queue=e,e=e.dispatch=VT.bind(null,Fe,e),[o.memoizedState,e]}function pu(e){var t=At();return Ch(t,Ut,e)}function Ch(e,t,a){var o=e.queue;if(o===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");o.lastRenderedReducer=a;var l=e.baseQueue,n=o.pending;if(n!==null){if(l!==null){var s=l.next;l.next=n.next,n.next=s}t.baseQueue!==l&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=l=n,o.pending=null}if(n=e.baseState,l===null)e.memoizedState=n;else{t=l.next;var d=s=null,m=null,g=t,A=!1;do{var E=g.lane&-536870913;if(E!==g.lane?(ot&E)===E:(Bn&E)===E){var T=g.revertLane;if(T===0)m!==null&&(m=m.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),E===ws&&(A=!0);else if((Bn&T)===T){g=g.next,T===ws&&(A=!0);continue}else E={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},m===null?(d=m=E,s=n):m=m.next=E,Fe.lanes|=T,Mr|=T;E=g.action,As&&a(n,E),n=g.hasEagerState?g.eagerState:a(n,E)}else T={lane:E,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},m===null?(d=m=T,s=n):m=m.next=T,Fe.lanes|=E,Mr|=E;g=g.next}while(g!==null&&g!==t);if(m===null?s=n:m.next=d,!no(n,e.memoizedState)&&(La=!0,A&&(a=Vu,a!==null)))throw a;e.memoizedState=n,e.baseState=s,e.baseQueue=m,o.lastRenderedState=n}return l===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function ji(e){var t=At(),a=t.queue;if(a===null)throw Error("Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)");a.lastRenderedReducer=e;var{dispatch:o,pending:l}=a,n=t.memoizedState;if(l!==null){a.pending=null;var s=l=l.next;do n=e(n,s.action),s=s.next;while(s!==l);no(n,t.memoizedState)||(La=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function kh(e,t,a){var o=Fe,l=to();if(dt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var n=a();Qu||n===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Qu=!0)}else{if(n=t(),Qu||(a=t(),no(n,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Qu=!0)),Pt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ot&127)!==0||lv(o,t,n)}return l.memoizedState=n,a={value:n,getSnapshot:t},l.queue=a,Tf(rv.bind(null,o,a,e),[e]),o.flags|=2048,hu(Ko|uo,{destroy:void 0},nv.bind(null,o,a,n,t),null),n}function Cf(e,t,a){var o=Fe,l=At(),n=dt;if(n){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");a=a()}else if(a=t(),!Qu){var s=t();no(a,s)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Qu=!0)}if(s=!no((Ut||l).memoizedState,a))l.memoizedState=a,La=!0;l=l.queue;var d=rv.bind(null,o,l,e);if(po(2048,uo,d,[e]),l.getSnapshot!==t||s||xa!==null&&xa.memoizedState.tag&Ko){if(o.flags|=2048,hu(Ko|uo,{destroy:void 0},nv.bind(null,o,l,a,t),null),Pt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");n||(Bn&127)!==0||lv(o,t,a)}return a}function lv(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Fe.updateQueue,t===null?(t=Lf(),Fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function nv(e,t,a,o){t.value=a,t.getSnapshot=o,sv(t)&&uv(e)}function rv(e,t,a){return a(function(){sv(t)&&(El(2,"updateSyncExternalStore()",e),uv(e))})}function sv(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!no(e,a)}catch(o){return!0}}function uv(e){var t=Wa(e,2);t!==null&&oa(t,e,2)}function wh(e){var t=to();if(typeof e==="function"){var a=e;if(e=a(),As){_t(!0);try{a()}finally{_t(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:e},t}function Th(e){e=wh(e);var t=e.queue,a=Iv.bind(null,Fe,t);return t.dispatch=a,[e.memoizedState,a]}function Ih(e){var t=to();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Hh.bind(null,Fe,!0,a),a.dispatch=t,[e,t]}function iv(e,t){var a=At();return dv(a,Ut,e,t)}function dv(e,t,a,o){return e.baseState=a,Ch(e,Ut,typeof o==="function"?o:ul)}function cv(e,t){var a=At();if(Ut!==null)return dv(a,Ut,e,t);return a.baseState=e,[e,a.queue.dispatch]}function _T(e,t,a,o,l){if(Ef(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var n={payload:l,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){n.listeners.push(s)}};G.T!==null?a(!0):n.isTransition=!1,o(n),a=t.pending,a===null?(n.next=t.pending=n,fv(t,n)):(n.next=a.next,t.pending=a.next=n)}}function fv(e,t){var{action:a,payload:o}=t,l=e.state;if(t.isTransition){var n=G.T,s={};s._updatedFibers=new Set,G.T=s;try{var d=a(l,o),m=G.S;m!==null&&m(s,d),pv(e,t,d)}catch(g){Rh(e,t,g)}finally{n!==null&&s.types!==null&&(n.types!==null&&n.types!==s.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),n.types=s.types),G.T=n,n===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}else try{s=a(l,o),pv(e,t,s)}catch(g){Rh(e,t,g)}}function pv(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(G.asyncTransitions++,a.then(Df,Df),a.then(function(o){mv(e,t,o)},function(o){return Rh(e,t,o)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):mv(e,t,a)}function mv(e,t,a){t.status="fulfilled",t.value=a,hv(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,fv(e,a)))}function Rh(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,hv(t),t=t.next;while(t!==o)}e.action=null}function hv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function gv(e,t){return t}function mu(e,t){if(dt){var a=Pt.formState;if(a!==null){e:{var o=Fe;if(dt){if(Vt){t:{var l=Vt;for(var n=Qo;l.nodeType!==8;){if(!n){l=null;break t}if(l=Mo(l.nextSibling),l===null){l=null;break t}}n=l.data,l=n===nb||n===e1?l:null}if(l){Vt=Mo(l.nextSibling),o=l.data===nb;break e}}tr(o)}o=!1}o&&(t=a[0])}}return a=to(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:gv,lastRenderedState:t},a.queue=o,a=Iv.bind(null,Fe,o),o.dispatch=a,o=wh(!1),n=Hh.bind(null,Fe,!1,o.queue),o=to(),l={state:t,dispatch:null,action:e,pending:null},o.queue=l,a=_T.bind(null,Fe,l,n,a),l.dispatch=a,o.memoizedState=e,[t,a,!1]}function kf(e){var t=At();return yv(t,Ut,e)}function yv(e,t,a){if(t=Ch(e,t,gv)[0],e=pu(ul)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Xi(t)}catch(s){if(s===$u)throw Ip;throw s}else o=t;t=At();var l=t.queue,n=l.dispatch;return a!==t.memoizedState&&(Fe.flags|=2048,hu(Ko|uo,{destroy:void 0},HT.bind(null,l,a),null)),[o,n,e]}function HT(e,t){e.action=t}function wf(e){var t=At(),a=Ut;if(a!==null)return yv(t,a,e);At(),t=t.memoizedState,a=At();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function hu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Fe.updateQueue,t===null&&(t=Lf(),Fe.updateQueue=t),a=t.lastEffect,a===null?t.lastEffect=e.next=e:(o=a.next,a.next=e,e.next=o,t.lastEffect=e),e}function Mh(e){var t=to();return e={current:e},t.memoizedState=e}function ms(e,t,a,o){var l=to();Fe.flags|=e,l.memoizedState=hu(Ko|t,{destroy:void 0},a,o===void 0?null:o)}function po(e,t,a,o){var l=At();o=o===void 0?null:o;var n=l.memoizedState.inst;Ut!==null&&o!==null&&gh(o,Ut.memoizedState.deps)?l.memoizedState=hu(t,n,a,o):(Fe.flags|=e,l.memoizedState=hu(Ko|t,n,a,o))}function Tf(e,t){(Fe.mode&fl)!==ze?ms(276826112,uo,e,t):ms(8390656,uo,e,t)}function FT(e){Fe.flags|=4;var t=Fe.updateQueue;if(t===null)t=Lf(),Fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Ah(e){var t=to(),a={impl:e};return t.memoizedState=a,function(){if((ht&Aa)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function If(e){var t=At().memoizedState;return FT({ref:t,nextImpl:e}),function(){if((ht&Aa)!==Pa)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Dh(e,t){var a=4194308;return(Fe.mode&fl)!==ze&&(a|=134217728),ms(a,Bo,e,t)}function bv(e,t){if(typeof t==="function"){e=e();var a=t(e);return function(){typeof a==="function"?a():t(null)}}if(t!==null&&t!==void 0)return t.hasOwnProperty("current")||console.error("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(t).join(", ")+"}"),e=e(),t.current=e,function(){t.current=null}}function Eh(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null;var o=4194308;(Fe.mode&fl)!==ze&&(o|=134217728),ms(o,Bo,bv.bind(null,t,e),a)}function Rf(e,t,a){typeof t!=="function"&&console.error("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",t!==null?typeof t:"null"),a=a!==null&&a!==void 0?a.concat([e]):null,po(4,Bo,bv.bind(null,t,e),a)}function Oh(e,t){return to().memoizedState=[e,t===void 0?null:t],e}function Mf(e,t){var a=At();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&gh(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function qh(e,t){var a=to();t=t===void 0?null:t;var o=e();if(As){_t(!0);try{e()}finally{_t(!1)}}return a.memoizedState=[o,t],o}function Af(e,t){var a=At();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&gh(t,o[1]))return o[0];if(o=e(),As){_t(!0);try{e()}finally{_t(!1)}}return a.memoizedState=[o,t],o}function Bh(e,t){var a=to();return Nh(a,e,t)}function vv(e,t){var a=At();return xv(a,Ut.memoizedState,e,t)}function Sv(e,t){var a=At();return Ut===null?Nh(a,e,t):xv(a,Ut.memoizedState,e,t)}function Nh(e,t,a){if(a===void 0||(Bn&1073741824)!==0&&(ot&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=LS(),Fe.lanes|=e,Mr|=e,a}function xv(e,t,a,o){if(no(a,t))return a;if(ju.current!==null)return e=Nh(e,a,o),no(e,t)||(La=!0),e;if((Bn&42)===0||(Bn&1073741824)!==0&&(ot&261930)===0)return La=!0,e.memoizedState=a;return e=LS(),Fe.lanes|=e,Mr|=e,t}function Df(){G.asyncTransitions--}function Lv(e,t,a,o,l){var n=kt.p;kt.p=n!==0&&n<cl?n:cl;var s=G.T,d={};d._updatedFibers=new Set,G.T=d,Hh(e,!1,t,a);try{var m=l(),g=G.S;if(g!==null&&g(d,m),m!==null&&typeof m==="object"&&typeof m.then==="function"){G.asyncTransitions++,m.then(Df,Df);var A=UT(m,o);Yi(e,t,A,Ro(e))}else Yi(e,t,o,Ro(e))}catch(E){Yi(e,t,{then:function(){},status:"rejected",reason:E},Ro(e))}finally{kt.p=n,s!==null&&d.types!==null&&(s.types!==null&&s.types!==d.types&&console.error("We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React."),s.types=d.types),G.T=s,s===null&&d._updatedFibers&&(e=d._updatedFibers.size,d._updatedFibers.clear(),10<e&&console.warn("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."))}}function Uh(e,t,a,o){if(e.tag!==5)throw Error("Expected the form instance to be a HostComponent. This is a bug in React.");var l=Cv(e).queue;BT(e),Lv(e,l,t,Hs,a===null?k:function(){return kv(e),a(o)})}function Cv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Hs,baseState:Hs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:Hs},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:ul,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function kv(e){G.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Cv(e);t.next===null&&(t=e.alternate.memoizedState),Yi(e,t.next.queue,{},Ro(e))}function Ph(){var e=wh(!1);return e=Lv.bind(null,Fe,e.queue,!0,!1),to().memoizedState=e,[!1,e]}function wv(){var e=pu(ul)[0],t=At().memoizedState;return[typeof e==="boolean"?e:Xi(e),t]}function Tv(){var e=ji(ul)[0],t=At().memoizedState;return[typeof e==="boolean"?e:Xi(e),t]}function hs(){return Qt(oc)}function zh(){var e=to(),t=Pt.identifierPrefix;if(dt){var a=An,o=Mn;a=(o&~(1<<32-ao(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Ep++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=xM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function _h(){return to().memoizedState=GT.bind(null,Fe)}function GT(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Ro(a),l=lr(o),n=nr(a,l,o);n!==null&&(El(o,"refresh()",e),oa(n,a,o),Gi(n,a,o)),e=rh(),t!==null&&t!==void 0&&n!==null&&console.error("The seed argument is not enabled outside experimental channels."),l.payload={cache:e};return}a=a.return}}function VT(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Ro(e);var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Ef(e)?Rv(t,l):(l=Ym(e,t,l,o),l!==null&&(El(o,"dispatch()",e),oa(l,e,o),Mv(l,t,o)))}function Iv(e,t,a){var o=arguments;typeof o[3]==="function"&&console.error("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect()."),o=Ro(e),Yi(e,t,a,o)&&El(o,"setState()",e)}function Yi(e,t,a,o){var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Ef(e))Rv(t,l);else{var n=e.alternate;if(e.lanes===0&&(n===null||n.lanes===0)&&(n=t.lastRenderedReducer,n!==null)){var s=G.H;G.H=ml;try{var d=t.lastRenderedState,m=n(d,a);if(l.hasEagerState=!0,l.eagerState=m,no(m,d))return of(e,t,l,0),Pt===null&&af(),!1}catch(g){}finally{G.H=s}}if(a=Ym(e,t,l,o),a!==null)return oa(a,e,o),Mv(a,t,o),!0}return!1}function Hh(e,t,a,o){if(G.T===null&&ws===0&&console.error("An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition."),o={lane:2,revertLane:yg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Ef(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Ym(e,a,o,2),t!==null&&(El(2,"setOptimistic()",e),oa(t,e,2))}function Ef(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function Rv(e,t){Zu=Dp=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Mv(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,ts(e,a)}}function Fh(e){if(e!==null&&typeof e!=="function"){var t=String(e);TC.has(t)||(TC.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Gh(e,t,a,o){var l=e.memoizedState,n=a(o,l);if(e.mode&Ja){_t(!0);try{n=a(o,l)}finally{_t(!1)}}n===void 0&&(t=Z(t)||"Component",LC.has(t)||(LC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),l=n===null||n===void 0?l:rt({},l,n),e.memoizedState=l,e.lanes===0&&(e.updateQueue.baseState=l)}function Av(e,t,a,o,l,n,s){var d=e.stateNode;if(typeof d.shouldComponentUpdate==="function"){if(a=d.shouldComponentUpdate(o,n,s),e.mode&Ja){_t(!0);try{a=d.shouldComponentUpdate(o,n,s)}finally{_t(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",Z(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Ni(a,o)||!Ni(l,n):!0}function Dv(e,t,a,o){var l=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==l&&(e=X(e)||"Component",yC.has(e)||(yC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Uy.enqueueReplaceState(t,t.state,null))}function gs(e,t){var a=t;if("ref"in t){a={};for(var o in t)o!=="ref"&&(a[o]=t[o])}if(e=e.defaultProps){a===t&&(a=rt({},a));for(var l in e)a[l]===void 0&&(a[l]=e[l])}return a}function Ev(e){my(e),console.warn(`%s
116
116
 
117
117
  %s
118
118
  `,Wu?"An error occurred in the <"+Wu+"> component.":"An error occurred in one of your React components.",`Consider adding an error boundary to your tree to customize error handling behavior.
119
- Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Ev(e){var t=Wu?"The above error occurred in the <"+Wu+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Py||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var o=e.environmentName;e=[`%o
119
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Ov(e){var t=Wu?"The above error occurred in the <"+Wu+"> component.":"The above error occurred in one of your React components.",a="React will try to recreate this component tree from scratch using the error boundary you provided, "+((Py||"Anonymous")+".");if(typeof e==="object"&&e!==null&&typeof e.environmentName==="string"){var o=e.environmentName;e=[`%o
120
120
 
121
121
  %s
122
122
 
123
123
  %s
124
- `,e,t,a].slice(0),typeof e[0]==="string"?e.splice(0,1,s1+" "+e[0],u1,om+o+om,i1):e.splice(0,0,s1,u1,om+o+om,i1),e.unshift(console),o=HM.apply(console.error,e),o()}else console.error(`%o
124
+ `,e,t,a].slice(0),typeof e[0]==="string"?e.splice(0,1,u1+" "+e[0],i1,om+o+om,d1):e.splice(0,0,u1,i1,om+o+om,d1),e.unshift(console),o=FM.apply(console.error,e),o()}else console.error(`%o
125
125
 
126
126
  %s
127
127
 
128
128
  %s
129
- `,e,t,a)}function Ov(e){my(e)}function Of(e,t){try{Wu=t.source?X(t.source):null,Py=null;var a=t.value;if(G.actQueue!==null)G.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(l){setTimeout(function(){throw l})}}function qv(e,t,a){try{Wu=a.source?X(a.source):null,Py=X(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Vh(e,t,a){return a=lr(a),a.tag=Dy,a.payload={element:null},a.callback=function(){re(t.source,Of,e,t)},a}function $h(e){return e=lr(e),e.tag=Dy,e}function Xh(e,t,a,o){var l=a.type.getDerivedStateFromError;if(typeof l==="function"){var n=o.value;e.payload=function(){return l(n)},e.callback=function(){I0(a),re(o.source,qv,t,a,o)}}var s=a.stateNode;s!==null&&typeof s.componentDidCatch==="function"&&(e.callback=function(){I0(a),re(o.source,qv,t,a,o),typeof l!=="function"&&(Dr===null?Dr=new Set([this]):Dr.add(this)),gM(this,o),typeof l==="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",X(a)||"Unknown")})}function VT(e,t,a,o,l){if(a.flags|=32768,Ql&&ad(e,l),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&cu(t,a,l,!0),dt&&(Kl=!0),a=qo.current,a!==null){switch(a.tag){case 31:case 13:return Wo===null?Ff():a.alternate===null&&ea===zn&&(ea=Bp),a.flags&=-257,a.flags|=65536,a.lanes=l,o===Rp?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),pg(e,o,l)),!1;case 22:return a.flags|=65536,o===Rp?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),pg(e,o,l)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return pg(e,o,l),Ff(),!1}if(dt)return Kl=!0,t=qo.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,o!==Sy&&Pi(ko(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:o}),a))):(o!==Sy&&Pi(ko(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:o}),a)),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,o=ko(o,a),l=Vh(e.stateNode,o,l),vf(e,l),ea!==Ir&&(ea=Ds)),!1;var n=ko(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:o}),a);if(Yd===null?Yd=[n]:Yd.push(n),ea!==Ir&&(ea=Ds),t===null)return!0;o=ko(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=Vh(a.stateNode,o,e),vf(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||n!==null&&typeof n.componentDidCatch==="function"&&(Dr===null||!Dr.has(n))))return a.flags|=65536,l&=-l,a.lanes|=l,l=$h(l),Xh(l,e,a,o),vf(a,l),!1}a=a.return}while(a!==null);return!1}function Va(e,t,a,o){t.child=e===null?nC(t,null,a,o):Ms(t,e.child,a,o)}function Bv(e,t,a,o,l){a=a.render;var n=t.ref;if("ref"in o){var s={};for(var d in o)d!=="ref"&&(s[d]=o[d])}else s=o;if(cs(t),o=yh(e,t,a,s,n,l),d=vh(),e!==null&&!La)return Sh(e,t,l),Cn(e,t,l);return dt&&d&&eh(t),t.flags|=1,Va(e,t,o,l),t.child}function Nv(e,t,a,o,l){if(e===null){var n=a.type;if(typeof n==="function"&&!Zm(n)&&n.defaultProps===void 0&&a.compare===null)return a=ss(n),t.tag=15,t.type=a,Yh(t,n),Uv(e,t,a,o,l);return e=Wm(a.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e}if(n=e.child,!eg(e,l)){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:Ni,a(s,o)&&e.ref===t.ref)return Cn(e,t,l)}return t.flags|=1,e=vn(n,o),e.ref=t.ref,e.return=t,t.child=e}function Uv(e,t,a,o,l){if(e!==null){var n=e.memoizedProps;if(Ni(n,o)&&e.ref===t.ref&&t.type===e.type)if(La=!1,t.pendingProps=o=n,eg(e,l))(e.flags&131072)!==0&&(La=!0);else return t.lanes=e.lanes,Cn(e,t,l)}return jh(e,t,a,o,l)}function Pv(e,t,a,o){var l=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Cd,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){o=t.child=e.child;for(l=0;o!==null;)l=l|o.lanes|o.childLanes,o=o.sibling;o=l&~n}else o=0,t.child=null;return zv(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pf(t,n!==null?n.cachePool:null),n!==null?ev(t,n):ph(t),tv(t);else return o=t.lanes=536870912,zv(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(pf(t,n.cachePool),ev(t,n),sr(t),t.memoizedState=null):(e!==null&&pf(t,null),ph(t),sr(t));return Va(e,t,l,a),t.child}function Qi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Cd,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function zv(e,t,a,o,l){var n=ih();return n=n===null?null:{parent:va._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&pf(t,null),ph(t),tv(t),e!==null&&cu(e,t,o,!0),t.childLanes=l,null}function qf(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
129
+ `,e,t,a)}function qv(e){my(e)}function Of(e,t){try{Wu=t.source?X(t.source):null,Py=null;var a=t.value;if(G.actQueue!==null)G.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(l){setTimeout(function(){throw l})}}function Bv(e,t,a){try{Wu=a.source?X(a.source):null,Py=X(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(l){setTimeout(function(){throw l})}}function Vh(e,t,a){return a=lr(a),a.tag=Dy,a.payload={element:null},a.callback=function(){re(t.source,Of,e,t)},a}function $h(e){return e=lr(e),e.tag=Dy,e}function Xh(e,t,a,o){var l=a.type.getDerivedStateFromError;if(typeof l==="function"){var n=o.value;e.payload=function(){return l(n)},e.callback=function(){R0(a),re(o.source,Bv,t,a,o)}}var s=a.stateNode;s!==null&&typeof s.componentDidCatch==="function"&&(e.callback=function(){R0(a),re(o.source,Bv,t,a,o),typeof l!=="function"&&(Dr===null?Dr=new Set([this]):Dr.add(this)),yM(this,o),typeof l==="function"||(a.lanes&2)===0&&console.error("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",X(a)||"Unknown")})}function $T(e,t,a,o,l){if(a.flags|=32768,Ql&&ad(e,l),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&cu(t,a,l,!0),dt&&(Kl=!0),a=qo.current,a!==null){switch(a.tag){case 31:case 13:return Wo===null?Ff():a.alternate===null&&ea===zn&&(ea=Bp),a.flags&=-257,a.flags|=65536,a.lanes=l,o===Rp?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),pg(e,o,l)),!1;case 22:return a.flags|=65536,o===Rp?a.flags|=16384:(t=a.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([o])},a.updateQueue=t):(a=t.retryQueue,a===null?t.retryQueue=new Set([o]):a.add(o)),pg(e,o,l)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return pg(e,o,l),Ff(),!1}if(dt)return Kl=!0,t=qo.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=l,o!==Sy&&Pi(ko(Error("There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.",{cause:o}),a))):(o!==Sy&&Pi(ko(Error("There was an error while hydrating but React was able to recover by instead client rendering the entire root.",{cause:o}),a)),e=e.current.alternate,e.flags|=65536,l&=-l,e.lanes|=l,o=ko(o,a),l=Vh(e.stateNode,o,l),vf(e,l),ea!==Ir&&(ea=Ds)),!1;var n=ko(Error("There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.",{cause:o}),a);if(Yd===null?Yd=[n]:Yd.push(n),ea!==Ir&&(ea=Ds),t===null)return!0;o=ko(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=l&-l,a.lanes|=e,e=Vh(a.stateNode,o,e),vf(a,e),!1;case 1:if(t=a.type,n=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||n!==null&&typeof n.componentDidCatch==="function"&&(Dr===null||!Dr.has(n))))return a.flags|=65536,l&=-l,a.lanes|=l,l=$h(l),Xh(l,e,a,o),vf(a,l),!1}a=a.return}while(a!==null);return!1}function Va(e,t,a,o){t.child=e===null?rC(t,null,a,o):Ms(t,e.child,a,o)}function Nv(e,t,a,o,l){a=a.render;var n=t.ref;if("ref"in o){var s={};for(var d in o)d!=="ref"&&(s[d]=o[d])}else s=o;if(cs(t),o=yh(e,t,a,s,n,l),d=vh(),e!==null&&!La)return Sh(e,t,l),Cn(e,t,l);return dt&&d&&eh(t),t.flags|=1,Va(e,t,o,l),t.child}function Uv(e,t,a,o,l){if(e===null){var n=a.type;if(typeof n==="function"&&!Zm(n)&&n.defaultProps===void 0&&a.compare===null)return a=ss(n),t.tag=15,t.type=a,Yh(t,n),Pv(e,t,a,o,l);return e=Wm(a.type,null,o,t,t.mode,l),e.ref=t.ref,e.return=t,t.child=e}if(n=e.child,!eg(e,l)){var s=n.memoizedProps;if(a=a.compare,a=a!==null?a:Ni,a(s,o)&&e.ref===t.ref)return Cn(e,t,l)}return t.flags|=1,e=vn(n,o),e.ref=t.ref,e.return=t,t.child=e}function Pv(e,t,a,o,l){if(e!==null){var n=e.memoizedProps;if(Ni(n,o)&&e.ref===t.ref&&t.type===e.type)if(La=!1,t.pendingProps=o=n,eg(e,l))(e.flags&131072)!==0&&(La=!0);else return t.lanes=e.lanes,Cn(e,t,l)}return jh(e,t,a,o,l)}function zv(e,t,a,o){var l=o.children,n=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:Cd,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(n=n!==null?n.baseLanes|a:a,e!==null){o=t.child=e.child;for(l=0;o!==null;)l=l|o.lanes|o.childLanes,o=o.sibling;o=l&~n}else o=0,t.child=null;return _v(e,t,n,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&pf(t,n!==null?n.cachePool:null),n!==null?tv(t,n):ph(t),av(t);else return o=t.lanes=536870912,_v(e,t,n!==null?n.baseLanes|a:a,a,o)}else n!==null?(pf(t,n.cachePool),tv(t,n),sr(t),t.memoizedState=null):(e!==null&&pf(t,null),ph(t),sr(t));return Va(e,t,l,a),t.child}function Qi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:Cd,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function _v(e,t,a,o,l){var n=ih();return n=n===null?null:{parent:va._currentValue,pool:n},t.memoizedState={baseLanes:a,cachePool:n},e!==null&&pf(t,null),ph(t),av(t),e!==null&&cu(e,t,o,!0),t.childLanes=l,null}function qf(e,t){var a=t.hidden;return a!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
130
130
  - <Activity %s>
131
- + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Nf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function _v(e,t,a){return Ms(t,e.child,null,a),e=qf(t,t.pendingProps),e.flags|=2,Io(t),t.memoizedState=null,e}function $T(e,t,a){var o=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(dt){if(o.mode==="hidden")return e=qf(t,o),t.lanes=536870912,Qi(null,e);if(hh(t),(e=Vt)?(a=cx(e,Qo),a=a!==null&&a.data===Us?a:null,a!==null&&(o={dehydrated:a,treeContext:E0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=A0(a),o.return=t,t.child=o,ja=t,Vt=null)):a=null,a===null)throw rf(t,e),tr(t);return t.lanes=536870912,null}return qf(t,o)}var n=e.memoizedState;if(n!==null){var s=n.dehydrated;if(hh(t),l)if(t.flags&256)t.flags&=-257,t=_v(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(q0(),(a&536870912)!==0&&Hf(t),La||cu(e,t,a,!1),l=(a&e.childLanes)!==0,La||l){if(o=Pt,o!==null&&(s=as(o,a),s!==0&&s!==n.retryLane))throw n.retryLane=s,Wa(e,s),oa(o,e,s),zy;Ff(),t=_v(e,t,a)}else e=n.treeContext,Vt=Mo(s.nextSibling),ja=t,dt=!0,Sr=null,Kl=!1,Oo=null,Qo=!1,e!==null&&O0(t,e),t=qf(t,o),t.flags|=4096;return t}return n=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&Hf(t),e=vn(n,o),e.ref=t.ref,t.child=e,e.return=t,e}function Bf(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!=="function"&&typeof a!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(e===null||e.ref!==a)t.flags|=4194816}}function jh(e,t,a,o,l){if(a.prototype&&typeof a.prototype.render==="function"){var n=Z(a)||"Unknown";TC[n]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",n,n),TC[n]=!0)}if(t.mode&Ja&&pl.recordLegacyContextWarning(t,null),e===null&&(Yh(t,t.type),a.contextTypes&&(n=Z(a)||"Unknown",RC[n]||(RC[n]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",n)))),cs(t),a=yh(e,t,a,o,void 0,l),o=vh(),e!==null&&!La)return Sh(e,t,l),Cn(e,t,l);return dt&&o&&eh(t),t.flags|=1,Va(e,t,a,l),t.child}function Hv(e,t,a,o,l,n){if(cs(t),Un=-1,Hd=e!==null&&e.type!==t.type,t.updateQueue=null,a=bh(t,o,a,l),av(e,t),o=vh(),e!==null&&!La)return Sh(e,t,n),Cn(e,t,n);return dt&&o&&eh(t),t.flags|=1,Va(e,t,a,n),t.child}function Fv(e,t,a,o,l){switch(p(t)){case!1:var n=t.stateNode,s=new t.type(t.memoizedProps,n.context).state;n.updater.enqueueSetState(n,s,null);break;case!0:t.flags|=128,t.flags|=65536,n=Error("Simulated error coming from DevTools");var d=l&-l;if(t.lanes|=d,s=Pt,s===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d=$h(d),Xh(d,s,t,ko(n,t)),vf(t,d)}if(cs(t),t.stateNode===null){if(s=vr,n=a.contextType,"contextType"in a&&n!==null&&(n===void 0||n.$$typeof!==Xl)&&!kC.has(a)&&(kC.add(a),d=n===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof n!=="object"?" However, it is set to a "+typeof n+".":n.$$typeof===_g?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(n).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Z(a)||"Component",d)),typeof n==="object"&&n!==null&&(s=Qt(n)),n=new a(o,s),t.mode&Ja){_t(!0);try{n=new a(o,s)}finally{_t(!1)}}if(s=t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Uy,t.stateNode=n,n._reactInternals=t,n._reactInternalInstance=hC,typeof a.getDerivedStateFromProps==="function"&&s===null&&(s=Z(a)||"Component",yC.has(s)||(yC.add(s),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",s,n.state===null?"null":"undefined",s))),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"){var m=d=s=null;if(typeof n.componentWillMount==="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0?s="componentWillMount":typeof n.UNSAFE_componentWillMount==="function"&&(s="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps==="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0?d="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps==="function"&&(d="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate==="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0?m="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate==="function"&&(m="UNSAFE_componentWillUpdate"),s!==null||d!==null||m!==null){n=Z(a)||"Component";var g=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";vC.has(n)||(vC.add(n),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
131
+ + <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Nf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Hv(e,t,a){return Ms(t,e.child,null,a),e=qf(t,t.pendingProps),e.flags|=2,Io(t),t.memoizedState=null,e}function XT(e,t,a){var o=t.pendingProps,l=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(dt){if(o.mode==="hidden")return e=qf(t,o),t.lanes=536870912,Qi(null,e);if(hh(t),(e=Vt)?(a=fx(e,Qo),a=a!==null&&a.data===Us?a:null,a!==null&&(o={dehydrated:a,treeContext:O0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=D0(a),o.return=t,t.child=o,ja=t,Vt=null)):a=null,a===null)throw rf(t,e),tr(t);return t.lanes=536870912,null}return qf(t,o)}var n=e.memoizedState;if(n!==null){var s=n.dehydrated;if(hh(t),l)if(t.flags&256)t.flags&=-257,t=Hv(e,t,a);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error("Client rendering an Activity suspended it again. This is a bug in React.");else if(B0(),(a&536870912)!==0&&Hf(t),La||cu(e,t,a,!1),l=(a&e.childLanes)!==0,La||l){if(o=Pt,o!==null&&(s=as(o,a),s!==0&&s!==n.retryLane))throw n.retryLane=s,Wa(e,s),oa(o,e,s),zy;Ff(),t=Hv(e,t,a)}else e=n.treeContext,Vt=Mo(s.nextSibling),ja=t,dt=!0,Sr=null,Kl=!1,Oo=null,Qo=!1,e!==null&&q0(t,e),t=qf(t,o),t.flags|=4096;return t}return n=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&Hf(t),e=vn(n,o),e.ref=t.ref,t.child=e,e.return=t,e}function Bf(e,t){var a=t.ref;if(a===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof a!=="function"&&typeof a!=="object")throw Error("Expected ref to be a function, an object returned by React.createRef(), or undefined/null.");if(e===null||e.ref!==a)t.flags|=4194816}}function jh(e,t,a,o,l){if(a.prototype&&typeof a.prototype.render==="function"){var n=Z(a)||"Unknown";IC[n]||(console.error("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",n,n),IC[n]=!0)}if(t.mode&Ja&&pl.recordLegacyContextWarning(t,null),e===null&&(Yh(t,t.type),a.contextTypes&&(n=Z(a)||"Unknown",MC[n]||(MC[n]=!0,console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)",n)))),cs(t),a=yh(e,t,a,o,void 0,l),o=vh(),e!==null&&!La)return Sh(e,t,l),Cn(e,t,l);return dt&&o&&eh(t),t.flags|=1,Va(e,t,a,l),t.child}function Fv(e,t,a,o,l,n){if(cs(t),Un=-1,Hd=e!==null&&e.type!==t.type,t.updateQueue=null,a=bh(t,o,a,l),ov(e,t),o=vh(),e!==null&&!La)return Sh(e,t,n),Cn(e,t,n);return dt&&o&&eh(t),t.flags|=1,Va(e,t,a,n),t.child}function Gv(e,t,a,o,l){switch(p(t)){case!1:var n=t.stateNode,s=new t.type(t.memoizedProps,n.context).state;n.updater.enqueueSetState(n,s,null);break;case!0:t.flags|=128,t.flags|=65536,n=Error("Simulated error coming from DevTools");var d=l&-l;if(t.lanes|=d,s=Pt,s===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");d=$h(d),Xh(d,s,t,ko(n,t)),vf(t,d)}if(cs(t),t.stateNode===null){if(s=vr,n=a.contextType,"contextType"in a&&n!==null&&(n===void 0||n.$$typeof!==Xl)&&!wC.has(a)&&(wC.add(a),d=n===void 0?" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof n!=="object"?" However, it is set to a "+typeof n+".":n.$$typeof===_g?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(n).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",Z(a)||"Component",d)),typeof n==="object"&&n!==null&&(s=Qt(n)),n=new a(o,s),t.mode&Ja){_t(!0);try{n=new a(o,s)}finally{_t(!1)}}if(s=t.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,n.updater=Uy,t.stateNode=n,n._reactInternals=t,n._reactInternalInstance=gC,typeof a.getDerivedStateFromProps==="function"&&s===null&&(s=Z(a)||"Component",bC.has(s)||(bC.add(s),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",s,n.state===null?"null":"undefined",s))),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"){var m=d=s=null;if(typeof n.componentWillMount==="function"&&n.componentWillMount.__suppressDeprecationWarning!==!0?s="componentWillMount":typeof n.UNSAFE_componentWillMount==="function"&&(s="UNSAFE_componentWillMount"),typeof n.componentWillReceiveProps==="function"&&n.componentWillReceiveProps.__suppressDeprecationWarning!==!0?d="componentWillReceiveProps":typeof n.UNSAFE_componentWillReceiveProps==="function"&&(d="UNSAFE_componentWillReceiveProps"),typeof n.componentWillUpdate==="function"&&n.componentWillUpdate.__suppressDeprecationWarning!==!0?m="componentWillUpdate":typeof n.UNSAFE_componentWillUpdate==="function"&&(m="UNSAFE_componentWillUpdate"),s!==null||d!==null||m!==null){n=Z(a)||"Component";var g=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";SC.has(n)||(SC.add(n),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
132
132
 
133
133
  %s uses %s but also contains the following legacy lifecycles:%s%s%s
134
134
 
@@ -136,8 +136,8 @@ The above lifecycles should be removed. Learn more about this warning here:
136
136
  https://react.dev/link/unsafe-component-lifecycles`,n,g,s!==null?`
137
137
  `+s:"",d!==null?`
138
138
  `+d:"",m!==null?`
139
- `+m:""))}}n=t.stateNode,s=Z(a)||"Component",n.render||(a.prototype&&typeof a.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",s):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",s)),!n.getInitialState||n.getInitialState.isReactClassApproved||n.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",s),n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",s),n.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",s),a.childContextTypes&&!CC.has(a)&&(CC.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",s)),a.contextTypes&&!LC.has(a)&&(LC.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",s)),typeof n.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",s),a.prototype&&a.prototype.isPureReactComponent&&typeof n.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Z(a)||"A pure component"),typeof n.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",s),typeof n.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",s),typeof n.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",s),typeof n.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",s),d=n.props!==o,n.props!==void 0&&d&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",s),n.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",s,s),typeof n.getSnapshotBeforeUpdate!=="function"||typeof n.componentDidUpdate==="function"||bC.has(a)||(bC.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Z(a))),typeof n.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof n.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof a.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",s),(d=n.state)&&(typeof d!=="object"||Ra(d))&&console.error("%s.state: must be set to an object or null",s),typeof n.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",s),n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},ch(t),s=a.contextType,n.context=typeof s==="object"&&s!==null?Qt(s):vr,n.state===o&&(s=Z(a)||"Component",SC.has(s)||(SC.add(s),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",s))),t.mode&Ja&&pl.recordLegacyContextWarning(t,n),pl.recordUnsafeLifecycleWarnings(t,n),n.state=t.memoizedState,s=a.getDerivedStateFromProps,typeof s==="function"&&(Gh(t,a,s,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(s=n.state,typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount(),s!==n.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",X(t)||"Component"),Uy.enqueueReplaceState(n,n.state,null)),$i(t,o,n,l),Vi(),n.state=t.memoizedState),typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&fl)!==ze&&(t.flags|=134217728),n=!0}else if(e===null){n=t.stateNode;var A=t.memoizedProps;d=gs(a,A),n.props=d;var E=n.context;m=a.contextType,s=vr,typeof m==="object"&&m!==null&&(s=Qt(m)),g=a.getDerivedStateFromProps,m=typeof g==="function"||typeof n.getSnapshotBeforeUpdate==="function",A=t.pendingProps!==A,m||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(A||E!==s)&&Av(t,n,o,s),Tr=!1;var T=t.memoizedState;n.state=T,$i(t,o,n,l),Vi(),E=t.memoizedState,A||T!==E||Tr?(typeof g==="function"&&(Gh(t,a,g,o),E=t.memoizedState),(d=Tr||Mv(t,a,d,o,T,E,s))?(m||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&fl)!==ze&&(t.flags|=134217728)):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&fl)!==ze&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=E),n.props=o,n.state=E,n.context=s,n=d):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&fl)!==ze&&(t.flags|=134217728),n=!1)}else{n=t.stateNode,fh(e,t),s=t.memoizedProps,m=gs(a,s),n.props=m,g=t.pendingProps,T=n.context,E=a.contextType,d=vr,typeof E==="object"&&E!==null&&(d=Qt(E)),A=a.getDerivedStateFromProps,(E=typeof A==="function"||typeof n.getSnapshotBeforeUpdate==="function")||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(s!==g||T!==d)&&Av(t,n,o,d),Tr=!1,T=t.memoizedState,n.state=T,$i(t,o,n,l),Vi();var U=t.memoizedState;s!==g||T!==U||Tr||e!==null&&e.dependencies!==null&&uf(e.dependencies)?(typeof A==="function"&&(Gh(t,a,A,o),U=t.memoizedState),(m=Tr||Mv(t,a,m,o,T,U,d)||e!==null&&e.dependencies!==null&&uf(e.dependencies))?(E||typeof n.UNSAFE_componentWillUpdate!=="function"&&typeof n.componentWillUpdate!=="function"||(typeof n.componentWillUpdate==="function"&&n.componentWillUpdate(o,U,d),typeof n.UNSAFE_componentWillUpdate==="function"&&n.UNSAFE_componentWillUpdate(o,U,d)),typeof n.componentDidUpdate==="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=U),n.props=o,n.state=U,n.context=d,n=m):(typeof n.componentDidUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),n=!1)}if(d=n,Bf(e,t),s=(t.flags&128)!==0,d||s){if(d=t.stateNode,ma(t),s&&typeof a.getDerivedStateFromError!=="function")a=null,ro=-1;else if(a=$L(d),t.mode&Ja){_t(!0);try{$L(d)}finally{_t(!1)}}t.flags|=1,e!==null&&s?(t.child=Ms(t,e.child,null,l),t.child=Ms(t,null,a,l)):Va(e,t,a,l),t.memoizedState=d.state,e=t.child}else e=Cn(e,t,l);return l=t.stateNode,n&&l.props!==o&&(Ku||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",X(t)||"a component"),Ku=!0),e}function Gv(e,t,a,o){return ds(),t.flags|=256,Va(e,t,a,o),t.child}function Yh(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
- %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=Z(t)||"Unknown",MC[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),MC[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=Z(t)||"Unknown",IC[t]||(console.error("%s: Function components do not support contextType.",t),IC[t]=!0))}function Qh(e){return{baseLanes:e,cachePool:H0()}}function Zh(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=bo),e}function Vv(e,t,a){var o,l=t.pendingProps;v(t)&&(t.flags|=128);var n=!1,s=(t.flags&128)!==0;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(ha.current&zd)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(dt){if(n?rr(t):sr(t),(e=Vt)?(a=cx(e,Qo),a=a!==null&&a.data!==Us?a:null,a!==null&&(o={dehydrated:a,treeContext:E0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=A0(a),o.return=t,t.child=o,ja=t,Vt=null)):a=null,a===null)throw rf(t,e),tr(t);return Mg(a)?t.lanes=32:t.lanes=536870912,null}var d=l.children;if(l=l.fallback,n){sr(t);var m=t.mode;return d=Nf({mode:"hidden",children:d},m),l=us(l,m,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=Qh(a),l.childLanes=Zh(e,o,a),t.memoizedState=_y,Qi(null,l)}return rr(t),Wh(t,d)}var g=e.memoizedState;if(g!==null){var A=g.dehydrated;if(A!==null){if(s)t.flags&256?(rr(t),t.flags&=-257,t=Kh(e,t,a)):t.memoizedState!==null?(sr(t),t.child=e.child,t.flags|=128,t=null):(sr(t),d=l.fallback,m=t.mode,l=Nf({mode:"visible",children:l.children},m),d=us(d,m,a,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,Ms(t,e.child,null,a),l=t.child,l.memoizedState=Qh(a),l.childLanes=Zh(e,o,a),t.memoizedState=_y,t=Qi(null,l));else if(rr(t),q0(),(a&536870912)!==0&&Hf(t),Mg(A)){if(o=A.nextSibling&&A.nextSibling.dataset,o){d=o.dgst;var E=o.msg;m=o.stck;var T=o.cstck}n=E,o=d,l=m,A=T,d=n,m=A,d=d?Error(d):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),d.stack=l||"",d.digest=o,o=m===void 0?null:m,l={value:d,source:null,stack:o},typeof o==="string"&&vy.set(d,l),Pi(l),t=Kh(e,t,a)}else if(La||cu(e,t,a,!1),o=(a&e.childLanes)!==0,La||o){if(o=Pt,o!==null&&(l=as(o,a),l!==0&&l!==g.retryLane))throw g.retryLane=l,Wa(e,l),oa(o,e,l),zy;Rg(A)||Ff(),t=Kh(e,t,a)}else Rg(A)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Vt=Mo(A.nextSibling),ja=t,dt=!0,Sr=null,Kl=!1,Oo=null,Qo=!1,e!==null&&O0(t,e),t=Wh(t,l.children),t.flags|=4096);return t}}if(n)return sr(t),d=l.fallback,m=t.mode,T=e.child,A=T.sibling,l=vn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,A!==null?d=vn(A,d):(d=us(d,m,a,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,Qi(null,l),l=t.child,d=e.child.memoizedState,d===null?d=Qh(a):(m=d.cachePool,m!==null?(T=va._currentValue,m=m.parent!==T?{parent:T,pool:T}:m):m=H0(),d={baseLanes:d.baseLanes|a,cachePool:m}),l.memoizedState=d,l.childLanes=Zh(e,o,a),t.memoizedState=_y,Qi(e.child,l);return g!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Hf(t),rr(t),a=e.child,e=a.sibling,a=vn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a}function Wh(e,t){return t=Nf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nf(e,t){return e=C(22,e,null,t),e.lanes=0,e}function Kh(e,t,a){return Ms(t,e.child,null,a),e=Wh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function $v(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),lh(e.return,t,a)}function Jh(e,t,a,o,l,n){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:l,treeForkCount:n}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=a,s.tailMode=l,s.treeForkCount=n)}function Xv(e,t,a){var o=t.pendingProps,l=o.revealOrder,n=o.tail,s=o.children,d=ha.current;if((o=(d&zd)!==0)?(d=d&Yu|zd,t.flags|=128):d&=Yu,Ce(ha,d,t),d=l==null?"null":l,l!=="forwards"&&l!=="unstable_legacy-backwards"&&l!=="together"&&l!=="independent"&&!AC[d])if(AC[d]=!0,l==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(l==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof l==="string")switch(l.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',l,l.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',l,l.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l);if(d=n==null?"null":n,!qp[d])if(n==null){if(l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")qp[d]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else n!=="visible"&&n!=="collapsed"&&n!=="hidden"?(qp[d]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',n)):l!=="forwards"&&l!=="backwards"&&l!=="unstable_legacy-backwards"&&(qp[d]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n));e:if((l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")&&s!==void 0&&s!==null&&s!==!1)if(Ra(s)){for(d=0;d<s.length;d++)if(!W0(s[d],d))break e}else if(d=ee(s),typeof d==="function"){if(d=d.call(s))for(var m=d.next(),g=0;!m.done;m=d.next()){if(!W0(m.value,g))break e;g++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',l);if(Va(e,t,s,a),dt?(er(),s=kd):s=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&$v(e,a,t);else if(e.tag===19)$v(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"forwards":a=t.child;for(l=null;a!==null;)e=a.alternate,e!==null&&Sf(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Jh(t,!1,l,a,n,s);break;case"backwards":case"unstable_legacy-backwards":a=null,l=t.child;for(t.child=null;l!==null;){if(e=l.alternate,e!==null&&Sf(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Jh(t,!0,a,null,n,s);break;case"together":Jh(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Cn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ro=-1,Mr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(cu(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){e=t.child,a=vn(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=vn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function eg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&uf(e)?!0:!1}function XT(e,t,a){switch(t.tag){case 3:te(t,t.stateNode.containerInfo),ar(t,va,e.memoizedState.cache),ds();break;case 27:case 5:je(t);break;case 4:te(t,t.stateNode.containerInfo);break;case 10:ar(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,hh(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return rr(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return Vv(e,t,a);return rr(t),e=Cn(e,t,a),e!==null?e.sibling:null}rr(t);break;case 19:var l=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(cu(e,t,a,!1),o=(a&t.childLanes)!==0),l){if(o)return Xv(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ce(ha,ha.current,t),o)break;else return null;case 22:return t.lanes=0,Pv(e,t,a,t.pendingProps);case 24:ar(t,va,e.memoizedState.cache)}return Cn(e,t,a)}function tg(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Wm(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var l=o.child;if(l===null)throw Error("Expected parent to have a child.");for(;l.sibling!==t;)if(l=l.sibling,l===null)throw Error("Expected to find the previous sibling.");l.sibling=a}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)La=!0;else{if(!eg(e,a)&&(t.flags&128)===0)return La=!1,XT(e,t,a);La=(e.flags&131072)!==0?!0:!1}else{if(La=!1,o=dt)er(),o=(t.flags&1048576)!==0;o&&(o=t.index,er(),D0(t,kd,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=or(t.elementType),t.type=e,typeof e==="function")Zm(e)?(o=gs(e,o),t.tag=1,t.type=e=ss(e),t=Fv(null,t,e,o,a)):(t.tag=0,Yh(t,e),t.type=e=ss(e),t=jh(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(l=e.$$typeof,l===cd){t.tag=11,t.type=e=Qm(e),t=Bv(null,t,e,o,a);break e}else if(l===ap){t.tag=14,t=Nv(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===Ao&&(t=" Did you wrap a component in React.lazy() more than once?"),a=Z(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return jh(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,l=gs(o,t.pendingProps),Fv(e,t,o,l,a);case 3:e:{if(te(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var n=t.memoizedState;l=n.element,fh(e,t),$i(t,o,null,a);var s=t.memoizedState;if(o=s.cache,ar(t,va,o),o!==n.cache&&nh(t,[va],a,!0),Vi(),o=s.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=Gv(e,t,o,a);break e}else if(o!==l){l=ko(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Pi(l),t=Gv(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}Vt=Mo(e.firstChild),ja=t,dt=!0,Sr=null,Kl=!1,Oo=null,Qo=!0,a=nC(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ds(),o===l){t=Cn(e,t,a);break e}Va(e,t,o,a)}t=t.child}return t;case 26:return Bf(e,t),e===null?(a=yx(t.type,null,t.pendingProps,null))?t.memoizedState=a:dt||(a=t.type,e=t.pendingProps,o=Be(pr.current),o=Xf(o).createElement(a),o[Xa]=t,o[oo]=e,$a(o,a,e),Oe(o),t.stateNode=o):t.memoizedState=yx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&&dt&&(o=Be(pr.current),l=ke(),o=t.stateNode=hx(t.type,t.pendingProps,o,l,!1),Kl||(l=ox(o,t.type,t.pendingProps,l),l!==null&&(is(t,0).serverProps=l)),ja=t,Qo=!0,l=Vt,cr(t.type)?(ib=l,Vt=Mo(o.firstChild)):Vt=l),Va(e,t,t.pendingProps.children,a),Bf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&dt&&(n=ke(),o=Hm(t.type,n.ancestorInfo),l=Vt,(s=!l)||(s=qI(l,t.type,t.pendingProps,Qo),s!==null?(t.stateNode=s,Kl||(n=ox(s,t.type,t.pendingProps,n),n!==null&&(is(t,0).serverProps=n)),ja=t,Vt=Mo(s.firstChild),Qo=!1,n=!0):n=!1,s=!n),s&&(o&&rf(t,l),tr(t))),je(t),l=t.type,n=t.pendingProps,s=e!==null?e.memoizedProps:null,o=n.children,Tg(l,n)?o=null:s!==null&&Tg(l,s)&&(t.flags|=32),t.memoizedState!==null&&(l=yh(e,t,PT,null,null,a),oc._currentValue=l),Bf(e,t),Va(e,t,o,a),t.child;case 6:return e===null&&dt&&(a=t.pendingProps,e=ke(),o=e.ancestorInfo.current,a=o!=null?Zc(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=Vt,(o=!e)||(o=BI(e,t.pendingProps,Qo),o!==null?(t.stateNode=o,ja=t,Vt=null,o=!0):o=!1,o=!o),o&&(a&&rf(t,e),tr(t))),null;case 13:return Vv(e,t,a);case 4:return te(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ms(t,null,o,a):Va(e,t,o,a),t.child;case 11:return Bv(e,t,t.type,t.pendingProps,a);case 7:return Va(e,t,t.pendingProps,a),t.child;case 8:return Va(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,Va(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,l=t.pendingProps,n=l.value,"value"in l||DC||(DC=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ar(t,o,n),Va(e,t,l.children,a),t.child;case 9:return l=t.type._context,o=t.pendingProps.children,typeof o!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),cs(t),l=Qt(l),o=Iy(o,l,void 0),t.flags|=1,Va(e,t,o,a),t.child;case 14:return Nv(e,t,t.type,t.pendingProps,a);case 15:return Uv(e,t,t.type,t.pendingProps,a);case 19:return Xv(e,t,a);case 31:return $T(e,t,a);case 22:return Pv(e,t,a,t.pendingProps);case 24:return cs(t),o=Qt(va),e===null?(l=ih(),l===null&&(l=Pt,n=rh(),l.pooledCache=n,fs(n),n!==null&&(l.pooledCacheLanes|=a),l=n),t.memoizedState={parent:o,cache:l},ch(t),ar(t,va,l)):((e.lanes&a)!==0&&(fh(e,t),$i(t,null,null,a),Vi()),l=e.memoizedState,n=t.memoizedState,l.parent!==o?(l={parent:o,cache:o},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),ar(t,va,o)):(o=n.cache,ar(t,va,o),o!==l.cache&&nh(t,[va],a,!0))),Va(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function kn(e){e.flags|=4}function ag(e,t,a,o,l){if(t=(e.mode&fM)!==ze)t=!1;if(t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(wS())e.flags|=8192;else throw Rs=Rp,My}else e.flags&=-16777217}function jv(e,t){if(t.type!=="stylesheet"||(t.state.loading&el)!==_s)e.flags&=-16777217;else if(e.flags|=16777216,!Lx(t))if(wS())e.flags|=8192;else throw Rs=Rp,My}function Uf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?nu():536870912,e.lanes|=t,qs|=t)}function Zi(e,t){if(!dt)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&tt)!==ze){for(var{selfBaseDuration:l,child:n}=e;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&65011712,o|=n.flags&65011712,l+=n.treeBaseDuration,n=n.sibling;e.treeBaseDuration=l}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags&65011712,o|=l.flags&65011712,l.return=e,l=l.sibling;else if((e.mode&tt)!==ze){l=e.actualDuration,n=e.selfBaseDuration;for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,l+=s.actualDuration,n+=s.treeBaseDuration,s=s.sibling;e.actualDuration=l,e.treeBaseDuration=n}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function jT(e,t,a){var o=t.pendingProps;switch(th(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ht(t),null;case 1:return Ht(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),xn(va,t),ve(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)du(t)?(oh(),kn(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ah());return Ht(t),null;case 26:var{type:l,memoizedState:n}=t;return e===null?(kn(t),n!==null?(Ht(t),jv(t,n)):(Ht(t),ag(t,l,null,o,a))):n?n!==e.memoizedState?(kn(t),Ht(t),jv(t,n)):(Ht(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&kn(t),Ht(t),ag(t,l,e,o,a)),null;case 27:if(ae(t),a=Be(pr.current),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&kn(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ht(t),null}e=ke(),du(t)?B0(t,e):(e=hx(l,o,a,e,!0),t.stateNode=e,kn(t))}return Ht(t),null;case 5:if(ae(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&kn(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ht(t),null}var s=ke();if(du(t))B0(t,s);else{switch(n=Be(pr.current),Hm(l,s.ancestorInfo),s=s.context,n=Xf(n),s){case ri:n=n.createElementNS(Au,l);break;case em:n=n.createElementNS(ip,l);break;default:switch(l){case"svg":n=n.createElementNS(Au,l);break;case"math":n=n.createElementNS(ip,l);break;case"script":n=n.createElement("div"),n.innerHTML="<script></script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is==="string"?n.createElement("select",{is:o.is}):n.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is==="string"?n.createElement(l,{is:o.is}):n.createElement(l),l.indexOf("-")===-1&&(l!==l.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),Object.prototype.toString.call(n)!=="[object HTMLUnknownElement]"||dl.call(t1,l)||(t1[l]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",l)))}}n[Xa]=t,n[oo]=o;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)n.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 e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=n;e:switch($a(n,l,o),l){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&kn(t)}}return Ht(t),ag(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&kn(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Be(pr.current),a=ke(),du(t)){if(e=t.stateNode,a=t.memoizedProps,l=!Kl,o=null,n=ja,n!==null)switch(n.tag){case 3:l&&(l=px(e,a,o),l!==null&&(is(t,0).serverProps=l));break;case 27:case 5:o=n.memoizedProps,l&&(l=px(e,a,o),l!==null&&(is(t,0).serverProps=l))}e[Xa]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||KS(e.nodeValue,a)?!0:!1,e||tr(t,!0)}else l=a.ancestorInfo.current,l!=null&&Zc(o,l.tag,a.ancestorInfo.implicitRootScope),e=Xf(e).createTextNode(o),e[Xa]=t,t.stateNode=e}return Ht(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=du(t),a!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Xa]=t,Ht(t),(t.mode&tt)!==ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else oh(),ds(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Ht(t),(t.mode&tt)!==ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=ah(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Io(t),t;return Io(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ht(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=o,n=du(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");n[Xa]=t,Ht(t),(t.mode&tt)!==ze&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration))}else oh(),ds(),(t.flags&128)===0&&(l=t.memoizedState=null),t.flags|=4,Ht(t),(t.mode&tt)!==ze&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration));l=!1}else l=ah(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(t.flags&256)return Io(t),t;return Io(t),null}}if(Io(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&tt)!==ze&&Hi(t),t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,l=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(l=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==l&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Uf(t,t.updateQueue),Ht(t),(t.mode&tt)!==ze&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return ve(t),e===null&&vg(t.stateNode.containerInfo),Ht(t),null;case 10:return xn(t.type,t),Ht(t),null;case 19:if(Ne(ha,t),o=t.memoizedState,o===null)return Ht(t),null;if(l=(t.flags&128)!==0,n=o.rendering,n===null)if(l)Zi(o,!1);else{if(ea!==zn||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=Sf(e),n!==null){t.flags|=128,Zi(o,!1),e=n.updateQueue,t.updateQueue=e,Uf(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)M0(a,e),a=a.sibling;return Ce(ha,ha.current&Yu|zd,t),dt&&Sn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ba()>Hp&&(t.flags|=128,l=!0,Zi(o,!1),t.lanes=4194304)}else{if(!l)if(e=Sf(n),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Uf(t,e),Zi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!n.alternate&&!dt)return Ht(t),null}else 2*Ba()-o.renderingStartTime>Hp&&a!==536870912&&(t.flags|=128,l=!0,Zi(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ba(),e.sibling=null,a=ha.current,a=l?a&Yu|zd:a&Yu,Ce(ha,a,t),dt&&Sn(t,o.treeForkCount),e;return Ht(t),null;case 22:case 23:return Io(t),mh(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Ht(t),t.subtreeFlags&6&&(t.flags|=8192)):Ht(t),a=t.updateQueue,a!==null&&Uf(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Ne(Ts,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),xn(va,t),Ht(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function YT(e,t){switch(th(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 3:return xn(va,t),ve(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ae(t),null;case 31:if(t.memoizedState!==null){if(Io(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 13:if(Io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 19:return Ne(ha,t),null;case 4:return ve(t),null;case 10:return xn(t.type,t),null;case 22:case 23:return Io(t),mh(t),e!==null&&Ne(Ts,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 24:return xn(va,t),null;case 25:return null;default:return null}}function Yv(e,t){switch(th(t),t.tag){case 3:xn(va,t),ve(t);break;case 26:case 27:case 5:ae(t);break;case 4:ve(t);break;case 31:t.memoizedState!==null&&Io(t);break;case 13:Io(t);break;case 19:Ne(ha,t);break;case 10:xn(t.type,t);break;case 22:case 23:Io(t),mh(t),e!==null&&Ne(Ts,t);break;case 24:xn(va,t)}}function zl(e){return(e.mode&tt)!==ze}function Qv(e,t){zl(e)?(Pl(),Wi(t,e),Ul()):Wi(t,e)}function og(e,t,a){zl(e)?(Pl(),gu(a,e,t),Ul()):gu(a,e,t)}function Wi(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var l=o.next;a=l;do{if((a.tag&e)===e&&(o=void 0,(e&so)!==Ap&&(oi=!0),o=re(t,yM,a),(e&so)!==Ap&&(oi=!1),o!==void 0&&typeof o!=="function")){var n=void 0;n=(a.tag&Bo)!==0?"useLayoutEffect":(a.tag&so)!==0?"useInsertionEffect":"useEffect";var s=void 0;s=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
139
+ `+m:""))}}n=t.stateNode,s=Z(a)||"Component",n.render||(a.prototype&&typeof a.prototype.render==="function"?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",s):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",s)),!n.getInitialState||n.getInitialState.isReactClassApproved||n.state||console.error("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",s),n.getDefaultProps&&!n.getDefaultProps.isReactClassApproved&&console.error("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",s),n.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",s),a.childContextTypes&&!kC.has(a)&&(kC.add(a),console.error("%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)",s)),a.contextTypes&&!CC.has(a)&&(CC.add(a),console.error("%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)",s)),typeof n.componentShouldUpdate==="function"&&console.error("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",s),a.prototype&&a.prototype.isPureReactComponent&&typeof n.shouldComponentUpdate<"u"&&console.error("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",Z(a)||"A pure component"),typeof n.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",s),typeof n.componentDidReceiveProps==="function"&&console.error("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",s),typeof n.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",s),typeof n.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",s),d=n.props!==o,n.props!==void 0&&d&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",s),n.defaultProps&&console.error("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",s,s),typeof n.getSnapshotBeforeUpdate!=="function"||typeof n.componentDidUpdate==="function"||vC.has(a)||(vC.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",Z(a))),typeof n.getDerivedStateFromProps==="function"&&console.error("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof n.getDerivedStateFromError==="function"&&console.error("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",s),typeof a.getSnapshotBeforeUpdate==="function"&&console.error("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",s),(d=n.state)&&(typeof d!=="object"||Ra(d))&&console.error("%s.state: must be set to an object or null",s),typeof n.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",s),n=t.stateNode,n.props=o,n.state=t.memoizedState,n.refs={},ch(t),s=a.contextType,n.context=typeof s==="object"&&s!==null?Qt(s):vr,n.state===o&&(s=Z(a)||"Component",xC.has(s)||(xC.add(s),console.error("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",s))),t.mode&Ja&&pl.recordLegacyContextWarning(t,n),pl.recordUnsafeLifecycleWarnings(t,n),n.state=t.memoizedState,s=a.getDerivedStateFromProps,typeof s==="function"&&(Gh(t,a,s,o),n.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof n.getSnapshotBeforeUpdate==="function"||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(s=n.state,typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount(),s!==n.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",X(t)||"Component"),Uy.enqueueReplaceState(n,n.state,null)),$i(t,o,n,l),Vi(),n.state=t.memoizedState),typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&fl)!==ze&&(t.flags|=134217728),n=!0}else if(e===null){n=t.stateNode;var A=t.memoizedProps;d=gs(a,A),n.props=d;var E=n.context;m=a.contextType,s=vr,typeof m==="object"&&m!==null&&(s=Qt(m)),g=a.getDerivedStateFromProps,m=typeof g==="function"||typeof n.getSnapshotBeforeUpdate==="function",A=t.pendingProps!==A,m||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(A||E!==s)&&Dv(t,n,o,s),Tr=!1;var T=t.memoizedState;n.state=T,$i(t,o,n,l),Vi(),E=t.memoizedState,A||T!==E||Tr?(typeof g==="function"&&(Gh(t,a,g,o),E=t.memoizedState),(d=Tr||Av(t,a,d,o,T,E,s))?(m||typeof n.UNSAFE_componentWillMount!=="function"&&typeof n.componentWillMount!=="function"||(typeof n.componentWillMount==="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount==="function"&&n.UNSAFE_componentWillMount()),typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&fl)!==ze&&(t.flags|=134217728)):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&fl)!==ze&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=E),n.props=o,n.state=E,n.context=s,n=d):(typeof n.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&fl)!==ze&&(t.flags|=134217728),n=!1)}else{n=t.stateNode,fh(e,t),s=t.memoizedProps,m=gs(a,s),n.props=m,g=t.pendingProps,T=n.context,E=a.contextType,d=vr,typeof E==="object"&&E!==null&&(d=Qt(E)),A=a.getDerivedStateFromProps,(E=typeof A==="function"||typeof n.getSnapshotBeforeUpdate==="function")||typeof n.UNSAFE_componentWillReceiveProps!=="function"&&typeof n.componentWillReceiveProps!=="function"||(s!==g||T!==d)&&Dv(t,n,o,d),Tr=!1,T=t.memoizedState,n.state=T,$i(t,o,n,l),Vi();var U=t.memoizedState;s!==g||T!==U||Tr||e!==null&&e.dependencies!==null&&uf(e.dependencies)?(typeof A==="function"&&(Gh(t,a,A,o),U=t.memoizedState),(m=Tr||Av(t,a,m,o,T,U,d)||e!==null&&e.dependencies!==null&&uf(e.dependencies))?(E||typeof n.UNSAFE_componentWillUpdate!=="function"&&typeof n.componentWillUpdate!=="function"||(typeof n.componentWillUpdate==="function"&&n.componentWillUpdate(o,U,d),typeof n.UNSAFE_componentWillUpdate==="function"&&n.UNSAFE_componentWillUpdate(o,U,d)),typeof n.componentDidUpdate==="function"&&(t.flags|=4),typeof n.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof n.componentDidUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=U),n.props=o,n.state=U,n.context=d,n=m):(typeof n.componentDidUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=4),typeof n.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&T===e.memoizedState||(t.flags|=1024),n=!1)}if(d=n,Bf(e,t),s=(t.flags&128)!==0,d||s){if(d=t.stateNode,ma(t),s&&typeof a.getDerivedStateFromError!=="function")a=null,ro=-1;else if(a=XL(d),t.mode&Ja){_t(!0);try{XL(d)}finally{_t(!1)}}t.flags|=1,e!==null&&s?(t.child=Ms(t,e.child,null,l),t.child=Ms(t,null,a,l)):Va(e,t,a,l),t.memoizedState=d.state,e=t.child}else e=Cn(e,t,l);return l=t.stateNode,n&&l.props!==o&&(Ku||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",X(t)||"a component"),Ku=!0),e}function Vv(e,t,a,o){return ds(),t.flags|=256,Va(e,t,a,o),t.child}function Yh(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
140
+ %s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=Z(t)||"Unknown",AC[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),AC[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=Z(t)||"Unknown",RC[t]||(console.error("%s: Function components do not support contextType.",t),RC[t]=!0))}function Qh(e){return{baseLanes:e,cachePool:F0()}}function Zh(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=bo),e}function $v(e,t,a){var o,l=t.pendingProps;v(t)&&(t.flags|=128);var n=!1,s=(t.flags&128)!==0;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(ha.current&zd)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(dt){if(n?rr(t):sr(t),(e=Vt)?(a=fx(e,Qo),a=a!==null&&a.data!==Us?a:null,a!==null&&(o={dehydrated:a,treeContext:O0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=D0(a),o.return=t,t.child=o,ja=t,Vt=null)):a=null,a===null)throw rf(t,e),tr(t);return Mg(a)?t.lanes=32:t.lanes=536870912,null}var d=l.children;if(l=l.fallback,n){sr(t);var m=t.mode;return d=Nf({mode:"hidden",children:d},m),l=us(l,m,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=Qh(a),l.childLanes=Zh(e,o,a),t.memoizedState=_y,Qi(null,l)}return rr(t),Wh(t,d)}var g=e.memoizedState;if(g!==null){var A=g.dehydrated;if(A!==null){if(s)t.flags&256?(rr(t),t.flags&=-257,t=Kh(e,t,a)):t.memoizedState!==null?(sr(t),t.child=e.child,t.flags|=128,t=null):(sr(t),d=l.fallback,m=t.mode,l=Nf({mode:"visible",children:l.children},m),d=us(d,m,a,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,Ms(t,e.child,null,a),l=t.child,l.memoizedState=Qh(a),l.childLanes=Zh(e,o,a),t.memoizedState=_y,t=Qi(null,l));else if(rr(t),B0(),(a&536870912)!==0&&Hf(t),Mg(A)){if(o=A.nextSibling&&A.nextSibling.dataset,o){d=o.dgst;var E=o.msg;m=o.stck;var T=o.cstck}n=E,o=d,l=m,A=T,d=n,m=A,d=d?Error(d):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),d.stack=l||"",d.digest=o,o=m===void 0?null:m,l={value:d,source:null,stack:o},typeof o==="string"&&vy.set(d,l),Pi(l),t=Kh(e,t,a)}else if(La||cu(e,t,a,!1),o=(a&e.childLanes)!==0,La||o){if(o=Pt,o!==null&&(l=as(o,a),l!==0&&l!==g.retryLane))throw g.retryLane=l,Wa(e,l),oa(o,e,l),zy;Rg(A)||Ff(),t=Kh(e,t,a)}else Rg(A)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Vt=Mo(A.nextSibling),ja=t,dt=!0,Sr=null,Kl=!1,Oo=null,Qo=!1,e!==null&&q0(t,e),t=Wh(t,l.children),t.flags|=4096);return t}}if(n)return sr(t),d=l.fallback,m=t.mode,T=e.child,A=T.sibling,l=vn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,A!==null?d=vn(A,d):(d=us(d,m,a,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,Qi(null,l),l=t.child,d=e.child.memoizedState,d===null?d=Qh(a):(m=d.cachePool,m!==null?(T=va._currentValue,m=m.parent!==T?{parent:T,pool:T}:m):m=F0(),d={baseLanes:d.baseLanes|a,cachePool:m}),l.memoizedState=d,l.childLanes=Zh(e,o,a),t.memoizedState=_y,Qi(e.child,l);return g!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Hf(t),rr(t),a=e.child,e=a.sibling,a=vn(a,{mode:"visible",children:l.children}),a.return=t,a.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=a,t.memoizedState=null,a}function Wh(e,t){return t=Nf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Nf(e,t){return e=C(22,e,null,t),e.lanes=0,e}function Kh(e,t,a){return Ms(t,e.child,null,a),e=Wh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Xv(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),lh(e.return,t,a)}function Jh(e,t,a,o,l,n){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:l,treeForkCount:n}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=a,s.tailMode=l,s.treeForkCount=n)}function jv(e,t,a){var o=t.pendingProps,l=o.revealOrder,n=o.tail,s=o.children,d=ha.current;if((o=(d&zd)!==0)?(d=d&Yu|zd,t.flags|=128):d&=Yu,Ce(ha,d,t),d=l==null?"null":l,l!=="forwards"&&l!=="unstable_legacy-backwards"&&l!=="together"&&l!=="independent"&&!DC[d])if(DC[d]=!0,l==null)console.error('The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".');else if(l==="backwards")console.error('The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.');else if(typeof l==="string")switch(l.toLowerCase()){case"together":case"forwards":case"backwards":case"independent":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',l,l.toLowerCase());break;case"forward":case"backward":console.error('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',l,l.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',l);if(d=n==null?"null":n,!qp[d])if(n==null){if(l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")qp[d]=!0,console.error('The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".')}else n!=="visible"&&n!=="collapsed"&&n!=="hidden"?(qp[d]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',n)):l!=="forwards"&&l!=="backwards"&&l!=="unstable_legacy-backwards"&&(qp[d]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',n));e:if((l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")&&s!==void 0&&s!==null&&s!==!1)if(Ra(s)){for(d=0;d<s.length;d++)if(!K0(s[d],d))break e}else if(d=ee(s),typeof d==="function"){if(d=d.call(s))for(var m=d.next(),g=0;!m.done;m=d.next()){if(!K0(m.value,g))break e;g++}}else console.error('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',l);if(Va(e,t,s,a),dt?(er(),s=kd):s=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Xv(e,a,t);else if(e.tag===19)Xv(e,a,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(l){case"forwards":a=t.child;for(l=null;a!==null;)e=a.alternate,e!==null&&Sf(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),Jh(t,!1,l,a,n,s);break;case"backwards":case"unstable_legacy-backwards":a=null,l=t.child;for(t.child=null;l!==null;){if(e=l.alternate,e!==null&&Sf(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}Jh(t,!0,a,null,n,s);break;case"together":Jh(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function Cn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),ro=-1,Mr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(cu(e,t,a,!1),(a&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error("Resuming work not yet implemented.");if(t.child!==null){e=t.child,a=vn(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=vn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function eg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&uf(e)?!0:!1}function jT(e,t,a){switch(t.tag){case 3:te(t,t.stateNode.containerInfo),ar(t,va,e.memoizedState.cache),ds();break;case 27:case 5:je(t);break;case 4:te(t,t.stateNode.containerInfo);break;case 10:ar(t,t.type,t.memoizedProps.value);break;case 12:(a&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var o=t.stateNode;o.effectDuration=-0,o.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,hh(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return rr(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return $v(e,t,a);return rr(t),e=Cn(e,t,a),e!==null?e.sibling:null}rr(t);break;case 19:var l=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(cu(e,t,a,!1),o=(a&t.childLanes)!==0),l){if(o)return jv(e,t,a);t.flags|=128}if(l=t.memoizedState,l!==null&&(l.rendering=null,l.tail=null,l.lastEffect=null),Ce(ha,ha.current,t),o)break;else return null;case 22:return t.lanes=0,zv(e,t,a,t.pendingProps);case 24:ar(t,va,e.memoizedState.cache)}return Cn(e,t,a)}function tg(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Wm(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),a._debugStack=t._debugStack,a._debugTask=t._debugTask;var o=t.return;if(o===null)throw Error("Cannot swap the root fiber.");if(e.alternate=null,t.alternate=null,a.index=t.index,a.sibling=t.sibling,a.return=t.return,a.ref=t.ref,a._debugInfo=t._debugInfo,t===o.child)o.child=a;else{var l=o.child;if(l===null)throw Error("Expected parent to have a child.");for(;l.sibling!==t;)if(l=l.sibling,l===null)throw Error("Expected to find the previous sibling.");l.sibling=a}return t=o.deletions,t===null?(o.deletions=[e],o.flags|=16):t.push(e),a.flags|=2,a}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)La=!0;else{if(!eg(e,a)&&(t.flags&128)===0)return La=!1,jT(e,t,a);La=(e.flags&131072)!==0?!0:!1}else{if(La=!1,o=dt)er(),o=(t.flags&1048576)!==0;o&&(o=t.index,er(),E0(t,kd,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=or(t.elementType),t.type=e,typeof e==="function")Zm(e)?(o=gs(e,o),t.tag=1,t.type=e=ss(e),t=Gv(null,t,e,o,a)):(t.tag=0,Yh(t,e),t.type=e=ss(e),t=jh(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(l=e.$$typeof,l===cd){t.tag=11,t.type=e=Qm(e),t=Nv(null,t,e,o,a);break e}else if(l===ap){t.tag=14,t=Uv(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===Ao&&(t=" Did you wrap a component in React.lazy() more than once?"),a=Z(e)||e,Error("Element type is invalid. Received a promise that resolves to: "+a+". Lazy element type must resolve to a class or function."+t)}return t;case 0:return jh(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,l=gs(o,t.pendingProps),Gv(e,t,o,l,a);case 3:e:{if(te(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var n=t.memoizedState;l=n.element,fh(e,t),$i(t,o,null,a);var s=t.memoizedState;if(o=s.cache,ar(t,va,o),o!==n.cache&&nh(t,[va],a,!0),Vi(),o=s.element,n.isDehydrated)if(n={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=n,t.memoizedState=n,t.flags&256){t=Vv(e,t,o,a);break e}else if(o!==l){l=ko(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Pi(l),t=Vv(e,t,o,a);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}Vt=Mo(e.firstChild),ja=t,dt=!0,Sr=null,Kl=!1,Oo=null,Qo=!0,a=rC(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ds(),o===l){t=Cn(e,t,a);break e}Va(e,t,o,a)}t=t.child}return t;case 26:return Bf(e,t),e===null?(a=bx(t.type,null,t.pendingProps,null))?t.memoizedState=a:dt||(a=t.type,e=t.pendingProps,o=Be(pr.current),o=Xf(o).createElement(a),o[Xa]=t,o[oo]=e,$a(o,a,e),Oe(o),t.stateNode=o):t.memoizedState=bx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&&dt&&(o=Be(pr.current),l=ke(),o=t.stateNode=gx(t.type,t.pendingProps,o,l,!1),Kl||(l=lx(o,t.type,t.pendingProps,l),l!==null&&(is(t,0).serverProps=l)),ja=t,Qo=!0,l=Vt,cr(t.type)?(ib=l,Vt=Mo(o.firstChild)):Vt=l),Va(e,t,t.pendingProps.children,a),Bf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&dt&&(n=ke(),o=Hm(t.type,n.ancestorInfo),l=Vt,(s=!l)||(s=BI(l,t.type,t.pendingProps,Qo),s!==null?(t.stateNode=s,Kl||(n=lx(s,t.type,t.pendingProps,n),n!==null&&(is(t,0).serverProps=n)),ja=t,Vt=Mo(s.firstChild),Qo=!1,n=!0):n=!1,s=!n),s&&(o&&rf(t,l),tr(t))),je(t),l=t.type,n=t.pendingProps,s=e!==null?e.memoizedProps:null,o=n.children,Tg(l,n)?o=null:s!==null&&Tg(l,s)&&(t.flags|=32),t.memoizedState!==null&&(l=yh(e,t,zT,null,null,a),oc._currentValue=l),Bf(e,t),Va(e,t,o,a),t.child;case 6:return e===null&&dt&&(a=t.pendingProps,e=ke(),o=e.ancestorInfo.current,a=o!=null?Zc(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=Vt,(o=!e)||(o=NI(e,t.pendingProps,Qo),o!==null?(t.stateNode=o,ja=t,Vt=null,o=!0):o=!1,o=!o),o&&(a&&rf(t,e),tr(t))),null;case 13:return $v(e,t,a);case 4:return te(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=Ms(t,null,o,a):Va(e,t,o,a),t.child;case 11:return Nv(e,t,t.type,t.pendingProps,a);case 7:return Va(e,t,t.pendingProps,a),t.child;case 8:return Va(e,t,t.pendingProps.children,a),t.child;case 12:return t.flags|=4,t.flags|=2048,o=t.stateNode,o.effectDuration=-0,o.passiveEffectDuration=-0,Va(e,t,t.pendingProps.children,a),t.child;case 10:return o=t.type,l=t.pendingProps,n=l.value,"value"in l||EC||(EC=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ar(t,o,n),Va(e,t,l.children,a),t.child;case 9:return l=t.type._context,o=t.pendingProps.children,typeof o!=="function"&&console.error("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),cs(t),l=Qt(l),o=Iy(o,l,void 0),t.flags|=1,Va(e,t,o,a),t.child;case 14:return Uv(e,t,t.type,t.pendingProps,a);case 15:return Pv(e,t,t.type,t.pendingProps,a);case 19:return jv(e,t,a);case 31:return XT(e,t,a);case 22:return zv(e,t,a,t.pendingProps);case 24:return cs(t),o=Qt(va),e===null?(l=ih(),l===null&&(l=Pt,n=rh(),l.pooledCache=n,fs(n),n!==null&&(l.pooledCacheLanes|=a),l=n),t.memoizedState={parent:o,cache:l},ch(t),ar(t,va,l)):((e.lanes&a)!==0&&(fh(e,t),$i(t,null,null,a),Vi()),l=e.memoizedState,n=t.memoizedState,l.parent!==o?(l={parent:o,cache:o},t.memoizedState=l,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=l),ar(t,va,o)):(o=n.cache,ar(t,va,o),o!==l.cache&&nh(t,[va],a,!0))),Va(e,t,t.pendingProps.children,a),t.child;case 29:throw t.pendingProps}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function kn(e){e.flags|=4}function ag(e,t,a,o,l){if(t=(e.mode&pM)!==ze)t=!1;if(t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(TS())e.flags|=8192;else throw Rs=Rp,My}else e.flags&=-16777217}function Yv(e,t){if(t.type!=="stylesheet"||(t.state.loading&el)!==_s)e.flags&=-16777217;else if(e.flags|=16777216,!Cx(t))if(TS())e.flags|=8192;else throw Rs=Rp,My}function Uf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?nu():536870912,e.lanes|=t,qs|=t)}function Zi(e,t){if(!dt)switch(e.tailMode){case"hidden":t=e.tail;for(var a=null;t!==null;)t.alternate!==null&&(a=t),t=t.sibling;a===null?e.tail=null:a.sibling=null;break;case"collapsed":a=e.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Ht(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&tt)!==ze){for(var{selfBaseDuration:l,child:n}=e;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&65011712,o|=n.flags&65011712,l+=n.treeBaseDuration,n=n.sibling;e.treeBaseDuration=l}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags&65011712,o|=l.flags&65011712,l.return=e,l=l.sibling;else if((e.mode&tt)!==ze){l=e.actualDuration,n=e.selfBaseDuration;for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,l+=s.actualDuration,n+=s.treeBaseDuration,s=s.sibling;e.actualDuration=l,e.treeBaseDuration=n}else for(l=e.child;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags,o|=l.flags,l.return=e,l=l.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function YT(e,t,a){var o=t.pendingProps;switch(th(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ht(t),null;case 1:return Ht(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),xn(va,t),ve(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)du(t)?(oh(),kn(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,ah());return Ht(t),null;case 26:var{type:l,memoizedState:n}=t;return e===null?(kn(t),n!==null?(Ht(t),Yv(t,n)):(Ht(t),ag(t,l,null,o,a))):n?n!==e.memoizedState?(kn(t),Ht(t),Yv(t,n)):(Ht(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&kn(t),Ht(t),ag(t,l,e,o,a)),null;case 27:if(ae(t),a=Be(pr.current),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&kn(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ht(t),null}e=ke(),du(t)?N0(t,e):(e=gx(l,o,a,e,!0),t.stateNode=e,kn(t))}return Ht(t),null;case 5:if(ae(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&kn(t);else{if(!o){if(t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Ht(t),null}var s=ke();if(du(t))N0(t,s);else{switch(n=Be(pr.current),Hm(l,s.ancestorInfo),s=s.context,n=Xf(n),s){case ri:n=n.createElementNS(Au,l);break;case em:n=n.createElementNS(ip,l);break;default:switch(l){case"svg":n=n.createElementNS(Au,l);break;case"math":n=n.createElementNS(ip,l);break;case"script":n=n.createElement("div"),n.innerHTML="<script></script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof o.is==="string"?n.createElement("select",{is:o.is}):n.createElement("select"),o.multiple?n.multiple=!0:o.size&&(n.size=o.size);break;default:n=typeof o.is==="string"?n.createElement(l,{is:o.is}):n.createElement(l),l.indexOf("-")===-1&&(l!==l.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",l),Object.prototype.toString.call(n)!=="[object HTMLUnknownElement]"||dl.call(a1,l)||(a1[l]=!0,console.error("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",l)))}}n[Xa]=t,n[oo]=o;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)n.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 e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=n;e:switch($a(n,l,o),l){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&kn(t)}}return Ht(t),ag(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&kn(t);else{if(typeof o!=="string"&&t.stateNode===null)throw Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");if(e=Be(pr.current),a=ke(),du(t)){if(e=t.stateNode,a=t.memoizedProps,l=!Kl,o=null,n=ja,n!==null)switch(n.tag){case 3:l&&(l=mx(e,a,o),l!==null&&(is(t,0).serverProps=l));break;case 27:case 5:o=n.memoizedProps,l&&(l=mx(e,a,o),l!==null&&(is(t,0).serverProps=l))}e[Xa]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||JS(e.nodeValue,a)?!0:!1,e||tr(t,!0)}else l=a.ancestorInfo.current,l!=null&&Zc(o,l.tag,a.ancestorInfo.implicitRootScope),e=Xf(e).createTextNode(o),e[Xa]=t,t.stateNode=e}return Ht(t),null;case 31:if(a=t.memoizedState,e===null||e.memoizedState!==null){if(o=du(t),a!==null){if(e===null){if(!o)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error("Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.");e[Xa]=t,Ht(t),(t.mode&tt)!==ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else oh(),ds(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Ht(t),(t.mode&tt)!==ze&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=ah(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Io(t),t;return Io(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Ht(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(l=o,n=du(t),l!==null&&l.dehydrated!==null){if(e===null){if(!n)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(n=t.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");n[Xa]=t,Ht(t),(t.mode&tt)!==ze&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration))}else oh(),ds(),(t.flags&128)===0&&(l=t.memoizedState=null),t.flags|=4,Ht(t),(t.mode&tt)!==ze&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration));l=!1}else l=ah(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(t.flags&256)return Io(t),t;return Io(t),null}}if(Io(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&tt)!==ze&&Hi(t),t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,l=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(l=o.alternate.memoizedState.cachePool.pool),n=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool),n!==l&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),Uf(t,t.updateQueue),Ht(t),(t.mode&tt)!==ze&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return ve(t),e===null&&vg(t.stateNode.containerInfo),Ht(t),null;case 10:return xn(t.type,t),Ht(t),null;case 19:if(Ne(ha,t),o=t.memoizedState,o===null)return Ht(t),null;if(l=(t.flags&128)!==0,n=o.rendering,n===null)if(l)Zi(o,!1);else{if(ea!==zn||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=Sf(e),n!==null){t.flags|=128,Zi(o,!1),e=n.updateQueue,t.updateQueue=e,Uf(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)A0(a,e),a=a.sibling;return Ce(ha,ha.current&Yu|zd,t),dt&&Sn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ba()>Hp&&(t.flags|=128,l=!0,Zi(o,!1),t.lanes=4194304)}else{if(!l)if(e=Sf(n),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Uf(t,e),Zi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!n.alternate&&!dt)return Ht(t),null}else 2*Ba()-o.renderingStartTime>Hp&&a!==536870912&&(t.flags|=128,l=!0,Zi(o,!1),t.lanes=4194304);o.isBackwards?(n.sibling=t.child,t.child=n):(e=o.last,e!==null?e.sibling=n:t.child=n,o.last=n)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ba(),e.sibling=null,a=ha.current,a=l?a&Yu|zd:a&Yu,Ce(ha,a,t),dt&&Sn(t,o.treeForkCount),e;return Ht(t),null;case 22:case 23:return Io(t),mh(t),o=t.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(t.flags|=8192):o&&(t.flags|=8192),o?(a&536870912)!==0&&(t.flags&128)===0&&(Ht(t),t.subtreeFlags&6&&(t.flags|=8192)):Ht(t),a=t.updateQueue,a!==null&&Uf(t,a.retryQueue),a=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),o=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(o=t.memoizedState.cachePool.pool),o!==a&&(t.flags|=2048),e!==null&&Ne(Ts,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),xn(va,t),Ht(t),null;case 25:return null;case 30:return null}throw Error("Unknown unit of work tag ("+t.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function QT(e,t){switch(th(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 3:return xn(va,t),ve(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return ae(t),null;case 31:if(t.memoizedState!==null){if(Io(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 13:if(Io(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");ds()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 19:return Ne(ha,t),null;case 4:return ve(t),null;case 10:return xn(t.type,t),null;case 22:case 23:return Io(t),mh(t),e!==null&&Ne(Ts,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==ze&&Hi(t),t):null;case 24:return xn(va,t),null;case 25:return null;default:return null}}function Qv(e,t){switch(th(t),t.tag){case 3:xn(va,t),ve(t);break;case 26:case 27:case 5:ae(t);break;case 4:ve(t);break;case 31:t.memoizedState!==null&&Io(t);break;case 13:Io(t);break;case 19:Ne(ha,t);break;case 10:xn(t.type,t);break;case 22:case 23:Io(t),mh(t),e!==null&&Ne(Ts,t);break;case 24:xn(va,t)}}function zl(e){return(e.mode&tt)!==ze}function Zv(e,t){zl(e)?(Pl(),Wi(t,e),Ul()):Wi(t,e)}function og(e,t,a){zl(e)?(Pl(),gu(a,e,t),Ul()):gu(a,e,t)}function Wi(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var l=o.next;a=l;do{if((a.tag&e)===e&&(o=void 0,(e&so)!==Ap&&(oi=!0),o=re(t,bM,a),(e&so)!==Ap&&(oi=!1),o!==void 0&&typeof o!=="function")){var n=void 0;n=(a.tag&Bo)!==0?"useLayoutEffect":(a.tag&so)!==0?"useInsertionEffect":"useEffect";var s=void 0;s=o===null?" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof o.then==="function"?`
141
141
 
142
142
  It looks like you wrote `+n+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
143
143
 
@@ -150,11 +150,11 @@ It looks like you wrote `+n+`(async () => ...) or returned a Promise. Instead, w
150
150
  fetchData();
151
151
  }, [someId]); // Or [] if effect doesn't need props or state
152
152
 
153
- Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,re(t,function(d,m){console.error("%s must not return anything besides a function, which is used for clean-up.%s",d,m)},n,s)}a=a.next}while(a!==l)}}catch(d){Ct(t,t.return,d)}}function gu(e,t,a){try{var o=t.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var n=l.next;o=n;do{if((o.tag&e)===e){var s=o.inst,d=s.destroy;d!==void 0&&(s.destroy=void 0,(e&so)!==Ap&&(oi=!0),l=t,re(l,bM,l,a,d),(e&so)!==Ap&&(oi=!1))}o=o.next}while(o!==n)}}catch(m){Ct(t,t.return,m)}}function Zv(e,t){zl(e)?(Pl(),Wi(t,e),Ul()):Wi(t,e)}function lg(e,t,a){zl(e)?(Pl(),gu(a,e,t),Ul()):gu(a,e,t)}function Wv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Ku||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{re(e,J0,t,a)}catch(o){Ct(e,e.return,o)}}}function QT(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function ZT(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Ku||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{var l=gs(e.type,a),n=re(e,QT,t,l,o);a=EC,n!==void 0||a.has(e.type)||(a.add(e.type),re(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",X(e))})),t.__reactInternalSnapshotBeforeUpdate=n}catch(s){Ct(e,e.return,s)}}function Kv(e,t,a){a.props=gs(e.type,e.memoizedProps),a.state=e.memoizedState,zl(e)?(Pl(),re(e,WL,e,t,a),Ul()):re(e,WL,e,t,a)}function WT(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t==="function")if(zl(e))try{Pl(),e.refCleanup=t(a)}finally{Ul()}else e.refCleanup=t(a);else typeof t==="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",X(e)),t.current=a}}function Ki(e,t){try{re(e,WT,e)}catch(a){Ct(e,t,a)}}function _l(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(zl(e))try{Pl(),re(e,o)}finally{Ul(e)}else re(e,o)}catch(l){Ct(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(zl(e))try{Pl(),re(e,a,null)}finally{Ul(e)}else re(e,a,null)}catch(l){Ct(e,t,l)}else a.current=null}function Jv(e,t,a,o){var l=e.memoizedProps,n=l.id,s=l.onCommit;l=l.onRender,t=t===null?"mount":"update",kp&&(t="nested-update"),typeof l==="function"&&l(n,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof s==="function"&&s(n,t,o,a)}function KT(e,t,a,o){var l=e.memoizedProps;e=l.id,l=l.onPostCommit,t=t===null?"mount":"update",kp&&(t="nested-update"),typeof l==="function"&&l(e,t,o,a)}function eS(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{re(e,LI,o,t,a,e)}catch(l){Ct(e,e.return,l)}}function ng(e,t,a){try{re(e,kI,e.stateNode,e.type,a,t,e)}catch(o){Ct(e,e.return,o)}}function tS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cr(e.type)||e.tag===4}function rg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||tS(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&cr(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sg(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(ux(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(ux(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=bn));else if(o!==4&&(o===27&&cr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(sg(e,t,a),e=e.sibling;e!==null;)sg(e,t,a),e=e.sibling}function Pf(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&cr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Pf(e,t,a),e=e.sibling;e!==null;)Pf(e,t,a),e=e.sibling}function JT(e){for(var t,a=e.return;a!==null;){if(tS(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=rg(e),Pf(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(sx(a),t.flags&=-33),t=rg(e),Pf(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=rg(e),sg(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function aS(e){var{stateNode:t,memoizedProps:a}=e;try{re(e,_I,e.type,a,t,e)}catch(o){Ct(e,e.return,o)}}function oS(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function eI(e,t){if(e=e.containerInfo,rb=lm,e=v0(e),Vm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var l=o.anchorOffset,n=o.focusNode;o=o.focusOffset;try{a.nodeType,n.nodeType}catch(de){a=null;break e}var s=0,d=-1,m=-1,g=0,A=0,E=e,T=null;t:for(;;){for(var U;;){if(E!==a||l!==0&&E.nodeType!==3||(d=s+l),E!==n||o!==0&&E.nodeType!==3||(m=s+o),E.nodeType===3&&(s+=E.nodeValue.length),(U=E.firstChild)===null)break;T=E,E=U}for(;;){if(E===e)break t;if(T===a&&++g===l&&(d=s),T===n&&++A===o&&(m=s),(U=E.nextSibling)!==null)break;E=T,T=E.parentNode}E=U}a=d===-1||m===-1?null:{start:d,end:m}}else a=null}a=a||{start:0,end:0}}else a=null;sb={focusedElem:e,selectionRange:a},lm=!1;for(Ua=t;Ua!==null;)if(t=Ua,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ua=e;else for(;Ua!==null;){switch(e=t=Ua,a=e.alternate,l=e.flags,e.tag){case 0:if((l&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)l=e[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:(l&1024)!==0&&a!==null&&ZT(e,a);break;case 3:if((l&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Ig(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ig(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Ua=e;break}Ua=t.return}}function lS(e,t,a){var o=wo(),l=Ol(),n=Bl(),s=Nl(),d=a.flags;switch(a.tag){case 0:case 11:case 15:Hl(e,a),d&4&&Qv(a,Bo|Ko);break;case 1:if(Hl(e,a),d&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Ku||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(a)||"instance")),zl(a)?(Pl(),re(a,Ry,a,e),Ul()):re(a,Ry,a,e);else{var m=gs(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Ku||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(a)||"instance")),zl(a)?(Pl(),re(a,YL,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate),Ul()):re(a,YL,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate)}d&64&&Wv(a),d&512&&Ki(a,a.return);break;case 3:if(t=Ln(),Hl(e,a),d&64&&(d=a.updateQueue,d!==null)){if(m=null,a.child!==null)switch(a.child.tag){case 27:case 5:m=a.child.stateNode;break;case 1:m=a.child.stateNode}try{re(a,J0,d,m)}catch(A){Ct(a,a.return,A)}}e.effectDuration+=cf(t);break;case 27:t===null&&d&4&&aS(a);case 26:case 5:if(Hl(e,a),t===null){if(d&4)eS(a);else if(d&64){e=a.type,t=a.memoizedProps,m=a.stateNode;try{re(a,CI,m,e,t,a)}catch(A){Ct(a,a.return,A)}}}d&512&&Ki(a,a.return);break;case 12:if(d&4){d=Ln(),Hl(e,a),e=a.stateNode,e.effectDuration+=_i(d);try{re(a,Jv,a,t,xr,e.effectDuration)}catch(A){Ct(a,a.return,A)}}else Hl(e,a);break;case 31:Hl(e,a),d&4&&sS(e,a);break;case 13:Hl(e,a),d&4&&uS(e,a),d&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(d=iI.bind(null,a),NI(e,d))));break;case 22:if(d=a.memoizedState!==null||Pn,!d){t=t!==null&&t.memoizedState!==null||Ca,m=Pn;var g=Ca;Pn=d,(Ca=t)&&!g?(Fl(e,a,(a.subtreeFlags&8772)!==0),(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&ef(a,qe,Ue)):Hl(e,a),Pn=m,Ca=g}break;case 30:break;default:Hl(e,a)}(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&((la||0.05<Jt)&&Dl(a,qe,Ue,Jt,Zt),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<Ue-qe&&(oS(a.return.alternate,a.return)||Al(a,qe,Ue,"Mount"))),To(o),ql(l),Zt=n,la=s}function nS(e){var t=e.alternate;t!==null&&(e.alternate=null,nS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&me(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wn(e,t,a){for(a=a.child;a!==null;)rS(e,t,a),a=a.sibling}function rS(e,t,a){if(Ka&&typeof Ka.onCommitFiberUnmount==="function")try{Ka.onCommitFiberUnmount(Ru,a)}catch(g){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",g))}var o=wo(),l=Ol(),n=Bl(),s=Nl();switch(a.tag){case 26:Ca||_l(a,t),wn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Ca||_l(a,t);var d=ka,m=go;cr(a.type)&&(ka=a.stateNode,go=!1),wn(e,t,a),re(a,sd,a.stateNode),ka=d,go=m;break;case 5:Ca||_l(a,t);case 6:if(d=ka,m=go,ka=null,wn(e,t,a),ka=d,go=m,ka!==null)if(go)try{re(a,II,ka,a.stateNode)}catch(g){Ct(a,t,g)}else try{re(a,TI,ka,a.stateNode)}catch(g){Ct(a,t,g)}break;case 18:ka!==null&&(go?(e=ka,ix(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ku(e)):ix(ka,a.stateNode));break;case 4:d=ka,m=go,ka=a.stateNode.containerInfo,go=!0,wn(e,t,a),ka=d,go=m;break;case 0:case 11:case 14:case 15:gu(so,a,t),Ca||og(a,t,Bo),wn(e,t,a);break;case 1:Ca||(_l(a,t),d=a.stateNode,typeof d.componentWillUnmount==="function"&&Kv(a,t,d)),wn(e,t,a);break;case 21:wn(e,t,a);break;case 22:Ca=(d=Ca)||a.memoizedState!==null,wn(e,t,a),Ca=d;break;default:wn(e,t,a)}(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(a,qe,Ue,Jt,Zt),To(o),ql(l),Zt=n,la=s}function sS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{re(t,PI,e)}catch(a){Ct(t,t.return,a)}}}function uS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{re(t,zI,e)}catch(a){Ct(t,t.return,a)}}function tI(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new OC),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new OC),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function zf(e,t){var a=tI(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Ql)if(Ju!==null&&ei!==null)ad(ei,Ju);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var l=dI.bind(null,e,o);o.then(l,l)}})}function mo(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var l=e,n=t,s=a[o],d=wo(),m=n;e:for(;m!==null;){switch(m.tag){case 27:if(cr(m.type)){ka=m.stateNode,go=!1;break e}break;case 5:ka=m.stateNode,go=!1;break e;case 3:case 4:ka=m.stateNode.containerInfo,go=!0;break e}m=m.return}if(ka===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");rS(l,n,s),ka=null,go=!1,(s.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(s,qe,Ue,"Unmount"),To(d),l=s,n=l.alternate,n!==null&&(n.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)iS(t,e),t=t.sibling}function iS(e,t){var a=wo(),o=Ol(),l=Bl(),n=Nl(),{alternate:s,flags:d}=e;switch(e.tag){case 0:case 11:case 14:case 15:mo(t,e),ho(e),d&4&&(gu(so|Ko,e,e.return),Wi(so|Ko,e),og(e,e.return,Bo|Ko));break;case 1:if(mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),d&64&&Pn&&(d=e.updateQueue,d!==null&&(s=d.callbacks,s!==null))){var m=d.shared.hiddenCallbacks;d.shared.hiddenCallbacks=m===null?s:m.concat(s)}break;case 26:if(m=hl,mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),d&4){var g=s!==null?s.memoizedState:null;if(d=e.memoizedState,s===null)if(d===null)if(e.stateNode===null){e:{d=e.type,s=e.memoizedProps,m=m.ownerDocument||m;t:switch(d){case"title":if(g=m.getElementsByTagName("title")[0],!g||g[md]||g[Xa]||g.namespaceURI===Au||g.hasAttribute("itemprop"))g=m.createElement(d),m.head.insertBefore(g,m.querySelector("head > title"));$a(g,d,s),g[Xa]=e,Oe(g),d=g;break e;case"link":var A=Sx("link","href",m).get(d+(s.href||""));if(A){for(var E=0;E<A.length;E++)if(g=A[E],g.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&g.getAttribute("rel")===(s.rel==null?null:s.rel)&&g.getAttribute("title")===(s.title==null?null:s.title)&&g.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){A.splice(E,1);break t}}g=m.createElement(d),$a(g,d,s),m.head.appendChild(g);break;case"meta":if(A=Sx("meta","content",m).get(d+(s.content||""))){for(E=0;E<A.length;E++)if(g=A[E],gt(s.content,"content"),g.getAttribute("content")===(s.content==null?null:""+s.content)&&g.getAttribute("name")===(s.name==null?null:s.name)&&g.getAttribute("property")===(s.property==null?null:s.property)&&g.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&g.getAttribute("charset")===(s.charSet==null?null:s.charSet)){A.splice(E,1);break t}}g=m.createElement(d),$a(g,d,s),m.head.appendChild(g);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+d+'". This is a bug in React.')}g[Xa]=e,Oe(g),d=g}e.stateNode=d}else xx(m,e.type,e.stateNode);else e.stateNode=vx(m,d,e.memoizedProps);else g!==d?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,d===null?xx(m,e.type,e.stateNode):vx(m,d,e.memoizedProps)):d===null&&e.stateNode!==null&&ng(e,e.memoizedProps,s.memoizedProps)}break;case 27:mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),s!==null&&d&4&&ng(e,e.memoizedProps,s.memoizedProps);break;case 5:if(mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),e.flags&32){m=e.stateNode;try{re(e,sx,m)}catch(ye){Ct(e,e.return,ye)}}d&4&&e.stateNode!=null&&(m=e.memoizedProps,ng(e,m,s!==null?s.memoizedProps:m)),d&1024&&(Hy=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(mo(t,e),ho(e),d&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");d=e.memoizedProps,s=s!==null?s.memoizedProps:d,m=e.stateNode;try{re(e,wI,m,s,d)}catch(ye){Ct(e,e.return,ye)}}break;case 3:if(m=Ln(),tm=null,g=hl,hl=jf(t.containerInfo),mo(t,e),hl=g,ho(e),d&4&&s!==null&&s.memoizedState.isDehydrated)try{re(e,UI,t.containerInfo)}catch(ye){Ct(e,e.return,ye)}Hy&&(Hy=!1,dS(e)),t.effectDuration+=cf(m);break;case 4:d=hl,hl=jf(e.stateNode.containerInfo),mo(t,e),ho(e),hl=d;break;case 12:d=Ln(),mo(t,e),ho(e),e.stateNode.effectDuration+=_i(d);break;case 31:mo(t,e),ho(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,zf(e,d)));break;case 13:mo(t,e),ho(e),e.child.flags&8192&&e.memoizedState!==null!==(s!==null&&s.memoizedState!==null)&&(_p=Ba()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,zf(e,d)));break;case 22:m=e.memoizedState!==null;var T=s!==null&&s.memoizedState!==null,U=Pn,de=Ca;if(Pn=U||m,Ca=de||T,mo(t,e),Ca=de,Pn=U,T&&!m&&!U&&!de&&(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&ef(e,qe,Ue),ho(e),d&8192)e:for(t=e.stateNode,t._visibility=m?t._visibility&~Cd:t._visibility|Cd,!m||s===null||T||Pn||Ca||(ys(e),(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(e,qe,Ue,"Disconnect")),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){T=s=t;try{g=T.stateNode,m?re(T,MI,g):re(T,EI,T.stateNode,T.memoizedProps)}catch(ye){Ct(T,T.return,ye)}}}else if(t.tag===6){if(s===null){T=t;try{A=T.stateNode,m?re(T,AI,A):re(T,OI,A,T.memoizedProps)}catch(ye){Ct(T,T.return,ye)}}}else if(t.tag===18){if(s===null){T=t;try{E=T.stateNode,m?re(T,RI,E):re(T,DI,T.stateNode)}catch(ye){Ct(T,T.return,ye)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}d&4&&(d=e.updateQueue,d!==null&&(s=d.retryQueue,s!==null&&(d.retryQueue=null,zf(e,s))));break;case 19:mo(t,e),ho(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,zf(e,d)));break;case 30:break;case 21:break;default:mo(t,e),ho(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&((la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Ue-qe&&(oS(e.return.alternate,e.return)||Al(e,qe,Ue,"Mount"))),To(a),ql(o),Zt=l,la=n}function ho(e){var t=e.flags;if(t&2){try{re(e,JT,e)}catch(a){Ct(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function dS(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;dS(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Hl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)lS(e,t.alternate,t),t=t.sibling}function cS(e){var t=wo(),a=Ol(),o=Bl(),l=Nl();switch(e.tag){case 0:case 11:case 14:case 15:og(e,e.return,Bo),ys(e);break;case 1:_l(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount==="function"&&Kv(e,e.return,n),ys(e);break;case 27:re(e,sd,e.stateNode);case 26:case 5:_l(e,e.return),ys(e);break;case 22:e.memoizedState===null&&ys(e);break;case 30:ys(e);break;default:ys(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),To(t),ql(a),Zt=o,la=l}function ys(e){for(e=e.child;e!==null;)cS(e),e=e.sibling}function fS(e,t,a,o){var l=wo(),n=Ol(),s=Bl(),d=Nl(),m=a.flags;switch(a.tag){case 0:case 11:case 15:Fl(e,a,o),Qv(a,Bo);break;case 1:if(Fl(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&re(a,Ry,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{re(a,UT,t,e)}catch(g){Ct(a,a.return,g)}}o&&m&64&&Wv(a),Ki(a,a.return);break;case 27:aS(a);case 26:case 5:Fl(e,a,o),o&&t===null&&m&4&&eS(a),Ki(a,a.return);break;case 12:if(o&&m&4){m=Ln(),Fl(e,a,o),o=a.stateNode,o.effectDuration+=_i(m);try{re(a,Jv,a,t,xr,o.effectDuration)}catch(g){Ct(a,a.return,g)}}else Fl(e,a,o);break;case 31:Fl(e,a,o),o&&m&4&&sS(e,a);break;case 13:Fl(e,a,o),o&&m&4&&uS(e,a);break;case 22:a.memoizedState===null&&Fl(e,a,o),Ki(a,a.return);break;case 30:break;default:Fl(e,a,o)}(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(a,qe,Ue,Jt,Zt),To(l),ql(n),Zt=s,la=d}function Fl(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)fS(e,t.alternate,t,a),t=t.sibling}function ug(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&fs(e),a!=null&&zi(a))}function ig(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(fs(t),e!=null&&zi(e))}function il(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var n=t.sibling;pS(e,t,a,o,n!==null?n.actualStartTime:l),t=n}}function pS(e,t,a,o,l){var n=wo(),s=Ol(),d=Bl(),m=Nl(),g=yr,A=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&tt)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&tf(t,t.actualStartTime,l,Ma,a),il(e,t,a,o,l),A&2048&&Zv(t,uo|Ko);break;case 1:(t.mode&tt)!==ze&&0<t.actualStartTime&&((t.flags&128)!==0?Xm(t,t.actualStartTime,l,[]):(t.flags&1)!==0&&tf(t,t.actualStartTime,l,Ma,a)),il(e,t,a,o,l);break;case 3:var E=Ln(),T=Ma;Ma=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,il(e,t,a,o,l),Ma=T,A&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(fs(o),a!=null&&zi(a))),e.passiveEffectDuration+=cf(E);break;case 12:if(A&2048){A=Ln(),il(e,t,a,o,l),e=t.stateNode,e.passiveEffectDuration+=_i(A);try{re(t,KT,t,t.alternate,xr,e.passiveEffectDuration)}catch(U){Ct(t,t.return,U)}}else il(e,t,a,o,l);break;case 31:A=Ma,E=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,E!==null&&T===null?(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(Ma=!1,E=E.hydrationErrors,E!==null&&Xm(t,t.actualStartTime,l,E)):Ma=!0):Ma=!1,il(e,t,a,o,l),Ma=A;break;case 13:A=Ma,E=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,E===null||E.dehydrated===null||T!==null&&T.dehydrated!==null?Ma=!1:(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(Ma=!1,E=E.hydrationErrors,E!==null&&Xm(t,t.actualStartTime,l,E)):Ma=!0),il(e,t,a,o,l),Ma=A;break;case 23:break;case 22:T=t.stateNode,E=t.alternate,t.memoizedState!==null?T._visibility&Rn?il(e,t,a,o,l):Ji(e,t,a,o,l):T._visibility&Rn?il(e,t,a,o,l):(T._visibility|=Rn,yu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),l),(t.mode&tt)===ze||Ma||(e=t.actualStartTime,0<=e&&0.05<l-e&&ef(t,e,l),0<=qe&&0<=Ue&&0.05<Ue-qe&&ef(t,qe,Ue))),A&2048&&ug(E,t);break;case 24:il(e,t,a,o,l),A&2048&&ig(t.alternate,t);break;default:il(e,t,a,o,l)}if((t.mode&tt)!==ze){if(e=!Ma&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<l-a&&Al(t,a,l,"Mount");0<=qe&&0<=Ue&&((la||0.05<Jt)&&Dl(t,qe,Ue,Jt,Zt),e&&0.05<Ue-qe&&Al(t,qe,Ue,"Mount"))}To(n),ql(s),Zt=d,la=m,yr=g}function yu(e,t,a,o,l,n){l=l&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var s=t.sibling;mS(e,t,a,o,l,s!==null?s.actualStartTime:n),t=s}}function mS(e,t,a,o,l,n){var s=wo(),d=Ol(),m=Bl(),g=Nl(),A=yr;l&&(t.mode&tt)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&tf(t,t.actualStartTime,n,Ma,a);var E=t.flags;switch(t.tag){case 0:case 11:case 15:yu(e,t,a,o,l,n),Zv(t,uo);break;case 23:break;case 22:var T=t.stateNode;t.memoizedState!==null?T._visibility&Rn?yu(e,t,a,o,l,n):Ji(e,t,a,o,n):(T._visibility|=Rn,yu(e,t,a,o,l,n)),l&&E&2048&&ug(t.alternate,t);break;case 24:yu(e,t,a,o,l,n),l&&E&2048&&ig(t.alternate,t);break;default:yu(e,t,a,o,l,n)}(t.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(t,qe,Ue,Jt,Zt),To(s),ql(d),Zt=m,la=g,yr=A}function Ji(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var n=t.child;n!==null;){t=n.sibling;var s=e,d=a,m=o,g=t!==null?t.actualStartTime:l,A=yr;(n.mode&tt)!==ze&&0<n.actualStartTime&&(n.flags&1)!==0&&tf(n,n.actualStartTime,g,Ma,d);var E=n.flags;switch(n.tag){case 22:Ji(s,n,d,m,g),E&2048&&ug(n.alternate,n);break;case 24:Ji(s,n,d,m,g),E&2048&&ig(n.alternate,n);break;default:Ji(s,n,d,m,g)}yr=A,n=t}}function bu(e,t,a){if(e.subtreeFlags&Gd)for(e=e.child;e!==null;)hS(e,t,a),e=e.sibling}function hS(e,t,a){switch(e.tag){case 26:bu(e,t,a),e.flags&Gd&&e.memoizedState!==null&&GI(a,hl,e.memoizedState,e.memoizedProps);break;case 5:bu(e,t,a);break;case 3:case 4:var o=hl;hl=jf(e.stateNode.containerInfo),bu(e,t,a),hl=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Gd,Gd=16777216,bu(e,t,a),Gd=o):bu(e,t,a));break;default:bu(e,t,a)}}function gS(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ed(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],l=wo();Ua=o,vS(o,e),(o.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(o,qe,Ue,"Unmount"),To(l)}gS(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)yS(e),e=e.sibling}function yS(e){var t=wo(),a=Ol(),o=Bl(),l=Nl();switch(e.tag){case 0:case 11:case 15:ed(e),e.flags&2048&&lg(e,e.return,uo|Ko);break;case 3:var n=Ln();ed(e),e.stateNode.passiveEffectDuration+=cf(n);break;case 12:n=Ln(),ed(e),e.stateNode.passiveEffectDuration+=_i(n);break;case 22:n=e.stateNode,e.memoizedState!==null&&n._visibility&Rn&&(e.return===null||e.return.tag!==13)?(n._visibility&=~Rn,_f(e),(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(e,qe,Ue,"Disconnect")):ed(e);break;default:ed(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),To(t),ql(a),la=l,Zt=o}function _f(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],l=wo();Ua=o,vS(o,e),(o.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(o,qe,Ue,"Unmount"),To(l)}gS(e)}for(e=e.child;e!==null;)bS(e),e=e.sibling}function bS(e){var t=wo(),a=Ol(),o=Bl(),l=Nl();switch(e.tag){case 0:case 11:case 15:lg(e,e.return,uo),_f(e);break;case 22:var n=e.stateNode;n._visibility&Rn&&(n._visibility&=~Rn,_f(e));break;default:_f(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),To(t),ql(a),la=l,Zt=o}function vS(e,t){for(;Ua!==null;){var a=Ua,o=a,l=t,n=wo(),s=Ol(),d=Bl(),m=Nl();switch(o.tag){case 0:case 11:case 15:lg(o,l,uo);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool,l!=null&&fs(l));break;case 24:zi(o.memoizedState.cache)}if((o.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(o,qe,Ue,Jt,Zt),To(n),ql(s),la=m,Zt=d,o=a.child,o!==null)o.return=a,Ua=o;else e:for(a=e;Ua!==null;){if(o=Ua,n=o.sibling,s=o.return,nS(o),o===a){Ua=null;break e}if(n!==null){n.return=s,Ua=n;break e}Ua=s}}}function aI(){CM.forEach(function(e){return e()})}function SS(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ro(e){if((ht&Aa)!==Pa&&ot!==0)return ot&-ot;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),yg()):O()}function xS(){if(bo===0)if((ot&536870912)===0||dt){var e=np;np<<=1,(np&3932160)===0&&(np=262144),bo=e}else bo=536870912;return e=qo.current,e!==null&&(e.flags|=32),bo}function oa(e,t,a){if(oi&&console.error("useInsertionEffect must not schedule updates."),Ky&&(Vp=!0),e===Pt&&(Dt===Es||Dt===Os)||e.cancelPendingCommit!==null)Su(e,0),ir(e,ot,bo,!1);if(Wn(e,a),(ht&Aa)!==Pa&&e===Pt){if(jl)switch(t.tag){case 0:case 11:case 15:e=lt&&X(lt)||"Unknown",YC.has(e)||(YC.add(e),t=X(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:jC||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),jC=!0)}}else Ql&&Ri(e,t,a),fI(t),e===Pt&&((ht&Aa)===Pa&&(Ar|=a),ea===Ir&&ir(e,ot,bo,!1)),Gl(e)}function LS(e,t,a){if((ht&(Aa|No))!==Pa)throw Error("Should not already be working.");if(ot!==0&&lt!==null){var o=lt,l=Ba();switch(_L){case Xd:case Es:var n=Md;Gt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",n,l,Vo,void 0,"primary-light")):console.timeStamp("Suspended",n,l,Vo,void 0,"primary-light"));break;case Os:n=Md,Gt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",n,l,Vo,void 0,"primary-light")):console.timeStamp("Action",n,l,Vo,void 0,"primary-light"));break;default:Gt&&(o=l-Md,3>o||console.timeStamp("Blocked",Md,l,Vo,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}n=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Jr(e,t))?lI(e,t):cg(e,t,!0);var s=a;do{if(n===zn){ti&&!a&&ir(e,t,0,!1),t=Dt,Md=Sa(),_L=t;break}else{if(o=Ba(),l=e.current.alternate,s&&!oI(l)){Co(t),l=Na,n=o,!Gt||n<=l||(ca?ca.run(console.timeStamp.bind(console,"Teared Render",l,n,it,st,"error")):console.timeStamp("Teared Render",l,n,it,st,"error")),bs(t,o),n=cg(e,t,!1),s=!1;continue}if(n===Ds){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){Co(t),jm(Na,o,t,ca),bs(t,o),t=d;e:{o=e,n=s,s=Yd;var m=o.current.memoizedState.isDehydrated;if(m&&(Su(o,d).flags|=256),d=cg(o,d,!1),d!==Ds){if(Vy&&!m){o.errorRecoveryDisabledLanes|=n,Ar|=n,n=Ir;break e}o=io,io=s,o!==null&&(io===null?io=o:io.push.apply(io,o))}n=d}if(s=!1,n!==Ds)continue;else o=Ba()}}if(n===$d){Co(t),jm(Na,o,t,ca),bs(t,o),Su(e,0),ir(e,t,0,!0);break}e:{switch(a=e,n){case zn:case $d:throw Error("Root did not complete. This is a bug in React.");case Ir:if((t&4194048)!==t)break;case Np:Co(t),L0(Na,o,t,ca),bs(t,o),l=t,(l&127)!==0?xp=o:(l&4194048)!==0&&(Lp=o),ir(a,t,bo,!Rr);break e;case Ds:io=null;break;case Bp:case qC:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)fg(a,l,t,io,Qd,zp,bo,Ar,qs,n,null,null,Na,o);else{if((t&62914560)===t&&(s=_p+UC-Ba(),10<s)){if(ir(a,t,bo,!Rr),Kr(a,0,!0)!==0)break e;gl=t,a.timeoutHandle=a1(CS.bind(null,a,l,io,Qd,zp,t,bo,Ar,qs,Rr,n,"Throttled",Na,o),s);break e}CS(a,l,io,Qd,zp,t,bo,Ar,qs,Rr,n,null,Na,o)}}}break}while(1);Gl(e)}function CS(e,t,a,o,l,n,s,d,m,g,A,E,T,U){e.timeoutHandle=zs;var de=t.subtreeFlags,ye=null;if(de&8192||(de&16785408)===16785408){if(ye={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:bn},hS(t,n,ye),de=(n&62914560)===n?_p-Ba():(n&4194048)===n?NC-Ba():0,de=VI(ye,de),de!==null){gl=n,e.cancelPendingCommit=de(fg.bind(null,e,t,n,a,o,l,s,d,m,A,ye,ye.waitingForViewTransition?"Waiting for the previous Animation":0<ye.count?0<ye.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ye.imgCount===1?"Suspended on an Image":0<ye.imgCount?"Suspended on Images":null,T,U)),ir(e,n,s,!g);return}}fg(e,t,n,a,o,l,s,d,m,A,ye,E,T,U)}function oI(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var l=a[o],n=l.getSnapshot;l=l.value;try{if(!no(n(),l))return!1}catch(s){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ir(e,t,a,o){t&=~$y,t&=~Ar,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var l=t;0<l;){var n=31-ao(l),s=1<<n;o[n]=-1,l&=~s}a!==0&&es(e,a,t)}function vu(){return(ht&(Aa|No))===Pa?(od(0,!1),!1):!0}function dg(){if(lt!==null){if(Dt===yo)var e=lt.return;else e=lt,sf(),xh(e),Xu=null,Pd=0,e=lt;for(;e!==null;)Yv(e.alternate,e),e=e.return;lt=null}}function bs(e,t){(e&127)!==0&&(Lr=t),(e&4194048)!==0&&(en=t),(e&62914560)!==0&&(PL=t),(e&2080374784)!==0&&(zL=t)}function Su(e,t){Gt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",st,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",st,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",st,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",st,"primary-light"));var a=Na;if(Na=Sa(),ot!==0&&0<a){if(Co(ot),ea===Bp||ea===Ir)L0(a,Na,t,ca);else{var o=Na,l=ca;if(Gt&&!(o<=a)){var n=(t&738197653)===t?"tertiary-dark":"primary-dark",s=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";l?l.run(console.timeStamp.bind(console,s,a,o,it,st,n)):console.timeStamp(s,a,o,it,st,n)}}bs(ot,Na)}if(a=ca,ca=null,(t&127)!==0){ca=Td,l=0<=Jl&&Jl<Lr?Lr:Jl,o=0<=Cs&&Cs<Lr?Lr:Cs,n=0<=o?o:0<=l?l:Na,0<=xp?(Co(2),C0(xp,n,t,a)):(Cp&127)!==0&&(Co(2),Ui(Lr,n,qn)),a=l;var d=o,m=Id,g=0<Gu,A=Cr===wd,E=Cr===Sp;if(l=Na,o=Td,n=Cy,s=ky,Gt){if(it="Blocking",0<a?a>l&&(a=l):a=l,0<d?d>a&&(d=a):d=a,m!==null&&a>d){var T=g?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,g?"Consecutive":"Event: "+m,d,a,it,st,T)):console.timeStamp(g?"Consecutive":"Event: "+m,d,a,it,st,T)}l>a&&(d=A?"error":(t&738197653)===t?"tertiary-light":"primary-light",A=E?"Promise Resolved":A?"Cascading Update":5<l-a?"Update Blocked":"Update",E=[],s!=null&&E.push(["Component name",s]),n!=null&&E.push(["Method name",n]),a={start:a,end:l,detail:{devtools:{properties:E,track:it,trackGroup:st,color:d}}},o?o.run(performance.measure.bind(performance,A,a)):performance.measure(A,a))}Jl=-1.1,Cr=0,ky=Cy=null,xp=-1.1,Gu=Cs,Cs=-1.1,Lr=Sa()}if((t&4194048)!==0&&(ca=Rd,l=0<=On&&On<en?en:On,a=0<=Zo&&Zo<en?en:Zo,o=0<=kr&&kr<en?en:kr,n=0<=o?o:0<=a?a:Na,0<=Lp?(Co(256),C0(Lp,n,t,ca)):(Cp&4194048)!==0&&(Co(256),Ui(en,n,qn)),E=o,d=ks,m=0<wr,g=wy===Sp,n=Na,o=Rd,s=NL,A=UL,Gt&&(it="Transition",0<a?a>n&&(a=n):a=n,0<l?l>a&&(l=a):l=a,0<E?E>l&&(E=l):E=l,l>E&&d!==null&&(T=m?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,m?"Consecutive":"Event: "+d,E,l,it,st,T)):console.timeStamp(m?"Consecutive":"Event: "+d,E,l,it,st,T)),a>l&&(o?o.run(console.timeStamp.bind(console,"Action",l,a,it,st,"primary-dark")):console.timeStamp("Action",l,a,it,st,"primary-dark")),n>a&&(l=g?"Promise Resolved":5<n-a?"Update Blocked":"Update",E=[],A!=null&&E.push(["Component name",A]),s!=null&&E.push(["Method name",s]),a={start:a,end:n,detail:{devtools:{properties:E,track:it,trackGroup:st,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,l,a)):performance.measure(l,a))),Zo=On=-1.1,wy=0,Lp=-1.1,wr=kr,kr=-1.1,en=Sa()),(t&62914560)!==0&&(Cp&62914560)!==0&&(Co(4194304),Ui(PL,Na,qn)),(t&2080374784)!==0&&(Cp&2080374784)!==0&&(Co(268435456),Ui(zL,Na,qn)),a=e.timeoutHandle,a!==zs&&(e.timeoutHandle=zs,NM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),gl=0,dg(),Pt=e,lt=a=vn(e.current,null),ot=t,Dt=yo,Uo=null,Rr=!1,ti=Jr(e,t),Vy=!1,ea=zn,qs=bo=$y=Ar=Mr=0,io=Yd=null,zp=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)l=31-ao(o),n=1<<l,t|=e[l],o&=~n;return an=t,af(),e=AL(),1000<e-ML&&(G.recentlyCreatedOwnerStacks=0,ML=e),pl.discardPendingWarnings(),a}function kS(e,t){Fe=null,G.H=Fd,G.getCurrentStack=null,jl=!1,Do=null,t===$u||t===Ip?(t=$0(),Dt=Xd):t===My?(t=$0(),Dt=BC):Dt=t===zy?Gy:t!==null&&typeof t==="object"&&typeof t.then==="function"?jd:Up,Uo=t;var a=lt;a===null?(ea=$d,Of(e,ko(t,e.current))):a.mode&tt&&uh(a)}function wS(){var e=qo.current;return e===null?!0:(ot&4194048)===ot?Wo===null?!0:!1:(ot&62914560)===ot||(ot&536870912)!==0?e===Wo:!1}function TS(){var e=G.H;return G.H=Fd,e===null?Fd:e}function IS(){var e=G.A;return G.A=LM,e}function Hf(e){ca===null&&(ca=e._debugTask==null?null:e._debugTask)}function Ff(){ea=Ir,Rr||(ot&4194048)!==ot&&qo.current!==null||(ti=!0),(Mr&134217727)===0&&(Ar&134217727)===0||Pt===null||ir(Pt,ot,bo,!1)}function cg(e,t,a){var o=ht;ht|=Aa;var l=TS(),n=IS();if(Pt!==e||ot!==t){if(Ql){var s=e.memoizedUpdaters;0<s.size&&(ad(e,ot),s.clear()),Kn(e,t)}Qd=null,Su(e,t)}t=!1,s=ea;e:do try{if(Dt!==yo&&lt!==null){var d=lt,m=Uo;switch(Dt){case Gy:dg(),s=Np;break e;case Xd:case Es:case Os:case jd:qo.current===null&&(t=!0);var g=Dt;if(Dt=yo,Uo=null,xu(e,d,m,g),a&&ti){s=zn;break e}break;default:g=Dt,Dt=yo,Uo=null,xu(e,d,m,g)}}RS(),s=ea;break}catch(A){kS(e,A)}while(1);return t&&e.shellSuspendCounter++,sf(),ht=o,G.H=l,G.A=n,lt===null&&(Pt=null,ot=0,af()),s}function RS(){for(;lt!==null;)MS(lt)}function lI(e,t){var a=ht;ht|=Aa;var o=TS(),l=IS();if(Pt!==e||ot!==t){if(Ql){var n=e.memoizedUpdaters;0<n.size&&(ad(e,ot),n.clear()),Kn(e,t)}Qd=null,Hp=Ba()+PC,Su(e,t)}else ti=Jr(e,t);e:do try{if(Dt!==yo&&lt!==null)t:switch(t=lt,n=Uo,Dt){case Up:Dt=yo,Uo=null,xu(e,t,n,Up);break;case Es:case Os:if(G0(n)){Dt=yo,Uo=null,AS(t);break}t=function(){Dt!==Es&&Dt!==Os||Pt!==e||(Dt=Pp),Gl(e)},n.then(t,t);break e;case Xd:Dt=Pp;break e;case BC:Dt=Fy;break e;case Pp:G0(n)?(Dt=yo,Uo=null,AS(t)):(Dt=yo,Uo=null,xu(e,t,n,Pp));break;case Fy:var s=null;switch(lt.tag){case 26:s=lt.memoizedState;case 5:case 27:var d=lt;if(s?Lx(s):d.stateNode.complete){Dt=yo,Uo=null;var m=d.sibling;if(m!==null)lt=m;else{var g=d.return;g!==null?(lt=g,Gf(g)):lt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Dt=yo,Uo=null,xu(e,t,n,Fy);break;case jd:Dt=yo,Uo=null,xu(e,t,n,jd);break;case Gy:dg(),ea=Np;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?RS():nI();break}catch(A){kS(e,A)}while(1);if(sf(),G.H=o,G.A=l,ht=a,lt!==null)return zn;return Pt=null,ot=0,af(),ea}function nI(){for(;lt!==null&&!oR();)MS(lt)}function MS(e){var t=e.alternate;(e.mode&tt)!==ze?(sh(e),t=re(e,tg,t,e,an),uh(e)):t=re(e,tg,t,e,an),e.memoizedProps=e.pendingProps,t===null?Gf(e):lt=t}function AS(e){var t=re(e,rI,e);e.memoizedProps=e.pendingProps,t===null?Gf(e):lt=t}function rI(e){var t=e.alternate,a=(e.mode&tt)!==ze;switch(a&&sh(e),e.tag){case 15:case 0:t=Hv(t,e,e.pendingProps,e.type,void 0,ot);break;case 11:t=Hv(t,e,e.pendingProps,e.type.render,e.ref,ot);break;case 5:xh(e);default:Yv(t,e),e=lt=M0(e,an),t=tg(t,e,an)}return a&&uh(e),t}function xu(e,t,a,o){sf(),xh(t),Xu=null,Pd=0;var l=t.return;try{if(VT(e,l,t,a,ot)){ea=$d,Of(e,ko(a,e.current)),lt=null;return}}catch(n){if(l!==null)throw lt=l,n;ea=$d,Of(e,ko(a,e.current)),lt=null;return}if(t.flags&32768){if(dt||o===Up)e=!0;else if(ti||(ot&536870912)!==0)e=!1;else if(Rr=e=!0,o===Es||o===Os||o===Xd||o===jd)o=qo.current,o!==null&&o.tag===13&&(o.flags|=16384);DS(t,e)}else Gf(t)}function Gf(e){var t=e;do{if((t.flags&32768)!==0){DS(t,Rr);return}var a=t.alternate;if(e=t.return,sh(t),a=re(t,jT,a,t,an),(t.mode&tt)!==ze&&P0(t),a!==null){lt=a;return}if(t=t.sibling,t!==null){lt=t;return}lt=t=e}while(t!==null);ea===zn&&(ea=qC)}function DS(e,t){do{var a=YT(e.alternate,e);if(a!==null){a.flags&=32767,lt=a;return}if((e.mode&tt)!==ze){P0(e),a=e.actualDuration;for(var o=e.child;o!==null;)a+=o.actualDuration,o=o.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){lt=e;return}lt=e=a}while(e!==null);ea=Np,lt=null}function fg(e,t,a,o,l,n,s,d,m,g,A,E,T,U){e.cancelPendingCommit=null;do td();while(wa!==Er);if(pl.flushLegacyContextWarning(),pl.flushPendingUnsafeLifecycleWarnings(),(ht&(Aa|No))!==Pa)throw Error("Should not already be working.");if(Co(a),g===Ds?jm(T,U,a,ca):o!==null?DT(T,U,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ca):AT(T,U,a,ca),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(n=t.lanes|t.childLanes,n|=by,$c(e,a,n,s,d,m),e===Pt&&(lt=Pt=null,ot=0),ai=t,Or=e,gl=a,Yy=n,Zy=l,VC=o,Qy=U,$C=E,yl=Fp,XC=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,cI(Iu,function(){return tc=window.event,yl===Fp&&(yl=jy),NS(),null})):(e.callbackNode=null,e.callbackPriority=0),En=null,xr=Sa(),E!==null&&ET(U,xr,E,ca),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null,l=kt.p,kt.p=Eo,s=ht,ht|=No;try{eI(e,t,a)}finally{ht=s,kt.p=l,G.T=o}}wa=_C,ES(),OS(),qS()}}function ES(){if(wa===_C){wa=Er;var e=Or,t=ai,a=gl,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var l=kt.p;kt.p=Eo;var n=ht;ht|=No;try{Ju=a,ei=e,ff(),iS(t,e),ei=Ju=null,a=sb;var s=v0(e.containerInfo),d=a.focusedElem,m=a.selectionRange;if(s!==d&&d&&d.ownerDocument&&b0(d.ownerDocument.documentElement,d)){if(m!==null&&Vm(d)){var{start:g,end:A}=m;if(A===void 0&&(A=g),"selectionStart"in d)d.selectionStart=g,d.selectionEnd=Math.min(A,d.value.length);else{var E=d.ownerDocument||document,T=E&&E.defaultView||window;if(T.getSelection){var U=T.getSelection(),de=d.textContent.length,ye=Math.min(m.start,de),Ft=m.end===void 0?ye:Math.min(m.end,de);!U.extend&&ye>Ft&&(s=Ft,Ft=ye,ye=s);var pt=y0(d,ye),w=y0(d,Ft);if(pt&&w&&(U.rangeCount!==1||U.anchorNode!==pt.node||U.anchorOffset!==pt.offset||U.focusNode!==w.node||U.focusOffset!==w.offset)){var I=E.createRange();I.setStart(pt.node,pt.offset),U.removeAllRanges(),ye>Ft?(U.addRange(I),U.extend(w.node,w.offset)):(I.setEnd(w.node,w.offset),U.addRange(I))}}}}E=[];for(U=d;U=U.parentNode;)U.nodeType===1&&E.push({element:U,left:U.scrollLeft,top:U.scrollTop});typeof d.focus==="function"&&d.focus();for(d=0;d<E.length;d++){var M=E[d];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}lm=!!rb,sb=rb=null}finally{ht=n,kt.p=l,G.T=o}}e.current=t,wa=HC}}function OS(){if(wa===HC){wa=Er;var e=XC;if(e!==null){xr=Sa();var t=Dn,a=xr;!Gt||a<=t||(qn?qn.run(console.timeStamp.bind(console,e,t,a,it,st,"secondary-light")):console.timeStamp(e,t,a,it,st,"secondary-light"))}e=Or,t=ai,a=gl;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var l=kt.p;kt.p=Eo;var n=ht;ht|=No;try{Ju=a,ei=e,ff(),lS(e,t.alternate,t),ei=Ju=null}finally{ht=n,kt.p=l,G.T=o}}e=Qy,t=$C,Dn=Sa(),e=t===null?e:xr,t=Dn,a=yl===Xy,o=ca,En!==null?k0(e,t,En,!1,o):!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,it,st,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,it,st,a?"error":"secondary-dark")),wa=FC}}function qS(){if(wa===GC||wa===FC){if(wa===GC){var e=Dn;Dn=Sa();var t=Dn,a=yl===Xy;!Gt||t<=e||(qn?qn.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,it,st,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,it,st,a?" error":"secondary-light")),yl!==Xy&&(yl=zC)}wa=Er,lR(),e=Or;var o=ai;t=gl,a=VC;var l=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;l?wa=Gp:(wa=Er,ai=Or=null,BS(e,e.pendingLanes),Bs=0,Wd=null);var n=e.pendingLanes;if(n===0&&(Dr=null),l||_S(e),n=y(t),o=o.stateNode,Ka&&typeof Ka.onCommitFiberRoot==="function")try{var s=(o.current.flags&128)===128;switch(n){case Eo:var d=Zg;break;case cl:d=Wg;break;case Zl:d=Iu;break;case sp:d=Kg;break;default:d=Iu}Ka.onCommitFiberRoot(Ru,o,d,s)}catch(E){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",E))}if(Ql&&e.memoizedUpdaters.clear(),aI(),a!==null){s=G.T,d=kt.p,kt.p=Eo,G.T=null;try{var m=e.onRecoverableError;for(o=0;o<a.length;o++){var g=a[o],A=sI(g.stack);re(g.source,m,g.value,A)}}finally{G.T=s,kt.p=d}}(gl&3)!==0&&td(),Gl(e),n=e.pendingLanes,(t&261930)!==0&&(n&42)!==0?(wp=!0,e===Wy?Zd++:(Zd=0,Wy=e)):Zd=0,l||bs(t,Dn),od(0,!1)}}function sI(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function BS(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zi(t)))}function td(){return ES(),OS(),qS(),NS()}function NS(){if(wa!==Gp)return!1;var e=Or,t=Yy;Yy=0;var a=y(gl),o=Zl===0||Zl>a?Zl:a;a=G.T;var l=kt.p;try{kt.p=o,G.T=null;var n=Zy;Zy=null,o=Or;var s=gl;if(wa=Er,ai=Or=null,gl=0,(ht&(Aa|No))!==Pa)throw Error("Cannot flush passive effects while already rendering.");Co(s),Ky=!0,Vp=!1;var d=0;if(En=null,d=Ba(),yl===zC)Ui(Dn,d,qn);else{var m=Dn,g=d,A=yl===jy;!Gt||g<=m||(ca?ca.run(console.timeStamp.bind(console,A?"Waiting for Paint":"Waiting",m,g,it,st,"secondary-light")):console.timeStamp(A?"Waiting for Paint":"Waiting",m,g,it,st,"secondary-light"))}m=ht,ht|=No;var E=o.current;ff(),yS(E);var T=o.current;E=Qy,ff(),pS(o,T,s,n,E),_S(o),ht=m;var U=Ba();if(T=d,E=ca,En!==null?k0(T,U,En,!0,E):!Gt||U<=T||(E?E.run(console.timeStamp.bind(console,"Remaining Effects",T,U,it,st,"secondary-dark")):console.timeStamp("Remaining Effects",T,U,it,st,"secondary-dark")),bs(s,U),od(0,!1),Vp?o===Wd?Bs++:(Bs=0,Wd=o):Bs=0,Vp=Ky=!1,Ka&&typeof Ka.onPostCommitFiberRoot==="function")try{Ka.onPostCommitFiberRoot(Ru,o)}catch(ye){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",ye))}var de=o.current.stateNode;return de.effectDuration=0,de.passiveEffectDuration=0,!0}finally{kt.p=l,G.T=a,BS(e,t)}}function US(e,t,a){t=ko(a,t),z0(t),t=Vh(e.stateNode,t,2),e=nr(e,t,2),e!==null&&(Wn(e,2),Gl(e))}function Ct(e,t,a){if(oi=!1,e.tag===3)US(e,e,a);else{for(;t!==null;){if(t.tag===3){US(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(Dr===null||!Dr.has(o))){e=ko(a,e),z0(e),a=$h(2),o=nr(t,a,2),o!==null&&(Xh(a,o,t,e),Wn(o,2),Gl(o));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
153
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:" You returned: "+o,re(t,function(d,m){console.error("%s must not return anything besides a function, which is used for clean-up.%s",d,m)},n,s)}a=a.next}while(a!==l)}}catch(d){Ct(t,t.return,d)}}function gu(e,t,a){try{var o=t.updateQueue,l=o!==null?o.lastEffect:null;if(l!==null){var n=l.next;o=n;do{if((o.tag&e)===e){var s=o.inst,d=s.destroy;d!==void 0&&(s.destroy=void 0,(e&so)!==Ap&&(oi=!0),l=t,re(l,vM,l,a,d),(e&so)!==Ap&&(oi=!1))}o=o.next}while(o!==n)}}catch(m){Ct(t,t.return,m)}}function Wv(e,t){zl(e)?(Pl(),Wi(t,e),Ul()):Wi(t,e)}function lg(e,t,a){zl(e)?(Pl(),gu(a,e,t),Ul()):gu(a,e,t)}function Kv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Ku||(a.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),a.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{re(e,ev,t,a)}catch(o){Ct(e,e.return,o)}}}function ZT(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function WT(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Ku||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(e)||"instance"),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(e)||"instance"));try{var l=gs(e.type,a),n=re(e,ZT,t,l,o);a=OC,n!==void 0||a.has(e.type)||(a.add(e.type),re(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",X(e))})),t.__reactInternalSnapshotBeforeUpdate=n}catch(s){Ct(e,e.return,s)}}function Jv(e,t,a){a.props=gs(e.type,e.memoizedProps),a.state=e.memoizedState,zl(e)?(Pl(),re(e,KL,e,t,a),Ul()):re(e,KL,e,t,a)}function KT(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var a=e.stateNode;break;case 30:a=e.stateNode;break;default:a=e.stateNode}if(typeof t==="function")if(zl(e))try{Pl(),e.refCleanup=t(a)}finally{Ul()}else e.refCleanup=t(a);else typeof t==="string"?console.error("String refs are no longer supported."):t.hasOwnProperty("current")||console.error("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",X(e)),t.current=a}}function Ki(e,t){try{re(e,KT,e)}catch(a){Ct(e,t,a)}}function _l(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(zl(e))try{Pl(),re(e,o)}finally{Ul(e)}else re(e,o)}catch(l){Ct(e,t,l)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(zl(e))try{Pl(),re(e,a,null)}finally{Ul(e)}else re(e,a,null)}catch(l){Ct(e,t,l)}else a.current=null}function eS(e,t,a,o){var l=e.memoizedProps,n=l.id,s=l.onCommit;l=l.onRender,t=t===null?"mount":"update",kp&&(t="nested-update"),typeof l==="function"&&l(n,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof s==="function"&&s(n,t,o,a)}function JT(e,t,a,o){var l=e.memoizedProps;e=l.id,l=l.onPostCommit,t=t===null?"mount":"update",kp&&(t="nested-update"),typeof l==="function"&&l(e,t,o,a)}function tS(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{re(e,CI,o,t,a,e)}catch(l){Ct(e,e.return,l)}}function ng(e,t,a){try{re(e,wI,e.stateNode,e.type,a,t,e)}catch(o){Ct(e,e.return,o)}}function aS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&cr(e.type)||e.tag===4}function rg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||aS(e.return))return null;e=e.return}e.sibling.return=e.return;for(e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&cr(e.type))continue e;if(e.flags&2)continue e;if(e.child===null||e.tag===4)continue e;else e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function sg(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(ix(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(ix(a),t=a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a,t.appendChild(e),a=a._reactRootContainer,a!==null&&a!==void 0||t.onclick!==null||(t.onclick=bn));else if(o!==4&&(o===27&&cr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(sg(e,t,a),e=e.sibling;e!==null;)sg(e,t,a),e=e.sibling}function Pf(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?a.insertBefore(e,t):a.appendChild(e);else if(o!==4&&(o===27&&cr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Pf(e,t,a),e=e.sibling;e!==null;)Pf(e,t,a),e=e.sibling}function eI(e){for(var t,a=e.return;a!==null;){if(aS(a)){t=a;break}a=a.return}if(t==null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");switch(t.tag){case 27:t=t.stateNode,a=rg(e),Pf(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(ux(a),t.flags&=-33),t=rg(e),Pf(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=rg(e),sg(e,a,t);break;default:throw Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function oS(e){var{stateNode:t,memoizedProps:a}=e;try{re(e,HI,e.type,a,t,e)}catch(o){Ct(e,e.return,o)}}function lS(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)===0:!1}function tI(e,t){if(e=e.containerInfo,rb=lm,e=S0(e),Vm(e)){if("selectionStart"in e)var a={start:e.selectionStart,end:e.selectionEnd};else e:{a=(a=e.ownerDocument)&&a.defaultView||window;var o=a.getSelection&&a.getSelection();if(o&&o.rangeCount!==0){a=o.anchorNode;var l=o.anchorOffset,n=o.focusNode;o=o.focusOffset;try{a.nodeType,n.nodeType}catch(de){a=null;break e}var s=0,d=-1,m=-1,g=0,A=0,E=e,T=null;t:for(;;){for(var U;;){if(E!==a||l!==0&&E.nodeType!==3||(d=s+l),E!==n||o!==0&&E.nodeType!==3||(m=s+o),E.nodeType===3&&(s+=E.nodeValue.length),(U=E.firstChild)===null)break;T=E,E=U}for(;;){if(E===e)break t;if(T===a&&++g===l&&(d=s),T===n&&++A===o&&(m=s),(U=E.nextSibling)!==null)break;E=T,T=E.parentNode}E=U}a=d===-1||m===-1?null:{start:d,end:m}}else a=null}a=a||{start:0,end:0}}else a=null;sb={focusedElem:e,selectionRange:a},lm=!1;for(Ua=t;Ua!==null;)if(t=Ua,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ua=e;else for(;Ua!==null;){switch(e=t=Ua,a=e.alternate,l=e.flags,e.tag){case 0:if((l&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)l=e[a],l.ref.impl=l.nextImpl;break;case 11:case 15:break;case 1:(l&1024)!==0&&a!==null&&WT(e,a);break;case 3:if((l&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Ig(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Ig(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((l&1024)!==0)throw Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}if(e=t.sibling,e!==null){e.return=t.return,Ua=e;break}Ua=t.return}}function nS(e,t,a){var o=wo(),l=Ol(),n=Bl(),s=Nl(),d=a.flags;switch(a.tag){case 0:case 11:case 15:Hl(e,a),d&4&&Zv(a,Bo|Ko);break;case 1:if(Hl(e,a),d&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Ku||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(a)||"instance")),zl(a)?(Pl(),re(a,Ry,a,e),Ul()):re(a,Ry,a,e);else{var m=gs(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Ku||(e.props!==a.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",X(a)||"instance"),e.state!==a.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",X(a)||"instance")),zl(a)?(Pl(),re(a,QL,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate),Ul()):re(a,QL,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate)}d&64&&Kv(a),d&512&&Ki(a,a.return);break;case 3:if(t=Ln(),Hl(e,a),d&64&&(d=a.updateQueue,d!==null)){if(m=null,a.child!==null)switch(a.child.tag){case 27:case 5:m=a.child.stateNode;break;case 1:m=a.child.stateNode}try{re(a,ev,d,m)}catch(A){Ct(a,a.return,A)}}e.effectDuration+=cf(t);break;case 27:t===null&&d&4&&oS(a);case 26:case 5:if(Hl(e,a),t===null){if(d&4)tS(a);else if(d&64){e=a.type,t=a.memoizedProps,m=a.stateNode;try{re(a,kI,m,e,t,a)}catch(A){Ct(a,a.return,A)}}}d&512&&Ki(a,a.return);break;case 12:if(d&4){d=Ln(),Hl(e,a),e=a.stateNode,e.effectDuration+=_i(d);try{re(a,eS,a,t,xr,e.effectDuration)}catch(A){Ct(a,a.return,A)}}else Hl(e,a);break;case 31:Hl(e,a),d&4&&uS(e,a);break;case 13:Hl(e,a),d&4&&iS(e,a),d&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(d=dI.bind(null,a),UI(e,d))));break;case 22:if(d=a.memoizedState!==null||Pn,!d){t=t!==null&&t.memoizedState!==null||Ca,m=Pn;var g=Ca;Pn=d,(Ca=t)&&!g?(Fl(e,a,(a.subtreeFlags&8772)!==0),(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&ef(a,qe,Ue)):Hl(e,a),Pn=m,Ca=g}break;case 30:break;default:Hl(e,a)}(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&((la||0.05<Jt)&&Dl(a,qe,Ue,Jt,Zt),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<Ue-qe&&(lS(a.return.alternate,a.return)||Al(a,qe,Ue,"Mount"))),To(o),ql(l),Zt=n,la=s}function rS(e){var t=e.alternate;t!==null&&(e.alternate=null,rS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&me(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wn(e,t,a){for(a=a.child;a!==null;)sS(e,t,a),a=a.sibling}function sS(e,t,a){if(Ka&&typeof Ka.onCommitFiberUnmount==="function")try{Ka.onCommitFiberUnmount(Ru,a)}catch(g){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",g))}var o=wo(),l=Ol(),n=Bl(),s=Nl();switch(a.tag){case 26:Ca||_l(a,t),wn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Ca||_l(a,t);var d=ka,m=go;cr(a.type)&&(ka=a.stateNode,go=!1),wn(e,t,a),re(a,sd,a.stateNode),ka=d,go=m;break;case 5:Ca||_l(a,t);case 6:if(d=ka,m=go,ka=null,wn(e,t,a),ka=d,go=m,ka!==null)if(go)try{re(a,RI,ka,a.stateNode)}catch(g){Ct(a,t,g)}else try{re(a,II,ka,a.stateNode)}catch(g){Ct(a,t,g)}break;case 18:ka!==null&&(go?(e=ka,dx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),ku(e)):dx(ka,a.stateNode));break;case 4:d=ka,m=go,ka=a.stateNode.containerInfo,go=!0,wn(e,t,a),ka=d,go=m;break;case 0:case 11:case 14:case 15:gu(so,a,t),Ca||og(a,t,Bo),wn(e,t,a);break;case 1:Ca||(_l(a,t),d=a.stateNode,typeof d.componentWillUnmount==="function"&&Jv(a,t,d)),wn(e,t,a);break;case 21:wn(e,t,a);break;case 22:Ca=(d=Ca)||a.memoizedState!==null,wn(e,t,a),Ca=d;break;default:wn(e,t,a)}(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(a,qe,Ue,Jt,Zt),To(o),ql(l),Zt=n,la=s}function uS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{re(t,zI,e)}catch(a){Ct(t,t.return,a)}}}function iS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{re(t,_I,e)}catch(a){Ct(t,t.return,a)}}function aI(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new qC),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new qC),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function zf(e,t){var a=aI(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Ql)if(Ju!==null&&ei!==null)ad(ei,Ju);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var l=cI.bind(null,e,o);o.then(l,l)}})}function mo(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var l=e,n=t,s=a[o],d=wo(),m=n;e:for(;m!==null;){switch(m.tag){case 27:if(cr(m.type)){ka=m.stateNode,go=!1;break e}break;case 5:ka=m.stateNode,go=!1;break e;case 3:case 4:ka=m.stateNode.containerInfo,go=!0;break e}m=m.return}if(ka===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");sS(l,n,s),ka=null,go=!1,(s.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(s,qe,Ue,"Unmount"),To(d),l=s,n=l.alternate,n!==null&&(n.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)dS(t,e),t=t.sibling}function dS(e,t){var a=wo(),o=Ol(),l=Bl(),n=Nl(),{alternate:s,flags:d}=e;switch(e.tag){case 0:case 11:case 14:case 15:mo(t,e),ho(e),d&4&&(gu(so|Ko,e,e.return),Wi(so|Ko,e),og(e,e.return,Bo|Ko));break;case 1:if(mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),d&64&&Pn&&(d=e.updateQueue,d!==null&&(s=d.callbacks,s!==null))){var m=d.shared.hiddenCallbacks;d.shared.hiddenCallbacks=m===null?s:m.concat(s)}break;case 26:if(m=hl,mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),d&4){var g=s!==null?s.memoizedState:null;if(d=e.memoizedState,s===null)if(d===null)if(e.stateNode===null){e:{d=e.type,s=e.memoizedProps,m=m.ownerDocument||m;t:switch(d){case"title":if(g=m.getElementsByTagName("title")[0],!g||g[md]||g[Xa]||g.namespaceURI===Au||g.hasAttribute("itemprop"))g=m.createElement(d),m.head.insertBefore(g,m.querySelector("head > title"));$a(g,d,s),g[Xa]=e,Oe(g),d=g;break e;case"link":var A=xx("link","href",m).get(d+(s.href||""));if(A){for(var E=0;E<A.length;E++)if(g=A[E],g.getAttribute("href")===(s.href==null||s.href===""?null:s.href)&&g.getAttribute("rel")===(s.rel==null?null:s.rel)&&g.getAttribute("title")===(s.title==null?null:s.title)&&g.getAttribute("crossorigin")===(s.crossOrigin==null?null:s.crossOrigin)){A.splice(E,1);break t}}g=m.createElement(d),$a(g,d,s),m.head.appendChild(g);break;case"meta":if(A=xx("meta","content",m).get(d+(s.content||""))){for(E=0;E<A.length;E++)if(g=A[E],gt(s.content,"content"),g.getAttribute("content")===(s.content==null?null:""+s.content)&&g.getAttribute("name")===(s.name==null?null:s.name)&&g.getAttribute("property")===(s.property==null?null:s.property)&&g.getAttribute("http-equiv")===(s.httpEquiv==null?null:s.httpEquiv)&&g.getAttribute("charset")===(s.charSet==null?null:s.charSet)){A.splice(E,1);break t}}g=m.createElement(d),$a(g,d,s),m.head.appendChild(g);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+d+'". This is a bug in React.')}g[Xa]=e,Oe(g),d=g}e.stateNode=d}else Lx(m,e.type,e.stateNode);else e.stateNode=Sx(m,d,e.memoizedProps);else g!==d?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,d===null?Lx(m,e.type,e.stateNode):Sx(m,d,e.memoizedProps)):d===null&&e.stateNode!==null&&ng(e,e.memoizedProps,s.memoizedProps)}break;case 27:mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),s!==null&&d&4&&ng(e,e.memoizedProps,s.memoizedProps);break;case 5:if(mo(t,e),ho(e),d&512&&(Ca||s===null||_l(s,s.return)),e.flags&32){m=e.stateNode;try{re(e,ux,m)}catch(ye){Ct(e,e.return,ye)}}d&4&&e.stateNode!=null&&(m=e.memoizedProps,ng(e,m,s!==null?s.memoizedProps:m)),d&1024&&(Hy=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(mo(t,e),ho(e),d&4){if(e.stateNode===null)throw Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");d=e.memoizedProps,s=s!==null?s.memoizedProps:d,m=e.stateNode;try{re(e,TI,m,s,d)}catch(ye){Ct(e,e.return,ye)}}break;case 3:if(m=Ln(),tm=null,g=hl,hl=jf(t.containerInfo),mo(t,e),hl=g,ho(e),d&4&&s!==null&&s.memoizedState.isDehydrated)try{re(e,PI,t.containerInfo)}catch(ye){Ct(e,e.return,ye)}Hy&&(Hy=!1,cS(e)),t.effectDuration+=cf(m);break;case 4:d=hl,hl=jf(e.stateNode.containerInfo),mo(t,e),ho(e),hl=d;break;case 12:d=Ln(),mo(t,e),ho(e),e.stateNode.effectDuration+=_i(d);break;case 31:mo(t,e),ho(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,zf(e,d)));break;case 13:mo(t,e),ho(e),e.child.flags&8192&&e.memoizedState!==null!==(s!==null&&s.memoizedState!==null)&&(_p=Ba()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,zf(e,d)));break;case 22:m=e.memoizedState!==null;var T=s!==null&&s.memoizedState!==null,U=Pn,de=Ca;if(Pn=U||m,Ca=de||T,mo(t,e),Ca=de,Pn=U,T&&!m&&!U&&!de&&(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&ef(e,qe,Ue),ho(e),d&8192)e:for(t=e.stateNode,t._visibility=m?t._visibility&~Cd:t._visibility|Cd,!m||s===null||T||Pn||Ca||(ys(e),(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(e,qe,Ue,"Disconnect")),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){T=s=t;try{g=T.stateNode,m?re(T,AI,g):re(T,OI,T.stateNode,T.memoizedProps)}catch(ye){Ct(T,T.return,ye)}}}else if(t.tag===6){if(s===null){T=t;try{A=T.stateNode,m?re(T,DI,A):re(T,qI,A,T.memoizedProps)}catch(ye){Ct(T,T.return,ye)}}}else if(t.tag===18){if(s===null){T=t;try{E=T.stateNode,m?re(T,MI,E):re(T,EI,T.stateNode)}catch(ye){Ct(T,T.return,ye)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;s===t&&(s=null),t=t.return}s===t&&(s=null),t.sibling.return=t.return,t=t.sibling}d&4&&(d=e.updateQueue,d!==null&&(s=d.retryQueue,s!==null&&(d.retryQueue=null,zf(e,s))));break;case 19:mo(t,e),ho(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,zf(e,d)));break;case 30:break;case 21:break;default:mo(t,e),ho(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&((la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Ue-qe&&(lS(e.return.alternate,e.return)||Al(e,qe,Ue,"Mount"))),To(a),ql(o),Zt=l,la=n}function ho(e){var t=e.flags;if(t&2){try{re(e,eI,e)}catch(a){Ct(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function cS(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;cS(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Hl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)nS(e,t.alternate,t),t=t.sibling}function fS(e){var t=wo(),a=Ol(),o=Bl(),l=Nl();switch(e.tag){case 0:case 11:case 14:case 15:og(e,e.return,Bo),ys(e);break;case 1:_l(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount==="function"&&Jv(e,e.return,n),ys(e);break;case 27:re(e,sd,e.stateNode);case 26:case 5:_l(e,e.return),ys(e);break;case 22:e.memoizedState===null&&ys(e);break;case 30:ys(e);break;default:ys(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),To(t),ql(a),Zt=o,la=l}function ys(e){for(e=e.child;e!==null;)fS(e),e=e.sibling}function pS(e,t,a,o){var l=wo(),n=Ol(),s=Bl(),d=Nl(),m=a.flags;switch(a.tag){case 0:case 11:case 15:Fl(e,a,o),Zv(a,Bo);break;case 1:if(Fl(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&re(a,Ry,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{re(a,PT,t,e)}catch(g){Ct(a,a.return,g)}}o&&m&64&&Kv(a),Ki(a,a.return);break;case 27:oS(a);case 26:case 5:Fl(e,a,o),o&&t===null&&m&4&&tS(a),Ki(a,a.return);break;case 12:if(o&&m&4){m=Ln(),Fl(e,a,o),o=a.stateNode,o.effectDuration+=_i(m);try{re(a,eS,a,t,xr,o.effectDuration)}catch(g){Ct(a,a.return,g)}}else Fl(e,a,o);break;case 31:Fl(e,a,o),o&&m&4&&uS(e,a);break;case 13:Fl(e,a,o),o&&m&4&&iS(e,a);break;case 22:a.memoizedState===null&&Fl(e,a,o),Ki(a,a.return);break;case 30:break;default:Fl(e,a,o)}(a.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(a,qe,Ue,Jt,Zt),To(l),ql(n),Zt=s,la=d}function Fl(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)pS(e,t.alternate,t,a),t=t.sibling}function ug(e,t){var a=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(a=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==a&&(e!=null&&fs(e),a!=null&&zi(a))}function ig(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(fs(t),e!=null&&zi(e))}function il(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var n=t.sibling;mS(e,t,a,o,n!==null?n.actualStartTime:l),t=n}}function mS(e,t,a,o,l){var n=wo(),s=Ol(),d=Bl(),m=Nl(),g=yr,A=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&tt)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&tf(t,t.actualStartTime,l,Ma,a),il(e,t,a,o,l),A&2048&&Wv(t,uo|Ko);break;case 1:(t.mode&tt)!==ze&&0<t.actualStartTime&&((t.flags&128)!==0?Xm(t,t.actualStartTime,l,[]):(t.flags&1)!==0&&tf(t,t.actualStartTime,l,Ma,a)),il(e,t,a,o,l);break;case 3:var E=Ln(),T=Ma;Ma=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,il(e,t,a,o,l),Ma=T,A&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(fs(o),a!=null&&zi(a))),e.passiveEffectDuration+=cf(E);break;case 12:if(A&2048){A=Ln(),il(e,t,a,o,l),e=t.stateNode,e.passiveEffectDuration+=_i(A);try{re(t,JT,t,t.alternate,xr,e.passiveEffectDuration)}catch(U){Ct(t,t.return,U)}}else il(e,t,a,o,l);break;case 31:A=Ma,E=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,E!==null&&T===null?(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(Ma=!1,E=E.hydrationErrors,E!==null&&Xm(t,t.actualStartTime,l,E)):Ma=!0):Ma=!1,il(e,t,a,o,l),Ma=A;break;case 13:A=Ma,E=t.alternate!==null?t.alternate.memoizedState:null,T=t.memoizedState,E===null||E.dehydrated===null||T!==null&&T.dehydrated!==null?Ma=!1:(T=t.deletions,T!==null&&0<T.length&&T[0].tag===18?(Ma=!1,E=E.hydrationErrors,E!==null&&Xm(t,t.actualStartTime,l,E)):Ma=!0),il(e,t,a,o,l),Ma=A;break;case 23:break;case 22:T=t.stateNode,E=t.alternate,t.memoizedState!==null?T._visibility&Rn?il(e,t,a,o,l):Ji(e,t,a,o,l):T._visibility&Rn?il(e,t,a,o,l):(T._visibility|=Rn,yu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),l),(t.mode&tt)===ze||Ma||(e=t.actualStartTime,0<=e&&0.05<l-e&&ef(t,e,l),0<=qe&&0<=Ue&&0.05<Ue-qe&&ef(t,qe,Ue))),A&2048&&ug(E,t);break;case 24:il(e,t,a,o,l),A&2048&&ig(t.alternate,t);break;default:il(e,t,a,o,l)}if((t.mode&tt)!==ze){if(e=!Ma&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<l-a&&Al(t,a,l,"Mount");0<=qe&&0<=Ue&&((la||0.05<Jt)&&Dl(t,qe,Ue,Jt,Zt),e&&0.05<Ue-qe&&Al(t,qe,Ue,"Mount"))}To(n),ql(s),Zt=d,la=m,yr=g}function yu(e,t,a,o,l,n){l=l&&((t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child));for(t=t.child;t!==null;){var s=t.sibling;hS(e,t,a,o,l,s!==null?s.actualStartTime:n),t=s}}function hS(e,t,a,o,l,n){var s=wo(),d=Ol(),m=Bl(),g=Nl(),A=yr;l&&(t.mode&tt)!==ze&&0<t.actualStartTime&&(t.flags&1)!==0&&tf(t,t.actualStartTime,n,Ma,a);var E=t.flags;switch(t.tag){case 0:case 11:case 15:yu(e,t,a,o,l,n),Wv(t,uo);break;case 23:break;case 22:var T=t.stateNode;t.memoizedState!==null?T._visibility&Rn?yu(e,t,a,o,l,n):Ji(e,t,a,o,n):(T._visibility|=Rn,yu(e,t,a,o,l,n)),l&&E&2048&&ug(t.alternate,t);break;case 24:yu(e,t,a,o,l,n),l&&E&2048&&ig(t.alternate,t);break;default:yu(e,t,a,o,l,n)}(t.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(t,qe,Ue,Jt,Zt),To(s),ql(d),Zt=m,la=g,yr=A}function Ji(e,t,a,o,l){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var n=t.child;n!==null;){t=n.sibling;var s=e,d=a,m=o,g=t!==null?t.actualStartTime:l,A=yr;(n.mode&tt)!==ze&&0<n.actualStartTime&&(n.flags&1)!==0&&tf(n,n.actualStartTime,g,Ma,d);var E=n.flags;switch(n.tag){case 22:Ji(s,n,d,m,g),E&2048&&ug(n.alternate,n);break;case 24:Ji(s,n,d,m,g),E&2048&&ig(n.alternate,n);break;default:Ji(s,n,d,m,g)}yr=A,n=t}}function bu(e,t,a){if(e.subtreeFlags&Gd)for(e=e.child;e!==null;)gS(e,t,a),e=e.sibling}function gS(e,t,a){switch(e.tag){case 26:bu(e,t,a),e.flags&Gd&&e.memoizedState!==null&&VI(a,hl,e.memoizedState,e.memoizedProps);break;case 5:bu(e,t,a);break;case 3:case 4:var o=hl;hl=jf(e.stateNode.containerInfo),bu(e,t,a),hl=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Gd,Gd=16777216,bu(e,t,a),Gd=o):bu(e,t,a));break;default:bu(e,t,a)}}function yS(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function ed(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],l=wo();Ua=o,SS(o,e),(o.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(o,qe,Ue,"Unmount"),To(l)}yS(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)bS(e),e=e.sibling}function bS(e){var t=wo(),a=Ol(),o=Bl(),l=Nl();switch(e.tag){case 0:case 11:case 15:ed(e),e.flags&2048&&lg(e,e.return,uo|Ko);break;case 3:var n=Ln();ed(e),e.stateNode.passiveEffectDuration+=cf(n);break;case 12:n=Ln(),ed(e),e.stateNode.passiveEffectDuration+=_i(n);break;case 22:n=e.stateNode,e.memoizedState!==null&&n._visibility&Rn&&(e.return===null||e.return.tag!==13)?(n._visibility&=~Rn,_f(e),(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(e,qe,Ue,"Disconnect")):ed(e);break;default:ed(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),To(t),ql(a),la=l,Zt=o}function _f(e){var t=e.deletions;if((e.flags&16)!==0){if(t!==null)for(var a=0;a<t.length;a++){var o=t[a],l=wo();Ua=o,SS(o,e),(o.mode&tt)!==ze&&0<=qe&&0<=Ue&&0.05<Ue-qe&&Al(o,qe,Ue,"Unmount"),To(l)}yS(e)}for(e=e.child;e!==null;)vS(e),e=e.sibling}function vS(e){var t=wo(),a=Ol(),o=Bl(),l=Nl();switch(e.tag){case 0:case 11:case 15:lg(e,e.return,uo),_f(e);break;case 22:var n=e.stateNode;n._visibility&Rn&&(n._visibility&=~Rn,_f(e));break;default:_f(e)}(e.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(e,qe,Ue,Jt,Zt),To(t),ql(a),la=l,Zt=o}function SS(e,t){for(;Ua!==null;){var a=Ua,o=a,l=t,n=wo(),s=Ol(),d=Bl(),m=Nl();switch(o.tag){case 0:case 11:case 15:lg(o,l,uo);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool,l!=null&&fs(l));break;case 24:zi(o.memoizedState.cache)}if((o.mode&tt)!==ze&&0<=qe&&0<=Ue&&(la||0.05<Jt)&&Dl(o,qe,Ue,Jt,Zt),To(n),ql(s),la=m,Zt=d,o=a.child,o!==null)o.return=a,Ua=o;else e:for(a=e;Ua!==null;){if(o=Ua,n=o.sibling,s=o.return,rS(o),o===a){Ua=null;break e}if(n!==null){n.return=s,Ua=n;break e}Ua=s}}}function oI(){kM.forEach(function(e){return e()})}function xS(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||G.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Ro(e){if((ht&Aa)!==Pa&&ot!==0)return ot&-ot;var t=G.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),yg()):O()}function LS(){if(bo===0)if((ot&536870912)===0||dt){var e=np;np<<=1,(np&3932160)===0&&(np=262144),bo=e}else bo=536870912;return e=qo.current,e!==null&&(e.flags|=32),bo}function oa(e,t,a){if(oi&&console.error("useInsertionEffect must not schedule updates."),Ky&&(Vp=!0),e===Pt&&(Dt===Es||Dt===Os)||e.cancelPendingCommit!==null)Su(e,0),ir(e,ot,bo,!1);if(Wn(e,a),(ht&Aa)!==Pa&&e===Pt){if(jl)switch(t.tag){case 0:case 11:case 15:e=lt&&X(lt)||"Unknown",QC.has(e)||(QC.add(e),t=X(t)||"Unknown",console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:YC||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),YC=!0)}}else Ql&&Ri(e,t,a),pI(t),e===Pt&&((ht&Aa)===Pa&&(Ar|=a),ea===Ir&&ir(e,ot,bo,!1)),Gl(e)}function CS(e,t,a){if((ht&(Aa|No))!==Pa)throw Error("Should not already be working.");if(ot!==0&&lt!==null){var o=lt,l=Ba();switch(HL){case Xd:case Es:var n=Md;Gt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",n,l,Vo,void 0,"primary-light")):console.timeStamp("Suspended",n,l,Vo,void 0,"primary-light"));break;case Os:n=Md,Gt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",n,l,Vo,void 0,"primary-light")):console.timeStamp("Action",n,l,Vo,void 0,"primary-light"));break;default:Gt&&(o=l-Md,3>o||console.timeStamp("Blocked",Md,l,Vo,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}n=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||Jr(e,t))?nI(e,t):cg(e,t,!0);var s=a;do{if(n===zn){ti&&!a&&ir(e,t,0,!1),t=Dt,Md=Sa(),HL=t;break}else{if(o=Ba(),l=e.current.alternate,s&&!lI(l)){Co(t),l=Na,n=o,!Gt||n<=l||(ca?ca.run(console.timeStamp.bind(console,"Teared Render",l,n,it,st,"error")):console.timeStamp("Teared Render",l,n,it,st,"error")),bs(t,o),n=cg(e,t,!1),s=!1;continue}if(n===Ds){if(s=t,e.errorRecoveryDisabledLanes&s)var d=0;else d=e.pendingLanes&-536870913,d=d!==0?d:d&536870912?536870912:0;if(d!==0){Co(t),jm(Na,o,t,ca),bs(t,o),t=d;e:{o=e,n=s,s=Yd;var m=o.current.memoizedState.isDehydrated;if(m&&(Su(o,d).flags|=256),d=cg(o,d,!1),d!==Ds){if(Vy&&!m){o.errorRecoveryDisabledLanes|=n,Ar|=n,n=Ir;break e}o=io,io=s,o!==null&&(io===null?io=o:io.push.apply(io,o))}n=d}if(s=!1,n!==Ds)continue;else o=Ba()}}if(n===$d){Co(t),jm(Na,o,t,ca),bs(t,o),Su(e,0),ir(e,t,0,!0);break}e:{switch(a=e,n){case zn:case $d:throw Error("Root did not complete. This is a bug in React.");case Ir:if((t&4194048)!==t)break;case Np:Co(t),C0(Na,o,t,ca),bs(t,o),l=t,(l&127)!==0?xp=o:(l&4194048)!==0&&(Lp=o),ir(a,t,bo,!Rr);break e;case Ds:io=null;break;case Bp:case BC:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)fg(a,l,t,io,Qd,zp,bo,Ar,qs,n,null,null,Na,o);else{if((t&62914560)===t&&(s=_p+PC-Ba(),10<s)){if(ir(a,t,bo,!Rr),Kr(a,0,!0)!==0)break e;gl=t,a.timeoutHandle=o1(kS.bind(null,a,l,io,Qd,zp,t,bo,Ar,qs,Rr,n,"Throttled",Na,o),s);break e}kS(a,l,io,Qd,zp,t,bo,Ar,qs,Rr,n,null,Na,o)}}}break}while(1);Gl(e)}function kS(e,t,a,o,l,n,s,d,m,g,A,E,T,U){e.timeoutHandle=zs;var de=t.subtreeFlags,ye=null;if(de&8192||(de&16785408)===16785408){if(ye={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:bn},gS(t,n,ye),de=(n&62914560)===n?_p-Ba():(n&4194048)===n?UC-Ba():0,de=$I(ye,de),de!==null){gl=n,e.cancelPendingCommit=de(fg.bind(null,e,t,n,a,o,l,s,d,m,A,ye,ye.waitingForViewTransition?"Waiting for the previous Animation":0<ye.count?0<ye.imgCount?"Suspended on CSS and Images":"Suspended on CSS":ye.imgCount===1?"Suspended on an Image":0<ye.imgCount?"Suspended on Images":null,T,U)),ir(e,n,s,!g);return}}fg(e,t,n,a,o,l,s,d,m,A,ye,E,T,U)}function lI(e){for(var t=e;;){var a=t.tag;if((a===0||a===11||a===15)&&t.flags&16384&&(a=t.updateQueue,a!==null&&(a=a.stores,a!==null)))for(var o=0;o<a.length;o++){var l=a[o],n=l.getSnapshot;l=l.value;try{if(!no(n(),l))return!1}catch(s){return!1}}if(a=t.child,t.subtreeFlags&16384&&a!==null)a.return=t,t=a;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function ir(e,t,a,o){t&=~$y,t&=~Ar,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var l=t;0<l;){var n=31-ao(l),s=1<<n;o[n]=-1,l&=~s}a!==0&&es(e,a,t)}function vu(){return(ht&(Aa|No))===Pa?(od(0,!1),!1):!0}function dg(){if(lt!==null){if(Dt===yo)var e=lt.return;else e=lt,sf(),xh(e),Xu=null,Pd=0,e=lt;for(;e!==null;)Qv(e.alternate,e),e=e.return;lt=null}}function bs(e,t){(e&127)!==0&&(Lr=t),(e&4194048)!==0&&(en=t),(e&62914560)!==0&&(zL=t),(e&2080374784)!==0&&(_L=t)}function Su(e,t){Gt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",st,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",st,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",st,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",st,"primary-light"));var a=Na;if(Na=Sa(),ot!==0&&0<a){if(Co(ot),ea===Bp||ea===Ir)C0(a,Na,t,ca);else{var o=Na,l=ca;if(Gt&&!(o<=a)){var n=(t&738197653)===t?"tertiary-dark":"primary-dark",s=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";l?l.run(console.timeStamp.bind(console,s,a,o,it,st,n)):console.timeStamp(s,a,o,it,st,n)}}bs(ot,Na)}if(a=ca,ca=null,(t&127)!==0){ca=Td,l=0<=Jl&&Jl<Lr?Lr:Jl,o=0<=Cs&&Cs<Lr?Lr:Cs,n=0<=o?o:0<=l?l:Na,0<=xp?(Co(2),k0(xp,n,t,a)):(Cp&127)!==0&&(Co(2),Ui(Lr,n,qn)),a=l;var d=o,m=Id,g=0<Gu,A=Cr===wd,E=Cr===Sp;if(l=Na,o=Td,n=Cy,s=ky,Gt){if(it="Blocking",0<a?a>l&&(a=l):a=l,0<d?d>a&&(d=a):d=a,m!==null&&a>d){var T=g?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,g?"Consecutive":"Event: "+m,d,a,it,st,T)):console.timeStamp(g?"Consecutive":"Event: "+m,d,a,it,st,T)}l>a&&(d=A?"error":(t&738197653)===t?"tertiary-light":"primary-light",A=E?"Promise Resolved":A?"Cascading Update":5<l-a?"Update Blocked":"Update",E=[],s!=null&&E.push(["Component name",s]),n!=null&&E.push(["Method name",n]),a={start:a,end:l,detail:{devtools:{properties:E,track:it,trackGroup:st,color:d}}},o?o.run(performance.measure.bind(performance,A,a)):performance.measure(A,a))}Jl=-1.1,Cr=0,ky=Cy=null,xp=-1.1,Gu=Cs,Cs=-1.1,Lr=Sa()}if((t&4194048)!==0&&(ca=Rd,l=0<=On&&On<en?en:On,a=0<=Zo&&Zo<en?en:Zo,o=0<=kr&&kr<en?en:kr,n=0<=o?o:0<=a?a:Na,0<=Lp?(Co(256),k0(Lp,n,t,ca)):(Cp&4194048)!==0&&(Co(256),Ui(en,n,qn)),E=o,d=ks,m=0<wr,g=wy===Sp,n=Na,o=Rd,s=UL,A=PL,Gt&&(it="Transition",0<a?a>n&&(a=n):a=n,0<l?l>a&&(l=a):l=a,0<E?E>l&&(E=l):E=l,l>E&&d!==null&&(T=m?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,m?"Consecutive":"Event: "+d,E,l,it,st,T)):console.timeStamp(m?"Consecutive":"Event: "+d,E,l,it,st,T)),a>l&&(o?o.run(console.timeStamp.bind(console,"Action",l,a,it,st,"primary-dark")):console.timeStamp("Action",l,a,it,st,"primary-dark")),n>a&&(l=g?"Promise Resolved":5<n-a?"Update Blocked":"Update",E=[],A!=null&&E.push(["Component name",A]),s!=null&&E.push(["Method name",s]),a={start:a,end:n,detail:{devtools:{properties:E,track:it,trackGroup:st,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,l,a)):performance.measure(l,a))),Zo=On=-1.1,wy=0,Lp=-1.1,wr=kr,kr=-1.1,en=Sa()),(t&62914560)!==0&&(Cp&62914560)!==0&&(Co(4194304),Ui(zL,Na,qn)),(t&2080374784)!==0&&(Cp&2080374784)!==0&&(Co(268435456),Ui(_L,Na,qn)),a=e.timeoutHandle,a!==zs&&(e.timeoutHandle=zs,UM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),gl=0,dg(),Pt=e,lt=a=vn(e.current,null),ot=t,Dt=yo,Uo=null,Rr=!1,ti=Jr(e,t),Vy=!1,ea=zn,qs=bo=$y=Ar=Mr=0,io=Yd=null,zp=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)l=31-ao(o),n=1<<l,t|=e[l],o&=~n;return an=t,af(),e=DL(),1000<e-AL&&(G.recentlyCreatedOwnerStacks=0,AL=e),pl.discardPendingWarnings(),a}function wS(e,t){Fe=null,G.H=Fd,G.getCurrentStack=null,jl=!1,Do=null,t===$u||t===Ip?(t=X0(),Dt=Xd):t===My?(t=X0(),Dt=NC):Dt=t===zy?Gy:t!==null&&typeof t==="object"&&typeof t.then==="function"?jd:Up,Uo=t;var a=lt;a===null?(ea=$d,Of(e,ko(t,e.current))):a.mode&tt&&uh(a)}function TS(){var e=qo.current;return e===null?!0:(ot&4194048)===ot?Wo===null?!0:!1:(ot&62914560)===ot||(ot&536870912)!==0?e===Wo:!1}function IS(){var e=G.H;return G.H=Fd,e===null?Fd:e}function RS(){var e=G.A;return G.A=CM,e}function Hf(e){ca===null&&(ca=e._debugTask==null?null:e._debugTask)}function Ff(){ea=Ir,Rr||(ot&4194048)!==ot&&qo.current!==null||(ti=!0),(Mr&134217727)===0&&(Ar&134217727)===0||Pt===null||ir(Pt,ot,bo,!1)}function cg(e,t,a){var o=ht;ht|=Aa;var l=IS(),n=RS();if(Pt!==e||ot!==t){if(Ql){var s=e.memoizedUpdaters;0<s.size&&(ad(e,ot),s.clear()),Kn(e,t)}Qd=null,Su(e,t)}t=!1,s=ea;e:do try{if(Dt!==yo&&lt!==null){var d=lt,m=Uo;switch(Dt){case Gy:dg(),s=Np;break e;case Xd:case Es:case Os:case jd:qo.current===null&&(t=!0);var g=Dt;if(Dt=yo,Uo=null,xu(e,d,m,g),a&&ti){s=zn;break e}break;default:g=Dt,Dt=yo,Uo=null,xu(e,d,m,g)}}MS(),s=ea;break}catch(A){wS(e,A)}while(1);return t&&e.shellSuspendCounter++,sf(),ht=o,G.H=l,G.A=n,lt===null&&(Pt=null,ot=0,af()),s}function MS(){for(;lt!==null;)AS(lt)}function nI(e,t){var a=ht;ht|=Aa;var o=IS(),l=RS();if(Pt!==e||ot!==t){if(Ql){var n=e.memoizedUpdaters;0<n.size&&(ad(e,ot),n.clear()),Kn(e,t)}Qd=null,Hp=Ba()+zC,Su(e,t)}else ti=Jr(e,t);e:do try{if(Dt!==yo&&lt!==null)t:switch(t=lt,n=Uo,Dt){case Up:Dt=yo,Uo=null,xu(e,t,n,Up);break;case Es:case Os:if(V0(n)){Dt=yo,Uo=null,DS(t);break}t=function(){Dt!==Es&&Dt!==Os||Pt!==e||(Dt=Pp),Gl(e)},n.then(t,t);break e;case Xd:Dt=Pp;break e;case NC:Dt=Fy;break e;case Pp:V0(n)?(Dt=yo,Uo=null,DS(t)):(Dt=yo,Uo=null,xu(e,t,n,Pp));break;case Fy:var s=null;switch(lt.tag){case 26:s=lt.memoizedState;case 5:case 27:var d=lt;if(s?Cx(s):d.stateNode.complete){Dt=yo,Uo=null;var m=d.sibling;if(m!==null)lt=m;else{var g=d.return;g!==null?(lt=g,Gf(g)):lt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Dt=yo,Uo=null,xu(e,t,n,Fy);break;case jd:Dt=yo,Uo=null,xu(e,t,n,jd);break;case Gy:dg(),ea=Np;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?MS():rI();break}catch(A){wS(e,A)}while(1);if(sf(),G.H=o,G.A=l,ht=a,lt!==null)return zn;return Pt=null,ot=0,af(),ea}function rI(){for(;lt!==null&&!lR();)AS(lt)}function AS(e){var t=e.alternate;(e.mode&tt)!==ze?(sh(e),t=re(e,tg,t,e,an),uh(e)):t=re(e,tg,t,e,an),e.memoizedProps=e.pendingProps,t===null?Gf(e):lt=t}function DS(e){var t=re(e,sI,e);e.memoizedProps=e.pendingProps,t===null?Gf(e):lt=t}function sI(e){var t=e.alternate,a=(e.mode&tt)!==ze;switch(a&&sh(e),e.tag){case 15:case 0:t=Fv(t,e,e.pendingProps,e.type,void 0,ot);break;case 11:t=Fv(t,e,e.pendingProps,e.type.render,e.ref,ot);break;case 5:xh(e);default:Qv(t,e),e=lt=A0(e,an),t=tg(t,e,an)}return a&&uh(e),t}function xu(e,t,a,o){sf(),xh(t),Xu=null,Pd=0;var l=t.return;try{if($T(e,l,t,a,ot)){ea=$d,Of(e,ko(a,e.current)),lt=null;return}}catch(n){if(l!==null)throw lt=l,n;ea=$d,Of(e,ko(a,e.current)),lt=null;return}if(t.flags&32768){if(dt||o===Up)e=!0;else if(ti||(ot&536870912)!==0)e=!1;else if(Rr=e=!0,o===Es||o===Os||o===Xd||o===jd)o=qo.current,o!==null&&o.tag===13&&(o.flags|=16384);ES(t,e)}else Gf(t)}function Gf(e){var t=e;do{if((t.flags&32768)!==0){ES(t,Rr);return}var a=t.alternate;if(e=t.return,sh(t),a=re(t,YT,a,t,an),(t.mode&tt)!==ze&&z0(t),a!==null){lt=a;return}if(t=t.sibling,t!==null){lt=t;return}lt=t=e}while(t!==null);ea===zn&&(ea=BC)}function ES(e,t){do{var a=QT(e.alternate,e);if(a!==null){a.flags&=32767,lt=a;return}if((e.mode&tt)!==ze){z0(e),a=e.actualDuration;for(var o=e.child;o!==null;)a+=o.actualDuration,o=o.sibling;e.actualDuration=a}if(a=e.return,a!==null&&(a.flags|=32768,a.subtreeFlags=0,a.deletions=null),!t&&(e=e.sibling,e!==null)){lt=e;return}lt=e=a}while(e!==null);ea=Np,lt=null}function fg(e,t,a,o,l,n,s,d,m,g,A,E,T,U){e.cancelPendingCommit=null;do td();while(wa!==Er);if(pl.flushLegacyContextWarning(),pl.flushPendingUnsafeLifecycleWarnings(),(ht&(Aa|No))!==Pa)throw Error("Should not already be working.");if(Co(a),g===Ds?jm(T,U,a,ca):o!==null?ET(T,U,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ca):DT(T,U,a,ca),t!==null){if(a===0&&console.error("finishedLanes should not be empty during a commit. This is a bug in React."),t===e.current)throw Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");if(n=t.lanes|t.childLanes,n|=by,$c(e,a,n,s,d,m),e===Pt&&(lt=Pt=null,ot=0),ai=t,Or=e,gl=a,Yy=n,Zy=l,$C=o,Qy=U,XC=E,yl=Fp,jC=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,fI(Iu,function(){return tc=window.event,yl===Fp&&(yl=jy),US(),null})):(e.callbackNode=null,e.callbackPriority=0),En=null,xr=Sa(),E!==null&&OT(U,xr,E,ca),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null,l=kt.p,kt.p=Eo,s=ht,ht|=No;try{tI(e,t,a)}finally{ht=s,kt.p=l,G.T=o}}wa=HC,OS(),qS(),BS()}}function OS(){if(wa===HC){wa=Er;var e=Or,t=ai,a=gl,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var l=kt.p;kt.p=Eo;var n=ht;ht|=No;try{Ju=a,ei=e,ff(),dS(t,e),ei=Ju=null,a=sb;var s=S0(e.containerInfo),d=a.focusedElem,m=a.selectionRange;if(s!==d&&d&&d.ownerDocument&&v0(d.ownerDocument.documentElement,d)){if(m!==null&&Vm(d)){var{start:g,end:A}=m;if(A===void 0&&(A=g),"selectionStart"in d)d.selectionStart=g,d.selectionEnd=Math.min(A,d.value.length);else{var E=d.ownerDocument||document,T=E&&E.defaultView||window;if(T.getSelection){var U=T.getSelection(),de=d.textContent.length,ye=Math.min(m.start,de),Ft=m.end===void 0?ye:Math.min(m.end,de);!U.extend&&ye>Ft&&(s=Ft,Ft=ye,ye=s);var pt=b0(d,ye),w=b0(d,Ft);if(pt&&w&&(U.rangeCount!==1||U.anchorNode!==pt.node||U.anchorOffset!==pt.offset||U.focusNode!==w.node||U.focusOffset!==w.offset)){var I=E.createRange();I.setStart(pt.node,pt.offset),U.removeAllRanges(),ye>Ft?(U.addRange(I),U.extend(w.node,w.offset)):(I.setEnd(w.node,w.offset),U.addRange(I))}}}}E=[];for(U=d;U=U.parentNode;)U.nodeType===1&&E.push({element:U,left:U.scrollLeft,top:U.scrollTop});typeof d.focus==="function"&&d.focus();for(d=0;d<E.length;d++){var M=E[d];M.element.scrollLeft=M.left,M.element.scrollTop=M.top}}lm=!!rb,sb=rb=null}finally{ht=n,kt.p=l,G.T=o}}e.current=t,wa=FC}}function qS(){if(wa===FC){wa=Er;var e=jC;if(e!==null){xr=Sa();var t=Dn,a=xr;!Gt||a<=t||(qn?qn.run(console.timeStamp.bind(console,e,t,a,it,st,"secondary-light")):console.timeStamp(e,t,a,it,st,"secondary-light"))}e=Or,t=ai,a=gl;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var l=kt.p;kt.p=Eo;var n=ht;ht|=No;try{Ju=a,ei=e,ff(),nS(e,t.alternate,t),ei=Ju=null}finally{ht=n,kt.p=l,G.T=o}}e=Qy,t=XC,Dn=Sa(),e=t===null?e:xr,t=Dn,a=yl===Xy,o=ca,En!==null?w0(e,t,En,!1,o):!Gt||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,it,st,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,it,st,a?"error":"secondary-dark")),wa=GC}}function BS(){if(wa===VC||wa===GC){if(wa===VC){var e=Dn;Dn=Sa();var t=Dn,a=yl===Xy;!Gt||t<=e||(qn?qn.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,it,st,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,it,st,a?" error":"secondary-light")),yl!==Xy&&(yl=_C)}wa=Er,nR(),e=Or;var o=ai;t=gl,a=$C;var l=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;l?wa=Gp:(wa=Er,ai=Or=null,NS(e,e.pendingLanes),Bs=0,Wd=null);var n=e.pendingLanes;if(n===0&&(Dr=null),l||HS(e),n=y(t),o=o.stateNode,Ka&&typeof Ka.onCommitFiberRoot==="function")try{var s=(o.current.flags&128)===128;switch(n){case Eo:var d=Zg;break;case cl:d=Wg;break;case Zl:d=Iu;break;case sp:d=Kg;break;default:d=Iu}Ka.onCommitFiberRoot(Ru,o,d,s)}catch(E){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",E))}if(Ql&&e.memoizedUpdaters.clear(),oI(),a!==null){s=G.T,d=kt.p,kt.p=Eo,G.T=null;try{var m=e.onRecoverableError;for(o=0;o<a.length;o++){var g=a[o],A=uI(g.stack);re(g.source,m,g.value,A)}}finally{G.T=s,kt.p=d}}(gl&3)!==0&&td(),Gl(e),n=e.pendingLanes,(t&261930)!==0&&(n&42)!==0?(wp=!0,e===Wy?Zd++:(Zd=0,Wy=e)):Zd=0,l||bs(t,Dn),od(0,!1)}}function uI(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error('You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.')}}),e}function NS(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,zi(t)))}function td(){return OS(),qS(),BS(),US()}function US(){if(wa!==Gp)return!1;var e=Or,t=Yy;Yy=0;var a=y(gl),o=Zl===0||Zl>a?Zl:a;a=G.T;var l=kt.p;try{kt.p=o,G.T=null;var n=Zy;Zy=null,o=Or;var s=gl;if(wa=Er,ai=Or=null,gl=0,(ht&(Aa|No))!==Pa)throw Error("Cannot flush passive effects while already rendering.");Co(s),Ky=!0,Vp=!1;var d=0;if(En=null,d=Ba(),yl===_C)Ui(Dn,d,qn);else{var m=Dn,g=d,A=yl===jy;!Gt||g<=m||(ca?ca.run(console.timeStamp.bind(console,A?"Waiting for Paint":"Waiting",m,g,it,st,"secondary-light")):console.timeStamp(A?"Waiting for Paint":"Waiting",m,g,it,st,"secondary-light"))}m=ht,ht|=No;var E=o.current;ff(),bS(E);var T=o.current;E=Qy,ff(),mS(o,T,s,n,E),HS(o),ht=m;var U=Ba();if(T=d,E=ca,En!==null?w0(T,U,En,!0,E):!Gt||U<=T||(E?E.run(console.timeStamp.bind(console,"Remaining Effects",T,U,it,st,"secondary-dark")):console.timeStamp("Remaining Effects",T,U,it,st,"secondary-dark")),bs(s,U),od(0,!1),Vp?o===Wd?Bs++:(Bs=0,Wd=o):Bs=0,Vp=Ky=!1,Ka&&typeof Ka.onPostCommitFiberRoot==="function")try{Ka.onPostCommitFiberRoot(Ru,o)}catch(ye){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",ye))}var de=o.current.stateNode;return de.effectDuration=0,de.passiveEffectDuration=0,!0}finally{kt.p=l,G.T=a,NS(e,t)}}function PS(e,t,a){t=ko(a,t),_0(t),t=Vh(e.stateNode,t,2),e=nr(e,t,2),e!==null&&(Wn(e,2),Gl(e))}function Ct(e,t,a){if(oi=!1,e.tag===3)PS(e,e,a);else{for(;t!==null;){if(t.tag===3){PS(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(Dr===null||!Dr.has(o))){e=ko(a,e),_0(e),a=$h(2),o=nr(t,a,2),o!==null&&(Xh(a,o,t,e),Wn(o,2),Gl(o));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
154
154
 
155
155
  Error message:
156
156
 
157
- %s`,a)}}function pg(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new kM;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(a)||(Vy=!0,l.add(a),o=uI.bind(null,e,t,a),Ql&&ad(e,a),t.then(o,o))}function uI(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Jl&&(Lr=Jl=Sa(),Td=vp("Promise Resolved"),Cr=Sp):(a&4194048)!==0&&0>Zo&&(en=Zo=Sa(),Rd=vp("Promise Resolved"),wy=Sp),SS()&&G.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
157
+ %s`,a)}}function pg(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new wM;var l=new Set;o.set(t,l)}else l=o.get(t),l===void 0&&(l=new Set,o.set(t,l));l.has(a)||(Vy=!0,l.add(a),o=iI.bind(null,e,t,a),Ql&&ad(e,a),t.then(o,o))}function iI(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>Jl&&(Lr=Jl=Sa(),Td=vp("Promise Resolved"),Cr=Sp):(a&4194048)!==0&&0>Zo&&(en=Zo=Sa(),Rd=vp("Promise Resolved"),wy=Sp),xS()&&G.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
158
158
 
159
159
  When testing, code that resolves suspended data should be wrapped into act(...):
160
160
 
@@ -163,7 +163,7 @@ act(() => {
163
163
  });
164
164
  /* assert on the output */
165
165
 
166
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Pt===e&&(ot&a)===a&&(ea===Ir||ea===Bp&&(ot&62914560)===ot&&Ba()-_p<UC?(ht&Aa)===Pa&&Su(e,0):$y|=a,qs===ot&&(qs=0)),Gl(e)}function PS(e,t){t===0&&(t=nu()),e=Wa(e,t),e!==null&&(Wn(e,t),Gl(e))}function iI(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),PS(e,a)}function dI(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:l}=e;l!==null&&(a=l.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}o!==null&&o.delete(t),PS(e,a)}function mg(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,l=t,n=l.type===tp;n=a||n,l.tag!==22?l.flags&67108864?n&&re(l,zS,o,l):mg(o,l,n):l.memoizedState===null&&(n&&l.flags&8192?re(l,zS,o,l):l.subtreeFlags&67108864&&re(l,mg,o,l,n)),t=t.sibling}}function zS(e,t){_t(!0);try{cS(t),bS(t),fS(e,t.alternate,t,!1),mS(e,t,0,null,!1,0)}finally{_t(!1)}}function _S(e){var t=!0;e.current.mode&(Ja|fl)||(t=!1),mg(e,e.current,t)}function HS(e){if((ht&Aa)===Pa){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=X(e)||"ReactComponent",$p!==null){if($p.has(t))return;$p.add(t)}else $p=new Set([t]);re(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function ad(e,t){Ql&&e.memoizedUpdaters.forEach(function(a){Ri(e,a,t)})}function cI(e,t){var a=G.actQueue;return a!==null?(a.push(t),IM):Qg(e,t)}function fI(e){SS()&&G.actQueue===null&&re(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
166
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Pt===e&&(ot&a)===a&&(ea===Ir||ea===Bp&&(ot&62914560)===ot&&Ba()-_p<PC?(ht&Aa)===Pa&&Su(e,0):$y|=a,qs===ot&&(qs=0)),Gl(e)}function zS(e,t){t===0&&(t=nu()),e=Wa(e,t),e!==null&&(Wn(e,t),Gl(e))}function dI(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),zS(e,a)}function cI(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:l}=e;l!==null&&(a=l.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}o!==null&&o.delete(t),zS(e,a)}function mg(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,l=t,n=l.type===tp;n=a||n,l.tag!==22?l.flags&67108864?n&&re(l,_S,o,l):mg(o,l,n):l.memoizedState===null&&(n&&l.flags&8192?re(l,_S,o,l):l.subtreeFlags&67108864&&re(l,mg,o,l,n)),t=t.sibling}}function _S(e,t){_t(!0);try{fS(t),vS(t),pS(e,t.alternate,t,!1),hS(e,t,0,null,!1,0)}finally{_t(!1)}}function HS(e){var t=!0;e.current.mode&(Ja|fl)||(t=!1),mg(e,e.current,t)}function FS(e){if((ht&Aa)===Pa){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=X(e)||"ReactComponent",$p!==null){if($p.has(t))return;$p.add(t)}else $p=new Set([t]);re(e,function(){console.error("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.")})}}}function ad(e,t){Ql&&e.memoizedUpdaters.forEach(function(a){Ri(e,a,t)})}function fI(e,t){var a=G.actQueue;return a!==null?(a.push(t),RM):Qg(e,t)}function pI(e){xS()&&G.actQueue===null&&re(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
167
167
 
168
168
  When testing, code that causes React state updates should be wrapped into act(...):
169
169
 
@@ -172,16 +172,16 @@ act(() => {
172
172
  });
173
173
  /* assert on the output */
174
174
 
175
- This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,X(e))})}function Gl(e){e!==li&&e.next===null&&(li===null?Xp=li=e:li=li.next=e),jp=!0,G.actQueue!==null?eb||(eb=!0,$S()):Jy||(Jy=!0,$S())}function od(e,t){if(!tb&&jp){tb=!0;do{var a=!1;for(var o=Xp;o!==null;){if(!t)if(e!==0){var l=o.pendingLanes;if(l===0)var n=0;else{var s=o.suspendedLanes,d=o.pingedLanes;n=(1<<31-ao(42|e)+1)-1,n&=l&~(s&~d),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,VS(o,n))}else n=ot,n=Kr(o,o===Pt?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==zs),(n&3)===0||Jr(o,n)||(a=!0,VS(o,n));o=o.next}}while(a);tb=!1}}function pI(){tc=window.event,hg()}function hg(){jp=eb=Jy=!1;var e=0;qr!==0&&SI()&&(e=qr);for(var t=Ba(),a=null,o=Xp;o!==null;){var l=o.next,n=FS(o,t);if(n===0)o.next=null,a===null?Xp=l:a.next=l,l===null&&(li=a);else if(a=o,e!==0||(n&3)!==0)jp=!0;o=l}wa!==Er&&wa!==Gp||od(e,!1),qr!==0&&(qr=0)}function FS(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:l}=e,n=e.pendingLanes&-62914561;0<n;){var s=31-ao(n),d=1<<s,m=l[s];if(m===-1){if((d&a)===0||(d&o)!==0)l[s]=Om(d,t)}else m<=t&&(e.expiredLanes|=d);n&=~d}if(t=Pt,a=ot,a=Kr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==zs),o=e.callbackNode,a===0||e===t&&(Dt===Es||Dt===Os)||e.cancelPendingCommit!==null)return o!==null&&gg(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Jr(e,a)){if(t=a&-a,t!==e.callbackPriority||G.actQueue!==null&&o!==ab)gg(o);else return t;switch(y(a)){case Eo:case cl:a=Wg;break;case Zl:a=Iu;break;case sp:a=Kg;break;default:a=Iu}return o=GS.bind(null,e),G.actQueue!==null?(G.actQueue.push(o),a=ab):a=Qg(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&gg(o),e.callbackPriority=2,e.callbackNode=null,2}function GS(e,t){if(wp=kp=!1,tc=window.event,wa!==Er&&wa!==Gp)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(yl===Fp&&(yl=jy),td()&&e.callbackNode!==a)return null;var o=ot;if(o=Kr(e,e===Pt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==zs),o===0)return null;return LS(e,o,t),FS(e,Ba()),e.callbackNode!=null&&e.callbackNode===a?GS.bind(null,e):null}function VS(e,t){if(td())return null;kp=wp,wp=!1,LS(e,t,!0)}function gg(e){e!==ab&&e!==null&&aR(e)}function $S(){G.actQueue!==null&&G.actQueue.push(function(){return hg(),null}),UM(function(){(ht&(Aa|No))!==Pa?Qg(Zg,pI):hg()})}function yg(){if(qr===0){var e=ws;e===0&&(e=lp,lp<<=1,(lp&261888)===0&&(lp=256)),qr=e}return qr}function XS(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return gt(e,"action"),qi(""+e)}function jS(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function mI(e,t,a,o,l){if(t==="submit"&&a&&a.stateNode===l){var n=XS((l[oo]||null).action),s=o.submitter;s&&(t=(t=s[oo]||null)?XS(t.formAction):s.getAttribute("formAction"),t!==null&&(n=t,s=null));var d=new fp("action","action",null,o,l);e.push({event:d,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(qr!==0){var m=s?jS(l,s):new FormData(l),g={pending:!0,data:m,method:l.method,action:n};Object.freeze(g),Uh(a,g,null,m)}}else typeof n==="function"&&(d.preventDefault(),m=s?jS(l,s):new FormData(l),g={pending:!0,data:m,method:l.method,action:n},Object.freeze(g),Uh(a,g,n,m))},currentTarget:l}]})}}function Vf(e,t,a){e.currentTarget=a;try{t(e)}catch(o){my(o)}e.currentTarget=null}function YS(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var l=void 0,n=o.event;if(o=o.listeners,t)for(var s=o.length-1;0<=s;s--){var d=o[s],m=d.instance,g=d.currentTarget;if(d=d.listener,m!==l&&n.isPropagationStopped())break e;m!==null?re(m,Vf,n,d,g):Vf(n,d,g),l=m}else for(s=0;s<o.length;s++){if(d=o[s],m=d.instance,g=d.currentTarget,d=d.listener,m!==l&&n.isPropagationStopped())break e;m!==null?re(m,Vf,n,d,g):Vf(n,d,g),l=m}}}}function ft(e,t){ob.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[Jg];a===void 0&&(a=t[Jg]=new Set);var o=e+"__bubble";a.has(o)||(QS(t,e,2,!1),a.add(o))}function bg(e,t,a){ob.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),QS(a,e,o,t)}function vg(e){if(!e[Yp]){e[Yp]=!0,$x.forEach(function(a){a!=="selectionchange"&&(ob.has(a)||bg(a,!1,e),bg(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yp]||(t[Yp]=!0,bg("selectionchange",!1,t))}}function QS(e,t,a,o){switch(Rx(t)){case Eo:var l=YI;break;case cl:l=QI;break;default:l=Bg}a=l.bind(null,t,a,e),l=void 0,!ly||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function Sg(e,t,a,o,l){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var d=o.stateNode.containerInfo;if(d===l)break;if(s===4)for(s=o.return;s!==null;){var m=s.tag;if((m===3||m===4)&&s.stateNode.containerInfo===l)return;s=s.return}for(;d!==null;){if(s=we(d),s===null)return;if(m=s.tag,m===5||m===6||m===26||m===27){o=n=s;continue e}d=d.parentNode}}o=o.return}r0(function(){var g=n,A=Fm(a),E=[];e:{var T=RL.get(e);if(T!==void 0){var U=fp,de=e;switch(e){case"keypress":if(Wc(a)===0)break e;case"keydown":case"keyup":U=GR;break;case"focusin":de="focus",U=uy;break;case"focusout":de="blur",U=uy;break;case"beforeblur":case"afterblur":U=uy;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=mL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=DR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=XR;break;case kL:case wL:case TL:U=qR;break;case IL:U=YR;break;case"scroll":case"scrollend":U=MR;break;case"wheel":U=ZR;break;case"copy":case"cut":case"paste":U=NR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=gL;break;case"toggle":case"beforetoggle":U=KR}var ye=(t&4)!==0,Ft=!ye&&(e==="scroll"||e==="scrollend"),pt=ye?T!==null?T+"Capture":null:T;ye=[];for(var w=g,I;w!==null;){var M=w;if(I=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||I===null||pt===null||(M=Bi(w,pt),M!=null&&ye.push(ld(w,M,I))),Ft)break;w=w.return}0<ye.length&&(T=new U(T,de,null,a,A),E.push({event:T,listeners:ye}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",T&&a!==hd&&(de=a.relatedTarget||a.fromElement)&&(we(de)||de[hr]))break e;if(U||T){if(T=A.window===A?A:(T=A.ownerDocument)?T.defaultView||T.parentWindow:window,U){if(de=a.relatedTarget||a.toElement,U=g,de=de?we(de):null,de!==null&&(Ft=z(de),ye=de.tag,de!==Ft||ye!==5&&ye!==27&&ye!==6))de=null}else U=null,de=g;if(U!==de){if(ye=mL,M="onMouseLeave",pt="onMouseEnter",w="mouse",e==="pointerout"||e==="pointerover")ye=gL,M="onPointerLeave",pt="onPointerEnter",w="pointer";if(Ft=U==null?T:Xe(U),I=de==null?T:Xe(de),T=new ye(M,w+"leave",U,a,A),T.target=Ft,T.relatedTarget=I,M=null,we(A)===g&&(ye=new ye(pt,w+"enter",de,a,A),ye.target=I,ye.relatedTarget=Ft,M=ye),Ft=M,U&&de)t:{ye=hI,pt=U,w=de,I=0;for(M=pt;M;M=ye(M))I++;M=0;for(var Q=w;Q;Q=ye(Q))M++;for(;0<I-M;)pt=ye(pt),I--;for(;0<M-I;)w=ye(w),M--;for(;I--;){if(pt===w||w!==null&&pt===w.alternate){ye=pt;break t}pt=ye(pt),w=ye(w)}ye=null}else ye=null;U!==null&&ZS(E,T,U,ye,!1),de!==null&&Ft!==null&&ZS(E,Ft,de,ye,!0)}}}e:{if(T=g?Xe(g):window,U=T.nodeName&&T.nodeName.toLowerCase(),U==="select"||U==="input"&&T.type==="file")var he=p0;else if(c0(T))if(LL)he=IT;else{he=wT;var Ge=kT}else U=T.nodeName,!U||U.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?g&&Oi(g.elementType)&&(he=p0):he=TT;if(he&&(he=he(e,g))){f0(E,he,a,A);break e}Ge&&Ge(e,T,g),e==="focusout"&&g&&T.type==="number"&&g.memoizedProps.value!=null&&Nm(T,"number",T.value)}switch(Ge=g?Xe(g):window,e){case"focusin":if(c0(Ge)||Ge.contentEditable==="true")Bu=Ge,dy=g,Ld=null;break;case"focusout":Ld=dy=Bu=null;break;case"mousedown":cy=!0;break;case"contextmenu":case"mouseup":case"dragend":cy=!1,S0(E,a,A);break;case"selectionchange":if(aM)break;case"keydown":case"keyup":S0(E,a,A)}var De;if(iy)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else qu?i0(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===yL&&(Te="onCompositionStart");if(Te&&(bL&&a.locale!=="ko"&&(qu||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&qu&&(De=s0()):(gr=A,ny=("value"in gr)?gr.value:gr.textContent,qu=!0)),Ge=$f(g,Te),0<Ge.length&&(Te=new hL(Te,e,null,a,A),E.push({event:Te,listeners:Ge}),De?Te.data=De:(De=d0(a),De!==null&&(Te.data=De)))),De=eM?ST(e,a):xT(e,a))Te=$f(g,"onBeforeInput"),0<Te.length&&(Ge=new PR("onBeforeInput","beforeinput",null,a,A),E.push({event:Ge,listeners:Te}),Ge.data=De);mI(E,e,g,a,A)}YS(E,t)})}function ld(e,t,a){return{instance:e,listener:t,currentTarget:a}}function $f(e,t){for(var a=t+"Capture",o=[];e!==null;){var l=e,n=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||n===null||(l=Bi(e,a),l!=null&&o.unshift(ld(e,l,n)),l=Bi(e,t),l!=null&&o.push(ld(e,l,n))),e.tag===3)return o;e=e.return}return[]}function hI(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function ZS(e,t,a,o,l){for(var n=t._reactName,s=[];a!==null&&a!==o;){var d=a,m=d.alternate,g=d.stateNode;if(d=d.tag,m!==null&&m===o)break;d!==5&&d!==26&&d!==27||g===null||(m=g,l?(g=Bi(a,n),g!=null&&s.unshift(ld(a,g,m))):l||(g=Bi(a,n),g!=null&&s.push(ld(a,g,m)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}function xg(e,t){gT(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||fL||(fL=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:vs,possibleRegistrationNames:ey};Oi(e)||typeof t.is==="string"||bT(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function qa(e,t,a,o){t!==a&&(a=dr(a),dr(t)!==a&&(o[e]=t))}function gI(e,t,a){t.forEach(function(o){a[JS(o)]=o==="style"?Cg(e):e.getAttribute(o)})}function Vl(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function WS(e,t){return e=e.namespaceURI===ip||e.namespaceURI===Au?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function dr(e){return Kt(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Ia(e)),Yt(e)),(typeof e==="string"?e:""+e).replace(RM,`
176
- `).replace(MM,"")}function KS(e,t){return t=dr(t),dr(e)===t?!0:!1}function Nt(e,t,a,o,l,n){switch(a){case"children":if(typeof o==="string")Zc(o,t,!1),t==="body"||t==="textarea"&&o===""||Ei(e,o);else if(typeof o==="number"||typeof o==="bigint")Zc(""+o,t,!1),t!=="body"&&Ei(e,""+o);break;case"className":jc(e,"class",o);break;case"tabIndex":jc(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":jc(e,a,o);break;case"style":o0(e,o,n);break;case"data":if(t!=="object"){jc(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){a==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}gt(o,a),o=qi(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o==="function"&&(l.encType==null&&l.method==null||Wp||(Wp=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),l.target==null||Zp||(Zp=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||l.type==="submit"||l.type==="image"||Qp?t!=="button"||l.type==null||l.type==="submit"||Qp?typeof o==="function"&&(l.name==null||WC||(WC=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),l.formEncType==null&&l.formMethod==null||Wp||(Wp=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),l.formTarget==null||Zp||(Zp=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Qp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Qp=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):a==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof o==="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n==="function"&&(a==="formAction"?(t!=="input"&&Nt(e,t,"name",l.name,l,null),Nt(e,t,"formEncType",l.formEncType,l,null),Nt(e,t,"formMethod",l.formMethod,l,null),Nt(e,t,"formTarget",l.formTarget,l,null)):(Nt(e,t,"encType",l.encType,l,null),Nt(e,t,"method",l.method,l,null),Nt(e,t,"target",l.target,l,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}gt(o,a),o=qi(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&Vl(a,o),e.onclick=bn);break;case"onScroll":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scrollend",e));break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}gt(o,a),a=qi(""+o),e.setAttributeNS(Ns,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(gt(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||Kp[a]||(Kp[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(gt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?(gt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):(gt(o,a),e.setAttribute(a,o));break;case"popover":ft("beforetoggle",e),ft("toggle",e),Xc(e,"popover",o);break;case"xlinkActuate":yn(e,Ns,"xlink:actuate",o);break;case"xlinkArcrole":yn(e,Ns,"xlink:arcrole",o);break;case"xlinkRole":yn(e,Ns,"xlink:role",o);break;case"xlinkShow":yn(e,Ns,"xlink:show",o);break;case"xlinkTitle":yn(e,Ns,"xlink:title",o);break;case"xlinkType":yn(e,Ns,"xlink:type",o);break;case"xmlBase":yn(e,lb,"xml:base",o);break;case"xmlLang":yn(e,lb,"xml:lang",o);break;case"xmlSpace":yn(e,lb,"xml:space",o);break;case"is":n!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Xc(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":KC||o==null||typeof o!=="object"||(KC=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=l0(a),Xc(e,a,o)):vs.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&Vl(a,o)}}function Lg(e,t,a,o,l,n){switch(a){case"style":o0(e,o,n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o==="string"?Ei(e,o):(typeof o==="number"||typeof o==="bigint")&&Ei(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&Vl(a,o),e.onclick=bn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(vs.hasOwnProperty(a))o!=null&&typeof o!=="function"&&Vl(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),n=e[oo]||null,n=n!=null?n[a]:null,typeof n==="function"&&e.removeEventListener(t,n,l),typeof o==="function")){typeof n!=="function"&&n!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,l);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Xc(e,a,o)}}}function $a(e,t,a){switch(xg(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",e),ft("load",e);var o=!1,l=!1,n;for(n in a)if(a.hasOwnProperty(n)){var s=a[n];if(s!=null)switch(n){case"src":o=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,n,s,a,null)}}l&&Nt(e,t,"srcSet",a.srcSet,a,null),o&&Nt(e,t,"src",a.src,a,null);return;case"input":Jn("input",a),ft("invalid",e);var d=n=s=l=null,m=null,g=null;for(o in a)if(a.hasOwnProperty(o)){var A=a[o];if(A!=null)switch(o){case"name":l=A;break;case"type":s=A;break;case"checked":m=A;break;case"defaultChecked":g=A;break;case"value":n=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,o,A,a,null)}}Hb(e,a),Fb(e,n,d,m,g,s,l,!1);return;case"select":Jn("select",a),ft("invalid",e),o=s=n=null;for(l in a)if(a.hasOwnProperty(l)&&(d=a[l],d!=null))switch(l){case"value":n=d;break;case"defaultValue":s=d;break;case"multiple":o=d;default:Nt(e,t,l,d,a,null)}$b(e,a),t=n,a=s,e.multiple=!!o,t!=null?su(e,!!o,t,!1):a!=null&&su(e,!!o,a,!0);return;case"textarea":Jn("textarea",a),ft("invalid",e),n=l=o=null;for(s in a)if(a.hasOwnProperty(s)&&(d=a[s],d!=null))switch(s){case"value":o=d;break;case"defaultValue":l=d;break;case"children":n=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Nt(e,t,s,d,a,null)}Xb(e,a),Yb(e,o,l,n);return;case"option":Gb(e,a);for(m in a)if(a.hasOwnProperty(m)&&(o=a[m],o!=null))switch(m){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Nt(e,t,m,o,a,null)}return;case"dialog":ft("beforetoggle",e),ft("toggle",e),ft("cancel",e),ft("close",e);break;case"iframe":case"object":ft("load",e);break;case"video":case"audio":for(o=0;o<Kd.length;o++)ft(Kd[o],e);break;case"image":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"embed":case"source":case"link":ft("error",e),ft("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(g in a)if(a.hasOwnProperty(g)&&(o=a[g],o!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,g,o,a,null)}return;default:if(Oi(t)){for(A in a)a.hasOwnProperty(A)&&(o=a[A],o!==void 0&&Lg(e,t,A,o,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(o=a[d],o!=null&&Nt(e,t,d,o,a,null))}function yI(e,t,a,o){switch(xg(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,n=null,s=null,d=null,m=null,g=null,A=null;for(U in a){var E=a[U];if(a.hasOwnProperty(U)&&E!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":m=E;default:o.hasOwnProperty(U)||Nt(e,t,U,null,o,E)}}for(var T in o){var U=o[T];if(E=a[T],o.hasOwnProperty(T)&&(U!=null||E!=null))switch(T){case"type":n=U;break;case"name":l=U;break;case"checked":g=U;break;case"defaultChecked":A=U;break;case"value":s=U;break;case"defaultValue":d=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:U!==E&&Nt(e,t,T,U,o,E)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||ZC||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),ZC=!0),!t||o||QC||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),QC=!0),Bm(e,s,d,m,g,A,n,l);return;case"select":U=s=d=T=null;for(n in a)if(m=a[n],a.hasOwnProperty(n)&&m!=null)switch(n){case"value":break;case"multiple":U=m;default:o.hasOwnProperty(n)||Nt(e,t,n,null,o,m)}for(l in o)if(n=o[l],m=a[l],o.hasOwnProperty(l)&&(n!=null||m!=null))switch(l){case"value":T=n;break;case"defaultValue":d=n;break;case"multiple":s=n;default:n!==m&&Nt(e,t,l,n,o,m)}o=d,t=s,a=U,T!=null?su(e,!!t,T,!1):!!a!==!!t&&(o!=null?su(e,!!t,o,!0):su(e,!!t,t?[]:"",!1));return;case"textarea":U=T=null;for(d in a)if(l=a[d],a.hasOwnProperty(d)&&l!=null&&!o.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Nt(e,t,d,null,o,l)}for(s in o)if(l=o[s],n=a[s],o.hasOwnProperty(s)&&(l!=null||n!=null))switch(s){case"value":T=l;break;case"defaultValue":U=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:l!==n&&Nt(e,t,s,l,o,n)}jb(e,T,U);return;case"option":for(var de in a)if(T=a[de],a.hasOwnProperty(de)&&T!=null&&!o.hasOwnProperty(de))switch(de){case"selected":e.selected=!1;break;default:Nt(e,t,de,null,o,T)}for(m in o)if(T=o[m],U=a[m],o.hasOwnProperty(m)&&T!==U&&(T!=null||U!=null))switch(m){case"selected":e.selected=T&&typeof T!=="function"&&typeof T!=="symbol";break;default:Nt(e,t,m,T,o,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ye in a)T=a[ye],a.hasOwnProperty(ye)&&T!=null&&!o.hasOwnProperty(ye)&&Nt(e,t,ye,null,o,T);for(g in o)if(T=o[g],U=a[g],o.hasOwnProperty(g)&&T!==U&&(T!=null||U!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,g,T,o,U)}return;default:if(Oi(t)){for(var Ft in a)T=a[Ft],a.hasOwnProperty(Ft)&&T!==void 0&&!o.hasOwnProperty(Ft)&&Lg(e,t,Ft,void 0,o,T);for(A in o)T=o[A],U=a[A],!o.hasOwnProperty(A)||T===U||T===void 0&&U===void 0||Lg(e,t,A,T,o,U);return}}for(var pt in a)T=a[pt],a.hasOwnProperty(pt)&&T!=null&&!o.hasOwnProperty(pt)&&Nt(e,t,pt,null,o,T);for(E in o)T=o[E],U=a[E],!o.hasOwnProperty(E)||T===U||T==null&&U==null||Nt(e,t,E,T,o,U)}function JS(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Cg(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var o=e[a];t[o]=e.getPropertyValue(o)}return t}function ex(e,t,a){if(t!=null&&typeof t!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var o,l=o="",n;for(n in t)if(t.hasOwnProperty(n)){var s=t[n];s!=null&&typeof s!=="boolean"&&s!==""&&(n.indexOf("--")===0?(Et(s,n),o+=l+n+":"+(""+s).trim()):typeof s!=="number"||s===0||dL.has(n)?(Et(s,n),o+=l+n.replace(nL,"-$1").toLowerCase().replace(rL,"-ms-")+":"+(""+s).trim()):o+=l+n.replace(nL,"-$1").toLowerCase().replace(rL,"-ms-")+":"+s+"px",l=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=dr(o),dr(t)!==o&&(a.style=Cg(e)))}}function Go(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(gt(o,t),e===""+o)return}qa(t,e,o,n)}function tx(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}qa(t,e,o,n)}function kg(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(gt(o,a),e===""+o)return}qa(t,e,o,n)}function ax(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(gt(o,t),e===""+o))return}qa(t,e,o,n)}function wg(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(gt(o,t),a=qi(""+o),e===a)return}qa(t,e,o,n)}function ox(e,t,a,o){for(var l={},n=new Set,s=e.attributes,d=0;d<s.length;d++)switch(s[d].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:n.add(s[d].name)}if(Oi(t)){for(var m in a)if(a.hasOwnProperty(m)){var g=a[m];if(g!=null){if(vs.hasOwnProperty(m))typeof g!=="function"&&Vl(m,g);else if(a.suppressHydrationWarning!==!0)switch(m){case"children":typeof g!=="string"&&typeof g!=="number"||qa("children",e.textContent,g,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,g=g?g.__html:void 0,g!=null&&(g=WS(e,g),qa(m,s,g,l));continue;case"style":n.delete(m),ex(e,g,l);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":n.delete(m.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",m);continue;case"className":n.delete("class"),s=Pb(e,"class",g),qa("className",s,g,l);continue;default:o.context===_n&&t!=="svg"&&t!=="math"?n.delete(m.toLowerCase()):n.delete(m),s=Pb(e,m,g),qa(m,s,g,l)}}}}else for(g in a)if(a.hasOwnProperty(g)&&(m=a[g],m!=null)){if(vs.hasOwnProperty(g))typeof m!=="function"&&Vl(g,m);else if(a.suppressHydrationWarning!==!0)switch(g){case"children":typeof m!=="string"&&typeof m!=="number"||qa("children",e.textContent,m,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,m=m?m.__html:void 0,m!=null&&(m=WS(e,m),s!==m&&(l[g]={__html:s}));continue;case"className":Go(e,g,"class",m,n,l);continue;case"tabIndex":Go(e,g,"tabindex",m,n,l);continue;case"style":n.delete(g),ex(e,m,l);continue;case"multiple":n.delete(g),qa(g,e.multiple,m,l);continue;case"muted":n.delete(g),qa(g,e.muted,m,l);continue;case"autoFocus":n.delete("autofocus"),qa(g,e.autofocus,m,l);continue;case"data":if(t!=="object"){n.delete(g),s=e.getAttribute("data"),qa(g,s,m,l);continue}case"src":case"href":if(!(m!==""||t==="a"&&g==="href"||t==="object"&&g==="data")){g==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',g,g):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',g,g);continue}wg(e,g,g,m,n,l);continue;case"action":case"formAction":if(s=e.getAttribute(g),typeof m==="function"){n.delete(g.toLowerCase()),g==="formAction"?(n.delete("name"),n.delete("formenctype"),n.delete("formmethod"),n.delete("formtarget")):(n.delete("enctype"),n.delete("method"),n.delete("target"));continue}else if(s===AM){n.delete(g.toLowerCase()),qa(g,"function",m,l);continue}wg(e,g,g.toLowerCase(),m,n,l);continue;case"xlinkHref":wg(e,g,"xlink:href",m,n,l);continue;case"contentEditable":kg(e,g,"contenteditable",m,n,l);continue;case"spellCheck":kg(e,g,"spellcheck",m,n,l);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":kg(e,g,g,m,n,l);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":tx(e,g,g.toLowerCase(),m,n,l);continue;case"capture":case"download":e:{d=e;var A=s=g,E=l;if(n.delete(A),d=d.getAttribute(A),d===null)switch(typeof m){case"undefined":case"function":case"symbol":break e;default:if(m===!1)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":break;case"boolean":if(m===!0&&d==="")break e;break;default:if(gt(m,s),d===""+m)break e}qa(s,d,m,E)}continue;case"cols":case"rows":case"size":case"span":e:{if(d=e,A=s=g,E=l,n.delete(A),d=d.getAttribute(A),d===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(m)||1>m)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(m)||1>m)&&(gt(m,s),d===""+m))break e}qa(s,d,m,E)}continue;case"rowSpan":ax(e,g,"rowspan",m,n,l);continue;case"start":ax(e,g,g,m,n,l);continue;case"xHeight":Go(e,g,"x-height",m,n,l);continue;case"xlinkActuate":Go(e,g,"xlink:actuate",m,n,l);continue;case"xlinkArcrole":Go(e,g,"xlink:arcrole",m,n,l);continue;case"xlinkRole":Go(e,g,"xlink:role",m,n,l);continue;case"xlinkShow":Go(e,g,"xlink:show",m,n,l);continue;case"xlinkTitle":Go(e,g,"xlink:title",m,n,l);continue;case"xlinkType":Go(e,g,"xlink:type",m,n,l);continue;case"xmlBase":Go(e,g,"xml:base",m,n,l);continue;case"xmlLang":Go(e,g,"xml:lang",m,n,l);continue;case"xmlSpace":Go(e,g,"xml:space",m,n,l);continue;case"inert":m!==""||Kp[g]||(Kp[g]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",g)),tx(e,g,g,m,n,l);continue;default:if(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N"){d=l0(g),s=!1,o.context===_n&&t!=="svg"&&t!=="math"?n.delete(d.toLowerCase()):(A=g.toLowerCase(),A=dp.hasOwnProperty(A)?dp[A]||null:null,A!==null&&A!==g&&(s=!0,n.delete(A)),n.delete(d));e:if(A=e,E=d,d=m,Mi(E))if(A.hasAttribute(E))A=A.getAttribute(E),gt(d,E),d=A===""+d?d:A;else{switch(typeof d){case"function":case"symbol":break e;case"boolean":if(A=E.toLowerCase().slice(0,5),A!=="data-"&&A!=="aria-")break e}d=d===void 0?void 0:null}else d=void 0;s||qa(g,d,m,l)}}}return 0<n.size&&a.suppressHydrationWarning!==!0&&gI(e,n,l),Object.keys(l).length===0?null:l}function bI(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function lx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function vI(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var l=a[o],{transferSize:n,initiatorType:s,duration:d}=l;if(n&&d&&lx(s)){s=0,d=l.responseEnd;for(o+=1;o<a.length;o++){var m=a[o],g=m.startTime;if(g>d)break;var A=m.transferSize,E=m.initiatorType;A&&lx(E)&&(m=m.responseEnd,s+=A*(m<d?1:(d-g)/(m-g)))}if(--o,t+=8*(n+s)/(l.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function Xf(e){return e.nodeType===9?e:e.ownerDocument}function nx(e){switch(e){case Au:return ri;case ip:return em;default:return _n}}function rx(e,t){if(e===_n)switch(t){case"svg":return ri;case"math":return em;default:return _n}return e===ri&&t==="foreignObject"?_n:e}function Tg(e,t){return e==="textarea"||e==="noscript"||typeof t.children==="string"||typeof t.children==="number"||typeof t.children==="bigint"||typeof t.dangerouslySetInnerHTML==="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function SI(){var e=window.event;if(e&&e.type==="popstate"){if(e===ub)return!1;return ub=e,!0}return ub=null,!1}function nd(){var e=window.event;return e&&e!==tc?e.type:null}function rd(){var e=window.event;return e&&e!==tc?e.timeStamp:-1.1}function xI(e){setTimeout(function(){throw e})}function LI(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function CI(){}function kI(e,t,a,o){yI(e,t,a,o),e[oo]=o}function sx(e){Ei(e,"")}function wI(e,t,a){e.nodeValue=a}function ux(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[oo]||null;if(t!==null){var a=$e(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,re(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,re(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function cr(e){return e==="head"}function TI(e,t){e.removeChild(t)}function II(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function ix(e,t){var a=t,o=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a===ec||a===Jp){if(o===0){e.removeChild(l),ku(t);return}o--}else if(a===Jd||a===Br||a===Ps||a===ni||a===Us)o++;else if(a===EM)sd(e.ownerDocument.documentElement);else if(a===qM){a=e.ownerDocument.head,sd(a);for(var n=a.firstChild;n;){var s=n.nextSibling,d=n.nodeName;n[md]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=s}}else a===OM&&sd(e.ownerDocument.body);a=l}while(a);ku(t)}function dx(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a===ec)if(e===0)break;else e--;else a!==Jd&&a!==Br&&a!==Ps&&a!==ni||e++;a=o}while(a)}function RI(e){dx(e,!0)}function MI(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function AI(e){e.nodeValue=""}function DI(e){dx(e,!1)}function EI(e,t){t=t[BM],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function OI(e,t){e.nodeValue=t}function Ig(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ig(a),me(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function qI(e,t,a,o){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){gt(l.name,"name");var n=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;else if(!e[md])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(n!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Mo(e.nextSibling),e===null)break}return null}function BI(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=Mo(e.nextSibling),e===null)return null}return e}function cx(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Mo(e.nextSibling),e===null)return null}return e}function Rg(e){return e.data===Br||e.data===Ps}function Mg(e){return e.data===ni||e.data===Br&&e.ownerDocument.readyState!==e1}function NI(e,t){var a=e.ownerDocument;if(e.data===Ps)e._reactRetry=t;else if(e.data!==Br||a.readyState!==e1)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Mo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Jd||t===ni||t===Br||t===Ps||t===Us||t===nb||t===JC)break;if(t===ec||t===Jp)return null}}return e}function fx(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,l=0;l<o.length;l++){var n=o[l];a[JS(n.name)]=n.name.toLowerCase()==="style"?Cg(e):n.value}return{type:t,props:a}}return e.nodeType===8?e.data===Us?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function px(e,t,a){return a===null||a[DM]!==!0?(e.nodeValue===t?e=null:(t=dr(t),e=dr(e.nodeValue)===t?null:e.nodeValue),e):null}function Ag(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===ec||a===Jp){if(t===0)return Mo(e.nextSibling);t--}else a!==Jd&&a!==ni&&a!==Br&&a!==Ps&&a!==Us||t++}e=e.nextSibling}return null}function mx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Jd||a===ni||a===Br||a===Ps||a===Us){if(t===0)return e;t--}else a!==ec&&a!==Jp||t++}e=e.previousSibling}return null}function UI(e){ku(e)}function PI(e){ku(e)}function zI(e){ku(e)}function hx(e,t,a,o,l){switch(l&&Hm(e,o.ancestorInfo),t=Xf(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function _I(e,t,a,o){if(!a[hr]&&$e(a)){var l=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",l,l,l)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(l=a.attributes;l.length;)a.removeAttributeNode(l[0]);$a(a,e,t),a[Xa]=o,a[oo]=t}function sd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);me(e)}function jf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function gx(e,t,a){var o=si;if(o&&typeof t==="string"&&t){var l=Fo(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a==="string"&&(l+='[crossorigin="'+a+'"]'),r1.has(l)||(r1.add(l),e={rel:e,crossOrigin:a,href:t},o.querySelector(l)===null&&(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}}function yx(e,t,a,o){var l=(l=pr.current)?jf(l):null;if(!l)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(a=Lu(a.href),t=yt(l).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=Lu(a.href);var n=yt(l).hoistableStyles,s=n.get(e);if(!s&&(l=l.ownerDocument||l,s={type:"stylesheet",instance:null,count:0,state:{loading:_s,preload:null}},n.set(e,s),(n=l.querySelector(ud(e)))&&!n._p&&(s.instance=n,s.state.loading=ac|el),!tl.has(e))){var d={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};tl.set(e,d),n||HI(l,e,d,s.state)}if(t&&o===null)throw a=`
175
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,X(e))})}function Gl(e){e!==li&&e.next===null&&(li===null?Xp=li=e:li=li.next=e),jp=!0,G.actQueue!==null?eb||(eb=!0,XS()):Jy||(Jy=!0,XS())}function od(e,t){if(!tb&&jp){tb=!0;do{var a=!1;for(var o=Xp;o!==null;){if(!t)if(e!==0){var l=o.pendingLanes;if(l===0)var n=0;else{var s=o.suspendedLanes,d=o.pingedLanes;n=(1<<31-ao(42|e)+1)-1,n&=l&~(s&~d),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,$S(o,n))}else n=ot,n=Kr(o,o===Pt?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==zs),(n&3)===0||Jr(o,n)||(a=!0,$S(o,n));o=o.next}}while(a);tb=!1}}function mI(){tc=window.event,hg()}function hg(){jp=eb=Jy=!1;var e=0;qr!==0&&xI()&&(e=qr);for(var t=Ba(),a=null,o=Xp;o!==null;){var l=o.next,n=GS(o,t);if(n===0)o.next=null,a===null?Xp=l:a.next=l,l===null&&(li=a);else if(a=o,e!==0||(n&3)!==0)jp=!0;o=l}wa!==Er&&wa!==Gp||od(e,!1),qr!==0&&(qr=0)}function GS(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:l}=e,n=e.pendingLanes&-62914561;0<n;){var s=31-ao(n),d=1<<s,m=l[s];if(m===-1){if((d&a)===0||(d&o)!==0)l[s]=Om(d,t)}else m<=t&&(e.expiredLanes|=d);n&=~d}if(t=Pt,a=ot,a=Kr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==zs),o=e.callbackNode,a===0||e===t&&(Dt===Es||Dt===Os)||e.cancelPendingCommit!==null)return o!==null&&gg(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||Jr(e,a)){if(t=a&-a,t!==e.callbackPriority||G.actQueue!==null&&o!==ab)gg(o);else return t;switch(y(a)){case Eo:case cl:a=Wg;break;case Zl:a=Iu;break;case sp:a=Kg;break;default:a=Iu}return o=VS.bind(null,e),G.actQueue!==null?(G.actQueue.push(o),a=ab):a=Qg(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&gg(o),e.callbackPriority=2,e.callbackNode=null,2}function VS(e,t){if(wp=kp=!1,tc=window.event,wa!==Er&&wa!==Gp)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(yl===Fp&&(yl=jy),td()&&e.callbackNode!==a)return null;var o=ot;if(o=Kr(e,e===Pt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==zs),o===0)return null;return CS(e,o,t),GS(e,Ba()),e.callbackNode!=null&&e.callbackNode===a?VS.bind(null,e):null}function $S(e,t){if(td())return null;kp=wp,wp=!1,CS(e,t,!0)}function gg(e){e!==ab&&e!==null&&oR(e)}function XS(){G.actQueue!==null&&G.actQueue.push(function(){return hg(),null}),PM(function(){(ht&(Aa|No))!==Pa?Qg(Zg,mI):hg()})}function yg(){if(qr===0){var e=ws;e===0&&(e=lp,lp<<=1,(lp&261888)===0&&(lp=256)),qr=e}return qr}function jS(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return gt(e,"action"),qi(""+e)}function YS(e,t){var a=t.ownerDocument.createElement("input");return a.name=t.name,a.value=t.value,e.id&&a.setAttribute("form",e.id),t.parentNode.insertBefore(a,t),e=new FormData(e),a.parentNode.removeChild(a),e}function hI(e,t,a,o,l){if(t==="submit"&&a&&a.stateNode===l){var n=jS((l[oo]||null).action),s=o.submitter;s&&(t=(t=s[oo]||null)?jS(t.formAction):s.getAttribute("formAction"),t!==null&&(n=t,s=null));var d=new fp("action","action",null,o,l);e.push({event:d,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(qr!==0){var m=s?YS(l,s):new FormData(l),g={pending:!0,data:m,method:l.method,action:n};Object.freeze(g),Uh(a,g,null,m)}}else typeof n==="function"&&(d.preventDefault(),m=s?YS(l,s):new FormData(l),g={pending:!0,data:m,method:l.method,action:n},Object.freeze(g),Uh(a,g,n,m))},currentTarget:l}]})}}function Vf(e,t,a){e.currentTarget=a;try{t(e)}catch(o){my(o)}e.currentTarget=null}function QS(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var l=void 0,n=o.event;if(o=o.listeners,t)for(var s=o.length-1;0<=s;s--){var d=o[s],m=d.instance,g=d.currentTarget;if(d=d.listener,m!==l&&n.isPropagationStopped())break e;m!==null?re(m,Vf,n,d,g):Vf(n,d,g),l=m}else for(s=0;s<o.length;s++){if(d=o[s],m=d.instance,g=d.currentTarget,d=d.listener,m!==l&&n.isPropagationStopped())break e;m!==null?re(m,Vf,n,d,g):Vf(n,d,g),l=m}}}}function ft(e,t){ob.has(e)||console.error('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',e);var a=t[Jg];a===void 0&&(a=t[Jg]=new Set);var o=e+"__bubble";a.has(o)||(ZS(t,e,2,!1),a.add(o))}function bg(e,t,a){ob.has(e)&&!t&&console.error('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',e);var o=0;t&&(o|=4),ZS(a,e,o,t)}function vg(e){if(!e[Yp]){e[Yp]=!0,Xx.forEach(function(a){a!=="selectionchange"&&(ob.has(a)||bg(a,!1,e),bg(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Yp]||(t[Yp]=!0,bg("selectionchange",!1,t))}}function ZS(e,t,a,o){switch(Mx(t)){case Eo:var l=QI;break;case cl:l=ZI;break;default:l=Bg}a=l.bind(null,t,a,e),l=void 0,!ly||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(l=!0),o?l!==void 0?e.addEventListener(t,a,{capture:!0,passive:l}):e.addEventListener(t,a,!0):l!==void 0?e.addEventListener(t,a,{passive:l}):e.addEventListener(t,a,!1)}function Sg(e,t,a,o,l){var n=o;if((t&1)===0&&(t&2)===0&&o!==null)e:for(;;){if(o===null)return;var s=o.tag;if(s===3||s===4){var d=o.stateNode.containerInfo;if(d===l)break;if(s===4)for(s=o.return;s!==null;){var m=s.tag;if((m===3||m===4)&&s.stateNode.containerInfo===l)return;s=s.return}for(;d!==null;){if(s=we(d),s===null)return;if(m=s.tag,m===5||m===6||m===26||m===27){o=n=s;continue e}d=d.parentNode}}o=o.return}s0(function(){var g=n,A=Fm(a),E=[];e:{var T=ML.get(e);if(T!==void 0){var U=fp,de=e;switch(e){case"keypress":if(Wc(a)===0)break e;case"keydown":case"keyup":U=VR;break;case"focusin":de="focus",U=uy;break;case"focusout":de="blur",U=uy;break;case"beforeblur":case"afterblur":U=uy;break;case"click":if(a.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":U=hL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=ER;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=jR;break;case wL:case TL:case IL:U=BR;break;case RL:U=QR;break;case"scroll":case"scrollend":U=AR;break;case"wheel":U=WR;break;case"copy":case"cut":case"paste":U=UR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=yL;break;case"toggle":case"beforetoggle":U=JR}var ye=(t&4)!==0,Ft=!ye&&(e==="scroll"||e==="scrollend"),pt=ye?T!==null?T+"Capture":null:T;ye=[];for(var w=g,I;w!==null;){var M=w;if(I=M.stateNode,M=M.tag,M!==5&&M!==26&&M!==27||I===null||pt===null||(M=Bi(w,pt),M!=null&&ye.push(ld(w,M,I))),Ft)break;w=w.return}0<ye.length&&(T=new U(T,de,null,a,A),E.push({event:T,listeners:ye}))}}if((t&7)===0){e:{if(T=e==="mouseover"||e==="pointerover",U=e==="mouseout"||e==="pointerout",T&&a!==hd&&(de=a.relatedTarget||a.fromElement)&&(we(de)||de[hr]))break e;if(U||T){if(T=A.window===A?A:(T=A.ownerDocument)?T.defaultView||T.parentWindow:window,U){if(de=a.relatedTarget||a.toElement,U=g,de=de?we(de):null,de!==null&&(Ft=z(de),ye=de.tag,de!==Ft||ye!==5&&ye!==27&&ye!==6))de=null}else U=null,de=g;if(U!==de){if(ye=hL,M="onMouseLeave",pt="onMouseEnter",w="mouse",e==="pointerout"||e==="pointerover")ye=yL,M="onPointerLeave",pt="onPointerEnter",w="pointer";if(Ft=U==null?T:Xe(U),I=de==null?T:Xe(de),T=new ye(M,w+"leave",U,a,A),T.target=Ft,T.relatedTarget=I,M=null,we(A)===g&&(ye=new ye(pt,w+"enter",de,a,A),ye.target=I,ye.relatedTarget=Ft,M=ye),Ft=M,U&&de)t:{ye=gI,pt=U,w=de,I=0;for(M=pt;M;M=ye(M))I++;M=0;for(var Q=w;Q;Q=ye(Q))M++;for(;0<I-M;)pt=ye(pt),I--;for(;0<M-I;)w=ye(w),M--;for(;I--;){if(pt===w||w!==null&&pt===w.alternate){ye=pt;break t}pt=ye(pt),w=ye(w)}ye=null}else ye=null;U!==null&&WS(E,T,U,ye,!1),de!==null&&Ft!==null&&WS(E,Ft,de,ye,!0)}}}e:{if(T=g?Xe(g):window,U=T.nodeName&&T.nodeName.toLowerCase(),U==="select"||U==="input"&&T.type==="file")var he=m0;else if(f0(T))if(CL)he=RT;else{he=TT;var Ge=wT}else U=T.nodeName,!U||U.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?g&&Oi(g.elementType)&&(he=m0):he=IT;if(he&&(he=he(e,g))){p0(E,he,a,A);break e}Ge&&Ge(e,T,g),e==="focusout"&&g&&T.type==="number"&&g.memoizedProps.value!=null&&Nm(T,"number",T.value)}switch(Ge=g?Xe(g):window,e){case"focusin":if(f0(Ge)||Ge.contentEditable==="true")Bu=Ge,dy=g,Ld=null;break;case"focusout":Ld=dy=Bu=null;break;case"mousedown":cy=!0;break;case"contextmenu":case"mouseup":case"dragend":cy=!1,x0(E,a,A);break;case"selectionchange":if(oM)break;case"keydown":case"keyup":x0(E,a,A)}var De;if(iy)e:{switch(e){case"compositionstart":var Te="onCompositionStart";break e;case"compositionend":Te="onCompositionEnd";break e;case"compositionupdate":Te="onCompositionUpdate";break e}Te=void 0}else qu?d0(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===bL&&(Te="onCompositionStart");if(Te&&(vL&&a.locale!=="ko"&&(qu||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&qu&&(De=u0()):(gr=A,ny=("value"in gr)?gr.value:gr.textContent,qu=!0)),Ge=$f(g,Te),0<Ge.length&&(Te=new gL(Te,e,null,a,A),E.push({event:Te,listeners:Ge}),De?Te.data=De:(De=c0(a),De!==null&&(Te.data=De)))),De=tM?xT(e,a):LT(e,a))Te=$f(g,"onBeforeInput"),0<Te.length&&(Ge=new zR("onBeforeInput","beforeinput",null,a,A),E.push({event:Ge,listeners:Te}),Ge.data=De);hI(E,e,g,a,A)}QS(E,t)})}function ld(e,t,a){return{instance:e,listener:t,currentTarget:a}}function $f(e,t){for(var a=t+"Capture",o=[];e!==null;){var l=e,n=l.stateNode;if(l=l.tag,l!==5&&l!==26&&l!==27||n===null||(l=Bi(e,a),l!=null&&o.unshift(ld(e,l,n)),l=Bi(e,t),l!=null&&o.push(ld(e,l,n))),e.tag===3)return o;e=e.return}return[]}function gI(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function WS(e,t,a,o,l){for(var n=t._reactName,s=[];a!==null&&a!==o;){var d=a,m=d.alternate,g=d.stateNode;if(d=d.tag,m!==null&&m===o)break;d!==5&&d!==26&&d!==27||g===null||(m=g,l?(g=Bi(a,n),g!=null&&s.unshift(ld(a,g,m))):l||(g=Bi(a,n),g!=null&&s.push(ld(a,g,m)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}function xg(e,t){yT(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||pL||(pL=!0,e==="select"&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var a={registrationNameDependencies:vs,possibleRegistrationNames:ey};Oi(e)||typeof t.is==="string"||vT(e,t,a),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function qa(e,t,a,o){t!==a&&(a=dr(a),dr(t)!==a&&(o[e]=t))}function yI(e,t,a){t.forEach(function(o){a[ex(o)]=o==="style"?Cg(e):e.getAttribute(o)})}function Vl(e,t){t===!1?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function KS(e,t){return e=e.namespaceURI===ip||e.namespaceURI===Au?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function dr(e){return Kt(e)&&(console.error("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",Ia(e)),Yt(e)),(typeof e==="string"?e:""+e).replace(MM,`
176
+ `).replace(AM,"")}function JS(e,t){return t=dr(t),dr(e)===t?!0:!1}function Nt(e,t,a,o,l,n){switch(a){case"children":if(typeof o==="string")Zc(o,t,!1),t==="body"||t==="textarea"&&o===""||Ei(e,o);else if(typeof o==="number"||typeof o==="bigint")Zc(""+o,t,!1),t!=="body"&&Ei(e,""+o);break;case"className":jc(e,"class",o);break;case"tabIndex":jc(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":jc(e,a,o);break;case"style":l0(e,o,n);break;case"data":if(t!=="object"){jc(e,"data",o);break}case"src":case"href":if(o===""&&(t!=="a"||a!=="href")){a==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',a,a),e.removeAttribute(a);break}if(o==null||typeof o==="function"||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}gt(o,a),o=qi(""+o),e.setAttribute(a,o);break;case"action":case"formAction":if(o!=null&&(t==="form"?a==="formAction"?console.error("You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>."):typeof o==="function"&&(l.encType==null&&l.method==null||Wp||(Wp=!0,console.error("Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.")),l.target==null||Zp||(Zp=!0,console.error("Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window."))):t==="input"||t==="button"?a==="action"?console.error("You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>."):t!=="input"||l.type==="submit"||l.type==="image"||Qp?t!=="button"||l.type==null||l.type==="submit"||Qp?typeof o==="function"&&(l.name==null||KC||(KC=!0,console.error('Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.')),l.formEncType==null&&l.formMethod==null||Wp||(Wp=!0,console.error("Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.")),l.formTarget==null||Zp||(Zp=!0,console.error("Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window."))):(Qp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Qp=!0,console.error('An input can only specify a formAction along with type="submit" or type="image".')):a==="action"?console.error("You can only pass the action prop to <form>."):console.error("You can only pass the formAction prop to <input> or <button>.")),typeof o==="function"){e.setAttribute(a,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof n==="function"&&(a==="formAction"?(t!=="input"&&Nt(e,t,"name",l.name,l,null),Nt(e,t,"formEncType",l.formEncType,l,null),Nt(e,t,"formMethod",l.formMethod,l,null),Nt(e,t,"formTarget",l.formTarget,l,null)):(Nt(e,t,"encType",l.encType,l,null),Nt(e,t,"method",l.method,l,null),Nt(e,t,"target",l.target,l,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}gt(o,a),o=qi(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&Vl(a,o),e.onclick=bn);break;case"onScroll":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scrollend",e));break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"multiple":e.multiple=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"muted":e.muted=o&&typeof o!=="function"&&typeof o!=="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o==="function"||typeof o==="boolean"||typeof o==="symbol"){e.removeAttribute("xlink:href");break}gt(o,a),a=qi(""+o),e.setAttributeNS(Ns,"xlink:href",a);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(gt(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||Kp[a]||(Kp[a]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",a));case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!=="function"&&typeof o!=="symbol"?e.setAttribute(a,""):e.removeAttribute(a);break;case"capture":case"download":o===!0?e.setAttribute(a,""):o!==!1&&o!=null&&typeof o!=="function"&&typeof o!=="symbol"?(gt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!=="function"&&typeof o!=="symbol"&&!isNaN(o)&&1<=o?(gt(o,a),e.setAttribute(a,o)):e.removeAttribute(a);break;case"rowSpan":case"start":o==null||typeof o==="function"||typeof o==="symbol"||isNaN(o)?e.removeAttribute(a):(gt(o,a),e.setAttribute(a,o));break;case"popover":ft("beforetoggle",e),ft("toggle",e),Xc(e,"popover",o);break;case"xlinkActuate":yn(e,Ns,"xlink:actuate",o);break;case"xlinkArcrole":yn(e,Ns,"xlink:arcrole",o);break;case"xlinkRole":yn(e,Ns,"xlink:role",o);break;case"xlinkShow":yn(e,Ns,"xlink:show",o);break;case"xlinkTitle":yn(e,Ns,"xlink:title",o);break;case"xlinkType":yn(e,Ns,"xlink:type",o);break;case"xmlBase":yn(e,lb,"xml:base",o);break;case"xmlLang":yn(e,lb,"xml:lang",o);break;case"xmlSpace":yn(e,lb,"xml:space",o);break;case"is":n!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Xc(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":JC||o==null||typeof o!=="object"||(JC=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",o));default:!(2<a.length)||a[0]!=="o"&&a[0]!=="O"||a[1]!=="n"&&a[1]!=="N"?(a=n0(a),Xc(e,a,o)):vs.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&Vl(a,o)}}function Lg(e,t,a,o,l,n){switch(a){case"style":l0(e,o,n);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!=="object"||!("__html"in o))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(a=o.__html,a!=null){if(l.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o==="string"?Ei(e,o):(typeof o==="number"||typeof o==="bigint")&&Ei(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&Vl(a,o),ft("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&Vl(a,o),e.onclick=bn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(vs.hasOwnProperty(a))o!=null&&typeof o!=="function"&&Vl(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(l=a.endsWith("Capture"),t=a.slice(2,l?a.length-7:void 0),n=e[oo]||null,n=n!=null?n[a]:null,typeof n==="function"&&e.removeEventListener(t,n,l),typeof o==="function")){typeof n!=="function"&&n!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,l);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Xc(e,a,o)}}}function $a(e,t,a){switch(xg(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":ft("error",e),ft("load",e);var o=!1,l=!1,n;for(n in a)if(a.hasOwnProperty(n)){var s=a[n];if(s!=null)switch(n){case"src":o=!0;break;case"srcSet":l=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,n,s,a,null)}}l&&Nt(e,t,"srcSet",a.srcSet,a,null),o&&Nt(e,t,"src",a.src,a,null);return;case"input":Jn("input",a),ft("invalid",e);var d=n=s=l=null,m=null,g=null;for(o in a)if(a.hasOwnProperty(o)){var A=a[o];if(A!=null)switch(o){case"name":l=A;break;case"type":s=A;break;case"checked":m=A;break;case"defaultChecked":g=A;break;case"value":n=A;break;case"defaultValue":d=A;break;case"children":case"dangerouslySetInnerHTML":if(A!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,o,A,a,null)}}Fb(e,a),Gb(e,n,d,m,g,s,l,!1);return;case"select":Jn("select",a),ft("invalid",e),o=s=n=null;for(l in a)if(a.hasOwnProperty(l)&&(d=a[l],d!=null))switch(l){case"value":n=d;break;case"defaultValue":s=d;break;case"multiple":o=d;default:Nt(e,t,l,d,a,null)}Xb(e,a),t=n,a=s,e.multiple=!!o,t!=null?su(e,!!o,t,!1):a!=null&&su(e,!!o,a,!0);return;case"textarea":Jn("textarea",a),ft("invalid",e),n=l=o=null;for(s in a)if(a.hasOwnProperty(s)&&(d=a[s],d!=null))switch(s){case"value":o=d;break;case"defaultValue":l=d;break;case"children":n=d;break;case"dangerouslySetInnerHTML":if(d!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Nt(e,t,s,d,a,null)}jb(e,a),Qb(e,o,l,n);return;case"option":Vb(e,a);for(m in a)if(a.hasOwnProperty(m)&&(o=a[m],o!=null))switch(m){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Nt(e,t,m,o,a,null)}return;case"dialog":ft("beforetoggle",e),ft("toggle",e),ft("cancel",e),ft("close",e);break;case"iframe":case"object":ft("load",e);break;case"video":case"audio":for(o=0;o<Kd.length;o++)ft(Kd[o],e);break;case"image":ft("error",e),ft("load",e);break;case"details":ft("toggle",e);break;case"embed":case"source":case"link":ft("error",e),ft("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(g in a)if(a.hasOwnProperty(g)&&(o=a[g],o!=null))switch(g){case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Nt(e,t,g,o,a,null)}return;default:if(Oi(t)){for(A in a)a.hasOwnProperty(A)&&(o=a[A],o!==void 0&&Lg(e,t,A,o,a,void 0));return}}for(d in a)a.hasOwnProperty(d)&&(o=a[d],o!=null&&Nt(e,t,d,o,a,null))}function bI(e,t,a,o){switch(xg(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var l=null,n=null,s=null,d=null,m=null,g=null,A=null;for(U in a){var E=a[U];if(a.hasOwnProperty(U)&&E!=null)switch(U){case"checked":break;case"value":break;case"defaultValue":m=E;default:o.hasOwnProperty(U)||Nt(e,t,U,null,o,E)}}for(var T in o){var U=o[T];if(E=a[T],o.hasOwnProperty(T)&&(U!=null||E!=null))switch(T){case"type":n=U;break;case"name":l=U;break;case"checked":g=U;break;case"defaultChecked":A=U;break;case"value":s=U;break;case"defaultValue":d=U;break;case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:U!==E&&Nt(e,t,T,U,o,E)}}t=a.type==="checkbox"||a.type==="radio"?a.checked!=null:a.value!=null,o=o.type==="checkbox"||o.type==="radio"?o.checked!=null:o.value!=null,t||!o||WC||(console.error("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),WC=!0),!t||o||ZC||(console.error("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components"),ZC=!0),Bm(e,s,d,m,g,A,n,l);return;case"select":U=s=d=T=null;for(n in a)if(m=a[n],a.hasOwnProperty(n)&&m!=null)switch(n){case"value":break;case"multiple":U=m;default:o.hasOwnProperty(n)||Nt(e,t,n,null,o,m)}for(l in o)if(n=o[l],m=a[l],o.hasOwnProperty(l)&&(n!=null||m!=null))switch(l){case"value":T=n;break;case"defaultValue":d=n;break;case"multiple":s=n;default:n!==m&&Nt(e,t,l,n,o,m)}o=d,t=s,a=U,T!=null?su(e,!!t,T,!1):!!a!==!!t&&(o!=null?su(e,!!t,o,!0):su(e,!!t,t?[]:"",!1));return;case"textarea":U=T=null;for(d in a)if(l=a[d],a.hasOwnProperty(d)&&l!=null&&!o.hasOwnProperty(d))switch(d){case"value":break;case"children":break;default:Nt(e,t,d,null,o,l)}for(s in o)if(l=o[s],n=a[s],o.hasOwnProperty(s)&&(l!=null||n!=null))switch(s){case"value":T=l;break;case"defaultValue":U=l;break;case"children":break;case"dangerouslySetInnerHTML":if(l!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:l!==n&&Nt(e,t,s,l,o,n)}Yb(e,T,U);return;case"option":for(var de in a)if(T=a[de],a.hasOwnProperty(de)&&T!=null&&!o.hasOwnProperty(de))switch(de){case"selected":e.selected=!1;break;default:Nt(e,t,de,null,o,T)}for(m in o)if(T=o[m],U=a[m],o.hasOwnProperty(m)&&T!==U&&(T!=null||U!=null))switch(m){case"selected":e.selected=T&&typeof T!=="function"&&typeof T!=="symbol";break;default:Nt(e,t,m,T,o,U)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var ye in a)T=a[ye],a.hasOwnProperty(ye)&&T!=null&&!o.hasOwnProperty(ye)&&Nt(e,t,ye,null,o,T);for(g in o)if(T=o[g],U=a[g],o.hasOwnProperty(g)&&T!==U&&(T!=null||U!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(T!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Nt(e,t,g,T,o,U)}return;default:if(Oi(t)){for(var Ft in a)T=a[Ft],a.hasOwnProperty(Ft)&&T!==void 0&&!o.hasOwnProperty(Ft)&&Lg(e,t,Ft,void 0,o,T);for(A in o)T=o[A],U=a[A],!o.hasOwnProperty(A)||T===U||T===void 0&&U===void 0||Lg(e,t,A,T,o,U);return}}for(var pt in a)T=a[pt],a.hasOwnProperty(pt)&&T!=null&&!o.hasOwnProperty(pt)&&Nt(e,t,pt,null,o,T);for(E in o)T=o[E],U=a[E],!o.hasOwnProperty(E)||T===U||T==null&&U==null||Nt(e,t,E,T,o,U)}function ex(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Cg(e){var t={};e=e.style;for(var a=0;a<e.length;a++){var o=e[a];t[o]=e.getPropertyValue(o)}return t}function tx(e,t,a){if(t!=null&&typeof t!=="object")console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var o,l=o="",n;for(n in t)if(t.hasOwnProperty(n)){var s=t[n];s!=null&&typeof s!=="boolean"&&s!==""&&(n.indexOf("--")===0?(Et(s,n),o+=l+n+":"+(""+s).trim()):typeof s!=="number"||s===0||cL.has(n)?(Et(s,n),o+=l+n.replace(rL,"-$1").toLowerCase().replace(sL,"-ms-")+":"+(""+s).trim()):o+=l+n.replace(rL,"-$1").toLowerCase().replace(sL,"-ms-")+":"+s+"px",l=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=dr(o),dr(t)!==o&&(a.style=Cg(e)))}}function Go(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(gt(o,t),e===""+o)return}qa(t,e,o,n)}function ax(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null){switch(typeof o){case"function":case"symbol":return}if(!o)return}else switch(typeof o){case"function":case"symbol":break;default:if(o)return}qa(t,e,o,n)}function kg(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":return}else if(o!=null)switch(typeof o){case"function":case"symbol":break;default:if(gt(o,a),e===""+o)return}qa(t,e,o,n)}function ox(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return;default:if(isNaN(o))return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(!isNaN(o)&&(gt(o,t),e===""+o))return}qa(t,e,o,n)}function wg(e,t,a,o,l,n){if(l.delete(a),e=e.getAttribute(a),e===null)switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":return}else if(o!=null)switch(typeof o){case"function":case"symbol":case"boolean":break;default:if(gt(o,t),a=qi(""+o),e===a)return}qa(t,e,o,n)}function lx(e,t,a,o){for(var l={},n=new Set,s=e.attributes,d=0;d<s.length;d++)switch(s[d].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:n.add(s[d].name)}if(Oi(t)){for(var m in a)if(a.hasOwnProperty(m)){var g=a[m];if(g!=null){if(vs.hasOwnProperty(m))typeof g!=="function"&&Vl(m,g);else if(a.suppressHydrationWarning!==!0)switch(m){case"children":typeof g!=="string"&&typeof g!=="number"||qa("children",e.textContent,g,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,g=g?g.__html:void 0,g!=null&&(g=KS(e,g),qa(m,s,g,l));continue;case"style":n.delete(m),tx(e,g,l);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":n.delete(m.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",m);continue;case"className":n.delete("class"),s=zb(e,"class",g),qa("className",s,g,l);continue;default:o.context===_n&&t!=="svg"&&t!=="math"?n.delete(m.toLowerCase()):n.delete(m),s=zb(e,m,g),qa(m,s,g,l)}}}}else for(g in a)if(a.hasOwnProperty(g)&&(m=a[g],m!=null)){if(vs.hasOwnProperty(g))typeof m!=="function"&&Vl(g,m);else if(a.suppressHydrationWarning!==!0)switch(g){case"children":typeof m!=="string"&&typeof m!=="number"||qa("children",e.textContent,m,l);continue;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"value":case"checked":case"selected":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":continue;case"dangerouslySetInnerHTML":s=e.innerHTML,m=m?m.__html:void 0,m!=null&&(m=KS(e,m),s!==m&&(l[g]={__html:s}));continue;case"className":Go(e,g,"class",m,n,l);continue;case"tabIndex":Go(e,g,"tabindex",m,n,l);continue;case"style":n.delete(g),tx(e,m,l);continue;case"multiple":n.delete(g),qa(g,e.multiple,m,l);continue;case"muted":n.delete(g),qa(g,e.muted,m,l);continue;case"autoFocus":n.delete("autofocus"),qa(g,e.autofocus,m,l);continue;case"data":if(t!=="object"){n.delete(g),s=e.getAttribute("data"),qa(g,s,m,l);continue}case"src":case"href":if(!(m!==""||t==="a"&&g==="href"||t==="object"&&g==="data")){g==="src"?console.error('An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',g,g):console.error('An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.',g,g);continue}wg(e,g,g,m,n,l);continue;case"action":case"formAction":if(s=e.getAttribute(g),typeof m==="function"){n.delete(g.toLowerCase()),g==="formAction"?(n.delete("name"),n.delete("formenctype"),n.delete("formmethod"),n.delete("formtarget")):(n.delete("enctype"),n.delete("method"),n.delete("target"));continue}else if(s===DM){n.delete(g.toLowerCase()),qa(g,"function",m,l);continue}wg(e,g,g.toLowerCase(),m,n,l);continue;case"xlinkHref":wg(e,g,"xlink:href",m,n,l);continue;case"contentEditable":kg(e,g,"contenteditable",m,n,l);continue;case"spellCheck":kg(e,g,"spellcheck",m,n,l);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":kg(e,g,g,m,n,l);continue;case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":ax(e,g,g.toLowerCase(),m,n,l);continue;case"capture":case"download":e:{d=e;var A=s=g,E=l;if(n.delete(A),d=d.getAttribute(A),d===null)switch(typeof m){case"undefined":case"function":case"symbol":break e;default:if(m===!1)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":break;case"boolean":if(m===!0&&d==="")break e;break;default:if(gt(m,s),d===""+m)break e}qa(s,d,m,E)}continue;case"cols":case"rows":case"size":case"span":e:{if(d=e,A=s=g,E=l,n.delete(A),d=d.getAttribute(A),d===null)switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(m)||1>m)break e}else if(m!=null)switch(typeof m){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(m)||1>m)&&(gt(m,s),d===""+m))break e}qa(s,d,m,E)}continue;case"rowSpan":ox(e,g,"rowspan",m,n,l);continue;case"start":ox(e,g,g,m,n,l);continue;case"xHeight":Go(e,g,"x-height",m,n,l);continue;case"xlinkActuate":Go(e,g,"xlink:actuate",m,n,l);continue;case"xlinkArcrole":Go(e,g,"xlink:arcrole",m,n,l);continue;case"xlinkRole":Go(e,g,"xlink:role",m,n,l);continue;case"xlinkShow":Go(e,g,"xlink:show",m,n,l);continue;case"xlinkTitle":Go(e,g,"xlink:title",m,n,l);continue;case"xlinkType":Go(e,g,"xlink:type",m,n,l);continue;case"xmlBase":Go(e,g,"xml:base",m,n,l);continue;case"xmlLang":Go(e,g,"xml:lang",m,n,l);continue;case"xmlSpace":Go(e,g,"xml:space",m,n,l);continue;case"inert":m!==""||Kp[g]||(Kp[g]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",g)),ax(e,g,g,m,n,l);continue;default:if(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N"){d=n0(g),s=!1,o.context===_n&&t!=="svg"&&t!=="math"?n.delete(d.toLowerCase()):(A=g.toLowerCase(),A=dp.hasOwnProperty(A)?dp[A]||null:null,A!==null&&A!==g&&(s=!0,n.delete(A)),n.delete(d));e:if(A=e,E=d,d=m,Mi(E))if(A.hasAttribute(E))A=A.getAttribute(E),gt(d,E),d=A===""+d?d:A;else{switch(typeof d){case"function":case"symbol":break e;case"boolean":if(A=E.toLowerCase().slice(0,5),A!=="data-"&&A!=="aria-")break e}d=d===void 0?void 0:null}else d=void 0;s||qa(g,d,m,l)}}}return 0<n.size&&a.suppressHydrationWarning!==!0&&yI(e,n,l),Object.keys(l).length===0?null:l}function vI(e,t){switch(e.length){case 0:return"";case 1:return e[0];case 2:return e[0]+" "+t+" "+e[1];default:return e.slice(0,-1).join(", ")+", "+t+" "+e[e.length-1]}}function nx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function SI(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var l=a[o],{transferSize:n,initiatorType:s,duration:d}=l;if(n&&d&&nx(s)){s=0,d=l.responseEnd;for(o+=1;o<a.length;o++){var m=a[o],g=m.startTime;if(g>d)break;var A=m.transferSize,E=m.initiatorType;A&&nx(E)&&(m=m.responseEnd,s+=A*(m<d?1:(d-g)/(m-g)))}if(--o,t+=8*(n+s)/(l.duration/1000),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==="number")?e:5}function Xf(e){return e.nodeType===9?e:e.ownerDocument}function rx(e){switch(e){case Au:return ri;case ip:return em;default:return _n}}function sx(e,t){if(e===_n)switch(t){case"svg":return ri;case"math":return em;default:return _n}return e===ri&&t==="foreignObject"?_n:e}function Tg(e,t){return e==="textarea"||e==="noscript"||typeof t.children==="string"||typeof t.children==="number"||typeof t.children==="bigint"||typeof t.dangerouslySetInnerHTML==="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}function xI(){var e=window.event;if(e&&e.type==="popstate"){if(e===ub)return!1;return ub=e,!0}return ub=null,!1}function nd(){var e=window.event;return e&&e!==tc?e.type:null}function rd(){var e=window.event;return e&&e!==tc?e.timeStamp:-1.1}function LI(e){setTimeout(function(){throw e})}function CI(e,t,a){switch(t){case"button":case"input":case"select":case"textarea":a.autoFocus&&e.focus();break;case"img":a.src?e.src=a.src:a.srcSet&&(e.srcset=a.srcSet)}}function kI(){}function wI(e,t,a,o){bI(e,t,a,o),e[oo]=o}function ux(e){Ei(e,"")}function TI(e,t,a){e.nodeValue=a}function ix(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[oo]||null;if(t!==null){var a=$e(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,re(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,re(a,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function cr(e){return e==="head"}function II(e,t){e.removeChild(t)}function RI(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function dx(e,t){var a=t,o=0;do{var l=a.nextSibling;if(e.removeChild(a),l&&l.nodeType===8)if(a=l.data,a===ec||a===Jp){if(o===0){e.removeChild(l),ku(t);return}o--}else if(a===Jd||a===Br||a===Ps||a===ni||a===Us)o++;else if(a===OM)sd(e.ownerDocument.documentElement);else if(a===BM){a=e.ownerDocument.head,sd(a);for(var n=a.firstChild;n;){var s=n.nextSibling,d=n.nodeName;n[md]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=s}}else a===qM&&sd(e.ownerDocument.body);a=l}while(a);ku(t)}function cx(e,t){var a=e;e=0;do{var o=a.nextSibling;if(a.nodeType===1?t?(a._stashedDisplay=a.style.display,a.style.display="none"):(a.style.display=a._stashedDisplay||"",a.getAttribute("style")===""&&a.removeAttribute("style")):a.nodeType===3&&(t?(a._stashedText=a.nodeValue,a.nodeValue=""):a.nodeValue=a._stashedText||""),o&&o.nodeType===8)if(a=o.data,a===ec)if(e===0)break;else e--;else a!==Jd&&a!==Br&&a!==Ps&&a!==ni||e++;a=o}while(a)}function MI(e){cx(e,!0)}function AI(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function DI(e){e.nodeValue=""}function EI(e){cx(e,!1)}function OI(e,t){t=t[NM],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function qI(e,t){e.nodeValue=t}function Ig(e){var t=e.firstChild;t&&t.nodeType===10&&(t=t.nextSibling);for(;t;){var a=t;switch(t=t.nextSibling,a.nodeName){case"HTML":case"HEAD":case"BODY":Ig(a),me(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function BI(e,t,a,o){for(;e.nodeType===1;){var l=a;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(!o)if(t==="input"&&e.type==="hidden"){gt(l.name,"name");var n=l.name==null?null:""+l.name;if(l.type==="hidden"&&e.getAttribute("name")===n)return e}else return e;else if(!e[md])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(n=e.getAttribute("rel"),n==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(n!==l.rel||e.getAttribute("href")!==(l.href==null||l.href===""?null:l.href)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin)||e.getAttribute("title")!==(l.title==null?null:l.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(n=e.getAttribute("src"),(n!==(l.src==null?null:l.src)||e.getAttribute("type")!==(l.type==null?null:l.type)||e.getAttribute("crossorigin")!==(l.crossOrigin==null?null:l.crossOrigin))&&n&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Mo(e.nextSibling),e===null)break}return null}function NI(e,t,a){if(t==="")return null;for(;e.nodeType!==3;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!a)return null;if(e=Mo(e.nextSibling),e===null)return null}return e}function fx(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Mo(e.nextSibling),e===null)return null}return e}function Rg(e){return e.data===Br||e.data===Ps}function Mg(e){return e.data===ni||e.data===Br&&e.ownerDocument.readyState!==t1}function UI(e,t){var a=e.ownerDocument;if(e.data===Ps)e._reactRetry=t;else if(e.data!==Br||a.readyState!==t1)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Mo(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===Jd||t===ni||t===Br||t===Ps||t===Us||t===nb||t===e1)break;if(t===ec||t===Jp)return null}}return e}function px(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,l=0;l<o.length;l++){var n=o[l];a[ex(n.name)]=n.name.toLowerCase()==="style"?Cg(e):n.value}return{type:t,props:a}}return e.nodeType===8?e.data===Us?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function mx(e,t,a){return a===null||a[EM]!==!0?(e.nodeValue===t?e=null:(t=dr(t),e=dr(e.nodeValue)===t?null:e.nodeValue),e):null}function Ag(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===ec||a===Jp){if(t===0)return Mo(e.nextSibling);t--}else a!==Jd&&a!==ni&&a!==Br&&a!==Ps&&a!==Us||t++}e=e.nextSibling}return null}function hx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===Jd||a===ni||a===Br||a===Ps||a===Us){if(t===0)return e;t--}else a!==ec&&a!==Jp||t++}e=e.previousSibling}return null}function PI(e){ku(e)}function zI(e){ku(e)}function _I(e){ku(e)}function gx(e,t,a,o,l){switch(l&&Hm(e,o.ancestorInfo),t=Xf(a),e){case"html":if(e=t.documentElement,!e)throw Error("React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"head":if(e=t.head,!e)throw Error("React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.");return e;case"body":if(e=t.body,!e)throw Error("React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.");return e;default:throw Error("resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.")}}function HI(e,t,a,o){if(!a[hr]&&$e(a)){var l=a.tagName.toLowerCase();console.error("You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.",l,l,l)}switch(e){case"html":case"head":case"body":break;default:console.error("acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.")}for(l=a.attributes;l.length;)a.removeAttributeNode(l[0]);$a(a,e,t),a[Xa]=o,a[oo]=t}function sd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);me(e)}function jf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function yx(e,t,a){var o=si;if(o&&typeof t==="string"&&t){var l=Fo(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a==="string"&&(l+='[crossorigin="'+a+'"]'),s1.has(l)||(s1.add(l),e={rel:e,crossOrigin:a,href:t},o.querySelector(l)===null&&(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}}function bx(e,t,a,o){var l=(l=pr.current)?jf(l):null;if(!l)throw Error('"resourceRoot" was expected to exist. This is a bug in React.');switch(e){case"meta":case"title":return null;case"style":return typeof a.precedence==="string"&&typeof a.href==="string"?(a=Lu(a.href),t=yt(l).hoistableStyles,o=t.get(a),o||(o={type:"style",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(a.rel==="stylesheet"&&typeof a.href==="string"&&typeof a.precedence==="string"){e=Lu(a.href);var n=yt(l).hoistableStyles,s=n.get(e);if(!s&&(l=l.ownerDocument||l,s={type:"stylesheet",instance:null,count:0,state:{loading:_s,preload:null}},n.set(e,s),(n=l.querySelector(ud(e)))&&!n._p&&(s.instance=n,s.state.loading=ac|el),!tl.has(e))){var d={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};tl.set(e,d),n||FI(l,e,d,s.state)}if(t&&o===null)throw a=`
177
177
 
178
178
  - `+Yf(t)+`
179
179
  + `+Yf(a),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return s}if(t&&o!==null)throw a=`
180
180
 
181
181
  - `+Yf(t)+`
182
- + `+Yf(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(a=Cu(a),t=yt(l).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Yf(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):dl.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):dl.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):dl.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Lu(e){return'href="'+Fo(e)+'"'}function ud(e){return'link[rel="stylesheet"]['+e+"]"}function bx(e){return rt({},e,{"data-precedence":e.precedence,precedence:null})}function HI(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=ac:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=ac}),t.addEventListener("error",function(){return o.loading|=l1}),$a(t,"link",a),Oe(t),e.head.appendChild(t))}function Cu(e){return'[src="'+Fo(e)+'"]'}function id(e){return"script[async]"+e}function vx(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Fo(a.href)+'"]');if(o)return t.instance=o,Oe(o),o;var l=rt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Oe(o),$a(o,"style",l),Qf(o,a.precedence,e),t.instance=o;case"stylesheet":l=Lu(a.href);var n=e.querySelector(ud(l));if(n)return t.state.loading|=el,t.instance=n,Oe(n),n;o=bx(a),(l=tl.get(l))&&Dg(o,l),n=(e.ownerDocument||e).createElement("link"),Oe(n);var s=n;return s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),$a(n,"link",o),t.state.loading|=el,Qf(n,a.precedence,e),t.instance=n;case"script":if(n=Cu(a.src),l=e.querySelector(id(n)))return t.instance=l,Oe(l),l;if(o=a,l=tl.get(n))o=rt({},a),Eg(o,l);return e=e.ownerDocument||e,l=e.createElement("script"),Oe(l),$a(l,"link",o),e.head.appendChild(l),t.instance=l;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&el)===_s&&(o=t.instance,t.state.loading|=el,Qf(o,a.precedence,e));return t.instance}function Qf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=o.length?o[o.length-1]:null,n=l,s=0;s<o.length;s++){var d=o[s];if(d.dataset.precedence===t)n=d;else if(n!==l)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Dg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Eg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function Sx(e,t,a){if(tm===null){var o=new Map,l=tm=new Map;l.set(a,o)}else l=tm,o=l.get(a),o||(o=new Map,l.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(l=0;l<a.length;l++){var n=a[l];if(!(n[md]||n[Xa]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!==Au){var s=n.getAttribute(t)||"";s=e+s;var d=o.get(s);d?d.push(n):o.set(s,[n])}}return o}function xx(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function FI(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===ri||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href===""){o&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence==="string"){e=t.href;var l=t.onError,n=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),l&&a.push("`onError`"),n!=null&&a.push("`disabled`"),l=bI(a,"and"),l+=a.length===1?" prop":" props",n=a.length===1?"an "+l:"the "+l,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,n,l)}o&&(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!=="string"&&o&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e==="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!=="string"){o&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Lx(e){return e.type==="stylesheet"&&(e.state.loading&n1)===_s?!1:!0}function GI(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&el)===_s){if(a.instance===null){var l=Lu(o.href),n=t.querySelector(ud(l));if(n){t=n._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=Zf.bind(e),t.then(e,e)),a.state.loading|=el,a.instance=n,Oe(n);return}n=t.ownerDocument||t,o=bx(o),(l=tl.get(l))&&Dg(o,l),n=n.createElement("link"),Oe(n);var s=n;s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),$a(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&n1)===_s&&(e.count++,a=Zf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function VI(e,t){return e.stylesheets&&e.count===0&&Wf(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&Wf(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},PM+t);0<e.imgBytes&&db===0&&(db=125*vI()*_M);var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wf(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>db?50:zM)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(l)}}:null}function Zf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Wf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,am=new Map,t.forEach($I,e),am=null,Zf.call(e))}function $I(e,t){if(!(t.state.loading&el)){var a=am.get(e);if(a)var o=a.get(cb);else{a=new Map,am.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<l.length;n++){var s=l[n];if(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")a.set(s.dataset.precedence,s),o=s}o&&a.set(cb,o)}l=t.instance,s=l.getAttribute("data-precedence"),n=a.get(s)||o,n===o&&a.set(cb,l),a.set(s,l),this.count++,o=Zf.bind(this),l.addEventListener("load",o),l.addEventListener("error",o),n?n.parentNode.insertBefore(l,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=el}}function XI(e,t,a,o,l,n,s,d,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=zs,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ru(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ru(0),this.hiddenUpdates=ru(null),this.identifierPrefix=o,this.onUncaughtError=l,this.onCaughtError=n,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[];for(t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function Cx(e,t,a,o,l,n,s,d,m,g,A,E){return e=new XI(e,t,a,s,m,g,A,E,d),t=cM,n===!0&&(t|=Ja|fl),t|=tt,n=C(3,null,null,t),e.current=n,n.stateNode=e,t=rh(),fs(t),e.pooledCache=t,fs(t),n.memoizedState={element:o,isDehydrated:a,cache:t},ch(n),e}function kx(e){if(!e)return vr;return e=vr,e}function Og(e,t,a,o,l,n){if(Ka&&typeof Ka.onScheduleFiberRoot==="function")try{Ka.onScheduleFiberRoot(Ru,o,a)}catch(s){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",s))}l=kx(l),o.context===null?o.context=l:o.pendingContext=l,jl&&Do!==null&&!d1&&(d1=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
182
+ + `+Yf(a),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+a);return null;case"script":return t=a.async,a=a.src,typeof a==="string"&&t&&typeof t!=="function"&&typeof t!=="symbol"?(a=Cu(a),t=yt(l).hoistableScripts,o=t.get(a),o||(o={type:"script",instance:null,count:0,state:null},t.set(a,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error('getResource encountered a type it did not expect: "'+e+'". this is a bug in React.')}}function Yf(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):dl.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):dl.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):dl.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Lu(e){return'href="'+Fo(e)+'"'}function ud(e){return'link[rel="stylesheet"]['+e+"]"}function vx(e){return rt({},e,{"data-precedence":e.precedence,precedence:null})}function FI(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=ac:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=ac}),t.addEventListener("error",function(){return o.loading|=n1}),$a(t,"link",a),Oe(t),e.head.appendChild(t))}function Cu(e){return'[src="'+Fo(e)+'"]'}function id(e){return"script[async]"+e}function Sx(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Fo(a.href)+'"]');if(o)return t.instance=o,Oe(o),o;var l=rt({},a,{"data-href":a.href,"data-precedence":a.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),Oe(o),$a(o,"style",l),Qf(o,a.precedence,e),t.instance=o;case"stylesheet":l=Lu(a.href);var n=e.querySelector(ud(l));if(n)return t.state.loading|=el,t.instance=n,Oe(n),n;o=vx(a),(l=tl.get(l))&&Dg(o,l),n=(e.ownerDocument||e).createElement("link"),Oe(n);var s=n;return s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),$a(n,"link",o),t.state.loading|=el,Qf(n,a.precedence,e),t.instance=n;case"script":if(n=Cu(a.src),l=e.querySelector(id(n)))return t.instance=l,Oe(l),l;if(o=a,l=tl.get(n))o=rt({},a),Eg(o,l);return e=e.ownerDocument||e,l=e.createElement("script"),Oe(l),$a(l,"link",o),e.head.appendChild(l),t.instance=l;case"void":return null;default:throw Error('acquireResource encountered a resource type it did not expect: "'+t.type+'". this is a bug in React.')}else t.type==="stylesheet"&&(t.state.loading&el)===_s&&(o=t.instance,t.state.loading|=el,Qf(o,a.precedence,e));return t.instance}function Qf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),l=o.length?o[o.length-1]:null,n=l,s=0;s<o.length;s++){var d=o[s];if(d.dataset.precedence===t)n=d;else if(n!==l)break}n?n.parentNode.insertBefore(e,n.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Dg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Eg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function xx(e,t,a){if(tm===null){var o=new Map,l=tm=new Map;l.set(a,o)}else l=tm,o=l.get(a),o||(o=new Map,l.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(l=0;l<a.length;l++){var n=a[l];if(!(n[md]||n[Xa]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!==Au){var s=n.getAttribute(t)||"";s=e+s;var d=o.get(s);d?d.push(n):o.set(s,[n])}}return o}function Lx(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function GI(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===ri||t.itemProp!=null)return!o||t.itemProp==null||e!=="meta"&&e!=="title"&&e!=="style"&&e!=="link"&&e!=="script"||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!=="string"||typeof t.href!=="string"||t.href===""){o&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case"link":if(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""||t.onLoad||t.onError){if(t.rel==="stylesheet"&&typeof t.precedence==="string"){e=t.href;var l=t.onError,n=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),l&&a.push("`onError`"),n!=null&&a.push("`disabled`"),l=vI(a,"and"),l+=a.length===1?" prop":" props",n=a.length===1?"an "+l:"the "+l,a.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,n,l)}o&&(typeof t.rel!=="string"||typeof t.href!=="string"||t.href===""?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error("Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."));break}switch(t.rel){case"stylesheet":return e=t.precedence,t=t.disabled,typeof e!=="string"&&o&&console.error('Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.'),typeof e==="string"&&t==null;default:return!0}case"script":if(e=t.async&&typeof t.async!=="function"&&typeof t.async!=="symbol",!e||t.onLoad||t.onError||!t.src||typeof t.src!=="string"){o&&(e?t.onLoad||t.onError?console.error("Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>."):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error('Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.'));break}return!0;case"noscript":case"template":o&&console.error("Cannot render <%s> outside the main document. Try moving it into the root <head> tag.",e)}return!1}function Cx(e){return e.type==="stylesheet"&&(e.state.loading&r1)===_s?!1:!0}function VI(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&el)===_s){if(a.instance===null){var l=Lu(o.href),n=t.querySelector(ud(l));if(n){t=n._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=Zf.bind(e),t.then(e,e)),a.state.loading|=el,a.instance=n,Oe(n);return}n=t.ownerDocument||t,o=vx(o),(l=tl.get(l))&&Dg(o,l),n=n.createElement("link"),Oe(n);var s=n;s._p=new Promise(function(d,m){s.onload=d,s.onerror=m}),$a(n,"link",o),a.instance=n}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&r1)===_s&&(e.count++,a=Zf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function $I(e,t){return e.stylesheets&&e.count===0&&Wf(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&Wf(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},zM+t);0<e.imgBytes&&db===0&&(db=125*SI()*HM);var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Wf(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>db?50:_M)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(l)}}:null}function Zf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Wf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Wf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,am=new Map,t.forEach(XI,e),am=null,Zf.call(e))}function XI(e,t){if(!(t.state.loading&el)){var a=am.get(e);if(a)var o=a.get(cb);else{a=new Map,am.set(e,a);for(var l=e.querySelectorAll("link[data-precedence],style[data-precedence]"),n=0;n<l.length;n++){var s=l[n];if(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")a.set(s.dataset.precedence,s),o=s}o&&a.set(cb,o)}l=t.instance,s=l.getAttribute("data-precedence"),n=a.get(s)||o,n===o&&a.set(cb,l),a.set(s,l),this.count++,o=Zf.bind(this),l.addEventListener("load",o),l.addEventListener("error",o),n?n.parentNode.insertBefore(l,n.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(l,e.firstChild)),t.state.loading|=el}}function jI(e,t,a,o,l,n,s,d,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=zs,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ru(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ru(0),this.hiddenUpdates=ru(null),this.identifierPrefix=o,this.onUncaughtError=l,this.onCaughtError=n,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=m,this.incompleteTransitions=new Map,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[];for(t=0;31>t;t++)e.push(new Set);this._debugRootType=a?"hydrateRoot()":"createRoot()"}function kx(e,t,a,o,l,n,s,d,m,g,A,E){return e=new jI(e,t,a,s,m,g,A,E,d),t=fM,n===!0&&(t|=Ja|fl),t|=tt,n=C(3,null,null,t),e.current=n,n.stateNode=e,t=rh(),fs(t),e.pooledCache=t,fs(t),n.memoizedState={element:o,isDehydrated:a,cache:t},ch(n),e}function wx(e){if(!e)return vr;return e=vr,e}function Og(e,t,a,o,l,n){if(Ka&&typeof Ka.onScheduleFiberRoot==="function")try{Ka.onScheduleFiberRoot(Ru,o,a)}catch(s){Yl||(Yl=!0,console.error("React instrumentation encountered an error: %o",s))}l=wx(l),o.context===null?o.context=l:o.pendingContext=l,jl&&Do!==null&&!c1&&(c1=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
183
183
 
184
- Check the render method of %s.`,X(Do)||"Unknown")),o=lr(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(typeof n!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",n),o.callback=n),a=nr(e,o,t),a!==null&&(El(t,"root.render()",null),oa(a,e,t),Gi(a,e,t))}function wx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function qg(e,t){wx(e,t),(e=e.alternate)&&wx(e,t)}function Tx(e){if(e.tag===13||e.tag===31){var t=Wa(e,67108864);t!==null&&oa(t,e,67108864),qg(e,67108864)}}function Ix(e){if(e.tag===13||e.tag===31){var t=Ro(e);t=os(t);var a=Wa(e,t);a!==null&&oa(a,e,t),qg(e,t)}}function jI(){return Do}function YI(e,t,a,o){var l=G.T;G.T=null;var n=kt.p;try{kt.p=Eo,Bg(e,t,a,o)}finally{kt.p=n,G.T=l}}function QI(e,t,a,o){var l=G.T;G.T=null;var n=kt.p;try{kt.p=cl,Bg(e,t,a,o)}finally{kt.p=n,G.T=l}}function Bg(e,t,a,o){if(lm){var l=Ng(o);if(l===null)Sg(e,t,o,nm,a),Mx(e,o);else if(ZI(l,e,t,a,o))o.stopPropagation();else if(Mx(e,o),t&4&&-1<FM.indexOf(e)){for(;l!==null;){var n=$e(l);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var s=Rl(n.pendingLanes);if(s!==0){var d=n;d.pendingLanes|=2;for(d.entangledLanes|=2;s;){var m=1<<31-ao(s);d.entanglements[1]|=m,s&=~m}Gl(n),(ht&(Aa|No))===Pa&&(Hp=Ba()+PC,od(0,!1))}}break;case 31:case 13:d=Wa(n,2),d!==null&&oa(d,n,2),vu(),qg(n,2)}if(n=Ng(o),n===null&&Sg(e,t,o,nm,a),n===l)break;l=n}l!==null&&o.stopPropagation()}else Sg(e,t,o,null,a)}}function Ng(e){return e=Fm(e),Ug(e)}function Ug(e){if(nm=null,e=we(e),e!==null){var t=z(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=F(t),e!==null)return e;e=null}else if(a===31){if(e=K(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return nm=e,null}function Rx(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Eo;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return cl;case"message":switch(nR()){case Zg:return Eo;case Wg:return cl;case Iu:case rR:return Zl;case Kg:return sp;default:return Zl}default:return Zl}}function Mx(e,t){switch(e){case"focusin":case"focusout":Nr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Pr=null;break;case"pointerover":case"pointerout":lc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nc.delete(t.pointerId)}}function dd(e,t,a,o,l,n){if(e===null||e.nativeEvent!==n)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[l]},t!==null&&(t=$e(t),t!==null&&Tx(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e}function ZI(e,t,a,o,l){switch(t){case"focusin":return Nr=dd(Nr,e,t,a,o,l),!0;case"dragenter":return Ur=dd(Ur,e,t,a,o,l),!0;case"mouseover":return Pr=dd(Pr,e,t,a,o,l),!0;case"pointerover":var n=l.pointerId;return lc.set(n,dd(lc.get(n)||null,e,t,a,o,l)),!0;case"gotpointercapture":return n=l.pointerId,nc.set(n,dd(nc.get(n)||null,e,t,a,o,l)),!0}return!1}function Ax(e){var t=we(e.target);if(t!==null){var a=z(t);if(a!==null){if(t=a.tag,t===13){if(t=F(a),t!==null){e.blockedOn=t,ie(e.priority,function(){Ix(a)});return}}else if(t===31){if(t=K(a),t!==null){e.blockedOn=t,ie(e.priority,function(){Ix(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Kf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ng(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),l=o;hd!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),hd=l,a.target.dispatchEvent(o),hd===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),hd=null}else return t=$e(a),t!==null&&Tx(t),e.blockedOn=a,!1;t.shift()}return!0}function Dx(e,t,a){Kf(e)&&a.delete(t)}function WI(){fb=!1,Nr!==null&&Kf(Nr)&&(Nr=null),Ur!==null&&Kf(Ur)&&(Ur=null),Pr!==null&&Kf(Pr)&&(Pr=null),lc.forEach(Dx),nc.forEach(Dx)}function Jf(e,t){e.blockedOn===t&&(e.blockedOn=null,fb||(fb=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,WI)))}function Ex(e){rm!==e&&(rm=e,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,function(){rm===e&&(rm=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],l=e[t+2];if(typeof o!=="function")if(Ug(o||a)===null)continue;else break;var n=$e(a);n!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:l,method:a.method,action:o},Object.freeze(a),Uh(n,a,o,l))}}))}function ku(e){function t(m){return Jf(m,e)}Nr!==null&&Jf(Nr,e),Ur!==null&&Jf(Ur,e),Pr!==null&&Jf(Pr,e),lc.forEach(t),nc.forEach(t);for(var a=0;a<zr.length;a++){var o=zr[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<zr.length&&(a=zr[0],a.blockedOn===null);)Ax(a),a.blockedOn===null&&zr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var l=a[o],n=a[o+1],s=l[oo]||null;if(typeof n==="function")s||Ex(a);else if(s){var d=null;if(n&&n.hasAttribute("formAction")){if(l=n,s=n[oo]||null)d=s.formAction;else if(Ug(l)!==null)continue}else d=s.action;typeof d==="function"?a[o+1]=d:(a.splice(o,3),o-=3),Ex(a)}}}function Ox(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(s){return l=s})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Pg(e){this._internalRoot=e}function ep(e){this._internalRoot=e}function qx(e){e[hr]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var rt=Object.assign,KI=Symbol.for("react.element"),$l=Symbol.for("react.transitional.element"),wu=Symbol.for("react.portal"),Tu=Symbol.for("react.fragment"),tp=Symbol.for("react.strict_mode"),zg=Symbol.for("react.profiler"),_g=Symbol.for("react.consumer"),Xl=Symbol.for("react.context"),cd=Symbol.for("react.forward_ref"),Hg=Symbol.for("react.suspense"),Fg=Symbol.for("react.suspense_list"),ap=Symbol.for("react.memo"),Ao=Symbol.for("react.lazy"),Gg=Symbol.for("react.activity"),JI=Symbol.for("react.memo_cache_sentinel"),Bx=Symbol.iterator,eR=Symbol.for("react.client.reference"),Ra=Array.isArray,G=ii.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kt=mb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,tR=Object.freeze({pending:!1,data:null,method:null,action:null}),Vg=[],$g=[],Tn=-1,fr=ge(null),fd=ge(null),pr=ge(null),op=ge(null),pd=0,Nx,Ux,Px,zx,_x,Hx,Fx;P.__reactDisabledLog=!0;var Xg,Gx,jg=!1,Yg=new(typeof WeakMap==="function"?WeakMap:Map),Do=null,jl=!1,dl=Object.prototype.hasOwnProperty,Qg=bt.unstable_scheduleCallback,aR=bt.unstable_cancelCallback,oR=bt.unstable_shouldYield,lR=bt.unstable_requestPaint,Ba=bt.unstable_now,nR=bt.unstable_getCurrentPriorityLevel,Zg=bt.unstable_ImmediatePriority,Wg=bt.unstable_UserBlockingPriority,Iu=bt.unstable_NormalPriority,rR=bt.unstable_LowPriority,Kg=bt.unstable_IdlePriority,sR=bt.log,uR=bt.unstable_setDisableYieldValue,Ru=null,Ka=null,Yl=!1,Ql=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ao=Math.clz32?Math.clz32:Vc,{log:iR,LN2:dR}=Math,lp=256,np=262144,rp=4194304,Eo=2,cl=8,Zl=32,sp=268435456,mr=Math.random().toString(36).slice(2),Xa="__reactFiber$"+mr,oo="__reactProps$"+mr,hr="__reactContainer$"+mr,Jg="__reactEvents$"+mr,cR="__reactListeners$"+mr,fR="__reactHandles$"+mr,Vx="__reactResources$"+mr,md="__reactMarker$"+mr,$x=new Set,vs={},ey={},pR={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},mR=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Xx={},jx={},hR=/[\n"\\]/g,Yx=!1,Qx=!1,Zx=!1,Wx=!1,Kx=!1,Jx=!1,eL=["value","defaultValue"],tL=!1,aL=/["'&<>\n\t]|^\s|\s$/,gR="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),oL="applet caption html table td th marquee object template foreignObject desc title".split(" "),yR=oL.concat(["button"]),bR="dd dt li option optgroup p rp rt".split(" "),lL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},up={},ty={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},nL=/([A-Z])/g,rL=/^ms-/,vR=/^(?:webkit|moz|o)[A-Z]/,SR=/^-ms-/,xR=/-(.)/g,sL=/;\s*$/,Mu={},ay={},uL=!1,iL=!1,dL=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),ip="http://www.w3.org/1998/Math/MathML",Au="http://www.w3.org/2000/svg",LR=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),dp={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},cL={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Du={},CR=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),kR=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),fL=!1,lo={},pL=/^on./,wR=/^on[^A-Z]/,TR=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),IR=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),RR=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,hd=null,Eu=null,Ou=null,oy=!1,Wl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ly=!1;if(Wl)try{var gd={};Object.defineProperty(gd,"passive",{get:function(){ly=!0}}),window.addEventListener("test",gd,gd),window.removeEventListener("test",gd,gd)}catch(e){ly=!1}var gr=null,ny=null,cp=null,Ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fp=fo(Ss),yd=rt({},Ss,{view:0,detail:0}),MR=fo(yd),ry,sy,bd,pp=rt({},yd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gm,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){if("movementX"in e)return e.movementX;return e!==bd&&(bd&&e.type==="mousemove"?(ry=e.screenX-bd.screenX,sy=e.screenY-bd.screenY):sy=ry=0,bd=e),ry},movementY:function(e){return"movementY"in e?e.movementY:sy}}),mL=fo(pp),AR=rt({},pp,{dataTransfer:0}),DR=fo(AR),ER=rt({},yd,{relatedTarget:0}),uy=fo(ER),OR=rt({},Ss,{animationName:0,elapsedTime:0,pseudoElement:0}),qR=fo(OR),BR=rt({},Ss,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),NR=fo(BR),UR=rt({},Ss,{data:0}),hL=fo(UR),PR=hL,zR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},_R={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},HR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},FR=rt({},yd,{key:function(e){if(e.key){var t=zR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?_R[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gm,charCode:function(e){return e.type==="keypress"?Wc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),GR=fo(FR),VR=rt({},pp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),gL=fo(VR),$R=rt({},yd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gm}),XR=fo($R),jR=rt({},Ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),YR=fo(jR),QR=rt({},pp,{deltaX:function(e){return"deltaX"in e?e.deltaX:("wheelDeltaX"in e)?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:("wheelDeltaY"in e)?-e.wheelDeltaY:("wheelDelta"in e)?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),ZR=fo(QR),WR=rt({},Ss,{newState:0,oldState:0}),KR=fo(WR),JR=[9,13,27,32],yL=229,iy=Wl&&"CompositionEvent"in window,vd=null;Wl&&"documentMode"in document&&(vd=document.documentMode);var eM=Wl&&"TextEvent"in window&&!vd,bL=Wl&&(!iy||vd&&8<vd&&11>=vd),vL=32,SL=String.fromCharCode(vL),xL=!1,qu=!1,tM={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Sd=null,xd=null,LL=!1;Wl&&(LL=LT("input")&&(!document.documentMode||9<document.documentMode));var no=typeof Object.is==="function"?Object.is:RT,aM=Wl&&"documentMode"in document&&11>=document.documentMode,Bu=null,dy=null,Ld=null,cy=!1,Nu={animationend:ns("Animation","AnimationEnd"),animationiteration:ns("Animation","AnimationIteration"),animationstart:ns("Animation","AnimationStart"),transitionrun:ns("Transition","TransitionRun"),transitionstart:ns("Transition","TransitionStart"),transitioncancel:ns("Transition","TransitionCancel"),transitionend:ns("Transition","TransitionEnd")},fy={},CL={};Wl&&(CL=document.createElement("div").style,("AnimationEvent"in window)||(delete Nu.animationend.animation,delete Nu.animationiteration.animation,delete Nu.animationstart.animation),("TransitionEvent"in window)||delete Nu.transitionend.transition);var kL=rs("animationend"),wL=rs("animationiteration"),TL=rs("animationstart"),oM=rs("transitionrun"),lM=rs("transitionstart"),nM=rs("transitioncancel"),IL=rs("transitionend"),RL=new Map,py="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");py.push("scrollEnd");var ML=0;if(typeof performance==="object"&&typeof performance.now==="function")var rM=performance,AL=function(){return rM.now()};else{var sM=Date;AL=function(){return sM.now()}}var my=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},uM="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",mp=0,hy=1,gy=2,yy=3,hp="– ",gp="+ ",DL="  ",Gt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Vo="Components ⚛",st="Scheduler ⚛",it="Blocking",yr=!1,In={color:"primary",properties:null,tooltipText:"",track:Vo},br={start:-0,end:-0,detail:{devtools:In}},iM=["Changed Props",""],EL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",dM=["Changed Props",EL],Cd=1,Rn=2,$o=[],Uu=0,by=0,vr={};Object.freeze(vr);var Xo=null,Pu=null,ze=0,cM=1,tt=2,Ja=8,fl=16,fM=32,OL=!1;try{var qL=Object.preventExtensions({})}catch(e){OL=!0}var vy=new WeakMap,zu=[],_u=0,yp=null,kd=0,jo=[],Yo=0,xs=null,Mn=1,An="",ja=null,Vt=null,dt=!1,Kl=!1,Oo=null,Sr=null,Qo=!1,Sy=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),xy=ge(null),Ly=ge(null),BL={},bp=null,Hu=null,Fu=!1,pM=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},mM=bt.unstable_scheduleCallback,hM=bt.unstable_NormalPriority,va={$$typeof:Xl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Sa=bt.unstable_now,vp=console.createTask?console.createTask:function(){return null},wd=1,Sp=2,Na=-0,xr=-0,Dn=-0,En=null,ro=-1.1,Ls=-0,Jt=-0,qe=-1.1,Ue=-1.1,Zt=null,la=!1,Lr=-0,Jl=-1.1,Td=null,Cr=0,Cy=null,ky=null,Cs=-1.1,Id=null,Gu=-1.1,xp=-1.1,en=-0,On=-1.1,Zo=-1.1,wy=0,Rd=null,NL=null,UL=null,kr=-1.1,ks=null,wr=-1.1,Lp=-1.1,PL=-0,zL=-0,Cp=0,qn=null,_L=0,Md=-1.1,kp=!1,wp=!1,Ad=null,Ty=0,ws=0,Vu=null,HL=G.S;G.S=function(e,t){if(NC=Ba(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>On&&0>Zo){On=Sa();var a=rd(),o=nd();if(a!==wr||o!==ks)wr=-1.1;kr=a,ks=o}BT(e,t)}HL!==null&&HL(e,t)};var Ts=ge(null),pl={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Dd=[],Ed=[],Od=[],qd=[],Bd=[],Nd=[],Is=new Set;pl.recordUnsafeLifecycleWarnings=function(e,t){Is.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Dd.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillMount==="function"&&Ed.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Od.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&qd.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Bd.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillUpdate==="function"&&Nd.push(e))},pl.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Dd.length&&(Dd.forEach(function(d){e.add(X(d)||"Component"),Is.add(d.type)}),Dd=[]);var t=new Set;0<Ed.length&&(Ed.forEach(function(d){t.add(X(d)||"Component"),Is.add(d.type)}),Ed=[]);var a=new Set;0<Od.length&&(Od.forEach(function(d){a.add(X(d)||"Component"),Is.add(d.type)}),Od=[]);var o=new Set;0<qd.length&&(qd.forEach(function(d){o.add(X(d)||"Component"),Is.add(d.type)}),qd=[]);var l=new Set;0<Bd.length&&(Bd.forEach(function(d){l.add(X(d)||"Component"),Is.add(d.type)}),Bd=[]);var n=new Set;if(0<Nd.length&&(Nd.forEach(function(d){n.add(X(d)||"Component"),Is.add(d.type)}),Nd=[]),0<t.size){var s=x(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
184
+ Check the render method of %s.`,X(Do)||"Unknown")),o=lr(t),o.payload={element:a},n=n===void 0?null:n,n!==null&&(typeof n!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",n),o.callback=n),a=nr(e,o,t),a!==null&&(El(t,"root.render()",null),oa(a,e,t),Gi(a,e,t))}function Tx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function qg(e,t){Tx(e,t),(e=e.alternate)&&Tx(e,t)}function Ix(e){if(e.tag===13||e.tag===31){var t=Wa(e,67108864);t!==null&&oa(t,e,67108864),qg(e,67108864)}}function Rx(e){if(e.tag===13||e.tag===31){var t=Ro(e);t=os(t);var a=Wa(e,t);a!==null&&oa(a,e,t),qg(e,t)}}function YI(){return Do}function QI(e,t,a,o){var l=G.T;G.T=null;var n=kt.p;try{kt.p=Eo,Bg(e,t,a,o)}finally{kt.p=n,G.T=l}}function ZI(e,t,a,o){var l=G.T;G.T=null;var n=kt.p;try{kt.p=cl,Bg(e,t,a,o)}finally{kt.p=n,G.T=l}}function Bg(e,t,a,o){if(lm){var l=Ng(o);if(l===null)Sg(e,t,o,nm,a),Ax(e,o);else if(WI(l,e,t,a,o))o.stopPropagation();else if(Ax(e,o),t&4&&-1<GM.indexOf(e)){for(;l!==null;){var n=$e(l);if(n!==null)switch(n.tag){case 3:if(n=n.stateNode,n.current.memoizedState.isDehydrated){var s=Rl(n.pendingLanes);if(s!==0){var d=n;d.pendingLanes|=2;for(d.entangledLanes|=2;s;){var m=1<<31-ao(s);d.entanglements[1]|=m,s&=~m}Gl(n),(ht&(Aa|No))===Pa&&(Hp=Ba()+zC,od(0,!1))}}break;case 31:case 13:d=Wa(n,2),d!==null&&oa(d,n,2),vu(),qg(n,2)}if(n=Ng(o),n===null&&Sg(e,t,o,nm,a),n===l)break;l=n}l!==null&&o.stopPropagation()}else Sg(e,t,o,null,a)}}function Ng(e){return e=Fm(e),Ug(e)}function Ug(e){if(nm=null,e=we(e),e!==null){var t=z(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=F(t),e!==null)return e;e=null}else if(a===31){if(e=K(t),e!==null)return e;e=null}else if(a===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return nm=e,null}function Mx(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return Eo;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return cl;case"message":switch(rR()){case Zg:return Eo;case Wg:return cl;case Iu:case sR:return Zl;case Kg:return sp;default:return Zl}default:return Zl}}function Ax(e,t){switch(e){case"focusin":case"focusout":Nr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":Pr=null;break;case"pointerover":case"pointerout":lc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":nc.delete(t.pointerId)}}function dd(e,t,a,o,l,n){if(e===null||e.nativeEvent!==n)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:n,targetContainers:[l]},t!==null&&(t=$e(t),t!==null&&Ix(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e}function WI(e,t,a,o,l){switch(t){case"focusin":return Nr=dd(Nr,e,t,a,o,l),!0;case"dragenter":return Ur=dd(Ur,e,t,a,o,l),!0;case"mouseover":return Pr=dd(Pr,e,t,a,o,l),!0;case"pointerover":var n=l.pointerId;return lc.set(n,dd(lc.get(n)||null,e,t,a,o,l)),!0;case"gotpointercapture":return n=l.pointerId,nc.set(n,dd(nc.get(n)||null,e,t,a,o,l)),!0}return!1}function Dx(e){var t=we(e.target);if(t!==null){var a=z(t);if(a!==null){if(t=a.tag,t===13){if(t=F(a),t!==null){e.blockedOn=t,ie(e.priority,function(){Rx(a)});return}}else if(t===31){if(t=K(a),t!==null){e.blockedOn=t,ie(e.priority,function(){Rx(a)});return}}else if(t===3&&a.stateNode.current.memoizedState.isDehydrated){e.blockedOn=a.tag===3?a.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Kf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ng(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),l=o;hd!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),hd=l,a.target.dispatchEvent(o),hd===null&&console.error("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),hd=null}else return t=$e(a),t!==null&&Ix(t),e.blockedOn=a,!1;t.shift()}return!0}function Ex(e,t,a){Kf(e)&&a.delete(t)}function KI(){fb=!1,Nr!==null&&Kf(Nr)&&(Nr=null),Ur!==null&&Kf(Ur)&&(Ur=null),Pr!==null&&Kf(Pr)&&(Pr=null),lc.forEach(Ex),nc.forEach(Ex)}function Jf(e,t){e.blockedOn===t&&(e.blockedOn=null,fb||(fb=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,KI)))}function Ox(e){rm!==e&&(rm=e,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,function(){rm===e&&(rm=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],l=e[t+2];if(typeof o!=="function")if(Ug(o||a)===null)continue;else break;var n=$e(a);n!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:l,method:a.method,action:o},Object.freeze(a),Uh(n,a,o,l))}}))}function ku(e){function t(m){return Jf(m,e)}Nr!==null&&Jf(Nr,e),Ur!==null&&Jf(Ur,e),Pr!==null&&Jf(Pr,e),lc.forEach(t),nc.forEach(t);for(var a=0;a<zr.length;a++){var o=zr[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<zr.length&&(a=zr[0],a.blockedOn===null);)Dx(a),a.blockedOn===null&&zr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var l=a[o],n=a[o+1],s=l[oo]||null;if(typeof n==="function")s||Ox(a);else if(s){var d=null;if(n&&n.hasAttribute("formAction")){if(l=n,s=n[oo]||null)d=s.formAction;else if(Ug(l)!==null)continue}else d=s.action;typeof d==="function"?a[o+1]=d:(a.splice(o,3),o-=3),Ox(a)}}}function qx(){function e(n){n.canIntercept&&n.info==="react-transition"&&n.intercept({handler:function(){return new Promise(function(s){return l=s})},focusReset:"manual",scroll:"manual"})}function t(){l!==null&&(l(),l=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var n=navigation.currentEntry;n&&n.url!=null&&navigation.navigate(n.url,{state:n.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,l=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(a,100),function(){o=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),l!==null&&(l(),l=null)}}}function Pg(e){this._internalRoot=e}function ep(e){this._internalRoot=e}function Bx(e){e[hr]&&(e._reactRootContainer?console.error("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):console.error("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var rt=Object.assign,JI=Symbol.for("react.element"),$l=Symbol.for("react.transitional.element"),wu=Symbol.for("react.portal"),Tu=Symbol.for("react.fragment"),tp=Symbol.for("react.strict_mode"),zg=Symbol.for("react.profiler"),_g=Symbol.for("react.consumer"),Xl=Symbol.for("react.context"),cd=Symbol.for("react.forward_ref"),Hg=Symbol.for("react.suspense"),Fg=Symbol.for("react.suspense_list"),ap=Symbol.for("react.memo"),Ao=Symbol.for("react.lazy"),Gg=Symbol.for("react.activity"),eR=Symbol.for("react.memo_cache_sentinel"),Nx=Symbol.iterator,tR=Symbol.for("react.client.reference"),Ra=Array.isArray,G=ii.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kt=mb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,aR=Object.freeze({pending:!1,data:null,method:null,action:null}),Vg=[],$g=[],Tn=-1,fr=ge(null),fd=ge(null),pr=ge(null),op=ge(null),pd=0,Ux,Px,zx,_x,Hx,Fx,Gx;P.__reactDisabledLog=!0;var Xg,Vx,jg=!1,Yg=new(typeof WeakMap==="function"?WeakMap:Map),Do=null,jl=!1,dl=Object.prototype.hasOwnProperty,Qg=bt.unstable_scheduleCallback,oR=bt.unstable_cancelCallback,lR=bt.unstable_shouldYield,nR=bt.unstable_requestPaint,Ba=bt.unstable_now,rR=bt.unstable_getCurrentPriorityLevel,Zg=bt.unstable_ImmediatePriority,Wg=bt.unstable_UserBlockingPriority,Iu=bt.unstable_NormalPriority,sR=bt.unstable_LowPriority,Kg=bt.unstable_IdlePriority,uR=bt.log,iR=bt.unstable_setDisableYieldValue,Ru=null,Ka=null,Yl=!1,Ql=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",ao=Math.clz32?Math.clz32:Vc,{log:dR,LN2:cR}=Math,lp=256,np=262144,rp=4194304,Eo=2,cl=8,Zl=32,sp=268435456,mr=Math.random().toString(36).slice(2),Xa="__reactFiber$"+mr,oo="__reactProps$"+mr,hr="__reactContainer$"+mr,Jg="__reactEvents$"+mr,fR="__reactListeners$"+mr,pR="__reactHandles$"+mr,$x="__reactResources$"+mr,md="__reactMarker$"+mr,Xx=new Set,vs={},ey={},mR={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},hR=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),jx={},Yx={},gR=/[\n"\\]/g,Qx=!1,Zx=!1,Wx=!1,Kx=!1,Jx=!1,eL=!1,tL=["value","defaultValue"],aL=!1,oL=/["'&<>\n\t]|^\s|\s$/,yR="address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp".split(" "),lL="applet caption html table td th marquee object template foreignObject desc title".split(" "),bR=lL.concat(["button"]),vR="dd dt li option optgroup p rp rt".split(" "),nL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},up={},ty={animation:"animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(" "),background:"backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize".split(" "),backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:"borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth".split(" "),borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:"fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight".split(" "),fontVariant:"fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition".split(" "),gap:["columnGap","rowGap"],grid:"gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows".split(" "),gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:"maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize".split(" "),maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},rL=/([A-Z])/g,sL=/^ms-/,SR=/^(?:webkit|moz|o)[A-Z]/,xR=/^-ms-/,LR=/-(.)/g,uL=/;\s*$/,Mu={},ay={},iL=!1,dL=!1,cL=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" ")),ip="http://www.w3.org/1998/Math/MathML",Au="http://www.w3.org/2000/svg",CR=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),dp={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",fetchpriority:"fetchPriority",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",inert:"inert",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",popover:"popover",popovertarget:"popoverTarget",popovertargetaction:"popoverTargetAction",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",transformorigin:"transformOrigin","transform-origin":"transformOrigin",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},fL={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Du={},kR=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),wR=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),pL=!1,lo={},mL=/^on./,TR=/^on[^A-Z]/,IR=RegExp("^(aria)-[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),RR=RegExp("^(aria)[A-Z][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),MR=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i,hd=null,Eu=null,Ou=null,oy=!1,Wl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ly=!1;if(Wl)try{var gd={};Object.defineProperty(gd,"passive",{get:function(){ly=!0}}),window.addEventListener("test",gd,gd),window.removeEventListener("test",gd,gd)}catch(e){ly=!1}var gr=null,ny=null,cp=null,Ss={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fp=fo(Ss),yd=rt({},Ss,{view:0,detail:0}),AR=fo(yd),ry,sy,bd,pp=rt({},yd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Gm,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){if("movementX"in e)return e.movementX;return e!==bd&&(bd&&e.type==="mousemove"?(ry=e.screenX-bd.screenX,sy=e.screenY-bd.screenY):sy=ry=0,bd=e),ry},movementY:function(e){return"movementY"in e?e.movementY:sy}}),hL=fo(pp),DR=rt({},pp,{dataTransfer:0}),ER=fo(DR),OR=rt({},yd,{relatedTarget:0}),uy=fo(OR),qR=rt({},Ss,{animationName:0,elapsedTime:0,pseudoElement:0}),BR=fo(qR),NR=rt({},Ss,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),UR=fo(NR),PR=rt({},Ss,{data:0}),gL=fo(PR),zR=gL,_R={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},HR={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},FR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},GR=rt({},yd,{key:function(e){if(e.key){var t=_R[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Wc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?HR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Gm,charCode:function(e){return e.type==="keypress"?Wc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Wc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),VR=fo(GR),$R=rt({},pp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),yL=fo($R),XR=rt({},yd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Gm}),jR=fo(XR),YR=rt({},Ss,{propertyName:0,elapsedTime:0,pseudoElement:0}),QR=fo(YR),ZR=rt({},pp,{deltaX:function(e){return"deltaX"in e?e.deltaX:("wheelDeltaX"in e)?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:("wheelDeltaY"in e)?-e.wheelDeltaY:("wheelDelta"in e)?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),WR=fo(ZR),KR=rt({},Ss,{newState:0,oldState:0}),JR=fo(KR),eM=[9,13,27,32],bL=229,iy=Wl&&"CompositionEvent"in window,vd=null;Wl&&"documentMode"in document&&(vd=document.documentMode);var tM=Wl&&"TextEvent"in window&&!vd,vL=Wl&&(!iy||vd&&8<vd&&11>=vd),SL=32,xL=String.fromCharCode(SL),LL=!1,qu=!1,aM={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0},Sd=null,xd=null,CL=!1;Wl&&(CL=CT("input")&&(!document.documentMode||9<document.documentMode));var no=typeof Object.is==="function"?Object.is:MT,oM=Wl&&"documentMode"in document&&11>=document.documentMode,Bu=null,dy=null,Ld=null,cy=!1,Nu={animationend:ns("Animation","AnimationEnd"),animationiteration:ns("Animation","AnimationIteration"),animationstart:ns("Animation","AnimationStart"),transitionrun:ns("Transition","TransitionRun"),transitionstart:ns("Transition","TransitionStart"),transitioncancel:ns("Transition","TransitionCancel"),transitionend:ns("Transition","TransitionEnd")},fy={},kL={};Wl&&(kL=document.createElement("div").style,("AnimationEvent"in window)||(delete Nu.animationend.animation,delete Nu.animationiteration.animation,delete Nu.animationstart.animation),("TransitionEvent"in window)||delete Nu.transitionend.transition);var wL=rs("animationend"),TL=rs("animationiteration"),IL=rs("animationstart"),lM=rs("transitionrun"),nM=rs("transitionstart"),rM=rs("transitioncancel"),RL=rs("transitionend"),ML=new Map,py="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");py.push("scrollEnd");var AL=0;if(typeof performance==="object"&&typeof performance.now==="function")var sM=performance,DL=function(){return sM.now()};else{var uM=Date;DL=function(){return uM.now()}}var my=typeof reportError==="function"?reportError:function(e){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e==="object"&&e!==null&&typeof e.message==="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",e);return}console.error(e)},iM="This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.",mp=0,hy=1,gy=2,yy=3,hp="– ",gp="+ ",EL="  ",Gt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",Vo="Components ⚛",st="Scheduler ⚛",it="Blocking",yr=!1,In={color:"primary",properties:null,tooltipText:"",track:Vo},br={start:-0,end:-0,detail:{devtools:In}},dM=["Changed Props",""],OL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",cM=["Changed Props",OL],Cd=1,Rn=2,$o=[],Uu=0,by=0,vr={};Object.freeze(vr);var Xo=null,Pu=null,ze=0,fM=1,tt=2,Ja=8,fl=16,pM=32,qL=!1;try{var BL=Object.preventExtensions({})}catch(e){qL=!0}var vy=new WeakMap,zu=[],_u=0,yp=null,kd=0,jo=[],Yo=0,xs=null,Mn=1,An="",ja=null,Vt=null,dt=!1,Kl=!1,Oo=null,Sr=null,Qo=!1,Sy=Error("Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),xy=ge(null),Ly=ge(null),NL={},bp=null,Hu=null,Fu=!1,mM=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(a,o){e.push(o)}};this.abort=function(){t.aborted=!0,e.forEach(function(a){return a()})}},hM=bt.unstable_scheduleCallback,gM=bt.unstable_NormalPriority,va={$$typeof:Xl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Sa=bt.unstable_now,vp=console.createTask?console.createTask:function(){return null},wd=1,Sp=2,Na=-0,xr=-0,Dn=-0,En=null,ro=-1.1,Ls=-0,Jt=-0,qe=-1.1,Ue=-1.1,Zt=null,la=!1,Lr=-0,Jl=-1.1,Td=null,Cr=0,Cy=null,ky=null,Cs=-1.1,Id=null,Gu=-1.1,xp=-1.1,en=-0,On=-1.1,Zo=-1.1,wy=0,Rd=null,UL=null,PL=null,kr=-1.1,ks=null,wr=-1.1,Lp=-1.1,zL=-0,_L=-0,Cp=0,qn=null,HL=0,Md=-1.1,kp=!1,wp=!1,Ad=null,Ty=0,ws=0,Vu=null,FL=G.S;G.S=function(e,t){if(UC=Ba(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>On&&0>Zo){On=Sa();var a=rd(),o=nd();if(a!==wr||o!==ks)wr=-1.1;kr=a,ks=o}NT(e,t)}FL!==null&&FL(e,t)};var Ts=ge(null),pl={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Dd=[],Ed=[],Od=[],qd=[],Bd=[],Nd=[],Is=new Set;pl.recordUnsafeLifecycleWarnings=function(e,t){Is.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Dd.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillMount==="function"&&Ed.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&Od.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&qd.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Bd.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillUpdate==="function"&&Nd.push(e))},pl.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Dd.length&&(Dd.forEach(function(d){e.add(X(d)||"Component"),Is.add(d.type)}),Dd=[]);var t=new Set;0<Ed.length&&(Ed.forEach(function(d){t.add(X(d)||"Component"),Is.add(d.type)}),Ed=[]);var a=new Set;0<Od.length&&(Od.forEach(function(d){a.add(X(d)||"Component"),Is.add(d.type)}),Od=[]);var o=new Set;0<qd.length&&(qd.forEach(function(d){o.add(X(d)||"Component"),Is.add(d.type)}),qd=[]);var l=new Set;0<Bd.length&&(Bd.forEach(function(d){l.add(X(d)||"Component"),Is.add(d.type)}),Bd=[]);var n=new Set;if(0<Nd.length&&(Nd.forEach(function(d){n.add(X(d)||"Component"),Is.add(d.type)}),Nd=[]),0<t.size){var s=x(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
185
185
 
186
186
  * Move code with side effects to componentDidMount, and set initial state in the constructor.
187
187
 
@@ -210,27 +210,27 @@ Please update the following components: %s`,s)),0<l.size&&(s=x(l),console.warn(`
210
210
  * Move data fetching code or side effects to componentDidUpdate.
211
211
  * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
212
212
 
213
- Please update the following components: %s`,s))};var Tp=new Map,FL=new Set;pl.recordLegacyContextWarning=function(e,t){var a=null;for(var o=e;o!==null;)o.mode&Ja&&(a=o),o=o.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!FL.has(e.type)&&(o=Tp.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(o===void 0&&(o=[],Tp.set(a,o)),o.push(e))},pl.flushLegacyContextWarning=function(){Tp.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(l){a.add(X(l)||"Component"),FL.add(l.type)});var o=x(a);re(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
213
+ Please update the following components: %s`,s))};var Tp=new Map,GL=new Set;pl.recordLegacyContextWarning=function(e,t){var a=null;for(var o=e;o!==null;)o.mode&Ja&&(a=o),o=o.return;a===null?console.error("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue."):!GL.has(e.type)&&(o=Tp.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(o===void 0&&(o=[],Tp.set(a,o)),o.push(e))},pl.flushLegacyContextWarning=function(){Tp.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(l){a.add(X(l)||"Component"),GL.add(l.type)});var o=x(a);re(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
214
214
 
215
215
  The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
216
216
 
217
217
  Please update the following components: %s
218
218
 
219
- Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},pl.discardPendingWarnings=function(){Dd=[],Ed=[],Od=[],qd=[],Bd=[],Nd=[],Tp=new Map};var GL={react_stack_bottom_frame:function(e,t,a){var o=jl;jl=!0;try{return e(t,a)}finally{jl=o}}},Iy=GL.react_stack_bottom_frame.bind(GL),VL={react_stack_bottom_frame:function(e){var t=jl;jl=!0;try{return e.render()}finally{jl=t}}},$L=VL.react_stack_bottom_frame.bind(VL),XL={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Ct(e,e.return,a)}}},Ry=XL.react_stack_bottom_frame.bind(XL),jL={react_stack_bottom_frame:function(e,t,a,o,l){try{t.componentDidUpdate(a,o,l)}catch(n){Ct(e,e.return,n)}}},YL=jL.react_stack_bottom_frame.bind(jL),QL={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},gM=QL.react_stack_bottom_frame.bind(QL),ZL={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){Ct(e,t,o)}}},WL=ZL.react_stack_bottom_frame.bind(ZL),KL={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},yM=KL.react_stack_bottom_frame.bind(KL),JL={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){Ct(e,t,o)}}},bM=JL.react_stack_bottom_frame.bind(JL),eC={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},vM=eC.react_stack_bottom_frame.bind(eC),$u=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),My=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Ip=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Rp={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Rs=null,Ud=!1,Xu=null,Pd=0,at=null,Ay,tC=Ay=!1,aC={},oC={},lC={};h=function(e,t,a){if(a!==null&&typeof a==="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var o=X(e),l=o||"null";if(!aC[l]){aC[l]=!0,a=a._owner,e=e._debugOwner;var n="";e&&typeof e.tag==="number"&&(l=X(e))&&(n=`
219
+ Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},pl.discardPendingWarnings=function(){Dd=[],Ed=[],Od=[],qd=[],Bd=[],Nd=[],Tp=new Map};var VL={react_stack_bottom_frame:function(e,t,a){var o=jl;jl=!0;try{return e(t,a)}finally{jl=o}}},Iy=VL.react_stack_bottom_frame.bind(VL),$L={react_stack_bottom_frame:function(e){var t=jl;jl=!0;try{return e.render()}finally{jl=t}}},XL=$L.react_stack_bottom_frame.bind($L),jL={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Ct(e,e.return,a)}}},Ry=jL.react_stack_bottom_frame.bind(jL),YL={react_stack_bottom_frame:function(e,t,a,o,l){try{t.componentDidUpdate(a,o,l)}catch(n){Ct(e,e.return,n)}}},QL=YL.react_stack_bottom_frame.bind(YL),ZL={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},yM=ZL.react_stack_bottom_frame.bind(ZL),WL={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){Ct(e,t,o)}}},KL=WL.react_stack_bottom_frame.bind(WL),JL={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},bM=JL.react_stack_bottom_frame.bind(JL),eC={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){Ct(e,t,o)}}},vM=eC.react_stack_bottom_frame.bind(eC),tC={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},SM=tC.react_stack_bottom_frame.bind(tC),$u=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),My=Error("Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React."),Ip=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Rp={then:function(){console.error('Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.')}},Rs=null,Ud=!1,Xu=null,Pd=0,at=null,Ay,aC=Ay=!1,oC={},lC={},nC={};h=function(e,t,a){if(a!==null&&typeof a==="object"&&a._store&&(!a._store.validated&&a.key==null||a._store.validated===2)){if(typeof a._store!=="object")throw Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");a._store.validated=1;var o=X(e),l=o||"null";if(!oC[l]){oC[l]=!0,a=a._owner,e=e._debugOwner;var n="";e&&typeof e.tag==="number"&&(l=X(e))&&(n=`
220
220
 
221
221
  Check the render method of \``+l+"`."),n||o&&(n=`
222
222
 
223
- Check the top-level render call using <`+o+">.");var s="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=X(a):typeof a.name==="string"&&(o=a.name),o&&(s=" It was passed a child from "+o+".")),re(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,s)})}}};var Ms=Z0(!0),nC=Z0(!1),rC=0,sC=1,uC=2,Dy=3,Tr=!1,iC=!1,Ey=null,Oy=!1,ju=ge(null),Mp=ge(0),qo=ge(null),Wo=null,Yu=1,zd=2,ha=ge(0),Ap=0,Ko=1,so=2,Bo=4,uo=8,Qu,dC=new Set,cC=new Set,qy=new Set,fC=new Set,Bn=0,Fe=null,Ut=null,xa=null,Dp=!1,Zu=!1,As=!1,Ep=0,_d=0,Nn=null,SM=0,xM=25,H=null,Jo=null,Un=-1,Hd=!1,Fd={readContext:Qt,use:ur,useCallback:da,useContext:da,useEffect:da,useImperativeHandle:da,useLayoutEffect:da,useInsertionEffect:da,useMemo:da,useReducer:da,useRef:da,useState:da,useDebugValue:da,useDeferredValue:da,useTransition:da,useSyncExternalStore:da,useId:da,useHostTransitionStatus:da,useFormState:da,useActionState:da,useOptimistic:da,useMemoCache:da,useCacheRefresh:da};Fd.useEffectEvent=da;var By=null,pC=null,Ny=null,mC=null,tn=null,ml=null,Op=null;By={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",nt(),fu(t),Oh(e,t)},useContext:function(e){return H="useContext",nt(),Qt(e)},useEffect:function(e,t){return H="useEffect",nt(),fu(t),Tf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",nt(),fu(a),Eh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",nt(),fu(t),ms(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",nt(),fu(t),Dh(e,t)},useMemo:function(e,t){H="useMemo",nt(),fu(t);var a=G.H;G.H=tn;try{return qh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",nt();var o=G.H;G.H=tn;try{return Lh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",nt(),Mh(e)},useState:function(e){H="useState",nt();var t=G.H;G.H=tn;try{return Th(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",nt()},useDeferredValue:function(e,t){return H="useDeferredValue",nt(),Bh(e,t)},useTransition:function(){return H="useTransition",nt(),Ph()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",nt(),kh(e,t,a)},useId:function(){return H="useId",nt(),zh()},useFormState:function(e,t){return H="useFormState",nt(),xf(),mu(e,t)},useActionState:function(e,t){return H="useActionState",nt(),mu(e,t)},useOptimistic:function(e){return H="useOptimistic",nt(),Ih(e)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",nt(),_h()},useEffectEvent:function(e){return H="useEffectEvent",nt(),Ah(e)}},pC={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",le(),Oh(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){return H="useEffect",le(),Tf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Eh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",le(),ms(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),Dh(e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=tn;try{return qh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=tn;try{return Lh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",le(),Mh(e)},useState:function(e){H="useState",le();var t=G.H;G.H=tn;try{return Th(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),Bh(e,t)},useTransition:function(){return H="useTransition",le(),Ph()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),kh(e,t,a)},useId:function(){return H="useId",le(),zh()},useActionState:function(e,t){return H="useActionState",le(),mu(e,t)},useFormState:function(e,t){return H="useFormState",le(),xf(),mu(e,t)},useOptimistic:function(e){return H="useOptimistic",le(),Ih(e)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",le(),_h()},useEffectEvent:function(e){return H="useEffectEvent",le(),Ah(e)}},Ny={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",le(),Mf(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){H="useEffect",le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=ml;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=ml;try{return pu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",le(),At().memoizedState},useState:function(){H="useState",le();var e=G.H;G.H=ml;try{return pu(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),bv(e,t)},useTransition:function(){return H="useTransition",le(),kv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),Cf(e,t,a)},useId:function(){return H="useId",le(),At().memoizedState},useFormState:function(e){return H="useFormState",le(),xf(),kf(e)},useActionState:function(e){return H="useActionState",le(),kf(e)},useOptimistic:function(e,t){return H="useOptimistic",le(),uv(e,t)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",le(),If(e)}},mC={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",le(),Mf(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){H="useEffect",le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=Op;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=Op;try{return ji(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",le(),At().memoizedState},useState:function(){H="useState",le();var e=G.H;G.H=Op;try{return ji(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),vv(e,t)},useTransition:function(){return H="useTransition",le(),wv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),Cf(e,t,a)},useId:function(){return H="useId",le(),At().memoizedState},useFormState:function(e){return H="useFormState",le(),xf(),wf(e)},useActionState:function(e){return H="useActionState",le(),wf(e)},useOptimistic:function(e,t){return H="useOptimistic",le(),dv(e,t)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",le(),If(e)}},tn={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ur(e)},useCallback:function(e,t){return H="useCallback",b(),nt(),Oh(e,t)},useContext:function(e){return H="useContext",b(),nt(),Qt(e)},useEffect:function(e,t){return H="useEffect",b(),nt(),Tf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),nt(),Eh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",b(),nt(),ms(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),nt(),Dh(e,t)},useMemo:function(e,t){H="useMemo",b(),nt();var a=G.H;G.H=tn;try{return qh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),nt();var o=G.H;G.H=tn;try{return Lh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",b(),nt(),Mh(e)},useState:function(e){H="useState",b(),nt();var t=G.H;G.H=tn;try{return Th(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",b(),nt()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),nt(),Bh(e,t)},useTransition:function(){return H="useTransition",b(),nt(),Ph()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),nt(),kh(e,t,a)},useId:function(){return H="useId",b(),nt(),zh()},useFormState:function(e,t){return H="useFormState",b(),nt(),mu(e,t)},useActionState:function(e,t){return H="useActionState",b(),nt(),mu(e,t)},useOptimistic:function(e){return H="useOptimistic",b(),nt(),Ih(e)},useMemoCache:function(e){return b(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",nt(),_h()},useEffectEvent:function(e){return H="useEffectEvent",b(),nt(),Ah(e)}},ml={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ur(e)},useCallback:function(e,t){return H="useCallback",b(),le(),Mf(e,t)},useContext:function(e){return H="useContext",b(),le(),Qt(e)},useEffect:function(e,t){H="useEffect",b(),le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",b(),le();var a=G.H;G.H=ml;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),le();var o=G.H;G.H=ml;try{return pu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",b(),le(),At().memoizedState},useState:function(){H="useState",b(),le();var e=G.H;G.H=ml;try{return pu(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",b(),le()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),le(),bv(e,t)},useTransition:function(){return H="useTransition",b(),le(),kv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),le(),Cf(e,t,a)},useId:function(){return H="useId",b(),le(),At().memoizedState},useFormState:function(e){return H="useFormState",b(),le(),kf(e)},useActionState:function(e){return H="useActionState",b(),le(),kf(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),le(),uv(e,t)},useMemoCache:function(e){return b(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),le(),If(e)}},Op={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ur(e)},useCallback:function(e,t){return H="useCallback",b(),le(),Mf(e,t)},useContext:function(e){return H="useContext",b(),le(),Qt(e)},useEffect:function(e,t){H="useEffect",b(),le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",b(),le();var a=G.H;G.H=ml;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),le();var o=G.H;G.H=ml;try{return ji(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",b(),le(),At().memoizedState},useState:function(){H="useState",b(),le();var e=G.H;G.H=ml;try{return ji(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",b(),le()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),le(),vv(e,t)},useTransition:function(){return H="useTransition",b(),le(),wv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),le(),Cf(e,t,a)},useId:function(){return H="useId",b(),le(),At().memoizedState},useFormState:function(e){return H="useFormState",b(),le(),wf(e)},useActionState:function(e){return H="useActionState",b(),le(),wf(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),le(),dv(e,t)},useMemoCache:function(e){return b(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),le(),If(e)}};var hC={},gC=new Set,yC=new Set,bC=new Set,vC=new Set,SC=new Set,xC=new Set,LC=new Set,CC=new Set,kC=new Set,wC=new Set;Object.freeze(hC);var Uy={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Ro(e),l=lr(o);l.payload=t,a!==void 0&&a!==null&&(Fh(a),l.callback=a),t=nr(e,l,o),t!==null&&(El(o,"this.setState()",e),oa(t,e,o),Gi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Ro(e),l=lr(o);l.tag=sC,l.payload=t,a!==void 0&&a!==null&&(Fh(a),l.callback=a),t=nr(e,l,o),t!==null&&(El(o,"this.replaceState()",e),oa(t,e,o),Gi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ro(e),o=lr(a);o.tag=uC,t!==void 0&&t!==null&&(Fh(t),o.callback=t),t=nr(e,o,a),t!==null&&(El(a,"this.forceUpdate()",e),oa(t,e,a),Gi(t,e,a))}},Wu=null,Py=null,zy=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),La=!1,TC={},IC={},RC={},MC={},Ku=!1,AC={},qp={},_y={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},DC=!1,EC=null;EC=new Set;var Pn=!1,Ca=!1,Hy=!1,OC=typeof WeakSet==="function"?WeakSet:Set,Ua=null,Ju=null,ei=null,ka=null,go=!1,hl=null,Ma=!1,Gd=8192,LM={getCacheForType:function(e){var t=Qt(va),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Qt(va).controller.signal},getOwner:function(){return Do}};if(typeof Symbol==="function"&&Symbol.for){var Vd=Symbol.for;Vd("selector.component"),Vd("selector.has_pseudo_class"),Vd("selector.role"),Vd("selector.test_id"),Vd("selector.text")}var CM=[],kM=typeof WeakMap==="function"?WeakMap:Map,Pa=0,Aa=2,No=4,zn=0,$d=1,Ds=2,Bp=3,Ir=4,Np=6,qC=5,ht=Pa,Pt=null,lt=null,ot=0,yo=0,Up=1,Es=2,Xd=3,BC=4,Fy=5,jd=6,Pp=7,Gy=8,Os=9,Dt=yo,Uo=null,Rr=!1,ti=!1,Vy=!1,an=0,ea=zn,Mr=0,Ar=0,$y=0,bo=0,qs=0,Yd=null,io=null,zp=!1,_p=0,NC=0,UC=300,Hp=1/0,PC=500,Qd=null,ca=null,Dr=null,Fp=0,Xy=1,jy=2,zC=3,Er=0,_C=1,HC=2,FC=3,GC=4,Gp=5,wa=0,Or=null,ai=null,gl=0,Yy=0,Qy=-0,Zy=null,VC=null,$C=null,yl=Fp,XC=null,wM=50,Zd=0,Wy=null,Ky=!1,Vp=!1,TM=50,Bs=0,Wd=null,oi=!1,$p=null,jC=!1,YC=new Set,IM={},Xp=null,li=null,Jy=!1,eb=!1,jp=!1,tb=!1,qr=0,ab={};(function(){for(var e=0;e<py.length;e++){var t=py[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),sl(a,"on"+t)}sl(kL,"onAnimationEnd"),sl(wL,"onAnimationIteration"),sl(TL,"onAnimationStart"),sl("dblclick","onDoubleClick"),sl("focusin","onFocus"),sl("focusout","onBlur"),sl(oM,"onTransitionRun"),sl(lM,"onTransitionStart"),sl(nM,"onTransitionCancel"),sl(IL,"onTransitionEnd")})(),xo("onMouseEnter",["mouseout","mouseover"]),xo("onMouseLeave",["mouseout","mouseover"]),xo("onPointerEnter",["pointerout","pointerover"]),xo("onPointerLeave",["pointerout","pointerover"]),Za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Za("onBeforeInput",["compositionend","keypress","textInput","paste"]),Za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ob=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kd)),Yp="_reactListening"+Math.random().toString(36).slice(2),QC=!1,ZC=!1,Qp=!1,WC=!1,Zp=!1,Wp=!1,KC=!1,Kp={},RM=/\r\n?/g,MM=/\u0000|\uFFFD/g,Ns="http://www.w3.org/1999/xlink",lb="http://www.w3.org/XML/1998/namespace",AM="javascript:throw new Error('React form unexpectedly submitted.')",DM="suppressHydrationWarning",Us="&",Jp="/&",Jd="$",ec="/$",Br="$?",Ps="$~",ni="$!",EM="html",OM="body",qM="head",nb="F!",JC="F",e1="loading",BM="style",_n=0,ri=1,em=2,rb=null,sb=null,t1={dialog:!0,webview:!0},ub=null,tc=void 0,a1=typeof setTimeout==="function"?setTimeout:void 0,NM=typeof clearTimeout==="function"?clearTimeout:void 0,zs=-1,o1=typeof Promise==="function"?Promise:void 0,UM=typeof queueMicrotask==="function"?queueMicrotask:typeof o1<"u"?function(e){return o1.resolve(null).then(e).catch(xI)}:a1,ib=null,_s=0,ac=1,l1=2,n1=3,el=4,tl=new Map,r1=new Set,Hn=kt.d;kt.d={f:function(){var e=Hn.f(),t=vu();return e||t},r:function(e){var t=$e(e);t!==null&&t.tag===5&&t.type==="form"?Cv(t):Hn.r(e)},D:function(e){Hn.D(e),gx("dns-prefetch",e,null)},C:function(e,t){Hn.C(e,t),gx("preconnect",e,t)},L:function(e,t,a){Hn.L(e,t,a);var o=si;if(o&&e&&t){var l='link[rel="preload"][as="'+Fo(t)+'"]';t==="image"?a&&a.imageSrcSet?(l+='[imagesrcset="'+Fo(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(l+='[imagesizes="'+Fo(a.imageSizes)+'"]')):l+='[href="'+Fo(e)+'"]':l+='[href="'+Fo(e)+'"]';var n=l;switch(t){case"style":n=Lu(e);break;case"script":n=Cu(e)}tl.has(n)||(e=rt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),tl.set(n,e),o.querySelector(l)!==null||t==="style"&&o.querySelector(ud(n))||t==="script"&&o.querySelector(id(n))||(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}},m:function(e,t){Hn.m(e,t);var a=si;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Fo(o)+'"][href="'+Fo(e)+'"]',n=l;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Cu(e)}if(!tl.has(n)&&(e=rt({rel:"modulepreload",href:e},t),tl.set(n,e),a.querySelector(l)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(id(n)))return}o=a.createElement("link"),$a(o,"link",e),Oe(o),a.head.appendChild(o)}}},X:function(e,t){Hn.X(e,t);var a=si;if(a&&e){var o=yt(a).hoistableScripts,l=Cu(e),n=o.get(l);n||(n=a.querySelector(id(l)),n||(e=rt({src:e,async:!0},t),(t=tl.get(l))&&Eg(e,t),n=a.createElement("script"),Oe(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}},S:function(e,t,a){Hn.S(e,t,a);var o=si;if(o&&e){var l=yt(o).hoistableStyles,n=Lu(e);t=t||"default";var s=l.get(n);if(!s){var d={loading:_s,preload:null};if(s=o.querySelector(ud(n)))d.loading=ac|el;else{e=rt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=tl.get(n))&&Dg(e,a);var m=s=o.createElement("link");Oe(m),$a(m,"link",e),m._p=new Promise(function(g,A){m.onload=g,m.onerror=A}),m.addEventListener("load",function(){d.loading|=ac}),m.addEventListener("error",function(){d.loading|=l1}),d.loading|=el,Qf(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:d},l.set(n,s)}}},M:function(e,t){Hn.M(e,t);var a=si;if(a&&e){var o=yt(a).hoistableScripts,l=Cu(e),n=o.get(l);n||(n=a.querySelector(id(l)),n||(e=rt({src:e,async:!0,type:"module"},t),(t=tl.get(l))&&Eg(e,t),n=a.createElement("script"),Oe(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}}};var si=typeof document>"u"?null:document,tm=null,PM=60000,zM=800,_M=500,db=0,cb=null,am=null,Hs=tR,oc={$$typeof:Xl,Provider:null,Consumer:null,_currentValue:Hs,_currentValue2:Hs,_threadCount:0},s1="%c%s%c",u1="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",i1="",om=" ",HM=Function.prototype.bind,d1=!1,c1=null,f1=null,p1=null,m1=null,h1=null,g1=null,y1=null,b1=null,v1=null,S1=null;c1=function(e,t,a,o){t=r(e,t),t!==null&&(a=i(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},f1=function(e,t,a){t=r(e,t),t!==null&&(a=f(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},p1=function(e,t,a,o){t=r(e,t),t!==null&&(a=u(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},m1=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},h1=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},g1=function(e,t,a){e.pendingProps=u(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},y1=function(e){var t=Wa(e,2);t!==null&&oa(t,e,2)},b1=function(e){var t=nu(),a=Wa(e,t);a!==null&&oa(a,e,t)},v1=function(e){p=e},S1=function(e){v=e};var lm=!0,nm=null,fb=!1,Nr=null,Ur=null,Pr=null,lc=new Map,nc=new Map,zr=[],FM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),rm=null;if(ep.prototype.render=Pg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):_(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,l=Ro(o);Og(o,l,a,t,null,null)},ep.prototype.unmount=Pg.prototype.unmount=function(){var e=arguments;if(typeof e[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(ht&(Aa|No))!==Pa&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Og(e.current,2,null,e,null,null),vu(),t[hr]=null}},ep.prototype.unstable_scheduleHydration=function(e){if(e){var t=O();e={blockedOn:null,target:e,priority:t};for(var a=0;a<zr.length&&t!==0&&t<zr[a].priority;a++);zr.splice(a,0,e),a===0&&Ax(e)}},function(){var e=ii.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
223
+ Check the top-level render call using <`+o+">.");var s="";a!=null&&e!==a&&(o=null,typeof a.tag==="number"?o=X(a):typeof a.name==="string"&&(o=a.name),o&&(s=" It was passed a child from "+o+".")),re(t,function(){console.error('Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',n,s)})}}};var Ms=W0(!0),rC=W0(!1),sC=0,uC=1,iC=2,Dy=3,Tr=!1,dC=!1,Ey=null,Oy=!1,ju=ge(null),Mp=ge(0),qo=ge(null),Wo=null,Yu=1,zd=2,ha=ge(0),Ap=0,Ko=1,so=2,Bo=4,uo=8,Qu,cC=new Set,fC=new Set,qy=new Set,pC=new Set,Bn=0,Fe=null,Ut=null,xa=null,Dp=!1,Zu=!1,As=!1,Ep=0,_d=0,Nn=null,xM=0,LM=25,H=null,Jo=null,Un=-1,Hd=!1,Fd={readContext:Qt,use:ur,useCallback:da,useContext:da,useEffect:da,useImperativeHandle:da,useLayoutEffect:da,useInsertionEffect:da,useMemo:da,useReducer:da,useRef:da,useState:da,useDebugValue:da,useDeferredValue:da,useTransition:da,useSyncExternalStore:da,useId:da,useHostTransitionStatus:da,useFormState:da,useActionState:da,useOptimistic:da,useMemoCache:da,useCacheRefresh:da};Fd.useEffectEvent=da;var By=null,mC=null,Ny=null,hC=null,tn=null,ml=null,Op=null;By={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",nt(),fu(t),Oh(e,t)},useContext:function(e){return H="useContext",nt(),Qt(e)},useEffect:function(e,t){return H="useEffect",nt(),fu(t),Tf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",nt(),fu(a),Eh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",nt(),fu(t),ms(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",nt(),fu(t),Dh(e,t)},useMemo:function(e,t){H="useMemo",nt(),fu(t);var a=G.H;G.H=tn;try{return qh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",nt();var o=G.H;G.H=tn;try{return Lh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",nt(),Mh(e)},useState:function(e){H="useState",nt();var t=G.H;G.H=tn;try{return Th(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",nt()},useDeferredValue:function(e,t){return H="useDeferredValue",nt(),Bh(e,t)},useTransition:function(){return H="useTransition",nt(),Ph()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",nt(),kh(e,t,a)},useId:function(){return H="useId",nt(),zh()},useFormState:function(e,t){return H="useFormState",nt(),xf(),mu(e,t)},useActionState:function(e,t){return H="useActionState",nt(),mu(e,t)},useOptimistic:function(e){return H="useOptimistic",nt(),Ih(e)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",nt(),_h()},useEffectEvent:function(e){return H="useEffectEvent",nt(),Ah(e)}},mC={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",le(),Oh(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){return H="useEffect",le(),Tf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Eh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",le(),ms(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),Dh(e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=tn;try{return qh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=tn;try{return Lh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",le(),Mh(e)},useState:function(e){H="useState",le();var t=G.H;G.H=tn;try{return Th(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),Bh(e,t)},useTransition:function(){return H="useTransition",le(),Ph()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),kh(e,t,a)},useId:function(){return H="useId",le(),zh()},useActionState:function(e,t){return H="useActionState",le(),mu(e,t)},useFormState:function(e,t){return H="useFormState",le(),xf(),mu(e,t)},useOptimistic:function(e){return H="useOptimistic",le(),Ih(e)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",le(),_h()},useEffectEvent:function(e){return H="useEffectEvent",le(),Ah(e)}},Ny={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",le(),Mf(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){H="useEffect",le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=ml;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=ml;try{return pu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",le(),At().memoizedState},useState:function(){H="useState",le();var e=G.H;G.H=ml;try{return pu(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),vv(e,t)},useTransition:function(){return H="useTransition",le(),wv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),Cf(e,t,a)},useId:function(){return H="useId",le(),At().memoizedState},useFormState:function(e){return H="useFormState",le(),xf(),kf(e)},useActionState:function(e){return H="useActionState",le(),kf(e)},useOptimistic:function(e,t){return H="useOptimistic",le(),iv(e,t)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",le(),If(e)}},hC={readContext:function(e){return Qt(e)},use:ur,useCallback:function(e,t){return H="useCallback",le(),Mf(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){H="useEffect",le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=Op;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=Op;try{return ji(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",le(),At().memoizedState},useState:function(){H="useState",le();var e=G.H;G.H=Op;try{return ji(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),Sv(e,t)},useTransition:function(){return H="useTransition",le(),Tv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),Cf(e,t,a)},useId:function(){return H="useId",le(),At().memoizedState},useFormState:function(e){return H="useFormState",le(),xf(),wf(e)},useActionState:function(e){return H="useActionState",le(),wf(e)},useOptimistic:function(e,t){return H="useOptimistic",le(),cv(e,t)},useHostTransitionStatus:hs,useMemoCache:ps,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",le(),If(e)}},tn={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ur(e)},useCallback:function(e,t){return H="useCallback",b(),nt(),Oh(e,t)},useContext:function(e){return H="useContext",b(),nt(),Qt(e)},useEffect:function(e,t){return H="useEffect",b(),nt(),Tf(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),nt(),Eh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",b(),nt(),ms(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),nt(),Dh(e,t)},useMemo:function(e,t){H="useMemo",b(),nt();var a=G.H;G.H=tn;try{return qh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),nt();var o=G.H;G.H=tn;try{return Lh(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",b(),nt(),Mh(e)},useState:function(e){H="useState",b(),nt();var t=G.H;G.H=tn;try{return Th(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",b(),nt()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),nt(),Bh(e,t)},useTransition:function(){return H="useTransition",b(),nt(),Ph()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),nt(),kh(e,t,a)},useId:function(){return H="useId",b(),nt(),zh()},useFormState:function(e,t){return H="useFormState",b(),nt(),mu(e,t)},useActionState:function(e,t){return H="useActionState",b(),nt(),mu(e,t)},useOptimistic:function(e){return H="useOptimistic",b(),nt(),Ih(e)},useMemoCache:function(e){return b(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",nt(),_h()},useEffectEvent:function(e){return H="useEffectEvent",b(),nt(),Ah(e)}},ml={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ur(e)},useCallback:function(e,t){return H="useCallback",b(),le(),Mf(e,t)},useContext:function(e){return H="useContext",b(),le(),Qt(e)},useEffect:function(e,t){H="useEffect",b(),le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",b(),le();var a=G.H;G.H=ml;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),le();var o=G.H;G.H=ml;try{return pu(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",b(),le(),At().memoizedState},useState:function(){H="useState",b(),le();var e=G.H;G.H=ml;try{return pu(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",b(),le()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),le(),vv(e,t)},useTransition:function(){return H="useTransition",b(),le(),wv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),le(),Cf(e,t,a)},useId:function(){return H="useId",b(),le(),At().memoizedState},useFormState:function(e){return H="useFormState",b(),le(),kf(e)},useActionState:function(e){return H="useActionState",b(),le(),kf(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),le(),iv(e,t)},useMemoCache:function(e){return b(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),le(),If(e)}},Op={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ur(e)},useCallback:function(e,t){return H="useCallback",b(),le(),Mf(e,t)},useContext:function(e){return H="useContext",b(),le(),Qt(e)},useEffect:function(e,t){H="useEffect",b(),le(),po(2048,uo,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),le(),Rf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),le(),po(4,so,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),le(),po(4,Bo,e,t)},useMemo:function(e,t){H="useMemo",b(),le();var a=G.H;G.H=ml;try{return Af(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),le();var o=G.H;G.H=ml;try{return ji(e,t,a)}finally{G.H=o}},useRef:function(){return H="useRef",b(),le(),At().memoizedState},useState:function(){H="useState",b(),le();var e=G.H;G.H=ml;try{return ji(ul)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",b(),le()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),le(),Sv(e,t)},useTransition:function(){return H="useTransition",b(),le(),Tv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),le(),Cf(e,t,a)},useId:function(){return H="useId",b(),le(),At().memoizedState},useFormState:function(e){return H="useFormState",b(),le(),wf(e)},useActionState:function(e){return H="useActionState",b(),le(),wf(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),le(),cv(e,t)},useMemoCache:function(e){return b(),ps(e)},useHostTransitionStatus:hs,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),le(),If(e)}};var gC={},yC=new Set,bC=new Set,vC=new Set,SC=new Set,xC=new Set,LC=new Set,CC=new Set,kC=new Set,wC=new Set,TC=new Set;Object.freeze(gC);var Uy={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Ro(e),l=lr(o);l.payload=t,a!==void 0&&a!==null&&(Fh(a),l.callback=a),t=nr(e,l,o),t!==null&&(El(o,"this.setState()",e),oa(t,e,o),Gi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Ro(e),l=lr(o);l.tag=uC,l.payload=t,a!==void 0&&a!==null&&(Fh(a),l.callback=a),t=nr(e,l,o),t!==null&&(El(o,"this.replaceState()",e),oa(t,e,o),Gi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Ro(e),o=lr(a);o.tag=iC,t!==void 0&&t!==null&&(Fh(t),o.callback=t),t=nr(e,o,a),t!==null&&(El(a,"this.forceUpdate()",e),oa(t,e,a),Gi(t,e,a))}},Wu=null,Py=null,zy=Error("This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue."),La=!1,IC={},RC={},MC={},AC={},Ku=!1,DC={},qp={},_y={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},EC=!1,OC=null;OC=new Set;var Pn=!1,Ca=!1,Hy=!1,qC=typeof WeakSet==="function"?WeakSet:Set,Ua=null,Ju=null,ei=null,ka=null,go=!1,hl=null,Ma=!1,Gd=8192,CM={getCacheForType:function(e){var t=Qt(va),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return Qt(va).controller.signal},getOwner:function(){return Do}};if(typeof Symbol==="function"&&Symbol.for){var Vd=Symbol.for;Vd("selector.component"),Vd("selector.has_pseudo_class"),Vd("selector.role"),Vd("selector.test_id"),Vd("selector.text")}var kM=[],wM=typeof WeakMap==="function"?WeakMap:Map,Pa=0,Aa=2,No=4,zn=0,$d=1,Ds=2,Bp=3,Ir=4,Np=6,BC=5,ht=Pa,Pt=null,lt=null,ot=0,yo=0,Up=1,Es=2,Xd=3,NC=4,Fy=5,jd=6,Pp=7,Gy=8,Os=9,Dt=yo,Uo=null,Rr=!1,ti=!1,Vy=!1,an=0,ea=zn,Mr=0,Ar=0,$y=0,bo=0,qs=0,Yd=null,io=null,zp=!1,_p=0,UC=0,PC=300,Hp=1/0,zC=500,Qd=null,ca=null,Dr=null,Fp=0,Xy=1,jy=2,_C=3,Er=0,HC=1,FC=2,GC=3,VC=4,Gp=5,wa=0,Or=null,ai=null,gl=0,Yy=0,Qy=-0,Zy=null,$C=null,XC=null,yl=Fp,jC=null,TM=50,Zd=0,Wy=null,Ky=!1,Vp=!1,IM=50,Bs=0,Wd=null,oi=!1,$p=null,YC=!1,QC=new Set,RM={},Xp=null,li=null,Jy=!1,eb=!1,jp=!1,tb=!1,qr=0,ab={};(function(){for(var e=0;e<py.length;e++){var t=py[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),sl(a,"on"+t)}sl(wL,"onAnimationEnd"),sl(TL,"onAnimationIteration"),sl(IL,"onAnimationStart"),sl("dblclick","onDoubleClick"),sl("focusin","onFocus"),sl("focusout","onBlur"),sl(lM,"onTransitionRun"),sl(nM,"onTransitionStart"),sl(rM,"onTransitionCancel"),sl(RL,"onTransitionEnd")})(),xo("onMouseEnter",["mouseout","mouseover"]),xo("onMouseLeave",["mouseout","mouseover"]),xo("onPointerEnter",["pointerout","pointerover"]),xo("onPointerLeave",["pointerout","pointerover"]),Za("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Za("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Za("onBeforeInput",["compositionend","keypress","textInput","paste"]),Za("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Za("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Kd="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),ob=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Kd)),Yp="_reactListening"+Math.random().toString(36).slice(2),ZC=!1,WC=!1,Qp=!1,KC=!1,Zp=!1,Wp=!1,JC=!1,Kp={},MM=/\r\n?/g,AM=/\u0000|\uFFFD/g,Ns="http://www.w3.org/1999/xlink",lb="http://www.w3.org/XML/1998/namespace",DM="javascript:throw new Error('React form unexpectedly submitted.')",EM="suppressHydrationWarning",Us="&",Jp="/&",Jd="$",ec="/$",Br="$?",Ps="$~",ni="$!",OM="html",qM="body",BM="head",nb="F!",e1="F",t1="loading",NM="style",_n=0,ri=1,em=2,rb=null,sb=null,a1={dialog:!0,webview:!0},ub=null,tc=void 0,o1=typeof setTimeout==="function"?setTimeout:void 0,UM=typeof clearTimeout==="function"?clearTimeout:void 0,zs=-1,l1=typeof Promise==="function"?Promise:void 0,PM=typeof queueMicrotask==="function"?queueMicrotask:typeof l1<"u"?function(e){return l1.resolve(null).then(e).catch(LI)}:o1,ib=null,_s=0,ac=1,n1=2,r1=3,el=4,tl=new Map,s1=new Set,Hn=kt.d;kt.d={f:function(){var e=Hn.f(),t=vu();return e||t},r:function(e){var t=$e(e);t!==null&&t.tag===5&&t.type==="form"?kv(t):Hn.r(e)},D:function(e){Hn.D(e),yx("dns-prefetch",e,null)},C:function(e,t){Hn.C(e,t),yx("preconnect",e,t)},L:function(e,t,a){Hn.L(e,t,a);var o=si;if(o&&e&&t){var l='link[rel="preload"][as="'+Fo(t)+'"]';t==="image"?a&&a.imageSrcSet?(l+='[imagesrcset="'+Fo(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(l+='[imagesizes="'+Fo(a.imageSizes)+'"]')):l+='[href="'+Fo(e)+'"]':l+='[href="'+Fo(e)+'"]';var n=l;switch(t){case"style":n=Lu(e);break;case"script":n=Cu(e)}tl.has(n)||(e=rt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),tl.set(n,e),o.querySelector(l)!==null||t==="style"&&o.querySelector(ud(n))||t==="script"&&o.querySelector(id(n))||(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}},m:function(e,t){Hn.m(e,t);var a=si;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Fo(o)+'"][href="'+Fo(e)+'"]',n=l;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=Cu(e)}if(!tl.has(n)&&(e=rt({rel:"modulepreload",href:e},t),tl.set(n,e),a.querySelector(l)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(id(n)))return}o=a.createElement("link"),$a(o,"link",e),Oe(o),a.head.appendChild(o)}}},X:function(e,t){Hn.X(e,t);var a=si;if(a&&e){var o=yt(a).hoistableScripts,l=Cu(e),n=o.get(l);n||(n=a.querySelector(id(l)),n||(e=rt({src:e,async:!0},t),(t=tl.get(l))&&Eg(e,t),n=a.createElement("script"),Oe(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}},S:function(e,t,a){Hn.S(e,t,a);var o=si;if(o&&e){var l=yt(o).hoistableStyles,n=Lu(e);t=t||"default";var s=l.get(n);if(!s){var d={loading:_s,preload:null};if(s=o.querySelector(ud(n)))d.loading=ac|el;else{e=rt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=tl.get(n))&&Dg(e,a);var m=s=o.createElement("link");Oe(m),$a(m,"link",e),m._p=new Promise(function(g,A){m.onload=g,m.onerror=A}),m.addEventListener("load",function(){d.loading|=ac}),m.addEventListener("error",function(){d.loading|=n1}),d.loading|=el,Qf(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:d},l.set(n,s)}}},M:function(e,t){Hn.M(e,t);var a=si;if(a&&e){var o=yt(a).hoistableScripts,l=Cu(e),n=o.get(l);n||(n=a.querySelector(id(l)),n||(e=rt({src:e,async:!0,type:"module"},t),(t=tl.get(l))&&Eg(e,t),n=a.createElement("script"),Oe(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}}};var si=typeof document>"u"?null:document,tm=null,zM=60000,_M=800,HM=500,db=0,cb=null,am=null,Hs=aR,oc={$$typeof:Xl,Provider:null,Consumer:null,_currentValue:Hs,_currentValue2:Hs,_threadCount:0},u1="%c%s%c",i1="background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px",d1="",om=" ",FM=Function.prototype.bind,c1=!1,f1=null,p1=null,m1=null,h1=null,g1=null,y1=null,b1=null,v1=null,S1=null,x1=null;f1=function(e,t,a,o){t=r(e,t),t!==null&&(a=i(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},p1=function(e,t,a){t=r(e,t),t!==null&&(a=f(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},m1=function(e,t,a,o){t=r(e,t),t!==null&&(a=u(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=rt({},e.memoizedProps),a=Wa(e,2),a!==null&&oa(a,e,2))},h1=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},g1=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},y1=function(e,t,a){e.pendingProps=u(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},b1=function(e){var t=Wa(e,2);t!==null&&oa(t,e,2)},v1=function(e){var t=nu(),a=Wa(e,t);a!==null&&oa(a,e,t)},S1=function(e){p=e},x1=function(e){v=e};var lm=!0,nm=null,fb=!1,Nr=null,Ur=null,Pr=null,lc=new Map,nc=new Map,zr=[],GM="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" "),rm=null;if(ep.prototype.render=Pg.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error("Cannot update an unmounted root.");var a=arguments;typeof a[1]==="function"?console.error("does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):_(a[1])?console.error("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof a[1]<"u"&&console.error("You passed a second argument to root.render(...) but it only accepts one argument."),a=e;var o=t.current,l=Ro(o);Og(o,l,a,t,null,null)},ep.prototype.unmount=Pg.prototype.unmount=function(){var e=arguments;if(typeof e[0]==="function"&&console.error("does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(ht&(Aa|No))!==Pa&&console.error("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),Og(e.current,2,null,e,null,null),vu(),t[hr]=null}},ep.prototype.unstable_scheduleHydration=function(e){if(e){var t=O();e={blockedOn:null,target:e,priority:t};for(var a=0;a<zr.length&&t!==0&&t<zr[a].priority;a++);zr.splice(a,0,e),a===0&&Dx(e)}},function(){var e=ii.version;if(e!=="19.2.7")throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
224
224
  - react: `+(e+`
225
225
  - react-dom: 19.2.7
226
- Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),kt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=oe(t),e=e!==null?B(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.7"};return e.overrideHookState=c1,e.overrideHookStateDeletePath=f1,e.overrideHookStateRenamePath=p1,e.overrideProps=m1,e.overridePropsDeletePath=h1,e.overridePropsRenamePath=g1,e.scheduleUpdate=y1,e.scheduleRetry=b1,e.setErrorHandler=v1,e.setSuspenseHandler=S1,e.scheduleRefresh=L,e.scheduleRoot=R,e.setRefreshHandler=D,e.getCurrentFiber=jI,rl(e)}()&&Wl&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var x1=window.location.protocol;/^(https?|file):$/.test(x1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(x1==="file:"?`
227
- You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}JM.createRoot=function(e,t){if(!_(e))throw Error("Target container is not a DOM element.");qx(e);var a=!1,o="",l=Dv,n=Ev,s=Ov;return t!==null&&t!==void 0&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t==="object"&&t!==null&&t.$$typeof===$l&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
226
+ Learn more: https://react.dev/warnings/version-mismatch`))}(),typeof Map==="function"&&Map.prototype!=null&&typeof Map.prototype.forEach==="function"&&typeof Set==="function"&&Set.prototype!=null&&typeof Set.prototype.clear==="function"&&typeof Set.prototype.forEach==="function"||console.error("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills"),kt.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0){if(typeof e.render==="function")throw Error("Unable to find node on an unmounted component.");throw e=Object.keys(e).join(","),Error("Argument appears to not be a ReactComponent. Keys: "+e)}return e=oe(t),e=e!==null?B(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:G,reconcilerVersion:"19.2.7"};return e.overrideHookState=f1,e.overrideHookStateDeletePath=p1,e.overrideHookStateRenamePath=m1,e.overrideProps=h1,e.overridePropsDeletePath=g1,e.overridePropsRenamePath=y1,e.scheduleUpdate=b1,e.scheduleRetry=v1,e.setErrorHandler=S1,e.setSuspenseHandler=x1,e.scheduleRefresh=L,e.scheduleRoot=R,e.setRefreshHandler=D,e.getCurrentFiber=YI,rl(e)}()&&Wl&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var L1=window.location.protocol;/^(https?|file):$/.test(L1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(L1==="file:"?`
227
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}eA.createRoot=function(e,t){if(!_(e))throw Error("Target container is not a DOM element.");Bx(e);var a=!1,o="",l=Ev,n=Ov,s=qv;return t!==null&&t!==void 0&&(t.hydrate?console.warn("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof t==="object"&&t!==null&&t.$$typeof===$l&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
228
228
 
229
229
  let root = createRoot(domContainer);
230
- root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Cx(e,1,!1,null,null,a,o,null,l,n,s,Ox),e[hr]=t.current,vg(e),new Pg(t)},JM.hydrateRoot=function(e,t,a){if(!_(e))throw Error("Target container is not a DOM element.");qx(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,l="",n=Dv,s=Ev,d=Ov,m=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(s=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(m=a.formState)),t=Cx(e,1,!0,t,a!=null?a:null,o,l,m,n,s,d,Ox),t.context=kx(null),a=t.current,o=Ro(a),o=os(o),l=lr(o),l.callback=null,nr(a,l,o),El(o,"hydrateRoot()",null),a=o,t.current.lanes=a,Wn(t,a),Gl(t),e[hr]=t.current,vg(e),new ep(t)},JM.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var I1=Fs(function(eA,im){im.exports=Y(T1())});var ce=Fs(function(uA){var js=Y(ut());(function(){function r(P){if(P==null)return null;if(typeof P==="function")return P.$$typeof===X?null:P.displayName||P.name||null;if(typeof P==="string")return P;switch(P){case D:return"Fragment";case z:return"Profiler";case _:return"StrictMode";case oe:return"Suspense";case B:return"SuspenseList";case W:return"Activity"}if(typeof P==="object")switch(typeof P.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case L:return"Portal";case K:return P.displayName||"Context";case F:return(P._context.displayName||"Context")+".Consumer";case N:var ue=P.render;return P=P.displayName,P||(P=ue.displayName||ue.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case ee:return ue=P.displayName||null,ue!==null?ue:r(P.type)||"Memo";case Z:ue=P._payload,P=P._init;try{return r(P(ue))}catch(se){}}return null}function i(P){return""+P}function u(P){try{i(P);var ue=!1}catch(pe){ue=!0}if(ue){ue=console;var se=ue.error,ne=typeof Symbol==="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return se.call(ue,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),i(P)}}function c(P){if(P===D)return"<>";if(typeof P==="object"&&P!==null&&P.$$typeof===Z)return"<...>";try{var ue=r(P);return ue?"<"+ue+">":"<...>"}catch(se){return"<...>"}}function f(){var P=ge.A;return P===null?null:P.getOwner()}function v(){return Error("react-stack-top-frame")}function p(P){if(Ne.call(P,"key")){var ue=Object.getOwnPropertyDescriptor(P,"key").get;if(ue&&ue.isReactWarning)return!1}return P.key!==void 0}function b(P,ue){function se(){te||(te=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ue))}se.isReactWarning=!0,Object.defineProperty(P,"key",{get:se,configurable:!0})}function S(){var P=r(this.type);return ve[P]||(ve[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function k(P,ue,se,ne,pe,Lt){var Ye=se.ref;return P={$$typeof:R,type:P,key:ue,props:se,_owner:ne},(Ye!==void 0?Ye:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:S}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:pe}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Lt}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function h(P,ue,se,ne,pe,Lt){var Ye=ue.children;if(Ye!==void 0)if(ne)if(Ce(Ye)){for(ne=0;ne<Ye.length;ne++)x(Ye[ne]);Object.freeze&&Object.freeze(Ye)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(Ye);if(Ne.call(ue,"key")){Ye=r(P);var V=Object.keys(ue).filter(function(Mt){return Mt!=="key"});ne=0<V.length?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}",ae[Ye+ne]||(V=0<V.length?"{"+V.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
230
+ root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(l=t.onUncaughtError),t.onCaughtError!==void 0&&(n=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=kx(e,1,!1,null,null,a,o,null,l,n,s,qx),e[hr]=t.current,vg(e),new Pg(t)},eA.hydrateRoot=function(e,t,a){if(!_(e))throw Error("Target container is not a DOM element.");Bx(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,l="",n=Ev,s=Ov,d=qv,m=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(l=a.identifierPrefix),a.onUncaughtError!==void 0&&(n=a.onUncaughtError),a.onCaughtError!==void 0&&(s=a.onCaughtError),a.onRecoverableError!==void 0&&(d=a.onRecoverableError),a.formState!==void 0&&(m=a.formState)),t=kx(e,1,!0,t,a!=null?a:null,o,l,m,n,s,d,qx),t.context=wx(null),a=t.current,o=Ro(a),o=os(o),l=lr(o),l.callback=null,nr(a,l,o),El(o,"hydrateRoot()",null),a=o,t.current.lanes=a,Wn(t,a),Gl(t),e[hr]=t.current,vg(e),new ep(t)},eA.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var R1=Fs(function(tA,im){im.exports=Y(I1())});var ce=Fs(function(iA){var js=Y(ut());(function(){function r(P){if(P==null)return null;if(typeof P==="function")return P.$$typeof===X?null:P.displayName||P.name||null;if(typeof P==="string")return P;switch(P){case D:return"Fragment";case z:return"Profiler";case _:return"StrictMode";case oe:return"Suspense";case B:return"SuspenseList";case W:return"Activity"}if(typeof P==="object")switch(typeof P.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case L:return"Portal";case K:return P.displayName||"Context";case F:return(P._context.displayName||"Context")+".Consumer";case N:var ue=P.render;return P=P.displayName,P||(P=ue.displayName||ue.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case ee:return ue=P.displayName||null,ue!==null?ue:r(P.type)||"Memo";case Z:ue=P._payload,P=P._init;try{return r(P(ue))}catch(se){}}return null}function i(P){return""+P}function u(P){try{i(P);var ue=!1}catch(pe){ue=!0}if(ue){ue=console;var se=ue.error,ne=typeof Symbol==="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return se.call(ue,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ne),i(P)}}function c(P){if(P===D)return"<>";if(typeof P==="object"&&P!==null&&P.$$typeof===Z)return"<...>";try{var ue=r(P);return ue?"<"+ue+">":"<...>"}catch(se){return"<...>"}}function f(){var P=ge.A;return P===null?null:P.getOwner()}function v(){return Error("react-stack-top-frame")}function p(P){if(Ne.call(P,"key")){var ue=Object.getOwnPropertyDescriptor(P,"key").get;if(ue&&ue.isReactWarning)return!1}return P.key!==void 0}function b(P,ue){function se(){te||(te=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",ue))}se.isReactWarning=!0,Object.defineProperty(P,"key",{get:se,configurable:!0})}function S(){var P=r(this.type);return ve[P]||(ve[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function k(P,ue,se,ne,pe,Lt){var Ye=se.ref;return P={$$typeof:R,type:P,key:ue,props:se,_owner:ne},(Ye!==void 0?Ye:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:S}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:pe}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Lt}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function h(P,ue,se,ne,pe,Lt){var Ye=ue.children;if(Ye!==void 0)if(ne)if(Ce(Ye)){for(ne=0;ne<Ye.length;ne++)x(Ye[ne]);Object.freeze&&Object.freeze(Ye)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else x(Ye);if(Ne.call(ue,"key")){Ye=r(P);var V=Object.keys(ue).filter(function(Mt){return Mt!=="key"});ne=0<V.length?"{key: someKey, "+V.join(": ..., ")+": ...}":"{key: someKey}",ae[Ye+ne]||(V=0<V.length?"{"+V.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
231
231
  let props = %s;
232
232
  <%s {...props} />
233
233
  React keys must be passed directly to JSX without using spread:
234
234
  let props = %s;
235
- <%s key={someKey} {...props} />`,ne,Ye,V,Ye),ae[Ye+ne]=!0)}if(Ye=null,se!==void 0&&(u(se),Ye=""+se),p(ue)&&(u(ue.key),Ye=""+ue.key),"key"in ue){se={};for(var Pe in ue)Pe!=="key"&&(se[Pe]=ue[Pe])}else se=ue;return Ye&&b(se,typeof P==="function"?P.displayName||P.name||"Unknown":P),k(P,Ye,se,f(),pe,Lt)}function x(P){C(P)?P._store&&(P._store.validated=1):typeof P==="object"&&P!==null&&P.$$typeof===Z&&(P._payload.status==="fulfilled"?C(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function C(P){return typeof P==="object"&&P!==null&&P.$$typeof===R}var R=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),K=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),ge=js.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=Object.prototype.hasOwnProperty,Ce=Array.isArray,Be=console.createTask?console.createTask:function(){return null};js={react_stack_bottom_frame:function(P){return P()}};var te,ve={},ke=js.react_stack_bottom_frame.bind(js,v)(),je=Be(c(v)),ae={};uA.Fragment=D,uA.jsxDEV=function(P,ue,se,ne){var pe=1e4>ge.recentlyCreatedOwnerStacks++;return h(P,ue,se,ne,pe?Error("react-stack-top-frame"):ke,pe?Be(c(P)):je)}})()});var sT=Y(I1(),1);var Ii=Y(ut(),1);var dm=Y(ut(),1);var R1=(r)=>r?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function M1(r,i,u=[]){if(i==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:R1(r),size:24,node:i,...u.length>0?{aliases:u}:{}}}var A1=(r)=>{let i="",u=!1;for(let c of r){if(c==="-"||c==="_"||c<=" "){u=i.length>0;continue}if(i.length===0)i+=c.toLowerCase();else i+=u?c.toUpperCase():c;u=!1}return i};var D1=(r)=>{let i=A1(r);return i.charAt(0).toUpperCase()+i.slice(1)};var uc=Y(ut(),1);var sc=(...r)=>r.filter((i,u,c)=>Boolean(i)&&i.trim()!==""&&c.indexOf(i)===u).join(" ").trim();var _r={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 hb(r){return r!==null&&r!==void 0}function E1(r,i={}){let u=i.attributeNames??{},c=(C)=>u[C]??C,f=r.size??r.width??_r.width,v=r.size??r.height??_r.height,p=r.aliases?.filter((C)=>typeof C==="string"&&C.trim()!=="").map((C)=>`lucide-${C}`)??[],b=[...r.name?[`lucide-${r.name}`]:[],...p],S=i.className?.split(" ").filter(Boolean)??[],k=i.includeDefaultClasses===!1?sc(...S):sc("lucide",...b,...S),h=i.absoluteStrokeWidth?Number(i.strokeWidth??_r["stroke-width"])*Number(r.size??r.width??_r.width)/Number(i.size??i.width??_r.width):i.strokeWidth??_r["stroke-width"];return["svg",{...Object.entries(_r).reduce((C,[R,L])=>(C[c(R)]=L,C),{}),..."color"in i&&i.color&&{[c("stroke")]:i.color},..."size"in i&&hb(i.size)&&{[c("width")]:i.size,[c("height")]:i.size},..."width"in i&&hb(i.width)&&{[c("width")]:i.width},..."height"in i&&hb(i.height)&&{[c("height")]:i.height},[c("stroke-width")]:h,...k&&{[c("class")]:k},[c("viewBox")]:`0 0 ${f} ${v}`,...i.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},r.node.map((C)=>{let[R,L,D]=C,_=i.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...L}:L;return D?[R,_,D]:[R,_]})]}function O1(r,i={}){return E1(r,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var q1=(r)=>{for(let i in r)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};var di=Y(ut(),1),tA=di.createContext({});var B1=()=>di.useContext(tA);var N1=uc.forwardRef(({color:r,size:i,width:u,height:c,strokeWidth:f,absoluteStrokeWidth:v,nonScalingStroke:p,className:b="",children:S,iconNode:k=[],icon:h={node:k,aliases:[],size:24},...x},C)=>{let{size:R=24,strokeWidth:L=2,absoluteStrokeWidth:D=!1,nonScalingStroke:_=!1,color:z="currentColor",className:F=""}=B1()??{},K=Boolean(S)||q1(x),[N,oe,B=[]]=O1(h,{color:r??z,width:u??i??R,height:c??i??R,strokeWidth:f??L,absoluteStrokeWidth:v??D,nonScalingStroke:p??_,className:sc(F,b),hasA11yProp:K,attributes:x});return uc.createElement(N,{ref:C,...oe},[...B.map(([ee,Z])=>uc.createElement(ee,Z)),...Array.isArray(S)?S:[S]])});function xe(r,i=[],u=[]){let c=typeof r==="string"?M1(r,i,u):r,f=dm.forwardRef(({className:v,...p},b)=>dm.createElement(N1,{ref:b,icon:c,className:v,...p}));if(c.name)f.displayName=D1(c.name);return f}var U1={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};U1.node;var Hr=xe(U1);var P1={name:"face-slightly-frowning",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M9 10V9",key:"1lazqi"}],["path",{d:"M9 16a5 5 0 016 0",key:"34mdxb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["frown"]};P1.node;var Fr=xe(P1);var z1={name:"plug-zap",size:24,node:[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],aliases:["plug-zap-2"]};z1.node;var Gr=xe(z1);var _1={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};_1.node;var on=xe(_1);var H1={name:"square-chart-gantt",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]],aliases:["gantt-chart-square","square-gantt-chart"]};H1.node;var bl=xe(H1);var F1={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};F1.node;var Vr=xe(F1);var G1={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"}]]};G1.node;var ic=xe(G1);var V1={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};V1.node;var dc=xe(V1);var $1={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};$1.node;var cc=xe($1);var X1={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};X1.node;var fc=xe(X1);var j1={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};j1.node;var pc=xe(j1);var Y1={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Y1.node;var mc=xe(Y1);var Q1={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Q1.node;var Vs=xe(Q1);var Z1={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};Z1.node;var $s=xe(Z1);var W1={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};W1.node;var hc=xe(W1);var K1={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};K1.node;var vl=xe(K1);var J1={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};J1.node;var gc=xe(J1);var ek={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};ek.node;var Xs=xe(ek);var tk={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};tk.node;var yc=xe(tk);var ak={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};ak.node;var bc=xe(ak);var ok={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};ok.node;var vc=xe(ok);var lk={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};lk.node;var Sc=xe(lk);var nk={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};nk.node;var xc=xe(nk);var rk={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};rk.node;var Lc=xe(rk);var sk={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};sk.node;var Cc=xe(sk);var uk={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};uk.node;var kc=xe(uk);var ik={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"}]]};ik.node;var $r=xe(ik);var dk={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};dk.node;var wc=xe(dk);var ck={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};ck.node;var Tc=xe(ck);var fk={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};fk.node;var Ic=xe(fk);var pk={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};pk.node;var Rc=xe(pk);var mk={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};mk.node;var al=xe(mk);var vi=Y(ut(),1);var hk=["January","February","March","April","May","June","July","August","September","October","November","December"],gk=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],aA=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function Xr(r,i=2){return String(r).padStart(i,"0")}function oA(r,i){let u=r.getMonth(),c=r.getDay(),f=r.getHours(),v=f%12||12;switch(i){case"yyyy":return Xr(r.getFullYear(),4);case"yy":return Xr(r.getFullYear()%100);case"MMMM":return hk[u];case"MMM":return hk[u].slice(0,3);case"MM":return Xr(u+1);case"M":return String(u+1);case"dd":return Xr(r.getDate());case"d":return String(r.getDate());case"EEEE":return gk[c];case"EEE":return gk[c].slice(0,3);case"HH":return Xr(f);case"H":return String(f);case"hh":return Xr(v);case"h":return String(v);case"mm":return Xr(r.getMinutes());case"m":return String(r.getMinutes());case"ss":return Xr(r.getSeconds());case"s":return String(r.getSeconds());case"a":return f<12?"AM":"PM"}}function bk(r){let i=r instanceof Date?new Date(r.getTime()):new Date(r);if(Number.isNaN(i.getTime()))throw RangeError("Invalid time value");return i}function ln(r,i){let u=bk(r),c="";for(let f=0;f<i.length;){if(i[f]==="'"){if(i[f+1]==="'"){c+="'",f+=2;continue}f++;while(f<i.length){if(i[f]!=="'"){c+=i[f++];continue}if(i[f+1]==="'"){c+="'",f+=2;continue}f++;break}continue}let v=i.slice(f),p=aA.find((S)=>v.startsWith(S));if(p){c+=oA(u,p),f+=p.length;continue}let b=i[f++];if(/[A-Za-z]/.test(b))throw RangeError(`Format string contains an unescaped latin alphabet character \`${b}\``);c+=b}return c}function jr(r,i){return`${r} ${r===1?i:`${i}s`}`}function lA(r,i){let u=(i.getFullYear()-r.getFullYear())*12+i.getMonth()-r.getMonth();if(u===0)return 0;let c=new Date(r);c.setDate(1),c.setFullYear(r.getFullYear(),r.getMonth()+u,1);let f=new Date(c.getFullYear(),c.getMonth()+1,0).getDate();if(c.setDate(Math.min(r.getDate(),f)),c.getTime()>i.getTime())u--;return u}function yk(r,i){let u=(i.getTime()-r.getTime())/1000,c=(i.getTimezoneOffset()-r.getTimezoneOffset())*60,f=Math.round((u-c)/60);if(f<2)return f===0?"less than a minute":"1 minute";if(f<45)return jr(f,"minute");if(f<90)return"about 1 hour";if(f<1440)return`about ${jr(Math.round(f/60),"hour")}`;if(f<2520)return"1 day";if(f<43200)return jr(Math.round(f/1440),"day");if(f<86400)return`about ${jr(Math.round(f/43200),"month")}`;let v=lA(r,i);if(v<12)return jr(Math.round(f/43200),"month");let p=Math.trunc(v/12),b=v%12;if(b<3)return`about ${jr(p,"year")}`;if(b<9)return`over ${jr(p,"year")}`;return`almost ${jr(p+1,"year")}`}function vk(r,i={}){let u=bk(r),c=new Date(Date.now()),f=u.getTime()>c.getTime(),v=f?yk(c,u):yk(u,c);if(!i.addSuffix)return v;return f?`in ${v}`:`${v} ago`}var Sk=60000,cm=60*Sk,nn=24*cm,gb={"1h":{label:"1h",windowLabel:"the last hour",spanMs:cm,bucketMs:5*Sk},"24h":{label:"24h",windowLabel:"the last 24 hours",spanMs:nn,bucketMs:cm},"7d":{label:"7d",windowLabel:"the last 7 days",spanMs:7*nn,bucketMs:nn},"30d":{label:"30d",windowLabel:"the last 30 days",spanMs:30*nn,bucketMs:nn},"90d":{label:"90d",windowLabel:"the last 90 days",spanMs:90*nn,bucketMs:nn},all:{label:"All",windowLabel:"all time",spanMs:null,bucketMs:nn}},nA=1500,ci=["1h","24h","7d","30d","90d","all"];function na(r){return gb[r]}function fm(r,i){if(i<nn)return ln(new Date(r),i<cm?"HH:mm":"MMM d HH:mm");return ln(new Date(r),"MMM d")}function pm(r,i){if(i<nn)return ln(new Date(r),"HH:mm");return ln(new Date(r),"MMM d")}function Po(r,i,u=gb[r].bucketMs,c=Date.now()){let f=Math.floor(c/u)*u,v=gb[r].spanMs,p;if(v!==null)p=Math.floor((c-v)/u)*u;else{p=f;for(let S of i)if(S<p)p=S;p=Math.floor(p/u)*u}p=Math.max(p,f-(nA-1)*u);let b=[];for(let S=p;S<=f;S+=u)b.push(S);return b}var zo=Y(ut(),1);class xk extends Error{status;endpoint;constructor(r,i,u){super(u);this.name="ApiError",this.status=r,this.endpoint=i}}async function rA(r,i){try{let u=await r.json();if(typeof u==="object"&&u!==null&&"error"in u&&typeof u.error==="string")return u.error}catch{}return`HTTP error ${r.status} on ${i}`}async function Da(r,i){let u=await fetch(r,i);if(!u.ok)throw new xk(u.status,r,await rA(u,r));return u.json()}var Lk={"X-Omp-Stats-Action":"1"};async function Ck(r="24h",i){return Da(`/api/stats/overview?range=${encodeURIComponent(r)}`,{signal:i})}async function kk(r="24h",i){return Da(`/api/stats/model-dashboard?range=${encodeURIComponent(r)}`,{signal:i})}async function wk(r="24h",i){return Da(`/api/stats/costs?range=${encodeURIComponent(r)}`,{signal:i})}async function mm(r=50,i){return Da(`/api/stats/recent?limit=${r}`,{signal:i})}async function Tk(r="24h",i=50,u){return Da(`/api/stats/errors?range=${encodeURIComponent(r)}&limit=${i}`,{signal:u})}async function Ik(r,i){return Da(`/api/request/${r}`,{signal:i})}async function Rk(){return Da("/api/sync",{method:"POST"})}async function Mk(r="24h",i){return Da(`/api/stats/frustration?range=${encodeURIComponent(r)}`,{signal:i})}async function Ak(r,i){return Da(`/api/frustration/estimate?range=${encodeURIComponent(r)}`,{signal:i})}async function Dk(r){return Da(`/api/frustration/judge?range=${encodeURIComponent(r)}`,{method:"POST",headers:Lk})}async function Ek(){return Da("/api/frustration/cancel",{method:"POST",headers:Lk})}async function Ok(r="24h",i){return Da(`/api/stats/folders?range=${encodeURIComponent(r)}`,{signal:i})}async function qk(r="24h",i,u){let c=new URLSearchParams({range:r});if(i)c.set("project",i);return Da(`/api/stats/gain?${c}`,{signal:u})}async function Bk(r="24h",i){return Da(`/api/stats/tools?range=${encodeURIComponent(r)}`,{signal:i})}async function Nk(r="24h",i){return Da(`/api/stats/providers?range=${encodeURIComponent(r)}`,{signal:i})}async function yb(r,i,u){let c=new URLSearchParams({range:r});if(i!==null)c.set("provider",i);return Da(`/api/stats/provider-windows?${c}`,{signal:u})}async function Uk(r=100,i,u){let c=new URLSearchParams({limit:String(r)});if(i)c.set("q",i);return Da(`/api/sessions?${c}`,{signal:u})}async function Pk(r,i){return Da(`/api/session/trace?file=${encodeURIComponent(r)}`,{signal:i})}async function zk(r,i,u){return Da(`/api/session/entry?file=${encodeURIComponent(r)}&id=${encodeURIComponent(i)}`,{signal:u})}var Gk=Y(ce(),1),_k={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null},Hk=zo.createContext({version:0,sync:_k,indexingHours:0,connected:!1,requestSync:()=>{}});function Fk({children:r}){let[i,u]=zo.useState({server:null,version:0}),[c,f]=zo.useState(!1);zo.useEffect(()=>{let b=new EventSource("/api/events");return b.onopen=()=>f(!0),b.onerror=()=>f(!1),b.onmessage=(S)=>{let k=JSON.parse(S.data);u((h)=>({server:k,version:h.server&&h.server.version===k.version?h.version:h.version+1}))},()=>b.close()},[]);let v=zo.useCallback(()=>{Rk().catch(()=>{})},[]),p=zo.useMemo(()=>({version:Math.max(0,i.version-1),sync:i.server?.sync??_k,indexingHours:i.server?.indexingHours??0,connected:c,requestSync:v}),[i,c,v]);return Gk.jsxDEV(Hk.Provider,{value:p,children:r},void 0,!1,void 0,this)}function fi(){return zo.useContext(Hk)}var hm=Y(ce(),1);function wt({tone:r="neutral",mono:i,children:u}){return hm.jsxDEV("span",{className:"badge","data-tone":r,"data-mono":i??!1,children:u},void 0,!1,void 0,this)}function rn({tone:r="neutral",pulse:i}){return hm.jsxDEV("span",{className:"dot","data-tone":r,"data-pulse":i??!1},void 0,!1,void 0,this)}function Sl({color:r}){return hm.jsxDEV("span",{className:"swatch",style:{background:r}},void 0,!1,void 0,this)}function sn(r){if(r>=0.05)return"bad";if(r>=0.01)return"warn";return"ok"}var vo=Y(ce(),1);function Ve({title:r,description:i,actions:u,flush:c,footer:f,className:v,index:p,stale:b,children:S}){let k=r!==void 0||i!==void 0||u!==void 0;return vo.jsxDEV("section",{className:v?`card rise ${v}`:"card rise",style:p!==void 0?{"--i":p}:void 0,children:[k&&vo.jsxDEV("header",{className:"card-header",children:[vo.jsxDEV("div",{className:"card-titles",children:[r!==void 0&&vo.jsxDEV("h2",{className:"card-title",children:r},void 0,!1,void 0,this),i!==void 0&&vo.jsxDEV("p",{className:"card-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u!==void 0&&vo.jsxDEV("div",{className:"card-actions",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),vo.jsxDEV("div",{className:"card-body","data-flush":c??!1,"data-stale":b??!1,children:S},void 0,!1,void 0,this),f!==void 0&&vo.jsxDEV("footer",{className:"card-footer",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ta({title:r,description:i,actions:u}){return vo.jsxDEV("header",{className:"page-header rise",children:[vo.jsxDEV("div",{children:[vo.jsxDEV("h1",{className:"page-title",children:r},void 0,!1,void 0,this),i!==void 0&&vo.jsxDEV("p",{className:"page-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u!==void 0&&vo.jsxDEV("div",{className:"page-actions",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Mc=Y(ut(),1),Vk=Y(rc(),1),Ya=Y(ce(),1);function gm({open:r,onClose:i,title:u,subtitle:c,actions:f,width:v,children:p}){let b=Mc.useRef(i);b.current=i;let S=Mc.useRef(null);if(Mc.useEffect(()=>{if(!r)return;let k=document.activeElement instanceof HTMLElement?document.activeElement:null;S.current?.focus();let h=(x)=>{if(x.key==="Escape")x.preventDefault(),b.current()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h),k?.focus()}},[r]),!r)return null;return Vk.createPortal(Ya.jsxDEV(Ya.Fragment,{children:[Ya.jsxDEV("div",{className:"drawer-scrim",onClick:i,role:"presentation"},void 0,!1,void 0,this),Ya.jsxDEV("div",{ref:S,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:v!==void 0?{"--drawer-w":`${v}px`}:void 0,children:[Ya.jsxDEV("header",{className:"drawer-header",children:[Ya.jsxDEV("div",{className:"drawer-titles",children:[Ya.jsxDEV("h2",{className:"drawer-title",children:u},void 0,!1,void 0,this),c!==void 0&&Ya.jsxDEV("div",{className:"drawer-subtitle",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f,Ya.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:i,"aria-label":"Close",children:Ya.jsxDEV(al,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV("div",{className:"drawer-body",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function _o({items:r}){return Ya.jsxDEV("dl",{className:"kv",style:{margin:0},children:r.map((i)=>Ya.jsxDEV("div",{className:"kv-item",children:[Ya.jsxDEV("dt",{className:"kv-key",children:i.label},void 0,!1,void 0,this),Ya.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:i.value},void 0,!1,void 0,this)]},i.key,!0,void 0,this))},void 0,!1,void 0,this)}var Ys=Y(ut(),1),xl=Y(ce(),1);function pi({data:r,title:i="JSON",initialCollapsed:u=!1}){let[c,f]=Ys.useState(u),[v,p]=Ys.useState(!1),b=Ys.useRef(0),S=JSON.stringify(r,null,2);return Ys.useEffect(()=>()=>window.clearTimeout(b.current),[]),xl.jsxDEV("div",{className:"stack",style:{gap:6},children:[xl.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[xl.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>f((h)=>!h),"aria-expanded":!c,children:[c?xl.jsxDEV(vl,{size:13},void 0,!1,void 0,this):xl.jsxDEV($s,{size:13},void 0,!1,void 0,this),i]},void 0,!0,void 0,this),xl.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(S),p(!0),window.clearTimeout(b.current),b.current=window.setTimeout(()=>p(!1),1500)}catch{}},children:[v?xl.jsxDEV(Vs,{size:13},void 0,!1,void 0,this):xl.jsxDEV(Xs,{size:13},void 0,!1,void 0,this),v?"Copied":"Copy"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!c&&xl.jsxDEV("pre",{className:"code-block",children:xl.jsxDEV("code",{children:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Qs=Y(ut(),1),$k=Y(rc(),1);var Ll=Y(ce(),1);function Xk({open:r,title:i,onClose:u,primaryAction:c,cancelLabel:f="Cancel",children:v}){let p=Qs.useRef(null),b=Qs.useRef(null),S=Qs.useRef(u);S.current=u,Qs.useEffect(()=>{if(!r)return;let C=document.activeElement instanceof HTMLElement?document.activeElement:null,R=(L)=>{if(L.key==="Escape")L.preventDefault(),S.current()};return window.addEventListener("keydown",R),()=>{window.removeEventListener("keydown",R),C?.focus()}},[r]);let k=c!==void 0,h=c?.disabled??!1;if(Qs.useEffect(()=>{if(!r)return;(k&&!h?p.current:b.current)?.focus()},[r,k,h]),!r)return null;return $k.createPortal(Ll.jsxDEV("div",{className:"modal-overlay",onClick:(C)=>{if(C.target===C.currentTarget)u()},role:"presentation",children:Ll.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[Ll.jsxDEV("div",{className:"modal-header",children:[Ll.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:i},void 0,!1,void 0,this),Ll.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:u,"aria-label":"Close",children:Ll.jsxDEV(al,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ll.jsxDEV("div",{className:"modal-body",children:v},void 0,!1,void 0,this),Ll.jsxDEV("div",{className:"modal-footer",children:[Ll.jsxDEV("button",{ref:b,type:"button",className:"btn",onClick:u,children:f},void 0,!1,void 0,this),c&&Ll.jsxDEV("button",{ref:p,type:"button",className:"btn","data-variant":"primary",onClick:c.onClick,disabled:c.disabled,children:c.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),document.body)}var ym=Y(ce(),1);function un({value:r,onChange:i,placeholder:u="Filter…",width:c}){return ym.jsxDEV("label",{className:"search",children:[ym.jsxDEV(Tc,{size:14},void 0,!1,void 0,this),ym.jsxDEV("input",{className:"input",type:"search",value:r,placeholder:u,onChange:(f)=>i(f.target.value),style:c!==void 0?{width:c}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var mi=Y(ut(),1),bm=Y(ce(),1);function za({options:r,value:i,onChange:u,size:c="md","aria-label":f}){let v=mi.useRef(null),[p,b]=mi.useState(null);return mi.useLayoutEffect(()=>{let S=v.current,k=S?.querySelector('[data-active="true"]');if(!S||!k){b(null);return}let h=()=>b({left:k.offsetLeft,width:k.offsetWidth});h();let x=new ResizeObserver(h);return x.observe(S),()=>x.disconnect()},[i,r]),bm.jsxDEV("div",{ref:v,className:"segmented","data-size":c,role:"radiogroup","aria-label":f,children:[p&&bm.jsxDEV("span",{className:"segmented-thumb",style:{left:p.left,width:p.width}},void 0,!1,void 0,this),r.map((S)=>bm.jsxDEV("button",{type:"button",role:"radio","aria-checked":S.value===i,className:"segmented-option","data-active":S.value===i,title:S.title,onClick:()=>u(S.value),children:S.label},S.value,!1,void 0,this))]},void 0,!0,void 0,this)}var yi=Y(ut(),1);var hi=Y(ut(),1);function vm(){let r=hi.useRef(null),[i,u]=hi.useState(0);return hi.useLayoutEffect(()=>{let c=r.current;if(!c)return;u(c.clientWidth);let f=new ResizeObserver((v)=>{let p=Math.round(v[0]?.contentRect.width??0);u((b)=>b===p?b:p)});return f.observe(c),()=>f.disconnect()},[]),[r,i]}var Ac=Y(ce(),1);function gi({values:r,color:i="var(--chart-primary)",height:u=28,width:c,area:f=!0}){let[v,p]=vm(),b=c??p,S=Math.max(0,...r),k=r.length,h="";if(b>0&&k>0){let x=k>1?b/(k-1):0;for(let C=0;C<k;C++){let R=k>1?C*x:b/2,L=S>0?u-2-r[C]/S*(u-4):u-2;h+=`${C===0?"M":"L"}${R.toFixed(1)},${L.toFixed(1)}`}}return Ac.jsxDEV("div",{ref:v,className:"sparkline",style:{width:c??"100%",height:u},children:b>0&&k>0&&Ac.jsxDEV("svg",{width:b,height:u,"aria-hidden":"true",children:[f&&Ac.jsxDEV("path",{className:"area",d:`${h}L${b},${u}L0,${u}Z`,fill:i},void 0,!1,void 0,this),Ac.jsxDEV("path",{className:"chart-line",d:h,stroke:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var ol=Y(ce(),1);function fe({label:r,value:i,hint:u,delta:c,spark:f,sparkColor:v,size:p="md",title:b}){let S=dA(typeof i==="string"||typeof i==="number"?i:null);return ol.jsxDEV("div",{className:"stat","data-size":p,title:b,children:[ol.jsxDEV("div",{className:"stat-label",children:r},void 0,!1,void 0,this),ol.jsxDEV("div",{className:"stat-value","data-flash":S,children:i},void 0,!1,void 0,this),(u!==void 0||c)&&ol.jsxDEV("div",{className:"stat-foot",children:[c&&ol.jsxDEV(iA,{...c},void 0,!1,void 0,this),u!==void 0&&ol.jsxDEV("span",{className:"truncate",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&f.length>1&&ol.jsxDEV("div",{className:"stat-spark",children:ol.jsxDEV(gi,{values:f,color:v},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aa({min:r,children:i}){return ol.jsxDEV("div",{className:"stat-grid rise",style:r!==void 0?{"--stat-min":`${r}px`}:void 0,children:i},void 0,!1,void 0,this)}function iA({change:r,good:i="up"}){if(r===null||!Number.isFinite(r))return ol.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let u=Math.abs(r)<0.0005?0:r,c=u===0?void 0:u>0===(i==="up")?"good":"bad",f=u>0?"+":u<0?"−":"±",v=Math.abs(u)*100;return ol.jsxDEV("span",{className:"delta","data-tone":c,children:[f,v>=100?v.toFixed(0):v.toFixed(1),"%"]},void 0,!0,void 0,this)}function dA(r){let i=yi.useRef(r),[u,c]=yi.useState(!1);return yi.useEffect(()=>{if(i.current===r)return;let f=i.current!==null;if(i.current=r,!f)return;c(!0);let v=setTimeout(()=>c(!1),900);return()=>clearTimeout(v)},[r]),u}var fa=Y(ce(),1);function mt({title:r="Nothing here yet",hint:i}){return fa.jsxDEV("div",{className:"empty",children:[fa.jsxDEV(Sc,{size:20},void 0,!1,void 0,this),fa.jsxDEV("div",{className:"empty-title",children:r},void 0,!1,void 0,this),i!==void 0&&fa.jsxDEV("div",{className:"empty-hint",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bi({error:r,onRetry:i}){return fa.jsxDEV("div",{className:"error-state",role:"alert",children:[fa.jsxDEV(Vr,{size:15},void 0,!1,void 0,this),fa.jsxDEV("span",{className:"error-state-message",children:typeof r==="string"?r:r.message},void 0,!1,void 0,this),i&&fa.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:i,children:[fa.jsxDEV(wc,{size:13},void 0,!1,void 0,this)," Retry"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ea({width:r="100%",height:i=14,style:u}){return fa.jsxDEV("div",{className:"skeleton",style:{width:r,height:i,...u}},void 0,!1,void 0,this)}function Tt({height:r=220}){return fa.jsxDEV(Ea,{height:r,style:{borderRadius:8}},void 0,!1,void 0,this)}function ra({rows:r=6}){return fa.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:r},(i,u)=>fa.jsxDEV(Ea,{height:16,width:`${92-u*13%30}%`},u,!1,void 0,this))},void 0,!1,void 0,this)}function _e({query:r,skeleton:i,isEmpty:u,empty:c,children:f}){if(r.data===null){if(r.error)return fa.jsxDEV(bi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this);return fa.jsxDEV(fa.Fragment,{children:i},void 0,!1,void 0,this)}return fa.jsxDEV(fa.Fragment,{children:[r.error&&fa.jsxDEV(bi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this),u?.(r.data)?c??fa.jsxDEV(mt,{},void 0,!1,void 0,this):f(r.data)]},void 0,!0,void 0,this)}var Zs=Y(ut(),1);var vt=Y(ce(),1);function zt({columns:r,rows:i,rowKey:u,onRowClick:c,selectedKey:f,initialSort:v,limit:p,dense:b,empty:S,expanded:k}){let[h,x]=Zs.useState(v??null),[C,R]=Zs.useState(p??Number.POSITIVE_INFINITY),L=Zs.useMemo(()=>{let z=h?r.find((N)=>N.key===h.key):void 0;if(!h||!z?.sort)return i;let F=z.sort,K=h.dir==="asc"?1:-1;return[...i].sort((N,oe)=>{let B=F(N),ee=F(oe);if(typeof B==="number"&&typeof ee==="number")return(B-ee)*K;return String(B).localeCompare(String(ee))*K})},[i,r,h]);if(i.length===0)return vt.jsxDEV(vt.Fragment,{children:S??vt.jsxDEV(mt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let D=L.length>C?L.slice(0,C):L,_=(z)=>{if(!z.sort)return;x((F)=>F?.key===z.key?{key:z.key,dir:F.dir==="asc"?"desc":"asc"}:{key:z.key,dir:z.align==="right"?"desc":"asc"})};return vt.jsxDEV(vt.Fragment,{children:[vt.jsxDEV("div",{className:"table-wrap",children:vt.jsxDEV("table",{className:"table","data-dense":b??!1,children:[vt.jsxDEV("thead",{children:vt.jsxDEV("tr",{children:r.map((z)=>{let F=h?.key===z.key?h.dir:void 0;return vt.jsxDEV("th",{"data-align":z.align??"left","data-sortable":z.sort!==void 0,"data-sorted":F,style:z.width!==void 0?{width:z.width}:void 0,title:z.title,onClick:()=>_(z),"aria-sort":F==="asc"?"ascending":F==="desc"?"descending":void 0,children:[z.header,F&&vt.jsxDEV("span",{className:"sort-arrow",children:F==="asc"?vt.jsxDEV(mc,{size:11},void 0,!1,void 0,this):vt.jsxDEV(dc,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},z.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),vt.jsxDEV("tbody",{children:D.map((z)=>{let F=u(z),K=k?.(z)??null;return vt.jsxDEV(Zs.Fragment,{children:[vt.jsxDEV("tr",{"data-clickable":c!==void 0,"data-selected":f===F,onClick:c?()=>c(z):void 0,onKeyDown:c?(N)=>{if(N.key==="Enter"||N.key===" ")N.preventDefault(),c(z)}:void 0,tabIndex:c?0:void 0,children:r.map((N)=>vt.jsxDEV("td",{"data-align":N.align??"left","data-wrap":N.wrap??!1,children:N.render(z)},N.key,!1,void 0,this))},void 0,!1,void 0,this),K!==null&&vt.jsxDEV("tr",{children:vt.jsxDEV("td",{colSpan:r.length,"data-wrap":"true",style:{padding:0},children:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},F,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),p!==void 0&&L.length>p&&vt.jsxDEV("div",{className:"table-more",children:[vt.jsxDEV("span",{className:"micro",children:[D.length.toLocaleString()," of ",L.length.toLocaleString()]},void 0,!0,void 0,this),L.length>C&&vt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>R((z)=>z+p*4),children:"Show more"},void 0,!1,void 0,this),C>p&&vt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>R(p),children:"Show fewer"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function sa({value:r,max:i,display:u,color:c}){let f=i>0?Math.min(100,r/i*100):0;return vt.jsxDEV("div",{className:"meter-cell",children:[vt.jsxDEV("span",{className:"num",children:u},void 0,!1,void 0,this),vt.jsxDEV("div",{className:"meter",children:vt.jsxDEV("div",{className:"meter-fill",style:{width:`${f}%`,background:c}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _a({primary:r,secondary:i,lead:u}){return vt.jsxDEV("div",{className:"row",style:{gap:10},children:[u,vt.jsxDEV("div",{className:"stack",style:{gap:0},children:[vt.jsxDEV("span",{className:"cell-primary truncate",children:r},void 0,!1,void 0,this),i!==void 0&&vt.jsxDEV("span",{className:"cell-secondary truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Sm=Y(ut(),1);function q(r){return r.toLocaleString()}function Me(r){return r.toLocaleString(void 0,{notation:"compact"})}function ua(r,i){if(r===0)return"$0";let u=i!==void 0?i:r>0&&r<0.01?4:2;return`$${r.toLocaleString(void 0,{minimumFractionDigits:u,maximumFractionDigits:u})}`}function Ot(r,i,u){return r===0&&i>0?"N/A":ua(r,u)}function bb(r){return r.usage.totalTokens>0&&r.usage.cost.total===0&&(r.provider==="xai-oauth"||r.costUnpriced===!0)}function Yr(r,i){return Ot(r.usage.cost.total,bb(r)?1:0,i)}function Re(r,i=1){return`${(r*100).toFixed(i)}%`}function St(r,i){if(r===null)return"-";let u=r/1000,c=i!==void 0?i:u<1?2:1;return`${u.toFixed(c)}s`}function Ws(r){if(r<60000)return St(r);let i=Math.floor(r/60000);if(i<60)return`${i}m ${String(Math.floor(r%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(i/60)}h ${String(i%60).padStart(2,"0")}m`}function dn(r){if(r===null)return"-";return r.toFixed(1)}function ia(r){return vk(new Date(r),{addSuffix:!0})}function ll(r){return ln(new Date(r),"MMM d, HH:mm:ss")}function cn(r){return r.replace(/^\/+|\/+$/g,"")||"(root)"}function vb(r){if(r>=1e9)return`${(r/1e9).toFixed(1)} GB`;if(r>=1e6)return`${(r/1e6).toFixed(1)} MB`;if(r>=1000)return`${(r/1000).toFixed(1)} KB`;return`${r} B`}var Xt=Y(ce(),1);function jk(){let{sync:r,indexingHours:i,connected:u,requestSync:c}=fi(),f=fA(r.phase==="idle"?15000:null),v,p;if(!u)v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(rn,{tone:"warn"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Reconnecting"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p="Lost the live connection to the stats server; retrying";else if(r.phase==="syncing")v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV($r,{size:13,className:"spin"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Syncing"},void 0,!1,void 0,this),r.total>0&&Xt.jsxDEV("span",{className:"live-chip-count",children:[q(r.current),"/",q(r.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p="Ingesting session files";else if(r.phase==="error")v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(rn,{tone:"bad"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Sync failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p=`${r.error??"Sync failed"} — click to retry`;else if(i>cA)v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV($r,{size:13,className:"spin"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Indexing"},void 0,!1,void 0,this),Xt.jsxDEV("span",{className:"live-chip-count",children:[q(i),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p="Building hourly rollups; older ranges fill in as it goes";else v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(rn,{tone:"live",pulse:!0},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Live"},void 0,!1,void 0,this),r.lastSyncedAt!==null&&Xt.jsxDEV("span",{className:"live-chip-count",children:pA(f-r.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p="Click to sync session files now";return Xt.jsxDEV("button",{type:"button",className:"live-chip",onClick:c,disabled:r.phase==="syncing",title:p,children:v},void 0,!1,void 0,this)}var cA=24;function fA(r){let[i,u]=Sm.useState(Date.now);return Sm.useEffect(()=>{if(r===null)return;u(Date.now());let c=setInterval(()=>u(Date.now()),r);return()=>clearInterval(c)},[r]),i}function pA(r){let i=Math.max(0,Math.round(r/1000));if(i<45)return"just now";let u=Math.round(i/60);if(u<60)return`${u}m ago`;let c=Math.round(u/60);return c<24?`${c}h ago`:`${Math.round(c/24)}d ago`}var xm=[{heading:"Usage",items:[{id:"overview",label:"Overview",icon:xc,hotkey:"o"},{id:"models",label:"Models",icon:yc,hotkey:"m"},{id:"providers",label:"Providers",icon:Gr,hotkey:"p"},{id:"costs",label:"Costs",icon:gc,hotkey:"c"}]},{heading:"Activity",items:[{id:"requests",label:"Requests",icon:ic,hotkey:"r"},{id:"errors",label:"Errors",icon:Hr,hotkey:"e"},{id:"traces",label:"Traces",icon:bl,hotkey:"t"}]},{heading:"Insights",items:[{id:"tools",label:"Tools",icon:Rc,hotkey:"l"},{id:"frustration",label:"Frustration",icon:Fr,hotkey:"f"},{id:"projects",label:"Projects",icon:bc,hotkey:"j"},{id:"gain",label:"Gain",icon:on,hotkey:"g"}]}],mA=xm.flatMap((r)=>r.items),Yk=mA.map((r)=>r.id);var Lm=Y(ut(),1),Qk="omp-stats-theme",Zk="(prefers-color-scheme: dark)";function hA(){if(typeof localStorage>"u")return"system";let r=localStorage.getItem(Qk);return r==="light"||r==="dark"||r==="system"?r:"system"}function Wk(){if(typeof window>"u")return"dark";return window.matchMedia(Zk).matches?"dark":"light"}var Ks=hA(),Dc=Ks==="system"?Wk():Ks,Sb=new Set;function Kk(){for(let r of Sb)r()}function xb(){if(Dc=Ks==="system"?Wk():Ks,typeof document<"u")document.documentElement.dataset.theme=Dc,document.documentElement.style.colorScheme=Dc}if(typeof window<"u")xb(),window.matchMedia(Zk).addEventListener("change",()=>{if(Ks==="system")xb(),Kk()});function gA(r){if(Ks=r,typeof localStorage<"u")localStorage.setItem(Qk,r);xb(),Kk()}function Lb(r){return Sb.add(r),()=>Sb.delete(r)}function Jk(){return Lm.useSyncExternalStore(Lb,()=>Dc,()=>"dark")}function ew(){let r=Lm.useSyncExternalStore(Lb,()=>Ks,()=>"system"),i=Lm.useSyncExternalStore(Lb,()=>Dc,()=>"dark");return{preference:r,resolved:i,setPreference:gA}}var Cb=Y(ce(),1),yA={system:"light",light:"dark",dark:"system"},bA={system:Cc,light:Ic,dark:kc},tw={system:"System theme",light:"Light theme",dark:"Dark theme"};function aw(){let{preference:r,setPreference:i}=ew(),u=bA[r];return Cb.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>i(yA[r]),"aria-label":`${tw[r]} (click to switch)`,title:`${tw[r]} — click to switch`,children:Cb.jsxDEV(u,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ke=Y(ce(),1),vA=ci.map((r,i)=>({value:r,label:na(r).label,title:`${na(r).windowLabel} (${i+1})`}));function ow({section:r,onSectionChange:i,range:u,onRangeChange:c,children:f}){let[v,p]=vi.useState(!1),b=SA(),{sync:S}=fi();xA(i,c);let k=(x)=>{i(x),p(!1),window.scrollTo({top:0})},h=S.phase==="syncing"?S.total>0?S.current/S.total:null:void 0;return Ke.jsxDEV(Ke.Fragment,{children:[Ke.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),Ke.jsxDEV("header",{className:"topbar","data-scrolled":b,children:[Ke.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>p(!0),"aria-label":"Open navigation",children:Ke.jsxDEV(Lc,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV("div",{className:"topbar-brand",children:[Ke.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[Ke.jsxDEV("defs",{children:Ke.jsxDEV("linearGradient",{id:"omp-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[Ke.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),Ke.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),Ke.jsxDEV("stop",{offset:"1",stopColor:"oklch(0.81 0.14 200)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV("path",{fill:"url(#omp-mark-grad)",d:"M10 14h44v9H43v33h-9V23h-9v22h-9V23H10z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("span",{children:"omp"},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"topbar-title",children:"stats"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),Ke.jsxDEV("div",{className:"topbar-actions",children:[Ke.jsxDEV("span",{className:"topbar-hide-narrow",children:Ke.jsxDEV(jk,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV(za,{options:vA,value:u,onChange:c,"aria-label":"Time range"},void 0,!1,void 0,this),Ke.jsxDEV(aw,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h!==void 0&&Ke.jsxDEV("div",{className:"topbar-progress",children:Ke.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":h===null,style:{width:`${(h??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v&&Ke.jsxDEV("div",{className:"drawer-scrim",onClick:()=>p(!1),role:"presentation"},void 0,!1,void 0,this),Ke.jsxDEV("nav",{className:"sidebar","data-open":v,"aria-label":"Pages",children:[xm.map((x)=>Ke.jsxDEV("div",{className:"nav-group",children:[Ke.jsxDEV("div",{className:"nav-heading",children:x.heading},void 0,!1,void 0,this),x.items.map((C)=>Ke.jsxDEV("button",{type:"button",className:"nav-row","data-active":C.id===r,"aria-current":C.id===r?"page":void 0,onClick:()=>k(C.id),children:[Ke.jsxDEV(C.icon,{size:15},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"nav-row-label",children:C.label},void 0,!1,void 0,this),Ke.jsxDEV("kbd",{children:["G ",C.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},C.id,!0,void 0,this))]},x.heading,!0,void 0,this)),Ke.jsxDEV("div",{className:"sidebar-foot micro",children:[Ke.jsxDEV("span",{children:[Ke.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",Ke.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," range"]},void 0,!0,void 0,this),Ke.jsxDEV("span",{children:[Ke.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," then letter to jump"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("main",{className:"shell-panel",children:Ke.jsxDEV("div",{className:"shell-content",children:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function SA(){let[r,i]=vi.useState(!1);return vi.useEffect(()=>{let u=()=>i(window.scrollY>4);return u(),window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),r}function xA(r,i){vi.useEffect(()=>{let u=0,c=(f)=>{if(f.metaKey||f.ctrlKey||f.altKey||f.defaultPrevented)return;let v=f.target;if(v instanceof HTMLElement&&(v.isContentEditable||v.tagName==="INPUT"||v.tagName==="TEXTAREA"||v.tagName==="SELECT"))return;if(document.querySelector('[aria-modal="true"]'))return;let p=f.key.toLowerCase();if(u&&Date.now()-u<1200){u=0;let S=xm.flatMap((k)=>k.items).find((k)=>k.hotkey===p);if(S)f.preventDefault(),r(S.id),window.scrollTo({top:0});return}if(p==="g"){u=Date.now();return}let b=Number(p)-1;if(Number.isInteger(b)&&b>=0&&b<ci.length)f.preventDefault(),i(ci[b])};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[r,i])}var Gn=Y(ut(),1);function Ec(r){let[i,u]=r.replace(/^#\/?/,"").split("?"),c=Yk.includes(i)?i:"overview",f=new URLSearchParams(u??""),v=f.get("range"),p=ci.includes(v??"")?v:"24h";return{section:c,range:p,session:f.get("s")}}function Cm({section:r,range:i,session:u}){let c=u?`&s=${encodeURIComponent(u)}`:"";return`#/${r}?range=${i}${c}`}function lw(){let[r,i]=Gn.useState(()=>Ec(window.location.hash));Gn.useEffect(()=>{let p=()=>i(Ec(window.location.hash));window.addEventListener("hashchange",p),window.addEventListener("popstate",p);let b=Cm(Ec(window.location.hash));if(window.location.hash!==b)history.replaceState(null,"",b);return()=>{window.removeEventListener("hashchange",p),window.removeEventListener("popstate",p)}},[]);let u=Gn.useCallback((p)=>{i(p);let b=Cm(p);if(window.location.hash!==b)history.pushState(null,"",b)},[]),c=Gn.useCallback((p)=>u({...r,section:p,session:p==="traces"?r.session:null}),[r,u]),f=Gn.useCallback((p)=>u({...r,range:p}),[r,u]),v=Gn.useCallback((p)=>u({...r,session:p}),[r,u]);return{...r,setSection:c,setRange:f,setSession:v}}var Tm=Y(ut(),1);var fn=Y(ce(),1);function Oc({items:r,max:i,onSelect:u}){let c=i??Math.max(0,...r.map((f)=>f.value));return fn.jsxDEV("div",{className:"bar-list",children:r.map((f)=>{let v=c>0?Math.max(0.5,f.value/c*100):0,p=fn.jsxDEV(fn.Fragment,{children:[fn.jsxDEV("span",{className:"bar-list-fill",style:{width:`${v}%`,background:f.color??"var(--chart-primary)"}},void 0,!1,void 0,this),fn.jsxDEV("span",{className:"bar-list-label",children:f.label},void 0,!1,void 0,this),fn.jsxDEV("span",{className:"bar-list-value",children:f.display??f.value.toLocaleString()},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u?fn.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>u(f.key),children:p},f.key,!1,void 0,this):fn.jsxDEV("div",{className:"bar-list-row",children:p},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}var Vn=Y(ut(),1);var ct=Y(ce(),1),Js=10,LA=24,CA=68,kA=4;function Cl({slots:r,tickLabel:i,tooltipTitle:u,series:c,kind:f="bars",stacked:v=!0,height:p=220,format:b=Me,formatRight:S,formatTooltip:k,yMax:h,yMaxRight:x,hidden:C,showTotal:R,references:L,onSelect:D,emptyLabel:_="No data in this range",tooltipExtra:z}){let[F,K]=vm(),[N,oe]=Vn.useState(null),B=Vn.useId().replace(/:/g,""),ee=Vn.useMemo(()=>c.filter((V)=>!C?.has(V.key)),[c,C]),Z=Vn.useMemo(()=>{let V=ee.filter((Et)=>Et.axis!=="right"),Pe=ee.filter((Et)=>Et.axis==="right"),Mt=(Et)=>v&&(Et.kind??f)!=="line",pa=new Map,re=Array.from({length:r},()=>0),ma=0;for(let Et of V)if(Mt(Et)){let Ee=re.slice();pa.set(Et.key,Ee);for(let rl=0;rl<r;rl++)re[rl]+=Et.values[rl]??0}else for(let Ee=0;Ee<r;Ee++)ma=Math.max(ma,Et.values[Ee]??0);for(let Et of re)ma=Math.max(ma,Et);let Ia=0;for(let Et of Pe)for(let Ee=0;Ee<r;Ee++)Ia=Math.max(Ia,Et.values[Ee]??0);for(let Et of L??[])if(Et.axis==="right")Ia=Math.max(Ia,Et.value);else ma=Math.max(ma,Et.value);let Kt=nw(h??ma),Yt=Pe.length>0?nw(x??Ia):null,gt=ee.every((Et)=>Et.values.every((Ee)=>!Ee));return{left:V,right:Pe,bases:pa,stackable:Mt,leftScale:Kt,rightScale:Yt,empty:gt}},[ee,r,v,f,h,x,L]),W=Z.leftScale.ticks.map((V)=>b(V)),X=Z.rightScale?.ticks.map((V)=>(S??b)(V))??[],ge=Math.max(28,rw(W)+12),Ne=Z.rightScale?Math.max(28,rw(X)+12):8,Ce=Math.max(0,K-ge-Ne),Be=p-Js-LA,te=r>0?Ce/r:0,ve=(V)=>Js+Be-V/Z.leftScale.max*Be,ke=(V)=>Js+Be-V/(Z.rightScale?.max??1)*Be,je=(V)=>ge+(V+0.5)*te,ae=ee.filter((V)=>(V.kind??f)==="bars"),P=ae.filter((V)=>!Z.stackable(V)||V.axis==="right"),ue=Math.max(1,Math.min(56,te*(te>6?0.72:0.9))),se=Math.max(1,Math.ceil(r/Math.max(1,Math.floor(Ce/CA)))),ne=(V)=>{let Pe=V.currentTarget.getBoundingClientRect(),Mt=Math.floor((V.clientX-Pe.left)/(Pe.width/r));oe(Mt>=0&&Mt<r?Mt:null)},pe=N===null?[]:ee.filter((V)=>V.tooltip!==!1).map((V)=>({s:V,v:V.values[N]})).filter((V)=>V.v!==null&&V.v!==void 0&&(V.v!==0||ee.length===1)).sort((V,Pe)=>ee.length>1?Pe.v-V.v:0),Lt=pe.filter((V)=>V.s.axis!=="right").reduce((V,Pe)=>V+Pe.v,0),Ye=R??(v&&Z.left.length>1);return ct.jsxDEV("div",{className:"chart",ref:F,"data-hovering":N!==null,style:{height:p},children:[K>0&&ct.jsxDEV("svg",{width:K,height:p,role:"img",children:[ct.jsxDEV("defs",{children:ee.filter((V)=>V.pattern==="hatch").map((V)=>ct.jsxDEV("pattern",{id:`${B}-${kb(V.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[ct.jsxDEV("rect",{width:"5",height:"5",fill:V.color,fillOpacity:"0.14"},void 0,!1,void 0,this),ct.jsxDEV("rect",{width:"1.6",height:"5",fill:V.color},void 0,!1,void 0,this)]},V.key,!0,void 0,this))},void 0,!1,void 0,this),ct.jsxDEV("g",{className:"chart-grid",children:Z.leftScale.ticks.map((V)=>ct.jsxDEV("line",{x1:ge,x2:ge+Ce,y1:ve(V),y2:ve(V)},V,!1,void 0,this))},void 0,!1,void 0,this),ct.jsxDEV("g",{className:"chart-axis",children:[Z.leftScale.ticks.map((V,Pe)=>ct.jsxDEV("text",{x:ge-8,y:ve(V),dy:"0.32em",textAnchor:"end",children:W[Pe]},V,!1,void 0,this)),Z.rightScale?.ticks.map((V,Pe)=>ct.jsxDEV("text",{x:ge+Ce+8,y:ke(V),dy:"0.32em",textAnchor:"start",children:X[Pe]},V,!1,void 0,this)),Array.from({length:r},(V,Pe)=>Pe%se===0?ct.jsxDEV("text",{x:je(Pe),y:p-6,textAnchor:"middle",children:i(Pe)},Pe,!1,void 0,this):null)]},void 0,!0,void 0,this),N!==null&&ct.jsxDEV("rect",{className:"chart-cursor",x:ge+N*te,y:Js,width:te,height:Be},void 0,!1,void 0,this),ee.filter((V)=>(V.kind??f)==="area").map((V)=>{let Pe=V.axis==="right"?ke:ve,Mt=Z.bases.get(V.key),pa=(Kt)=>(Mt?.[Kt]??0)+(V.values[Kt]??0),re=sw(r,je,(Kt)=>Pe(pa(Kt))),ma=Array.from({length:r},(Kt,Yt)=>r-1-Yt).map((Kt)=>`L${je(Kt).toFixed(1)},${Pe(Mt?.[Kt]??0).toFixed(1)}`).join(""),Ia=V.pattern==="hatch"?`url(#${B}-${kb(V.key)})`:V.color;return ct.jsxDEV("g",{children:[ct.jsxDEV("path",{d:`${re}${ma}Z`,fill:Ia,fillOpacity:V.pattern?1:0.2},void 0,!1,void 0,this),ct.jsxDEV("path",{className:"chart-line",d:re,stroke:V.color},void 0,!1,void 0,this)]},V.key,!0,void 0,this)}),ae.map((V)=>{let Pe=V.axis==="right"?ke:ve,Mt=Z.bases.get(V.key),pa=P.indexOf(V),re=pa>=0?ue/P.length:ue,ma=V.pattern==="hatch"?`url(#${B}-${kb(V.key)})`:V.color;return ct.jsxDEV("g",{children:V.values.map((Ia,Kt)=>{if(!Ia)return null;let Yt=pa>=0?0:Mt?.[Kt]??0,gt=Pe(Yt),Et=Pe(Yt+Ia),Ee=je(Kt)-ue/2+(pa>=0?pa*re:0);return ct.jsxDEV("rect",{className:"chart-bar","data-hover":N===Kt,x:Ee,y:Math.min(gt,Et),width:Math.max(1,re-(pa>=0&&P.length>1?1:0)),height:Math.max(Ia>0?1:0,Math.abs(gt-Et)),fill:ma},Kt,!1,void 0,this)})},V.key,!1,void 0,this)}),ee.filter((V)=>(V.kind??f)==="line").map((V)=>{let Pe=V.axis==="right"?ke:ve,Mt=(pa)=>{let re=V.values[pa];return re===null||re===void 0?null:Pe(re)};return ct.jsxDEV("g",{children:[ct.jsxDEV("path",{className:"chart-line",d:sw(r,je,Mt),stroke:V.color,strokeDasharray:V.dashed?"4 3":void 0},void 0,!1,void 0,this),V.values.map((pa,re)=>{let ma=Mt(re);if(ma===null||re>0&&Mt(re-1)!==null||re<r-1&&Mt(re+1)!==null)return null;return ct.jsxDEV("circle",{cx:je(re),cy:ma,r:2.5,fill:V.color},re,!1,void 0,this)})]},V.key,!0,void 0,this)}),L?.map((V)=>{let Pe=V.axis==="right"?ke(V.value):ve(V.value);return ct.jsxDEV("g",{className:"chart-axis",children:[ct.jsxDEV("line",{x1:ge,x2:ge+Ce,y1:Pe,y2:Pe,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),V.label&&ct.jsxDEV("text",{x:ge+Ce-4,y:Pe-5,textAnchor:"end",children:V.label},void 0,!1,void 0,this)]},`${V.axis??"left"}:${V.value}`,!0,void 0,this)}),ct.jsxDEV("line",{className:"chart-baseline",x1:ge,x2:ge+Ce,y1:ve(0),y2:ve(0)},void 0,!1,void 0,this),ct.jsxDEV("rect",{x:ge,y:Js,width:Ce,height:Be,fill:"transparent",onPointerMove:ne,onPointerLeave:()=>oe(null),onClick:D&&N!==null?()=>D(N):void 0,style:{cursor:D?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.empty&&ct.jsxDEV("div",{className:"chart-empty",children:_},void 0,!1,void 0,this),N!==null&&!Z.empty&&ct.jsxDEV("div",{className:"chart-tooltip",style:je(N)>K/2?{right:K-je(N)+Math.min(te/2,24)+8,top:Js}:{left:je(N)+Math.min(te/2,24)+8,top:Js},children:[ct.jsxDEV("div",{className:"chart-tooltip-title",children:(u??i)(N)},void 0,!1,void 0,this),pe.map(({s:V,v:Pe})=>ct.jsxDEV("div",{className:"chart-tooltip-row",children:[ct.jsxDEV("span",{className:"swatch",style:{background:V.color}},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-label",children:V.label},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-value",children:V.axis==="right"?(S??b)(Pe):(k??b)(Pe)},void 0,!1,void 0,this)]},V.key,!0,void 0,this)),Ye&&pe.length>1&&ct.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[ct.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-value",children:(k??b)(Lt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z&&ct.jsxDEV(Vn.Fragment,{children:z(N)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function nw(r){if(!(r>0))return{max:1,ticks:[0]};let i=r/kA,u=10**Math.floor(Math.log10(i)),c=[1,2,2.5,5,10].map((p)=>p*u).find((p)=>p>=i)??10*u,f=Math.ceil(r/c)*c,v=[];for(let p=0;p<=f+c/2;p+=c)v.push(Number(p.toPrecision(12)));return{max:f,ticks:v}}function rw(r){return r.reduce((i,u)=>Math.max(i,u.length*6.3),0)}function sw(r,i,u){let c="",f=!1;for(let v=0;v<r;v++){let p=u(v);if(p===null){f=!1;continue}c+=`${f?"L":"M"}${i(v).toFixed(1)},${p.toFixed(1)}`,f=!0}return c}function kb(r){return r.replace(/[^a-zA-Z0-9_-]/g,"_")}var km=Y(ut(),1),pn=Y(ce(),1);function Qa({items:r,hidden:i,onToggle:u}){return pn.jsxDEV("div",{className:"legend",children:r.map((c)=>{let f=pn.jsxDEV(pn.Fragment,{children:[pn.jsxDEV("span",{className:"swatch",style:{background:c.color}},void 0,!1,void 0,this),pn.jsxDEV("span",{className:"truncate",children:c.label},void 0,!1,void 0,this),c.value&&pn.jsxDEV("span",{className:"legend-value",children:c.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u?pn.jsxDEV("button",{type:"button",className:"legend-item","data-off":i?.has(c.key)??!1,onClick:()=>u(c.key),title:c.label,children:f},c.key,!1,void 0,this):pn.jsxDEV("span",{className:"legend-item",title:c.label,children:f},c.key,!1,void 0,this)})},void 0,!1,void 0,this)}function nl(){let[r,i]=km.useState(()=>new Set),u=km.useCallback((c)=>{i((f)=>{let v=new Set(f);if(!v.delete(c))v.add(c);return v})},[]);return[r,u]}var wb=Y(ce(),1);function Qr({segments:r,height:i=8}){let u=r.reduce((c,f)=>c+Math.max(0,f.value),0);return wb.jsxDEV("div",{className:"share-bar",style:{height:i},role:"img",children:u>0&&r.filter((c)=>c.value>0).map((c)=>wb.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:c.value/u,background:c.color},title:`${c.label}: ${(c.value/u*100).toFixed(1)}%`},c.key,!1,void 0,this))},void 0,!1,void 0,this)}var uw=Y(ce(),1);function $n({buckets:r,bucketMs:i,onSelectBucket:u,...c}){return uw.jsxDEV(Cl,{...c,slots:r.length,tickLabel:(f)=>pm(r[f],i),tooltipTitle:(f)=>fm(r[f],i),onSelect:u?(f)=>u(r[f]):void 0},void 0,!1,void 0,this)}var Ha=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],eo="#6c6c74";function ya(r,i){return`${r}::${i}`}function wm(r){return qc(r.map((i)=>({key:ya(i.model,i.provider),weight:i.totalRequests})))}function qc(r){let i=[...r].sort((u,c)=>c.weight-u.weight||u.key.localeCompare(c.key));return new Map(i.map((u,c)=>[u.key,Ha[c%Ha.length]]))}var Oa=Y(ut(),1);var wA=128,TA=1500,eu=new Map,Tb=new Map;function IA(r,i){if(eu.delete(r),eu.set(r,i),eu.size>wA){let u=eu.keys().next().value;if(u!==void 0)eu.delete(u)}}function RA(r,i,u){let c=Tb.get(r);if(c)return c;let f=i().then((v)=>(IA(r,{data:v,updatedAt:Date.now(),version:u}),v)).finally(()=>{Tb.delete(r)});return Tb.set(r,f),f}function qt(r,i,u){let c=JSON.stringify(r),f=u?.enabled??!0,v=u?.pollMs,{version:p}=fi(),[,b]=Oa.useReducer((B)=>B+1,0),[S,k]=Oa.useState(null),[h,x]=Oa.useState(!1),C=Oa.useRef(i);C.current=i;let R=Oa.useRef(c);R.current=c;let L=Oa.useRef(p);L.current=p;let D=Oa.useRef(null),_=Oa.useRef(0),z=Oa.useCallback((B)=>{_.current=Date.now(),x(!0),RA(B,()=>C.current(),L.current).then(()=>{if(R.current!==B)return;Oa.startTransition(()=>{k(null),b()})}).catch((ee)=>{if(R.current!==B)return;k({key:B,error:ee instanceof Error?ee:Error(String(ee))})}).finally(()=>{if(R.current===B)x(!1)})},[]);Oa.useEffect(()=>{if(!f)return;let B=eu.get(c);if(B&&B.version>=p)return;let ee=B?_.current+TA-Date.now():0;if(ee<=0){z(c);return}let Z=setTimeout(()=>z(c),ee);return()=>clearTimeout(Z)},[c,f,p,z]),Oa.useEffect(()=>{if(!f||!v)return;let B=setInterval(()=>{if(!document.hidden)z(R.current)},v);return()=>clearInterval(B)},[f,v,z]);let F=Oa.useCallback(()=>z(R.current),[z]),K=eu.get(c);if(K)D.current={key:c,data:K.data,updatedAt:K.updatedAt};let N=D.current,oe=S?.key===c?S.error:null;return{data:N?.data??null,error:oe,loading:!N&&!oe,stale:!!N&&N.key!==c,refreshing:h,updatedAt:N?.updatedAt??null,refetch:F}}function ba(r,i,u){let c=iw(i),f=Array.from({length:i.length},()=>0);for(let v of r){let p=c.get(v.timestamp);if(p!==void 0)f[p]+=u(v)}return f}function mn(r,i){let u=iw(i.buckets),c=new Map;for(let k of r){let h=u.get(k.timestamp);if(h===void 0)continue;let x=i.key(k),C=c.get(x);if(!C)C=Array.from({length:i.buckets.length},()=>0),c.set(x,C);C[h]+=i.value(k)}let f=[...c.entries()].map(([k,h])=>({key:k,values:h,total:h.reduce((x,C)=>x+C,0)})).filter((k)=>k.total!==0).sort((k,h)=>h.total-k.total||k.key.localeCompare(h.key)),v=i.limit??Number.POSITIVE_INFINITY,p=f.slice(0,v),b=f.slice(v),S=p.map((k,h)=>({key:k.key,label:i.label?i.label(k.key):k.key,color:i.colors?.get(k.key)??Ha[h%Ha.length],values:k.values}));if(b.length>0){let k=Array.from({length:i.buckets.length},()=>0);for(let h of b)for(let x=0;x<k.length;x++)k[x]+=h.values[x];S.push({key:"__other__",label:`Other (${b.length})`,color:eo,values:k})}return S}function iw(r){let i=new Map;for(let u=0;u<r.length;u++)i.set(r[u],u);return i}var MA=["main","subagent","advisor"];function Zr(r){return r.totalInputTokens+r.totalOutputTokens+r.totalCacheReadTokens+r.totalCacheWriteTokens}function fw(r){let i=new Map;for(let p of r)i.set(p.agentType,p);let u=MA.map((p)=>i.get(p)).filter((p)=>p!==void 0),c=u.reduce((p,b)=>p+Zr(b),0),f=u.reduce((p,b)=>p+b.totalCost,0),v=u.map((p)=>{let b=Zr(p);return{agentType:p.agentType,tokens:b,requests:p.totalRequests,cost:p.totalCost,share:c>0?b/c:0}});return{totalTokens:c,totalCost:f,segments:v}}function pw(r){let i={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(r.map((f)=>f.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},u=new Map;for(let f of r){let v=ya(f.model,f.provider),p=u.get(v);if(!p)p={key:v,model:f.model,provider:f.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},u.set(v,p);dw(p,f),dw(i,f),p.cost+=f.cost,i.totalCost+=f.cost}i.avgDailyCost=i.activeDays>0?i.totalCost/i.activeDays:0,i.models=[...u.values()].sort((f,v)=>v.cost-f.cost||v.requests-f.requests||f.key.localeCompare(v.key));for(let f of i.models)f.share=i.totalCost>0?f.cost/i.totalCost:0;let c=i.models[0];return i.topModel=c!==void 0&&c.cost>0?c:null,i}function dw(r,i){r.costInput+=i.costInput,r.costOutput+=i.costOutput,r.costCacheRead+=i.costCacheRead,r.costCacheWrite+=i.costCacheWrite,r.requests+=i.requests,r.unpricedRequests+=i.unpricedRequests}function mw(r){let i=new Map;for(let u of r){let c=ya(u.model,u.provider),f=i.get(c);if(!f)f=[],i.set(c,f);f.push({timestamp:u.timestamp,avgTtftSeconds:u.avgTtft!==null?u.avgTtft/1000:null,avgTokensPerSecond:u.avgTokensPerSecond,requests:u.requests})}for(let u of i.values())u.sort((c,f)=>c.timestamp-f.timestamp);return i}var AA=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function hw(r){let i=0,u=0,c=0,f=0,v=0,p=0,b=0,S=0,k=0;for(let C of r){if(i+=C.totalRequests,u+=C.failedRequests,c+=C.totalCost,f+=C.unpricedRequests,v+=C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,p+=C.totalInputTokens,b+=C.totalCacheReadTokens,C.totalRequests>S)S=C.totalRequests;if(C.totalCost>k)k=C.totalCost}let h=0;return{rows:r.map((C)=>{let R=AA.test(C.folder);if(R)h++;return{...C,conversationTokens:C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,requestShare:i>0?C.totalRequests/i:0,costShare:c>0?C.totalCost/c:0,temporary:R}}),totalRequests:i,failedRequests:u,totalCost:c,unpricedRequests:f,conversationTokens:v,cacheRate:p+b>0?b/(p+b):0,maxRequests:S,maxCost:k,temporaryCount:h}}function gw(r){let i=0,u=0,c=0;for(let f of r)i+=f.calls,u+=f.totalTokensShare,c+=f.costShare;return r.map((f)=>({...f,errorRate:f.calls>0?f.errors/f.calls:0,callFraction:i>0?f.calls/i:0,tokenFraction:u>0?f.totalTokensShare/u:0,costFraction:c>0?f.costShare/c:0,avgResultChars:f.calls>0?f.resultChars/f.calls:0}))}function Xn(r){if(r.stopReason==="aborted")return"aborted";if(r.stopReason==="error"||r.errorMessage)return"failed";return"ok"}function Ib(r,i){if(r.length===0)return null;return r[Math.min(r.length-1,Math.max(0,Math.ceil(i*r.length)-1))]}function yw(r){let i=0,u=0,c=0,f=0,v=0,p=null,b=null,S=[],k=[];for(let h of r){let x=Xn(h);if(x==="failed")i++;else if(x==="aborted")u++;if(c+=h.usage.totalTokens,f+=h.usage.cost.total,bb(h))v++;if(h.duration!==null)S.push(h.duration);if(h.ttft!==null)k.push(h.ttft);if(p===null||h.timestamp<p)p=h.timestamp;if(b===null||h.timestamp>b)b=h.timestamp}return S.sort((h,x)=>h-x),k.sort((h,x)=>h-x),{requests:r.length,failed:i,aborted:u,tokens:c,cost:f,unpriced:v,medianDuration:Ib(S,0.5),p95Duration:Ib(S,0.95),medianTtft:Ib(k,0.5),oldest:p,newest:b}}var cw=180,DA=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,EA=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,OA=/\b[0-9a-f]{12,}\b/gi,qA=/(?<![\w.-])\d+(?:\.\d+)?/g,BA=/^[1-5]\d\d$/;function Rb(r){if(!r?.trim())return"Unknown error";let i=r.replace(/\s+/g," ").trim().replace(DA,"<id>").replace(EA,"<id>").replace(OA,"<hex>").replace(qA,(u)=>BA.test(u)?u:"N");return i.length>cw?`${i.slice(0,cw-1)}…`:i}function bw(r){let i=new Map;for(let u of r){let c=Rb(u.errorMessage),f=i.get(c);if(!f)f={signature:c,count:0,firstSeen:u.timestamp,lastSeen:u.timestamp,latest:u,models:[],byModel:new Map},i.set(c,f);if(f.count++,u.timestamp<f.firstSeen)f.firstSeen=u.timestamp;if(u.timestamp>f.lastSeen)f.lastSeen=u.timestamp,f.latest=u;let v=ya(u.model,u.provider),p=f.byModel.get(v);if(p)p.count++;else f.byModel.set(v,{model:u.model,provider:u.provider,count:1})}return[...i.values()].map(({byModel:u,...c})=>({...c,models:[...u.values()].sort((f,v)=>v.count-f.count||f.model.localeCompare(v.model))})).sort((u,c)=>c.count-u.count||c.lastSeen-u.lastSeen)}var Ae=Y(ce(),1),NA=[{value:"model",label:"By model"},{value:"component",label:"By component"}],UA=6,PA=86400000,Bc=[{key:"costInput",label:"Input",color:"#5b8cff"},{key:"costOutput",label:"Output",color:"var(--chart-secondary)"},{key:"costCacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"costCacheWrite",label:"Cache write",color:"#f5b54a"}],zA=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),_A=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function vw({active:r,range:i}){let u=qt(["costs",i],()=>wk(i),{enabled:r}),c=na(i),[f,v]=Tm.useState("model"),[p,b]=nl(),S=Tm.useMemo(()=>u.data?HA(u.data,i):null,[u.data,i]),k=(x)=>x.costSeries.length===0,h=Ae.jsxDEV(mt,{title:"No usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Ae.jsxDEV("div",{className:"page",children:[Ae.jsxDEV(ta,{title:"Costs",description:`What ${c.windowLabel} of usage would cost at public API rates. Subscription usage without a public price is counted as unpriced, not free.`},void 0,!1,void 0,this),Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(Ea,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Ae.jsxDEV(FA,{view:S,stale:u.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae.jsxDEV("div",{className:"grid grid-main-side",children:[Ae.jsxDEV(Ve,{index:1,title:"Daily estimate",description:f==="model"?"Per UTC day, stacked by model":"Per UTC day, stacked by billing component",actions:Ae.jsxDEV(za,{size:"sm",options:NA,value:f,onChange:v,"aria-label":"Split by"},void 0,!1,void 0,this),stale:u.stale,children:Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(Tt,{height:280},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>{if(!S)return null;let x=f==="model"?S.modelSeries:S.componentSeries;return Ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[Ae.jsxDEV(Cl,{slots:S.buckets.length,tickLabel:(C)=>zA.format(S.buckets[C]),tooltipTitle:(C)=>_A.format(S.buckets[C]),series:x,hidden:p,height:280,format:(C)=>ua(C,Number.isInteger(C)?0:2),formatTooltip:(C)=>ua(C),emptyLabel:"No priced usage in this range",tooltipExtra:(C)=>S.unpricedPerDay[C]>0?Ae.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Ae.jsxDEV("span",{className:"chart-tooltip-label",children:"Unpriced requests"},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"chart-tooltip-value",children:q(S.unpricedPerDay[C])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),Ae.jsxDEV(Qa,{items:x.map((C)=>({key:C.key,label:C.label,color:C.color,value:ua($A(C.values))})),hidden:p,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae.jsxDEV(Ve,{index:2,title:"Where it went",description:"Estimate by billing component",stale:u.stale,children:Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(Tt,{height:280},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Ae.jsxDEV(GA,{summary:S.summary},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae.jsxDEV(Ve,{index:3,title:"By model",description:"Estimate per model with its input, output and cache split",stale:u.stale,flush:!0,children:Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Ae.jsxDEV(zt,{rows:S.summary.models,rowKey:(x)=>x.key,columns:VA(S),initialSort:{key:"cost",dir:"desc"},limit:20},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function HA(r,i){let u=r.costSeries,c=pw(u),f=wm(c.models.map((k)=>({model:k.model,provider:k.provider,totalRequests:k.requests}))),v=new Map(c.models.map((k)=>[k.key,k])),p=Po(i,u.map((k)=>k.timestamp),PA),b=mn(u,{buckets:p,key:(k)=>ya(k.model,k.provider),label:(k)=>v.get(k)?.model??k,value:(k)=>k.cost,limit:UA,colors:f}).map((k)=>({...k,values:k.values.map((h)=>h||null)})),S=new Set;for(let k of b){if(k.key==="__other__")continue;if(S.has(k.color))k.color=Ha.find((h)=>!S.has(h))??k.color;S.add(k.color)}return{summary:c,swatches:new Map(b.filter((k)=>k.key!=="__other__").map((k)=>[k.key,k.color])),buckets:p,dailyTotals:ba(u,p,(k)=>k.cost),unpricedPerDay:ba(u,p,(k)=>k.unpricedRequests),modelSeries:b,componentSeries:Bc.map((k)=>({key:k.key,label:k.label,color:k.color,values:ba(u,p,(h)=>h[k.key]).map((h)=>h||null)})),maxModelCost:c.models[0]?.cost??0}}function FA({view:r,stale:i}){let{summary:u}=r,c=u.requests-u.unpricedRequests,f=u.topModel;return Ae.jsxDEV("div",{"data-stale":i,children:Ae.jsxDEV(aa,{min:180,children:[Ae.jsxDEV(fe,{label:"API-equivalent estimate",title:"What this usage would cost at public API rates",value:Ot(u.totalCost,u.unpricedRequests),hint:`${q(u.requests)} requests`,spark:r.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Average per day",title:"Estimate ÷ days with any usage",value:Ot(u.avgDailyCost,u.unpricedRequests),hint:`over ${q(u.activeDays)} active day${u.activeDays===1?"":"s"}`},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Top model",title:f?`${f.model} (${f.provider})`:void 0,value:f?f.model:"–",hint:f?`${ua(f.cost)} · ${Re(f.share)} of estimate`:"Nothing priced yet"},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Per priced request",title:"Estimate ÷ requests that have a public price",value:c>0?Sw(u.totalCost/c):"–",hint:`${q(c)} priced`},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Unpriced requests",title:"Subscription usage with no public-equivalent price; excluded from the estimate",value:q(u.unpricedRequests),hint:u.unpricedRequests>0?"excluded from the estimate":"all usage priced"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function GA({summary:r}){return Ae.jsxDEV("div",{className:"stack",style:{gap:14},children:[Ae.jsxDEV(Qr,{height:10,segments:Bc.map((i)=>({key:i.key,label:i.label,value:r[i.key],color:i.color}))},void 0,!1,void 0,this),Ae.jsxDEV("div",{className:"costs-components",children:[Bc.map((i)=>Ae.jsxDEV("div",{className:"costs-component-row",children:[Ae.jsxDEV("span",{className:"row",children:[Ae.jsxDEV(Sl,{color:i.color},void 0,!1,void 0,this),i.label]},void 0,!0,void 0,this),Ae.jsxDEV("span",{className:"num",children:ua(r[i.key])},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"num dim costs-component-share",children:r.totalCost>0?Re(r[i.key]/r.totalCost):"–"},void 0,!1,void 0,this)]},i.key,!0,void 0,this)),Ae.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[Ae.jsxDEV("span",{children:"Total"},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"num",children:Ot(r.totalCost,r.unpricedRequests)},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r.unpricedRequests>0&&Ae.jsxDEV("p",{className:"micro dim",children:[q(r.unpricedRequests)," unpriced subscription request",r.unpricedRequests===1?" is":"s are"," not included."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function VA(r){let i=Bc.map((u)=>({key:u.key,header:u.label,align:"right",sort:(c)=>c[u.key],render:(c)=>Ae.jsxDEV("span",{className:"num",children:ua(c[u.key])},void 0,!1,void 0,this)}));return[{key:"model",header:"Model",sort:(u)=>u.model,render:(u)=>Ae.jsxDEV(_a,{lead:Ae.jsxDEV(Sl,{color:r.swatches.get(u.key)??eo},void 0,!1,void 0,this),primary:Ae.jsxDEV("span",{className:"mono",children:u.model},void 0,!1,void 0,this),secondary:u.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(u)=>u.requests,render:(u)=>Ae.jsxDEV("span",{className:"num",children:q(u.requests)},void 0,!1,void 0,this)},{key:"cost",header:"Estimate",title:"API-equivalent estimate at public rates",align:"right",sort:(u)=>u.cost,render:(u)=>Ae.jsxDEV(sa,{value:u.cost,max:r.maxModelCost,display:Ot(u.cost,u.unpricedRequests),color:r.swatches.get(u.key)??eo},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(u)=>u.share,render:(u)=>Ae.jsxDEV("span",{className:"num muted",children:u.cost>0?Re(u.share):"–"},void 0,!1,void 0,this)},{key:"split",header:"Split",title:"Input · output · cache read · cache write",width:150,render:(u)=>u.cost>0?Ae.jsxDEV(Qr,{segments:Bc.map((c)=>({key:c.key,label:c.label,value:u[c.key],color:c.color}))},void 0,!1,void 0,this):Ae.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...i,{key:"perRequest",header:"Per request",title:"Estimate ÷ priced requests",align:"right",sort:(u)=>u.requests>u.unpricedRequests?u.cost/(u.requests-u.unpricedRequests):-1,render:(u)=>Ae.jsxDEV("span",{className:"num",children:u.requests>u.unpricedRequests?Sw(u.cost/(u.requests-u.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:"Unpriced",title:"Requests with no public-equivalent price",align:"right",sort:(u)=>u.unpricedRequests,render:(u)=>u.unpricedRequests>0?Ae.jsxDEV("span",{className:"num tone-warn",children:q(u.unpricedRequests)},void 0,!1,void 0,this):Ae.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function Sw(r){return r>0&&r<0.0001?"<$0.0001":ua(r)}function $A(r){let i=0;for(let u of r)i+=u??0;return i}var jn=Y(ut(),1);var Se=Y(ce(),1),Mb=[50,200,1000];function xw({active:r,range:i,onRequestClick:u}){let[c,f]=jn.useState(0),v=Mb[c],p=qt(["errors",i,v],()=>Tk(i,v),{enabled:r}),[b,S]=jn.useState(null),[k,h]=jn.useState(null),[x,C]=jn.useState(""),R=na(i),L=jn.useMemo(()=>{let W=(p.data??[]).map((Be)=>({row:Be,signature:Rb(Be.errorMessage)})),X=bw(p.data??[]),ge=new Map;for(let{row:Be}of W){let te=ya(Be.model,Be.provider),ve=ge.get(te);if(ve)ve.count++;else ge.set(te,{model:Be.model,provider:Be.provider,count:1})}let Ne=[...ge.entries()].map(([Be,te])=>({key:Be,...te})).sort((Be,te)=>te.count-Be.count||Be.model.localeCompare(te.model)),Ce=W.reduce((Be,{row:te})=>!Be||te.timestamp>Be.timestamp?te:Be,null);return{rows:W,groups:X,models:Ne,newest:Ce}},[p.data]),D=L.groups.some((W)=>W.signature===b)?b:null,_=L.models.some((W)=>W.key===k)?k:null,z=jn.useMemo(()=>{let W=x.trim().toLowerCase();return L.rows.filter((X)=>(D===null||X.signature===D)&&(_===null||ya(X.row.model,X.row.provider)===_)&&(W===""||X.row.model.toLowerCase().includes(W)||X.row.provider.toLowerCase().includes(W)||X.row.folder.toLowerCase().includes(W)||(X.row.errorMessage??"").toLowerCase().includes(W))).map((X)=>X.row)},[L.rows,D,_,x]),F=p.data?.length??0,K=!p.stale&&F<v,N=c+1<Mb.length?Mb[c+1]:null,oe=p.data!==null&&!K?Se.jsxDEV(Se.Fragment,{children:[Se.jsxDEV("span",{children:["Showing the latest ",q(F)," failures in ",R.windowLabel,"; older ones are not loaded."]},void 0,!0,void 0,this),N!==null&&Se.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:p.refreshing,onClick:()=>f(c+1),children:p.refreshing&&p.stale?"Loading…":`Load latest ${q(N)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,B=L.groups[0]?.count??0,ee=jn.useMemo(()=>XA(B),[B]),Z=L.models.find((W)=>W.key===_);return Se.jsxDEV("div",{className:"page",children:[Se.jsxDEV(ta,{title:"Errors",description:`Failed model requests in ${R.windowLabel}, grouped by error signature. Open a failure for its full payload.`},void 0,!1,void 0,this),Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(Ea,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Se.jsxDEV("div",{"data-stale":p.stale,children:Se.jsxDEV(aa,{min:170,children:[Se.jsxDEV(fe,{label:"Failures",value:q(F),hint:K?`in ${R.windowLabel}`:`latest ${q(F)} loaded`},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Signatures",title:"Distinct error messages after normalizing ids and numbers",value:q(L.groups.length),hint:L.groups[0]?`top: ${q(L.groups[0].count)} failures`:void 0},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Affected models",value:q(L.models.length),hint:L.models[0]?.model},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Last failure",value:L.newest?ia(L.newest.timestamp):"–",hint:L.newest?ll(L.newest.timestamp):`none in ${R.windowLabel}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se.jsxDEV("div",{className:"grid grid-main-side",children:[Se.jsxDEV(Ve,{index:1,title:"Error signatures",description:"Same message with ids and counters normalized. Select one to filter the failures below.",flush:!0,stale:p.stale,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:`No failures in ${R.windowLabel}`,hint:"Every request succeeded or was aborted."},void 0,!1,void 0,this),children:()=>Se.jsxDEV(zt,{rows:L.groups,rowKey:(W)=>W.signature,columns:ee,onRowClick:(W)=>S(D===W.signature?null:W.signature),selectedKey:D,expanded:(W)=>W.signature===D?Se.jsxDEV(jA,{group:W,onRequestClick:u},void 0,!1,void 0,this):null,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se.jsxDEV(Ve,{index:2,title:"By model",description:"Failures per model. Select one to filter.",stale:p.stale,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(Ea,{height:180},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:"No affected models"},void 0,!1,void 0,this),children:()=>Se.jsxDEV(Oc,{items:L.models.slice(0,12).map((W)=>({key:W.key,label:Se.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[Se.jsxDEV("span",{className:"mono truncate",children:W.model},void 0,!1,void 0,this),Se.jsxDEV("span",{className:"dim truncate",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:W.count,color:W.key===_?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(W)=>h(_===W?null:W)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV(Ve,{index:3,title:"Failures",description:p.data===null?"Loading failures…":`${q(z.length)} of ${q(F)} failures, newest first`,actions:Se.jsxDEV(Se.Fragment,{children:[D!==null&&Se.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>S(null),title:D,children:[Se.jsxDEV("span",{className:"mono truncate",children:D},void 0,!1,void 0,this),Se.jsxDEV(al,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z&&Se.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>h(null),children:[Se.jsxDEV("span",{className:"mono truncate",children:Z.model},void 0,!1,void 0,this),Se.jsxDEV(al,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV(un,{value:x,onChange:C,placeholder:"Message, model or project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:p.stale,footer:oe,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:`No failures in ${R.windowLabel}`},void 0,!1,void 0,this),children:()=>Se.jsxDEV(zt,{rows:z,rowKey:(W)=>W.id??`${W.sessionFile}:${W.entryId}`,onRowClick:(W)=>W.id!==void 0&&u(W.id),columns:YA,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:Se.jsxDEV(mt,{title:"No failures match",hint:"Clear the search or the selected filters."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function XA(r){return[{key:"signature",header:"Signature",wrap:!0,sort:(i)=>i.signature,render:(i)=>Se.jsxDEV("span",{className:"errors-signature",title:i.latest.errorMessage??void 0,children:i.signature},void 0,!1,void 0,this)},{key:"models",header:"Models",sort:(i)=>i.models.length,render:(i)=>Se.jsxDEV(_a,{primary:Se.jsxDEV("span",{className:"mono",children:i.models[0]?.model},void 0,!1,void 0,this),secondary:i.models.length>1?`+${i.models.length-1} more`:i.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:"Last seen",sort:(i)=>i.lastSeen,render:(i)=>Se.jsxDEV("span",{className:"muted",title:ll(i.lastSeen),children:ia(i.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:"Failures",align:"right",width:120,sort:(i)=>i.count,render:(i)=>Se.jsxDEV(sa,{value:i.count,max:r,display:q(i.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function jA({group:r,onRequestClick:i}){let u=r.latest.id;return Se.jsxDEV("div",{className:"errors-detail",children:[Se.jsxDEV("pre",{className:"code-block errors-detail-message",children:r.latest.errorMessage??"Unknown error"},void 0,!1,void 0,this),Se.jsxDEV("div",{className:"errors-detail-meta",children:[Se.jsxDEV("span",{className:"muted",children:[q(r.count)," failures · first ",ll(r.firstSeen)," · last"," ",ll(r.lastSeen)]},void 0,!0,void 0,this),u!==void 0&&Se.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>i(u),children:["Open latest ",Se.jsxDEV(pc,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV("div",{className:"errors-detail-models",children:r.models.map((c)=>Se.jsxDEV("span",{className:"badge","data-mono":"true",children:[c.model," ",Se.jsxDEV("span",{className:"dim",children:c.provider},void 0,!1,void 0,this)," ",Se.jsxDEV("span",{className:"num",children:Me(c.count)},void 0,!1,void 0,this)]},ya(c.model,c.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var YA=[{key:"time",header:"When",width:120,sort:(r)=>r.timestamp,render:(r)=>Se.jsxDEV("span",{className:"muted",title:ll(r.timestamp),children:ia(r.timestamp)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>Se.jsxDEV(_a,{primary:Se.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"error",header:"Error",sort:(r)=>r.errorMessage??"",render:(r)=>Se.jsxDEV("span",{className:"errors-message",title:r.errorMessage??void 0,children:r.errorMessage??"Unknown error"},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>Se.jsxDEV("span",{className:"mono muted",title:r.folder,children:cn(r.folder)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",sort:(r)=>r.usage.totalTokens,render:(r)=>Se.jsxDEV("span",{className:"num",children:q(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Se.jsxDEV("span",{className:"num",children:Yr(r,4)},void 0,!1,void 0,this)}];var It=Y(ut(),1);var j=Y(ce(),1),QA=1000,Im=50,Db=0.5,Nc="*";function Cw({active:r,range:i}){let[u,c]=It.useState(!1),f=qt(["frustration",i],()=>Mk(i),{enabled:r,pollMs:u?QA:void 0}),v=na(i),p=f.data?.job.state;It.useEffect(()=>{if(p!==void 0)c(p==="running")},[p]);let{refetch:b}=f,S=It.useCallback(()=>{c(!0),b()},[b]);return j.jsxDEV("div",{className:"page",children:[j.jsxDEV(ta,{title:"Frustration",description:`How often your messages sound annoyed, per model version, in ${v.windowLabel}.`},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),children:(k)=>j.jsxDEV("div",{"data-stale":f.stale,children:j.jsxDEV(ZA,{overall:k.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Tt,{height:120},void 0,!1,void 0,this),children:(k)=>j.jsxDEV(WA,{active:r,range:i,judgeAvailable:k.judgeAvailable,job:k.job,onRunStarted:S,onRunChanged:b},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Ve,{index:2,title:"Frustration by model version",children:[j.jsxDEV(Tt,{height:340},void 0,!1,void 0,this),j.jsxDEV(ra,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(k)=>j.jsxDEV(s2,{models:k.byModel,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function kl(r,i){return i>0?Re(r/i):"–"}function Ab(r){return r instanceof Error?r.message:String(r)}function kw(r){let i=Math.max(0,Math.floor(r/1000)),u=Math.floor(i/60),c=i%60;return u>0?`${u}m ${String(c).padStart(2,"0")}s`:`${c}s`}function ZA({overall:r}){let i=r.messages-r.judged;return j.jsxDEV(aa,{min:170,children:[j.jsxDEV(fe,{label:"User messages",title:"User messages with prose in range",value:q(r.messages)},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Judge coverage",title:"Messages with a cached judge verdict; the rest use regex signals",value:kl(r.judged,r.messages),hint:`${q(r.judged)} judged · ${q(i)} regex`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Annoyed",title:"Messages annoyed at any target",value:kl(r.annoyed,r.messages),hint:`${q(r.annoyed)} messages`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"At assistant",title:"Messages annoyed at the assistant",value:kl(r.atAssistant,r.messages),hint:`${q(r.atAssistant)} messages`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Angry",title:"Messages angry or hostile toward the assistant",value:kl(r.angry,r.messages),hint:`${q(r.angry)} messages`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Lw="Judging needs the omp host process: open the dashboard with omp stats and configure a judge model. Until then messages are classified by regex signals.";function WA({active:r,range:i,judgeAvailable:u,job:c,onRunStarted:f,onRunChanged:v}){let[p,b]=It.useState(!1),[S,k]=It.useState({status:"loading"}),[h,x]=It.useState(!1),[C,R]=It.useState(null),[L,D]=It.useState(!1),[_,z]=It.useState(null),F=It.useRef(null),K=c.state==="running",N=It.useCallback(()=>{F.current?.abort(),F.current=null,b(!1)},[]);It.useEffect(()=>{if(!r)N()},[r,N]),It.useEffect(()=>()=>F.current?.abort(),[]);let oe=()=>{F.current?.abort();let X=new AbortController;F.current=X;let ge=i;k({status:"loading"}),R(null),z(null),b(!0),Ak(ge,X.signal).then((Ne)=>{if(!X.signal.aborted)k({status:"ready",estimate:Ne,range:ge})},(Ne)=>{if(!X.signal.aborted)k({status:"error",message:Ab(Ne)})})},B=async()=>{if(S.status!=="ready")return;x(!0),R(null);try{await Dk(S.range),N(),f()}catch(X){R(Ab(X))}finally{x(!1)}},ee=async()=>{D(!0),z(null);try{await Ek(),v()}catch(X){z(Ab(X))}finally{D(!1)}},Z=S.status==="ready"?S.estimate:null,W=S.status==="loading"?{label:"Proceed",onClick:B,disabled:!0}:Z?.available?{label:h?"Starting…":"Proceed",onClick:B,disabled:h||Z.messages===0}:void 0;return j.jsxDEV(Ve,{index:1,title:j.jsxDEV(j.Fragment,{children:["Judge classification ",j.jsxDEV(KA,{job:c,judgeAvailable:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:"Cached LLM verdicts replace the regex heuristics; unjudged messages fall back to regex signals.",actions:j.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:oe,disabled:!u||K,title:!u?Lw:K?"A judge run is in progress":"Quote the cost of judging every unjudged message in range",children:[j.jsxDEV(on,{size:13},void 0,!1,void 0,this)," Classify with judge"]},void 0,!0,void 0,this),children:[j.jsxDEV("div",{className:"stack frustration-judge",children:[K?j.jsxDEV(e2,{job:c,cancelling:L,onCancel:ee},void 0,!1,void 0,this):j.jsxDEV(t2,{job:c},void 0,!1,void 0,this),!u&&j.jsxDEV("p",{className:"micro dim",children:Lw},void 0,!1,void 0,this),_&&j.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(Xk,{open:p,title:"Classify with judge",onClose:N,primaryAction:W,children:[j.jsxDEV(JA,{estimate:S},void 0,!1,void 0,this),C&&j.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function KA({job:r,judgeAvailable:i}){switch(r.state){case"running":return j.jsxDEV(wt,{tone:"ok",children:[j.jsxDEV(rn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Running"]},void 0,!0,void 0,this);case"done":return j.jsxDEV(wt,{tone:"ok",children:"Last run done"},void 0,!1,void 0,this);case"cancelled":return j.jsxDEV(wt,{tone:"warn",children:"Last run cancelled"},void 0,!1,void 0,this);case"failed":return j.jsxDEV(wt,{tone:"bad",children:"Last run failed"},void 0,!1,void 0,this);case"idle":return j.jsxDEV(wt,{children:i?"Not run yet":"Regex only"},void 0,!1,void 0,this)}}function JA({estimate:r}){if(r.status==="loading")return j.jsxDEV("p",{className:"muted",children:"Estimating cost…"},void 0,!1,void 0,this);if(r.status==="error")return j.jsxDEV("p",{className:"tone-bad",children:r.message},void 0,!1,void 0,this);let i=r.estimate;if(!i.available)return j.jsxDEV("p",{children:i.reason},void 0,!1,void 0,this);if(i.messages===0)return j.jsxDEV("p",{children:"Everything in this range is already judged. There is nothing left to classify."},void 0,!1,void 0,this);return j.jsxDEV(j.Fragment,{children:[j.jsxDEV("div",{className:"frustration-quote",children:[j.jsxDEV("span",{className:"dim micro",children:"Estimated cost"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",ua(i.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(_o,{items:[{key:"messages",label:"Unjudged unique messages",value:q(i.messages)},{key:"chars",label:"Prose characters",value:q(i.chars)},{key:"tokens",label:"Estimated input tokens",value:q(i.inputTokens)},{key:"judge",label:"Judge",value:i.judge}]},void 0,!1,void 0,this),j.jsxDEV("p",{className:"micro dim",children:"Identical messages share one verdict, and verdicts are cached, so later runs only pay for new messages. Nothing is spent until you proceed."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function e2({job:r,cancelling:i,onCancel:u}){let c=r.done+r.failed,f=r.total>0?Math.min(1,c/r.total):0;return j.jsxDEV("div",{className:"stack frustration-progress",children:[j.jsxDEV("div",{className:"row frustration-progress-head",children:[j.jsxDEV("span",{className:"num",children:[q(r.done),"/",q(r.total)," judged"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"num dim",children:Re(f)},void 0,!1,void 0,this),j.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),j.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:u,disabled:i,children:i?"Cancelling…":"Cancel run"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":r.total,"aria-valuenow":c,children:j.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${f*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[j.jsxDEV("span",{className:r.failed>0?"tone-bad":void 0,children:[q(r.failed)," failed"]},void 0,!0,void 0,this),j.jsxDEV("span",{children:["cost so far ",j.jsxDEV("span",{className:"num",children:ua(r.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.judge&&j.jsxDEV("span",{className:"mono",children:r.judge},void 0,!1,void 0,this),r.startedAt!==null&&j.jsxDEV("span",{children:["elapsed ",kw(Date.now()-r.startedAt)]},void 0,!0,void 0,this),r.startedAt!==null&&r.done>0&&j.jsxDEV("span",{className:"num",children:[(r.done/Math.max(1,(Date.now()-r.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),r.concurrency>0&&j.jsxDEV("span",{className:"num",children:[q(r.concurrency)," in flight"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function t2({job:r}){let i=`${q(r.done)}/${q(r.total)} messages`,u=r.failed>0?`, ${q(r.failed)} failed`:"",c=r.judge?` with ${r.judge}`:"",f=r.startedAt!==null&&r.finishedAt!==null?` in ${kw(r.finishedAt-r.startedAt)}`:"";switch(r.state){case"idle":return j.jsxDEV("p",{className:"muted",children:"No judge run yet. Classify the unjudged messages to replace regex estimates with verdicts."},void 0,!1,void 0,this);case"running":return null;case"done":return j.jsxDEV("p",{className:"muted",children:["Last run judged ",i,u,c,f," for ",j.jsxDEV("span",{className:"num",children:ua(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"cancelled":return j.jsxDEV("p",{className:"muted",children:["Last run cancelled after ",i,u,"; spent ",j.jsxDEV("span",{className:"num",children:ua(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"failed":return j.jsxDEV("p",{className:"muted",children:["Last run failed after ",i,u,": ",j.jsxDEV("span",{className:"tone-bad",children:r.error??"unknown error"},void 0,!1,void 0,this),". Spent"," ",j.jsxDEV("span",{className:"num",children:ua(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this)}}function Pc(r){return`${r.modelClass}/${r.family??"unclassified"}`}function Si(r){return r.messages>0&&r.judged/r.messages<Db}function a2(r){let i=2166136261;for(let u=0;u<r.length;u++)i^=r.charCodeAt(u),i=Math.imul(i,16777619);return i>>>0}function o2(r){let i=[...new Set(r.map(Pc))].sort(),u=new Set,c=new Map;for(let f of i){let v=a2(f)%Ha.length;for(let p=0;p<Ha.length&&u.has(v);p++)v=(v+1)%Ha.length;u.add(v),c.set(f,Ha[v])}return c}function l2(r,i){if(i==="angry")return`color-mix(in srgb, ${r} 55%, black)`;if(i==="other")return`color-mix(in srgb, ${r} 32%, transparent)`;return r}var n2=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function r2(r,i){if(i==="angry")return r.angry;if(i==="assistant")return r.atAssistant-r.angry;return r.annoyed-r.atAssistant}function Uc(r,i){return i>0?r/i*100:0}function s2({models:r,stale:i}){let[u,c]=It.useState(null),[f,v]=nl(),[p,b]=It.useState(!1),[S,k]=It.useState(!1),h=It.useMemo(()=>o2(r),[r]),x=It.useMemo(()=>{let B=new Map;for(let ee of r)B.set(ee.modelClass,(B.get(ee.modelClass)??0)+ee.messages);return B},[r]),C=It.useMemo(()=>{let B=null,ee=-1;for(let[Z,W]of x)if(W>ee)B=Z,ee=W;return B??Nc},[x]),R=u!==null&&(u===Nc||x.has(u))?u:C,L=It.useMemo(()=>[{value:Nc,label:"All",title:"Every model class"},...[...x].map(([B,ee])=>({value:B,label:B,title:`${q(ee)} messages`}))],[x]),D=It.useMemo(()=>R===Nc?r:r.filter((B)=>B.modelClass===R),[r,R]),_=It.useMemo(()=>{let B=new Map;for(let ee of D){let Z=Pc(ee),W=B.get(Z);if(W){W.messages+=ee.messages;continue}let X=ee.family??"unclassified";B.set(Z,{key:Z,label:R===Nc?`${ee.modelClass} · ${X}`:X,messages:ee.messages})}return[...B.values()]},[D,R]),z=It.useMemo(()=>D.filter((B)=>!f.has(Pc(B))),[D,f]),F=z.filter((B)=>B.messages<Im).length,K=z.filter(Si).length,N=It.useMemo(()=>z.filter((B)=>(p||B.messages>=Im)&&!(S&&Si(B))),[z,p,S]);if(r.length===0)return j.jsxDEV(Ve,{index:2,title:"Frustration by model version",stale:i,children:j.jsxDEV(mt,{title:"No user messages in this range",hint:"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this);let oe=N.some(Si);return j.jsxDEV(j.Fragment,{children:[j.jsxDEV(Ve,{index:2,title:"Frustration by model version",description:"Share of user messages per model version. Each bar reaches the annoyed rate; the subsets aimed at the assistant stack inside it.",stale:i,children:j.jsxDEV("div",{className:"stack frustration-chart-body",children:[j.jsxDEV("div",{className:"frustration-classes",children:j.jsxDEV(za,{size:"sm","aria-label":"Model class",options:L,value:R,onChange:c},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV("div",{className:"row frustration-filters",children:[j.jsxDEV(Qa,{items:_.map((B)=>({key:B.key,label:B.label,color:h.get(B.key)??Ha[0],value:q(B.messages)})),hidden:f,onToggle:v},void 0,!1,void 0,this),j.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),j.jsxDEV("label",{className:"check",title:`Models with fewer than ${Im} messages have noisy rates`,children:[j.jsxDEV("input",{type:"checkbox",checked:p,onChange:(B)=>b(B.target.checked)},void 0,!1,void 0,this),"Include < ",Im," messages",F>0?` (${F})`:""]},void 0,!0,void 0,this),j.jsxDEV("label",{className:"check",title:`Hide models with under ${Db*100}% judged messages (rates from regex signals)`,children:[j.jsxDEV("input",{type:"checkbox",checked:S,onChange:(B)=>k(B.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",K>0?` (${K})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(u2,{hasRegexRows:oe},void 0,!1,void 0,this),j.jsxDEV(i2,{rows:N,familyColors:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(d2,{rows:N,familyColors:h,stale:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function u2({hasRegexRows:r}){return j.jsxDEV("div",{className:"legend frustration-key",children:[j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"angry"},void 0,!1,void 0,this),"Angry at assistant"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"other"},void 0,!1,void 0,this),"Annoyed at other targets"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),"At assistant trend"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item frustration-key-wide",title:`Under ${Db*100}% of these messages are judged; their rates come from regex signals`,children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),"Hatched: mostly regex fallback",r?" (run the judge)":""]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item dim",children:"Hue = model family"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function i2({rows:r,familyColors:i}){let u=It.useMemo(()=>{let c=new Map;r.forEach((v,p)=>{let b=Pc(v),S=Si(v),k=`${b}|${S?"regex":"judged"}`,h=c.get(k);if(h)h.slots.push(p);else c.set(k,{family:b,regex:S,slots:[p]})});let f=[];for(let v of n2)for(let[p,b]of c){let S=r.map(()=>null);for(let k of b.slots)S[k]=Uc(r2(r[k],v.key),r[k].messages);f.push({key:`${v.key}|${p}`,label:v.label,color:l2(i.get(b.family)??Ha[0],v.key),values:S,pattern:b.regex?"hatch":void 0})}return f.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:r.map((v)=>Uc(v.atAssistant,v.messages)),kind:"line",tooltip:!1}),f},[r,i]);if(r.length===0)return j.jsxDEV("div",{className:"frustration-chart-empty",children:j.jsxDEV(mt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return j.jsxDEV(Cl,{slots:r.length,tickLabel:(c)=>r[c].label,series:u,height:340,format:(c)=>`${c}%`,formatTooltip:(c)=>`${c.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(c)=>{let f=r[c];return j.jsxDEV("div",{className:"frustration-tooltip-extra",children:[j.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[j.jsxDEV("span",{className:"chart-tooltip-label",children:"Annoyed, any target"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"chart-tooltip-value",children:kl(f.annoyed,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV("div",{className:"micro dim",children:[q(f.messages)," messages · judged ",q(f.judged)," (",kl(f.judged,f.messages),")",Si(f)?" · mostly regex fallback":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function d2({rows:r,familyColors:i,stale:u}){let c=It.useMemo(()=>[{key:"model",header:"Model",sort:(f)=>f.label,render:(f)=>j.jsxDEV("span",{className:"row",title:f.key,children:[j.jsxDEV("span",{className:"swatch",style:{background:i.get(Pc(f))??Ha[0]}},void 0,!1,void 0,this),j.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:"Model IDs",wrap:!0,render:(f)=>j.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:"Messages",align:"right",sort:(f)=>f.messages,render:(f)=>j.jsxDEV("span",{className:"num",children:q(f.messages)},void 0,!1,void 0,this)},{key:"judged",header:"Judged",align:"right",sort:(f)=>f.messages>0?f.judged/f.messages:0,render:(f)=>Si(f)?j.jsxDEV("span",{className:"row frustration-judged",title:"Mostly regex fallback: run the judge for accurate rates",children:[j.jsxDEV(wt,{tone:"warn",children:"regex"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"num dim",children:kl(f.judged,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):j.jsxDEV("span",{className:"num",children:kl(f.judged,f.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:"Annoyed",align:"right",sort:(f)=>Uc(f.annoyed,f.messages),render:(f)=>j.jsxDEV("span",{className:"num",title:`${q(f.annoyed)} messages`,children:kl(f.annoyed,f.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:"At assistant",align:"right",sort:(f)=>Uc(f.atAssistant,f.messages),render:(f)=>j.jsxDEV("span",{className:"num",title:`${q(f.atAssistant)} messages`,children:kl(f.atAssistant,f.messages)},void 0,!1,void 0,this)},{key:"angry",header:"Angry",align:"right",sort:(f)=>Uc(f.angry,f.messages),render:(f)=>j.jsxDEV("span",{className:f.angry>0?"num tone-bad":"num",title:`${q(f.angry)} messages`,children:kl(f.angry,f.messages)},void 0,!1,void 0,this)}],[i]);return j.jsxDEV(Ve,{index:3,title:"Model versions",description:"Rates are shares of user messages; rows follow the chart filters.",flush:!0,stale:u,children:j.jsxDEV(zt,{rows:r,rowKey:(f)=>f.key,columns:c,dense:!0,empty:j.jsxDEV(mt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var zc=Y(ut(),1);var xt=Y(ce(),1),c2=86400000,f2={snapcompact:"Snapcompact"},p2=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function ww({active:r,range:i}){let[u,c]=zc.useState(null),f=qt(["gain",i,u],()=>qk(i,u),{enabled:r}),v=na(i),p=f.data,b=zc.useMemo(()=>{let R=(p?.timeSeries??[]).map((F)=>({...F,timestamp:Date.parse(`${F.date}T00:00:00Z`)})),L=Po(i,R.map((F)=>F.timestamp),c2),D=ba(R,L,(F)=>F.snapcompact),_=0,z=D.map((F)=>_+=F);return{buckets:L,daily:D,cumulative:z}},[p,i]),S=zc.useMemo(()=>{if(!p)return[];let R=p.overall.savedTokens;return Object.keys(p.bySource).map((L)=>({...p.bySource[L],source:L,share:R>0?p.bySource[L].savedTokens/R:0}))},[p]),k=p?.projects??[],h=u!==null&&!k.includes(u)?[u,...k]:k,x=u?` for ${u}`:"",C=[{key:"daily",label:"Saved per day",color:"var(--chart-primary)",values:b.daily},{key:"cumulative",label:"Cumulative",color:"var(--chart-secondary)",values:b.cumulative,kind:"line",axis:"right"}];return xt.jsxDEV("div",{className:"page",children:[xt.jsxDEV(ta,{title:"Gain",description:`Tokens snapcompact kept out of context${x} in ${v.windowLabel}.`,actions:h.length>0&&xt.jsxDEV("select",{className:"input","aria-label":"Project",value:u??"",onChange:(R)=>c(R.target.value||null),style:{maxWidth:320},children:[xt.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),h.map((R)=>xt.jsxDEV("option",{value:R,children:R},R,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(_e,{query:f,skeleton:xt.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),isEmpty:(R)=>R.overall.hits===0&&R.timeSeries.length===0,empty:xt.jsxDEV(Ve,{children:xt.jsxDEV(mt,{title:`No savings recorded${x} in ${v.windowLabel}`,hint:i==="all"?"Savings appear here once snapcompact compacts tool output.":"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:R})=>xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("div",{"data-stale":f.stale,children:xt.jsxDEV(aa,{min:180,children:[xt.jsxDEV(fe,{label:"Saved tokens",value:Me(R.savedTokens),hint:q(R.savedTokens),spark:b.daily},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Saved bytes",value:vb(R.savedBytes)},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Reduction",title:"Saved bytes ÷ original bytes, when the original size is known",value:R.reductionPercent!==null?Re(R.reductionPercent):"–",hint:R.reductionPercent===null?"original size not recorded":void 0},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Hits",value:q(R.hits)},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Saved per hit",value:R.hits>0?Me(R.savedTokens/R.hits):"–",hint:"tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(Ve,{index:1,title:"Savings over time",description:"Tokens saved per UTC day, with the running total",actions:xt.jsxDEV(Qa,{items:C.map((L)=>({key:L.key,label:L.label,color:L.color}))},void 0,!1,void 0,this),stale:f.stale,children:xt.jsxDEV(Cl,{slots:b.buckets.length,tickLabel:(L)=>p2.format(b.buckets[L]),series:C,height:260,formatTooltip:q,formatRight:Me},void 0,!1,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(Ve,{index:2,title:"By source",description:"Savings per subsystem",flush:!0,stale:f.stale,children:xt.jsxDEV(zt,{rows:S,rowKey:(L)=>L.source,columns:m2},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var m2=[{key:"source",header:"Source",sort:(r)=>r.source,render:(r)=>xt.jsxDEV("span",{className:"cell-primary",children:f2[r.source]},void 0,!1,void 0,this)},{key:"tokens",header:"Saved tokens",align:"right",sort:(r)=>r.savedTokens,render:(r)=>xt.jsxDEV("span",{title:q(r.savedTokens),children:xt.jsxDEV(sa,{value:r.share,max:1,display:Me(r.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(r)=>r.share,render:(r)=>xt.jsxDEV("span",{className:"num muted",children:Re(r.share)},void 0,!1,void 0,this)},{key:"bytes",header:"Saved bytes",align:"right",sort:(r)=>r.savedBytes,render:(r)=>xt.jsxDEV("span",{className:"num",children:vb(r.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:"Hits",align:"right",sort:(r)=>r.hits,render:(r)=>xt.jsxDEV("span",{className:"num",children:q(r.hits)},void 0,!1,void 0,this)},{key:"reduction",header:"Reduction",align:"right",sort:(r)=>r.reductionPercent??-1,render:(r)=>xt.jsxDEV("span",{className:"num",children:r.reductionPercent!==null?Re(r.reductionPercent):"–"},void 0,!1,void 0,this)}];var _c=Y(ut(),1);var Le=Y(ce(),1),h2=[{value:"share",label:"Share"},{value:"requests",label:"Requests"}],g2=6;function Iw({active:r,range:i}){let u=qt(["models",i],()=>kk(i),{enabled:r}),c=na(i),[f,v]=_c.useState("share"),[p,b]=nl(),[S,k]=_c.useState(null),h=_c.useMemo(()=>u.data?y2(u.data,i):null,[u.data,i]),x=x2(c.bucketMs),C=(L)=>L.byModel.length===0,R=Le.jsxDEV(mt,{title:"No model usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Le.jsxDEV("div",{className:"page",children:[Le.jsxDEV(ta,{title:"Models",description:`Which models did the work in ${c.windowLabel}, and how fast they answered.`},void 0,!1,void 0,this),Le.jsxDEV(_e,{query:u,skeleton:Le.jsxDEV(Ea,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV("div",{"data-stale":u.stale,children:Le.jsxDEV(aa,{min:200,children:[Le.jsxDEV(fe,{label:"Models used",value:q(h.models.length),hint:`across ${q(h.providerCount)} provider${h.providerCount===1?"":"s"}`},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"Most used",title:h.top?`${h.top.model} (${h.top.provider})`:void 0,value:h.top?h.top.model:"–",hint:h.top?`${Re(h.top.totalRequests/Math.max(1,h.totalRequests))} of requests · ${h.top.provider}`:void 0},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"Requests",value:q(h.totalRequests),hint:`${q(h.failedRequests)} failed`,spark:h.requestTotals},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${q(h.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV(Ve,{index:1,title:"Request share",description:f==="share"?`Each model's share of requests per ${x}`:`Requests per ${x}, stacked by model`,actions:Le.jsxDEV(za,{size:"sm",options:h2,value:f,onChange:v,"aria-label":"Share chart mode"},void 0,!1,void 0,this),stale:u.stale,children:Le.jsxDEV(_e,{query:u,skeleton:Le.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV("div",{className:"stack",style:{gap:12},children:[Le.jsxDEV($n,{buckets:h.buckets,bucketMs:c.bucketMs,series:f==="share"?h.shareSeries:h.countSeries,hidden:p,height:260,yMax:f==="share"?1:void 0,format:f==="share"?(L)=>Re(L,0):Me,formatTooltip:f==="share"?(L)=>Re(L):q,showTotal:f==="requests"},void 0,!1,void 0,this),Le.jsxDEV(Qa,{items:h.countSeries.map((L)=>({key:L.key,label:L.label,color:L.color,value:Re(Tw(L.values)/Math.max(1,Tw(h.requestTotals)))})),hidden:p,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV(Ve,{index:2,title:"All models",description:"Click a row for latency and throughput over time",stale:u.stale,flush:!0,children:Le.jsxDEV(_e,{query:u,skeleton:Le.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV(zt,{rows:h.models,rowKey:(L)=>ya(L.model,L.provider),columns:v2(h,S,x),initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(L)=>{let D=ya(L.model,L.provider);k((_)=>_===D?null:D)},selectedKey:S,expanded:(L)=>{let D=ya(L.model,L.provider);return D===S?Le.jsxDEV(S2,{model:L,color:h.swatches.get(D)??"var(--chart-primary)",points:h.performance.get(D)??[],bucketMs:c.bucketMs,bucketWord:x},void 0,!1,void 0,this):null}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function y2(r,i){let u=r.byModel,c=wm(u),f=b2(u),v=Po(i,r.modelSeries.map((_)=>_.timestamp)),p=ba(r.modelSeries,v,(_)=>_.requests),b={buckets:v,key:(_)=>ya(_.model,_.provider),label:(_)=>f.get(_)??_,value:(_)=>_.requests,colors:c},S=mn(r.modelSeries,{...b,limit:g2}).map((_)=>({..._,values:_.values.map((z)=>z||null)})),k=S.map((_)=>({..._,values:_.values.map((z,F)=>z===null?null:z/p[F])})),h=new Map(mn(r.modelSeries,b).map((_)=>[_.key,_.values])),x,C=0,R=0,L=0,D=0;for(let _ of u){if(!x||_.totalRequests>x.totalRequests)x=_;C+=_.totalRequests,R+=_.failedRequests,L+=_.totalCost,D+=_.unpricedRequests}return{models:u,top:x,swatches:new Map(S.filter((_)=>_.key!=="__other__").map((_)=>[_.key,_.color])),labels:f,providerCount:new Set(u.map((_)=>_.provider)).size,totalRequests:C,failedRequests:R,totalCost:L,unpricedRequests:D,maxRequests:x?.totalRequests??0,buckets:v,requestTotals:p,countSeries:S,shareSeries:k,trends:h,performance:mw(r.modelPerformanceSeries)}}function b2(r){let i=new Map;for(let u of r)i.set(u.model,(i.get(u.model)??0)+1);return new Map(r.map((u)=>[ya(u.model,u.provider),(i.get(u.model)??0)>1?`${u.model} · ${u.provider}`:u.model]))}function v2(r,i,u){return[{key:"expand",header:"",width:28,render:(c)=>Le.jsxDEV("span",{className:"models-chevron","data-open":ya(c.model,c.provider)===i,children:Le.jsxDEV(vl,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(c)=>c.model,render:(c)=>Le.jsxDEV(_a,{lead:Le.jsxDEV(Sl,{color:r.swatches.get(ya(c.model,c.provider))??eo},void 0,!1,void 0,this),primary:Le.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this),secondary:c.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(c)=>c.totalRequests,render:(c)=>Le.jsxDEV(sa,{value:c.totalRequests,max:r.maxRequests,display:q(c.totalRequests),color:r.swatches.get(ya(c.model,c.provider))??eo},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate at public rates",align:"right",sort:(c)=>c.totalCost,render:(c)=>Le.jsxDEV("span",{className:"num",children:Ot(c.totalCost,c.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(c)=>Zr(c),render:(c)=>{let f=Zr(c);return Le.jsxDEV("span",{className:"num",title:q(f),children:Me(f)},void 0,!1,void 0,this)}},{key:"cache",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(c)=>c.cacheRate,render:(c)=>Le.jsxDEV("span",{className:"num",children:Re(c.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:"Errors",align:"right",sort:(c)=>c.errorRate,render:(c)=>c.failedRequests===0?Le.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):Le.jsxDEV("span",{title:`${q(c.failedRequests)} failed`,children:Le.jsxDEV(wt,{tone:sn(c.errorRate),mono:!0,children:Re(c.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output tokens per second",align:"right",sort:(c)=>c.avgTokensPerSecond??-1,render:(c)=>Le.jsxDEV("span",{className:"num",children:dn(c.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Average time to first token",align:"right",sort:(c)=>c.avgTtft??-1,render:(c)=>Le.jsxDEV("span",{className:"num",children:St(c.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:"Trend",title:`Requests per ${u}`,width:112,render:(c)=>{let f=ya(c.model,c.provider),v=r.trends.get(f);return v?Le.jsxDEV(gi,{values:v.map((p)=>p??0),color:r.swatches.get(f)??eo,width:96,height:22},void 0,!1,void 0,this):Le.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function S2({model:r,color:i,points:u,bucketMs:c,bucketWord:f}){let[v,p]=nl(),b=[{key:"tps",label:"Tokens/s",color:i,kind:u.length>1?"line":"bars",values:u.map((S)=>S.avgTokensPerSecond)},{key:"ttft",label:"TTFT",color:eo,kind:u.length>1?"line":"bars",axis:"right",dashed:!0,values:u.map((S)=>S.avgTtftSeconds)}];return Le.jsxDEV("div",{className:"models-detail",children:[Le.jsxDEV("div",{className:"models-detail-facts",children:[Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Efficiency"},void 0,!1,void 0,this),Le.jsxDEV(_o,{items:[{key:"err",label:"Error rate",value:Le.jsxDEV("span",{className:`tone-${sn(r.errorRate)}`,children:[Re(r.errorRate)," ",Le.jsxDEV("span",{className:"dim",children:["(",q(r.failedRequests)," failed)"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:"Cache rate",value:Re(r.cacheRate)},{key:"savings",label:"Cache savings",value:Le.jsxDEV("span",{className:r.cacheSavings<0?"tone-bad":void 0,children:Re(r.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:"Premium requests",value:q(Math.round(r.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Latency"},void 0,!1,void 0,this),Le.jsxDEV(_o,{items:[{key:"dur",label:"Avg duration",value:St(r.avgDuration)},{key:"ttft",label:"Avg TTFT",value:St(r.avgTtft)},{key:"tps",label:"Tokens/s",value:dn(r.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),Le.jsxDEV(_o,{items:[{key:"in",label:"Uncached input",value:Me(r.totalInputTokens)},{key:"cr",label:"Cache read",value:Me(r.totalCacheReadTokens)},{key:"cw",label:"Cache write",value:Me(r.totalCacheWriteTokens)},{key:"out",label:"Output",value:Me(r.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"micro dim",children:["First seen ",ia(r.firstTimestamp)," · last seen"," ",ia(r.lastTimestamp)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"models-detail-chart",children:[Le.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Le.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:["Performance per active ",f]},void 0,!0,void 0,this),Le.jsxDEV(Qa,{items:b.map((S)=>({key:S.key,label:S.label,color:S.color})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.length===0?Le.jsxDEV(mt,{title:"No performance samples",hint:"Timing is recorded for streamed responses."},void 0,!1,void 0,this):Le.jsxDEV($n,{buckets:u.map((S)=>S.timestamp),bucketMs:c,series:b,hidden:v,stacked:!1,height:240,format:Me,formatTooltip:(S)=>`${dn(S)} tok/s`,formatRight:(S)=>`${Number(S.toFixed(2))}s`,tooltipExtra:(S)=>Le.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Le.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),Le.jsxDEV("span",{className:"chart-tooltip-value",children:q(u[S].requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function x2(r){if(r<3600000)return"5 minutes";if(r<86400000)return"hour";return"day"}function Tw(r){let i=0;for(let u of r)i+=u??0;return i}var Rm=Y(ut(),1);var Ie=Y(ce(),1),L2=[{value:"requests",label:"Requests"},{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],Rw={main:"Main agent",subagent:"Subagents",advisor:"Advisor"},Mw={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},Aw=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}];function Dw({active:r,range:i,onRequestClick:u}){let c=qt(["overview",i],()=>Ck(i),{enabled:r}),f=qt(["recent-requests"],()=>mm(12),{enabled:r}),[v,p]=Rm.useState("requests"),b=na(i),S=Rm.useMemo(()=>{let h=c.data?.timeSeries??[],x=Po(i,h.map((C)=>C.timestamp));return{buckets:x,requests:ba(h,x,(C)=>C.requests-C.errors),errors:ba(h,x,(C)=>C.errors),tokens:ba(h,x,(C)=>C.tokens),cost:ba(h,x,(C)=>C.cost),all:ba(h,x,(C)=>C.requests)}},[c.data,i]),k=v==="requests"?[{key:"ok",label:"Succeeded",color:"var(--chart-primary)",values:S.requests},{key:"err",label:"Failed",color:"var(--bad)",values:S.errors}]:v==="tokens"?[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.tokens}]:[{key:"cost",label:"API-equivalent",color:"var(--chart-secondary)",values:S.cost}];return Ie.jsxDEV("div",{className:"page",children:[Ie.jsxDEV(ta,{title:"Overview",description:`Everything omp did across your sessions in ${b.windowLabel}.`},void 0,!1,void 0,this),Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:({overall:h})=>Ie.jsxDEV("div",{"data-stale":c.stale,className:"stack",style:{gap:16},children:[Ie.jsxDEV(aa,{min:190,children:[Ie.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${q(h.unpricedRequests)} unpriced`:void 0,spark:S.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Requests",value:q(h.totalRequests),hint:`${q(h.failedRequests)} failed`,spark:S.all},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Me(Zr(h)),hint:`${Me(h.totalOutputTokens)} output`,spark:S.tokens},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",value:Re(h.cacheRate),hint:`${Re(h.cacheSavings)} saved`},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Error rate",value:Re(h.errorRate),hint:`${q(h.successfulRequests)} succeeded`,spark:S.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV(aa,{min:140,children:[Ie.jsxDEV(fe,{size:"sm",label:"Uncached input",value:Me(h.totalInputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Cache read",value:Me(h.totalCacheReadTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Cache write",value:Me(h.totalCacheWriteTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Output",value:Me(h.totalOutputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Premium requests",value:q(Math.round(h.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Tokens/s",value:dn(h.avgTokensPerSecond)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Avg latency",value:St(h.avgDuration)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Avg TTFT",value:St(h.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"grid grid-main-side",children:[Ie.jsxDEV(Ve,{index:1,title:"Activity",description:`Per ${b.bucketMs<3600000?"5 minutes":b.bucketMs<86400000?"hour":"day"}`,actions:Ie.jsxDEV(za,{size:"sm",options:L2,value:v,onChange:p},void 0,!1,void 0,this),stale:c.stale,children:Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>Ie.jsxDEV($n,{buckets:S.buckets,bucketMs:b.bucketMs,series:k,height:260,format:v==="cost"?(h)=>Ot(h,0):Me},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV(Ve,{index:2,title:"Token mix",description:"Where conversation tokens went",stale:c.stale,children:Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:({overall:h,byAgentType:x})=>{let C={input:h.totalInputTokens,cacheRead:h.totalCacheReadTokens,cacheWrite:h.totalCacheWriteTokens,output:h.totalOutputTokens},R=Zr(h),L=fw(x);return Ie.jsxDEV("div",{className:"stack",style:{gap:18},children:[Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV(Qr,{segments:Aw.map((D)=>({key:D.key,label:D.label,value:C[D.key],color:D.color}))},void 0,!1,void 0,this),Ie.jsxDEV(Qa,{items:Aw.map((D)=>({key:D.key,label:D.label,color:D.color,value:R>0?Re(C[D.key]/R,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:"By agent"},void 0,!1,void 0,this),Ie.jsxDEV(Qr,{segments:L.segments.map((D)=>({key:D.agentType,label:Rw[D.agentType],value:D.tokens,color:Mw[D.agentType]}))},void 0,!1,void 0,this),L.segments.map((D)=>Ie.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"swatch",style:{background:Mw[D.agentType]}},void 0,!1,void 0,this),Rw[D.agentType],Ie.jsxDEV("span",{className:"dim num",children:[q(D.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"dim num",children:Me(D.tokens)},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:Re(D.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.agentType,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV(Ve,{index:3,title:Ie.jsxDEV(Ie.Fragment,{children:[Ie.jsxDEV(rn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Latest requests"]},void 0,!0,void 0,this),description:"Most recent model calls across every session",actions:Ie.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${i}`,children:["All requests ",Ie.jsxDEV(fc,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Ie.jsxDEV(_e,{query:f,skeleton:Ie.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),children:(h)=>Ie.jsxDEV(zt,{rows:h,rowKey:(x)=>x.id??`${x.sessionFile}:${x.entryId}`,onRowClick:(x)=>x.id!==void 0&&u(x.id),columns:C2,dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var C2=[{key:"model",header:"Model",render:(r)=>Ie.jsxDEV(_a,{primary:r.model,secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:"When",render:(r)=>Ie.jsxDEV("span",{className:"muted",children:ia(r.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:q(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:Yr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:St(r.duration)},void 0,!1,void 0,this)},{key:"status",header:"Status",align:"right",render:(r)=>r.errorMessage?Ie.jsxDEV(wt,{tone:"bad",children:"Failed"},void 0,!1,void 0,this):Ie.jsxDEV(wt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}];var wl=Y(ut(),1);var He=Y(ce(),1),k2=100,Ew=8;function Ow({active:r,range:i}){let u=qt(["projects",i],()=>Ok(i),{enabled:r}),[c,f]=wl.useState(""),[v,p]=wl.useState(!0),b=wl.useDeferredValue(c.trim().toLowerCase()),S=na(i),k=wl.useMemo(()=>hw(u.data??[]),[u.data]),h=wl.useMemo(()=>v?k.rows.filter((D)=>!D.temporary):k.rows,[k,v]),x=wl.useMemo(()=>b?h.filter((D)=>D.folder.toLowerCase().includes(b)):h,[h,b]),C=wl.useMemo(()=>({cost:[...h].sort((D,_)=>_.totalCost-D.totalCost).slice(0,Ew),requests:[...h].sort((D,_)=>_.totalRequests-D.totalRequests).slice(0,Ew)}),[h]),R=He.jsxDEV(mt,{title:k.rows.length===0?"No project folders in this range":"Only temporary folders in this range"},void 0,!1,void 0,this),L=wl.useMemo(()=>w2(k.maxRequests,k.maxCost),[k]);return He.jsxDEV("div",{className:"page",children:[He.jsxDEV(ta,{title:"Projects",description:`Usage by session folder in ${S.windowLabel}.`},void 0,!1,void 0,this),He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),children:()=>He.jsxDEV("div",{"data-stale":u.stale,children:He.jsxDEV(aa,{min:180,children:[He.jsxDEV(fe,{label:"Folders",value:q(k.rows.length),hint:k.temporaryCount>0?`${q(k.temporaryCount)} temporary`:void 0},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Requests",value:q(k.totalRequests),hint:`${q(k.failedRequests)} failed`},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(k.totalCost,k.unpricedRequests),hint:k.unpricedRequests>0?`${q(k.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Me(k.conversationTokens)},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads), across every folder",value:Re(k.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),He.jsxDEV("div",{className:"grid grid-2",children:[He.jsxDEV(Ve,{index:1,title:"Top by cost",description:"Share of API-equivalent cost",stale:u.stale,children:He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(Tt,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.cost.length===0,empty:R,children:()=>He.jsxDEV(Oc,{items:C.cost.map((D)=>({key:D.folder,label:He.jsxDEV("span",{className:"mono",children:cn(D.folder)},void 0,!1,void 0,this),value:D.totalCost,display:`${Ot(D.totalCost,D.unpricedRequests)} · ${Re(D.costShare)}`,color:"var(--chart-secondary)"})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),He.jsxDEV(Ve,{index:2,title:"Top by requests",description:"Share of all requests",stale:u.stale,children:He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(Tt,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.requests.length===0,empty:R,children:()=>He.jsxDEV(Oc,{items:C.requests.map((D)=>({key:D.folder,label:He.jsxDEV("span",{className:"mono",children:cn(D.folder)},void 0,!1,void 0,this),value:D.totalRequests,display:`${q(D.totalRequests)} · ${Re(D.requestShare)}`})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),He.jsxDEV(Ve,{index:3,title:"Folders",description:u.data?x.length===k.rows.length?`${q(k.rows.length)} folders`:`${q(x.length)} of ${q(k.rows.length)} folders`:void 0,actions:He.jsxDEV(He.Fragment,{children:[k.temporaryCount>0&&He.jsxDEV("label",{className:"check",title:"Session folders under /tmp or /var/folders",children:[He.jsxDEV("input",{type:"checkbox",checked:v,onChange:(D)=>p(D.target.checked)},void 0,!1,void 0,this),"Hide temporary (",q(k.temporaryCount),")"]},void 0,!0,void 0,this),He.jsxDEV(un,{value:c,onChange:f,placeholder:"Filter folders…",width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:u.stale,children:He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),children:()=>He.jsxDEV(zt,{rows:x,rowKey:(D)=>D.folder,columns:L,initialSort:{key:"cost",dir:"desc"},limit:k2,dense:!0,empty:He.jsxDEV(mt,{title:k.rows.length===0?"No project folders in this range":"No folders match",hint:k.rows.length===0?"Try a longer range.":v&&k.temporaryCount>0?"Temporary folders are hidden.":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function w2(r,i){return[{key:"folder",header:"Folder",sort:(u)=>u.folder,render:(u)=>He.jsxDEV("span",{className:"row projects-folder",title:u.folder||"(root)",children:[He.jsxDEV("span",{className:"mono truncate",children:cn(u.folder)},void 0,!1,void 0,this),u.temporary&&He.jsxDEV(wt,{children:"temp"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(u)=>u.totalRequests,render:(u)=>He.jsxDEV("span",{title:`${Re(u.requestShare)} of all requests`,children:He.jsxDEV(sa,{value:u.totalRequests,max:r,display:q(u.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent cost at public API rates",align:"right",sort:(u)=>u.totalCost,render:(u)=>He.jsxDEV("span",{title:`${Re(u.costShare)} of all cost`,children:He.jsxDEV(sa,{value:u.totalCost,max:i,display:Ot(u.totalCost,u.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(u)=>u.conversationTokens,render:(u)=>He.jsxDEV("span",{className:"num",title:q(u.conversationTokens),children:Me(u.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(u)=>u.cacheRate,render:(u)=>He.jsxDEV("span",{className:"num",children:Re(u.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:"Cache savings",title:"Prompt-input cost saved versus billing the same tokens uncached",align:"right",sort:(u)=>u.cacheSavings,render:(u)=>He.jsxDEV("span",{className:`num ${u.cacheSavings<0?"tone-bad":"muted"}`,children:Re(u.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(u)=>u.errorRate,render:(u)=>He.jsxDEV("span",{title:`${q(u.failedRequests)} failed`,children:He.jsxDEV(wt,{tone:u.failedRequests>0?sn(u.errorRate):"neutral",mono:!0,children:Re(u.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:"Avg duration",align:"right",sort:(u)=>u.avgDuration??-1,render:(u)=>He.jsxDEV("span",{className:"num",children:St(u.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:"Last active",align:"right",sort:(u)=>u.lastTimestamp,render:(u)=>He.jsxDEV("span",{className:"dim",children:ia(u.lastTimestamp)},void 0,!1,void 0,this)}]}var co=Y(ut(),1);var J=Y(ce(),1),T2=[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost",title:"API-equivalent estimate"},{value:"requests",label:"Requests"}],qw=6,Bw=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}],Nw="Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, omp usage).";function Uw({active:r,range:i}){let u=qt(["providers",i],()=>Nk(i),{enabled:r}),[c,f]=co.useState("tokens"),[v,p]=nl(),b=na(i),S=qt(["provider-windows",i],()=>yb(i,null),{enabled:r}),[k,h]=co.useState(null),x=I2(S.data?.windowInsights??[],k),C=x?.provider??null,R=qt(["provider-windows",i,C],()=>yb(i,C),{enabled:r&&C!==null}),L=co.useMemo(()=>{let F=u.data?.providers??[],K=u.data?.series??[],N=qc(F.map((Z)=>({key:Z.provider,weight:Z.totalTokens}))),oe=Po(i,K.map((Z)=>Z.timestamp)),B={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let Z of F)B.requests+=Z.totalRequests,B.failed+=Z.failedRequests,B.tokens+=Z.totalTokens,B.cost+=Z.totalCost,B.unpriced+=Z.unpricedRequests;let ee=(Z)=>mn(K,{buckets:oe,key:(W)=>W.provider,value:Z,limit:qw,colors:N}).map((W)=>({...W,values:W.values.map((X)=>X||null)}));return{colors:N,buckets:oe,totals:B,burn:{tokens:ee((Z)=>Z.totalTokens),cost:ee((Z)=>Z.cost),requests:ee((Z)=>Z.requests)},spark:{tokens:ba(K,oe,(Z)=>Z.totalTokens),cost:ba(K,oe,(Z)=>Z.cost),requests:ba(K,oe,(Z)=>Z.requests)},topProvider:F.reduce((Z,W)=>Z===null||W.totalTokens>Z.totalTokens?W:Z,null)}},[u.data,i]),D=L.burn[c],_=c==="cost"?(F)=>ua(F):Me,z=L.totals;return J.jsxDEV("div",{className:"page",children:[J.jsxDEV(ta,{title:"Providers",description:`Burn, reliability and subscription headroom per provider over ${b.windowLabel}.`},void 0,!1,void 0,this),J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:({providers:F})=>J.jsxDEV("div",{"data-stale":u.stale,children:J.jsxDEV(aa,{min:190,children:[J.jsxDEV(fe,{label:"Providers",value:q(F.length),hint:L.topProvider?`Most tokens: ${L.topProvider.provider}`:void 0},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Requests",value:q(z.requests),hint:`${q(z.failed)} failed`,spark:L.spark.requests},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Tokens",title:"Uncached input + cache reads + cache writes + output",value:Me(z.tokens),spark:L.spark.tokens},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(z.cost,z.unpriced),hint:z.unpriced>0?`${q(z.unpriced)} unpriced`:void 0,spark:L.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Error rate",value:Re(z.requests>0?z.failed/z.requests:0),hint:`${q(z.requests-z.failed)} succeeded`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(Ve,{index:1,title:"Provider totals",description:z.unpriced>0?`Cost is an API-equivalent estimate and excludes ${q(z.unpriced)} unpriced subscription request${z.unpriced===1?"":"s"}. Select a row for its token mix.`:"Cost is an API-equivalent estimate. Select a row for its token mix.",flush:!0,stale:u.stale,children:J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:({providers:F})=>J.jsxDEV(R2,{providers:F,colors:L.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV("div",{className:"grid grid-main-side",children:[J.jsxDEV(Ve,{index:2,title:"Burn by provider",description:c==="cost"&&z.unpriced>0?`API-equivalent estimate per ${b.bucketMs<86400000?"hour":"day"}; excludes unpriced subscription requests`:`Per ${b.bucketMs<3600000?"5 minutes":b.bucketMs<86400000?"hour":"day"}, top ${qw} providers stacked`,actions:J.jsxDEV(za,{size:"sm",options:T2,value:c,onChange:f},void 0,!1,void 0,this),stale:u.stale,children:J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>J.jsxDEV("div",{className:"stack",style:{gap:12},children:[J.jsxDEV($n,{buckets:L.buckets,bucketMs:b.bucketMs,series:D,hidden:v,height:260,format:_,formatTooltip:c==="cost"?(F)=>ua(F):q,emptyLabel:"No provider activity in this range"},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:D.map((F)=>({key:F.key,label:F.label,color:F.color,value:_(F.values.reduce((K,N)=>K+(N??0),0))})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:320},void 0,!1,void 0,this),children:({hourly:F,providers:K})=>J.jsxDEV(A2,{hourly:F,providers:K,stale:u.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Ve,{index:4,title:"Subscription windows",description:"What one usage window buys you and how many accounts peak demand needs. Select a row to chart it.",flush:!0,stale:S.stale,children:J.jsxDEV(_e,{query:S,skeleton:J.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:(F)=>J.jsxDEV(D2,{insights:F.windowInsights,selected:x,onSelect:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(N2,{insights:S.data?.windowInsights??null,accounts:R,selected:x,onSelect:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function I2(r,i){if(i&&r.some((c)=>c.provider===i.provider&&c.windowKey===i.windowKey))return i;let u=i&&r.find((c)=>c.provider===i.provider)||r.reduce((c,f)=>c===void 0||f.fractionConsumed>c.fractionConsumed?f:c,void 0);return u?{provider:u.provider,windowKey:u.windowKey}:null}function R2({providers:r,colors:i}){let[u,c]=co.useState(null),f=co.useMemo(()=>{let v=0,p=0,b=0;for(let S of r)v=Math.max(v,S.totalRequests),p=Math.max(p,S.totalTokens),b+=S.totalTokens;return[{key:"provider",header:"Provider",sort:(S)=>S.provider,render:(S)=>J.jsxDEV("span",{className:"row",style:{gap:8},children:[J.jsxDEV(Sl,{color:i.get(S.provider)??eo},void 0,!1,void 0,this),J.jsxDEV("span",{className:"mono cell-primary",children:S.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(S)=>S.totalRequests,render:(S)=>J.jsxDEV(sa,{value:S.totalRequests,max:v,display:q(S.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:"Error rate",align:"right",sort:(S)=>S.totalRequests>0?S.failedRequests/S.totalRequests:0,render:(S)=>{let k=S.totalRequests>0?S.failedRequests/S.totalRequests:0;return J.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[J.jsxDEV("span",{className:"num dim",children:q(S.failedRequests)},void 0,!1,void 0,this),J.jsxDEV(wt,{tone:S.failedRequests>0?sn(k):"neutral",mono:!0,children:Re(k)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:"Models",title:"Distinct models used through this provider",align:"right",sort:(S)=>S.models,render:(S)=>J.jsxDEV("span",{className:"num",children:q(S.models)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(S)=>S.totalTokens,render:(S)=>J.jsxDEV(sa,{value:S.totalTokens,max:p,display:Me(S.totalTokens),color:i.get(S.provider)},void 0,!1,void 0,this)},{key:"share",header:"Share",title:"Fraction of all tokens in range",align:"right",sort:(S)=>S.totalTokens,render:(S)=>J.jsxDEV("span",{className:"num muted",children:Re(b>0?S.totalTokens/b:0)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(S)=>S.totalCost,render:(S)=>J.jsxDEV("span",{className:"num",title:S.unpricedRequests>0?`${q(S.unpricedRequests)} unpriced`:void 0,children:Ot(S.totalCost,S.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output throughput",align:"right",sort:(S)=>S.avgTokensPerSecond??-1,render:(S)=>J.jsxDEV("span",{className:"num",children:dn(S.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:"Premium",title:"Premium requests (subscription multiplier units)",align:"right",sort:(S)=>S.totalPremiumRequests,render:(S)=>J.jsxDEV("span",{className:S.totalPremiumRequests>0?"num":"num dim",children:q(Math.round(S.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[r,i]);return J.jsxDEV(zt,{rows:r,rowKey:(v)=>v.provider,columns:f,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:u,onRowClick:(v)=>c((p)=>p===v.provider?null:v.provider),expanded:(v)=>v.provider===u?J.jsxDEV(M2,{provider:v},void 0,!1,void 0,this):null,empty:J.jsxDEV(mt,{title:"No requests in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function M2({provider:r}){let i={input:r.totalInputTokens,cacheRead:r.totalCacheReadTokens,cacheWrite:r.totalCacheWriteTokens,output:r.totalOutputTokens};return J.jsxDEV("div",{className:"providers-mix",children:[J.jsxDEV(Qr,{segments:Bw.map((u)=>({key:u.key,label:u.label,value:i[u.key],color:u.color}))},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:Bw.map((u)=>({key:u.key,label:u.label,color:u.color,value:`${Me(i[u.key])} · ${r.totalTokens>0?Re(i[u.key]/r.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Hc="";function A2({hourly:r,providers:i,stale:u}){let[c,f]=co.useState(Hc),v=c===Hc||i.some((S)=>S.provider===c)?c:Hc,p=co.useMemo(()=>{let S=Array.from({length:24},()=>0),k=Array.from({length:24},()=>0),h=Array.from({length:24},()=>0);for(let L of r){if(v!==Hc&&L.provider!==v)continue;S[L.hour]+=L.totalTokens,k[L.hour]+=L.outputTokens,h[L.hour]+=L.requests}let x=0;for(let L=1;L<24;L++)if(S[L]>S[x])x=L;let C=S[x]>0;return{series:[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.map((L,D)=>C&&D===x?null:L)},{key:"peak",label:"Tokens (peak hour)",color:"var(--chart-secondary)",values:S.map((L,D)=>C&&D===x?L:null)}],output:k,requests:h,peak:x,hasData:C}},[r,v]),b=(S)=>`${String(S).padStart(2,"0")}:00`;return J.jsxDEV(Ve,{index:3,title:"Peak burn hours",description:p.hasData?`Tokens by local hour of day; peak at ${b(p.peak)}`:"Tokens by local hour of day",actions:J.jsxDEV("select",{className:"input providers-select",value:v,onChange:(S)=>f(S.target.value),"aria-label":"Provider",children:[J.jsxDEV("option",{value:Hc,children:"All providers"},void 0,!1,void 0,this),i.map((S)=>J.jsxDEV("option",{value:S.provider,children:S.provider},S.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:u,children:J.jsxDEV(Cl,{slots:24,tickLabel:(S)=>String(S).padStart(2,"0"),tooltipTitle:(S)=>`${b(S)}–${b((S+1)%24)}`,series:p.series,height:260,showTotal:!1,formatTooltip:q,emptyLabel:"No activity in this range",tooltipExtra:(S)=>J.jsxDEV(J.Fragment,{children:[J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label",children:"Output"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:q(p.output[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:q(p.requests[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function D2({insights:r,selected:i,onSelect:u}){return J.jsxDEV(zt,{rows:r,rowKey:(c)=>`${c.provider}::${c.windowKey}`,columns:E2,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:i?`${i.provider}::${i.windowKey}`:null,onRowClick:(c)=>u({provider:c.provider,windowKey:c.windowKey}),empty:J.jsxDEV(mt,{title:"No usage snapshots in this range",hint:Nw},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var E2=[{key:"window",header:"Window",sort:(r)=>`${r.provider} ${r.windowLabel}`,render:(r)=>J.jsxDEV(_a,{primary:r.windowLabel,secondary:J.jsxDEV("span",{className:"mono",children:r.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:"Accounts",title:"Accounts with at least one snapshot for this window in range",align:"right",sort:(r)=>r.accounts,render:(r)=>J.jsxDEV("span",{className:"num",children:q(r.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:"Resets",title:"Window resets observed (drops in used fraction)",align:"right",sort:(r)=>r.cycles,render:(r)=>J.jsxDEV("span",{className:"num muted",children:q(r.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:"Windows burned",title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",align:"right",sort:(r)=>r.fractionConsumed,render:(r)=>J.jsxDEV("span",{className:"num",children:r.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Tokens / window",title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",align:"right",sort:(r)=>r.estTokensPerWindow??-1,render:(r)=>r.estTokensPerWindow!==null?J.jsxDEV("span",{className:"num",children:Me(r.estTokensPerWindow)},void 0,!1,void 0,this):J.jsxDEV("span",{className:"dim",title:"Too little of the window was consumed to extrapolate",children:"–"},void 0,!1,void 0,this)},{key:"peak",header:"Peak utilization",title:"Peak of summed used fraction across accounts at any sampled instant; the bar is relative to fleet capacity",align:"right",sort:(r)=>r.peakConcurrentFraction,render:(r)=>{let i=r.accounts>0?r.peakConcurrentFraction/r.accounts:0;return J.jsxDEV(sa,{value:r.peakConcurrentFraction,max:r.accounts,display:Re(r.peakConcurrentFraction,0),color:i>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:"Accounts needed",title:"Accounts needed to keep peak demand under 90% of fleet capacity",align:"right",sort:(r)=>r.idealAccounts-r.accounts,render:(r)=>r.idealAccounts>r.accounts?J.jsxDEV(wt,{tone:"warn",mono:!0,children:[q(r.idealAccounts)," · have ",q(r.accounts)]},void 0,!0,void 0,this):J.jsxDEV("span",{className:"num",children:q(r.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:"Exhaustions",title:"Transitions into an exhausted state observed in range",align:"right",sort:(r)=>r.exhaustedEvents,render:(r)=>r.exhaustedEvents>0?J.jsxDEV(wt,{tone:"warn",mono:!0,children:[q(r.exhaustedEvents)," exhausted"]},void 0,!0,void 0,this):J.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],Mm=60000,Yn=60*Mm,Am=24*Yn,O2=[5*Mm,15*Mm,30*Mm,Yn,2*Yn,3*Yn,6*Yn,12*Yn,Am],q2=240,B2=6*Yn;function N2({insights:r,accounts:i,selected:u,onSelect:c}){let[f,v]=nl(),p=co.useMemo(()=>[...new Set((r??[]).map((L)=>L.provider))],[r]),b=co.useMemo(()=>(r??[]).filter((L)=>L.provider===u?.provider).map((L)=>({key:L.windowKey,label:L.windowLabel})),[r,u?.provider]),S=co.useMemo(()=>(i.data?.usageSeries??[]).filter((L)=>L.provider===u?.provider),[i.data,u?.provider]),k=S.length===0&&(i.loading||i.stale),h=co.useMemo(()=>{let L=new Map;for(let _ of S){let z=L.get(_.accountLabel)??[];if(!z.includes(_.accountKey))z.push(_.accountKey);L.set(_.accountLabel,z)}let D=new Map;for(let[_,z]of L)z.sort(),z.forEach((F,K)=>D.set(F,z.length>1?`${_} #${K+1}`:_));return D},[S]),x=co.useMemo(()=>U2(S.filter((L)=>L.windowKey===u?.windowKey),h),[S,h,u?.windowKey]),C=co.useMemo(()=>{let L=new Map(x.series.map((D)=>[D.key,D.color]));return S.map((D)=>{let _=null,z=null;for(let N of D.points){if(N.usedFraction===null)continue;if(z=Math.max(z??0,N.usedFraction),!_||N.timestamp>=_.timestamp)_={fraction:N.usedFraction,exhausted:N.exhausted,timestamp:N.timestamp}}let F=D.windowKey===u?.windowKey?L.get(D.accountKey)??null:null,K=h.get(D.accountKey)??D.accountLabel;return{series:D,name:K,color:F,latest:_,peak:z,samples:D.points.length}}).sort((D,_)=>Number(_.color!==null)-Number(D.color!==null)||D.series.windowLabel.localeCompare(_.series.windowLabel)||(_.latest?.fraction??-1)-(D.latest?.fraction??-1))},[S,h,x.series,u?.windowKey]),R=b.find((L)=>L.key===u?.windowKey)?.label;return J.jsxDEV(Ve,{index:5,title:"Window utilization",description:x.buckets.length>0?`${R??"Window"} used fraction per account, ${ln(new Date(x.first),"MMM d HH:mm")} – ${ln(new Date(x.last),"MMM d HH:mm")}`:"Recorded limit utilization per account",actions:u&&J.jsxDEV("div",{className:"row",style:{gap:6},children:[J.jsxDEV("select",{className:"input providers-select",value:u.provider,onChange:(L)=>{let D=L.target.value,_=r?.find((z)=>z.provider===D);if(_)c({provider:D,windowKey:_.windowKey})},"aria-label":"Provider",children:p.map((L)=>J.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))},void 0,!1,void 0,this),J.jsxDEV("select",{className:"input providers-select",value:u.windowKey,onChange:(L)=>c({provider:u.provider,windowKey:L.target.value}),"aria-label":"Window",children:b.map((L)=>J.jsxDEV("option",{value:L.key,children:L.label},L.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i.stale,children:r===null?J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this):u===null?J.jsxDEV(mt,{title:"No usage snapshots in this range",hint:Nw},void 0,!1,void 0,this):J.jsxDEV(_e,{query:i,skeleton:J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>k?J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this):J.jsxDEV("div",{className:"stack",style:{gap:16},children:[J.jsxDEV("div",{className:"stack",style:{gap:12},children:[J.jsxDEV(Cl,{slots:x.buckets.length,tickLabel:(L)=>pm(x.buckets[L],x.last-x.first>Am?Am:x.bucketMs),tooltipTitle:(L)=>fm(x.buckets[L],Yn),series:x.series,hidden:f,kind:"line",stacked:!1,height:260,yMax:Math.max(1,x.max),format:(L)=>Re(L,0),formatTooltip:(L)=>Re(L,1),references:[{value:1,label:"100%"}],emptyLabel:"No utilization readings for this window",tooltipExtra:(L)=>{let D=x.exhausted[L];return D.length>0?J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:"Exhausted"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:D.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),x.series.length>1&&J.jsxDEV(Qa,{items:x.series.map((L)=>({key:L.key,label:L.label,color:L.color})),hidden:f,onToggle:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV("div",{className:"providers-accounts",children:J.jsxDEV(zt,{rows:C,rowKey:(L)=>`${L.series.windowKey}::${L.series.accountKey}`,columns:z2,limit:16,onRowClick:(L)=>c({provider:L.series.provider,windowKey:L.series.windowKey}),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function U2(r,i){let{POSITIVE_INFINITY:u,NEGATIVE_INFINITY:c}=Number;for(let R of r)for(let L of R.points){if(L.timestamp<u)u=L.timestamp;if(L.timestamp>c)c=L.timestamp}if(!(c>=u))return{buckets:[],bucketMs:Yn,first:0,last:0,max:0,series:[],exhausted:[]};let f=c-u,v=O2.find((R)=>f/R<q2)??Am,p=Po("all",[u],v,c),b=(R)=>Math.floor((R-p[0])/v),S=p.map(()=>[]),k=0,h=(R)=>i.get(R.accountKey)??R.accountLabel,C=[...r].sort((R,L)=>h(R).localeCompare(h(L))).map((R,L)=>{let D=p.map(()=>null),_=p.map(()=>0);for(let K of R.points){let N=b(K.timestamp);if(N<0||N>=p.length)continue;if(K.exhausted&&!S[N].includes(h(R)))S[N].push(h(R));if(K.usedFraction===null||K.timestamp<_[N])continue;D[N]=K.usedFraction,_[N]=K.timestamp,k=Math.max(k,K.usedFraction)}let z=null,F=0;for(let K=0;K<p.length;K++)if(D[K]!==null)z=D[K],F=_[K];else if(z!==null&&p[K]-F<=B2)D[K]=z;return{key:R.accountKey,label:h(R),color:Ha[L%Ha.length],values:D}});return{buckets:p,bucketMs:v,first:u,last:c,max:k,series:C,exhausted:S}}function P2(r){if(!r)return J.jsxDEV("span",{className:"dim",children:"No reading"},void 0,!1,void 0,this);if(r.exhausted)return J.jsxDEV(wt,{tone:"bad",children:"Exhausted"},void 0,!1,void 0,this);if(r.fraction>=0.8)return J.jsxDEV(wt,{tone:"warn",children:"High"},void 0,!1,void 0,this);return J.jsxDEV(wt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}var z2=[{key:"account",header:"Account",sort:(r)=>r.name,render:(r)=>J.jsxDEV("span",{className:"row",style:{gap:8},children:[J.jsxDEV("span",{className:"providers-swatch-slot",children:r.color&&J.jsxDEV(Sl,{color:r.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV("span",{className:"truncate providers-account",title:r.series.accountKey,children:r.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:"Window",sort:(r)=>r.series.windowLabel,render:(r)=>J.jsxDEV("span",{className:r.color?void 0:"muted",children:r.series.windowLabel},void 0,!1,void 0,this)},{key:"latest",header:"Latest used",align:"right",sort:(r)=>r.latest?.fraction??-1,render:(r)=>r.latest?J.jsxDEV(sa,{value:r.latest.fraction,max:1,display:Re(r.latest.fraction,0),color:r.latest.exhausted?"var(--bad)":r.latest.fraction>=0.8?"var(--warn)":"var(--ok)"},void 0,!1,void 0,this):J.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>r.latest?.exhausted?2:(r.latest?.fraction??0)>=0.8?1:0,render:(r)=>P2(r.latest)},{key:"peak",header:"Peak in range",align:"right",sort:(r)=>r.peak??-1,render:(r)=>J.jsxDEV("span",{className:"num",children:r.peak===null?"–":Re(r.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:"Snapshots",align:"right",sort:(r)=>r.samples,render:(r)=>J.jsxDEV("span",{className:"num muted",children:q(r.samples)},void 0,!1,void 0,this)},{key:"recorded",header:"Recorded",align:"right",sort:(r)=>r.latest?.timestamp??0,render:(r)=>J.jsxDEV("span",{className:"muted",children:r.latest?ia(r.latest.timestamp):"–"},void 0,!1,void 0,this)}];var tu=Y(ut(),1);var Je=Y(ce(),1),Dm={ok:{label:"OK",tone:"ok"},aborted:{label:"Aborted",tone:"warn"},failed:{label:"Failed",tone:"bad"}};function Pw({id:r,onClose:i}){let u=qt(["request",r],()=>Ik(r??0),{enabled:r!==null}),c=u.stale?null:u.data,f=c?Dm[Xn(c)]:null;return Je.jsxDEV(gm,{open:r!==null,onClose:i,width:620,title:c?Je.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this):"Request",subtitle:c?Je.jsxDEV(Je.Fragment,{children:[c.provider," ·"," ",Je.jsxDEV("span",{title:ll(c.timestamp),children:ia(c.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):r!==null?Je.jsxDEV("span",{className:"mono",children:["#",r]},void 0,!0,void 0,this):void 0,actions:c&&f?Je.jsxDEV("div",{className:"row",style:{gap:6},children:[Je.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:Cm({...Ec(window.location.hash),section:"traces",session:c.sessionFile}),onClick:i,title:"Open this request's session in the trace view",children:[Je.jsxDEV(vc,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),Je.jsxDEV(wt,{tone:f.tone,children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:c?Je.jsxDEV(_2,{details:c,aborted:Xn(c)==="aborted"},void 0,!1,void 0,this):u.error?Je.jsxDEV(bi,{error:u.error,onRetry:u.refetch},void 0,!1,void 0,this):Je.jsxDEV("div",{className:"stack",style:{gap:12},children:[Je.jsxDEV(Ea,{height:56},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:120},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:120},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function _2({details:r,aborted:i}){let{usage:u}=r,c=r.duration!==null&&r.duration>0&&u.output>0?u.output*1000/r.duration:null,{messages:f,output:v,...p}=r;return Je.jsxDEV(Je.Fragment,{children:[r.errorMessage&&Je.jsxDEV("section",{className:"request-drawer-error","data-tone":i?"warn":"bad",role:"note",children:[Je.jsxDEV("div",{className:"request-drawer-error-label",children:i?"Aborted":"Error"},void 0,!1,void 0,this),Je.jsxDEV("pre",{className:"request-drawer-error-text",children:r.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Timing"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"at",label:"Started",value:ll(r.timestamp)},{key:"duration",label:"Duration",value:St(r.duration)},{key:"ttft",label:"Time to first token",value:St(r.ttft)},{key:"tps",label:"Output tokens/s",value:dn(c)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"input",label:"Uncached input",value:q(u.input)},{key:"cacheRead",label:"Cache read",value:q(u.cacheRead)},{key:"cacheWrite",label:"Cache write",value:q(u.cacheWrite)},{key:"output",label:"Output",value:q(u.output)},{key:"total",label:"Total",value:q(u.totalTokens)},{key:"premium",label:"Premium requests",value:q(Math.round((u.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"API-equivalent cost"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"total",label:"Total",value:Yr(r,4)},{key:"input",label:"Input",value:ua(u.cost.input,4)},{key:"cacheRead",label:"Cache read",value:ua(u.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:ua(u.cost.cacheWrite,4)},{key:"output",label:"Output",value:ua(u.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Identity"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"id",label:"Request id",value:r.id??"–"},{key:"entry",label:"Entry id",value:r.entryId},{key:"stop",label:"Stop reason",value:r.stopReason},{key:"api",label:"API",value:r.api},{key:"project",label:"Project",value:Je.jsxDEV("span",{title:r.folder,children:cn(r.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"request-drawer-file",children:[Je.jsxDEV("span",{className:"kv-key",children:"Session file"},void 0,!1,void 0,this),Je.jsxDEV("span",{className:"kv-value",children:r.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV(pi,{data:v,title:"Output message"},void 0,!1,void 0,this),Je.jsxDEV(pi,{data:f,title:"Session entry",initialCollapsed:!0},void 0,!1,void 0,this),Je.jsxDEV(pi,{data:p,title:"Stats row",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Qe=Y(ce(),1),Eb=[500,2000,1e4];function zw({active:r,range:i,onRequestClick:u}){let[c,f]=tu.useState(0),v=Eb[c],p=qt(["requests-log",v],()=>mm(v),{enabled:r}),[b,S]=tu.useState(""),[k,h]=tu.useState("all"),x=na(i),C=tu.useMemo(()=>{let N=p.data??[],oe=x.spanMs===null?null:Date.now()-x.spanMs,B=oe===null?N:N.filter((W)=>W.timestamp>=oe),ee=!p.stale&&(N.length<v||oe!==null&&B.length<N.length),Z={all:B.length,ok:0,aborted:0,failed:0};for(let W of B)Z[Xn(W)]++;return{loaded:N.length,inRange:B,complete:ee,counts:Z,summary:yw(B)}},[p.data,p.stale,v,x.spanMs]),R=tu.useMemo(()=>{let N=b.trim().toLowerCase();return C.inRange.filter((oe)=>(k==="all"||Xn(oe)===k)&&(N===""||oe.model.toLowerCase().includes(N)||oe.provider.toLowerCase().includes(N)||oe.folder.toLowerCase().includes(N)))},[C.inRange,b,k]),{summary:L,counts:D,complete:_}=C,z=c+1<Eb.length?Eb[c+1]:null,F=z!==null?Qe.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:p.refreshing,onClick:()=>f(c+1),children:p.refreshing&&p.stale?"Loading…":`Load latest ${q(z)}`},void 0,!1,void 0,this):void 0,K=["all","ok","aborted","failed"].map((N)=>({value:N,label:Qe.jsxDEV(Qe.Fragment,{children:[N==="all"?"All":Dm[N].label," ",Qe.jsxDEV("span",{className:"dim num",children:Me(D[N])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return Qe.jsxDEV("div",{className:"page",children:[Qe.jsxDEV(ta,{title:"Requests",description:`Every model call omp made in ${x.windowLabel}, newest first. Open a row for its full payload.`},void 0,!1,void 0,this),Qe.jsxDEV(_e,{query:p,skeleton:Qe.jsxDEV(Ea,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Qe.jsxDEV("div",{"data-stale":p.stale,children:Qe.jsxDEV(aa,{min:160,children:[Qe.jsxDEV(fe,{label:"Requests",value:q(L.requests),hint:L.oldest===null?`none in ${x.windowLabel}`:`since ${ia(L.oldest)}`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Failed",value:q(L.failed),hint:`${L.requests>0?Re(L.failed/L.requests):"–"} · ${q(L.aborted)} aborted`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Tokens",title:"Total tokens across these requests",value:Me(L.tokens)},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"API-equivalent cost",title:"What these requests would cost at public API rates",value:Ot(L.cost,L.unpriced),hint:L.unpriced>0?`${q(L.unpriced)} unpriced`:void 0},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Median duration",value:St(L.medianDuration),hint:`p95 ${St(L.p95Duration)}`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Median TTFT",title:"Time to first token",value:St(L.medianTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Qe.jsxDEV(Ve,{index:1,title:"Request log",description:p.data===null?"Loading the latest requests…":_?`${q(R.length)} of ${q(L.requests)} requests in ${x.windowLabel}`:`${q(R.length)} of the latest ${q(L.requests)} requests`,actions:Qe.jsxDEV(Qe.Fragment,{children:[Qe.jsxDEV(un,{value:b,onChange:S,placeholder:"Model, provider or project"},void 0,!1,void 0,this),Qe.jsxDEV(za,{size:"sm","aria-label":"Status",options:K,value:k,onChange:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:p.stale,footer:p.data!==null&&!_?Qe.jsxDEV(Qe.Fragment,{children:[Qe.jsxDEV("span",{children:["Showing the latest ",q(C.loaded)," requests, back to"," ",L.oldest===null?"–":ll(L.oldest),". Older requests in"," ",x.windowLabel," are not loaded."]},void 0,!0,void 0,this),F]},void 0,!0,void 0,this):void 0,children:Qe.jsxDEV(_e,{query:p,skeleton:Qe.jsxDEV(ra,{rows:12},void 0,!1,void 0,this),children:()=>Qe.jsxDEV(zt,{rows:R,rowKey:(N)=>N.id??`${N.sessionFile}:${N.entryId}`,onRowClick:(N)=>N.id!==void 0&&u(N.id),columns:H2,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:Qe.jsxDEV(mt,{title:L.requests===0?`No requests in ${x.windowLabel}`:"No requests match",hint:L.requests===0?void 0:"Clear the search or status filter."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var H2=[{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>Qe.jsxDEV(_a,{primary:Qe.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:"When",sort:(r)=>r.timestamp,render:(r)=>Qe.jsxDEV("span",{className:"muted",title:ll(r.timestamp),children:ia(r.timestamp)},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>Qe.jsxDEV("span",{className:"mono muted truncate",title:r.folder,style:{display:"block",maxWidth:180},children:cn(r.folder)},void 0,!1,void 0,this)},{key:"input",header:"Input",title:"Uncached input tokens",align:"right",sort:(r)=>r.usage.input,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Me(r.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:"Cache read",title:"Cache read tokens (hover a cell for cache writes)",align:"right",sort:(r)=>r.usage.cacheRead,render:(r)=>Qe.jsxDEV("span",{className:"num",title:`Cache write: ${q(r.usage.cacheWrite)}`,children:Me(r.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:"Output",align:"right",sort:(r)=>r.usage.output,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Me(r.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Yr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",sort:(r)=>r.duration??-1,render:(r)=>Qe.jsxDEV("span",{className:"num",children:St(r.duration)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Time to first token",align:"right",sort:(r)=>r.ttft??-1,render:(r)=>Qe.jsxDEV("span",{className:"num muted",children:St(r.ttft)},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>Xn(r),render:(r)=>{let i=Dm[Xn(r)];return Qe.jsxDEV("span",{title:r.errorMessage??void 0,children:Qe.jsxDEV(_a,{lead:Qe.jsxDEV(rn,{tone:i.tone},void 0,!1,void 0,this),primary:i.label,secondary:Qe.jsxDEV("span",{className:"mono",children:r.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}];var ou=Y(ut(),1);var be=Y(ce(),1),F2=[{value:"calls",label:"Calls"},{value:"errors",label:"Errors"}],_w=6,au="Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls",Ob=be.jsxDEV(mt,{title:"No tool calls in this range"},void 0,!1,void 0,this);function Hw({active:r,range:i}){let u=qt(["tools",i],()=>Bk(i),{enabled:r}),[c,f]=ou.useState("calls"),[v,p]=nl(),[b,S]=ou.useState(null),k=na(i),h=ou.useMemo(()=>G2(u.data,i),[u.data,i]),x=b!==null&&h.toolNames.includes(b)?b:null,C=c==="calls"?h.callSeries:h.errorSeries,R=(L)=>L.byTool.length===0;return be.jsxDEV("div",{className:"page",children:[be.jsxDEV(ta,{title:"Tools",description:`Which tools omp called in ${k.windowLabel}, how often they failed, and what they cost.`},void 0,!1,void 0,this),be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:()=>{let L=h.totals;return be.jsxDEV("div",{"data-stale":u.stale,className:"stack",style:{gap:16},children:[be.jsxDEV(aa,{min:190,children:[be.jsxDEV(fe,{label:"Tool calls",value:q(L.calls),hint:`${q(L.errors)} failed`,spark:h.totalCalls},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Distinct tools",value:q(L.tools),hint:h.rows[0]?`Most used: ${h.rows[0].tool}`:void 0},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Error rate",title:"Tool results that came back flagged as errors",value:Re(L.calls>0?L.errors/L.calls:0),hint:`${q(L.calls-L.errors)} succeeded`,spark:h.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Attributed tokens",title:au,value:Me(Math.round(L.tokens)),hint:`${Me(Math.round(L.output))} output`},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Attributed cost",title:`${au}; API-equivalent estimate`,value:Ot(L.cost,L.unpriced),hint:L.unpriced>0?`${q(Math.round(L.unpriced))} unpriced requests`:"API-equivalent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(aa,{min:150,children:[be.jsxDEV(fe,{size:"sm",label:"Result text",title:"Characters of tool-result text fed back into context",value:`${Me(L.resultChars)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Call arguments",title:"Characters of serialized tool-call arguments",value:`${Me(L.argsChars)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Avg result per call",value:`${Me(L.calls>0?Math.round(L.resultChars/L.calls):0)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Avg arguments per call",value:`${Me(L.calls>0?Math.round(L.argsChars/L.calls):0)} chars`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:1,title:c==="calls"?"Calls over time":"Errors over time",description:`Per ${k.bucketMs<3600000?"5 minutes":k.bucketMs<86400000?"hour":"day"}, top ${_w} tools stacked`,actions:be.jsxDEV(za,{size:"sm",options:F2,value:c,onChange:f},void 0,!1,void 0,this),stale:u.stale,children:be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),isEmpty:R,empty:Ob,children:()=>be.jsxDEV("div",{className:"stack",style:{gap:12},children:[be.jsxDEV($n,{buckets:h.buckets,bucketMs:k.bucketMs,series:C,hidden:v,height:260,formatTooltip:q,emptyLabel:c==="errors"?"No tool errors in this range":void 0},void 0,!1,void 0,this),be.jsxDEV(Qa,{items:C.map((L)=>({key:L.key,label:L.label,color:L.color,value:Me(L.values.reduce((D,_)=>D+(_??0),0))})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:2,title:"By tool",description:`${au}. Select a tool to break it down by model.`,flush:!0,stale:u.stale,children:be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:R,empty:Ob,children:()=>be.jsxDEV(zt,{rows:h.rows,rowKey:(L)=>L.tool,columns:h.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:x,onRowClick:(L)=>S((D)=>D===L.tool?null:L.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:3,title:"By tool and model",description:"Which models call which tools, and how often those calls fail",flush:!0,stale:u.stale,actions:be.jsxDEV("div",{className:"row",style:{gap:6},children:[be.jsxDEV("select",{className:"input tools-filter",value:x??"",onChange:(L)=>S(L.target.value||null),"aria-label":"Filter by tool",children:[be.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),h.toolNames.map((L)=>be.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))]},void 0,!0,void 0,this),x!==null&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:"Clear tool filter","aria-label":"Clear tool filter",onClick:()=>S(null),children:be.jsxDEV(al,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:R,empty:Ob,children:(L)=>be.jsxDEV($2,{rows:L.byToolModel,tool:x,colors:h.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function G2(r,i){let u=r?.byTool??[],c=r?.series??[],f=gw(u).sort((R,L)=>L.calls-R.calls),v=qc(u.map((R)=>({key:R.tool,weight:R.calls}))),p=Po(i,c.map((R)=>R.timestamp)),b={calls:0,errors:0,tools:u.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let R of u)b.calls+=R.calls,b.errors+=R.errors,b.tokens+=R.totalTokensShare,b.output+=R.outputTokensShare,b.cost+=R.costShare,b.unpriced+=R.unpricedRequestsShare,b.resultChars+=R.resultChars,b.argsChars+=R.argsChars;let[S,k]=[(R)=>R.calls,(R)=>R.errors].map((R)=>mn(c,{buckets:p,key:(L)=>L.tool,value:R,limit:_w,colors:v}).map((L)=>({...L,values:L.values.map((D)=>D||null)}))),h=new Map(mn(c,{buckets:p,key:(R)=>R.tool,value:(R)=>R.calls}).map((R)=>[R.key,R.values])),x=f[0]?.calls??0,C=V2(x,v,h);return{rows:f,colors:v,buckets:p,totals:b,callSeries:S,errorSeries:k,totalCalls:ba(c,p,(R)=>R.calls),totalErrors:ba(c,p,(R)=>R.errors),toolNames:f.map((R)=>R.tool).sort((R,L)=>R.localeCompare(L)),toolColumns:C}}function V2(r,i,u){return[{key:"tool",header:"Tool",sort:(c)=>c.tool,render:(c)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(Sl,{color:i.get(c.tool)??eo},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:c.tool,children:c.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:"Trend",title:"Calls per bucket over the range",render:(c)=>{let f=u.get(c.tool);return f&&f.length>1?be.jsxDEV(gi,{values:f,width:80,height:20,color:i.get(c.tool)??eo},void 0,!1,void 0,this):be.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:"Calls",align:"right",sort:(c)=>c.calls,render:(c)=>be.jsxDEV(sa,{value:c.calls,max:r,display:be.jsxDEV("span",{title:`${Re(c.callFraction)} of all tool calls`,children:[q(c.calls),be.jsxDEV("span",{className:"dim tools-share",children:Re(c.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",title:"Calls whose result came back flagged as an error",align:"right",sort:(c)=>c.errorRate,render:(c)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:q(c.errors)},void 0,!1,void 0,this),be.jsxDEV(wt,{tone:c.errors>0?sn(c.errorRate):"neutral",mono:!0,children:Re(c.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:"Args",title:"Characters of serialized tool-call arguments",align:"right",sort:(c)=>c.argsChars,render:(c)=>be.jsxDEV("span",{className:"num",children:Me(c.argsChars)},void 0,!1,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(c)=>c.resultChars,render:(c)=>be.jsxDEV("span",{className:"num",children:Me(c.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:"Result / call",title:"Mean tool-result characters per call",align:"right",sort:(c)=>c.avgResultChars,render:(c)=>be.jsxDEV("span",{className:"num muted",children:Me(Math.round(c.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:au,align:"right",sort:(c)=>c.totalTokensShare,render:(c)=>be.jsxDEV("span",{className:"num",title:`${Re(c.tokenFraction)} of attributed tokens`,children:[Me(Math.round(c.totalTokensShare)),be.jsxDEV("span",{className:"dim tools-share",children:Re(c.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:"Attr. cost",title:`${au}; API-equivalent estimate`,align:"right",sort:(c)=>c.costShare,render:(c)=>be.jsxDEV("span",{className:"num",title:`${Re(c.costFraction)} of attributed cost`,children:[Ot(c.costShare,c.unpricedRequestsShare),be.jsxDEV("span",{className:"dim tools-share",children:Re(c.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(c)=>c.lastUsed,render:(c)=>be.jsxDEV("span",{className:"muted",children:ia(c.lastUsed)},void 0,!1,void 0,this)}]}function $2({rows:r,tool:i,colors:u}){let c=ou.useMemo(()=>(i===null?r:r.filter((v)=>v.tool===i)).map((v)=>({...v,errorRate:v.calls>0?v.errors/v.calls:0})),[r,i]),f=ou.useMemo(()=>{let v=c.reduce((p,b)=>Math.max(p,b.calls),0);return[{key:"tool",header:"Tool",sort:(p)=>p.tool,render:(p)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(Sl,{color:u.get(p.tool)??eo},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:p.tool,children:p.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:"Model",sort:(p)=>p.model,render:(p)=>be.jsxDEV(_a,{primary:be.jsxDEV("span",{className:"mono",children:p.model||"(unknown)"},void 0,!1,void 0,this),secondary:p.provider},void 0,!1,void 0,this)},{key:"calls",header:"Calls",align:"right",sort:(p)=>p.calls,render:(p)=>be.jsxDEV(sa,{value:p.calls,max:v,display:q(p.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(p)=>p.errorRate,render:(p)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:q(p.errors)},void 0,!1,void 0,this),be.jsxDEV(wt,{tone:p.errors>0?sn(p.errorRate):"neutral",mono:!0,children:Re(p.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(p)=>p.resultChars,render:(p)=>be.jsxDEV("span",{className:"num",children:Me(p.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:au,align:"right",sort:(p)=>p.totalTokensShare,render:(p)=>be.jsxDEV("span",{className:"num",children:Me(Math.round(p.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. cost",title:`${au}; API-equivalent estimate`,align:"right",sort:(p)=>p.costShare,render:(p)=>be.jsxDEV("span",{className:"num",children:Ot(p.costShare,p.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(p)=>p.lastUsed,render:(p)=>be.jsxDEV("span",{className:"muted",children:ia(p.lastUsed)},void 0,!1,void 0,this)}]},[c,u]);return be.jsxDEV(zt,{rows:c,rowKey:(v)=>`${v.tool}::${v.model}::${v.provider}`,columns:f,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:be.jsxDEV(mt,{title:i?`No calls to ${i} in this range`:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ti=Y(ut(),1);var Bt=Y(ut(),1);var hn=Y(ce(),1);function Fw({toolStats:r,index:i}){if(r.length===0)return null;let u=Math.max(...r.map((f)=>f.totalMs)),c=[{key:"tool",header:"Tool",render:(f)=>hn.jsxDEV("span",{className:"mono",children:f.tool},void 0,!1,void 0,this),sort:(f)=>f.tool},{key:"calls",header:"Calls",align:"right",render:(f)=>hn.jsxDEV("span",{className:"num",children:q(f.calls)},void 0,!1,void 0,this),sort:(f)=>f.calls},{key:"errors",header:"Errors",align:"right",render:(f)=>f.errors>0?hn.jsxDEV(wt,{tone:"bad",children:[q(f.errors)," failed"]},void 0,!0,void 0,this):hn.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(f)=>f.errors},{key:"total",header:"Total",align:"right",width:200,render:(f)=>hn.jsxDEV(sa,{value:f.totalMs,max:u,display:St(f.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(f)=>f.totalMs},{key:"avg",header:"Avg",align:"right",render:(f)=>hn.jsxDEV("span",{className:"num",children:St(f.calls>0?f.totalMs/f.calls:0)},void 0,!1,void 0,this),sort:(f)=>f.calls>0?f.totalMs/f.calls:0},{key:"max",header:"Max",align:"right",render:(f)=>hn.jsxDEV("span",{className:"num",children:St(f.maxMs)},void 0,!1,void 0,this),sort:(f)=>f.maxMs}];return hn.jsxDEV(Ve,{title:"Tool aggregates",description:`${r.length} tools, by total time`,flush:!0,index:i,children:hn.jsxDEV(zt,{columns:c,rows:r,rowKey:(f)=>f.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Tl=Y(ut(),1);var xi=Y(ut(),1);var lu={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function X2(){let r=getComputedStyle(document.documentElement),i=(u,c)=>r.getPropertyValue(u).trim()||c;return{category:{turn:i(lu.turn,"#a0a0a8"),model:i(lu.model,"#5ad8e6"),tool:i(lu.tool,"#f5a524"),subagent:i(lu.subagent,"#ed4abf"),background:i(lu.background,"#46464c")},error:i("--bad","#ff6166"),errorSoft:i("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:i("--ink-1","#ededef"),turnBand:i("--hover","rgba(255, 255, 255, 0.035)"),grid:i("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:i("--chart-axis","#5c5c64"),spanText:i("--ink-inverse","#0a0a0b"),selection:i("--focus","#5ad8e6"),brush:i("--selected","rgba(255, 255, 255, 0.075)"),fontSans:i("--font-sans","system-ui, sans-serif"),fontMono:i("--font-mono","ui-monospace, monospace")}}function Li(){let r=Jk(),[i,u]=xi.useState(0);return xi.useEffect(()=>{let c=new MutationObserver(()=>u((f)=>f+1));return c.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>c.disconnect()},[]),xi.useMemo(X2,[r,i])}var $w=Y(ce(),1),Wr=44,qb=["turn","model","tool","subagent"],Gw=6,Ci=10;function Vw({tracks:r,scale:i,viewport:u,onViewportChange:c}){let f=Li(),v=Tl.useRef(null),[p,b]=Tl.useState(800),S=Tl.useRef(null);Tl.useEffect(()=>{let z=v.current;if(!z)return;let F=new ResizeObserver((K)=>{b(Math.max(100,Math.floor(K[0].contentRect.width)))});return F.observe(z),()=>F.disconnect()},[]);let[k,h]=i.domain,x=Math.max(h-k,0.000000001),C=Tl.useCallback((z)=>(z-k)/x*p,[k,x,p]),R=Tl.useCallback((z)=>k+z/Math.max(p,1)*x,[k,x,p]);Tl.useEffect(()=>{let z=v.current;if(!z)return;let F=z.getContext("2d");if(!F)return;let K=devicePixelRatio;F.setTransform(K,0,0,K,0,0),F.clearRect(0,0,p,Wr);let N=Wr/qb.length;for(let ee=0;ee<qb.length;ee++){let Z=qb[ee],W=new Float32Array(p);for(let X of r)for(let ge of X.spans){if(ge.kind!==Z)continue;let Ne=Math.max(0,Math.floor(C(i.toU(ge.start)))),Ce=Math.min(p-1,Math.ceil(C(i.toU(ge.end))));for(let Be=Ne;Be<=Ce;Be++)W[Be]=Math.min(1,W[Be]+0.34)}F.fillStyle=f.category[Z];for(let X=0;X<p;X++){if(W[X]<=0)continue;F.globalAlpha=0.25+W[X]*0.75,F.fillRect(X,ee*N+1,1,N-2)}F.globalAlpha=1}let oe=C(u.u0),B=C(u.u1);F.fillStyle=f.brush,F.fillRect(oe,0,B-oe,Wr),F.strokeStyle=f.selection,F.strokeRect(oe+0.5,0.5,B-oe-1,Wr-1),F.fillStyle=f.selection,F.fillRect(oe,0,2,Wr),F.fillRect(B-2,0,2,Wr)},[r,i,u,f,p,C]);let L=(z)=>{let F=z.currentTarget.getBoundingClientRect(),K=z.clientX-F.left,N=C(u.u0),oe=C(u.u1),B;if(Math.abs(K-N)<=Gw)B="left";else if(Math.abs(K-oe)<=Gw)B="right";else if(K>N&&K<oe)B="move";else{B="create";let ee=R(K);c(Fc({u0:ee,u1:ee+Ci},k,h))}S.current={mode:B,startX:K,startViewport:u},z.currentTarget.setPointerCapture(z.pointerId)},D=(z)=>{let F=S.current;if(!F)return;let K=z.currentTarget.getBoundingClientRect(),N=z.clientX-K.left,oe=R(N)-R(F.startX),{u0:B,u1:ee}=F.startViewport;if(F.mode==="move")c(Fc({u0:B+oe,u1:ee+oe},k,h));else if(F.mode==="left")c(Fc({u0:Math.min(B+oe,ee-Ci),u1:ee},k,h));else if(F.mode==="right")c(Fc({u0:B,u1:Math.max(ee+oe,B+Ci)},k,h));else{let Z=R(F.startX),W=R(N);c(Fc({u0:Math.min(Z,W),u1:Math.max(Z,W,Math.min(Z,W)+Ci)},k,h))}},_=()=>{S.current=null};return $w.jsxDEV("canvas",{ref:v,width:Math.floor(p*devicePixelRatio),height:Math.floor(Wr*devicePixelRatio),className:"traces-minimap",style:{height:Wr},role:"slider","aria-label":"Timeline overview brush","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((u.u0-k)/x*100),tabIndex:-1,onPointerDown:L,onPointerMove:D,onPointerUp:_},void 0,!1,void 0,this)}function Fc(r,i,u){let c=Math.max(Ci,r.u1-r.u0);c=Math.min(c,u-i||Ci);let f=r.u0;if(f<i)f=i;if(f+c>u)f=u-c;return{u0:f,u1:f+c}}var gn=Y(ut(),1);var et=Y(ce(),1);function j2(r){let i=[];if(typeof r==="string"){if(r.trim())i.push({kind:"text",text:r});return i}if(!Array.isArray(r))return i;for(let u of r){if(!u||typeof u!=="object"||!("type"in u))continue;if((u.type==="text"||u.type==="thinking")&&"text"in u&&typeof u.text==="string")i.push({kind:String(u.type),text:u.text})}return i}function Xw({span:r,track:i,onClose:u,onOpenChildTrack:c}){let[f,v]=gn.useState(null),[p,b]=gn.useState(!1),[S,k]=gn.useState(null),[h,x]=gn.useState(!1),C=gn.useRef(0);if(gn.useEffect(()=>{if(v(null),k(null),x(!1),b(!1),!r||!i||!r.entryId)return;b(!0);let F=new AbortController;return zk(i.file,r.entryId,F.signal).then((K)=>{if(!F.signal.aborted)v(K.entry)}).catch((K)=>{if(F.signal.aborted)return;k(K instanceof Error?K:Error(String(K)))}).finally(()=>{if(!F.signal.aborted)b(!1)}),()=>F.abort()},[r,i]),gn.useEffect(()=>()=>window.clearTimeout(C.current),[]),!r)return null;let R=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(f??r,null,2)),x(!0),window.clearTimeout(C.current),C.current=window.setTimeout(()=>x(!1),1500)}catch{}},D=(f&&typeof f==="object"?f:{}).message,_=D?.usage,z=[{key:"duration",label:"Duration",value:et.jsxDEV("span",{className:"num",children:[St(r.end-r.start),r.unterminated&&et.jsxDEV("span",{className:"muted",children:" · unterminated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:"Start",value:et.jsxDEV("span",{className:"num",children:new Date(r.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:"Track",value:et.jsxDEV("span",{className:"mono",children:i?.label??"-"},void 0,!1,void 0,this)}];if(r.kind==="model"){if(z.push({key:"tokens",label:"Tokens",value:et.jsxDEV("span",{className:"num",children:q(r.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:"Cost",value:et.jsxDEV("span",{className:"num",children:["$",(r.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:"TTFT",value:et.jsxDEV("span",{className:"num",children:St(r.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:"Model",value:et.jsxDEV("span",{className:"mono",children:D?.model??r.model??"-"},void 0,!1,void 0,this)}),_)z.push({key:"split",label:"Input / output / cached",value:et.jsxDEV("span",{className:"num",children:[q(_.input??0)," / ",q(_.output??0)," /"," ",q(_.cacheRead??0)]},void 0,!0,void 0,this)});if(D?.provider)z.push({key:"provider",label:"Provider",value:et.jsxDEV("span",{className:"mono",children:D.provider},void 0,!1,void 0,this)});if(D?.stopReason)z.push({key:"stop",label:"Stop reason",value:et.jsxDEV("span",{className:"mono",children:D.stopReason},void 0,!1,void 0,this)})}return et.jsxDEV(gm,{open:!0,onClose:u,title:r.label,subtitle:et.jsxDEV("span",{className:"row",style:{gap:6},children:et.jsxDEV(wt,{tone:r.isError?"bad":"neutral",children:r.isError?`${r.kind} · error`:r.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:et.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:R,"aria-label":"Copy raw JSON",title:"Copy raw JSON",children:h?et.jsxDEV(Vs,{size:15},void 0,!1,void 0,this):et.jsxDEV(Xs,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:et.jsxDEV("div",{className:"stack traces-drawer",children:[et.jsxDEV(_o,{items:z},void 0,!1,void 0,this),D?.errorMessage&&et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label tone-bad",children:"Error message"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="subagent"&&et.jsxDEV("div",{className:"stack",style:{gap:8},children:[r.detail&&et.jsxDEV(et.Fragment,{children:[et.jsxDEV("div",{className:"section-label",children:"Task"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.childTrackId&&c&&et.jsxDEV("div",{children:et.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>c(r.childTrackId??""),children:["Open child track ",et.jsxDEV("span",{className:"mono",children:r.childTrackId},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="tool"&&r.detail&&et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label",children:"Args"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&et.jsxDEV("div",{className:"stack",children:[et.jsxDEV(Ea,{height:80},void 0,!1,void 0,this),et.jsxDEV(Ea,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&et.jsxDEV(bi,{error:`Failed to load entry: ${S.message}`},void 0,!1,void 0,this),!p&&f!==null&&j2(D?.content).map((F,K)=>et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label",children:F.kind==="thinking"?"Thinking":"Text"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:F.text},void 0,!1,void 0,this)]},`${F.kind}-${K}`,!0,void 0,this)),!p&&f!==null&&et.jsxDEV(pi,{data:f,title:"Raw entry",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Il=Y(ce(),1);function jw({summary:r}){let i=(u)=>r.wallMs>0?`${Re(u/r.wallMs)} of wall`:void 0;return Il.jsxDEV(aa,{min:112,children:[Il.jsxDEV(fe,{size:"sm",label:"Wall time",value:Ws(r.wallMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Model time",value:Ws(r.modelMs),hint:i(r.modelMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Tool time",value:Ws(r.toolMs),hint:i(r.toolMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Idle",value:Ws(r.idleMs),hint:i(r.idleMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Turns",value:q(r.turns)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Requests",value:q(r.requests),hint:`${q(r.toolCalls)} tool calls`},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Agents",value:q(r.subagents)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Tokens",value:Me(r.totalTokens)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Cost",value:Ot(r.costTotal,r.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Wt=Y(ut(),1),eT=Y(rc(),1);function Em(r,i){let u=r.length,c=[i[0],i[u-1]],f=(v,p)=>{let b=0,S=u-1;while(b<S){let k=b+S+1>>1;if(v[k]<=p)b=k;else S=k-1}return Math.min(b,u-2)};return{toU(v){if(v<=r[0])return i[0];if(v>=r[u-1])return i[u-1];let p=f(r,v),b=r[p+1]-r[p];if(b<=0)return i[p];return i[p]+(v-r[p])/b*(i[p+1]-i[p])},toT(v){if(v<=i[0])return r[0];if(v>=i[u-1])return r[u-1];let p=f(i,v),b=i[p+1]-i[p];if(b<=0)return r[p];return r[p]+(v-i[p])/b*(r[p+1]-r[p])},domain:c,gaps:[]}}function Y2(r){let i=[];for(let u of r)for(let c of u.spans)i.push([c.start,c.end]);return i.sort((u,c)=>u[0]-c[0]),i}function Q2(r){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:u}=Number;for(let c of r)for(let f of c.spans){if(f.start<i)i=f.start;if(f.end>u)u=f.end}if(!Number.isFinite(i))return[0,1];return[i,Math.max(u,i+1)]}function Yw(r,i,u){let c=[...new Set(r.filter((b)=>b>=i&&b<=u))].sort((b,S)=>b-S);if(c[0]!==i)c.unshift(i);if(c[c.length-1]!==u)c.push(u);if(c.length<2)return Em([i,u],[i,u]);let v=(u-i)/(c.length-1),p=c.map((b,S)=>i+S*v);return Em(c,p)}function Z2(r,i,u){let c=Y2(r),f=[];for(let[h,x]of c){let C=h-2000,R=x+2000,L=f[f.length-1];if(L&&C<=L[1]){if(R>L[1])L[1]=R}else f.push([C,R])}if(f.length===0)f.push([i,u]);f[0][0]=Math.max(f[0][0],i),f[f.length-1][1]=Math.min(Math.max(f[f.length-1][1],f[f.length-1][0]),u);let v=[],p=[],b=[],S=f[0][0];for(let h=0;h<f.length;h++){let[x,C]=f[h];if(h===0)v.push(x),p.push(S);else{let R=f[h-1][1],L=x-R;if(L>30000)S+=8000,b.push({t0:R,t1:x,uMid:S-4000});else S+=L;v.push(x),p.push(S)}S+=Math.max(0,C-x),v.push(C),p.push(S)}return{...Em(v,p),gaps:b}}function Qw(r,i,u){let[c,f]=Q2(r);if(i==="turns"){let p=(r.find((b)=>b.id==="main")?.spans??[]).filter((b)=>b.kind==="turn").map((b)=>b.start);return Yw(p,c,f)}if(i==="calls"){let v=[];for(let p of r)for(let b of p.spans)if(b.kind==="model"||b.kind==="tool"||b.kind==="background")v.push(b.start,b.end);return Yw(v,c,f)}if(u)return Z2(r,c,f);return Em([c,f],[c,f])}var W2=90;function K2(r){let i=10**Math.floor(Math.log10(Math.max(r,1)));for(let u of[1,2,5,10])if(i*u>=r)return i*u;return i*10}function J2(r){let i=new Date(r),u=String(i.getHours()).padStart(2,"0"),c=String(i.getMinutes()).padStart(2,"0"),f=String(i.getSeconds()).padStart(2,"0");return`${u}:${c}:${f}`}function ki(r){let i=r<0?"-":"+",u=Math.abs(r),c=Math.floor(u/3600000),f=Math.floor(u%3600000/60000),v=Math.floor(u%60000/1000),p=Math.floor(u%1000),b=u%1000!==0,S=`${String(f).padStart(2,"0")}:${String(v).padStart(2,"0")}${b?".":""}${b?String(p).padStart(3,"0"):""}`;return c>0?`${i}${c}:${S}`:`${i}${S}`}function Zw(r,i,u,c){let f=u-i;if(f<=0||c<=0)return[];let v=[],p=r.domain[0],b=K2(f*W2/c),S=p+Math.ceil((i-p)/b)*b,k=0;for(let h=S;h<=u&&k<200;h+=b,k++){let x=r.toT(h),C=Math.round((h-p)/b)%5===0;v.push({u:h,label:C?J2(x):ki(h-p),major:C})}return v}var Rt=Y(ce(),1),Qn=28,Nb=22,So=18,Ww=3,eD=14,Kw=200,Bb=10,tD=2,aD=4,oD=56,Jw=3,lD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tools"},{kind:"subagent",label:"Agents"},{kind:"background",label:"Bg"}];function nD(r,i){let u=new Map(r.map((S)=>[S.id,S])),c=new Set;for(let S of r)if(S.parentId)c.add(S.parentId);let f=(S)=>{let k=S.parentId;while(k){if(i.has(k))return!0;k=u.get(k)?.parentId??null}return!1},v=[],p=[],b=Qn+6;for(let S of r){if(f(S))continue;let k=S.id==="main"?0:S.id.split("/").length,h={track:S,depth:k,hasChildren:c.has(S.id),headerY:b,lanes:[],y0:b,y1:b};b+=Nb;for(let{kind:x,label:C}of lD){let R=S.spans.filter((_)=>_.kind===x),L=x==="turn"||x==="model"||x==="tool";if(R.length===0&&!(S.id==="main"&&L))continue;let D={track:S,kind:x,label:C,y:b,spans:R};h.lanes.push(D),p.push(D),b+=So+Ww}h.y1=b-Ww,v.push(h),b+=eD}return{blocks:v,lanes:p,totalHeight:Math.max(b,Qn+48)}}function tT({tracks:r,scale:i,viewport:u,onViewportChange:c,selection:f,onSelect:v,search:p,collapsed:b,onToggleCollapse:S,traceStart:k}){let h=Li(),x=Wt.useRef(null),C=Wt.useRef(null),[R,L]=Wt.useState(800),[D,_]=Wt.useState(null),z=Wt.useRef([]),F=Wt.useRef(null),K=Wt.useRef(null),N=Wt.useRef(u);N.current=u;let oe=Wt.useMemo(()=>nD(r,b),[r,b]);Wt.useEffect(()=>{let ae=x.current;if(!ae)return;let P=new ResizeObserver((ue)=>{let se=Math.max(100,Math.floor(ue[0].contentRect.width-Kw));L(se)});return P.observe(ae),()=>P.disconnect()},[]);let B=Wt.useCallback((ae,P)=>{let[ue,se]=i.domain,ne=Math.max(Bb,P-ae);ne=Math.min(ne,se-ue||Bb);let pe=ae;if(pe<ue)pe=ue;if(pe+ne>se)pe=se-ne;return{u0:pe,u1:pe+ne}},[i]),ee=Wt.useCallback((ae)=>{N.current=ae,c(ae)},[c]),Z=Wt.useCallback((ae,P)=>{let ue=R,{u0:se,u1:ne}=N.current,pe=ne-se,Lt=P===null?0.5:Math.min(1,Math.max(0,P/ue)),Ye=se+pe*Lt,V=pe*ae;ee(B(Ye-V*Lt,Ye+V*(1-Lt)))},[R,ee,B]),W=Wt.useCallback((ae)=>{let{u0:P,u1:ue}=N.current;ee(B(P+ae,ue+ae))},[ee,B]),X=Wt.useCallback((ae)=>{let P=i.toU(ae.start),ue=i.toU(ae.end),se=Math.max((ue-P)*0.1,Bb/2);ee(B(P-se,ue+se))},[i,ee,B]);Wt.useEffect(()=>{let ae=C.current;if(!ae)return;let P=(ue)=>{ue.preventDefault();let se=ae.getBoundingClientRect(),ne=ue.clientX-se.left;K.current=ne,_(null);let pe=ae.clientWidth||1,Lt=()=>N.current.u1-N.current.u0;if(ue.shiftKey){let Ye=Math.abs(ue.deltaY)>=Math.abs(ue.deltaX)?ue.deltaY:ue.deltaX;W(Ye/pe*Lt());return}if(ue.deltaX!==0)W(ue.deltaX/pe*Lt());if(ue.deltaY!==0)Z(1.0015**ue.deltaY,ne)};return ae.addEventListener("wheel",P,{passive:!1}),()=>ae.removeEventListener("wheel",P)},[Z,W]);let ge=Wt.useCallback((ae,P)=>{let ue=C.current;if(!ue)return null;let se=ue.getBoundingClientRect(),ne=ae-se.left,pe=P-se.top,Lt=z.current;for(let Ye=Lt.length-1;Ye>=0;Ye--){let V=Lt[Ye];if(ne>=V.x&&ne<=V.x+V.w&&pe>=V.y&&pe<=V.y+V.h)return V}return null},[]),Ne=(ae)=>{ae.currentTarget.setPointerCapture(ae.pointerId),F.current={pointerId:ae.pointerId,lastX:ae.clientX,moved:!1},ae.currentTarget.focus()},Ce=(ae)=>{let P=ae.currentTarget.getBoundingClientRect();K.current=ae.clientX-P.left;let ue=F.current;if(ue&&ue.pointerId===ae.pointerId){let ne=ae.clientX-ue.lastX;if(Math.abs(ne)>0){if(Math.abs(ne)>2)ue.moved=!0;ue.lastX=ae.clientX;let pe=N.current.u1-N.current.u0;W(-ne/(R||1)*pe)}_(null);return}let se=ge(ae.clientX,ae.clientY);_(se?{hit:se,clientX:ae.clientX,clientY:ae.clientY}:null)},Be=(ae)=>{let P=F.current;if(F.current=null,P?.moved)return;let ue=ge(ae.clientX,ae.clientY);if(ue?.kind==="span")v(ue.span.id);else v(null)},te=(ae)=>{let P=ge(ae.clientX,ae.clientY);if(P?.kind==="span")X(P.span)},ve=Wt.useCallback((ae)=>{if(!f)return;for(let P of oe.lanes){let ue=P.spans.findIndex((pe)=>pe.id===f);if(ue===-1)continue;let se=P.spans[ue+ae];if(!se)return;v(se.id);let ne=i.toU(se.start);if(ne<u.u0||ne>u.u1){let pe=u.u1-u.u0;c(B(ne-pe/2,ne+pe/2))}return}},[f,oe,v,i,u,c,B]),ke=(ae)=>{let P=u.u1-u.u0;switch(ae.key){case"w":case"W":Z(0.7692307692307692,K.current);break;case"s":case"S":Z(1.3,K.current);break;case"a":case"A":W(-P*0.2);break;case"d":case"D":W(P*0.2);break;case"0":c({u0:i.domain[0],u1:i.domain[1]});break;case"f":case"F":{if(!f)break;let ue=r.flatMap((se)=>se.spans).find((se)=>se.id===f);if(ue)X(ue);break}case"Escape":v(null);break;case",":ve(-1);break;case".":ve(1);break;default:return}ae.preventDefault()};Wt.useEffect(()=>{C.current?.focus({preventScroll:!0})},[]),Wt.useEffect(()=>{let ae=C.current;if(!ae)return;let P=requestAnimationFrame(()=>{rD(ae,oe,i,u,h,{width:R,selection:f,hoverId:D?.hit.kind==="span"?D.hit.span.id:null,search:p,hits:z})});return()=>cancelAnimationFrame(P)},[oe,i,u,h,R,f,D,p]);let je=D?sD(D,k):null;return Rt.jsxDEV("div",{ref:x,className:"traces-timeline",children:[Rt.jsxDEV("div",{style:{width:Kw,flexShrink:0,position:"relative",height:oe.totalHeight},children:oe.blocks.map((ae)=>Rt.jsxDEV("div",{children:[Rt.jsxDEV("div",{style:{position:"absolute",top:ae.headerY,left:4+ae.depth*14,right:8,height:Nb,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[ae.hasChildren?Rt.jsxDEV("button",{type:"button",onClick:()=>S(ae.track.id),"aria-label":b.has(ae.track.id)?`Expand ${ae.track.label}`:`Collapse ${ae.track.label}`,className:"traces-chevron",children:b.has(ae.track.id)?Rt.jsxDEV(vl,{size:12},void 0,!1,void 0,this):Rt.jsxDEV($s,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):Rt.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),Rt.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:ae.track.label},void 0,!1,void 0,this),ae.track.model&&Rt.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:ae.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.lanes.map((P)=>Rt.jsxDEV("div",{className:"traces-gutter-lane",style:{top:P.y,left:20+ae.depth*14,lineHeight:`${So}px`},children:P.label},`${P.track.id}:${P.kind}`,!1,void 0,this))]},ae.track.id,!0,void 0,this))},void 0,!1,void 0,this),Rt.jsxDEV("canvas",{ref:C,className:"traces-canvas",width:Math.floor(R*devicePixelRatio),height:Math.floor(oe.totalHeight*devicePixelRatio),style:{width:R,height:oe.totalHeight},tabIndex:0,role:"application","aria-label":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.",onPointerDown:Ne,onPointerMove:Ce,onPointerUp:Be,onPointerLeave:()=>{K.current=null,_(null)},onDoubleClick:te,onKeyDown:ke},void 0,!1,void 0,this),je&&eT.createPortal(je,document.body)]},void 0,!0,void 0,this)}function Gc(r,i,u,c,f){if(r.beginPath(),c>=Jw*2+1)r.roundRect(i,u,c,f,Jw);else r.rect(i,u,c,f)}function rD(r,i,u,c,f,v){let p=r.getContext("2d");if(!p)return;let{width:b,selection:S,hoverId:k,search:h,hits:x}=v,C=i.totalHeight,R=devicePixelRatio;p.setTransform(R,0,0,R,0,0),p.clearRect(0,0,b,C);let{u0:L,u1:D}=c,_=Math.max(D-L,0.000000001),z=(N)=>(N-L)/_*b,F=h.trim().toLowerCase(),K=[];for(let N of i.blocks){let oe=N.track.spans.filter((B)=>B.kind==="turn");for(let B=0;B<oe.length;B++){let ee=z(u.toU(oe[B].start)),Z=B+1<oe.length?z(u.toU(oe[B+1].start)):b;if(Z<0||ee>b)continue;if(B%2===1)p.fillStyle=f.turnBand,p.fillRect(Math.max(0,ee),N.y0,Math.min(b,Z)-Math.max(0,ee),N.y1-N.y0);if(ee>=0&&ee<=b)p.strokeStyle=f.grid,p.beginPath(),p.moveTo(Math.round(ee)+0.5,N.y0),p.lineTo(Math.round(ee)+0.5,N.y1),p.stroke()}}for(let N of u.gaps){let oe=z(N.uMid);if(oe<-24||oe>b+24)continue;p.save(),p.strokeStyle=f.grid,p.setLineDash([2,4]),p.beginPath(),p.moveTo(oe,Qn),p.lineTo(oe,C),p.stroke(),p.restore(),p.fillStyle=f.tick,p.font=`9px ${f.fontMono}`,p.textAlign="center",p.fillText(`⋯ ${St(N.t1-N.t0)}`,oe,Qn-4),p.textAlign="left"}p.font=`9px ${f.fontMono}`;for(let N of Zw(u,L,D,b)){let oe=Math.round(z(N.u))+0.5;if(p.strokeStyle=f.grid,p.beginPath(),N.major)p.moveTo(oe,4),p.lineTo(oe,C);else p.moveTo(oe,Qn-8),p.lineTo(oe,Qn);if(p.stroke(),p.fillStyle=f.tick,N.major)p.fillText(N.label,oe+4,11);else p.globalAlpha=0.75,p.fillText(N.label,oe+3,Qn-10),p.globalAlpha=1}p.strokeStyle=f.grid,p.beginPath(),p.moveTo(0,Qn+0.5),p.lineTo(b,Qn+0.5),p.stroke();for(let N of i.lanes){let oe=N.kind==="turn";for(let B of N.spans){let ee=u.toU(B.start);if(ee>D)break;let Z=u.toU(B.end);if(Z<L)continue;let W=z(ee),X=Math.max(tD,z(Z)-W),ge=N.y,Ne=F===""||`${B.label} ${B.detail??""}`.toLowerCase().includes(F),Ce=f.category[B.kind];if(p.globalAlpha=Ne?1:0.3,oe)p.fillStyle=Ce,p.globalAlpha=(Ne?1:0.3)*0.23,Gc(p,W,ge,X,So),p.fill(),p.globalAlpha=Ne?1:0.3,p.fillStyle=Ce,p.fillRect(W,ge,2,So);else p.fillStyle=Ce,Gc(p,W,ge,X,So),p.fill();if(B.isError)p.fillStyle=f.errorSoft,Gc(p,W,ge,X,So),p.fill(),p.fillStyle=f.error,p.fillRect(W,ge,2,So);if(B.kind==="model"&&typeof B.ttft==="number"&&B.ttft>0&&X>20){let te=z(u.toU(B.start+B.ttft));if(te>W+1&&te<W+X-1)p.fillStyle="rgba(0,0,0,0.5)",p.fillRect(te,ge+3,1,So-6)}if(B.unterminated)p.save(),p.strokeStyle=f.tick,p.setLineDash([2,2]),p.beginPath(),p.moveTo(W+X-0.5,ge),p.lineTo(W+X-0.5,ge+So),p.stroke(),p.restore();if(k===B.id)p.fillStyle="rgba(255,255,255,0.16)",Gc(p,W,ge,X,So),p.fill();if(S===B.id)p.strokeStyle=f.selection,p.lineWidth=1.5,Gc(p,W-1,ge-1,X+2,So+2),p.stroke(),p.lineWidth=1;if(X>oD)p.save(),p.beginPath(),p.rect(W+3,ge,X-6,So),p.clip(),p.fillStyle=oe?f.tick:f.spanText,p.font=`10px ${f.fontSans}`,p.fillText(B.label,W+5,ge+So-5),p.restore();p.globalAlpha=1;let Be=Math.max(X,aD);K.push({kind:"span",x:W-(Be-X)/2,y:ge,w:Be,h:So,span:B,track:N.track})}}for(let N of i.blocks)for(let oe of N.track.markers){let B=z(u.toU(oe.time));if(B<-6||B>b+6)continue;let ee=N.headerY+Nb/2;p.fillStyle=f.marker,p.beginPath(),p.moveTo(B,ee-4),p.lineTo(B+4,ee),p.lineTo(B,ee+4),p.lineTo(B-4,ee),p.closePath(),p.fill(),K.push({kind:"marker",x:B-5,y:ee-5,w:10,h:10,marker:oe,track:N.track})}x.current=K}function sD(r,i){let u=Math.min(r.clientX+14,window.innerWidth-320),c=r.clientY+16>window.innerHeight-140?r.clientY-120:r.clientY+16,f={left:u,top:c};if(r.hit.kind==="marker"){let{marker:p}=r.hit;return Rt.jsxDEV("div",{className:"traces-tooltip",style:f,children:[Rt.jsxDEV("div",{className:"traces-tooltip-title",children:p.label},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"muted num",children:[new Date(p.time).toLocaleTimeString()," (",ki(p.time-i),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:v}=r.hit;return Rt.jsxDEV("div",{className:"traces-tooltip",style:f,children:[Rt.jsxDEV("div",{className:"traces-tooltip-title truncate",children:v.label},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"muted num",children:[St(v.end-v.start)," · ",new Date(v.start).toLocaleTimeString()," (",ki(v.start-i),")",v.unterminated?" · unterminated":""]},void 0,!0,void 0,this),v.kind==="model"&&Rt.jsxDEV("div",{className:"muted num",children:[v.tokens!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[v.tokens.toLocaleString()," tok"]},void 0,!0,void 0,this),v.cost!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[" · $",v.cost.toFixed(4)]},void 0,!0,void 0,this),v.ttft!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[" · TTFT ",St(v.ttft)]},void 0,!0,void 0,this),v.isError&&Rt.jsxDEV(Rt.Fragment,{children:" · error"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v.kind==="subagent"&&v.model&&Rt.jsxDEV("div",{className:"muted num",children:v.model},void 0,!1,void 0,this),v.detail&&Rt.jsxDEV("div",{className:"traces-tooltip-detail",children:v.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Zn=Y(ut(),1);var Fa=Y(ce(),1),wi=28,aT=20,uD=340;function iD(r){let i=[];for(let u of r){let c=u.id==="main"?0:u.id.split("/").length;for(let f of u.spans)i.push({key:f.id,time:f.start,span:f,track:u,depth:c});for(let f=0;f<u.markers.length;f++){let v=u.markers[f];i.push({key:`${u.id}:marker:${f}`,time:v.time,marker:v,track:u,depth:c})}}return i.sort((u,c)=>u.time-c.time),i}function oT({tracks:r,selection:i,onSelect:u,search:c,traceStart:f}){let v=Li(),p=Zn.useRef(null),[b,S]=Zn.useState(0),k=Zn.useMemo(()=>iD(r),[r]),h=Zn.useMemo(()=>{let L=c.trim().toLowerCase();if(!L)return k;return k.filter((D)=>(D.span?`${D.span.label} ${D.span.detail??""}`:D.marker?.label??"").toLowerCase().includes(L))},[k,c]);Zn.useEffect(()=>{if(!i)return;let L=p.current;if(!L)return;let D=h.findIndex((z)=>z.span?.id===i);if(D===-1)return;let _=D*wi;if(_<L.scrollTop||_+wi>L.scrollTop+L.clientHeight)L.scrollTop=Math.max(0,_-L.clientHeight/2)},[i,h]);let x=Math.max(0,Math.floor(b/wi)-aT),C=Math.min(h.length,Math.ceil((b+uD)/wi)+aT),R=h.slice(x,C);return Fa.jsxDEV("div",{ref:p,onScroll:(L)=>S(L.currentTarget.scrollTop),className:"traces-list",children:[Fa.jsxDEV("div",{style:{height:h.length*wi,position:"relative"},children:Fa.jsxDEV("div",{style:{position:"absolute",top:x*wi,left:0,right:0},children:R.map((L)=>{let D=L.span,_=D!==void 0&&D.id===i,z=L.span?v.category[L.span.kind]:v.marker,F=L.span?.label??L.marker?.label??"",K=L.span?.detail,N=L.span?St(L.span.end-L.span.start):"",oe=L.span?.kind??L.marker?.kind??"",B=Fa.jsxDEV(Fa.Fragment,{children:[Fa.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":z},children:oe},void 0,!1,void 0,this),L.depth>0&&Fa.jsxDEV("span",{className:"traces-row-track mono truncate",title:L.track.label,children:L.track.id},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-label truncate",children:F},void 0,!1,void 0,this),K&&Fa.jsxDEV("span",{className:"traces-row-detail truncate",children:K},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-meta num",children:[L.span?.isError&&Fa.jsxDEV("span",{className:"tone-bad",children:"error"},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:N},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:ki(L.time-f)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ee={paddingLeft:12+L.depth*12};return D?Fa.jsxDEV("button",{type:"button",onClick:()=>u(D.id),className:"traces-row","data-selected":_?"true":"false",style:ee,children:B},L.key,!1,void 0,this):Fa.jsxDEV("div",{className:"traces-row","data-static":"true",style:ee,children:B},L.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),h.length===0&&Fa.jsxDEV(mt,{title:"No matching events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ze=Y(ce(),1),dD=[{value:"time",label:"Duration",title:"Real wall-clock time"},{value:"turns",label:"Turns",title:"Equal width per user turn"},{value:"calls",label:"Calls",title:"Equal width per model/tool call boundary"}],cD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tool"},{kind:"subagent",label:"Agent"},{kind:"background",label:"Background"}];function lT({file:r,active:i,onBack:u}){let c=qt(["trace",r],()=>Pk(r),{pollMs:15000,enabled:i}),f=c.stale?null:c.data,[v,p]=Bt.useState("time"),[b,S]=Bt.useState(!0),[k,h]=Bt.useState(null),[x,C]=Bt.useState(!1),[R,L]=Bt.useState(""),[D,_]=Bt.useState(0),[z,F]=Bt.useState(new Set),[K,N]=Bt.useState(null),oe=Bt.useMemo(()=>f?.tracks??[],[f]),B=Bt.useMemo(()=>Qw(oe,v,b),[oe,v,b]),ee=Bt.useRef(B),Z=Bt.useRef(null);Bt.useEffect(()=>{if(!f)return;if(Z.current===f.file)return;Z.current=f.file,h(null),L(""),N(null);let se=new Set;for(let ne of f.tracks)if((ne.id==="main"?0:ne.id.split("/").length)>=1)se.add(ne.id);F(se)},[f]),Bt.useEffect(()=>{let se=ee.current;ee.current=B,N((ne)=>{if(!ne)return ne;let pe=se.toT(ne.u0),Lt=se.toT(ne.u1),Ye=B.toU(pe),V=B.toU(Lt);return V-Ye>0?{u0:Ye,u1:V}:null})},[B]);let W=K??{u0:B.domain[0],u1:B.domain[1]},X=Bt.useMemo(()=>{let se=[];for(let ne of oe)for(let pe of ne.spans)se.push({span:pe,track:ne});return se.sort((ne,pe)=>ne.span.start-pe.span.start),se},[oe]),ge=Bt.useMemo(()=>{let se=R.trim().toLowerCase();if(!se)return[];return X.filter(({span:ne})=>`${ne.label} ${ne.detail??""}`.toLowerCase().includes(se))},[X,R]),Ne=Bt.useCallback((se)=>{let ne=B.toU(se.start),pe=B.toU(se.end);N((Lt)=>{let Ye=Lt??{u0:B.domain[0],u1:B.domain[1]};if(ne>=Ye.u0&&pe<=Ye.u1)return Lt;let V=Ye.u1-Ye.u0,Pe=(ne+pe)/2,[Mt,pa]=B.domain,re=Pe-V/2;if(re<Mt)re=Mt;if(re+V>pa)re=Math.max(Mt,pa-V);return{u0:re,u1:re+V}})},[B]),Ce=Bt.useCallback((se)=>{h(se);let ne=X.find(({span:pe})=>pe.id===se);if(ne)Ne(ne.span)},[X,Ne]),Be=Bt.useCallback((se)=>{h(se),C(se!==null)},[]),te=Bt.useCallback((se)=>{if(ge.length===0)return;let ne=((D+se)%ge.length+ge.length)%ge.length;_(ne),Ce(ge[ne].span.id)},[ge,D,Ce]),ve=Bt.useCallback((se)=>{F((ne)=>{let pe=new Set(ne);if(pe.has(se))pe.delete(se);else pe.add(se);return pe})},[]),ke=Bt.useMemo(()=>{if(!k)return null;return X.find(({span:se})=>se.id===k)??null},[k,X]),je=Bt.useCallback((se)=>{let ne=oe.find((Lt)=>Lt.id===se),pe=ne?.spans[0];if(F((Lt)=>{let Ye=new Set(Lt),V=ne;while(V?.parentId)Ye.delete(V.parentId),V=oe.find((Pe)=>Pe.id===V?.parentId);return Ye}),pe)Ce(pe.id)},[oe,Ce]),ae=Bt.useCallback((se)=>{if(!se){F(new Set);return}let ne=new Set;for(let pe of oe)if(pe.id!=="main")ne.add(pe.id);F(ne)},[oe]),P=f?.startedAt??0,ue={...c,data:f};return Ze.jsxDEV("div",{className:"stack traces-view",children:[Ze.jsxDEV("div",{children:Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:u,children:[Ze.jsxDEV(cc,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(ta,{title:Ze.jsxDEV("span",{className:"traces-title truncate",children:f?.title??r.split("/").pop()},void 0,!1,void 0,this),description:f?.cwd?Ze.jsxDEV("span",{className:"mono",children:f.cwd},void 0,!1,void 0,this):void 0,actions:Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:c.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:Ze.jsxDEV($r,{size:14,className:c.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(_e,{query:ue,skeleton:Ze.jsxDEV(Tt,{height:420},void 0,!1,void 0,this),children:(se)=>Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV(jw,{summary:se.summary},void 0,!1,void 0,this),Ze.jsxDEV(Ve,{index:1,title:"Timeline",description:"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect",actions:Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ae(!1),children:"Expand all"},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ae(!0),children:"Collapse all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:Ze.jsxDEV("div",{className:"stack",children:[Ze.jsxDEV("div",{className:"traces-toolbar",children:[Ze.jsxDEV(za,{options:dD,value:v,onChange:p,size:"sm","aria-label":"Axis mode"},void 0,!1,void 0,this),v==="time"&&Ze.jsxDEV("label",{className:"traces-check",children:[Ze.jsxDEV("input",{type:"checkbox",checked:b,onChange:(ne)=>S(ne.target.checked)},void 0,!1,void 0,this),"Compress idle"]},void 0,!0,void 0,this),Ze.jsxDEV("div",{className:"traces-search",children:[Ze.jsxDEV(un,{value:R,onChange:(ne)=>{L(ne),_(0)},placeholder:"Search spans…",width:200},void 0,!1,void 0,this),R.trim()&&Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV("span",{className:"num muted traces-match-count",children:ge.length===0?"0":`${D%Math.max(ge.length,1)+1}/${ge.length}`},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>te(-1),"aria-label":"Previous match",disabled:ge.length===0,children:Ze.jsxDEV(hc,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>te(1),"aria-label":"Next match",disabled:ge.length===0,children:Ze.jsxDEV(vl,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV("div",{className:"traces-legend",children:cD.map((ne)=>Ze.jsxDEV("span",{className:"traces-legend-item",children:[Ze.jsxDEV("span",{className:"swatch",style:{background:`var(${lu[ne.kind]})`}},void 0,!1,void 0,this),ne.label]},ne.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV(Vw,{tracks:oe,scale:B,viewport:W,onViewportChange:N},void 0,!1,void 0,this),Ze.jsxDEV(tT,{tracks:oe,scale:B,viewport:W,onViewportChange:N,selection:k,onSelect:Be,search:R,collapsed:z,onToggleCollapse:ve,traceStart:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Ve,{index:2,title:"Transcript",description:"Every span and marker in order; click to inspect",flush:!0,children:Ze.jsxDEV(oT,{tracks:oe,selection:k,onSelect:(ne)=>{Ce(ne),C(!0)},search:R,traceStart:P},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Fw,{toolStats:se.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Xw,{span:x?ke?.span??null:null,track:ke?.track??null,onClose:()=>C(!1),onOpenChildTrack:je},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jt=Y(ce(),1),nT=200;function fD({models:r}){if(r.length===0)return jt.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return jt.jsxDEV("span",{className:"traces-models",title:r.join(`
236
- `),children:[jt.jsxDEV("span",{className:"mono truncate",children:r[0]},void 0,!1,void 0,this),r.length>1&&jt.jsxDEV("span",{className:"badge",children:["+",r.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function rT({active:r,session:i,onOpenSession:u}){let[c,f]=Ti.useState(""),v=qt(["sessions",nT],()=>Uk(nT),{pollMs:30000,enabled:r&&i===null}),p=Ti.useMemo(()=>{let h=v.data??[],x=c.trim().toLowerCase();if(!x)return h;return h.filter((C)=>(C.title??"").toLowerCase().includes(x)||C.folder.toLowerCase().includes(x)||C.models.some((R)=>R.toLowerCase().includes(x)))},[v.data,c]),b=Ti.useMemo(()=>Math.max(0,...p.map((h)=>h.costTotal)),[p]),S=Ti.useMemo(()=>[{key:"title",header:"Session",width:"32%",render:(h)=>jt.jsxDEV(_a,{primary:h.title??h.file.split("/").pop(),secondary:jt.jsxDEV("span",{className:"mono",children:h.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},void 0,!1,void 0,this),sort:(h)=>(h.title??h.file).toLowerCase()},{key:"models",header:"Models",render:(h)=>jt.jsxDEV(fD,{models:h.models},void 0,!1,void 0,this)},{key:"started",header:"Started",align:"right",render:(h)=>jt.jsxDEV("span",{className:"muted",title:new Date(h.startedAt).toLocaleString(),children:ia(h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.startedAt},{key:"duration",header:"Duration",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:Ws(h.endedAt-h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.endedAt-h.startedAt},{key:"requests",header:"Requests",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:q(h.requests)},void 0,!1,void 0,this),sort:(h)=>h.requests},{key:"toolCalls",header:"Tools",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:q(h.toolCalls)},void 0,!1,void 0,this),sort:(h)=>h.toolCalls},{key:"subagents",header:"Agents",align:"right",render:(h)=>h.subagents>0?jt.jsxDEV("span",{className:"num",children:q(h.subagents)},void 0,!1,void 0,this):jt.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(h)=>h.subagents},{key:"tokens",header:"Tokens",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:Me(h.totalTokens)},void 0,!1,void 0,this),sort:(h)=>h.totalTokens},{key:"cost",header:"Cost",align:"right",width:150,render:(h)=>jt.jsxDEV(sa,{value:h.costTotal,max:b,display:Ot(h.costTotal,h.unpricedRequests)},void 0,!1,void 0,this),sort:(h)=>h.costTotal}],[b]);if(i!==null)return jt.jsxDEV(lT,{file:i,active:r,onBack:()=>u(null)},void 0,!1,void 0,this);let k=v.data?.length??0;return jt.jsxDEV("div",{className:"stack traces-page",children:[jt.jsxDEV(ta,{title:"Traces",description:"Recent sessions with subagent activity folded in. Open one to inspect its timeline."},void 0,!1,void 0,this),jt.jsxDEV(Ve,{title:"Sessions",description:v.data?c.trim()?`${q(p.length)} of ${q(k)} most recent`:`${q(k)} most recent`:void 0,actions:jt.jsxDEV(un,{value:c,onChange:f,placeholder:"Filter by title, project, model…",width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:v.stale,children:jt.jsxDEV(_e,{query:v,skeleton:jt.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),isEmpty:(h)=>h.length===0,empty:jt.jsxDEV(mt,{title:"No sessions found",hint:"Run a sync to index recent activity."},void 0,!1,void 0,this),children:()=>jt.jsxDEV(zt,{columns:S,rows:p,rowKey:(h)=>h.file,onRowClick:(h)=>u(h.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:jt.jsxDEV(mt,{title:"No matching sessions",hint:"Try a different filter."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ta=Y(ce(),1);function Ub(){return Ta.jsxDEV(Fk,{children:Ta.jsxDEV(pD,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function pD(){let{section:r,setSection:i,range:u,setRange:c,session:f,setSession:v}=lw(),[p,b]=Ii.useState(null),S=Ii.useCallback(()=>b(null),[]),k=Ii.useRef(new Set);k.current.add(r);let h=(x)=>{let C=x===r;switch(x){case"overview":return Ta.jsxDEV(Dw,{active:C,range:u,onRequestClick:b},void 0,!1,void 0,this);case"requests":return Ta.jsxDEV(zw,{active:C,range:u,onRequestClick:b},void 0,!1,void 0,this);case"errors":return Ta.jsxDEV(xw,{active:C,range:u,onRequestClick:b},void 0,!1,void 0,this);case"traces":return Ta.jsxDEV(rT,{active:C,session:f,onOpenSession:v},void 0,!1,void 0,this);case"models":return Ta.jsxDEV(Iw,{active:C,range:u},void 0,!1,void 0,this);case"providers":return Ta.jsxDEV(Uw,{active:C,range:u},void 0,!1,void 0,this);case"costs":return Ta.jsxDEV(vw,{active:C,range:u},void 0,!1,void 0,this);case"tools":return Ta.jsxDEV(Hw,{active:C,range:u},void 0,!1,void 0,this);case"frustration":return Ta.jsxDEV(Cw,{active:C,range:u},void 0,!1,void 0,this);case"projects":return Ta.jsxDEV(Ow,{active:C,range:u},void 0,!1,void 0,this);case"gain":return Ta.jsxDEV(ww,{active:C,range:u},void 0,!1,void 0,this)}};return Ta.jsxDEV(Ta.Fragment,{children:[Ta.jsxDEV(ow,{section:r,onSectionChange:i,range:u,onRangeChange:c,children:[...k.current].map((x)=>Ta.jsxDEV("div",{hidden:x!==r,children:h(x)},x,!1,void 0,this))},void 0,!1,void 0,this),Ta.jsxDEV(Pw,{id:p,onClose:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var iT=Y(ce(),1),uT=document.getElementById("root");if(!uT)throw Error("missing #root");sT.createRoot(uT).render(iT.jsxDEV(Ub,{},void 0,!1,void 0,this));
235
+ <%s key={someKey} {...props} />`,ne,Ye,V,Ye),ae[Ye+ne]=!0)}if(Ye=null,se!==void 0&&(u(se),Ye=""+se),p(ue)&&(u(ue.key),Ye=""+ue.key),"key"in ue){se={};for(var Pe in ue)Pe!=="key"&&(se[Pe]=ue[Pe])}else se=ue;return Ye&&b(se,typeof P==="function"?P.displayName||P.name||"Unknown":P),k(P,Ye,se,f(),pe,Lt)}function x(P){C(P)?P._store&&(P._store.validated=1):typeof P==="object"&&P!==null&&P.$$typeof===Z&&(P._payload.status==="fulfilled"?C(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function C(P){return typeof P==="object"&&P!==null&&P.$$typeof===R}var R=Symbol.for("react.transitional.element"),L=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),_=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),F=Symbol.for("react.consumer"),K=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),oe=Symbol.for("react.suspense"),B=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),W=Symbol.for("react.activity"),X=Symbol.for("react.client.reference"),ge=js.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ne=Object.prototype.hasOwnProperty,Ce=Array.isArray,Be=console.createTask?console.createTask:function(){return null};js={react_stack_bottom_frame:function(P){return P()}};var te,ve={},ke=js.react_stack_bottom_frame.bind(js,v)(),je=Be(c(v)),ae={};iA.Fragment=D,iA.jsxDEV=function(P,ue,se,ne){var pe=1e4>ge.recentlyCreatedOwnerStacks++;return h(P,ue,se,ne,pe?Error("react-stack-top-frame"):ke,pe?Be(c(P)):je)}})()});var uT=Y(R1(),1);var Ii=Y(ut(),1);var dm=Y(ut(),1);var M1=(r)=>r?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function A1(r,i,u=[]){if(i==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:M1(r),size:24,node:i,...u.length>0?{aliases:u}:{}}}var D1=(r)=>{let i="",u=!1;for(let c of r){if(c==="-"||c==="_"||c<=" "){u=i.length>0;continue}if(i.length===0)i+=c.toLowerCase();else i+=u?c.toUpperCase():c;u=!1}return i};var E1=(r)=>{let i=D1(r);return i.charAt(0).toUpperCase()+i.slice(1)};var uc=Y(ut(),1);var sc=(...r)=>r.filter((i,u,c)=>Boolean(i)&&i.trim()!==""&&c.indexOf(i)===u).join(" ").trim();var _r={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 hb(r){return r!==null&&r!==void 0}function O1(r,i={}){let u=i.attributeNames??{},c=(C)=>u[C]??C,f=r.size??r.width??_r.width,v=r.size??r.height??_r.height,p=r.aliases?.filter((C)=>typeof C==="string"&&C.trim()!=="").map((C)=>`lucide-${C}`)??[],b=[...r.name?[`lucide-${r.name}`]:[],...p],S=i.className?.split(" ").filter(Boolean)??[],k=i.includeDefaultClasses===!1?sc(...S):sc("lucide",...b,...S),h=i.absoluteStrokeWidth?Number(i.strokeWidth??_r["stroke-width"])*Number(r.size??r.width??_r.width)/Number(i.size??i.width??_r.width):i.strokeWidth??_r["stroke-width"];return["svg",{...Object.entries(_r).reduce((C,[R,L])=>(C[c(R)]=L,C),{}),..."color"in i&&i.color&&{[c("stroke")]:i.color},..."size"in i&&hb(i.size)&&{[c("width")]:i.size,[c("height")]:i.size},..."width"in i&&hb(i.width)&&{[c("width")]:i.width},..."height"in i&&hb(i.height)&&{[c("height")]:i.height},[c("stroke-width")]:h,...k&&{[c("class")]:k},[c("viewBox")]:`0 0 ${f} ${v}`,...i.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in i&&i.attributes},r.node.map((C)=>{let[R,L,D]=C,_=i.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...L}:L;return D?[R,_,D]:[R,_]})]}function q1(r,i={}){return O1(r,{...i,attributeNames:{...i.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var B1=(r)=>{for(let i in r)if(i.startsWith("aria-")||i==="role"||i==="title")return!0;return!1};var di=Y(ut(),1),aA=di.createContext({});var N1=()=>di.useContext(aA);var U1=uc.forwardRef(({color:r,size:i,width:u,height:c,strokeWidth:f,absoluteStrokeWidth:v,nonScalingStroke:p,className:b="",children:S,iconNode:k=[],icon:h={node:k,aliases:[],size:24},...x},C)=>{let{size:R=24,strokeWidth:L=2,absoluteStrokeWidth:D=!1,nonScalingStroke:_=!1,color:z="currentColor",className:F=""}=N1()??{},K=Boolean(S)||B1(x),[N,oe,B=[]]=q1(h,{color:r??z,width:u??i??R,height:c??i??R,strokeWidth:f??L,absoluteStrokeWidth:v??D,nonScalingStroke:p??_,className:sc(F,b),hasA11yProp:K,attributes:x});return uc.createElement(N,{ref:C,...oe},[...B.map(([ee,Z])=>uc.createElement(ee,Z)),...Array.isArray(S)?S:[S]])});function xe(r,i=[],u=[]){let c=typeof r==="string"?A1(r,i,u):r,f=dm.forwardRef(({className:v,...p},b)=>dm.createElement(U1,{ref:b,icon:c,className:v,...p}));if(c.name)f.displayName=E1(c.name);return f}var P1={name:"circle-alert",size:24,node:[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],aliases:["alert-circle"]};P1.node;var Hr=xe(P1);var z1={name:"face-slightly-frowning",size:24,node:[["path",{d:"M15 10V9",key:"4dkmfx"}],["path",{d:"M9 10V9",key:"1lazqi"}],["path",{d:"M9 16a5 5 0 016 0",key:"34mdxb"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],aliases:["frown"]};z1.node;var Fr=xe(z1);var _1={name:"plug-zap",size:24,node:[["path",{d:"M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z",key:"goz73y"}],["path",{d:"m2 22 3-3",key:"19mgm9"}],["path",{d:"M7.5 13.5 10 11",key:"7xgeeb"}],["path",{d:"M10.5 16.5 13 14",key:"10btkg"}],["path",{d:"m18 3-4 4h6l-4 4",key:"16psg9"}]],aliases:["plug-zap-2"]};_1.node;var Gr=xe(_1);var H1={name:"sparkles",size:24,node:[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]],aliases:["stars"]};H1.node;var on=xe(H1);var F1={name:"square-chart-gantt",size:24,node:[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 8h7",key:"kbo1nt"}],["path",{d:"M8 12h6",key:"ikassy"}],["path",{d:"M11 16h5",key:"oq65wt"}]],aliases:["gantt-chart-square","square-gantt-chart"]};F1.node;var bl=xe(F1);var G1={name:"triangle-alert",size:24,node:[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],aliases:["alert-triangle"]};G1.node;var Vr=xe(G1);var V1={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"}]]};V1.node;var ic=xe(V1);var $1={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};$1.node;var dc=xe($1);var X1={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};X1.node;var cc=xe(X1);var j1={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};j1.node;var fc=xe(j1);var Y1={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};Y1.node;var pc=xe(Y1);var Q1={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Q1.node;var mc=xe(Q1);var Z1={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};Z1.node;var Vs=xe(Z1);var W1={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};W1.node;var $s=xe(W1);var K1={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};K1.node;var hc=xe(K1);var J1={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};J1.node;var vl=xe(J1);var ek={name:"coins",size:24,node:[["path",{d:"M13.744 17.736a6 6 0 1 1-7.48-7.48",key:"bq4yh3"}],["path",{d:"M15 6h1v4",key:"11y1tn"}],["path",{d:"m6.134 14.768.866-.5 2 3.464",key:"17snzx"}],["circle",{cx:"16",cy:"8",r:"6",key:"14bfc9"}]]};ek.node;var gc=xe(ek);var tk={name:"copy",size:24,node:[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]};tk.node;var Xs=xe(tk);var ak={name:"cpu",size:24,node:[["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M17 20v2",key:"1rnc9c"}],["path",{d:"M17 2v2",key:"11trls"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M2 17h2",key:"7oei6x"}],["path",{d:"M2 7h2",key:"asdhe0"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"M20 17h2",key:"1fpfkl"}],["path",{d:"M20 7h2",key:"1o8tra"}],["path",{d:"M7 20v2",key:"4gnj0m"}],["path",{d:"M7 2v2",key:"1i4yhu"}],["rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",key:"1vbyd7"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]};ak.node;var yc=xe(ak);var ok={name:"folder-git-2",size:24,node:[["path",{d:"M18 19a5 5 0 0 1-5-5v8",key:"sz5oeg"}],["path",{d:"M9 20H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H20a2 2 0 0 1 2 2v5",key:"1w6njk"}],["circle",{cx:"13",cy:"12",r:"2",key:"1j92g6"}],["circle",{cx:"20",cy:"19",r:"2",key:"1obnsp"}]]};ok.node;var bc=xe(ok);var lk={name:"git-branch",size:24,node:[["path",{d:"M15 6a9 9 0 0 0-9 9V3",key:"1cii5b"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}]]};lk.node;var vc=xe(lk);var nk={name:"inbox",size:24,node:[["polyline",{points:"22 12 16 12 14 15 10 15 8 12 2 12",key:"o97t9d"}],["path",{d:"M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z",key:"oot6mr"}]]};nk.node;var Sc=xe(nk);var rk={name:"layout-grid",size:24,node:[["rect",{width:"7",height:"7",x:"3",y:"3",rx:"1",key:"1g98yp"}],["rect",{width:"7",height:"7",x:"14",y:"3",rx:"1",key:"6d4xhi"}],["rect",{width:"7",height:"7",x:"14",y:"14",rx:"1",key:"nxv5o0"}],["rect",{width:"7",height:"7",x:"3",y:"14",rx:"1",key:"1bb6yr"}]]};rk.node;var xc=xe(rk);var sk={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};sk.node;var Lc=xe(sk);var uk={name:"monitor",size:24,node:[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]};uk.node;var Cc=xe(uk);var ik={name:"moon",size:24,node:[["path",{d:"M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401",key:"kfwtm"}]]};ik.node;var kc=xe(ik);var dk={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"}]]};dk.node;var $r=xe(dk);var ck={name:"rotate-cw",size:24,node:[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]]};ck.node;var wc=xe(ck);var fk={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};fk.node;var Tc=xe(fk);var pk={name:"sun",size:24,node:[["circle",{cx:"12",cy:"12",r:"4",key:"4exip2"}],["path",{d:"M12 2v2",key:"tus03m"}],["path",{d:"M12 20v2",key:"1lh1kg"}],["path",{d:"m4.93 4.93 1.41 1.41",key:"149t6j"}],["path",{d:"m17.66 17.66 1.41 1.41",key:"ptbguv"}],["path",{d:"M2 12h2",key:"1t8f8n"}],["path",{d:"M20 12h2",key:"1q8mjw"}],["path",{d:"m6.34 17.66-1.41 1.41",key:"1m8zz5"}],["path",{d:"m19.07 4.93-1.41 1.41",key:"1shlcs"}]]};pk.node;var Ic=xe(pk);var mk={name:"wrench",size:24,node:[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]};mk.node;var Rc=xe(mk);var hk={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};hk.node;var al=xe(hk);var vi=Y(ut(),1);var gk=["January","February","March","April","May","June","July","August","September","October","November","December"],yk=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],oA=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function Xr(r,i=2){return String(r).padStart(i,"0")}function lA(r,i){let u=r.getMonth(),c=r.getDay(),f=r.getHours(),v=f%12||12;switch(i){case"yyyy":return Xr(r.getFullYear(),4);case"yy":return Xr(r.getFullYear()%100);case"MMMM":return gk[u];case"MMM":return gk[u].slice(0,3);case"MM":return Xr(u+1);case"M":return String(u+1);case"dd":return Xr(r.getDate());case"d":return String(r.getDate());case"EEEE":return yk[c];case"EEE":return yk[c].slice(0,3);case"HH":return Xr(f);case"H":return String(f);case"hh":return Xr(v);case"h":return String(v);case"mm":return Xr(r.getMinutes());case"m":return String(r.getMinutes());case"ss":return Xr(r.getSeconds());case"s":return String(r.getSeconds());case"a":return f<12?"AM":"PM"}}function vk(r){let i=r instanceof Date?new Date(r.getTime()):new Date(r);if(Number.isNaN(i.getTime()))throw RangeError("Invalid time value");return i}function ln(r,i){let u=vk(r),c="";for(let f=0;f<i.length;){if(i[f]==="'"){if(i[f+1]==="'"){c+="'",f+=2;continue}f++;while(f<i.length){if(i[f]!=="'"){c+=i[f++];continue}if(i[f+1]==="'"){c+="'",f+=2;continue}f++;break}continue}let v=i.slice(f),p=oA.find((S)=>v.startsWith(S));if(p){c+=lA(u,p),f+=p.length;continue}let b=i[f++];if(/[A-Za-z]/.test(b))throw RangeError(`Format string contains an unescaped latin alphabet character \`${b}\``);c+=b}return c}function jr(r,i){return`${r} ${r===1?i:`${i}s`}`}function nA(r,i){let u=(i.getFullYear()-r.getFullYear())*12+i.getMonth()-r.getMonth();if(u===0)return 0;let c=new Date(r);c.setDate(1),c.setFullYear(r.getFullYear(),r.getMonth()+u,1);let f=new Date(c.getFullYear(),c.getMonth()+1,0).getDate();if(c.setDate(Math.min(r.getDate(),f)),c.getTime()>i.getTime())u--;return u}function bk(r,i){let u=(i.getTime()-r.getTime())/1000,c=(i.getTimezoneOffset()-r.getTimezoneOffset())*60,f=Math.round((u-c)/60);if(f<2)return f===0?"less than a minute":"1 minute";if(f<45)return jr(f,"minute");if(f<90)return"about 1 hour";if(f<1440)return`about ${jr(Math.round(f/60),"hour")}`;if(f<2520)return"1 day";if(f<43200)return jr(Math.round(f/1440),"day");if(f<86400)return`about ${jr(Math.round(f/43200),"month")}`;let v=nA(r,i);if(v<12)return jr(Math.round(f/43200),"month");let p=Math.trunc(v/12),b=v%12;if(b<3)return`about ${jr(p,"year")}`;if(b<9)return`over ${jr(p,"year")}`;return`almost ${jr(p+1,"year")}`}function Sk(r,i={}){let u=vk(r),c=new Date(Date.now()),f=u.getTime()>c.getTime(),v=f?bk(c,u):bk(u,c);if(!i.addSuffix)return v;return f?`in ${v}`:`${v} ago`}var xk=60000,cm=60*xk,nn=24*cm,gb={"1h":{label:"1h",windowLabel:"the last hour",spanMs:cm,bucketMs:5*xk},"24h":{label:"24h",windowLabel:"the last 24 hours",spanMs:nn,bucketMs:cm},"7d":{label:"7d",windowLabel:"the last 7 days",spanMs:7*nn,bucketMs:nn},"30d":{label:"30d",windowLabel:"the last 30 days",spanMs:30*nn,bucketMs:nn},"90d":{label:"90d",windowLabel:"the last 90 days",spanMs:90*nn,bucketMs:nn},all:{label:"All",windowLabel:"all time",spanMs:null,bucketMs:nn}},rA=1500,ci=["1h","24h","7d","30d","90d","all"];function na(r){return gb[r]}function fm(r,i){if(i<nn)return ln(new Date(r),i<cm?"HH:mm":"MMM d HH:mm");return ln(new Date(r),"MMM d")}function pm(r,i){if(i<nn)return ln(new Date(r),"HH:mm");return ln(new Date(r),"MMM d")}function Po(r,i,u=gb[r].bucketMs,c=Date.now()){let f=Math.floor(c/u)*u,v=gb[r].spanMs,p;if(v!==null)p=Math.floor((c-v)/u)*u;else{p=f;for(let S of i)if(S<p)p=S;p=Math.floor(p/u)*u}p=Math.max(p,f-(rA-1)*u);let b=[];for(let S=p;S<=f;S+=u)b.push(S);return b}var zo=Y(ut(),1);class Lk extends Error{status;endpoint;constructor(r,i,u){super(u);this.name="ApiError",this.status=r,this.endpoint=i}}async function sA(r,i){try{let u=await r.json();if(typeof u==="object"&&u!==null&&"error"in u&&typeof u.error==="string")return u.error}catch{}return`HTTP error ${r.status} on ${i}`}async function Da(r,i){let u=await fetch(r,i);if(!u.ok)throw new Lk(u.status,r,await sA(u,r));return u.json()}var Ck={"X-Omp-Stats-Action":"1"};async function kk(r="24h",i){return Da(`/api/stats/overview?range=${encodeURIComponent(r)}`,{signal:i})}async function wk(r="24h",i){return Da(`/api/stats/model-dashboard?range=${encodeURIComponent(r)}`,{signal:i})}async function Tk(r="24h",i){return Da(`/api/stats/costs?range=${encodeURIComponent(r)}`,{signal:i})}async function mm(r=50,i){return Da(`/api/stats/recent?limit=${r}`,{signal:i})}async function Ik(r="24h",i=50,u){return Da(`/api/stats/errors?range=${encodeURIComponent(r)}&limit=${i}`,{signal:u})}async function Rk(r,i){return Da(`/api/request/${r}`,{signal:i})}async function Mk(){return Da("/api/sync",{method:"POST"})}async function Ak(r="24h",i){return Da(`/api/stats/frustration?range=${encodeURIComponent(r)}`,{signal:i})}async function Dk(r,i){return Da(`/api/frustration/estimate?range=${encodeURIComponent(r)}`,{signal:i})}async function Ek(r){return Da(`/api/frustration/judge?range=${encodeURIComponent(r)}`,{method:"POST",headers:Ck})}async function Ok(){return Da("/api/frustration/cancel",{method:"POST",headers:Ck})}async function qk(r="24h",i){return Da(`/api/stats/folders?range=${encodeURIComponent(r)}`,{signal:i})}async function Bk(r="24h",i,u){let c=new URLSearchParams({range:r});if(i)c.set("project",i);return Da(`/api/stats/gain?${c}`,{signal:u})}async function Nk(r="24h",i){return Da(`/api/stats/tools?range=${encodeURIComponent(r)}`,{signal:i})}async function Uk(r="24h",i){return Da(`/api/stats/providers?range=${encodeURIComponent(r)}`,{signal:i})}async function yb(r,i,u){let c=new URLSearchParams({range:r});if(i!==null)c.set("provider",i);return Da(`/api/stats/provider-windows?${c}`,{signal:u})}async function Pk(r=100,i,u){let c=new URLSearchParams({limit:String(r)});if(i)c.set("q",i);return Da(`/api/sessions?${c}`,{signal:u})}async function zk(r,i){return Da(`/api/session/trace?file=${encodeURIComponent(r)}`,{signal:i})}async function _k(r,i,u){return Da(`/api/session/entry?file=${encodeURIComponent(r)}&id=${encodeURIComponent(i)}`,{signal:u})}var Vk=Y(ce(),1),Hk={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null},Fk=zo.createContext({version:0,sync:Hk,indexingHours:0,connected:!1,requestSync:()=>{}});function Gk({children:r}){let[i,u]=zo.useState({server:null,version:0}),[c,f]=zo.useState(!1);zo.useEffect(()=>{let b=new EventSource("/api/events");return b.onopen=()=>f(!0),b.onerror=()=>f(!1),b.onmessage=(S)=>{let k=JSON.parse(S.data);u((h)=>({server:k,version:h.server&&h.server.version===k.version?h.version:h.version+1}))},()=>b.close()},[]);let v=zo.useCallback(()=>{Mk().catch(()=>{})},[]),p=zo.useMemo(()=>({version:Math.max(0,i.version-1),sync:i.server?.sync??Hk,indexingHours:i.server?.indexingHours??0,connected:c,requestSync:v}),[i,c,v]);return Vk.jsxDEV(Fk.Provider,{value:p,children:r},void 0,!1,void 0,this)}function fi(){return zo.useContext(Fk)}var hm=Y(ce(),1);function wt({tone:r="neutral",mono:i,children:u}){return hm.jsxDEV("span",{className:"badge","data-tone":r,"data-mono":i??!1,children:u},void 0,!1,void 0,this)}function rn({tone:r="neutral",pulse:i}){return hm.jsxDEV("span",{className:"dot","data-tone":r,"data-pulse":i??!1},void 0,!1,void 0,this)}function Sl({color:r}){return hm.jsxDEV("span",{className:"swatch",style:{background:r}},void 0,!1,void 0,this)}function sn(r){if(r>=0.05)return"bad";if(r>=0.01)return"warn";return"ok"}var vo=Y(ce(),1);function Ve({title:r,description:i,actions:u,flush:c,footer:f,className:v,index:p,stale:b,children:S}){let k=r!==void 0||i!==void 0||u!==void 0;return vo.jsxDEV("section",{className:v?`card rise ${v}`:"card rise",style:p!==void 0?{"--i":p}:void 0,children:[k&&vo.jsxDEV("header",{className:"card-header",children:[vo.jsxDEV("div",{className:"card-titles",children:[r!==void 0&&vo.jsxDEV("h2",{className:"card-title",children:r},void 0,!1,void 0,this),i!==void 0&&vo.jsxDEV("p",{className:"card-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u!==void 0&&vo.jsxDEV("div",{className:"card-actions",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),vo.jsxDEV("div",{className:"card-body","data-flush":c??!1,"data-stale":b??!1,children:S},void 0,!1,void 0,this),f!==void 0&&vo.jsxDEV("footer",{className:"card-footer",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ta({title:r,description:i,actions:u}){return vo.jsxDEV("header",{className:"page-header rise",children:[vo.jsxDEV("div",{children:[vo.jsxDEV("h1",{className:"page-title",children:r},void 0,!1,void 0,this),i!==void 0&&vo.jsxDEV("p",{className:"page-description",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u!==void 0&&vo.jsxDEV("div",{className:"page-actions",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Mc=Y(ut(),1),$k=Y(rc(),1),Ya=Y(ce(),1);function gm({open:r,onClose:i,title:u,subtitle:c,actions:f,width:v,children:p}){let b=Mc.useRef(i);b.current=i;let S=Mc.useRef(null);if(Mc.useEffect(()=>{if(!r)return;let k=document.activeElement instanceof HTMLElement?document.activeElement:null;S.current?.focus();let h=(x)=>{if(x.key==="Escape")x.preventDefault(),b.current()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h),k?.focus()}},[r]),!r)return null;return $k.createPortal(Ya.jsxDEV(Ya.Fragment,{children:[Ya.jsxDEV("div",{className:"drawer-scrim",onClick:i,role:"presentation"},void 0,!1,void 0,this),Ya.jsxDEV("div",{ref:S,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:v!==void 0?{"--drawer-w":`${v}px`}:void 0,children:[Ya.jsxDEV("header",{className:"drawer-header",children:[Ya.jsxDEV("div",{className:"drawer-titles",children:[Ya.jsxDEV("h2",{className:"drawer-title",children:u},void 0,!1,void 0,this),c!==void 0&&Ya.jsxDEV("div",{className:"drawer-subtitle",children:c},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f,Ya.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:i,"aria-label":"Close",children:Ya.jsxDEV(al,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ya.jsxDEV("div",{className:"drawer-body",children:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),document.body)}function _o({items:r}){return Ya.jsxDEV("dl",{className:"kv",style:{margin:0},children:r.map((i)=>Ya.jsxDEV("div",{className:"kv-item",children:[Ya.jsxDEV("dt",{className:"kv-key",children:i.label},void 0,!1,void 0,this),Ya.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:i.value},void 0,!1,void 0,this)]},i.key,!0,void 0,this))},void 0,!1,void 0,this)}var Ys=Y(ut(),1),xl=Y(ce(),1);function pi({data:r,title:i="JSON",initialCollapsed:u=!1}){let[c,f]=Ys.useState(u),[v,p]=Ys.useState(!1),b=Ys.useRef(0),S=JSON.stringify(r,null,2);return Ys.useEffect(()=>()=>window.clearTimeout(b.current),[]),xl.jsxDEV("div",{className:"stack",style:{gap:6},children:[xl.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[xl.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>f((h)=>!h),"aria-expanded":!c,children:[c?xl.jsxDEV(vl,{size:13},void 0,!1,void 0,this):xl.jsxDEV($s,{size:13},void 0,!1,void 0,this),i]},void 0,!0,void 0,this),xl.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(S),p(!0),window.clearTimeout(b.current),b.current=window.setTimeout(()=>p(!1),1500)}catch{}},children:[v?xl.jsxDEV(Vs,{size:13},void 0,!1,void 0,this):xl.jsxDEV(Xs,{size:13},void 0,!1,void 0,this),v?"Copied":"Copy"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!c&&xl.jsxDEV("pre",{className:"code-block",children:xl.jsxDEV("code",{children:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Qs=Y(ut(),1),Xk=Y(rc(),1);var Ll=Y(ce(),1);function jk({open:r,title:i,onClose:u,primaryAction:c,cancelLabel:f="Cancel",children:v}){let p=Qs.useRef(null),b=Qs.useRef(null),S=Qs.useRef(u);S.current=u,Qs.useEffect(()=>{if(!r)return;let C=document.activeElement instanceof HTMLElement?document.activeElement:null,R=(L)=>{if(L.key==="Escape")L.preventDefault(),S.current()};return window.addEventListener("keydown",R),()=>{window.removeEventListener("keydown",R),C?.focus()}},[r]);let k=c!==void 0,h=c?.disabled??!1;if(Qs.useEffect(()=>{if(!r)return;(k&&!h?p.current:b.current)?.focus()},[r,k,h]),!r)return null;return Xk.createPortal(Ll.jsxDEV("div",{className:"modal-overlay",onClick:(C)=>{if(C.target===C.currentTarget)u()},role:"presentation",children:Ll.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[Ll.jsxDEV("div",{className:"modal-header",children:[Ll.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:i},void 0,!1,void 0,this),Ll.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:u,"aria-label":"Close",children:Ll.jsxDEV(al,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ll.jsxDEV("div",{className:"modal-body",children:v},void 0,!1,void 0,this),Ll.jsxDEV("div",{className:"modal-footer",children:[Ll.jsxDEV("button",{ref:b,type:"button",className:"btn",onClick:u,children:f},void 0,!1,void 0,this),c&&Ll.jsxDEV("button",{ref:p,type:"button",className:"btn","data-variant":"primary",onClick:c.onClick,disabled:c.disabled,children:c.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),document.body)}var ym=Y(ce(),1);function un({value:r,onChange:i,placeholder:u="Filter…",width:c}){return ym.jsxDEV("label",{className:"search",children:[ym.jsxDEV(Tc,{size:14},void 0,!1,void 0,this),ym.jsxDEV("input",{className:"input",type:"search",value:r,placeholder:u,onChange:(f)=>i(f.target.value),style:c!==void 0?{width:c}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var mi=Y(ut(),1),bm=Y(ce(),1);function za({options:r,value:i,onChange:u,size:c="md","aria-label":f}){let v=mi.useRef(null),[p,b]=mi.useState(null);return mi.useLayoutEffect(()=>{let S=v.current,k=S?.querySelector('[data-active="true"]');if(!S||!k){b(null);return}let h=()=>b({left:k.offsetLeft,width:k.offsetWidth});h();let x=new ResizeObserver(h);return x.observe(S),()=>x.disconnect()},[i,r]),bm.jsxDEV("div",{ref:v,className:"segmented","data-size":c,role:"radiogroup","aria-label":f,children:[p&&bm.jsxDEV("span",{className:"segmented-thumb",style:{left:p.left,width:p.width}},void 0,!1,void 0,this),r.map((S)=>bm.jsxDEV("button",{type:"button",role:"radio","aria-checked":S.value===i,className:"segmented-option","data-active":S.value===i,title:S.title,onClick:()=>u(S.value),children:S.label},S.value,!1,void 0,this))]},void 0,!0,void 0,this)}var yi=Y(ut(),1);var hi=Y(ut(),1);function vm(){let r=hi.useRef(null),[i,u]=hi.useState(0);return hi.useLayoutEffect(()=>{let c=r.current;if(!c)return;u(c.clientWidth);let f=new ResizeObserver((v)=>{let p=Math.round(v[0]?.contentRect.width??0);u((b)=>b===p?b:p)});return f.observe(c),()=>f.disconnect()},[]),[r,i]}var Ac=Y(ce(),1);function gi({values:r,color:i="var(--chart-primary)",height:u=28,width:c,area:f=!0}){let[v,p]=vm(),b=c??p,S=Math.max(0,...r),k=r.length,h="";if(b>0&&k>0){let x=k>1?b/(k-1):0;for(let C=0;C<k;C++){let R=k>1?C*x:b/2,L=S>0?u-2-r[C]/S*(u-4):u-2;h+=`${C===0?"M":"L"}${R.toFixed(1)},${L.toFixed(1)}`}}return Ac.jsxDEV("div",{ref:v,className:"sparkline",style:{width:c??"100%",height:u},children:b>0&&k>0&&Ac.jsxDEV("svg",{width:b,height:u,"aria-hidden":"true",children:[f&&Ac.jsxDEV("path",{className:"area",d:`${h}L${b},${u}L0,${u}Z`,fill:i},void 0,!1,void 0,this),Ac.jsxDEV("path",{className:"chart-line",d:h,stroke:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var ol=Y(ce(),1);function fe({label:r,value:i,hint:u,delta:c,spark:f,sparkColor:v,size:p="md",title:b}){let S=cA(typeof i==="string"||typeof i==="number"?i:null);return ol.jsxDEV("div",{className:"stat","data-size":p,title:b,children:[ol.jsxDEV("div",{className:"stat-label",children:r},void 0,!1,void 0,this),ol.jsxDEV("div",{className:"stat-value","data-flash":S,children:i},void 0,!1,void 0,this),(u!==void 0||c)&&ol.jsxDEV("div",{className:"stat-foot",children:[c&&ol.jsxDEV(dA,{...c},void 0,!1,void 0,this),u!==void 0&&ol.jsxDEV("span",{className:"truncate",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&f.length>1&&ol.jsxDEV("div",{className:"stat-spark",children:ol.jsxDEV(gi,{values:f,color:v},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function aa({min:r,children:i}){return ol.jsxDEV("div",{className:"stat-grid rise",style:r!==void 0?{"--stat-min":`${r}px`}:void 0,children:i},void 0,!1,void 0,this)}function dA({change:r,good:i="up"}){if(r===null||!Number.isFinite(r))return ol.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let u=Math.abs(r)<0.0005?0:r,c=u===0?void 0:u>0===(i==="up")?"good":"bad",f=u>0?"+":u<0?"−":"±",v=Math.abs(u)*100;return ol.jsxDEV("span",{className:"delta","data-tone":c,children:[f,v>=100?v.toFixed(0):v.toFixed(1),"%"]},void 0,!0,void 0,this)}function cA(r){let i=yi.useRef(r),[u,c]=yi.useState(!1);return yi.useEffect(()=>{if(i.current===r)return;let f=i.current!==null;if(i.current=r,!f)return;c(!0);let v=setTimeout(()=>c(!1),900);return()=>clearTimeout(v)},[r]),u}var fa=Y(ce(),1);function mt({title:r="Nothing here yet",hint:i}){return fa.jsxDEV("div",{className:"empty",children:[fa.jsxDEV(Sc,{size:20},void 0,!1,void 0,this),fa.jsxDEV("div",{className:"empty-title",children:r},void 0,!1,void 0,this),i!==void 0&&fa.jsxDEV("div",{className:"empty-hint",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bi({error:r,onRetry:i}){return fa.jsxDEV("div",{className:"error-state",role:"alert",children:[fa.jsxDEV(Vr,{size:15},void 0,!1,void 0,this),fa.jsxDEV("span",{className:"error-state-message",children:typeof r==="string"?r:r.message},void 0,!1,void 0,this),i&&fa.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:i,children:[fa.jsxDEV(wc,{size:13},void 0,!1,void 0,this)," Retry"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Ea({width:r="100%",height:i=14,style:u}){return fa.jsxDEV("div",{className:"skeleton",style:{width:r,height:i,...u}},void 0,!1,void 0,this)}function Tt({height:r=220}){return fa.jsxDEV(Ea,{height:r,style:{borderRadius:8}},void 0,!1,void 0,this)}function ra({rows:r=6}){return fa.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:r},(i,u)=>fa.jsxDEV(Ea,{height:16,width:`${92-u*13%30}%`},u,!1,void 0,this))},void 0,!1,void 0,this)}function _e({query:r,skeleton:i,isEmpty:u,empty:c,children:f}){if(r.data===null){if(r.error)return fa.jsxDEV(bi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this);return fa.jsxDEV(fa.Fragment,{children:i},void 0,!1,void 0,this)}return fa.jsxDEV(fa.Fragment,{children:[r.error&&fa.jsxDEV(bi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this),u?.(r.data)?c??fa.jsxDEV(mt,{},void 0,!1,void 0,this):f(r.data)]},void 0,!0,void 0,this)}var Ws=Y(ut(),1);var bb="en-US";function q(r){return r.toLocaleString(bb)}function Me(r){return r.toLocaleString(bb,{notation:"compact"})}function sa(r,i){if(r===0)return"$0";let u=i!==void 0?i:r>0&&r<0.01?4:2;return`$${r.toLocaleString(bb,{minimumFractionDigits:u,maximumFractionDigits:u})}`}function Ot(r,i,u){return r===0&&i>0?"N/A":sa(r,u)}function vb(r){return r.usage.totalTokens>0&&r.usage.cost.total===0&&(r.provider==="xai-oauth"||r.costUnpriced===!0)}function Yr(r,i){return Ot(r.usage.cost.total,vb(r)?1:0,i)}function Re(r,i=1){return`${(r*100).toFixed(i)}%`}function vt(r,i){if(r===null)return"-";let u=r/1000,c=i!==void 0?i:u<1?2:1;return`${u.toFixed(c)}s`}function Zs(r){if(r<60000)return vt(r);let i=Math.floor(r/60000);if(i<60)return`${i}m ${String(Math.floor(r%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(i/60)}h ${String(i%60).padStart(2,"0")}m`}function dn(r){if(r===null)return"-";return r.toFixed(1)}function ua(r){return Sk(new Date(r),{addSuffix:!0})}function ll(r){return ln(new Date(r),"MMM d, HH:mm:ss")}function cn(r){return r.replace(/^\/+|\/+$/g,"")||"(root)"}function Sb(r){if(r>=1e9)return`${(r/1e9).toFixed(1)} GB`;if(r>=1e6)return`${(r/1e6).toFixed(1)} MB`;if(r>=1000)return`${(r/1000).toFixed(1)} KB`;return`${r} B`}var St=Y(ce(),1);function zt({columns:r,rows:i,rowKey:u,onRowClick:c,selectedKey:f,initialSort:v,limit:p,dense:b,empty:S,expanded:k}){let[h,x]=Ws.useState(v??null),[C,R]=Ws.useState(p??Number.POSITIVE_INFINITY),L=Ws.useMemo(()=>{let z=h?r.find((N)=>N.key===h.key):void 0;if(!h||!z?.sort)return i;let F=z.sort,K=h.dir==="asc"?1:-1;return[...i].sort((N,oe)=>{let B=F(N),ee=F(oe);if(typeof B==="number"&&typeof ee==="number")return(B-ee)*K;return String(B).localeCompare(String(ee))*K})},[i,r,h]);if(i.length===0)return St.jsxDEV(St.Fragment,{children:S??St.jsxDEV(mt,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let D=L.length>C?L.slice(0,C):L,_=(z)=>{if(!z.sort)return;x((F)=>F?.key===z.key?{key:z.key,dir:F.dir==="asc"?"desc":"asc"}:{key:z.key,dir:z.align==="right"?"desc":"asc"})};return St.jsxDEV(St.Fragment,{children:[St.jsxDEV("div",{className:"table-wrap",children:St.jsxDEV("table",{className:"table","data-dense":b??!1,children:[St.jsxDEV("thead",{children:St.jsxDEV("tr",{children:r.map((z)=>{let F=h?.key===z.key?h.dir:void 0;return St.jsxDEV("th",{"data-align":z.align??"left","data-sortable":z.sort!==void 0,"data-sorted":F,style:z.width!==void 0?{width:z.width}:void 0,title:z.title,onClick:()=>_(z),"aria-sort":F==="asc"?"ascending":F==="desc"?"descending":void 0,children:[z.header,F&&St.jsxDEV("span",{className:"sort-arrow",children:F==="asc"?St.jsxDEV(mc,{size:11},void 0,!1,void 0,this):St.jsxDEV(dc,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},z.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),St.jsxDEV("tbody",{children:D.map((z)=>{let F=u(z),K=k?.(z)??null;return St.jsxDEV(Ws.Fragment,{children:[St.jsxDEV("tr",{"data-clickable":c!==void 0,"data-selected":f===F,onClick:c?()=>c(z):void 0,onKeyDown:c?(N)=>{if(N.key==="Enter"||N.key===" ")N.preventDefault(),c(z)}:void 0,tabIndex:c?0:void 0,children:r.map((N)=>St.jsxDEV("td",{"data-align":N.align??"left","data-wrap":N.wrap??!1,children:N.render(z)},N.key,!1,void 0,this))},void 0,!1,void 0,this),K!==null&&St.jsxDEV("tr",{children:St.jsxDEV("td",{colSpan:r.length,"data-wrap":"true",style:{padding:0},children:K},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},F,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),p!==void 0&&L.length>p&&St.jsxDEV("div",{className:"table-more",children:[St.jsxDEV("span",{className:"micro",children:[q(D.length)," of ",q(L.length)]},void 0,!0,void 0,this),L.length>C&&St.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>R((z)=>z+p*4),children:"Show more"},void 0,!1,void 0,this),C>p&&St.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>R(p),children:"Show fewer"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function ia({value:r,max:i,display:u,color:c}){let f=i>0?Math.min(100,r/i*100):0;return St.jsxDEV("div",{className:"meter-cell",children:[St.jsxDEV("span",{className:"num",children:u},void 0,!1,void 0,this),St.jsxDEV("div",{className:"meter",children:St.jsxDEV("div",{className:"meter-fill",style:{width:`${f}%`,background:c}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _a({primary:r,secondary:i,lead:u}){return St.jsxDEV("div",{className:"row",style:{gap:10},children:[u,St.jsxDEV("div",{className:"stack",style:{gap:0},children:[St.jsxDEV("span",{className:"cell-primary truncate",children:r},void 0,!1,void 0,this),i!==void 0&&St.jsxDEV("span",{className:"cell-secondary truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var Sm=Y(ut(),1);var Xt=Y(ce(),1);function Yk(){let{sync:r,indexingHours:i,connected:u,requestSync:c}=fi(),f=pA(r.phase==="idle"?15000:null),v,p;if(!u)v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(rn,{tone:"warn"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Reconnecting"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p="Lost the live connection to the stats server; retrying";else if(r.phase==="syncing")v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV($r,{size:13,className:"spin"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Syncing"},void 0,!1,void 0,this),r.total>0&&Xt.jsxDEV("span",{className:"live-chip-count",children:[q(r.current),"/",q(r.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p="Ingesting session files";else if(r.phase==="error")v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(rn,{tone:"bad"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Sync failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p=`${r.error??"Sync failed"} — click to retry`;else if(i>fA)v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV($r,{size:13,className:"spin"},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Indexing"},void 0,!1,void 0,this),Xt.jsxDEV("span",{className:"live-chip-count",children:[q(i),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),p="Building hourly rollups; older ranges fill in as it goes";else v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(rn,{tone:"live",pulse:!0},void 0,!1,void 0,this),Xt.jsxDEV("span",{children:"Live"},void 0,!1,void 0,this),r.lastSyncedAt!==null&&Xt.jsxDEV("span",{className:"live-chip-count",children:mA(f-r.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p="Click to sync session files now";return Xt.jsxDEV("button",{type:"button",className:"live-chip",onClick:c,disabled:r.phase==="syncing",title:p,children:v},void 0,!1,void 0,this)}var fA=24;function pA(r){let[i,u]=Sm.useState(Date.now);return Sm.useEffect(()=>{if(r===null)return;u(Date.now());let c=setInterval(()=>u(Date.now()),r);return()=>clearInterval(c)},[r]),i}function mA(r){let i=Math.max(0,Math.round(r/1000));if(i<45)return"just now";let u=Math.round(i/60);if(u<60)return`${u}m ago`;let c=Math.round(u/60);return c<24?`${c}h ago`:`${Math.round(c/24)}d ago`}var xm=[{heading:"Usage",items:[{id:"overview",label:"Overview",icon:xc,hotkey:"o"},{id:"models",label:"Models",icon:yc,hotkey:"m"},{id:"providers",label:"Providers",icon:Gr,hotkey:"p"},{id:"costs",label:"Costs",icon:gc,hotkey:"c"}]},{heading:"Activity",items:[{id:"requests",label:"Requests",icon:ic,hotkey:"r"},{id:"errors",label:"Errors",icon:Hr,hotkey:"e"},{id:"traces",label:"Traces",icon:bl,hotkey:"t"}]},{heading:"Insights",items:[{id:"tools",label:"Tools",icon:Rc,hotkey:"l"},{id:"frustration",label:"Frustration",icon:Fr,hotkey:"f"},{id:"projects",label:"Projects",icon:bc,hotkey:"j"},{id:"gain",label:"Gain",icon:on,hotkey:"g"}]}],hA=xm.flatMap((r)=>r.items),Qk=hA.map((r)=>r.id);var Lm=Y(ut(),1),Zk="omp-stats-theme",Wk="(prefers-color-scheme: dark)";function gA(){if(typeof localStorage>"u")return"system";let r=localStorage.getItem(Zk);return r==="light"||r==="dark"||r==="system"?r:"system"}function Kk(){if(typeof window>"u")return"dark";return window.matchMedia(Wk).matches?"dark":"light"}var Ks=gA(),Dc=Ks==="system"?Kk():Ks,xb=new Set;function Jk(){for(let r of xb)r()}function Lb(){if(Dc=Ks==="system"?Kk():Ks,typeof document<"u")document.documentElement.dataset.theme=Dc,document.documentElement.style.colorScheme=Dc}if(typeof window<"u")Lb(),window.matchMedia(Wk).addEventListener("change",()=>{if(Ks==="system")Lb(),Jk()});function yA(r){if(Ks=r,typeof localStorage<"u")localStorage.setItem(Zk,r);Lb(),Jk()}function Cb(r){return xb.add(r),()=>xb.delete(r)}function ew(){return Lm.useSyncExternalStore(Cb,()=>Dc,()=>"dark")}function tw(){let r=Lm.useSyncExternalStore(Cb,()=>Ks,()=>"system"),i=Lm.useSyncExternalStore(Cb,()=>Dc,()=>"dark");return{preference:r,resolved:i,setPreference:yA}}var kb=Y(ce(),1),bA={system:"light",light:"dark",dark:"system"},vA={system:Cc,light:Ic,dark:kc},aw={system:"System theme",light:"Light theme",dark:"Dark theme"};function ow(){let{preference:r,setPreference:i}=tw(),u=vA[r];return kb.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>i(bA[r]),"aria-label":`${aw[r]} (click to switch)`,title:`${aw[r]} — click to switch`,children:kb.jsxDEV(u,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ke=Y(ce(),1),SA=ci.map((r,i)=>({value:r,label:na(r).label,title:`${na(r).windowLabel} (${i+1})`}));function lw({section:r,onSectionChange:i,range:u,onRangeChange:c,children:f}){let[v,p]=vi.useState(!1),b=xA(),{sync:S}=fi();LA(i,c);let k=(x)=>{i(x),p(!1),window.scrollTo({top:0})},h=S.phase==="syncing"?S.total>0?S.current/S.total:null:void 0;return Ke.jsxDEV(Ke.Fragment,{children:[Ke.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),Ke.jsxDEV("header",{className:"topbar","data-scrolled":b,children:[Ke.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>p(!0),"aria-label":"Open navigation",children:Ke.jsxDEV(Lc,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV("div",{className:"topbar-brand",children:[Ke.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[Ke.jsxDEV("defs",{children:Ke.jsxDEV("linearGradient",{id:"omp-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[Ke.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),Ke.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),Ke.jsxDEV("stop",{offset:"1",stopColor:"oklch(0.81 0.14 200)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV("path",{fill:"url(#omp-mark-grad)",d:"M10 14h44v9H43v33h-9V23h-9v22h-9V23H10z"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("span",{children:"omp"},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"topbar-title",children:"stats"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),Ke.jsxDEV("div",{className:"topbar-actions",children:[Ke.jsxDEV("span",{className:"topbar-hide-narrow",children:Ke.jsxDEV(Yk,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV(za,{options:SA,value:u,onChange:c,"aria-label":"Time range"},void 0,!1,void 0,this),Ke.jsxDEV(ow,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h!==void 0&&Ke.jsxDEV("div",{className:"topbar-progress",children:Ke.jsxDEV("div",{className:"topbar-progress-fill","data-indeterminate":h===null,style:{width:`${(h??0)*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v&&Ke.jsxDEV("div",{className:"drawer-scrim",onClick:()=>p(!1),role:"presentation"},void 0,!1,void 0,this),Ke.jsxDEV("nav",{className:"sidebar","data-open":v,"aria-label":"Pages",children:[xm.map((x)=>Ke.jsxDEV("div",{className:"nav-group",children:[Ke.jsxDEV("div",{className:"nav-heading",children:x.heading},void 0,!1,void 0,this),x.items.map((C)=>Ke.jsxDEV("button",{type:"button",className:"nav-row","data-active":C.id===r,"aria-current":C.id===r?"page":void 0,onClick:()=>k(C.id),children:[Ke.jsxDEV(C.icon,{size:15},void 0,!1,void 0,this),Ke.jsxDEV("span",{className:"nav-row-label",children:C.label},void 0,!1,void 0,this),Ke.jsxDEV("kbd",{children:["G ",C.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},C.id,!0,void 0,this))]},x.heading,!0,void 0,this)),Ke.jsxDEV("div",{className:"sidebar-foot micro",children:[Ke.jsxDEV("span",{children:[Ke.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",Ke.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," range"]},void 0,!0,void 0,this),Ke.jsxDEV("span",{children:[Ke.jsxDEV("span",{className:"kbd",children:"G"},void 0,!1,void 0,this)," then letter to jump"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV("main",{className:"shell-panel",children:Ke.jsxDEV("div",{className:"shell-content",children:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function xA(){let[r,i]=vi.useState(!1);return vi.useEffect(()=>{let u=()=>i(window.scrollY>4);return u(),window.addEventListener("scroll",u,{passive:!0}),()=>window.removeEventListener("scroll",u)},[]),r}function LA(r,i){vi.useEffect(()=>{let u=0,c=(f)=>{if(f.metaKey||f.ctrlKey||f.altKey||f.defaultPrevented)return;let v=f.target;if(v instanceof HTMLElement&&(v.isContentEditable||v.tagName==="INPUT"||v.tagName==="TEXTAREA"||v.tagName==="SELECT"))return;if(document.querySelector('[aria-modal="true"]'))return;let p=f.key.toLowerCase();if(u&&Date.now()-u<1200){u=0;let S=xm.flatMap((k)=>k.items).find((k)=>k.hotkey===p);if(S)f.preventDefault(),r(S.id),window.scrollTo({top:0});return}if(p==="g"){u=Date.now();return}let b=Number(p)-1;if(Number.isInteger(b)&&b>=0&&b<ci.length)f.preventDefault(),i(ci[b])};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[r,i])}var Gn=Y(ut(),1);function Ec(r){let[i,u]=r.replace(/^#\/?/,"").split("?"),c=Qk.includes(i)?i:"overview",f=new URLSearchParams(u??""),v=f.get("range"),p=ci.includes(v??"")?v:"24h";return{section:c,range:p,session:f.get("s")}}function Cm({section:r,range:i,session:u}){let c=u?`&s=${encodeURIComponent(u)}`:"";return`#/${r}?range=${i}${c}`}function nw(){let[r,i]=Gn.useState(()=>Ec(window.location.hash));Gn.useEffect(()=>{let p=()=>i(Ec(window.location.hash));window.addEventListener("hashchange",p),window.addEventListener("popstate",p);let b=Cm(Ec(window.location.hash));if(window.location.hash!==b)history.replaceState(null,"",b);return()=>{window.removeEventListener("hashchange",p),window.removeEventListener("popstate",p)}},[]);let u=Gn.useCallback((p)=>{i(p);let b=Cm(p);if(window.location.hash!==b)history.pushState(null,"",b)},[]),c=Gn.useCallback((p)=>u({...r,section:p,session:p==="traces"?r.session:null}),[r,u]),f=Gn.useCallback((p)=>u({...r,range:p}),[r,u]),v=Gn.useCallback((p)=>u({...r,session:p}),[r,u]);return{...r,setSection:c,setRange:f,setSession:v}}var Tm=Y(ut(),1);var fn=Y(ce(),1);function Oc({items:r,max:i,onSelect:u}){let c=i??Math.max(0,...r.map((f)=>f.value));return fn.jsxDEV("div",{className:"bar-list",children:r.map((f)=>{let v=c>0?Math.max(0.5,f.value/c*100):0,p=fn.jsxDEV(fn.Fragment,{children:[fn.jsxDEV("span",{className:"bar-list-fill",style:{width:`${v}%`,background:f.color??"var(--chart-primary)"}},void 0,!1,void 0,this),fn.jsxDEV("span",{className:"bar-list-label",children:f.label},void 0,!1,void 0,this),fn.jsxDEV("span",{className:"bar-list-value",children:f.display??q(f.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u?fn.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>u(f.key),children:p},f.key,!1,void 0,this):fn.jsxDEV("div",{className:"bar-list-row",children:p},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}var Vn=Y(ut(),1);var ct=Y(ce(),1),Js=10,CA=24,kA=68,wA=4;function Cl({slots:r,tickLabel:i,tooltipTitle:u,series:c,kind:f="bars",stacked:v=!0,height:p=220,format:b=Me,formatRight:S,formatTooltip:k,yMax:h,yMaxRight:x,hidden:C,showTotal:R,references:L,onSelect:D,emptyLabel:_="No data in this range",tooltipExtra:z}){let[F,K]=vm(),[N,oe]=Vn.useState(null),B=Vn.useId().replace(/:/g,""),ee=Vn.useMemo(()=>c.filter((V)=>!C?.has(V.key)),[c,C]),Z=Vn.useMemo(()=>{let V=ee.filter((Et)=>Et.axis!=="right"),Pe=ee.filter((Et)=>Et.axis==="right"),Mt=(Et)=>v&&(Et.kind??f)!=="line",pa=new Map,re=Array.from({length:r},()=>0),ma=0;for(let Et of V)if(Mt(Et)){let Ee=re.slice();pa.set(Et.key,Ee);for(let rl=0;rl<r;rl++)re[rl]+=Et.values[rl]??0}else for(let Ee=0;Ee<r;Ee++)ma=Math.max(ma,Et.values[Ee]??0);for(let Et of re)ma=Math.max(ma,Et);let Ia=0;for(let Et of Pe)for(let Ee=0;Ee<r;Ee++)Ia=Math.max(Ia,Et.values[Ee]??0);for(let Et of L??[])if(Et.axis==="right")Ia=Math.max(Ia,Et.value);else ma=Math.max(ma,Et.value);let Kt=rw(h??ma),Yt=Pe.length>0?rw(x??Ia):null,gt=ee.every((Et)=>Et.values.every((Ee)=>!Ee));return{left:V,right:Pe,bases:pa,stackable:Mt,leftScale:Kt,rightScale:Yt,empty:gt}},[ee,r,v,f,h,x,L]),W=Z.leftScale.ticks.map((V)=>b(V)),X=Z.rightScale?.ticks.map((V)=>(S??b)(V))??[],ge=Math.max(28,sw(W)+12),Ne=Z.rightScale?Math.max(28,sw(X)+12):8,Ce=Math.max(0,K-ge-Ne),Be=p-Js-CA,te=r>0?Ce/r:0,ve=(V)=>Js+Be-V/Z.leftScale.max*Be,ke=(V)=>Js+Be-V/(Z.rightScale?.max??1)*Be,je=(V)=>ge+(V+0.5)*te,ae=ee.filter((V)=>(V.kind??f)==="bars"),P=ae.filter((V)=>!Z.stackable(V)||V.axis==="right"),ue=Math.max(1,Math.min(56,te*(te>6?0.72:0.9))),se=Math.max(1,Math.ceil(r/Math.max(1,Math.floor(Ce/kA)))),ne=(V)=>{let Pe=V.currentTarget.getBoundingClientRect(),Mt=Math.floor((V.clientX-Pe.left)/(Pe.width/r));oe(Mt>=0&&Mt<r?Mt:null)},pe=N===null?[]:ee.filter((V)=>V.tooltip!==!1).map((V)=>({s:V,v:V.values[N]})).filter((V)=>V.v!==null&&V.v!==void 0&&(V.v!==0||ee.length===1)).sort((V,Pe)=>ee.length>1?Pe.v-V.v:0),Lt=pe.filter((V)=>V.s.axis!=="right").reduce((V,Pe)=>V+Pe.v,0),Ye=R??(v&&Z.left.length>1);return ct.jsxDEV("div",{className:"chart",ref:F,"data-hovering":N!==null,style:{height:p},children:[K>0&&ct.jsxDEV("svg",{width:K,height:p,role:"img",children:[ct.jsxDEV("defs",{children:ee.filter((V)=>V.pattern==="hatch").map((V)=>ct.jsxDEV("pattern",{id:`${B}-${wb(V.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[ct.jsxDEV("rect",{width:"5",height:"5",fill:V.color,fillOpacity:"0.14"},void 0,!1,void 0,this),ct.jsxDEV("rect",{width:"1.6",height:"5",fill:V.color},void 0,!1,void 0,this)]},V.key,!0,void 0,this))},void 0,!1,void 0,this),ct.jsxDEV("g",{className:"chart-grid",children:Z.leftScale.ticks.map((V)=>ct.jsxDEV("line",{x1:ge,x2:ge+Ce,y1:ve(V),y2:ve(V)},V,!1,void 0,this))},void 0,!1,void 0,this),ct.jsxDEV("g",{className:"chart-axis",children:[Z.leftScale.ticks.map((V,Pe)=>ct.jsxDEV("text",{x:ge-8,y:ve(V),dy:"0.32em",textAnchor:"end",children:W[Pe]},V,!1,void 0,this)),Z.rightScale?.ticks.map((V,Pe)=>ct.jsxDEV("text",{x:ge+Ce+8,y:ke(V),dy:"0.32em",textAnchor:"start",children:X[Pe]},V,!1,void 0,this)),Array.from({length:r},(V,Pe)=>Pe%se===0?ct.jsxDEV("text",{x:je(Pe),y:p-6,textAnchor:"middle",children:i(Pe)},Pe,!1,void 0,this):null)]},void 0,!0,void 0,this),N!==null&&ct.jsxDEV("rect",{className:"chart-cursor",x:ge+N*te,y:Js,width:te,height:Be},void 0,!1,void 0,this),ee.filter((V)=>(V.kind??f)==="area").map((V)=>{let Pe=V.axis==="right"?ke:ve,Mt=Z.bases.get(V.key),pa=(Kt)=>(Mt?.[Kt]??0)+(V.values[Kt]??0),re=uw(r,je,(Kt)=>Pe(pa(Kt))),ma=Array.from({length:r},(Kt,Yt)=>r-1-Yt).map((Kt)=>`L${je(Kt).toFixed(1)},${Pe(Mt?.[Kt]??0).toFixed(1)}`).join(""),Ia=V.pattern==="hatch"?`url(#${B}-${wb(V.key)})`:V.color;return ct.jsxDEV("g",{children:[ct.jsxDEV("path",{d:`${re}${ma}Z`,fill:Ia,fillOpacity:V.pattern?1:0.2},void 0,!1,void 0,this),ct.jsxDEV("path",{className:"chart-line",d:re,stroke:V.color},void 0,!1,void 0,this)]},V.key,!0,void 0,this)}),ae.map((V)=>{let Pe=V.axis==="right"?ke:ve,Mt=Z.bases.get(V.key),pa=P.indexOf(V),re=pa>=0?ue/P.length:ue,ma=V.pattern==="hatch"?`url(#${B}-${wb(V.key)})`:V.color;return ct.jsxDEV("g",{children:V.values.map((Ia,Kt)=>{if(!Ia)return null;let Yt=pa>=0?0:Mt?.[Kt]??0,gt=Pe(Yt),Et=Pe(Yt+Ia),Ee=je(Kt)-ue/2+(pa>=0?pa*re:0);return ct.jsxDEV("rect",{className:"chart-bar","data-hover":N===Kt,x:Ee,y:Math.min(gt,Et),width:Math.max(1,re-(pa>=0&&P.length>1?1:0)),height:Math.max(Ia>0?1:0,Math.abs(gt-Et)),fill:ma},Kt,!1,void 0,this)})},V.key,!1,void 0,this)}),ee.filter((V)=>(V.kind??f)==="line").map((V)=>{let Pe=V.axis==="right"?ke:ve,Mt=(pa)=>{let re=V.values[pa];return re===null||re===void 0?null:Pe(re)};return ct.jsxDEV("g",{children:[ct.jsxDEV("path",{className:"chart-line",d:uw(r,je,Mt),stroke:V.color,strokeDasharray:V.dashed?"4 3":void 0},void 0,!1,void 0,this),V.values.map((pa,re)=>{let ma=Mt(re);if(ma===null||re>0&&Mt(re-1)!==null||re<r-1&&Mt(re+1)!==null)return null;return ct.jsxDEV("circle",{cx:je(re),cy:ma,r:2.5,fill:V.color},re,!1,void 0,this)})]},V.key,!0,void 0,this)}),L?.map((V)=>{let Pe=V.axis==="right"?ke(V.value):ve(V.value);return ct.jsxDEV("g",{className:"chart-axis",children:[ct.jsxDEV("line",{x1:ge,x2:ge+Ce,y1:Pe,y2:Pe,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),V.label&&ct.jsxDEV("text",{x:ge+Ce-4,y:Pe-5,textAnchor:"end",children:V.label},void 0,!1,void 0,this)]},`${V.axis??"left"}:${V.value}`,!0,void 0,this)}),ct.jsxDEV("line",{className:"chart-baseline",x1:ge,x2:ge+Ce,y1:ve(0),y2:ve(0)},void 0,!1,void 0,this),ct.jsxDEV("rect",{x:ge,y:Js,width:Ce,height:Be,fill:"transparent",onPointerMove:ne,onPointerLeave:()=>oe(null),onClick:D&&N!==null?()=>D(N):void 0,style:{cursor:D?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z.empty&&ct.jsxDEV("div",{className:"chart-empty",children:_},void 0,!1,void 0,this),N!==null&&!Z.empty&&ct.jsxDEV("div",{className:"chart-tooltip",style:je(N)>K/2?{right:K-je(N)+Math.min(te/2,24)+8,top:Js}:{left:je(N)+Math.min(te/2,24)+8,top:Js},children:[ct.jsxDEV("div",{className:"chart-tooltip-title",children:(u??i)(N)},void 0,!1,void 0,this),pe.map(({s:V,v:Pe})=>ct.jsxDEV("div",{className:"chart-tooltip-row",children:[ct.jsxDEV("span",{className:"swatch",style:{background:V.color}},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-label",children:V.label},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-value",children:V.axis==="right"?(S??b)(Pe):(k??b)(Pe)},void 0,!1,void 0,this)]},V.key,!0,void 0,this)),Ye&&pe.length>1&&ct.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[ct.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),ct.jsxDEV("span",{className:"chart-tooltip-value",children:(k??b)(Lt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),z&&ct.jsxDEV(Vn.Fragment,{children:z(N)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function rw(r){if(!(r>0))return{max:1,ticks:[0]};let i=r/wA,u=10**Math.floor(Math.log10(i)),c=[1,2,2.5,5,10].map((p)=>p*u).find((p)=>p>=i)??10*u,f=Math.ceil(r/c)*c,v=[];for(let p=0;p<=f+c/2;p+=c)v.push(Number(p.toPrecision(12)));return{max:f,ticks:v}}function sw(r){return r.reduce((i,u)=>Math.max(i,u.length*6.3),0)}function uw(r,i,u){let c="",f=!1;for(let v=0;v<r;v++){let p=u(v);if(p===null){f=!1;continue}c+=`${f?"L":"M"}${i(v).toFixed(1)},${p.toFixed(1)}`,f=!0}return c}function wb(r){return r.replace(/[^a-zA-Z0-9_-]/g,"_")}var km=Y(ut(),1),pn=Y(ce(),1);function Qa({items:r,hidden:i,onToggle:u}){return pn.jsxDEV("div",{className:"legend",children:r.map((c)=>{let f=pn.jsxDEV(pn.Fragment,{children:[pn.jsxDEV("span",{className:"swatch",style:{background:c.color}},void 0,!1,void 0,this),pn.jsxDEV("span",{className:"truncate",children:c.label},void 0,!1,void 0,this),c.value&&pn.jsxDEV("span",{className:"legend-value",children:c.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return u?pn.jsxDEV("button",{type:"button",className:"legend-item","data-off":i?.has(c.key)??!1,onClick:()=>u(c.key),title:c.label,children:f},c.key,!1,void 0,this):pn.jsxDEV("span",{className:"legend-item",title:c.label,children:f},c.key,!1,void 0,this)})},void 0,!1,void 0,this)}function nl(){let[r,i]=km.useState(()=>new Set),u=km.useCallback((c)=>{i((f)=>{let v=new Set(f);if(!v.delete(c))v.add(c);return v})},[]);return[r,u]}var Tb=Y(ce(),1);function Qr({segments:r,height:i=8}){let u=r.reduce((c,f)=>c+Math.max(0,f.value),0);return Tb.jsxDEV("div",{className:"share-bar",style:{height:i},role:"img",children:u>0&&r.filter((c)=>c.value>0).map((c)=>Tb.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:c.value/u,background:c.color},title:`${c.label}: ${(c.value/u*100).toFixed(1)}%`},c.key,!1,void 0,this))},void 0,!1,void 0,this)}var iw=Y(ce(),1);function $n({buckets:r,bucketMs:i,onSelectBucket:u,...c}){return iw.jsxDEV(Cl,{...c,slots:r.length,tickLabel:(f)=>pm(r[f],i),tooltipTitle:(f)=>fm(r[f],i),onSelect:u?(f)=>u(r[f]):void 0},void 0,!1,void 0,this)}var Ha=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],eo="#6c6c74";function ya(r,i){return`${r}::${i}`}function wm(r){return qc(r.map((i)=>({key:ya(i.model,i.provider),weight:i.totalRequests})))}function qc(r){let i=[...r].sort((u,c)=>c.weight-u.weight||u.key.localeCompare(c.key));return new Map(i.map((u,c)=>[u.key,Ha[c%Ha.length]]))}var Oa=Y(ut(),1);var TA=128,IA=1500,eu=new Map,Ib=new Map;function RA(r,i){if(eu.delete(r),eu.set(r,i),eu.size>TA){let u=eu.keys().next().value;if(u!==void 0)eu.delete(u)}}function MA(r,i,u){let c=Ib.get(r);if(c)return c;let f=i().then((v)=>(RA(r,{data:v,updatedAt:Date.now(),version:u}),v)).finally(()=>{Ib.delete(r)});return Ib.set(r,f),f}function qt(r,i,u){let c=JSON.stringify(r),f=u?.enabled??!0,v=u?.pollMs,{version:p}=fi(),[,b]=Oa.useReducer((B)=>B+1,0),[S,k]=Oa.useState(null),[h,x]=Oa.useState(!1),C=Oa.useRef(i);C.current=i;let R=Oa.useRef(c);R.current=c;let L=Oa.useRef(p);L.current=p;let D=Oa.useRef(null),_=Oa.useRef(0),z=Oa.useCallback((B)=>{_.current=Date.now(),x(!0),MA(B,()=>C.current(),L.current).then(()=>{if(R.current!==B)return;Oa.startTransition(()=>{k(null),b()})}).catch((ee)=>{if(R.current!==B)return;k({key:B,error:ee instanceof Error?ee:Error(String(ee))})}).finally(()=>{if(R.current===B)x(!1)})},[]);Oa.useEffect(()=>{if(!f)return;let B=eu.get(c);if(B&&B.version>=p)return;let ee=B?_.current+IA-Date.now():0;if(ee<=0){z(c);return}let Z=setTimeout(()=>z(c),ee);return()=>clearTimeout(Z)},[c,f,p,z]),Oa.useEffect(()=>{if(!f||!v)return;let B=setInterval(()=>{if(!document.hidden)z(R.current)},v);return()=>clearInterval(B)},[f,v,z]);let F=Oa.useCallback(()=>z(R.current),[z]),K=eu.get(c);if(K)D.current={key:c,data:K.data,updatedAt:K.updatedAt};let N=D.current,oe=S?.key===c?S.error:null;return{data:N?.data??null,error:oe,loading:!N&&!oe,stale:!!N&&N.key!==c,refreshing:h,updatedAt:N?.updatedAt??null,refetch:F}}function ba(r,i,u){let c=dw(i),f=Array.from({length:i.length},()=>0);for(let v of r){let p=c.get(v.timestamp);if(p!==void 0)f[p]+=u(v)}return f}function mn(r,i){let u=dw(i.buckets),c=new Map;for(let k of r){let h=u.get(k.timestamp);if(h===void 0)continue;let x=i.key(k),C=c.get(x);if(!C)C=Array.from({length:i.buckets.length},()=>0),c.set(x,C);C[h]+=i.value(k)}let f=[...c.entries()].map(([k,h])=>({key:k,values:h,total:h.reduce((x,C)=>x+C,0)})).filter((k)=>k.total!==0).sort((k,h)=>h.total-k.total||k.key.localeCompare(h.key)),v=i.limit??Number.POSITIVE_INFINITY,p=f.slice(0,v),b=f.slice(v),S=p.map((k,h)=>({key:k.key,label:i.label?i.label(k.key):k.key,color:i.colors?.get(k.key)??Ha[h%Ha.length],values:k.values}));if(b.length>0){let k=Array.from({length:i.buckets.length},()=>0);for(let h of b)for(let x=0;x<k.length;x++)k[x]+=h.values[x];S.push({key:"__other__",label:`Other (${b.length})`,color:eo,values:k})}return S}function dw(r){let i=new Map;for(let u=0;u<r.length;u++)i.set(r[u],u);return i}var AA=["main","subagent","advisor"];function Zr(r){return r.totalInputTokens+r.totalOutputTokens+r.totalCacheReadTokens+r.totalCacheWriteTokens}function pw(r){let i=new Map;for(let p of r)i.set(p.agentType,p);let u=AA.map((p)=>i.get(p)).filter((p)=>p!==void 0),c=u.reduce((p,b)=>p+Zr(b),0),f=u.reduce((p,b)=>p+b.totalCost,0),v=u.map((p)=>{let b=Zr(p);return{agentType:p.agentType,tokens:b,requests:p.totalRequests,cost:p.totalCost,share:c>0?b/c:0}});return{totalTokens:c,totalCost:f,segments:v}}function mw(r){let i={totalCost:0,requests:0,unpricedRequests:0,activeDays:new Set(r.map((f)=>f.timestamp)).size,avgDailyCost:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,models:[],topModel:null},u=new Map;for(let f of r){let v=ya(f.model,f.provider),p=u.get(v);if(!p)p={key:v,model:f.model,provider:f.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},u.set(v,p);cw(p,f),cw(i,f),p.cost+=f.cost,i.totalCost+=f.cost}i.avgDailyCost=i.activeDays>0?i.totalCost/i.activeDays:0,i.models=[...u.values()].sort((f,v)=>v.cost-f.cost||v.requests-f.requests||f.key.localeCompare(v.key));for(let f of i.models)f.share=i.totalCost>0?f.cost/i.totalCost:0;let c=i.models[0];return i.topModel=c!==void 0&&c.cost>0?c:null,i}function cw(r,i){r.costInput+=i.costInput,r.costOutput+=i.costOutput,r.costCacheRead+=i.costCacheRead,r.costCacheWrite+=i.costCacheWrite,r.requests+=i.requests,r.unpricedRequests+=i.unpricedRequests}function hw(r){let i=new Map;for(let u of r){let c=ya(u.model,u.provider),f=i.get(c);if(!f)f=[],i.set(c,f);f.push({timestamp:u.timestamp,avgTtftSeconds:u.avgTtft!==null?u.avgTtft/1000:null,avgTokensPerSecond:u.avgTokensPerSecond,requests:u.requests})}for(let u of i.values())u.sort((c,f)=>c.timestamp-f.timestamp);return i}var DA=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function gw(r){let i=0,u=0,c=0,f=0,v=0,p=0,b=0,S=0,k=0;for(let C of r){if(i+=C.totalRequests,u+=C.failedRequests,c+=C.totalCost,f+=C.unpricedRequests,v+=C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,p+=C.totalInputTokens,b+=C.totalCacheReadTokens,C.totalRequests>S)S=C.totalRequests;if(C.totalCost>k)k=C.totalCost}let h=0;return{rows:r.map((C)=>{let R=DA.test(C.folder);if(R)h++;return{...C,conversationTokens:C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,requestShare:i>0?C.totalRequests/i:0,costShare:c>0?C.totalCost/c:0,temporary:R}}),totalRequests:i,failedRequests:u,totalCost:c,unpricedRequests:f,conversationTokens:v,cacheRate:p+b>0?b/(p+b):0,maxRequests:S,maxCost:k,temporaryCount:h}}function yw(r){let i=0,u=0,c=0;for(let f of r)i+=f.calls,u+=f.totalTokensShare,c+=f.costShare;return r.map((f)=>({...f,errorRate:f.calls>0?f.errors/f.calls:0,callFraction:i>0?f.calls/i:0,tokenFraction:u>0?f.totalTokensShare/u:0,costFraction:c>0?f.costShare/c:0,avgResultChars:f.calls>0?f.resultChars/f.calls:0}))}function Xn(r){if(r.stopReason==="aborted")return"aborted";if(r.stopReason==="error"||r.errorMessage)return"failed";return"ok"}function Rb(r,i){if(r.length===0)return null;return r[Math.min(r.length-1,Math.max(0,Math.ceil(i*r.length)-1))]}function bw(r){let i=0,u=0,c=0,f=0,v=0,p=null,b=null,S=[],k=[];for(let h of r){let x=Xn(h);if(x==="failed")i++;else if(x==="aborted")u++;if(c+=h.usage.totalTokens,f+=h.usage.cost.total,vb(h))v++;if(h.duration!==null)S.push(h.duration);if(h.ttft!==null)k.push(h.ttft);if(p===null||h.timestamp<p)p=h.timestamp;if(b===null||h.timestamp>b)b=h.timestamp}return S.sort((h,x)=>h-x),k.sort((h,x)=>h-x),{requests:r.length,failed:i,aborted:u,tokens:c,cost:f,unpriced:v,medianDuration:Rb(S,0.5),p95Duration:Rb(S,0.95),medianTtft:Rb(k,0.5),oldest:p,newest:b}}var fw=180,EA=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,OA=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,qA=/\b[0-9a-f]{12,}\b/gi,BA=/(?<![\w.-])\d+(?:\.\d+)?/g,NA=/^[1-5]\d\d$/;function Mb(r){if(!r?.trim())return"Unknown error";let i=r.replace(/\s+/g," ").trim().replace(EA,"<id>").replace(OA,"<id>").replace(qA,"<hex>").replace(BA,(u)=>NA.test(u)?u:"N");return i.length>fw?`${i.slice(0,fw-1)}…`:i}function vw(r){let i=new Map;for(let u of r){let c=Mb(u.errorMessage),f=i.get(c);if(!f)f={signature:c,count:0,firstSeen:u.timestamp,lastSeen:u.timestamp,latest:u,models:[],byModel:new Map},i.set(c,f);if(f.count++,u.timestamp<f.firstSeen)f.firstSeen=u.timestamp;if(u.timestamp>f.lastSeen)f.lastSeen=u.timestamp,f.latest=u;let v=ya(u.model,u.provider),p=f.byModel.get(v);if(p)p.count++;else f.byModel.set(v,{model:u.model,provider:u.provider,count:1})}return[...i.values()].map(({byModel:u,...c})=>({...c,models:[...u.values()].sort((f,v)=>v.count-f.count||f.model.localeCompare(v.model))})).sort((u,c)=>c.count-u.count||c.lastSeen-u.lastSeen)}var Ae=Y(ce(),1),UA=[{value:"model",label:"By model"},{value:"component",label:"By component"}],PA=6,zA=86400000,Bc=[{key:"costInput",label:"Input",color:"#5b8cff"},{key:"costOutput",label:"Output",color:"var(--chart-secondary)"},{key:"costCacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"costCacheWrite",label:"Cache write",color:"#f5b54a"}],_A=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),HA=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function Sw({active:r,range:i}){let u=qt(["costs",i],()=>Tk(i),{enabled:r}),c=na(i),[f,v]=Tm.useState("model"),[p,b]=nl(),S=Tm.useMemo(()=>u.data?FA(u.data,i):null,[u.data,i]),k=(x)=>x.costSeries.length===0,h=Ae.jsxDEV(mt,{title:"No usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Ae.jsxDEV("div",{className:"page",children:[Ae.jsxDEV(ta,{title:"Costs",description:`What ${c.windowLabel} of usage would cost at public API rates. Subscription usage without a public price is counted as unpriced, not free.`},void 0,!1,void 0,this),Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(Ea,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Ae.jsxDEV(GA,{view:S,stale:u.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae.jsxDEV("div",{className:"grid grid-main-side",children:[Ae.jsxDEV(Ve,{index:1,title:"Daily estimate",description:f==="model"?"Per UTC day, stacked by model":"Per UTC day, stacked by billing component",actions:Ae.jsxDEV(za,{size:"sm",options:UA,value:f,onChange:v,"aria-label":"Split by"},void 0,!1,void 0,this),stale:u.stale,children:Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(Tt,{height:280},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>{if(!S)return null;let x=f==="model"?S.modelSeries:S.componentSeries;return Ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[Ae.jsxDEV(Cl,{slots:S.buckets.length,tickLabel:(C)=>_A.format(S.buckets[C]),tooltipTitle:(C)=>HA.format(S.buckets[C]),series:x,hidden:p,height:280,format:(C)=>sa(C,Number.isInteger(C)?0:2),formatTooltip:(C)=>sa(C),emptyLabel:"No priced usage in this range",tooltipExtra:(C)=>S.unpricedPerDay[C]>0?Ae.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Ae.jsxDEV("span",{className:"chart-tooltip-label",children:"Unpriced requests"},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"chart-tooltip-value",children:q(S.unpricedPerDay[C])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),Ae.jsxDEV(Qa,{items:x.map((C)=>({key:C.key,label:C.label,color:C.color,value:sa(XA(C.values))})),hidden:p,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae.jsxDEV(Ve,{index:2,title:"Where it went",description:"Estimate by billing component",stale:u.stale,children:Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(Tt,{height:280},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Ae.jsxDEV(VA,{summary:S.summary},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ae.jsxDEV(Ve,{index:3,title:"By model",description:"Estimate per model with its input, output and cache split",stale:u.stale,flush:!0,children:Ae.jsxDEV(_e,{query:u,skeleton:Ae.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Ae.jsxDEV(zt,{rows:S.summary.models,rowKey:(x)=>x.key,columns:$A(S),initialSort:{key:"cost",dir:"desc"},limit:20},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function FA(r,i){let u=r.costSeries,c=mw(u),f=wm(c.models.map((k)=>({model:k.model,provider:k.provider,totalRequests:k.requests}))),v=new Map(c.models.map((k)=>[k.key,k])),p=Po(i,u.map((k)=>k.timestamp),zA),b=mn(u,{buckets:p,key:(k)=>ya(k.model,k.provider),label:(k)=>v.get(k)?.model??k,value:(k)=>k.cost,limit:PA,colors:f}).map((k)=>({...k,values:k.values.map((h)=>h||null)})),S=new Set;for(let k of b){if(k.key==="__other__")continue;if(S.has(k.color))k.color=Ha.find((h)=>!S.has(h))??k.color;S.add(k.color)}return{summary:c,swatches:new Map(b.filter((k)=>k.key!=="__other__").map((k)=>[k.key,k.color])),buckets:p,dailyTotals:ba(u,p,(k)=>k.cost),unpricedPerDay:ba(u,p,(k)=>k.unpricedRequests),modelSeries:b,componentSeries:Bc.map((k)=>({key:k.key,label:k.label,color:k.color,values:ba(u,p,(h)=>h[k.key]).map((h)=>h||null)})),maxModelCost:c.models[0]?.cost??0}}function GA({view:r,stale:i}){let{summary:u}=r,c=u.requests-u.unpricedRequests,f=u.topModel;return Ae.jsxDEV("div",{"data-stale":i,children:Ae.jsxDEV(aa,{min:180,children:[Ae.jsxDEV(fe,{label:"API-equivalent estimate",title:"What this usage would cost at public API rates",value:Ot(u.totalCost,u.unpricedRequests),hint:`${q(u.requests)} requests`,spark:r.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Average per day",title:"Estimate ÷ days with any usage",value:Ot(u.avgDailyCost,u.unpricedRequests),hint:`over ${q(u.activeDays)} active day${u.activeDays===1?"":"s"}`},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Top model",title:f?`${f.model} (${f.provider})`:void 0,value:f?f.model:"–",hint:f?`${sa(f.cost)} · ${Re(f.share)} of estimate`:"Nothing priced yet"},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Per priced request",title:"Estimate ÷ requests that have a public price",value:c>0?xw(u.totalCost/c):"–",hint:`${q(c)} priced`},void 0,!1,void 0,this),Ae.jsxDEV(fe,{label:"Unpriced requests",title:"Subscription usage with no public-equivalent price; excluded from the estimate",value:q(u.unpricedRequests),hint:u.unpricedRequests>0?"excluded from the estimate":"all usage priced"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function VA({summary:r}){return Ae.jsxDEV("div",{className:"stack",style:{gap:14},children:[Ae.jsxDEV(Qr,{height:10,segments:Bc.map((i)=>({key:i.key,label:i.label,value:r[i.key],color:i.color}))},void 0,!1,void 0,this),Ae.jsxDEV("div",{className:"costs-components",children:[Bc.map((i)=>Ae.jsxDEV("div",{className:"costs-component-row",children:[Ae.jsxDEV("span",{className:"row",children:[Ae.jsxDEV(Sl,{color:i.color},void 0,!1,void 0,this),i.label]},void 0,!0,void 0,this),Ae.jsxDEV("span",{className:"num",children:sa(r[i.key])},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"num dim costs-component-share",children:r.totalCost>0?Re(r[i.key]/r.totalCost):"–"},void 0,!1,void 0,this)]},i.key,!0,void 0,this)),Ae.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[Ae.jsxDEV("span",{children:"Total"},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"num",children:Ot(r.totalCost,r.unpricedRequests)},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"costs-component-share"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),r.unpricedRequests>0&&Ae.jsxDEV("p",{className:"micro dim",children:[q(r.unpricedRequests)," unpriced subscription request",r.unpricedRequests===1?" is":"s are"," not included."]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function $A(r){let i=Bc.map((u)=>({key:u.key,header:u.label,align:"right",sort:(c)=>c[u.key],render:(c)=>Ae.jsxDEV("span",{className:"num",children:sa(c[u.key])},void 0,!1,void 0,this)}));return[{key:"model",header:"Model",sort:(u)=>u.model,render:(u)=>Ae.jsxDEV(_a,{lead:Ae.jsxDEV(Sl,{color:r.swatches.get(u.key)??eo},void 0,!1,void 0,this),primary:Ae.jsxDEV("span",{className:"mono",children:u.model},void 0,!1,void 0,this),secondary:u.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(u)=>u.requests,render:(u)=>Ae.jsxDEV("span",{className:"num",children:q(u.requests)},void 0,!1,void 0,this)},{key:"cost",header:"Estimate",title:"API-equivalent estimate at public rates",align:"right",sort:(u)=>u.cost,render:(u)=>Ae.jsxDEV(ia,{value:u.cost,max:r.maxModelCost,display:Ot(u.cost,u.unpricedRequests),color:r.swatches.get(u.key)??eo},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(u)=>u.share,render:(u)=>Ae.jsxDEV("span",{className:"num muted",children:u.cost>0?Re(u.share):"–"},void 0,!1,void 0,this)},{key:"split",header:"Split",title:"Input · output · cache read · cache write",width:150,render:(u)=>u.cost>0?Ae.jsxDEV(Qr,{segments:Bc.map((c)=>({key:c.key,label:c.label,value:u[c.key],color:c.color}))},void 0,!1,void 0,this):Ae.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...i,{key:"perRequest",header:"Per request",title:"Estimate ÷ priced requests",align:"right",sort:(u)=>u.requests>u.unpricedRequests?u.cost/(u.requests-u.unpricedRequests):-1,render:(u)=>Ae.jsxDEV("span",{className:"num",children:u.requests>u.unpricedRequests?xw(u.cost/(u.requests-u.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:"Unpriced",title:"Requests with no public-equivalent price",align:"right",sort:(u)=>u.unpricedRequests,render:(u)=>u.unpricedRequests>0?Ae.jsxDEV("span",{className:"num tone-warn",children:q(u.unpricedRequests)},void 0,!1,void 0,this):Ae.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function xw(r){return r>0&&r<0.0001?"<$0.0001":sa(r)}function XA(r){let i=0;for(let u of r)i+=u??0;return i}var jn=Y(ut(),1);var Se=Y(ce(),1),Ab=[50,200,1000];function Lw({active:r,range:i,onRequestClick:u}){let[c,f]=jn.useState(0),v=Ab[c],p=qt(["errors",i,v],()=>Ik(i,v),{enabled:r}),[b,S]=jn.useState(null),[k,h]=jn.useState(null),[x,C]=jn.useState(""),R=na(i),L=jn.useMemo(()=>{let W=(p.data??[]).map((Be)=>({row:Be,signature:Mb(Be.errorMessage)})),X=vw(p.data??[]),ge=new Map;for(let{row:Be}of W){let te=ya(Be.model,Be.provider),ve=ge.get(te);if(ve)ve.count++;else ge.set(te,{model:Be.model,provider:Be.provider,count:1})}let Ne=[...ge.entries()].map(([Be,te])=>({key:Be,...te})).sort((Be,te)=>te.count-Be.count||Be.model.localeCompare(te.model)),Ce=W.reduce((Be,{row:te})=>!Be||te.timestamp>Be.timestamp?te:Be,null);return{rows:W,groups:X,models:Ne,newest:Ce}},[p.data]),D=L.groups.some((W)=>W.signature===b)?b:null,_=L.models.some((W)=>W.key===k)?k:null,z=jn.useMemo(()=>{let W=x.trim().toLowerCase();return L.rows.filter((X)=>(D===null||X.signature===D)&&(_===null||ya(X.row.model,X.row.provider)===_)&&(W===""||X.row.model.toLowerCase().includes(W)||X.row.provider.toLowerCase().includes(W)||X.row.folder.toLowerCase().includes(W)||(X.row.errorMessage??"").toLowerCase().includes(W))).map((X)=>X.row)},[L.rows,D,_,x]),F=p.data?.length??0,K=!p.stale&&F<v,N=c+1<Ab.length?Ab[c+1]:null,oe=p.data!==null&&!K?Se.jsxDEV(Se.Fragment,{children:[Se.jsxDEV("span",{children:["Showing the latest ",q(F)," failures in ",R.windowLabel,"; older ones are not loaded."]},void 0,!0,void 0,this),N!==null&&Se.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:p.refreshing,onClick:()=>f(c+1),children:p.refreshing&&p.stale?"Loading…":`Load latest ${q(N)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,B=L.groups[0]?.count??0,ee=jn.useMemo(()=>jA(B),[B]),Z=L.models.find((W)=>W.key===_);return Se.jsxDEV("div",{className:"page",children:[Se.jsxDEV(ta,{title:"Errors",description:`Failed model requests in ${R.windowLabel}, grouped by error signature. Open a failure for its full payload.`},void 0,!1,void 0,this),Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(Ea,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Se.jsxDEV("div",{"data-stale":p.stale,children:Se.jsxDEV(aa,{min:170,children:[Se.jsxDEV(fe,{label:"Failures",value:q(F),hint:K?`in ${R.windowLabel}`:`latest ${q(F)} loaded`},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Signatures",title:"Distinct error messages after normalizing ids and numbers",value:q(L.groups.length),hint:L.groups[0]?`top: ${q(L.groups[0].count)} failures`:void 0},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Affected models",value:q(L.models.length),hint:L.models[0]?.model},void 0,!1,void 0,this),Se.jsxDEV(fe,{label:"Last failure",value:L.newest?ua(L.newest.timestamp):"–",hint:L.newest?ll(L.newest.timestamp):`none in ${R.windowLabel}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se.jsxDEV("div",{className:"grid grid-main-side",children:[Se.jsxDEV(Ve,{index:1,title:"Error signatures",description:"Same message with ids and counters normalized. Select one to filter the failures below.",flush:!0,stale:p.stale,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:`No failures in ${R.windowLabel}`,hint:"Every request succeeded or was aborted."},void 0,!1,void 0,this),children:()=>Se.jsxDEV(zt,{rows:L.groups,rowKey:(W)=>W.signature,columns:ee,onRowClick:(W)=>S(D===W.signature?null:W.signature),selectedKey:D,expanded:(W)=>W.signature===D?Se.jsxDEV(YA,{group:W,onRequestClick:u},void 0,!1,void 0,this):null,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Se.jsxDEV(Ve,{index:2,title:"By model",description:"Failures per model. Select one to filter.",stale:p.stale,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(Ea,{height:180},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:"No affected models"},void 0,!1,void 0,this),children:()=>Se.jsxDEV(Oc,{items:L.models.slice(0,12).map((W)=>({key:W.key,label:Se.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[Se.jsxDEV("span",{className:"mono truncate",children:W.model},void 0,!1,void 0,this),Se.jsxDEV("span",{className:"dim truncate",children:W.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:W.count,color:W.key===_?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(W)=>h(_===W?null:W)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV(Ve,{index:3,title:"Failures",description:p.data===null?"Loading failures…":`${q(z.length)} of ${q(F)} failures, newest first`,actions:Se.jsxDEV(Se.Fragment,{children:[D!==null&&Se.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>S(null),title:D,children:[Se.jsxDEV("span",{className:"mono truncate",children:D},void 0,!1,void 0,this),Se.jsxDEV(al,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Z&&Se.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>h(null),children:[Se.jsxDEV("span",{className:"mono truncate",children:Z.model},void 0,!1,void 0,this),Se.jsxDEV(al,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV(un,{value:x,onChange:C,placeholder:"Message, model or project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:p.stale,footer:oe,children:Se.jsxDEV(_e,{query:p,skeleton:Se.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),isEmpty:(W)=>W.length===0,empty:Se.jsxDEV(mt,{title:`No failures in ${R.windowLabel}`},void 0,!1,void 0,this),children:()=>Se.jsxDEV(zt,{rows:z,rowKey:(W)=>W.id??`${W.sessionFile}:${W.entryId}`,onRowClick:(W)=>W.id!==void 0&&u(W.id),columns:QA,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:Se.jsxDEV(mt,{title:"No failures match",hint:"Clear the search or the selected filters."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function jA(r){return[{key:"signature",header:"Signature",wrap:!0,sort:(i)=>i.signature,render:(i)=>Se.jsxDEV("span",{className:"errors-signature",title:i.latest.errorMessage??void 0,children:i.signature},void 0,!1,void 0,this)},{key:"models",header:"Models",sort:(i)=>i.models.length,render:(i)=>Se.jsxDEV(_a,{primary:Se.jsxDEV("span",{className:"mono",children:i.models[0]?.model},void 0,!1,void 0,this),secondary:i.models.length>1?`+${i.models.length-1} more`:i.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:"Last seen",sort:(i)=>i.lastSeen,render:(i)=>Se.jsxDEV("span",{className:"muted",title:ll(i.lastSeen),children:ua(i.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:"Failures",align:"right",width:120,sort:(i)=>i.count,render:(i)=>Se.jsxDEV(ia,{value:i.count,max:r,display:q(i.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function YA({group:r,onRequestClick:i}){let u=r.latest.id;return Se.jsxDEV("div",{className:"errors-detail",children:[Se.jsxDEV("pre",{className:"code-block errors-detail-message",children:r.latest.errorMessage??"Unknown error"},void 0,!1,void 0,this),Se.jsxDEV("div",{className:"errors-detail-meta",children:[Se.jsxDEV("span",{className:"muted",children:[q(r.count)," failures · first ",ll(r.firstSeen)," · last"," ",ll(r.lastSeen)]},void 0,!0,void 0,this),u!==void 0&&Se.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>i(u),children:["Open latest ",Se.jsxDEV(pc,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV("div",{className:"errors-detail-models",children:r.models.map((c)=>Se.jsxDEV("span",{className:"badge","data-mono":"true",children:[c.model," ",Se.jsxDEV("span",{className:"dim",children:c.provider},void 0,!1,void 0,this)," ",Se.jsxDEV("span",{className:"num",children:Me(c.count)},void 0,!1,void 0,this)]},ya(c.model,c.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var QA=[{key:"time",header:"When",width:120,sort:(r)=>r.timestamp,render:(r)=>Se.jsxDEV("span",{className:"muted",title:ll(r.timestamp),children:ua(r.timestamp)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>Se.jsxDEV(_a,{primary:Se.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"error",header:"Error",sort:(r)=>r.errorMessage??"",render:(r)=>Se.jsxDEV("span",{className:"errors-message",title:r.errorMessage??void 0,children:r.errorMessage??"Unknown error"},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>Se.jsxDEV("span",{className:"mono muted",title:r.folder,children:cn(r.folder)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",sort:(r)=>r.usage.totalTokens,render:(r)=>Se.jsxDEV("span",{className:"num",children:q(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Se.jsxDEV("span",{className:"num",children:Yr(r,4)},void 0,!1,void 0,this)}];var It=Y(ut(),1);var j=Y(ce(),1),ZA=1000,Im=50,Eb=0.5,Nc="*";function kw({active:r,range:i}){let[u,c]=It.useState(!1),f=qt(["frustration",i],()=>Ak(i),{enabled:r,pollMs:u?ZA:void 0}),v=na(i),p=f.data?.job.state;It.useEffect(()=>{if(p!==void 0)c(p==="running")},[p]);let{refetch:b}=f,S=It.useCallback(()=>{c(!0),b()},[b]);return j.jsxDEV("div",{className:"page",children:[j.jsxDEV(ta,{title:"Frustration",description:`How often your messages sound annoyed, per model version, in ${v.windowLabel}.`},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),children:(k)=>j.jsxDEV("div",{"data-stale":f.stale,children:j.jsxDEV(WA,{overall:k.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Tt,{height:120},void 0,!1,void 0,this),children:(k)=>j.jsxDEV(KA,{active:r,range:i,judgeAvailable:k.judgeAvailable,job:k.job,onRunStarted:S,onRunChanged:b},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(_e,{query:f,skeleton:j.jsxDEV(Ve,{index:2,title:"Frustration by model version",children:[j.jsxDEV(Tt,{height:340},void 0,!1,void 0,this),j.jsxDEV(ra,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(k)=>j.jsxDEV(u2,{models:k.byModel,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function kl(r,i){return i>0?Re(r/i):"–"}function Db(r){return r instanceof Error?r.message:String(r)}function ww(r){let i=Math.max(0,Math.floor(r/1000)),u=Math.floor(i/60),c=i%60;return u>0?`${u}m ${String(c).padStart(2,"0")}s`:`${c}s`}function WA({overall:r}){let i=r.messages-r.judged;return j.jsxDEV(aa,{min:170,children:[j.jsxDEV(fe,{label:"User messages",title:"User messages with prose in range",value:q(r.messages)},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Judge coverage",title:"Messages with a cached judge verdict; the rest use regex signals",value:kl(r.judged,r.messages),hint:`${q(r.judged)} judged · ${q(i)} regex`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Annoyed",title:"Messages annoyed at any target",value:kl(r.annoyed,r.messages),hint:`${q(r.annoyed)} messages`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"At assistant",title:"Messages annoyed at the assistant",value:kl(r.atAssistant,r.messages),hint:`${q(r.atAssistant)} messages`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Angry",title:"Messages angry or hostile toward the assistant",value:kl(r.angry,r.messages),hint:`${q(r.angry)} messages`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Cw="Judging needs the omp host process: open the dashboard with omp stats and configure a judge model. Until then messages are classified by regex signals.";function KA({active:r,range:i,judgeAvailable:u,job:c,onRunStarted:f,onRunChanged:v}){let[p,b]=It.useState(!1),[S,k]=It.useState({status:"loading"}),[h,x]=It.useState(!1),[C,R]=It.useState(null),[L,D]=It.useState(!1),[_,z]=It.useState(null),F=It.useRef(null),K=c.state==="running",N=It.useCallback(()=>{F.current?.abort(),F.current=null,b(!1)},[]);It.useEffect(()=>{if(!r)N()},[r,N]),It.useEffect(()=>()=>F.current?.abort(),[]);let oe=()=>{F.current?.abort();let X=new AbortController;F.current=X;let ge=i;k({status:"loading"}),R(null),z(null),b(!0),Dk(ge,X.signal).then((Ne)=>{if(!X.signal.aborted)k({status:"ready",estimate:Ne,range:ge})},(Ne)=>{if(!X.signal.aborted)k({status:"error",message:Db(Ne)})})},B=async()=>{if(S.status!=="ready")return;x(!0),R(null);try{await Ek(S.range),N(),f()}catch(X){R(Db(X))}finally{x(!1)}},ee=async()=>{D(!0),z(null);try{await Ok(),v()}catch(X){z(Db(X))}finally{D(!1)}},Z=S.status==="ready"?S.estimate:null,W=S.status==="loading"?{label:"Proceed",onClick:B,disabled:!0}:Z?.available?{label:h?"Starting…":"Proceed",onClick:B,disabled:h||Z.messages===0}:void 0;return j.jsxDEV(Ve,{index:1,title:j.jsxDEV(j.Fragment,{children:["Judge classification ",j.jsxDEV(JA,{job:c,judgeAvailable:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),description:"Cached LLM verdicts replace the regex heuristics; unjudged messages fall back to regex signals.",actions:j.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:oe,disabled:!u||K,title:!u?Cw:K?"A judge run is in progress":"Quote the cost of judging every unjudged message in range",children:[j.jsxDEV(on,{size:13},void 0,!1,void 0,this)," Classify with judge"]},void 0,!0,void 0,this),children:[j.jsxDEV("div",{className:"stack frustration-judge",children:[K?j.jsxDEV(t2,{job:c,cancelling:L,onCancel:ee},void 0,!1,void 0,this):j.jsxDEV(a2,{job:c},void 0,!1,void 0,this),!u&&j.jsxDEV("p",{className:"micro dim",children:Cw},void 0,!1,void 0,this),_&&j.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:_},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(jk,{open:p,title:"Classify with judge",onClose:N,primaryAction:W,children:[j.jsxDEV(e2,{estimate:S},void 0,!1,void 0,this),C&&j.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:C},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function JA({job:r,judgeAvailable:i}){switch(r.state){case"running":return j.jsxDEV(wt,{tone:"ok",children:[j.jsxDEV(rn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Running"]},void 0,!0,void 0,this);case"done":return j.jsxDEV(wt,{tone:"ok",children:"Last run done"},void 0,!1,void 0,this);case"cancelled":return j.jsxDEV(wt,{tone:"warn",children:"Last run cancelled"},void 0,!1,void 0,this);case"failed":return j.jsxDEV(wt,{tone:"bad",children:"Last run failed"},void 0,!1,void 0,this);case"idle":return j.jsxDEV(wt,{children:i?"Not run yet":"Regex only"},void 0,!1,void 0,this)}}function e2({estimate:r}){if(r.status==="loading")return j.jsxDEV("p",{className:"muted",children:"Estimating cost…"},void 0,!1,void 0,this);if(r.status==="error")return j.jsxDEV("p",{className:"tone-bad",children:r.message},void 0,!1,void 0,this);let i=r.estimate;if(!i.available)return j.jsxDEV("p",{children:i.reason},void 0,!1,void 0,this);if(i.messages===0)return j.jsxDEV("p",{children:"Everything in this range is already judged. There is nothing left to classify."},void 0,!1,void 0,this);return j.jsxDEV(j.Fragment,{children:[j.jsxDEV("div",{className:"frustration-quote",children:[j.jsxDEV("span",{className:"dim micro",children:"Estimated cost"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",sa(i.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(_o,{items:[{key:"messages",label:"Unjudged unique messages",value:q(i.messages)},{key:"chars",label:"Prose characters",value:q(i.chars)},{key:"tokens",label:"Estimated input tokens",value:q(i.inputTokens)},{key:"judge",label:"Judge",value:i.judge}]},void 0,!1,void 0,this),j.jsxDEV("p",{className:"micro dim",children:"Identical messages share one verdict, and verdicts are cached, so later runs only pay for new messages. Nothing is spent until you proceed."},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function t2({job:r,cancelling:i,onCancel:u}){let c=r.done+r.failed,f=r.total>0?Math.min(1,c/r.total):0;return j.jsxDEV("div",{className:"stack frustration-progress",children:[j.jsxDEV("div",{className:"row frustration-progress-head",children:[j.jsxDEV("span",{className:"num",children:[q(r.done),"/",q(r.total)," judged"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"num dim",children:Re(f)},void 0,!1,void 0,this),j.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),j.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:u,disabled:i,children:i?"Cancelling…":"Cancel run"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":r.total,"aria-valuenow":c,children:j.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${f*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[j.jsxDEV("span",{className:r.failed>0?"tone-bad":void 0,children:[q(r.failed)," failed"]},void 0,!0,void 0,this),j.jsxDEV("span",{children:["cost so far ",j.jsxDEV("span",{className:"num",children:sa(r.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.judge&&j.jsxDEV("span",{className:"mono",children:r.judge},void 0,!1,void 0,this),r.startedAt!==null&&j.jsxDEV("span",{children:["elapsed ",ww(Date.now()-r.startedAt)]},void 0,!0,void 0,this),r.startedAt!==null&&r.done>0&&j.jsxDEV("span",{className:"num",children:[(r.done/Math.max(1,(Date.now()-r.startedAt)/1000)).toFixed(0),"/s"]},void 0,!0,void 0,this),r.concurrency>0&&j.jsxDEV("span",{className:"num",children:[q(r.concurrency)," in flight"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function a2({job:r}){let i=`${q(r.done)}/${q(r.total)} messages`,u=r.failed>0?`, ${q(r.failed)} failed`:"",c=r.judge?` with ${r.judge}`:"",f=r.startedAt!==null&&r.finishedAt!==null?` in ${ww(r.finishedAt-r.startedAt)}`:"";switch(r.state){case"idle":return j.jsxDEV("p",{className:"muted",children:"No judge run yet. Classify the unjudged messages to replace regex estimates with verdicts."},void 0,!1,void 0,this);case"running":return null;case"done":return j.jsxDEV("p",{className:"muted",children:["Last run judged ",i,u,c,f," for ",j.jsxDEV("span",{className:"num",children:sa(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"cancelled":return j.jsxDEV("p",{className:"muted",children:["Last run cancelled after ",i,u,"; spent ",j.jsxDEV("span",{className:"num",children:sa(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"failed":return j.jsxDEV("p",{className:"muted",children:["Last run failed after ",i,u,": ",j.jsxDEV("span",{className:"tone-bad",children:r.error??"unknown error"},void 0,!1,void 0,this),". Spent"," ",j.jsxDEV("span",{className:"num",children:sa(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this)}}function Pc(r){return`${r.modelClass}/${r.family??"unclassified"}`}function Si(r){return r.messages>0&&r.judged/r.messages<Eb}function o2(r){let i=2166136261;for(let u=0;u<r.length;u++)i^=r.charCodeAt(u),i=Math.imul(i,16777619);return i>>>0}function l2(r){let i=[...new Set(r.map(Pc))].sort(),u=new Set,c=new Map;for(let f of i){let v=o2(f)%Ha.length;for(let p=0;p<Ha.length&&u.has(v);p++)v=(v+1)%Ha.length;u.add(v),c.set(f,Ha[v])}return c}function n2(r,i){if(i==="angry")return`color-mix(in srgb, ${r} 55%, black)`;if(i==="other")return`color-mix(in srgb, ${r} 32%, transparent)`;return r}var r2=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function s2(r,i){if(i==="angry")return r.angry;if(i==="assistant")return r.atAssistant-r.angry;return r.annoyed-r.atAssistant}function Uc(r,i){return i>0?r/i*100:0}function u2({models:r,stale:i}){let[u,c]=It.useState(null),[f,v]=nl(),[p,b]=It.useState(!1),[S,k]=It.useState(!1),h=It.useMemo(()=>l2(r),[r]),x=It.useMemo(()=>{let B=new Map;for(let ee of r)B.set(ee.modelClass,(B.get(ee.modelClass)??0)+ee.messages);return B},[r]),C=It.useMemo(()=>{let B=null,ee=-1;for(let[Z,W]of x)if(W>ee)B=Z,ee=W;return B??Nc},[x]),R=u!==null&&(u===Nc||x.has(u))?u:C,L=It.useMemo(()=>[{value:Nc,label:"All",title:"Every model class"},...[...x].map(([B,ee])=>({value:B,label:B,title:`${q(ee)} messages`}))],[x]),D=It.useMemo(()=>R===Nc?r:r.filter((B)=>B.modelClass===R),[r,R]),_=It.useMemo(()=>{let B=new Map;for(let ee of D){let Z=Pc(ee),W=B.get(Z);if(W){W.messages+=ee.messages;continue}let X=ee.family??"unclassified";B.set(Z,{key:Z,label:R===Nc?`${ee.modelClass} · ${X}`:X,messages:ee.messages})}return[...B.values()]},[D,R]),z=It.useMemo(()=>D.filter((B)=>!f.has(Pc(B))),[D,f]),F=z.filter((B)=>B.messages<Im).length,K=z.filter(Si).length,N=It.useMemo(()=>z.filter((B)=>(p||B.messages>=Im)&&!(S&&Si(B))),[z,p,S]);if(r.length===0)return j.jsxDEV(Ve,{index:2,title:"Frustration by model version",stale:i,children:j.jsxDEV(mt,{title:"No user messages in this range",hint:"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this);let oe=N.some(Si);return j.jsxDEV(j.Fragment,{children:[j.jsxDEV(Ve,{index:2,title:"Frustration by model version",description:"Share of user messages per model version. Each bar reaches the annoyed rate; the subsets aimed at the assistant stack inside it.",stale:i,children:j.jsxDEV("div",{className:"stack frustration-chart-body",children:[j.jsxDEV("div",{className:"frustration-classes",children:j.jsxDEV(za,{size:"sm","aria-label":"Model class",options:L,value:R,onChange:c},void 0,!1,void 0,this)},void 0,!1,void 0,this),j.jsxDEV("div",{className:"row frustration-filters",children:[j.jsxDEV(Qa,{items:_.map((B)=>({key:B.key,label:B.label,color:h.get(B.key)??Ha[0],value:q(B.messages)})),hidden:f,onToggle:v},void 0,!1,void 0,this),j.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),j.jsxDEV("label",{className:"check",title:`Models with fewer than ${Im} messages have noisy rates`,children:[j.jsxDEV("input",{type:"checkbox",checked:p,onChange:(B)=>b(B.target.checked)},void 0,!1,void 0,this),"Include < ",Im," messages",F>0?` (${F})`:""]},void 0,!0,void 0,this),j.jsxDEV("label",{className:"check",title:`Hide models with under ${Eb*100}% judged messages (rates from regex signals)`,children:[j.jsxDEV("input",{type:"checkbox",checked:S,onChange:(B)=>k(B.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",K>0?` (${K})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(i2,{hasRegexRows:oe},void 0,!1,void 0,this),j.jsxDEV(d2,{rows:N,familyColors:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(c2,{rows:N,familyColors:h,stale:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function i2({hasRegexRows:r}){return j.jsxDEV("div",{className:"legend frustration-key",children:[j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"angry"},void 0,!1,void 0,this),"Angry at assistant"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"other"},void 0,!1,void 0,this),"Annoyed at other targets"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item",children:[j.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),"At assistant trend"]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item frustration-key-wide",title:`Under ${Eb*100}% of these messages are judged; their rates come from regex signals`,children:[j.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"hatch"},void 0,!1,void 0,this),"Hatched: mostly regex fallback",r?" (run the judge)":""]},void 0,!0,void 0,this),j.jsxDEV("span",{className:"legend-item dim",children:"Hue = model family"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function d2({rows:r,familyColors:i}){let u=It.useMemo(()=>{let c=new Map;r.forEach((v,p)=>{let b=Pc(v),S=Si(v),k=`${b}|${S?"regex":"judged"}`,h=c.get(k);if(h)h.slots.push(p);else c.set(k,{family:b,regex:S,slots:[p]})});let f=[];for(let v of r2)for(let[p,b]of c){let S=r.map(()=>null);for(let k of b.slots)S[k]=Uc(s2(r[k],v.key),r[k].messages);f.push({key:`${v.key}|${p}`,label:v.label,color:n2(i.get(b.family)??Ha[0],v.key),values:S,pattern:b.regex?"hatch":void 0})}return f.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:r.map((v)=>Uc(v.atAssistant,v.messages)),kind:"line",tooltip:!1}),f},[r,i]);if(r.length===0)return j.jsxDEV("div",{className:"frustration-chart-empty",children:j.jsxDEV(mt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return j.jsxDEV(Cl,{slots:r.length,tickLabel:(c)=>r[c].label,series:u,height:340,format:(c)=>`${c}%`,formatTooltip:(c)=>`${c.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(c)=>{let f=r[c];return j.jsxDEV("div",{className:"frustration-tooltip-extra",children:[j.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[j.jsxDEV("span",{className:"chart-tooltip-label",children:"Annoyed, any target"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"chart-tooltip-value",children:kl(f.annoyed,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV("div",{className:"micro dim",children:[q(f.messages)," messages · judged ",q(f.judged)," (",kl(f.judged,f.messages),")",Si(f)?" · mostly regex fallback":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function c2({rows:r,familyColors:i,stale:u}){let c=It.useMemo(()=>[{key:"model",header:"Model",sort:(f)=>f.label,render:(f)=>j.jsxDEV("span",{className:"row",title:f.key,children:[j.jsxDEV("span",{className:"swatch",style:{background:i.get(Pc(f))??Ha[0]}},void 0,!1,void 0,this),j.jsxDEV("span",{className:"cell-primary",children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"ids",header:"Model IDs",wrap:!0,render:(f)=>j.jsxDEV("span",{className:"mono micro dim",children:f.models.join(", ")},void 0,!1,void 0,this)},{key:"messages",header:"Messages",align:"right",sort:(f)=>f.messages,render:(f)=>j.jsxDEV("span",{className:"num",children:q(f.messages)},void 0,!1,void 0,this)},{key:"judged",header:"Judged",align:"right",sort:(f)=>f.messages>0?f.judged/f.messages:0,render:(f)=>Si(f)?j.jsxDEV("span",{className:"row frustration-judged",title:"Mostly regex fallback: run the judge for accurate rates",children:[j.jsxDEV(wt,{tone:"warn",children:"regex"},void 0,!1,void 0,this),j.jsxDEV("span",{className:"num dim",children:kl(f.judged,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):j.jsxDEV("span",{className:"num",children:kl(f.judged,f.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:"Annoyed",align:"right",sort:(f)=>Uc(f.annoyed,f.messages),render:(f)=>j.jsxDEV("span",{className:"num",title:`${q(f.annoyed)} messages`,children:kl(f.annoyed,f.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:"At assistant",align:"right",sort:(f)=>Uc(f.atAssistant,f.messages),render:(f)=>j.jsxDEV("span",{className:"num",title:`${q(f.atAssistant)} messages`,children:kl(f.atAssistant,f.messages)},void 0,!1,void 0,this)},{key:"angry",header:"Angry",align:"right",sort:(f)=>Uc(f.angry,f.messages),render:(f)=>j.jsxDEV("span",{className:f.angry>0?"num tone-bad":"num",title:`${q(f.angry)} messages`,children:kl(f.angry,f.messages)},void 0,!1,void 0,this)}],[i]);return j.jsxDEV(Ve,{index:3,title:"Model versions",description:"Rates are shares of user messages; rows follow the chart filters.",flush:!0,stale:u,children:j.jsxDEV(zt,{rows:r,rowKey:(f)=>f.key,columns:c,dense:!0,empty:j.jsxDEV(mt,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var zc=Y(ut(),1);var xt=Y(ce(),1),f2=86400000,p2={snapcompact:"Snapcompact"},m2=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function Tw({active:r,range:i}){let[u,c]=zc.useState(null),f=qt(["gain",i,u],()=>Bk(i,u),{enabled:r}),v=na(i),p=f.data,b=zc.useMemo(()=>{let R=(p?.timeSeries??[]).map((F)=>({...F,timestamp:Date.parse(`${F.date}T00:00:00Z`)})),L=Po(i,R.map((F)=>F.timestamp),f2),D=ba(R,L,(F)=>F.snapcompact),_=0,z=D.map((F)=>_+=F);return{buckets:L,daily:D,cumulative:z}},[p,i]),S=zc.useMemo(()=>{if(!p)return[];let R=p.overall.savedTokens;return Object.keys(p.bySource).map((L)=>({...p.bySource[L],source:L,share:R>0?p.bySource[L].savedTokens/R:0}))},[p]),k=p?.projects??[],h=u!==null&&!k.includes(u)?[u,...k]:k,x=u?` for ${u}`:"",C=[{key:"daily",label:"Saved per day",color:"var(--chart-primary)",values:b.daily},{key:"cumulative",label:"Cumulative",color:"var(--chart-secondary)",values:b.cumulative,kind:"line",axis:"right"}];return xt.jsxDEV("div",{className:"page",children:[xt.jsxDEV(ta,{title:"Gain",description:`Tokens snapcompact kept out of context${x} in ${v.windowLabel}.`,actions:h.length>0&&xt.jsxDEV("select",{className:"input","aria-label":"Project",value:u??"",onChange:(R)=>c(R.target.value||null),style:{maxWidth:320},children:[xt.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),h.map((R)=>xt.jsxDEV("option",{value:R,children:R},R,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(_e,{query:f,skeleton:xt.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),isEmpty:(R)=>R.overall.hits===0&&R.timeSeries.length===0,empty:xt.jsxDEV(Ve,{children:xt.jsxDEV(mt,{title:`No savings recorded${x} in ${v.windowLabel}`,hint:i==="all"?"Savings appear here once snapcompact compacts tool output.":"Try a longer range."},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:({overall:R})=>xt.jsxDEV(xt.Fragment,{children:[xt.jsxDEV("div",{"data-stale":f.stale,children:xt.jsxDEV(aa,{min:180,children:[xt.jsxDEV(fe,{label:"Saved tokens",value:Me(R.savedTokens),hint:q(R.savedTokens),spark:b.daily},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Saved bytes",value:Sb(R.savedBytes)},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Reduction",title:"Saved bytes ÷ original bytes, when the original size is known",value:R.reductionPercent!==null?Re(R.reductionPercent):"–",hint:R.reductionPercent===null?"original size not recorded":void 0},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Hits",value:q(R.hits)},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Saved per hit",value:R.hits>0?Me(R.savedTokens/R.hits):"–",hint:"tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(Ve,{index:1,title:"Savings over time",description:"Tokens saved per UTC day, with the running total",actions:xt.jsxDEV(Qa,{items:C.map((L)=>({key:L.key,label:L.label,color:L.color}))},void 0,!1,void 0,this),stale:f.stale,children:xt.jsxDEV(Cl,{slots:b.buckets.length,tickLabel:(L)=>m2.format(b.buckets[L]),series:C,height:260,formatTooltip:q,formatRight:Me},void 0,!1,void 0,this)},void 0,!1,void 0,this),xt.jsxDEV(Ve,{index:2,title:"By source",description:"Savings per subsystem",flush:!0,stale:f.stale,children:xt.jsxDEV(zt,{rows:S,rowKey:(L)=>L.source,columns:h2},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var h2=[{key:"source",header:"Source",sort:(r)=>r.source,render:(r)=>xt.jsxDEV("span",{className:"cell-primary",children:p2[r.source]},void 0,!1,void 0,this)},{key:"tokens",header:"Saved tokens",align:"right",sort:(r)=>r.savedTokens,render:(r)=>xt.jsxDEV("span",{title:q(r.savedTokens),children:xt.jsxDEV(ia,{value:r.share,max:1,display:Me(r.savedTokens)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(r)=>r.share,render:(r)=>xt.jsxDEV("span",{className:"num muted",children:Re(r.share)},void 0,!1,void 0,this)},{key:"bytes",header:"Saved bytes",align:"right",sort:(r)=>r.savedBytes,render:(r)=>xt.jsxDEV("span",{className:"num",children:Sb(r.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:"Hits",align:"right",sort:(r)=>r.hits,render:(r)=>xt.jsxDEV("span",{className:"num",children:q(r.hits)},void 0,!1,void 0,this)},{key:"reduction",header:"Reduction",align:"right",sort:(r)=>r.reductionPercent??-1,render:(r)=>xt.jsxDEV("span",{className:"num",children:r.reductionPercent!==null?Re(r.reductionPercent):"–"},void 0,!1,void 0,this)}];var _c=Y(ut(),1);var Le=Y(ce(),1),g2=[{value:"share",label:"Share"},{value:"requests",label:"Requests"}],y2=6;function Rw({active:r,range:i}){let u=qt(["models",i],()=>wk(i),{enabled:r}),c=na(i),[f,v]=_c.useState("share"),[p,b]=nl(),[S,k]=_c.useState(null),h=_c.useMemo(()=>u.data?b2(u.data,i):null,[u.data,i]),x=L2(c.bucketMs),C=(L)=>L.byModel.length===0,R=Le.jsxDEV(mt,{title:"No model usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Le.jsxDEV("div",{className:"page",children:[Le.jsxDEV(ta,{title:"Models",description:`Which models did the work in ${c.windowLabel}, and how fast they answered.`},void 0,!1,void 0,this),Le.jsxDEV(_e,{query:u,skeleton:Le.jsxDEV(Ea,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV("div",{"data-stale":u.stale,children:Le.jsxDEV(aa,{min:200,children:[Le.jsxDEV(fe,{label:"Models used",value:q(h.models.length),hint:`across ${q(h.providerCount)} provider${h.providerCount===1?"":"s"}`},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"Most used",title:h.top?`${h.top.model} (${h.top.provider})`:void 0,value:h.top?h.top.model:"–",hint:h.top?`${Re(h.top.totalRequests/Math.max(1,h.totalRequests))} of requests · ${h.top.provider}`:void 0},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"Requests",value:q(h.totalRequests),hint:`${q(h.failedRequests)} failed`,spark:h.requestTotals},void 0,!1,void 0,this),Le.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${q(h.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV(Ve,{index:1,title:"Request share",description:f==="share"?`Each model's share of requests per ${x}`:`Requests per ${x}, stacked by model`,actions:Le.jsxDEV(za,{size:"sm",options:g2,value:f,onChange:v,"aria-label":"Share chart mode"},void 0,!1,void 0,this),stale:u.stale,children:Le.jsxDEV(_e,{query:u,skeleton:Le.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV("div",{className:"stack",style:{gap:12},children:[Le.jsxDEV($n,{buckets:h.buckets,bucketMs:c.bucketMs,series:f==="share"?h.shareSeries:h.countSeries,hidden:p,height:260,yMax:f==="share"?1:void 0,format:f==="share"?(L)=>Re(L,0):Me,formatTooltip:f==="share"?(L)=>Re(L):q,showTotal:f==="requests"},void 0,!1,void 0,this),Le.jsxDEV(Qa,{items:h.countSeries.map((L)=>({key:L.key,label:L.label,color:L.color,value:Re(Iw(L.values)/Math.max(1,Iw(h.requestTotals)))})),hidden:p,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Le.jsxDEV(Ve,{index:2,title:"All models",description:"Click a row for latency and throughput over time",stale:u.stale,flush:!0,children:Le.jsxDEV(_e,{query:u,skeleton:Le.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:C,empty:R,children:()=>h&&Le.jsxDEV(zt,{rows:h.models,rowKey:(L)=>ya(L.model,L.provider),columns:S2(h,S,x),initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(L)=>{let D=ya(L.model,L.provider);k((_)=>_===D?null:D)},selectedKey:S,expanded:(L)=>{let D=ya(L.model,L.provider);return D===S?Le.jsxDEV(x2,{model:L,color:h.swatches.get(D)??"var(--chart-primary)",points:h.performance.get(D)??[],bucketMs:c.bucketMs,bucketWord:x},void 0,!1,void 0,this):null}},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function b2(r,i){let u=r.byModel,c=wm(u),f=v2(u),v=Po(i,r.modelSeries.map((_)=>_.timestamp)),p=ba(r.modelSeries,v,(_)=>_.requests),b={buckets:v,key:(_)=>ya(_.model,_.provider),label:(_)=>f.get(_)??_,value:(_)=>_.requests,colors:c},S=mn(r.modelSeries,{...b,limit:y2}).map((_)=>({..._,values:_.values.map((z)=>z||null)})),k=S.map((_)=>({..._,values:_.values.map((z,F)=>z===null?null:z/p[F])})),h=new Map(mn(r.modelSeries,b).map((_)=>[_.key,_.values])),x,C=0,R=0,L=0,D=0;for(let _ of u){if(!x||_.totalRequests>x.totalRequests)x=_;C+=_.totalRequests,R+=_.failedRequests,L+=_.totalCost,D+=_.unpricedRequests}return{models:u,top:x,swatches:new Map(S.filter((_)=>_.key!=="__other__").map((_)=>[_.key,_.color])),labels:f,providerCount:new Set(u.map((_)=>_.provider)).size,totalRequests:C,failedRequests:R,totalCost:L,unpricedRequests:D,maxRequests:x?.totalRequests??0,buckets:v,requestTotals:p,countSeries:S,shareSeries:k,trends:h,performance:hw(r.modelPerformanceSeries)}}function v2(r){let i=new Map;for(let u of r)i.set(u.model,(i.get(u.model)??0)+1);return new Map(r.map((u)=>[ya(u.model,u.provider),(i.get(u.model)??0)>1?`${u.model} · ${u.provider}`:u.model]))}function S2(r,i,u){return[{key:"expand",header:"",width:28,render:(c)=>Le.jsxDEV("span",{className:"models-chevron","data-open":ya(c.model,c.provider)===i,children:Le.jsxDEV(vl,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(c)=>c.model,render:(c)=>Le.jsxDEV(_a,{lead:Le.jsxDEV(Sl,{color:r.swatches.get(ya(c.model,c.provider))??eo},void 0,!1,void 0,this),primary:Le.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this),secondary:c.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(c)=>c.totalRequests,render:(c)=>Le.jsxDEV(ia,{value:c.totalRequests,max:r.maxRequests,display:q(c.totalRequests),color:r.swatches.get(ya(c.model,c.provider))??eo},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate at public rates",align:"right",sort:(c)=>c.totalCost,render:(c)=>Le.jsxDEV("span",{className:"num",children:Ot(c.totalCost,c.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(c)=>Zr(c),render:(c)=>{let f=Zr(c);return Le.jsxDEV("span",{className:"num",title:q(f),children:Me(f)},void 0,!1,void 0,this)}},{key:"cache",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(c)=>c.cacheRate,render:(c)=>Le.jsxDEV("span",{className:"num",children:Re(c.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:"Errors",align:"right",sort:(c)=>c.errorRate,render:(c)=>c.failedRequests===0?Le.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):Le.jsxDEV("span",{title:`${q(c.failedRequests)} failed`,children:Le.jsxDEV(wt,{tone:sn(c.errorRate),mono:!0,children:Re(c.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output tokens per second",align:"right",sort:(c)=>c.avgTokensPerSecond??-1,render:(c)=>Le.jsxDEV("span",{className:"num",children:dn(c.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Average time to first token",align:"right",sort:(c)=>c.avgTtft??-1,render:(c)=>Le.jsxDEV("span",{className:"num",children:vt(c.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:"Trend",title:`Requests per ${u}`,width:112,render:(c)=>{let f=ya(c.model,c.provider),v=r.trends.get(f);return v?Le.jsxDEV(gi,{values:v.map((p)=>p??0),color:r.swatches.get(f)??eo,width:96,height:22},void 0,!1,void 0,this):Le.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function x2({model:r,color:i,points:u,bucketMs:c,bucketWord:f}){let[v,p]=nl(),b=[{key:"tps",label:"Tokens/s",color:i,kind:u.length>1?"line":"bars",values:u.map((S)=>S.avgTokensPerSecond)},{key:"ttft",label:"TTFT",color:eo,kind:u.length>1?"line":"bars",axis:"right",dashed:!0,values:u.map((S)=>S.avgTtftSeconds)}];return Le.jsxDEV("div",{className:"models-detail",children:[Le.jsxDEV("div",{className:"models-detail-facts",children:[Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Efficiency"},void 0,!1,void 0,this),Le.jsxDEV(_o,{items:[{key:"err",label:"Error rate",value:Le.jsxDEV("span",{className:`tone-${sn(r.errorRate)}`,children:[Re(r.errorRate)," ",Le.jsxDEV("span",{className:"dim",children:["(",q(r.failedRequests)," failed)"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:"Cache rate",value:Re(r.cacheRate)},{key:"savings",label:"Cache savings",value:Le.jsxDEV("span",{className:r.cacheSavings<0?"tone-bad":void 0,children:Re(r.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:"Premium requests",value:q(Math.round(r.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Latency"},void 0,!1,void 0,this),Le.jsxDEV(_o,{items:[{key:"dur",label:"Avg duration",value:vt(r.avgDuration)},{key:"ttft",label:"Avg TTFT",value:vt(r.avgTtft)},{key:"tps",label:"Tokens/s",value:dn(r.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{children:[Le.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),Le.jsxDEV(_o,{items:[{key:"in",label:"Uncached input",value:Me(r.totalInputTokens)},{key:"cr",label:"Cache read",value:Me(r.totalCacheReadTokens)},{key:"cw",label:"Cache write",value:Me(r.totalCacheWriteTokens)},{key:"out",label:"Output",value:Me(r.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"micro dim",children:["First seen ",ua(r.firstTimestamp)," · last seen"," ",ua(r.lastTimestamp)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Le.jsxDEV("div",{className:"models-detail-chart",children:[Le.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Le.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:["Performance per active ",f]},void 0,!0,void 0,this),Le.jsxDEV(Qa,{items:b.map((S)=>({key:S.key,label:S.label,color:S.color})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this),u.length===0?Le.jsxDEV(mt,{title:"No performance samples",hint:"Timing is recorded for streamed responses."},void 0,!1,void 0,this):Le.jsxDEV($n,{buckets:u.map((S)=>S.timestamp),bucketMs:c,series:b,hidden:v,stacked:!1,height:240,format:Me,formatTooltip:(S)=>`${dn(S)} tok/s`,formatRight:(S)=>`${Number(S.toFixed(2))}s`,tooltipExtra:(S)=>Le.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Le.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),Le.jsxDEV("span",{className:"chart-tooltip-value",children:q(u[S].requests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function L2(r){if(r<3600000)return"5 minutes";if(r<86400000)return"hour";return"day"}function Iw(r){let i=0;for(let u of r)i+=u??0;return i}var Rm=Y(ut(),1);var Ie=Y(ce(),1),C2=[{value:"requests",label:"Requests"},{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],Mw={main:"Main agent",subagent:"Subagents",advisor:"Advisor"},Aw={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},Dw=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}];function Ew({active:r,range:i,onRequestClick:u}){let c=qt(["overview",i],()=>kk(i),{enabled:r}),f=qt(["recent-requests"],()=>mm(12),{enabled:r}),[v,p]=Rm.useState("requests"),b=na(i),S=Rm.useMemo(()=>{let h=c.data?.timeSeries??[],x=Po(i,h.map((C)=>C.timestamp));return{buckets:x,requests:ba(h,x,(C)=>C.requests-C.errors),errors:ba(h,x,(C)=>C.errors),tokens:ba(h,x,(C)=>C.tokens),cost:ba(h,x,(C)=>C.cost),all:ba(h,x,(C)=>C.requests)}},[c.data,i]),k=v==="requests"?[{key:"ok",label:"Succeeded",color:"var(--chart-primary)",values:S.requests},{key:"err",label:"Failed",color:"var(--bad)",values:S.errors}]:v==="tokens"?[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.tokens}]:[{key:"cost",label:"API-equivalent",color:"var(--chart-secondary)",values:S.cost}];return Ie.jsxDEV("div",{className:"page",children:[Ie.jsxDEV(ta,{title:"Overview",description:`Everything omp did across your sessions in ${b.windowLabel}.`},void 0,!1,void 0,this),Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:({overall:h})=>Ie.jsxDEV("div",{"data-stale":c.stale,className:"stack",style:{gap:16},children:[Ie.jsxDEV(aa,{min:190,children:[Ie.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${q(h.unpricedRequests)} unpriced`:void 0,spark:S.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Requests",value:q(h.totalRequests),hint:`${q(h.failedRequests)} failed`,spark:S.all},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Me(Zr(h)),hint:`${Me(h.totalOutputTokens)} output`,spark:S.tokens},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",value:Re(h.cacheRate),hint:`${Re(h.cacheSavings)} saved`},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Error rate",value:Re(h.errorRate),hint:`${q(h.successfulRequests)} succeeded`,spark:S.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV(aa,{min:140,children:[Ie.jsxDEV(fe,{size:"sm",label:"Uncached input",value:Me(h.totalInputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Cache read",value:Me(h.totalCacheReadTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Cache write",value:Me(h.totalCacheWriteTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Output",value:Me(h.totalOutputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Premium requests",value:q(Math.round(h.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Tokens/s",value:dn(h.avgTokensPerSecond)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Avg latency",value:vt(h.avgDuration)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Avg TTFT",value:vt(h.avgTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV("div",{className:"grid grid-main-side",children:[Ie.jsxDEV(Ve,{index:1,title:"Activity",description:`Per ${b.bucketMs<3600000?"5 minutes":b.bucketMs<86400000?"hour":"day"}`,actions:Ie.jsxDEV(za,{size:"sm",options:C2,value:v,onChange:p},void 0,!1,void 0,this),stale:c.stale,children:Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>Ie.jsxDEV($n,{buckets:S.buckets,bucketMs:b.bucketMs,series:k,height:260,format:v==="cost"?(h)=>Ot(h,0):Me},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ie.jsxDEV(Ve,{index:2,title:"Token mix",description:"Where conversation tokens went",stale:c.stale,children:Ie.jsxDEV(_e,{query:c,skeleton:Ie.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:({overall:h,byAgentType:x})=>{let C={input:h.totalInputTokens,cacheRead:h.totalCacheReadTokens,cacheWrite:h.totalCacheWriteTokens,output:h.totalOutputTokens},R=Zr(h),L=pw(x);return Ie.jsxDEV("div",{className:"stack",style:{gap:18},children:[Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV(Qr,{segments:Dw.map((D)=>({key:D.key,label:D.label,value:C[D.key],color:D.color}))},void 0,!1,void 0,this),Ie.jsxDEV(Qa,{items:Dw.map((D)=>({key:D.key,label:D.label,color:D.color,value:R>0?Re(C[D.key]/R,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:"By agent"},void 0,!1,void 0,this),Ie.jsxDEV(Qr,{segments:L.segments.map((D)=>({key:D.agentType,label:Mw[D.agentType],value:D.tokens,color:Aw[D.agentType]}))},void 0,!1,void 0,this),L.segments.map((D)=>Ie.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"swatch",style:{background:Aw[D.agentType]}},void 0,!1,void 0,this),Mw[D.agentType],Ie.jsxDEV("span",{className:"dim num",children:[q(D.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV("span",{className:"row",children:[Ie.jsxDEV("span",{className:"dim num",children:Me(D.tokens)},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:Re(D.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},D.agentType,!0,void 0,this))]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ie.jsxDEV(Ve,{index:3,title:Ie.jsxDEV(Ie.Fragment,{children:[Ie.jsxDEV(rn,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Latest requests"]},void 0,!0,void 0,this),description:"Most recent model calls across every session",actions:Ie.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${i}`,children:["All requests ",Ie.jsxDEV(fc,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Ie.jsxDEV(_e,{query:f,skeleton:Ie.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),children:(h)=>Ie.jsxDEV(zt,{rows:h,rowKey:(x)=>x.id??`${x.sessionFile}:${x.entryId}`,onRowClick:(x)=>x.id!==void 0&&u(x.id),columns:k2,dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var k2=[{key:"model",header:"Model",render:(r)=>Ie.jsxDEV(_a,{primary:r.model,secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:"When",render:(r)=>Ie.jsxDEV("span",{className:"muted",children:ua(r.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:q(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:Yr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",render:(r)=>Ie.jsxDEV("span",{className:"num",children:vt(r.duration)},void 0,!1,void 0,this)},{key:"status",header:"Status",align:"right",render:(r)=>r.errorMessage?Ie.jsxDEV(wt,{tone:"bad",children:"Failed"},void 0,!1,void 0,this):Ie.jsxDEV(wt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}];var wl=Y(ut(),1);var He=Y(ce(),1),w2=100,Ow=8;function qw({active:r,range:i}){let u=qt(["projects",i],()=>qk(i),{enabled:r}),[c,f]=wl.useState(""),[v,p]=wl.useState(!0),b=wl.useDeferredValue(c.trim().toLowerCase()),S=na(i),k=wl.useMemo(()=>gw(u.data??[]),[u.data]),h=wl.useMemo(()=>v?k.rows.filter((D)=>!D.temporary):k.rows,[k,v]),x=wl.useMemo(()=>b?h.filter((D)=>D.folder.toLowerCase().includes(b)):h,[h,b]),C=wl.useMemo(()=>({cost:[...h].sort((D,_)=>_.totalCost-D.totalCost).slice(0,Ow),requests:[...h].sort((D,_)=>_.totalRequests-D.totalRequests).slice(0,Ow)}),[h]),R=He.jsxDEV(mt,{title:k.rows.length===0?"No project folders in this range":"Only temporary folders in this range"},void 0,!1,void 0,this),L=wl.useMemo(()=>T2(k.maxRequests,k.maxCost),[k]);return He.jsxDEV("div",{className:"page",children:[He.jsxDEV(ta,{title:"Projects",description:`Usage by session folder in ${S.windowLabel}.`},void 0,!1,void 0,this),He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),children:()=>He.jsxDEV("div",{"data-stale":u.stale,children:He.jsxDEV(aa,{min:180,children:[He.jsxDEV(fe,{label:"Folders",value:q(k.rows.length),hint:k.temporaryCount>0?`${q(k.temporaryCount)} temporary`:void 0},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Requests",value:q(k.totalRequests),hint:`${q(k.failedRequests)} failed`},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(k.totalCost,k.unpricedRequests),hint:k.unpricedRequests>0?`${q(k.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Me(k.conversationTokens)},void 0,!1,void 0,this),He.jsxDEV(fe,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads), across every folder",value:Re(k.cacheRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),He.jsxDEV("div",{className:"grid grid-2",children:[He.jsxDEV(Ve,{index:1,title:"Top by cost",description:"Share of API-equivalent cost",stale:u.stale,children:He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(Tt,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.cost.length===0,empty:R,children:()=>He.jsxDEV(Oc,{items:C.cost.map((D)=>({key:D.folder,label:He.jsxDEV("span",{className:"mono",children:cn(D.folder)},void 0,!1,void 0,this),value:D.totalCost,display:`${Ot(D.totalCost,D.unpricedRequests)} · ${Re(D.costShare)}`,color:"var(--chart-secondary)"})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),He.jsxDEV(Ve,{index:2,title:"Top by requests",description:"Share of all requests",stale:u.stale,children:He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(Tt,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.requests.length===0,empty:R,children:()=>He.jsxDEV(Oc,{items:C.requests.map((D)=>({key:D.folder,label:He.jsxDEV("span",{className:"mono",children:cn(D.folder)},void 0,!1,void 0,this),value:D.totalRequests,display:`${q(D.totalRequests)} · ${Re(D.requestShare)}`})),onSelect:f},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),He.jsxDEV(Ve,{index:3,title:"Folders",description:u.data?x.length===k.rows.length?`${q(k.rows.length)} folders`:`${q(x.length)} of ${q(k.rows.length)} folders`:void 0,actions:He.jsxDEV(He.Fragment,{children:[k.temporaryCount>0&&He.jsxDEV("label",{className:"check",title:"Session folders under /tmp or /var/folders",children:[He.jsxDEV("input",{type:"checkbox",checked:v,onChange:(D)=>p(D.target.checked)},void 0,!1,void 0,this),"Hide temporary (",q(k.temporaryCount),")"]},void 0,!0,void 0,this),He.jsxDEV(un,{value:c,onChange:f,placeholder:"Filter folders…",width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:u.stale,children:He.jsxDEV(_e,{query:u,skeleton:He.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),children:()=>He.jsxDEV(zt,{rows:x,rowKey:(D)=>D.folder,columns:L,initialSort:{key:"cost",dir:"desc"},limit:w2,dense:!0,empty:He.jsxDEV(mt,{title:k.rows.length===0?"No project folders in this range":"No folders match",hint:k.rows.length===0?"Try a longer range.":v&&k.temporaryCount>0?"Temporary folders are hidden.":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function T2(r,i){return[{key:"folder",header:"Folder",sort:(u)=>u.folder,render:(u)=>He.jsxDEV("span",{className:"row projects-folder",title:u.folder||"(root)",children:[He.jsxDEV("span",{className:"mono truncate",children:cn(u.folder)},void 0,!1,void 0,this),u.temporary&&He.jsxDEV(wt,{children:"temp"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(u)=>u.totalRequests,render:(u)=>He.jsxDEV("span",{title:`${Re(u.requestShare)} of all requests`,children:He.jsxDEV(ia,{value:u.totalRequests,max:r,display:q(u.totalRequests)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent cost at public API rates",align:"right",sort:(u)=>u.totalCost,render:(u)=>He.jsxDEV("span",{title:`${Re(u.costShare)} of all cost`,children:He.jsxDEV(ia,{value:u.totalCost,max:i,display:Ot(u.totalCost,u.unpricedRequests),color:"var(--chart-secondary)"},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(u)=>u.conversationTokens,render:(u)=>He.jsxDEV("span",{className:"num",title:q(u.conversationTokens),children:Me(u.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(u)=>u.cacheRate,render:(u)=>He.jsxDEV("span",{className:"num",children:Re(u.cacheRate)},void 0,!1,void 0,this)},{key:"cacheSavings",header:"Cache savings",title:"Prompt-input cost saved versus billing the same tokens uncached",align:"right",sort:(u)=>u.cacheSavings,render:(u)=>He.jsxDEV("span",{className:`num ${u.cacheSavings<0?"tone-bad":"muted"}`,children:Re(u.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(u)=>u.errorRate,render:(u)=>He.jsxDEV("span",{title:`${q(u.failedRequests)} failed`,children:He.jsxDEV(wt,{tone:u.failedRequests>0?sn(u.errorRate):"neutral",mono:!0,children:Re(u.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:"Avg duration",align:"right",sort:(u)=>u.avgDuration??-1,render:(u)=>He.jsxDEV("span",{className:"num",children:vt(u.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:"Last active",align:"right",sort:(u)=>u.lastTimestamp,render:(u)=>He.jsxDEV("span",{className:"dim",children:ua(u.lastTimestamp)},void 0,!1,void 0,this)}]}var co=Y(ut(),1);var J=Y(ce(),1),I2=[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost",title:"API-equivalent estimate"},{value:"requests",label:"Requests"}],Bw=6,Nw=[{key:"input",label:"Uncached input",color:"#5b8cff"},{key:"cacheRead",label:"Cache read",color:"var(--chart-primary)"},{key:"cacheWrite",label:"Cache write",color:"#f5b54a"},{key:"output",label:"Output",color:"var(--chart-secondary)"}],Uw="Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, omp usage).";function Pw({active:r,range:i}){let u=qt(["providers",i],()=>Uk(i),{enabled:r}),[c,f]=co.useState("tokens"),[v,p]=nl(),b=na(i),S=qt(["provider-windows",i],()=>yb(i,null),{enabled:r}),[k,h]=co.useState(null),x=R2(S.data?.windowInsights??[],k),C=x?.provider??null,R=qt(["provider-windows",i,C],()=>yb(i,C),{enabled:r&&C!==null}),L=co.useMemo(()=>{let F=u.data?.providers??[],K=u.data?.series??[],N=qc(F.map((Z)=>({key:Z.provider,weight:Z.totalTokens}))),oe=Po(i,K.map((Z)=>Z.timestamp)),B={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let Z of F)B.requests+=Z.totalRequests,B.failed+=Z.failedRequests,B.tokens+=Z.totalTokens,B.cost+=Z.totalCost,B.unpriced+=Z.unpricedRequests;let ee=(Z)=>mn(K,{buckets:oe,key:(W)=>W.provider,value:Z,limit:Bw,colors:N}).map((W)=>({...W,values:W.values.map((X)=>X||null)}));return{colors:N,buckets:oe,totals:B,burn:{tokens:ee((Z)=>Z.totalTokens),cost:ee((Z)=>Z.cost),requests:ee((Z)=>Z.requests)},spark:{tokens:ba(K,oe,(Z)=>Z.totalTokens),cost:ba(K,oe,(Z)=>Z.cost),requests:ba(K,oe,(Z)=>Z.requests)},topProvider:F.reduce((Z,W)=>Z===null||W.totalTokens>Z.totalTokens?W:Z,null)}},[u.data,i]),D=L.burn[c],_=c==="cost"?(F)=>sa(F):Me,z=L.totals;return J.jsxDEV("div",{className:"page",children:[J.jsxDEV(ta,{title:"Providers",description:`Burn, reliability and subscription headroom per provider over ${b.windowLabel}.`},void 0,!1,void 0,this),J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:({providers:F})=>J.jsxDEV("div",{"data-stale":u.stale,children:J.jsxDEV(aa,{min:190,children:[J.jsxDEV(fe,{label:"Providers",value:q(F.length),hint:L.topProvider?`Most tokens: ${L.topProvider.provider}`:void 0},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Requests",value:q(z.requests),hint:`${q(z.failed)} failed`,spark:L.spark.requests},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Tokens",title:"Uncached input + cache reads + cache writes + output",value:Me(z.tokens),spark:L.spark.tokens},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:Ot(z.cost,z.unpriced),hint:z.unpriced>0?`${q(z.unpriced)} unpriced`:void 0,spark:L.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),J.jsxDEV(fe,{label:"Error rate",value:Re(z.requests>0?z.failed/z.requests:0),hint:`${q(z.requests-z.failed)} succeeded`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(Ve,{index:1,title:"Provider totals",description:z.unpriced>0?`Cost is an API-equivalent estimate and excludes ${q(z.unpriced)} unpriced subscription request${z.unpriced===1?"":"s"}. Select a row for its token mix.`:"Cost is an API-equivalent estimate. Select a row for its token mix.",flush:!0,stale:u.stale,children:J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:({providers:F})=>J.jsxDEV(M2,{providers:F,colors:L.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV("div",{className:"grid grid-main-side",children:[J.jsxDEV(Ve,{index:2,title:"Burn by provider",description:c==="cost"&&z.unpriced>0?`API-equivalent estimate per ${b.bucketMs<86400000?"hour":"day"}; excludes unpriced subscription requests`:`Per ${b.bucketMs<3600000?"5 minutes":b.bucketMs<86400000?"hour":"day"}, top ${Bw} providers stacked`,actions:J.jsxDEV(za,{size:"sm",options:I2,value:c,onChange:f},void 0,!1,void 0,this),stale:u.stale,children:J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>J.jsxDEV("div",{className:"stack",style:{gap:12},children:[J.jsxDEV($n,{buckets:L.buckets,bucketMs:b.bucketMs,series:D,hidden:v,height:260,format:_,formatTooltip:c==="cost"?(F)=>sa(F):q,emptyLabel:"No provider activity in this range"},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:D.map((F)=>({key:F.key,label:F.label,color:F.color,value:_(F.values.reduce((K,N)=>K+(N??0),0))})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(_e,{query:u,skeleton:J.jsxDEV(Tt,{height:320},void 0,!1,void 0,this),children:({hourly:F,providers:K})=>J.jsxDEV(D2,{hourly:F,providers:K,stale:u.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(Ve,{index:4,title:"Subscription windows",description:"What one usage window buys you and how many accounts peak demand needs. Select a row to chart it.",flush:!0,stale:S.stale,children:J.jsxDEV(_e,{query:S,skeleton:J.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:(F)=>J.jsxDEV(E2,{insights:F.windowInsights,selected:x,onSelect:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(U2,{insights:S.data?.windowInsights??null,accounts:R,selected:x,onSelect:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function R2(r,i){if(i&&r.some((c)=>c.provider===i.provider&&c.windowKey===i.windowKey))return i;let u=i&&r.find((c)=>c.provider===i.provider)||r.reduce((c,f)=>c===void 0||f.fractionConsumed>c.fractionConsumed?f:c,void 0);return u?{provider:u.provider,windowKey:u.windowKey}:null}function M2({providers:r,colors:i}){let[u,c]=co.useState(null),f=co.useMemo(()=>{let v=0,p=0,b=0;for(let S of r)v=Math.max(v,S.totalRequests),p=Math.max(p,S.totalTokens),b+=S.totalTokens;return[{key:"provider",header:"Provider",sort:(S)=>S.provider,render:(S)=>J.jsxDEV("span",{className:"row",style:{gap:8},children:[J.jsxDEV(Sl,{color:i.get(S.provider)??eo},void 0,!1,void 0,this),J.jsxDEV("span",{className:"mono cell-primary",children:S.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(S)=>S.totalRequests,render:(S)=>J.jsxDEV(ia,{value:S.totalRequests,max:v,display:q(S.totalRequests)},void 0,!1,void 0,this)},{key:"errors",header:"Error rate",align:"right",sort:(S)=>S.totalRequests>0?S.failedRequests/S.totalRequests:0,render:(S)=>{let k=S.totalRequests>0?S.failedRequests/S.totalRequests:0;return J.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[J.jsxDEV("span",{className:"num dim",children:q(S.failedRequests)},void 0,!1,void 0,this),J.jsxDEV(wt,{tone:S.failedRequests>0?sn(k):"neutral",mono:!0,children:Re(k)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}},{key:"models",header:"Models",title:"Distinct models used through this provider",align:"right",sort:(S)=>S.models,render:(S)=>J.jsxDEV("span",{className:"num",children:q(S.models)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(S)=>S.totalTokens,render:(S)=>J.jsxDEV(ia,{value:S.totalTokens,max:p,display:Me(S.totalTokens),color:i.get(S.provider)},void 0,!1,void 0,this)},{key:"share",header:"Share",title:"Fraction of all tokens in range",align:"right",sort:(S)=>S.totalTokens,render:(S)=>J.jsxDEV("span",{className:"num muted",children:Re(b>0?S.totalTokens/b:0)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(S)=>S.totalCost,render:(S)=>J.jsxDEV("span",{className:"num",title:S.unpricedRequests>0?`${q(S.unpricedRequests)} unpriced`:void 0,children:Ot(S.totalCost,S.unpricedRequests)},void 0,!1,void 0,this)},{key:"tps",header:"Tokens/s",title:"Average output throughput",align:"right",sort:(S)=>S.avgTokensPerSecond??-1,render:(S)=>J.jsxDEV("span",{className:"num",children:dn(S.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"premium",header:"Premium",title:"Premium requests (subscription multiplier units)",align:"right",sort:(S)=>S.totalPremiumRequests,render:(S)=>J.jsxDEV("span",{className:S.totalPremiumRequests>0?"num":"num dim",children:q(Math.round(S.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[r,i]);return J.jsxDEV(zt,{rows:r,rowKey:(v)=>v.provider,columns:f,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:u,onRowClick:(v)=>c((p)=>p===v.provider?null:v.provider),expanded:(v)=>v.provider===u?J.jsxDEV(A2,{provider:v},void 0,!1,void 0,this):null,empty:J.jsxDEV(mt,{title:"No requests in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function A2({provider:r}){let i={input:r.totalInputTokens,cacheRead:r.totalCacheReadTokens,cacheWrite:r.totalCacheWriteTokens,output:r.totalOutputTokens};return J.jsxDEV("div",{className:"providers-mix",children:[J.jsxDEV(Qr,{segments:Nw.map((u)=>({key:u.key,label:u.label,value:i[u.key],color:u.color}))},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:Nw.map((u)=>({key:u.key,label:u.label,color:u.color,value:`${Me(i[u.key])} · ${r.totalTokens>0?Re(i[u.key]/r.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Hc="";function D2({hourly:r,providers:i,stale:u}){let[c,f]=co.useState(Hc),v=c===Hc||i.some((S)=>S.provider===c)?c:Hc,p=co.useMemo(()=>{let S=Array.from({length:24},()=>0),k=Array.from({length:24},()=>0),h=Array.from({length:24},()=>0);for(let L of r){if(v!==Hc&&L.provider!==v)continue;S[L.hour]+=L.totalTokens,k[L.hour]+=L.outputTokens,h[L.hour]+=L.requests}let x=0;for(let L=1;L<24;L++)if(S[L]>S[x])x=L;let C=S[x]>0;return{series:[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.map((L,D)=>C&&D===x?null:L)},{key:"peak",label:"Tokens (peak hour)",color:"var(--chart-secondary)",values:S.map((L,D)=>C&&D===x?L:null)}],output:k,requests:h,peak:x,hasData:C}},[r,v]),b=(S)=>`${String(S).padStart(2,"0")}:00`;return J.jsxDEV(Ve,{index:3,title:"Peak burn hours",description:p.hasData?`Tokens by local hour of day; peak at ${b(p.peak)}`:"Tokens by local hour of day",actions:J.jsxDEV("select",{className:"input providers-select",value:v,onChange:(S)=>f(S.target.value),"aria-label":"Provider",children:[J.jsxDEV("option",{value:Hc,children:"All providers"},void 0,!1,void 0,this),i.map((S)=>J.jsxDEV("option",{value:S.provider,children:S.provider},S.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:u,children:J.jsxDEV(Cl,{slots:24,tickLabel:(S)=>String(S).padStart(2,"0"),tooltipTitle:(S)=>`${b(S)}–${b((S+1)%24)}`,series:p.series,height:260,showTotal:!1,formatTooltip:q,emptyLabel:"No activity in this range",tooltipExtra:(S)=>J.jsxDEV(J.Fragment,{children:[J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label",children:"Output"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:q(p.output[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:q(p.requests[S])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function E2({insights:r,selected:i,onSelect:u}){return J.jsxDEV(zt,{rows:r,rowKey:(c)=>`${c.provider}::${c.windowKey}`,columns:O2,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:i?`${i.provider}::${i.windowKey}`:null,onRowClick:(c)=>u({provider:c.provider,windowKey:c.windowKey}),empty:J.jsxDEV(mt,{title:"No usage snapshots in this range",hint:Uw},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var O2=[{key:"window",header:"Window",sort:(r)=>`${r.provider} ${r.windowLabel}`,render:(r)=>J.jsxDEV(_a,{primary:r.windowLabel,secondary:J.jsxDEV("span",{className:"mono",children:r.provider},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"accounts",header:"Accounts",title:"Accounts with at least one snapshot for this window in range",align:"right",sort:(r)=>r.accounts,render:(r)=>J.jsxDEV("span",{className:"num",children:q(r.accounts)},void 0,!1,void 0,this)},{key:"cycles",header:"Resets",title:"Window resets observed (drops in used fraction)",align:"right",sort:(r)=>r.cycles,render:(r)=>J.jsxDEV("span",{className:"num muted",children:q(r.cycles)},void 0,!1,void 0,this)},{key:"consumed",header:"Windows burned",title:"Subscription-window equivalents consumed in range (sum of used-fraction increases across accounts)",align:"right",sort:(r)=>r.fractionConsumed,render:(r)=>J.jsxDEV("span",{className:"num",children:r.fractionConsumed.toFixed(2)},void 0,!1,void 0,this)},{key:"capacity",header:"Tokens / window",title:"Provider tokens burned in range ÷ windows burned — what one full window is worth",align:"right",sort:(r)=>r.estTokensPerWindow??-1,render:(r)=>r.estTokensPerWindow!==null?J.jsxDEV("span",{className:"num",children:Me(r.estTokensPerWindow)},void 0,!1,void 0,this):J.jsxDEV("span",{className:"dim",title:"Too little of the window was consumed to extrapolate",children:"–"},void 0,!1,void 0,this)},{key:"peak",header:"Peak utilization",title:"Peak of summed used fraction across accounts at any sampled instant; the bar is relative to fleet capacity",align:"right",sort:(r)=>r.peakConcurrentFraction,render:(r)=>{let i=r.accounts>0?r.peakConcurrentFraction/r.accounts:0;return J.jsxDEV(ia,{value:r.peakConcurrentFraction,max:r.accounts,display:Re(r.peakConcurrentFraction,0),color:i>=0.9?"var(--warn)":void 0},void 0,!1,void 0,this)}},{key:"ideal",header:"Accounts needed",title:"Accounts needed to keep peak demand under 90% of fleet capacity",align:"right",sort:(r)=>r.idealAccounts-r.accounts,render:(r)=>r.idealAccounts>r.accounts?J.jsxDEV(wt,{tone:"warn",mono:!0,children:[q(r.idealAccounts)," · have ",q(r.accounts)]},void 0,!0,void 0,this):J.jsxDEV("span",{className:"num",children:q(r.idealAccounts)},void 0,!1,void 0,this)},{key:"exhausted",header:"Exhaustions",title:"Transitions into an exhausted state observed in range",align:"right",sort:(r)=>r.exhaustedEvents,render:(r)=>r.exhaustedEvents>0?J.jsxDEV(wt,{tone:"warn",mono:!0,children:[q(r.exhaustedEvents)," exhausted"]},void 0,!0,void 0,this):J.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],Mm=60000,Yn=60*Mm,Am=24*Yn,q2=[5*Mm,15*Mm,30*Mm,Yn,2*Yn,3*Yn,6*Yn,12*Yn,Am],B2=240,N2=6*Yn;function U2({insights:r,accounts:i,selected:u,onSelect:c}){let[f,v]=nl(),p=co.useMemo(()=>[...new Set((r??[]).map((L)=>L.provider))],[r]),b=co.useMemo(()=>(r??[]).filter((L)=>L.provider===u?.provider).map((L)=>({key:L.windowKey,label:L.windowLabel})),[r,u?.provider]),S=co.useMemo(()=>(i.data?.usageSeries??[]).filter((L)=>L.provider===u?.provider),[i.data,u?.provider]),k=S.length===0&&(i.loading||i.stale),h=co.useMemo(()=>{let L=new Map;for(let _ of S){let z=L.get(_.accountLabel)??[];if(!z.includes(_.accountKey))z.push(_.accountKey);L.set(_.accountLabel,z)}let D=new Map;for(let[_,z]of L)z.sort(),z.forEach((F,K)=>D.set(F,z.length>1?`${_} #${K+1}`:_));return D},[S]),x=co.useMemo(()=>P2(S.filter((L)=>L.windowKey===u?.windowKey),h),[S,h,u?.windowKey]),C=co.useMemo(()=>{let L=new Map(x.series.map((D)=>[D.key,D.color]));return S.map((D)=>{let _=null,z=null;for(let N of D.points){if(N.usedFraction===null)continue;if(z=Math.max(z??0,N.usedFraction),!_||N.timestamp>=_.timestamp)_={fraction:N.usedFraction,exhausted:N.exhausted,timestamp:N.timestamp}}let F=D.windowKey===u?.windowKey?L.get(D.accountKey)??null:null,K=h.get(D.accountKey)??D.accountLabel;return{series:D,name:K,color:F,latest:_,peak:z,samples:D.points.length}}).sort((D,_)=>Number(_.color!==null)-Number(D.color!==null)||D.series.windowLabel.localeCompare(_.series.windowLabel)||(_.latest?.fraction??-1)-(D.latest?.fraction??-1))},[S,h,x.series,u?.windowKey]),R=b.find((L)=>L.key===u?.windowKey)?.label;return J.jsxDEV(Ve,{index:5,title:"Window utilization",description:x.buckets.length>0?`${R??"Window"} used fraction per account, ${ln(new Date(x.first),"MMM d HH:mm")} – ${ln(new Date(x.last),"MMM d HH:mm")}`:"Recorded limit utilization per account",actions:u&&J.jsxDEV("div",{className:"row",style:{gap:6},children:[J.jsxDEV("select",{className:"input providers-select",value:u.provider,onChange:(L)=>{let D=L.target.value,_=r?.find((z)=>z.provider===D);if(_)c({provider:D,windowKey:_.windowKey})},"aria-label":"Provider",children:p.map((L)=>J.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))},void 0,!1,void 0,this),J.jsxDEV("select",{className:"input providers-select",value:u.windowKey,onChange:(L)=>c({provider:u.provider,windowKey:L.target.value}),"aria-label":"Window",children:b.map((L)=>J.jsxDEV("option",{value:L.key,children:L.label},L.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:i.stale,children:r===null?J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this):u===null?J.jsxDEV(mt,{title:"No usage snapshots in this range",hint:Uw},void 0,!1,void 0,this):J.jsxDEV(_e,{query:i,skeleton:J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>k?J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this):J.jsxDEV("div",{className:"stack",style:{gap:16},children:[J.jsxDEV("div",{className:"stack",style:{gap:12},children:[J.jsxDEV(Cl,{slots:x.buckets.length,tickLabel:(L)=>pm(x.buckets[L],x.last-x.first>Am?Am:x.bucketMs),tooltipTitle:(L)=>fm(x.buckets[L],Yn),series:x.series,hidden:f,kind:"line",stacked:!1,height:260,yMax:Math.max(1,x.max),format:(L)=>Re(L,0),formatTooltip:(L)=>Re(L,1),references:[{value:1,label:"100%"}],emptyLabel:"No utilization readings for this window",tooltipExtra:(L)=>{let D=x.exhausted[L];return D.length>0?J.jsxDEV("div",{className:"chart-tooltip-row",children:[J.jsxDEV("span",{className:"chart-tooltip-label tone-bad",children:"Exhausted"},void 0,!1,void 0,this),J.jsxDEV("span",{className:"chart-tooltip-value",children:D.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),x.series.length>1&&J.jsxDEV(Qa,{items:x.series.map((L)=>({key:L.key,label:L.label,color:L.color})),hidden:f,onToggle:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV("div",{className:"providers-accounts",children:J.jsxDEV(zt,{rows:C,rowKey:(L)=>`${L.series.windowKey}::${L.series.accountKey}`,columns:_2,limit:16,onRowClick:(L)=>c({provider:L.series.provider,windowKey:L.series.windowKey}),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function P2(r,i){let{POSITIVE_INFINITY:u,NEGATIVE_INFINITY:c}=Number;for(let R of r)for(let L of R.points){if(L.timestamp<u)u=L.timestamp;if(L.timestamp>c)c=L.timestamp}if(!(c>=u))return{buckets:[],bucketMs:Yn,first:0,last:0,max:0,series:[],exhausted:[]};let f=c-u,v=q2.find((R)=>f/R<B2)??Am,p=Po("all",[u],v,c),b=(R)=>Math.floor((R-p[0])/v),S=p.map(()=>[]),k=0,h=(R)=>i.get(R.accountKey)??R.accountLabel,C=[...r].sort((R,L)=>h(R).localeCompare(h(L))).map((R,L)=>{let D=p.map(()=>null),_=p.map(()=>0);for(let K of R.points){let N=b(K.timestamp);if(N<0||N>=p.length)continue;if(K.exhausted&&!S[N].includes(h(R)))S[N].push(h(R));if(K.usedFraction===null||K.timestamp<_[N])continue;D[N]=K.usedFraction,_[N]=K.timestamp,k=Math.max(k,K.usedFraction)}let z=null,F=0;for(let K=0;K<p.length;K++)if(D[K]!==null)z=D[K],F=_[K];else if(z!==null&&p[K]-F<=N2)D[K]=z;return{key:R.accountKey,label:h(R),color:Ha[L%Ha.length],values:D}});return{buckets:p,bucketMs:v,first:u,last:c,max:k,series:C,exhausted:S}}function z2(r){if(!r)return J.jsxDEV("span",{className:"dim",children:"No reading"},void 0,!1,void 0,this);if(r.exhausted)return J.jsxDEV(wt,{tone:"bad",children:"Exhausted"},void 0,!1,void 0,this);if(r.fraction>=0.8)return J.jsxDEV(wt,{tone:"warn",children:"High"},void 0,!1,void 0,this);return J.jsxDEV(wt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}var _2=[{key:"account",header:"Account",sort:(r)=>r.name,render:(r)=>J.jsxDEV("span",{className:"row",style:{gap:8},children:[J.jsxDEV("span",{className:"providers-swatch-slot",children:r.color&&J.jsxDEV(Sl,{color:r.color},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV("span",{className:"truncate providers-account",title:r.series.accountKey,children:r.name},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"window",header:"Window",sort:(r)=>r.series.windowLabel,render:(r)=>J.jsxDEV("span",{className:r.color?void 0:"muted",children:r.series.windowLabel},void 0,!1,void 0,this)},{key:"latest",header:"Latest used",align:"right",sort:(r)=>r.latest?.fraction??-1,render:(r)=>r.latest?J.jsxDEV(ia,{value:r.latest.fraction,max:1,display:Re(r.latest.fraction,0),color:r.latest.exhausted?"var(--bad)":r.latest.fraction>=0.8?"var(--warn)":"var(--ok)"},void 0,!1,void 0,this):J.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>r.latest?.exhausted?2:(r.latest?.fraction??0)>=0.8?1:0,render:(r)=>z2(r.latest)},{key:"peak",header:"Peak in range",align:"right",sort:(r)=>r.peak??-1,render:(r)=>J.jsxDEV("span",{className:"num",children:r.peak===null?"–":Re(r.peak,0)},void 0,!1,void 0,this)},{key:"samples",header:"Snapshots",align:"right",sort:(r)=>r.samples,render:(r)=>J.jsxDEV("span",{className:"num muted",children:q(r.samples)},void 0,!1,void 0,this)},{key:"recorded",header:"Recorded",align:"right",sort:(r)=>r.latest?.timestamp??0,render:(r)=>J.jsxDEV("span",{className:"muted",children:r.latest?ua(r.latest.timestamp):"–"},void 0,!1,void 0,this)}];var tu=Y(ut(),1);var Je=Y(ce(),1),Dm={ok:{label:"OK",tone:"ok"},aborted:{label:"Aborted",tone:"warn"},failed:{label:"Failed",tone:"bad"}};function zw({id:r,onClose:i}){let u=qt(["request",r],()=>Rk(r??0),{enabled:r!==null}),c=u.stale?null:u.data,f=c?Dm[Xn(c)]:null;return Je.jsxDEV(gm,{open:r!==null,onClose:i,width:620,title:c?Je.jsxDEV("span",{className:"mono",children:c.model},void 0,!1,void 0,this):"Request",subtitle:c?Je.jsxDEV(Je.Fragment,{children:[c.provider," ·"," ",Je.jsxDEV("span",{title:ll(c.timestamp),children:ua(c.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):r!==null?Je.jsxDEV("span",{className:"mono",children:["#",r]},void 0,!0,void 0,this):void 0,actions:c&&f?Je.jsxDEV("div",{className:"row",style:{gap:6},children:[Je.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:Cm({...Ec(window.location.hash),section:"traces",session:c.sessionFile}),onClick:i,title:"Open this request's session in the trace view",children:[Je.jsxDEV(vc,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),Je.jsxDEV(wt,{tone:f.tone,children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:c?Je.jsxDEV(H2,{details:c,aborted:Xn(c)==="aborted"},void 0,!1,void 0,this):u.error?Je.jsxDEV(bi,{error:u.error,onRetry:u.refetch},void 0,!1,void 0,this):Je.jsxDEV("div",{className:"stack",style:{gap:12},children:[Je.jsxDEV(Ea,{height:56},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:120},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:120},void 0,!1,void 0,this),Je.jsxDEV(Ea,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function H2({details:r,aborted:i}){let{usage:u}=r,c=r.duration!==null&&r.duration>0&&u.output>0?u.output*1000/r.duration:null,{messages:f,output:v,...p}=r;return Je.jsxDEV(Je.Fragment,{children:[r.errorMessage&&Je.jsxDEV("section",{className:"request-drawer-error","data-tone":i?"warn":"bad",role:"note",children:[Je.jsxDEV("div",{className:"request-drawer-error-label",children:i?"Aborted":"Error"},void 0,!1,void 0,this),Je.jsxDEV("pre",{className:"request-drawer-error-text",children:r.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Timing"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"at",label:"Started",value:ll(r.timestamp)},{key:"duration",label:"Duration",value:vt(r.duration)},{key:"ttft",label:"Time to first token",value:vt(r.ttft)},{key:"tps",label:"Output tokens/s",value:dn(c)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"input",label:"Uncached input",value:q(u.input)},{key:"cacheRead",label:"Cache read",value:q(u.cacheRead)},{key:"cacheWrite",label:"Cache write",value:q(u.cacheWrite)},{key:"output",label:"Output",value:q(u.output)},{key:"total",label:"Total",value:q(u.totalTokens)},{key:"premium",label:"Premium requests",value:q(Math.round((u.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"API-equivalent cost"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"total",label:"Total",value:Yr(r,4)},{key:"input",label:"Input",value:sa(u.cost.input,4)},{key:"cacheRead",label:"Cache read",value:sa(u.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:sa(u.cost.cacheWrite,4)},{key:"output",label:"Output",value:sa(u.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV("section",{children:[Je.jsxDEV("div",{className:"section-label",children:"Identity"},void 0,!1,void 0,this),Je.jsxDEV(_o,{items:[{key:"id",label:"Request id",value:r.id??"–"},{key:"entry",label:"Entry id",value:r.entryId},{key:"stop",label:"Stop reason",value:r.stopReason},{key:"api",label:"API",value:r.api},{key:"project",label:"Project",value:Je.jsxDEV("span",{title:r.folder,children:cn(r.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),Je.jsxDEV("div",{className:"request-drawer-file",children:[Je.jsxDEV("span",{className:"kv-key",children:"Session file"},void 0,!1,void 0,this),Je.jsxDEV("span",{className:"kv-value",children:r.sessionFile},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Je.jsxDEV(pi,{data:v,title:"Output message"},void 0,!1,void 0,this),Je.jsxDEV(pi,{data:f,title:"Session entry",initialCollapsed:!0},void 0,!1,void 0,this),Je.jsxDEV(pi,{data:p,title:"Stats row",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Qe=Y(ce(),1),Ob=[500,2000,1e4];function _w({active:r,range:i,onRequestClick:u}){let[c,f]=tu.useState(0),v=Ob[c],p=qt(["requests-log",v],()=>mm(v),{enabled:r}),[b,S]=tu.useState(""),[k,h]=tu.useState("all"),x=na(i),C=tu.useMemo(()=>{let N=p.data??[],oe=x.spanMs===null?null:Date.now()-x.spanMs,B=oe===null?N:N.filter((W)=>W.timestamp>=oe),ee=!p.stale&&(N.length<v||oe!==null&&B.length<N.length),Z={all:B.length,ok:0,aborted:0,failed:0};for(let W of B)Z[Xn(W)]++;return{loaded:N.length,inRange:B,complete:ee,counts:Z,summary:bw(B)}},[p.data,p.stale,v,x.spanMs]),R=tu.useMemo(()=>{let N=b.trim().toLowerCase();return C.inRange.filter((oe)=>(k==="all"||Xn(oe)===k)&&(N===""||oe.model.toLowerCase().includes(N)||oe.provider.toLowerCase().includes(N)||oe.folder.toLowerCase().includes(N)))},[C.inRange,b,k]),{summary:L,counts:D,complete:_}=C,z=c+1<Ob.length?Ob[c+1]:null,F=z!==null?Qe.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:p.refreshing,onClick:()=>f(c+1),children:p.refreshing&&p.stale?"Loading…":`Load latest ${q(z)}`},void 0,!1,void 0,this):void 0,K=["all","ok","aborted","failed"].map((N)=>({value:N,label:Qe.jsxDEV(Qe.Fragment,{children:[N==="all"?"All":Dm[N].label," ",Qe.jsxDEV("span",{className:"dim num",children:Me(D[N])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return Qe.jsxDEV("div",{className:"page",children:[Qe.jsxDEV(ta,{title:"Requests",description:`Every model call omp made in ${x.windowLabel}, newest first. Open a row for its full payload.`},void 0,!1,void 0,this),Qe.jsxDEV(_e,{query:p,skeleton:Qe.jsxDEV(Ea,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>Qe.jsxDEV("div",{"data-stale":p.stale,children:Qe.jsxDEV(aa,{min:160,children:[Qe.jsxDEV(fe,{label:"Requests",value:q(L.requests),hint:L.oldest===null?`none in ${x.windowLabel}`:`since ${ua(L.oldest)}`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Failed",value:q(L.failed),hint:`${L.requests>0?Re(L.failed/L.requests):"–"} · ${q(L.aborted)} aborted`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Tokens",title:"Total tokens across these requests",value:Me(L.tokens)},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"API-equivalent cost",title:"What these requests would cost at public API rates",value:Ot(L.cost,L.unpriced),hint:L.unpriced>0?`${q(L.unpriced)} unpriced`:void 0},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Median duration",value:vt(L.medianDuration),hint:`p95 ${vt(L.p95Duration)}`},void 0,!1,void 0,this),Qe.jsxDEV(fe,{label:"Median TTFT",title:"Time to first token",value:vt(L.medianTtft)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Qe.jsxDEV(Ve,{index:1,title:"Request log",description:p.data===null?"Loading the latest requests…":_?`${q(R.length)} of ${q(L.requests)} requests in ${x.windowLabel}`:`${q(R.length)} of the latest ${q(L.requests)} requests`,actions:Qe.jsxDEV(Qe.Fragment,{children:[Qe.jsxDEV(un,{value:b,onChange:S,placeholder:"Model, provider or project"},void 0,!1,void 0,this),Qe.jsxDEV(za,{size:"sm","aria-label":"Status",options:K,value:k,onChange:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:p.stale,footer:p.data!==null&&!_?Qe.jsxDEV(Qe.Fragment,{children:[Qe.jsxDEV("span",{children:["Showing the latest ",q(C.loaded)," requests, back to"," ",L.oldest===null?"–":ll(L.oldest),". Older requests in"," ",x.windowLabel," are not loaded."]},void 0,!0,void 0,this),F]},void 0,!0,void 0,this):void 0,children:Qe.jsxDEV(_e,{query:p,skeleton:Qe.jsxDEV(ra,{rows:12},void 0,!1,void 0,this),children:()=>Qe.jsxDEV(zt,{rows:R,rowKey:(N)=>N.id??`${N.sessionFile}:${N.entryId}`,onRowClick:(N)=>N.id!==void 0&&u(N.id),columns:F2,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:Qe.jsxDEV(mt,{title:L.requests===0?`No requests in ${x.windowLabel}`:"No requests match",hint:L.requests===0?void 0:"Clear the search or status filter."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var F2=[{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>Qe.jsxDEV(_a,{primary:Qe.jsxDEV("span",{className:"mono",children:r.model},void 0,!1,void 0,this),secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:"When",sort:(r)=>r.timestamp,render:(r)=>Qe.jsxDEV("span",{className:"muted",title:ll(r.timestamp),children:ua(r.timestamp)},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>Qe.jsxDEV("span",{className:"mono muted truncate",title:r.folder,style:{display:"block",maxWidth:180},children:cn(r.folder)},void 0,!1,void 0,this)},{key:"input",header:"Input",title:"Uncached input tokens",align:"right",sort:(r)=>r.usage.input,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Me(r.usage.input)},void 0,!1,void 0,this)},{key:"cache",header:"Cache read",title:"Cache read tokens (hover a cell for cache writes)",align:"right",sort:(r)=>r.usage.cacheRead,render:(r)=>Qe.jsxDEV("span",{className:"num",title:`Cache write: ${q(r.usage.cacheWrite)}`,children:Me(r.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:"Output",align:"right",sort:(r)=>r.usage.output,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Me(r.usage.output)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate",align:"right",sort:(r)=>r.usage.cost.total,render:(r)=>Qe.jsxDEV("span",{className:"num",children:Yr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",sort:(r)=>r.duration??-1,render:(r)=>Qe.jsxDEV("span",{className:"num",children:vt(r.duration)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Time to first token",align:"right",sort:(r)=>r.ttft??-1,render:(r)=>Qe.jsxDEV("span",{className:"num muted",children:vt(r.ttft)},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>Xn(r),render:(r)=>{let i=Dm[Xn(r)];return Qe.jsxDEV("span",{title:r.errorMessage??void 0,children:Qe.jsxDEV(_a,{lead:Qe.jsxDEV(rn,{tone:i.tone},void 0,!1,void 0,this),primary:i.label,secondary:Qe.jsxDEV("span",{className:"mono",children:r.stopReason},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)}}];var ou=Y(ut(),1);var be=Y(ce(),1),G2=[{value:"calls",label:"Calls"},{value:"errors",label:"Errors"}],Hw=6,au="Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls",qb=be.jsxDEV(mt,{title:"No tool calls in this range"},void 0,!1,void 0,this);function Fw({active:r,range:i}){let u=qt(["tools",i],()=>Nk(i),{enabled:r}),[c,f]=ou.useState("calls"),[v,p]=nl(),[b,S]=ou.useState(null),k=na(i),h=ou.useMemo(()=>V2(u.data,i),[u.data,i]),x=b!==null&&h.toolNames.includes(b)?b:null,C=c==="calls"?h.callSeries:h.errorSeries,R=(L)=>L.byTool.length===0;return be.jsxDEV("div",{className:"page",children:[be.jsxDEV(ta,{title:"Tools",description:`Which tools omp called in ${k.windowLabel}, how often they failed, and what they cost.`},void 0,!1,void 0,this),be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:()=>{let L=h.totals;return be.jsxDEV("div",{"data-stale":u.stale,className:"stack",style:{gap:16},children:[be.jsxDEV(aa,{min:190,children:[be.jsxDEV(fe,{label:"Tool calls",value:q(L.calls),hint:`${q(L.errors)} failed`,spark:h.totalCalls},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Distinct tools",value:q(L.tools),hint:h.rows[0]?`Most used: ${h.rows[0].tool}`:void 0},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Error rate",title:"Tool results that came back flagged as errors",value:Re(L.calls>0?L.errors/L.calls:0),hint:`${q(L.calls-L.errors)} succeeded`,spark:h.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Attributed tokens",title:au,value:Me(Math.round(L.tokens)),hint:`${Me(Math.round(L.output))} output`},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Attributed cost",title:`${au}; API-equivalent estimate`,value:Ot(L.cost,L.unpriced),hint:L.unpriced>0?`${q(Math.round(L.unpriced))} unpriced requests`:"API-equivalent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(aa,{min:150,children:[be.jsxDEV(fe,{size:"sm",label:"Result text",title:"Characters of tool-result text fed back into context",value:`${Me(L.resultChars)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Call arguments",title:"Characters of serialized tool-call arguments",value:`${Me(L.argsChars)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Avg result per call",value:`${Me(L.calls>0?Math.round(L.resultChars/L.calls):0)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Avg arguments per call",value:`${Me(L.calls>0?Math.round(L.argsChars/L.calls):0)} chars`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:1,title:c==="calls"?"Calls over time":"Errors over time",description:`Per ${k.bucketMs<3600000?"5 minutes":k.bucketMs<86400000?"hour":"day"}, top ${Hw} tools stacked`,actions:be.jsxDEV(za,{size:"sm",options:G2,value:c,onChange:f},void 0,!1,void 0,this),stale:u.stale,children:be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),isEmpty:R,empty:qb,children:()=>be.jsxDEV("div",{className:"stack",style:{gap:12},children:[be.jsxDEV($n,{buckets:h.buckets,bucketMs:k.bucketMs,series:C,hidden:v,height:260,formatTooltip:q,emptyLabel:c==="errors"?"No tool errors in this range":void 0},void 0,!1,void 0,this),be.jsxDEV(Qa,{items:C.map((L)=>({key:L.key,label:L.label,color:L.color,value:Me(L.values.reduce((D,_)=>D+(_??0),0))})),hidden:v,onToggle:p},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:2,title:"By tool",description:`${au}. Select a tool to break it down by model.`,flush:!0,stale:u.stale,children:be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:R,empty:qb,children:()=>be.jsxDEV(zt,{rows:h.rows,rowKey:(L)=>L.tool,columns:h.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:x,onRowClick:(L)=>S((D)=>D===L.tool?null:L.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),be.jsxDEV(Ve,{index:3,title:"By tool and model",description:"Which models call which tools, and how often those calls fail",flush:!0,stale:u.stale,actions:be.jsxDEV("div",{className:"row",style:{gap:6},children:[be.jsxDEV("select",{className:"input tools-filter",value:x??"",onChange:(L)=>S(L.target.value||null),"aria-label":"Filter by tool",children:[be.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),h.toolNames.map((L)=>be.jsxDEV("option",{value:L,children:L},L,!1,void 0,this))]},void 0,!0,void 0,this),x!==null&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost","data-icon":"true",title:"Clear tool filter","aria-label":"Clear tool filter",onClick:()=>S(null),children:be.jsxDEV(al,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:be.jsxDEV(_e,{query:u,skeleton:be.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:R,empty:qb,children:(L)=>be.jsxDEV(X2,{rows:L.byToolModel,tool:x,colors:h.colors},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function V2(r,i){let u=r?.byTool??[],c=r?.series??[],f=yw(u).sort((R,L)=>L.calls-R.calls),v=qc(u.map((R)=>({key:R.tool,weight:R.calls}))),p=Po(i,c.map((R)=>R.timestamp)),b={calls:0,errors:0,tools:u.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let R of u)b.calls+=R.calls,b.errors+=R.errors,b.tokens+=R.totalTokensShare,b.output+=R.outputTokensShare,b.cost+=R.costShare,b.unpriced+=R.unpricedRequestsShare,b.resultChars+=R.resultChars,b.argsChars+=R.argsChars;let[S,k]=[(R)=>R.calls,(R)=>R.errors].map((R)=>mn(c,{buckets:p,key:(L)=>L.tool,value:R,limit:Hw,colors:v}).map((L)=>({...L,values:L.values.map((D)=>D||null)}))),h=new Map(mn(c,{buckets:p,key:(R)=>R.tool,value:(R)=>R.calls}).map((R)=>[R.key,R.values])),x=f[0]?.calls??0,C=$2(x,v,h);return{rows:f,colors:v,buckets:p,totals:b,callSeries:S,errorSeries:k,totalCalls:ba(c,p,(R)=>R.calls),totalErrors:ba(c,p,(R)=>R.errors),toolNames:f.map((R)=>R.tool).sort((R,L)=>R.localeCompare(L)),toolColumns:C}}function $2(r,i,u){return[{key:"tool",header:"Tool",sort:(c)=>c.tool,render:(c)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(Sl,{color:i.get(c.tool)??eo},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:c.tool,children:c.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"trend",header:"Trend",title:"Calls per bucket over the range",render:(c)=>{let f=u.get(c.tool);return f&&f.length>1?be.jsxDEV(gi,{values:f,width:80,height:20,color:i.get(c.tool)??eo},void 0,!1,void 0,this):be.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:"Calls",align:"right",sort:(c)=>c.calls,render:(c)=>be.jsxDEV(ia,{value:c.calls,max:r,display:be.jsxDEV("span",{title:`${Re(c.callFraction)} of all tool calls`,children:[q(c.calls),be.jsxDEV("span",{className:"dim tools-share",children:Re(c.callFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",title:"Calls whose result came back flagged as an error",align:"right",sort:(c)=>c.errorRate,render:(c)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:q(c.errors)},void 0,!1,void 0,this),be.jsxDEV(wt,{tone:c.errors>0?sn(c.errorRate):"neutral",mono:!0,children:Re(c.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"args",header:"Args",title:"Characters of serialized tool-call arguments",align:"right",sort:(c)=>c.argsChars,render:(c)=>be.jsxDEV("span",{className:"num",children:Me(c.argsChars)},void 0,!1,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(c)=>c.resultChars,render:(c)=>be.jsxDEV("span",{className:"num",children:Me(c.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:"Result / call",title:"Mean tool-result characters per call",align:"right",sort:(c)=>c.avgResultChars,render:(c)=>be.jsxDEV("span",{className:"num muted",children:Me(Math.round(c.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:au,align:"right",sort:(c)=>c.totalTokensShare,render:(c)=>be.jsxDEV("span",{className:"num",title:`${Re(c.tokenFraction)} of attributed tokens`,children:[Me(Math.round(c.totalTokensShare)),be.jsxDEV("span",{className:"dim tools-share",children:Re(c.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:"Attr. cost",title:`${au}; API-equivalent estimate`,align:"right",sort:(c)=>c.costShare,render:(c)=>be.jsxDEV("span",{className:"num",title:`${Re(c.costFraction)} of attributed cost`,children:[Ot(c.costShare,c.unpricedRequestsShare),be.jsxDEV("span",{className:"dim tools-share",children:Re(c.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(c)=>c.lastUsed,render:(c)=>be.jsxDEV("span",{className:"muted",children:ua(c.lastUsed)},void 0,!1,void 0,this)}]}function X2({rows:r,tool:i,colors:u}){let c=ou.useMemo(()=>(i===null?r:r.filter((v)=>v.tool===i)).map((v)=>({...v,errorRate:v.calls>0?v.errors/v.calls:0})),[r,i]),f=ou.useMemo(()=>{let v=c.reduce((p,b)=>Math.max(p,b.calls),0);return[{key:"tool",header:"Tool",sort:(p)=>p.tool,render:(p)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(Sl,{color:u.get(p.tool)??eo},void 0,!1,void 0,this),be.jsxDEV("span",{className:"mono truncate tools-name",title:p.tool,children:p.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:"Model",sort:(p)=>p.model,render:(p)=>be.jsxDEV(_a,{primary:be.jsxDEV("span",{className:"mono",children:p.model||"(unknown)"},void 0,!1,void 0,this),secondary:p.provider},void 0,!1,void 0,this)},{key:"calls",header:"Calls",align:"right",sort:(p)=>p.calls,render:(p)=>be.jsxDEV(ia,{value:p.calls,max:v,display:q(p.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(p)=>p.errorRate,render:(p)=>be.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[be.jsxDEV("span",{className:"num dim",children:q(p.errors)},void 0,!1,void 0,this),be.jsxDEV(wt,{tone:p.errors>0?sn(p.errorRate):"neutral",mono:!0,children:Re(p.errorRate)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(p)=>p.resultChars,render:(p)=>be.jsxDEV("span",{className:"num",children:Me(p.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:au,align:"right",sort:(p)=>p.totalTokensShare,render:(p)=>be.jsxDEV("span",{className:"num",children:Me(Math.round(p.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. cost",title:`${au}; API-equivalent estimate`,align:"right",sort:(p)=>p.costShare,render:(p)=>be.jsxDEV("span",{className:"num",children:Ot(p.costShare,p.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(p)=>p.lastUsed,render:(p)=>be.jsxDEV("span",{className:"muted",children:ua(p.lastUsed)},void 0,!1,void 0,this)}]},[c,u]);return be.jsxDEV(zt,{rows:c,rowKey:(v)=>`${v.tool}::${v.model}::${v.provider}`,columns:f,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:be.jsxDEV(mt,{title:i?`No calls to ${i} in this range`:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ti=Y(ut(),1);var Bt=Y(ut(),1);var hn=Y(ce(),1);function Gw({toolStats:r,index:i}){if(r.length===0)return null;let u=Math.max(...r.map((f)=>f.totalMs)),c=[{key:"tool",header:"Tool",render:(f)=>hn.jsxDEV("span",{className:"mono",children:f.tool},void 0,!1,void 0,this),sort:(f)=>f.tool},{key:"calls",header:"Calls",align:"right",render:(f)=>hn.jsxDEV("span",{className:"num",children:q(f.calls)},void 0,!1,void 0,this),sort:(f)=>f.calls},{key:"errors",header:"Errors",align:"right",render:(f)=>f.errors>0?hn.jsxDEV(wt,{tone:"bad",children:[q(f.errors)," failed"]},void 0,!0,void 0,this):hn.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(f)=>f.errors},{key:"total",header:"Total",align:"right",width:200,render:(f)=>hn.jsxDEV(ia,{value:f.totalMs,max:u,display:vt(f.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(f)=>f.totalMs},{key:"avg",header:"Avg",align:"right",render:(f)=>hn.jsxDEV("span",{className:"num",children:vt(f.calls>0?f.totalMs/f.calls:0)},void 0,!1,void 0,this),sort:(f)=>f.calls>0?f.totalMs/f.calls:0},{key:"max",header:"Max",align:"right",render:(f)=>hn.jsxDEV("span",{className:"num",children:vt(f.maxMs)},void 0,!1,void 0,this),sort:(f)=>f.maxMs}];return hn.jsxDEV(Ve,{title:"Tool aggregates",description:`${r.length} tools, by total time`,flush:!0,index:i,children:hn.jsxDEV(zt,{columns:c,rows:r,rowKey:(f)=>f.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Tl=Y(ut(),1);var xi=Y(ut(),1);var lu={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function j2(){let r=getComputedStyle(document.documentElement),i=(u,c)=>r.getPropertyValue(u).trim()||c;return{category:{turn:i(lu.turn,"#a0a0a8"),model:i(lu.model,"#5ad8e6"),tool:i(lu.tool,"#f5a524"),subagent:i(lu.subagent,"#ed4abf"),background:i(lu.background,"#46464c")},error:i("--bad","#ff6166"),errorSoft:i("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:i("--ink-1","#ededef"),turnBand:i("--hover","rgba(255, 255, 255, 0.035)"),grid:i("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:i("--chart-axis","#5c5c64"),spanText:i("--ink-inverse","#0a0a0b"),selection:i("--focus","#5ad8e6"),brush:i("--selected","rgba(255, 255, 255, 0.075)"),fontSans:i("--font-sans","system-ui, sans-serif"),fontMono:i("--font-mono","ui-monospace, monospace")}}function Li(){let r=ew(),[i,u]=xi.useState(0);return xi.useEffect(()=>{let c=new MutationObserver(()=>u((f)=>f+1));return c.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>c.disconnect()},[]),xi.useMemo(j2,[r,i])}var Xw=Y(ce(),1),Wr=44,Bb=["turn","model","tool","subagent"],Vw=6,Ci=10;function $w({tracks:r,scale:i,viewport:u,onViewportChange:c}){let f=Li(),v=Tl.useRef(null),[p,b]=Tl.useState(800),S=Tl.useRef(null);Tl.useEffect(()=>{let z=v.current;if(!z)return;let F=new ResizeObserver((K)=>{b(Math.max(100,Math.floor(K[0].contentRect.width)))});return F.observe(z),()=>F.disconnect()},[]);let[k,h]=i.domain,x=Math.max(h-k,0.000000001),C=Tl.useCallback((z)=>(z-k)/x*p,[k,x,p]),R=Tl.useCallback((z)=>k+z/Math.max(p,1)*x,[k,x,p]);Tl.useEffect(()=>{let z=v.current;if(!z)return;let F=z.getContext("2d");if(!F)return;let K=devicePixelRatio;F.setTransform(K,0,0,K,0,0),F.clearRect(0,0,p,Wr);let N=Wr/Bb.length;for(let ee=0;ee<Bb.length;ee++){let Z=Bb[ee],W=new Float32Array(p);for(let X of r)for(let ge of X.spans){if(ge.kind!==Z)continue;let Ne=Math.max(0,Math.floor(C(i.toU(ge.start)))),Ce=Math.min(p-1,Math.ceil(C(i.toU(ge.end))));for(let Be=Ne;Be<=Ce;Be++)W[Be]=Math.min(1,W[Be]+0.34)}F.fillStyle=f.category[Z];for(let X=0;X<p;X++){if(W[X]<=0)continue;F.globalAlpha=0.25+W[X]*0.75,F.fillRect(X,ee*N+1,1,N-2)}F.globalAlpha=1}let oe=C(u.u0),B=C(u.u1);F.fillStyle=f.brush,F.fillRect(oe,0,B-oe,Wr),F.strokeStyle=f.selection,F.strokeRect(oe+0.5,0.5,B-oe-1,Wr-1),F.fillStyle=f.selection,F.fillRect(oe,0,2,Wr),F.fillRect(B-2,0,2,Wr)},[r,i,u,f,p,C]);let L=(z)=>{let F=z.currentTarget.getBoundingClientRect(),K=z.clientX-F.left,N=C(u.u0),oe=C(u.u1),B;if(Math.abs(K-N)<=Vw)B="left";else if(Math.abs(K-oe)<=Vw)B="right";else if(K>N&&K<oe)B="move";else{B="create";let ee=R(K);c(Fc({u0:ee,u1:ee+Ci},k,h))}S.current={mode:B,startX:K,startViewport:u},z.currentTarget.setPointerCapture(z.pointerId)},D=(z)=>{let F=S.current;if(!F)return;let K=z.currentTarget.getBoundingClientRect(),N=z.clientX-K.left,oe=R(N)-R(F.startX),{u0:B,u1:ee}=F.startViewport;if(F.mode==="move")c(Fc({u0:B+oe,u1:ee+oe},k,h));else if(F.mode==="left")c(Fc({u0:Math.min(B+oe,ee-Ci),u1:ee},k,h));else if(F.mode==="right")c(Fc({u0:B,u1:Math.max(ee+oe,B+Ci)},k,h));else{let Z=R(F.startX),W=R(N);c(Fc({u0:Math.min(Z,W),u1:Math.max(Z,W,Math.min(Z,W)+Ci)},k,h))}},_=()=>{S.current=null};return Xw.jsxDEV("canvas",{ref:v,width:Math.floor(p*devicePixelRatio),height:Math.floor(Wr*devicePixelRatio),className:"traces-minimap",style:{height:Wr},role:"slider","aria-label":"Timeline overview brush","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((u.u0-k)/x*100),tabIndex:-1,onPointerDown:L,onPointerMove:D,onPointerUp:_},void 0,!1,void 0,this)}function Fc(r,i,u){let c=Math.max(Ci,r.u1-r.u0);c=Math.min(c,u-i||Ci);let f=r.u0;if(f<i)f=i;if(f+c>u)f=u-c;return{u0:f,u1:f+c}}var gn=Y(ut(),1);var et=Y(ce(),1);function Y2(r){let i=[];if(typeof r==="string"){if(r.trim())i.push({kind:"text",text:r});return i}if(!Array.isArray(r))return i;for(let u of r){if(!u||typeof u!=="object"||!("type"in u))continue;if((u.type==="text"||u.type==="thinking")&&"text"in u&&typeof u.text==="string")i.push({kind:String(u.type),text:u.text})}return i}function jw({span:r,track:i,onClose:u,onOpenChildTrack:c}){let[f,v]=gn.useState(null),[p,b]=gn.useState(!1),[S,k]=gn.useState(null),[h,x]=gn.useState(!1),C=gn.useRef(0);if(gn.useEffect(()=>{if(v(null),k(null),x(!1),b(!1),!r||!i||!r.entryId)return;b(!0);let F=new AbortController;return _k(i.file,r.entryId,F.signal).then((K)=>{if(!F.signal.aborted)v(K.entry)}).catch((K)=>{if(F.signal.aborted)return;k(K instanceof Error?K:Error(String(K)))}).finally(()=>{if(!F.signal.aborted)b(!1)}),()=>F.abort()},[r,i]),gn.useEffect(()=>()=>window.clearTimeout(C.current),[]),!r)return null;let R=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(f??r,null,2)),x(!0),window.clearTimeout(C.current),C.current=window.setTimeout(()=>x(!1),1500)}catch{}},D=(f&&typeof f==="object"?f:{}).message,_=D?.usage,z=[{key:"duration",label:"Duration",value:et.jsxDEV("span",{className:"num",children:[vt(r.end-r.start),r.unterminated&&et.jsxDEV("span",{className:"muted",children:" · unterminated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:"Start",value:et.jsxDEV("span",{className:"num",children:new Date(r.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:"Track",value:et.jsxDEV("span",{className:"mono",children:i?.label??"-"},void 0,!1,void 0,this)}];if(r.kind==="model"){if(z.push({key:"tokens",label:"Tokens",value:et.jsxDEV("span",{className:"num",children:q(r.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:"Cost",value:et.jsxDEV("span",{className:"num",children:["$",(r.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:"TTFT",value:et.jsxDEV("span",{className:"num",children:vt(r.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:"Model",value:et.jsxDEV("span",{className:"mono",children:D?.model??r.model??"-"},void 0,!1,void 0,this)}),_)z.push({key:"split",label:"Input / output / cached",value:et.jsxDEV("span",{className:"num",children:[q(_.input??0)," / ",q(_.output??0)," /"," ",q(_.cacheRead??0)]},void 0,!0,void 0,this)});if(D?.provider)z.push({key:"provider",label:"Provider",value:et.jsxDEV("span",{className:"mono",children:D.provider},void 0,!1,void 0,this)});if(D?.stopReason)z.push({key:"stop",label:"Stop reason",value:et.jsxDEV("span",{className:"mono",children:D.stopReason},void 0,!1,void 0,this)})}return et.jsxDEV(gm,{open:!0,onClose:u,title:r.label,subtitle:et.jsxDEV("span",{className:"row",style:{gap:6},children:et.jsxDEV(wt,{tone:r.isError?"bad":"neutral",children:r.isError?`${r.kind} · error`:r.kind},void 0,!1,void 0,this)},void 0,!1,void 0,this),actions:et.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:R,"aria-label":"Copy raw JSON",title:"Copy raw JSON",children:h?et.jsxDEV(Vs,{size:15},void 0,!1,void 0,this):et.jsxDEV(Xs,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:et.jsxDEV("div",{className:"stack traces-drawer",children:[et.jsxDEV(_o,{items:z},void 0,!1,void 0,this),D?.errorMessage&&et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label tone-bad",children:"Error message"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:D.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="subagent"&&et.jsxDEV("div",{className:"stack",style:{gap:8},children:[r.detail&&et.jsxDEV(et.Fragment,{children:[et.jsxDEV("div",{className:"section-label",children:"Task"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.childTrackId&&c&&et.jsxDEV("div",{children:et.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>c(r.childTrackId??""),children:["Open child track ",et.jsxDEV("span",{className:"mono",children:r.childTrackId},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="tool"&&r.detail&&et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label",children:"Args"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),p&&et.jsxDEV("div",{className:"stack",children:[et.jsxDEV(Ea,{height:80},void 0,!1,void 0,this),et.jsxDEV(Ea,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&et.jsxDEV(bi,{error:`Failed to load entry: ${S.message}`},void 0,!1,void 0,this),!p&&f!==null&&Y2(D?.content).map((F,K)=>et.jsxDEV("div",{className:"stack",style:{gap:6},children:[et.jsxDEV("div",{className:"section-label",children:F.kind==="thinking"?"Thinking":"Text"},void 0,!1,void 0,this),et.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:F.text},void 0,!1,void 0,this)]},`${F.kind}-${K}`,!0,void 0,this)),!p&&f!==null&&et.jsxDEV(pi,{data:f,title:"Raw entry",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var Il=Y(ce(),1);function Yw({summary:r}){let i=(u)=>r.wallMs>0?`${Re(u/r.wallMs)} of wall`:void 0;return Il.jsxDEV(aa,{min:112,children:[Il.jsxDEV(fe,{size:"sm",label:"Wall time",value:Zs(r.wallMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Model time",value:Zs(r.modelMs),hint:i(r.modelMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Tool time",value:Zs(r.toolMs),hint:i(r.toolMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Idle",value:Zs(r.idleMs),hint:i(r.idleMs)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Turns",value:q(r.turns)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Requests",value:q(r.requests),hint:`${q(r.toolCalls)} tool calls`},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Agents",value:q(r.subagents)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Tokens",value:Me(r.totalTokens)},void 0,!1,void 0,this),Il.jsxDEV(fe,{size:"sm",label:"Cost",value:Ot(r.costTotal,r.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Wt=Y(ut(),1),tT=Y(rc(),1);function Em(r,i){let u=r.length,c=[i[0],i[u-1]],f=(v,p)=>{let b=0,S=u-1;while(b<S){let k=b+S+1>>1;if(v[k]<=p)b=k;else S=k-1}return Math.min(b,u-2)};return{toU(v){if(v<=r[0])return i[0];if(v>=r[u-1])return i[u-1];let p=f(r,v),b=r[p+1]-r[p];if(b<=0)return i[p];return i[p]+(v-r[p])/b*(i[p+1]-i[p])},toT(v){if(v<=i[0])return r[0];if(v>=i[u-1])return r[u-1];let p=f(i,v),b=i[p+1]-i[p];if(b<=0)return r[p];return r[p]+(v-i[p])/b*(r[p+1]-r[p])},domain:c,gaps:[]}}function Q2(r){let i=[];for(let u of r)for(let c of u.spans)i.push([c.start,c.end]);return i.sort((u,c)=>u[0]-c[0]),i}function Z2(r){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:u}=Number;for(let c of r)for(let f of c.spans){if(f.start<i)i=f.start;if(f.end>u)u=f.end}if(!Number.isFinite(i))return[0,1];return[i,Math.max(u,i+1)]}function Qw(r,i,u){let c=[...new Set(r.filter((b)=>b>=i&&b<=u))].sort((b,S)=>b-S);if(c[0]!==i)c.unshift(i);if(c[c.length-1]!==u)c.push(u);if(c.length<2)return Em([i,u],[i,u]);let v=(u-i)/(c.length-1),p=c.map((b,S)=>i+S*v);return Em(c,p)}function W2(r,i,u){let c=Q2(r),f=[];for(let[h,x]of c){let C=h-2000,R=x+2000,L=f[f.length-1];if(L&&C<=L[1]){if(R>L[1])L[1]=R}else f.push([C,R])}if(f.length===0)f.push([i,u]);f[0][0]=Math.max(f[0][0],i),f[f.length-1][1]=Math.min(Math.max(f[f.length-1][1],f[f.length-1][0]),u);let v=[],p=[],b=[],S=f[0][0];for(let h=0;h<f.length;h++){let[x,C]=f[h];if(h===0)v.push(x),p.push(S);else{let R=f[h-1][1],L=x-R;if(L>30000)S+=8000,b.push({t0:R,t1:x,uMid:S-4000});else S+=L;v.push(x),p.push(S)}S+=Math.max(0,C-x),v.push(C),p.push(S)}return{...Em(v,p),gaps:b}}function Zw(r,i,u){let[c,f]=Z2(r);if(i==="turns"){let p=(r.find((b)=>b.id==="main")?.spans??[]).filter((b)=>b.kind==="turn").map((b)=>b.start);return Qw(p,c,f)}if(i==="calls"){let v=[];for(let p of r)for(let b of p.spans)if(b.kind==="model"||b.kind==="tool"||b.kind==="background")v.push(b.start,b.end);return Qw(v,c,f)}if(u)return W2(r,c,f);return Em([c,f],[c,f])}var K2=90;function J2(r){let i=10**Math.floor(Math.log10(Math.max(r,1)));for(let u of[1,2,5,10])if(i*u>=r)return i*u;return i*10}function eD(r){let i=new Date(r),u=String(i.getHours()).padStart(2,"0"),c=String(i.getMinutes()).padStart(2,"0"),f=String(i.getSeconds()).padStart(2,"0");return`${u}:${c}:${f}`}function ki(r){let i=r<0?"-":"+",u=Math.abs(r),c=Math.floor(u/3600000),f=Math.floor(u%3600000/60000),v=Math.floor(u%60000/1000),p=Math.floor(u%1000),b=u%1000!==0,S=`${String(f).padStart(2,"0")}:${String(v).padStart(2,"0")}${b?".":""}${b?String(p).padStart(3,"0"):""}`;return c>0?`${i}${c}:${S}`:`${i}${S}`}function Ww(r,i,u,c){let f=u-i;if(f<=0||c<=0)return[];let v=[],p=r.domain[0],b=J2(f*K2/c),S=p+Math.ceil((i-p)/b)*b,k=0;for(let h=S;h<=u&&k<200;h+=b,k++){let x=r.toT(h),C=Math.round((h-p)/b)%5===0;v.push({u:h,label:C?eD(x):ki(h-p),major:C})}return v}var Rt=Y(ce(),1),Qn=28,Ub=22,So=18,Kw=3,tD=14,Jw=200,Nb=10,aD=2,oD=4,lD=56,eT=3,nD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tools"},{kind:"subagent",label:"Agents"},{kind:"background",label:"Bg"}];function rD(r,i){let u=new Map(r.map((S)=>[S.id,S])),c=new Set;for(let S of r)if(S.parentId)c.add(S.parentId);let f=(S)=>{let k=S.parentId;while(k){if(i.has(k))return!0;k=u.get(k)?.parentId??null}return!1},v=[],p=[],b=Qn+6;for(let S of r){if(f(S))continue;let k=S.id==="main"?0:S.id.split("/").length,h={track:S,depth:k,hasChildren:c.has(S.id),headerY:b,lanes:[],y0:b,y1:b};b+=Ub;for(let{kind:x,label:C}of nD){let R=S.spans.filter((_)=>_.kind===x),L=x==="turn"||x==="model"||x==="tool";if(R.length===0&&!(S.id==="main"&&L))continue;let D={track:S,kind:x,label:C,y:b,spans:R};h.lanes.push(D),p.push(D),b+=So+Kw}h.y1=b-Kw,v.push(h),b+=tD}return{blocks:v,lanes:p,totalHeight:Math.max(b,Qn+48)}}function aT({tracks:r,scale:i,viewport:u,onViewportChange:c,selection:f,onSelect:v,search:p,collapsed:b,onToggleCollapse:S,traceStart:k}){let h=Li(),x=Wt.useRef(null),C=Wt.useRef(null),[R,L]=Wt.useState(800),[D,_]=Wt.useState(null),z=Wt.useRef([]),F=Wt.useRef(null),K=Wt.useRef(null),N=Wt.useRef(u);N.current=u;let oe=Wt.useMemo(()=>rD(r,b),[r,b]);Wt.useEffect(()=>{let ae=x.current;if(!ae)return;let P=new ResizeObserver((ue)=>{let se=Math.max(100,Math.floor(ue[0].contentRect.width-Jw));L(se)});return P.observe(ae),()=>P.disconnect()},[]);let B=Wt.useCallback((ae,P)=>{let[ue,se]=i.domain,ne=Math.max(Nb,P-ae);ne=Math.min(ne,se-ue||Nb);let pe=ae;if(pe<ue)pe=ue;if(pe+ne>se)pe=se-ne;return{u0:pe,u1:pe+ne}},[i]),ee=Wt.useCallback((ae)=>{N.current=ae,c(ae)},[c]),Z=Wt.useCallback((ae,P)=>{let ue=R,{u0:se,u1:ne}=N.current,pe=ne-se,Lt=P===null?0.5:Math.min(1,Math.max(0,P/ue)),Ye=se+pe*Lt,V=pe*ae;ee(B(Ye-V*Lt,Ye+V*(1-Lt)))},[R,ee,B]),W=Wt.useCallback((ae)=>{let{u0:P,u1:ue}=N.current;ee(B(P+ae,ue+ae))},[ee,B]),X=Wt.useCallback((ae)=>{let P=i.toU(ae.start),ue=i.toU(ae.end),se=Math.max((ue-P)*0.1,Nb/2);ee(B(P-se,ue+se))},[i,ee,B]);Wt.useEffect(()=>{let ae=C.current;if(!ae)return;let P=(ue)=>{ue.preventDefault();let se=ae.getBoundingClientRect(),ne=ue.clientX-se.left;K.current=ne,_(null);let pe=ae.clientWidth||1,Lt=()=>N.current.u1-N.current.u0;if(ue.shiftKey){let Ye=Math.abs(ue.deltaY)>=Math.abs(ue.deltaX)?ue.deltaY:ue.deltaX;W(Ye/pe*Lt());return}if(ue.deltaX!==0)W(ue.deltaX/pe*Lt());if(ue.deltaY!==0)Z(1.0015**ue.deltaY,ne)};return ae.addEventListener("wheel",P,{passive:!1}),()=>ae.removeEventListener("wheel",P)},[Z,W]);let ge=Wt.useCallback((ae,P)=>{let ue=C.current;if(!ue)return null;let se=ue.getBoundingClientRect(),ne=ae-se.left,pe=P-se.top,Lt=z.current;for(let Ye=Lt.length-1;Ye>=0;Ye--){let V=Lt[Ye];if(ne>=V.x&&ne<=V.x+V.w&&pe>=V.y&&pe<=V.y+V.h)return V}return null},[]),Ne=(ae)=>{ae.currentTarget.setPointerCapture(ae.pointerId),F.current={pointerId:ae.pointerId,lastX:ae.clientX,moved:!1},ae.currentTarget.focus()},Ce=(ae)=>{let P=ae.currentTarget.getBoundingClientRect();K.current=ae.clientX-P.left;let ue=F.current;if(ue&&ue.pointerId===ae.pointerId){let ne=ae.clientX-ue.lastX;if(Math.abs(ne)>0){if(Math.abs(ne)>2)ue.moved=!0;ue.lastX=ae.clientX;let pe=N.current.u1-N.current.u0;W(-ne/(R||1)*pe)}_(null);return}let se=ge(ae.clientX,ae.clientY);_(se?{hit:se,clientX:ae.clientX,clientY:ae.clientY}:null)},Be=(ae)=>{let P=F.current;if(F.current=null,P?.moved)return;let ue=ge(ae.clientX,ae.clientY);if(ue?.kind==="span")v(ue.span.id);else v(null)},te=(ae)=>{let P=ge(ae.clientX,ae.clientY);if(P?.kind==="span")X(P.span)},ve=Wt.useCallback((ae)=>{if(!f)return;for(let P of oe.lanes){let ue=P.spans.findIndex((pe)=>pe.id===f);if(ue===-1)continue;let se=P.spans[ue+ae];if(!se)return;v(se.id);let ne=i.toU(se.start);if(ne<u.u0||ne>u.u1){let pe=u.u1-u.u0;c(B(ne-pe/2,ne+pe/2))}return}},[f,oe,v,i,u,c,B]),ke=(ae)=>{let P=u.u1-u.u0;switch(ae.key){case"w":case"W":Z(0.7692307692307692,K.current);break;case"s":case"S":Z(1.3,K.current);break;case"a":case"A":W(-P*0.2);break;case"d":case"D":W(P*0.2);break;case"0":c({u0:i.domain[0],u1:i.domain[1]});break;case"f":case"F":{if(!f)break;let ue=r.flatMap((se)=>se.spans).find((se)=>se.id===f);if(ue)X(ue);break}case"Escape":v(null);break;case",":ve(-1);break;case".":ve(1);break;default:return}ae.preventDefault()};Wt.useEffect(()=>{C.current?.focus({preventScroll:!0})},[]),Wt.useEffect(()=>{let ae=C.current;if(!ae)return;let P=requestAnimationFrame(()=>{sD(ae,oe,i,u,h,{width:R,selection:f,hoverId:D?.hit.kind==="span"?D.hit.span.id:null,search:p,hits:z})});return()=>cancelAnimationFrame(P)},[oe,i,u,h,R,f,D,p]);let je=D?uD(D,k):null;return Rt.jsxDEV("div",{ref:x,className:"traces-timeline",children:[Rt.jsxDEV("div",{style:{width:Jw,flexShrink:0,position:"relative",height:oe.totalHeight},children:oe.blocks.map((ae)=>Rt.jsxDEV("div",{children:[Rt.jsxDEV("div",{style:{position:"absolute",top:ae.headerY,left:4+ae.depth*14,right:8,height:Ub,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[ae.hasChildren?Rt.jsxDEV("button",{type:"button",onClick:()=>S(ae.track.id),"aria-label":b.has(ae.track.id)?`Expand ${ae.track.label}`:`Collapse ${ae.track.label}`,className:"traces-chevron",children:b.has(ae.track.id)?Rt.jsxDEV(vl,{size:12},void 0,!1,void 0,this):Rt.jsxDEV($s,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):Rt.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),Rt.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:ae.track.label},void 0,!1,void 0,this),ae.track.model&&Rt.jsxDEV("span",{className:"traces-gutter-model mono truncate",style:{flexShrink:1,minWidth:0},children:ae.track.model},void 0,!1,void 0,this)]},void 0,!0,void 0,this),ae.lanes.map((P)=>Rt.jsxDEV("div",{className:"traces-gutter-lane",style:{top:P.y,left:20+ae.depth*14,lineHeight:`${So}px`},children:P.label},`${P.track.id}:${P.kind}`,!1,void 0,this))]},ae.track.id,!0,void 0,this))},void 0,!1,void 0,this),Rt.jsxDEV("canvas",{ref:C,className:"traces-canvas",width:Math.floor(R*devicePixelRatio),height:Math.floor(oe.totalHeight*devicePixelRatio),style:{width:R,height:oe.totalHeight},tabIndex:0,role:"application","aria-label":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.",onPointerDown:Ne,onPointerMove:Ce,onPointerUp:Be,onPointerLeave:()=>{K.current=null,_(null)},onDoubleClick:te,onKeyDown:ke},void 0,!1,void 0,this),je&&tT.createPortal(je,document.body)]},void 0,!0,void 0,this)}function Gc(r,i,u,c,f){if(r.beginPath(),c>=eT*2+1)r.roundRect(i,u,c,f,eT);else r.rect(i,u,c,f)}function sD(r,i,u,c,f,v){let p=r.getContext("2d");if(!p)return;let{width:b,selection:S,hoverId:k,search:h,hits:x}=v,C=i.totalHeight,R=devicePixelRatio;p.setTransform(R,0,0,R,0,0),p.clearRect(0,0,b,C);let{u0:L,u1:D}=c,_=Math.max(D-L,0.000000001),z=(N)=>(N-L)/_*b,F=h.trim().toLowerCase(),K=[];for(let N of i.blocks){let oe=N.track.spans.filter((B)=>B.kind==="turn");for(let B=0;B<oe.length;B++){let ee=z(u.toU(oe[B].start)),Z=B+1<oe.length?z(u.toU(oe[B+1].start)):b;if(Z<0||ee>b)continue;if(B%2===1)p.fillStyle=f.turnBand,p.fillRect(Math.max(0,ee),N.y0,Math.min(b,Z)-Math.max(0,ee),N.y1-N.y0);if(ee>=0&&ee<=b)p.strokeStyle=f.grid,p.beginPath(),p.moveTo(Math.round(ee)+0.5,N.y0),p.lineTo(Math.round(ee)+0.5,N.y1),p.stroke()}}for(let N of u.gaps){let oe=z(N.uMid);if(oe<-24||oe>b+24)continue;p.save(),p.strokeStyle=f.grid,p.setLineDash([2,4]),p.beginPath(),p.moveTo(oe,Qn),p.lineTo(oe,C),p.stroke(),p.restore(),p.fillStyle=f.tick,p.font=`9px ${f.fontMono}`,p.textAlign="center",p.fillText(`⋯ ${vt(N.t1-N.t0)}`,oe,Qn-4),p.textAlign="left"}p.font=`9px ${f.fontMono}`;for(let N of Ww(u,L,D,b)){let oe=Math.round(z(N.u))+0.5;if(p.strokeStyle=f.grid,p.beginPath(),N.major)p.moveTo(oe,4),p.lineTo(oe,C);else p.moveTo(oe,Qn-8),p.lineTo(oe,Qn);if(p.stroke(),p.fillStyle=f.tick,N.major)p.fillText(N.label,oe+4,11);else p.globalAlpha=0.75,p.fillText(N.label,oe+3,Qn-10),p.globalAlpha=1}p.strokeStyle=f.grid,p.beginPath(),p.moveTo(0,Qn+0.5),p.lineTo(b,Qn+0.5),p.stroke();for(let N of i.lanes){let oe=N.kind==="turn";for(let B of N.spans){let ee=u.toU(B.start);if(ee>D)break;let Z=u.toU(B.end);if(Z<L)continue;let W=z(ee),X=Math.max(aD,z(Z)-W),ge=N.y,Ne=F===""||`${B.label} ${B.detail??""}`.toLowerCase().includes(F),Ce=f.category[B.kind];if(p.globalAlpha=Ne?1:0.3,oe)p.fillStyle=Ce,p.globalAlpha=(Ne?1:0.3)*0.23,Gc(p,W,ge,X,So),p.fill(),p.globalAlpha=Ne?1:0.3,p.fillStyle=Ce,p.fillRect(W,ge,2,So);else p.fillStyle=Ce,Gc(p,W,ge,X,So),p.fill();if(B.isError)p.fillStyle=f.errorSoft,Gc(p,W,ge,X,So),p.fill(),p.fillStyle=f.error,p.fillRect(W,ge,2,So);if(B.kind==="model"&&typeof B.ttft==="number"&&B.ttft>0&&X>20){let te=z(u.toU(B.start+B.ttft));if(te>W+1&&te<W+X-1)p.fillStyle="rgba(0,0,0,0.5)",p.fillRect(te,ge+3,1,So-6)}if(B.unterminated)p.save(),p.strokeStyle=f.tick,p.setLineDash([2,2]),p.beginPath(),p.moveTo(W+X-0.5,ge),p.lineTo(W+X-0.5,ge+So),p.stroke(),p.restore();if(k===B.id)p.fillStyle="rgba(255,255,255,0.16)",Gc(p,W,ge,X,So),p.fill();if(S===B.id)p.strokeStyle=f.selection,p.lineWidth=1.5,Gc(p,W-1,ge-1,X+2,So+2),p.stroke(),p.lineWidth=1;if(X>lD)p.save(),p.beginPath(),p.rect(W+3,ge,X-6,So),p.clip(),p.fillStyle=oe?f.tick:f.spanText,p.font=`10px ${f.fontSans}`,p.fillText(B.label,W+5,ge+So-5),p.restore();p.globalAlpha=1;let Be=Math.max(X,oD);K.push({kind:"span",x:W-(Be-X)/2,y:ge,w:Be,h:So,span:B,track:N.track})}}for(let N of i.blocks)for(let oe of N.track.markers){let B=z(u.toU(oe.time));if(B<-6||B>b+6)continue;let ee=N.headerY+Ub/2;p.fillStyle=f.marker,p.beginPath(),p.moveTo(B,ee-4),p.lineTo(B+4,ee),p.lineTo(B,ee+4),p.lineTo(B-4,ee),p.closePath(),p.fill(),K.push({kind:"marker",x:B-5,y:ee-5,w:10,h:10,marker:oe,track:N.track})}x.current=K}function uD(r,i){let u=Math.min(r.clientX+14,window.innerWidth-320),c=r.clientY+16>window.innerHeight-140?r.clientY-120:r.clientY+16,f={left:u,top:c};if(r.hit.kind==="marker"){let{marker:p}=r.hit;return Rt.jsxDEV("div",{className:"traces-tooltip",style:f,children:[Rt.jsxDEV("div",{className:"traces-tooltip-title",children:p.label},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"muted num",children:[new Date(p.time).toLocaleTimeString()," (",ki(p.time-i),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:v}=r.hit;return Rt.jsxDEV("div",{className:"traces-tooltip",style:f,children:[Rt.jsxDEV("div",{className:"traces-tooltip-title truncate",children:v.label},void 0,!1,void 0,this),Rt.jsxDEV("div",{className:"muted num",children:[vt(v.end-v.start)," · ",new Date(v.start).toLocaleTimeString()," (",ki(v.start-i),")",v.unterminated?" · unterminated":""]},void 0,!0,void 0,this),v.kind==="model"&&Rt.jsxDEV("div",{className:"muted num",children:[v.tokens!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[q(v.tokens)," tok"]},void 0,!0,void 0,this),v.cost!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[" · $",v.cost.toFixed(4)]},void 0,!0,void 0,this),v.ttft!==void 0&&Rt.jsxDEV(Rt.Fragment,{children:[" · TTFT ",vt(v.ttft)]},void 0,!0,void 0,this),v.isError&&Rt.jsxDEV(Rt.Fragment,{children:" · error"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),v.kind==="subagent"&&v.model&&Rt.jsxDEV("div",{className:"muted num",children:v.model},void 0,!1,void 0,this),v.detail&&Rt.jsxDEV("div",{className:"traces-tooltip-detail",children:v.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Zn=Y(ut(),1);var Fa=Y(ce(),1),wi=28,oT=20,iD=340;function dD(r){let i=[];for(let u of r){let c=u.id==="main"?0:u.id.split("/").length;for(let f of u.spans)i.push({key:f.id,time:f.start,span:f,track:u,depth:c});for(let f=0;f<u.markers.length;f++){let v=u.markers[f];i.push({key:`${u.id}:marker:${f}`,time:v.time,marker:v,track:u,depth:c})}}return i.sort((u,c)=>u.time-c.time),i}function lT({tracks:r,selection:i,onSelect:u,search:c,traceStart:f}){let v=Li(),p=Zn.useRef(null),[b,S]=Zn.useState(0),k=Zn.useMemo(()=>dD(r),[r]),h=Zn.useMemo(()=>{let L=c.trim().toLowerCase();if(!L)return k;return k.filter((D)=>(D.span?`${D.span.label} ${D.span.detail??""}`:D.marker?.label??"").toLowerCase().includes(L))},[k,c]);Zn.useEffect(()=>{if(!i)return;let L=p.current;if(!L)return;let D=h.findIndex((z)=>z.span?.id===i);if(D===-1)return;let _=D*wi;if(_<L.scrollTop||_+wi>L.scrollTop+L.clientHeight)L.scrollTop=Math.max(0,_-L.clientHeight/2)},[i,h]);let x=Math.max(0,Math.floor(b/wi)-oT),C=Math.min(h.length,Math.ceil((b+iD)/wi)+oT),R=h.slice(x,C);return Fa.jsxDEV("div",{ref:p,onScroll:(L)=>S(L.currentTarget.scrollTop),className:"traces-list",children:[Fa.jsxDEV("div",{style:{height:h.length*wi,position:"relative"},children:Fa.jsxDEV("div",{style:{position:"absolute",top:x*wi,left:0,right:0},children:R.map((L)=>{let D=L.span,_=D!==void 0&&D.id===i,z=L.span?v.category[L.span.kind]:v.marker,F=L.span?.label??L.marker?.label??"",K=L.span?.detail,N=L.span?vt(L.span.end-L.span.start):"",oe=L.span?.kind??L.marker?.kind??"",B=Fa.jsxDEV(Fa.Fragment,{children:[Fa.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":z},children:oe},void 0,!1,void 0,this),L.depth>0&&Fa.jsxDEV("span",{className:"traces-row-track mono truncate",title:L.track.label,children:L.track.id},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-label truncate",children:F},void 0,!1,void 0,this),K&&Fa.jsxDEV("span",{className:"traces-row-detail truncate",children:K},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-meta num",children:[L.span?.isError&&Fa.jsxDEV("span",{className:"tone-bad",children:"error"},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:N},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:ki(L.time-f)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),ee={paddingLeft:12+L.depth*12};return D?Fa.jsxDEV("button",{type:"button",onClick:()=>u(D.id),className:"traces-row","data-selected":_?"true":"false",style:ee,children:B},L.key,!1,void 0,this):Fa.jsxDEV("div",{className:"traces-row","data-static":"true",style:ee,children:B},L.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),h.length===0&&Fa.jsxDEV(mt,{title:"No matching events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ze=Y(ce(),1),cD=[{value:"time",label:"Duration",title:"Real wall-clock time"},{value:"turns",label:"Turns",title:"Equal width per user turn"},{value:"calls",label:"Calls",title:"Equal width per model/tool call boundary"}],fD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tool"},{kind:"subagent",label:"Agent"},{kind:"background",label:"Background"}];function nT({file:r,active:i,onBack:u}){let c=qt(["trace",r],()=>zk(r),{pollMs:15000,enabled:i}),f=c.stale?null:c.data,[v,p]=Bt.useState("time"),[b,S]=Bt.useState(!0),[k,h]=Bt.useState(null),[x,C]=Bt.useState(!1),[R,L]=Bt.useState(""),[D,_]=Bt.useState(0),[z,F]=Bt.useState(new Set),[K,N]=Bt.useState(null),oe=Bt.useMemo(()=>f?.tracks??[],[f]),B=Bt.useMemo(()=>Zw(oe,v,b),[oe,v,b]),ee=Bt.useRef(B),Z=Bt.useRef(null);Bt.useEffect(()=>{if(!f)return;if(Z.current===f.file)return;Z.current=f.file,h(null),L(""),N(null);let se=new Set;for(let ne of f.tracks)if((ne.id==="main"?0:ne.id.split("/").length)>=1)se.add(ne.id);F(se)},[f]),Bt.useEffect(()=>{let se=ee.current;ee.current=B,N((ne)=>{if(!ne)return ne;let pe=se.toT(ne.u0),Lt=se.toT(ne.u1),Ye=B.toU(pe),V=B.toU(Lt);return V-Ye>0?{u0:Ye,u1:V}:null})},[B]);let W=K??{u0:B.domain[0],u1:B.domain[1]},X=Bt.useMemo(()=>{let se=[];for(let ne of oe)for(let pe of ne.spans)se.push({span:pe,track:ne});return se.sort((ne,pe)=>ne.span.start-pe.span.start),se},[oe]),ge=Bt.useMemo(()=>{let se=R.trim().toLowerCase();if(!se)return[];return X.filter(({span:ne})=>`${ne.label} ${ne.detail??""}`.toLowerCase().includes(se))},[X,R]),Ne=Bt.useCallback((se)=>{let ne=B.toU(se.start),pe=B.toU(se.end);N((Lt)=>{let Ye=Lt??{u0:B.domain[0],u1:B.domain[1]};if(ne>=Ye.u0&&pe<=Ye.u1)return Lt;let V=Ye.u1-Ye.u0,Pe=(ne+pe)/2,[Mt,pa]=B.domain,re=Pe-V/2;if(re<Mt)re=Mt;if(re+V>pa)re=Math.max(Mt,pa-V);return{u0:re,u1:re+V}})},[B]),Ce=Bt.useCallback((se)=>{h(se);let ne=X.find(({span:pe})=>pe.id===se);if(ne)Ne(ne.span)},[X,Ne]),Be=Bt.useCallback((se)=>{h(se),C(se!==null)},[]),te=Bt.useCallback((se)=>{if(ge.length===0)return;let ne=((D+se)%ge.length+ge.length)%ge.length;_(ne),Ce(ge[ne].span.id)},[ge,D,Ce]),ve=Bt.useCallback((se)=>{F((ne)=>{let pe=new Set(ne);if(pe.has(se))pe.delete(se);else pe.add(se);return pe})},[]),ke=Bt.useMemo(()=>{if(!k)return null;return X.find(({span:se})=>se.id===k)??null},[k,X]),je=Bt.useCallback((se)=>{let ne=oe.find((Lt)=>Lt.id===se),pe=ne?.spans[0];if(F((Lt)=>{let Ye=new Set(Lt),V=ne;while(V?.parentId)Ye.delete(V.parentId),V=oe.find((Pe)=>Pe.id===V?.parentId);return Ye}),pe)Ce(pe.id)},[oe,Ce]),ae=Bt.useCallback((se)=>{if(!se){F(new Set);return}let ne=new Set;for(let pe of oe)if(pe.id!=="main")ne.add(pe.id);F(ne)},[oe]),P=f?.startedAt??0,ue={...c,data:f};return Ze.jsxDEV("div",{className:"stack traces-view",children:[Ze.jsxDEV("div",{children:Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:u,children:[Ze.jsxDEV(cc,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(ta,{title:Ze.jsxDEV("span",{className:"traces-title truncate",children:f?.title??r.split("/").pop()},void 0,!1,void 0,this),description:f?.cwd?Ze.jsxDEV("span",{className:"mono",children:f.cwd},void 0,!1,void 0,this):void 0,actions:Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:c.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:Ze.jsxDEV($r,{size:14,className:c.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(_e,{query:ue,skeleton:Ze.jsxDEV(Tt,{height:420},void 0,!1,void 0,this),children:(se)=>Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV(Yw,{summary:se.summary},void 0,!1,void 0,this),Ze.jsxDEV(Ve,{index:1,title:"Timeline",description:"W/S zoom · A/D pan · drag pan · wheel zoom · 0 fit · F focus selection · dbl-click focus · Esc deselect",actions:Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ae(!1),children:"Expand all"},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>ae(!0),children:"Collapse all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:Ze.jsxDEV("div",{className:"stack",children:[Ze.jsxDEV("div",{className:"traces-toolbar",children:[Ze.jsxDEV(za,{options:cD,value:v,onChange:p,size:"sm","aria-label":"Axis mode"},void 0,!1,void 0,this),v==="time"&&Ze.jsxDEV("label",{className:"traces-check",children:[Ze.jsxDEV("input",{type:"checkbox",checked:b,onChange:(ne)=>S(ne.target.checked)},void 0,!1,void 0,this),"Compress idle"]},void 0,!0,void 0,this),Ze.jsxDEV("div",{className:"traces-search",children:[Ze.jsxDEV(un,{value:R,onChange:(ne)=>{L(ne),_(0)},placeholder:"Search spans…",width:200},void 0,!1,void 0,this),R.trim()&&Ze.jsxDEV(Ze.Fragment,{children:[Ze.jsxDEV("span",{className:"num muted traces-match-count",children:ge.length===0?"0":`${D%Math.max(ge.length,1)+1}/${ge.length}`},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>te(-1),"aria-label":"Previous match",disabled:ge.length===0,children:Ze.jsxDEV(hc,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>te(1),"aria-label":"Next match",disabled:ge.length===0,children:Ze.jsxDEV(vl,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV("div",{className:"traces-legend",children:fD.map((ne)=>Ze.jsxDEV("span",{className:"traces-legend-item",children:[Ze.jsxDEV("span",{className:"swatch",style:{background:`var(${lu[ne.kind]})`}},void 0,!1,void 0,this),ne.label]},ne.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ze.jsxDEV($w,{tracks:oe,scale:B,viewport:W,onViewportChange:N},void 0,!1,void 0,this),Ze.jsxDEV(aT,{tracks:oe,scale:B,viewport:W,onViewportChange:N,selection:k,onSelect:Be,search:R,collapsed:z,onToggleCollapse:ve,traceStart:P},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Ve,{index:2,title:"Transcript",description:"Every span and marker in order; click to inspect",flush:!0,children:Ze.jsxDEV(lT,{tracks:oe,selection:k,onSelect:(ne)=>{Ce(ne),C(!0)},search:R,traceStart:P},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(Gw,{toolStats:se.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ze.jsxDEV(jw,{span:x?ke?.span??null:null,track:ke?.track??null,onClose:()=>C(!1),onOpenChildTrack:je},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var jt=Y(ce(),1),rT=200;function pD({models:r}){if(r.length===0)return jt.jsxDEV("span",{className:"dim",children:"-"},void 0,!1,void 0,this);return jt.jsxDEV("span",{className:"traces-models",title:r.join(`
236
+ `),children:[jt.jsxDEV("span",{className:"mono truncate",children:r[0]},void 0,!1,void 0,this),r.length>1&&jt.jsxDEV("span",{className:"badge",children:["+",r.length-1]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function sT({active:r,session:i,onOpenSession:u}){let[c,f]=Ti.useState(""),v=qt(["sessions",rT],()=>Pk(rT),{pollMs:30000,enabled:r&&i===null}),p=Ti.useMemo(()=>{let h=v.data??[],x=c.trim().toLowerCase();if(!x)return h;return h.filter((C)=>(C.title??"").toLowerCase().includes(x)||C.folder.toLowerCase().includes(x)||C.models.some((R)=>R.toLowerCase().includes(x)))},[v.data,c]),b=Ti.useMemo(()=>Math.max(0,...p.map((h)=>h.costTotal)),[p]),S=Ti.useMemo(()=>[{key:"title",header:"Session",width:"32%",render:(h)=>jt.jsxDEV(_a,{primary:h.title??h.file.split("/").pop(),secondary:jt.jsxDEV("span",{className:"mono",children:h.folder.split("/").slice(-2).join("/")},void 0,!1,void 0,this)},void 0,!1,void 0,this),sort:(h)=>(h.title??h.file).toLowerCase()},{key:"models",header:"Models",render:(h)=>jt.jsxDEV(pD,{models:h.models},void 0,!1,void 0,this)},{key:"started",header:"Started",align:"right",render:(h)=>jt.jsxDEV("span",{className:"muted",title:new Date(h.startedAt).toLocaleString(),children:ua(h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.startedAt},{key:"duration",header:"Duration",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:Zs(h.endedAt-h.startedAt)},void 0,!1,void 0,this),sort:(h)=>h.endedAt-h.startedAt},{key:"requests",header:"Requests",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:q(h.requests)},void 0,!1,void 0,this),sort:(h)=>h.requests},{key:"toolCalls",header:"Tools",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:q(h.toolCalls)},void 0,!1,void 0,this),sort:(h)=>h.toolCalls},{key:"subagents",header:"Agents",align:"right",render:(h)=>h.subagents>0?jt.jsxDEV("span",{className:"num",children:q(h.subagents)},void 0,!1,void 0,this):jt.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this),sort:(h)=>h.subagents},{key:"tokens",header:"Tokens",align:"right",render:(h)=>jt.jsxDEV("span",{className:"num",children:Me(h.totalTokens)},void 0,!1,void 0,this),sort:(h)=>h.totalTokens},{key:"cost",header:"Cost",align:"right",width:150,render:(h)=>jt.jsxDEV(ia,{value:h.costTotal,max:b,display:Ot(h.costTotal,h.unpricedRequests)},void 0,!1,void 0,this),sort:(h)=>h.costTotal}],[b]);if(i!==null)return jt.jsxDEV(nT,{file:i,active:r,onBack:()=>u(null)},void 0,!1,void 0,this);let k=v.data?.length??0;return jt.jsxDEV("div",{className:"stack traces-page",children:[jt.jsxDEV(ta,{title:"Traces",description:"Recent sessions with subagent activity folded in. Open one to inspect its timeline."},void 0,!1,void 0,this),jt.jsxDEV(Ve,{title:"Sessions",description:v.data?c.trim()?`${q(p.length)} of ${q(k)} most recent`:`${q(k)} most recent`:void 0,actions:jt.jsxDEV(un,{value:c,onChange:f,placeholder:"Filter by title, project, model…",width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:v.stale,children:jt.jsxDEV(_e,{query:v,skeleton:jt.jsxDEV(ra,{rows:10},void 0,!1,void 0,this),isEmpty:(h)=>h.length===0,empty:jt.jsxDEV(mt,{title:"No sessions found",hint:"Run a sync to index recent activity."},void 0,!1,void 0,this),children:()=>jt.jsxDEV(zt,{columns:S,rows:p,rowKey:(h)=>h.file,onRowClick:(h)=>u(h.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:jt.jsxDEV(mt,{title:"No matching sessions",hint:"Try a different filter."},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ta=Y(ce(),1);function Pb(){return Ta.jsxDEV(Gk,{children:Ta.jsxDEV(mD,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function mD(){let{section:r,setSection:i,range:u,setRange:c,session:f,setSession:v}=nw(),[p,b]=Ii.useState(null),S=Ii.useCallback(()=>b(null),[]),k=Ii.useRef(new Set);k.current.add(r);let h=(x)=>{let C=x===r;switch(x){case"overview":return Ta.jsxDEV(Ew,{active:C,range:u,onRequestClick:b},void 0,!1,void 0,this);case"requests":return Ta.jsxDEV(_w,{active:C,range:u,onRequestClick:b},void 0,!1,void 0,this);case"errors":return Ta.jsxDEV(Lw,{active:C,range:u,onRequestClick:b},void 0,!1,void 0,this);case"traces":return Ta.jsxDEV(sT,{active:C,session:f,onOpenSession:v},void 0,!1,void 0,this);case"models":return Ta.jsxDEV(Rw,{active:C,range:u},void 0,!1,void 0,this);case"providers":return Ta.jsxDEV(Pw,{active:C,range:u},void 0,!1,void 0,this);case"costs":return Ta.jsxDEV(Sw,{active:C,range:u},void 0,!1,void 0,this);case"tools":return Ta.jsxDEV(Fw,{active:C,range:u},void 0,!1,void 0,this);case"frustration":return Ta.jsxDEV(kw,{active:C,range:u},void 0,!1,void 0,this);case"projects":return Ta.jsxDEV(qw,{active:C,range:u},void 0,!1,void 0,this);case"gain":return Ta.jsxDEV(Tw,{active:C,range:u},void 0,!1,void 0,this)}};return Ta.jsxDEV(Ta.Fragment,{children:[Ta.jsxDEV(lw,{section:r,onSectionChange:i,range:u,onRangeChange:c,children:[...k.current].map((x)=>Ta.jsxDEV("div",{hidden:x!==r,children:h(x)},x,!1,void 0,this))},void 0,!1,void 0,this),Ta.jsxDEV(zw,{id:p,onClose:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var dT=Y(ce(),1),iT=document.getElementById("root");if(!iT)throw Error("missing #root");uT.createRoot(iT).render(dT.jsxDEV(Pb,{},void 0,!1,void 0,this));