@oh-my-pi/omp-stats 18.7.0 → 18.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/dist/client/index.css +1 -1
- package/dist/client/index.js +96 -96
- package/dist/types/aggregator.d.ts +3 -0
- package/dist/types/client/api.d.ts +5 -1
- package/dist/types/client/data/live.d.ts +16 -11
- package/dist/types/client/data/query-store.d.ts +39 -0
- package/dist/types/client/data/query.d.ts +10 -5
- package/dist/types/client/traces/Minimap.d.ts +2 -0
- package/dist/types/client/traces/TimelineCanvas.d.ts +29 -8
- package/dist/types/client/traces/TranscriptList.d.ts +3 -1
- package/dist/types/db.d.ts +14 -2
- package/dist/types/embedded-client.d.ts +5 -0
- package/dist/types/live.d.ts +5 -3
- package/dist/types/rollup.d.ts +9 -1
- package/dist/types/trace.d.ts +18 -6
- package/package.json +4 -4
- package/src/aggregator.ts +26 -9
- package/src/client/api.ts +40 -5
- package/src/client/app/LiveChip.tsx +2 -2
- package/src/client/app/Shell.tsx +2 -2
- package/src/client/data/live.tsx +85 -45
- package/src/client/data/query-store.ts +108 -0
- package/src/client/data/query.ts +47 -56
- package/src/client/routes/CostsRoute.tsx +4 -2
- package/src/client/routes/ErrorsRoute.tsx +3 -1
- package/src/client/routes/FrustrationRoute.tsx +1 -1
- package/src/client/routes/GainRoute.tsx +3 -1
- package/src/client/routes/ModelsRoute.tsx +9 -2
- package/src/client/routes/OverviewRoute.tsx +2 -2
- package/src/client/routes/ProjectsRoute.tsx +1 -1
- package/src/client/routes/ProvidersRoute.tsx +5 -3
- package/src/client/routes/RequestsRoute.tsx +1 -1
- package/src/client/routes/ToolsRoute.tsx +1 -1
- package/src/client/routes/TracesRoute.tsx +5 -4
- package/src/client/traces/Minimap.tsx +63 -26
- package/src/client/traces/TimelineCanvas.tsx +224 -105
- package/src/client/traces/TraceView.tsx +29 -10
- package/src/client/traces/TranscriptList.tsx +17 -9
- package/src/client/traces/traces.css +26 -0
- package/src/client/ui/RequestDrawer.tsx +3 -1
- package/src/db.ts +106 -64
- package/src/embedded-client.ts +9 -0
- package/src/live.ts +36 -11
- package/src/parser.ts +1 -8
- package/src/rollup.ts +41 -20
- package/src/server.ts +38 -24
- package/src/trace.ts +54 -40
package/dist/client/index.js
CHANGED
|
@@ -1,76 +1,76 @@
|
|
|
1
|
-
var XM=Object.create;var{getPrototypeOf:jM,defineProperty:k1,getOwnPropertyNames:YM}=Object;var w1=Object.prototype.hasOwnProperty;function QM(r){return this[r]}var ZM,WM,Y=(r,u,i)=>{var c=r!=null&&typeof r==="object";if(c){var f=u?ZM??=new WeakMap:WM??=new WeakMap,v=f.get(r);if(v)return v}i=r!=null?XM(jM(r)):{};let p=u||!r||!r.__esModule||!w1.call(r,"default")?k1(i,"default",{value:r,enumerable:!0}):i;if(r&&typeof r==="object"||typeof r==="function"){for(let b of YM(r))if(!w1.call(p,b))k1(p,b,{get:QM.bind(r,b),enumerable:!0})}if(c)f.set(r,p);return p};var Gs=(r,u)=>()=>(u||r((u={exports:{}}).exports,u),u.exports);var T1=Gs(function(ii){(function(){function r(){if(N=!1,Z){var te=ii.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=i(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=ii.unstable_now(),typeof ae==="function"){D.callback=ae,v(te),ve=!0;break t}D===i(C)&&c(C),v(te)}else c(C);D=i(C)}if(D!==null)ve=!0;else{var P=i(R);P!==null&&S(p,P.startTime-te),ve=!1}}break e}finally{D=null,_=ke,z=!1}ve=void 0}}finally{ve?Be():Z=!1}}}function u(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 i(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=i(R);ve!==null;){if(ve.callback===null)c(R);else if(ve.startTime<=te)c(R),ve.sortIndex=ve.expirationTime,u(C,ve);else break;ve=i(R)}}function p(te){if(K=!1,v(te),!F)if(i(C)!==null)F=!0,Z||(Z=!0,Be());else{var ve=i(R);ve!==null&&S(p,ve.startTime-te)}}function b(){return N?!0:ii.unstable_now()-ge<X?!1:!0}function S(te,ve){W=oe(function(){te(ii.unstable_now())},ve)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),ii.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var k=performance;ii.unstable_now=function(){return k.now()}}else{var h=Date,x=h.now();ii.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 Be=function(){ee(r)};else if(typeof MessageChannel<"u"){var Ce=new MessageChannel,qe=Ce.port2;Ce.port1.onmessage=r,Be=function(){qe.postMessage(null)}}else Be=function(){oe(r,0)};ii.unstable_IdlePriority=5,ii.unstable_ImmediatePriority=1,ii.unstable_LowPriority=4,ii.unstable_NormalPriority=3,ii.unstable_Profiling=null,ii.unstable_UserBlockingPriority=2,ii.unstable_cancelCallback=function(te){te.callback=null},ii.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},ii.unstable_getCurrentPriorityLevel=function(){return _},ii.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}},ii.unstable_requestPaint=function(){N=!0},ii.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}},ii.unstable_scheduleCallback=function(te,ve,ke){var je=ii.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,u(R,te),i(C)===null&&te===i(R)&&(K?(B(W),W=-1):K=!0,S(p,ke-je))):(te.sortIndex=ae,u(C,te),F||z||(F=!0,Z||(Z=!0,Be()))),te},ii.unstable_shouldYield=b,ii.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=Gs(function(KM,um){(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 u(y){if(y===null||typeof y!=="object")return null;return y=pa&&y[pa]||y["@@iterator"],typeof y==="function"?y:null}function i(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 Ue: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===Ue)return"<...>";try{var O=k(y);return O?"<"+O+">":"<...>"}catch(ie){return"<...>"}}function x(){var y=De.A;return y===null?null:y.getOwner()}function C(){return Error("react-stack-top-frame")}function R(y){if(sl.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(){$c||($c=!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 Jr[y]||(Jr[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===Ue&&(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 Ue: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(su,"$&/")+"/"),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(su,"$&/")+"/")+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 Ee=0;Ee<y.length;Ee++)me=y[Ee],$e=yt+oe(me,Ee),Xe+=ee(me,O,ie,$e,we);else if(Ee=u(y),typeof Ee==="function")for(Ee===y.entries&&(ru||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ru=!0),y=Ee.call(y),Ee=0;!(me=y.next()).done;)me=me.value,$e=yt+oe(me,Ee++),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 sA=Object.create;var{getPrototypeOf:uA,defineProperty:D1,getOwnPropertyNames:iA}=Object;var E1=Object.prototype.hasOwnProperty;function cA(r){return this[r]}var dA,fA,Z=(r,u,i)=>{var d=r!=null&&typeof r==="object";if(d){var f=u?dA??=new WeakMap:fA??=new WeakMap,b=f.get(r);if(b)return b}i=r!=null?sA(uA(r)):{};let m=u||!r||!r.__esModule||!E1.call(r,"default")?D1(i,"default",{value:r,enumerable:!0}):i;if(r&&typeof r==="object"||typeof r==="function"){for(let v of iA(r))if(!E1.call(m,v))D1(m,v,{get:cA.bind(r,v),enumerable:!0})}if(d)f.set(r,m);return m};var Gs=(r,u)=>()=>(u||r((u={exports:{}}).exports,u),u.exports);var O1=Gs(function(ii){(function(){function r(){if(X=!1,j){var oe=ii.unstable_now();ce=oe;var pe=!0;try{e:{U=!1,V&&(V=!1,K(te),te=-1),N=!0;var ke=M;try{t:{b(oe);for(A=i(k);A!==null&&!(A.expirationTime>oe&&v());){var Xe=A.callback;if(typeof Xe==="function"){A.callback=null,M=A.priorityLevel;var vt=Xe(A.expirationTime<=oe);if(oe=ii.unstable_now(),typeof vt==="function"){A.callback=vt,b(oe),pe=!0;break t}A===i(k)&&d(k),b(oe)}else d(k);A=i(k)}if(A!==null)pe=!0;else{var W=i(w);W!==null&&S(m,W.startTime-oe),pe=!1}}break e}finally{A=null,M=ke,N=!1}pe=void 0}}finally{pe?ve():j=!1}}}function u(oe,pe){var ke=oe.length;oe.push(pe);e:for(;0<ke;){var Xe=ke-1>>>1,vt=oe[Xe];if(0<f(vt,pe))oe[Xe]=pe,oe[ke]=vt,ke=Xe;else break e}}function i(oe){return oe.length===0?null:oe[0]}function d(oe){if(oe.length===0)return null;var pe=oe[0],ke=oe.pop();if(ke!==pe){oe[0]=ke;e:for(var Xe=0,vt=oe.length,W=vt>>>1;Xe<W;){var Ne=2*(Xe+1)-1,Lt=oe[Ne],ut=Ne+1,it=oe[ut];if(0>f(Lt,ke))ut<vt&&0>f(it,Lt)?(oe[Xe]=it,oe[ut]=ke,Xe=ut):(oe[Xe]=Lt,oe[Ne]=ke,Xe=Ne);else if(ut<vt&&0>f(it,ke))oe[Xe]=it,oe[ut]=ke,Xe=ut;else break e}}return pe}function f(oe,pe){var ke=oe.sortIndex-pe.sortIndex;return ke!==0?ke:oe.id-pe.id}function b(oe){for(var pe=i(w);pe!==null;){if(pe.callback===null)d(w);else if(pe.startTime<=oe)d(w),pe.sortIndex=pe.expirationTime,u(k,pe);else break;pe=i(w)}}function m(oe){if(V=!1,b(oe),!U)if(i(k)!==null)U=!0,j||(j=!0,ve());else{var pe=i(w);pe!==null&&S(m,pe.startTime-oe)}}function v(){return X?!0:ii.unstable_now()-ce<_?!1:!0}function S(oe,pe){te=ie(function(){oe(ii.unstable_now())},pe)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),ii.unstable_now=void 0,typeof performance==="object"&&typeof performance.now==="function"){var x=performance;ii.unstable_now=function(){return x.now()}}else{var h=Date,L=h.now();ii.unstable_now=function(){return h.now()-L}}var k=[],w=[],C=1,A=null,M=3,N=!1,U=!1,V=!1,X=!1,ie=typeof setTimeout==="function"?setTimeout:null,K=typeof clearTimeout==="function"?clearTimeout:null,ee=typeof setImmediate<"u"?setImmediate:null,j=!1,te=-1,_=5,ce=-1;if(typeof ee==="function")var ve=function(){ee(r)};else if(typeof MessageChannel<"u"){var Le=new MessageChannel,Be=Le.port2;Le.port1.onmessage=r,ve=function(){Be.postMessage(null)}}else ve=function(){ie(r,0)};ii.unstable_IdlePriority=5,ii.unstable_ImmediatePriority=1,ii.unstable_LowPriority=4,ii.unstable_NormalPriority=3,ii.unstable_Profiling=null,ii.unstable_UserBlockingPriority=2,ii.unstable_cancelCallback=function(oe){oe.callback=null},ii.unstable_forceFrameRate=function(oe){0>oe||125<oe?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):_=0<oe?Math.floor(1000/oe):5},ii.unstable_getCurrentPriorityLevel=function(){return M},ii.unstable_next=function(oe){switch(M){case 1:case 2:case 3:var pe=3;break;default:pe=M}var ke=M;M=pe;try{return oe()}finally{M=ke}},ii.unstable_requestPaint=function(){X=!0},ii.unstable_runWithPriority=function(oe,pe){switch(oe){case 1:case 2:case 3:case 4:case 5:break;default:oe=3}var ke=M;M=oe;try{return pe()}finally{M=ke}},ii.unstable_scheduleCallback=function(oe,pe,ke){var Xe=ii.unstable_now();switch(typeof ke==="object"&&ke!==null?(ke=ke.delay,ke=typeof ke==="number"&&0<ke?Xe+ke:Xe):ke=Xe,oe){case 1:var vt=-1;break;case 2:vt=250;break;case 5:vt=1073741823;break;case 4:vt=1e4;break;default:vt=5000}return vt=ke+vt,oe={id:C++,callback:pe,priorityLevel:oe,startTime:ke,expirationTime:vt,sortIndex:-1},ke>Xe?(oe.sortIndex=ke,u(w,oe),i(k)===null&&oe===i(w)&&(V?(K(te),te=-1):V=!0,S(m,ke-Xe))):(oe.sortIndex=vt,u(k,oe),U||N||(U=!0,j||(j=!0,ve()))),oe},ii.unstable_shouldYield=v,ii.unstable_wrapCallback=function(oe){var pe=M;return function(){var ke=M;M=pe;try{return oe.apply(this,arguments)}finally{M=ke}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var ht=Gs(function(pA,cm){(function(){function r(y,q){Object.defineProperty(d.prototype,y,{get:function(){console.warn("%s(...) is deprecated in plain JavaScript React classes. %s",q[0],q[1])}})}function u(y){if(y===null||typeof y!=="object")return null;return y=ye&&y[ye]||y["@@iterator"],typeof y==="function"?y:null}function i(y,q){y=(y=y.constructor)&&(y.displayName||y.name)||"ReactClass";var le=y+"."+q;F[le]||(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.",q,y),F[le]=!0)}function d(y,q,le){this.props=y,this.context=q,this.refs=Ue,this.updater=le||Pe}function f(){}function b(y,q,le){this.props=y,this.context=q,this.refs=Ue,this.updater=le||Pe}function m(){}function v(y){return""+y}function S(y){try{v(y);var q=!1}catch(Ce){q=!0}if(q){q=console;var le=q.error,de=typeof Symbol==="function"&&Symbol.toStringTag&&y[Symbol.toStringTag]||y.constructor.name||"Object";return le.call(q,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",de),v(y)}}function x(y){if(y==null)return null;if(typeof y==="function")return y.$$typeof===dt?null:y.displayName||y.name||null;if(typeof y==="string")return y;switch(y){case vt:return"Fragment";case Ne:return"Profiler";case W:return"StrictMode";case Me:return"Suspense";case ge:return"SuspenseList";case ae: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 Xe:return"Portal";case ut:return y.displayName||"Context";case Lt:return(y._context.displayName||"Context")+".Consumer";case it:var q=y.render;return y=y.displayName,y||(y=q.displayName||q.name||"",y=y!==""?"ForwardRef("+y+")":"ForwardRef"),y;case G:return q=y.displayName||null,q!==null?q:x(y.type)||"Memo";case Ie:q=y._payload,y=y._init;try{return x(y(q))}catch(le){}}return null}function h(y){if(y===vt)return"<>";if(typeof y==="object"&&y!==null&&y.$$typeof===Ie)return"<...>";try{var q=x(y);return q?"<"+q+">":"<...>"}catch(le){return"<...>"}}function L(){var y=Ee.A;return y===null?null:y.getOwner()}function k(){return Error("react-stack-top-frame")}function w(y){if(sn.call(y,"key")){var q=Object.getOwnPropertyDescriptor(y,"key").get;if(q&&q.isReactWarning)return!1}return y.key!==void 0}function C(y,q){function le(){Xd||(Xd=!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)",q))}le.isReactWarning=!0,Object.defineProperty(y,"key",{get:le,configurable:!0})}function A(){var y=x(this.type);return Jr[y]||(Jr[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 M(y,q,le,de,Ce,Qe){var Ze=le.ref;return y={$$typeof:ke,type:y,key:q,props:le,_owner:de},(Ze!==void 0?Ze:null)!==null?Object.defineProperty(y,"ref",{enumerable:!1,get:A}):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:Ce}),Object.defineProperty(y,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Qe}),Object.freeze&&(Object.freeze(y.props),Object.freeze(y)),y}function N(y,q){return q=M(y.type,q,y.props,y._owner,y._debugStack,y._debugTask),y._store&&(q._store.validated=y._store.validated),q}function U(y){V(y)?y._store&&(y._store.validated=1):typeof y==="object"&&y!==null&&y.$$typeof===Ie&&(y._payload.status==="fulfilled"?V(y._payload.value)&&y._payload.value._store&&(y._payload.value._store.validated=1):y._store&&(y._store.validated=1))}function V(y){return typeof y==="object"&&y!==null&&y.$$typeof===ke}function X(y){var q={"=":"=0",":":"=2"};return"$"+y.replace(/[=:]/g,function(le){return q[le]})}function ie(y,q){return typeof y==="object"&&y!==null&&y.key!=null?(S(y.key),X(""+y.key)):q.toString(36)}function K(y){switch(y.status){case"fulfilled":return y.value;case"rejected":throw y.reason;default:switch(typeof y.status==="string"?y.then(m,m):(y.status="pending",y.then(function(q){y.status==="pending"&&(y.status="fulfilled",y.value=q)},function(q){y.status==="pending"&&(y.status="rejected",y.reason=q)})),y.status){case"fulfilled":return y.value;case"rejected":throw y.reason}}throw y}function ee(y,q,le,de,Ce){var Qe=typeof y;if(Qe==="undefined"||Qe==="boolean")y=null;var Ze=!1;if(y===null)Ze=!0;else switch(Qe){case"bigint":case"string":case"number":Ze=!0;break;case"object":switch(y.$$typeof){case ke:case Xe:Ze=!0;break;case Ie:return Ze=y._init,ee(Ze(y._payload),q,le,de,Ce)}}if(Ze){Ze=y,Ce=Ce(Ze);var wt=de===""?"."+ie(Ze,0):de;return Je(Ce)?(le="",wt!=null&&(le=wt.replace(su,"$&/")+"/"),ee(Ce,q,le,"",function(Za){return Za})):Ce!=null&&(V(Ce)&&(Ce.key!=null&&(Ze&&Ze.key===Ce.key||S(Ce.key)),le=N(Ce,le+(Ce.key==null||Ze&&Ze.key===Ce.key?"":(""+Ce.key).replace(su,"$&/")+"/")+wt),de!==""&&Ze!=null&&V(Ze)&&Ze.key==null&&Ze._store&&!Ze._store.validated&&(le._store.validated=2),Ce=le),q.push(Ce)),1}if(Ze=0,wt=de===""?".":de+":",Je(y))for(var Oe=0;Oe<y.length;Oe++)de=y[Oe],Qe=wt+ie(de,Oe),Ze+=ee(de,q,le,Qe,Ce);else if(Oe=u(y),typeof Oe==="function")for(Oe===y.entries&&(ru||console.warn("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),ru=!0),y=Oe.call(y),Oe=0;!(de=y.next()).done;)de=de.value,Qe=wt+ie(de,Oe++),Ze+=ee(de,q,le,Qe,Ce);else if(Qe==="object"){if(typeof y.then==="function")return ee(K(y),q,le,de,Ce);throw q=String(y),Error("Objects are not valid as a React child (found: "+(q==="[object Object]"?"object with keys {"+Object.keys(y).join(", ")+"}":q)+"). If you meant to render a collection of children, use an array instead.")}return Ze}function j(y,q,le){if(y==null)return y;var de=[],Ce=0;return ee(y,de,"","",function(Qe){return q.call(le,Qe,Ce++)}),de}function te(y){if(y._status===-1){var q=y._ioInfo;q!=null&&(q.start=q.end=performance.now()),q=y._result;var le=q();if(le.then(function(Ce){if(y._status===0||y._status===-1){y._status=1,y._result=Ce;var Qe=y._ioInfo;Qe!=null&&(Qe.end=performance.now()),le.status===void 0&&(le.status="fulfilled",le.value=Ce)}},function(Ce){if(y._status===0||y._status===-1){y._status=2,y._result=Ce;var Qe=y._ioInfo;Qe!=null&&(Qe.end=performance.now()),le.status===void 0&&(le.status="rejected",le.reason=Ce)}}),q=y._ioInfo,q!=null){q.value=le;var de=le.displayName;typeof de==="string"&&(q.name=de)}y._status===-1&&(y._status=0,y._result=le)}if(y._status===1)return q=y._result,q===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'))
|
|
5
5
|
|
|
6
|
-
Did you accidentally put curly braces around the import?`,
|
|
6
|
+
Did you accidentally put curly braces around the import?`,q),"default"in q||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
|
|
7
7
|
|
|
8
8
|
Your code should look like:
|
|
9
|
-
const MyComponent = lazy(() => import('./MyComponent'))`,
|
|
9
|
+
const MyComponent = lazy(() => import('./MyComponent'))`,q),q.default;throw y._result}function _(){var y=Ee.H;return y===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:
|
|
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(){De.asyncTransitions--}function Be(y){if(ts===null)try{var O=("require"+Math.random()).slice(0,7);ts=(um&&um[O]).call(um,"timers").setImmediate}catch(ie){ts=function(me){Xc===!1&&(Xc=!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 ts(y)}function Ce(y){return 1<y.length&&typeof AggregateError==="function"?AggregateError(y):y[0]}function qe(y,O){O!==as-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. "),as=O}function te(y,O,ie){var me=De.actQueue;if(me!==null)if(me.length!==0)try{ve(me),Be(function(){return te(y,O,ie)});return}catch(we){De.thrownErrors.push(we)}else De.actQueue=null;0<De.thrownErrors.length?(me=Ce(De.thrownErrors),De.thrownErrors.length=0,ie(me)):O(y)}function ve(y){if(!ls){ls=!0;var O=0;try{for(;O<y.length;O++){var ie=y[O];do{De.didUsePromise=!1;var me=ie(!1);if(me!==null){if(De.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),De.thrownErrors.push(we)}finally{ls=!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"),Ue=Symbol.for("react.lazy"),Mt=Symbol.for("react.activity"),pa=Symbol.iterator,re={},ma={isMounted:function(){return!1},enqueueForceUpdate:function(y){i(y,"forceUpdate")},enqueueReplaceState:function(y){i(y,"replaceState")},enqueueSetState:function(y){i(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(Jn in Yt)Yt.hasOwnProperty(Jn)&&r(Jn,Yt[Jn]);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"),De={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},sl=Object.prototype.hasOwnProperty,_t=console.createTask?console.createTask:function(){return null};Yt={react_stack_bottom_frame:function(y){return y()}};var $c,Ml,Jr={},es=Yt.react_stack_bottom_frame.bind(Yt,C)(),qm=_t(h(C)),ru=!1,su=/\/+/g,Kn=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)},Xc=!1,ts=null,as=0,os=!1,ls=!1,Mi=typeof queueMicrotask==="function"?function(y){queueMicrotask(function(){return queueMicrotask(y)})}:Be;Yt=Object.freeze({__proto__:null,c:function(y){return X().useMemoCache(y)}});var Jn={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}};KM.Activity=Mt,KM.Children=Jn,KM.Component=c,KM.Fragment=ae,KM.Profiler=ue,KM.PureComponent=v,KM.StrictMode=P,KM.Suspense=Lt,KM.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=De,KM.__COMPILER_RUNTIME=Yt,KM.act=function(y){var O=De.actQueue,ie=as;as++;var me=De.actQueue=O!==null?O:[],we=!1;try{var $e=y()}catch(Ee){De.thrownErrors.push(Ee)}if(0<De.thrownErrors.length)throw qe(O,ie),y=Ce(De.thrownErrors),De.thrownErrors.length=0,y;if($e!==null&&typeof $e==="object"&&typeof $e.then==="function"){var Xe=$e;return Mi(function(){we||os||(os=!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(Ee,Za){we=!0,Xe.then(function(Lo){if(qe(O,ie),ie===0){try{ve(me),Be(function(){return te(Lo,Ee,Za)})}catch(Ai){De.thrownErrors.push(Ai)}if(0<De.thrownErrors.length){var er=Ce(De.thrownErrors);De.thrownErrors.length=0,Za(er)}}else Ee(Lo)},function(Lo){qe(O,ie),0<De.thrownErrors.length?(Lo=Ce(De.thrownErrors),De.thrownErrors.length=0,Za(Lo)):Za(Lo)})}}}var yt=$e;if(qe(O,ie),ie===0&&(ve(me),me.length!==0&&Mi(function(){we||os||(os=!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(() => ...)"))}),De.actQueue=null),0<De.thrownErrors.length)throw y=Ce(De.thrownErrors),De.thrownErrors.length=0,y;return{then:function(Ee,Za){we=!0,ie===0?(De.actQueue=me,Be(function(){return te(yt,Ee,Za)})):Ee(yt)}}},KM.cache=function(y){return function(){return y.apply(null,arguments)}},KM.cacheSignal=function(){return null},KM.captureOwnerStack=function(){var y=De.getCurrentStack;return y===null?null:y()},KM.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(sl.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)!sl.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 Ee=0;Ee<yt;Ee++)Xe[Ee]=arguments[Ee+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},KM.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},KM.createElement=function(y,O,ie){for(var me=2;me<arguments.length;me++)F(arguments[me]);me={};var we=null;if(O!=null)for(Ee in Ml||!("__self"in O)||"key"in O||(Ml=!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)sl.call(O,Ee)&&Ee!=="key"&&Ee!=="__self"&&Ee!=="__source"&&(me[Ee]=O[Ee]);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(Ee in $e=y.defaultProps,$e)me[Ee]===void 0&&(me[Ee]=$e[Ee]);we&&L(me,typeof y==="function"?y.displayName||y.name||"Unknown":y);var Ee=1e4>De.recentlyCreatedOwnerStacks++;return _(y,we,me,x(),Ee?Error("react-stack-top-frame"):es,Ee?_t(h(y)):qm)},KM.createRef=function(){var y={current:null};return Object.seal(y),y},KM.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},KM.isValidElement=K,KM.lazy=function(y){y={_status:-1,_result:y};var O={$$typeof:Ue,_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},KM.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},KM.startTransition=function(y){var O=De.T,ie={};ie._updatedFibers=new Set,De.T=ie;try{var me=y(),we=De.S;we!==null&&we(ie,me),typeof me==="object"&&me!==null&&typeof me.then==="function"&&(De.asyncTransitions++,me.then(ge,ge),me.then(p,Kn))}catch($e){Kn($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),De.T=O}},KM.unstable_useCacheRefresh=function(){return X().useCacheRefresh()},KM.use=function(y){return X().use(y)},KM.useActionState=function(y,O,ie){return X().useActionState(y,O,ie)},KM.useCallback=function(y,O){return X().useCallback(y,O)},KM.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)},KM.useDebugValue=function(y,O){return X().useDebugValue(y,O)},KM.useDeferredValue=function(y,O){return X().useDeferredValue(y,O)},KM.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)},KM.useEffectEvent=function(y){return X().useEffectEvent(y)},KM.useId=function(){return X().useId()},KM.useImperativeHandle=function(y,O,ie){return X().useImperativeHandle(y,O,ie)},KM.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)},KM.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)},KM.useMemo=function(y,O){return X().useMemo(y,O)},KM.useOptimistic=function(y,O){return X().useOptimistic(y,O)},KM.useReducer=function(y,O,ie){return X().useReducer(y,O,ie)},KM.useRef=function(y){return X().useRef(y)},KM.useState=function(y){return X().useState(y)},KM.useSyncExternalStore=function(y,O,ie){return X().useSyncExternalStore(y,O,ie)},KM.useTransition=function(){return X().useTransition()},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 I1=Gs(function(JM){var mb=Y(ut());(function(){function r(){}function u(h){return""+h}function i(h,x,C){var R=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{u(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"),u(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 ce(){Ee.asyncTransitions--}function ve(y){if(ts===null)try{var q=("require"+Math.random()).slice(0,7);ts=(cm&&cm[q]).call(cm,"timers").setImmediate}catch(le){ts=function(de){Yd===!1&&(Yd=!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 Ce=new MessageChannel;Ce.port1.onmessage=de,Ce.port2.postMessage(void 0)}}return ts(y)}function Le(y){return 1<y.length&&typeof AggregateError==="function"?AggregateError(y):y[0]}function Be(y,q){q!==as-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. "),as=q}function oe(y,q,le){var de=Ee.actQueue;if(de!==null)if(de.length!==0)try{pe(de),ve(function(){return oe(y,q,le)});return}catch(Ce){Ee.thrownErrors.push(Ce)}else Ee.actQueue=null;0<Ee.thrownErrors.length?(de=Le(Ee.thrownErrors),Ee.thrownErrors.length=0,le(de)):q(y)}function pe(y){if(!ns){ns=!0;var q=0;try{for(;q<y.length;q++){var le=y[q];do{Ee.didUsePromise=!1;var de=le(!1);if(de!==null){if(Ee.didUsePromise){y[q]=le,y.splice(0,q);return}le=de}else break}while(1)}y.length=0}catch(Ce){y.splice(0,q+1),Ee.thrownErrors.push(Ce)}finally{ns=!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"),Xe=Symbol.for("react.portal"),vt=Symbol.for("react.fragment"),W=Symbol.for("react.strict_mode"),Ne=Symbol.for("react.profiler"),Lt=Symbol.for("react.consumer"),ut=Symbol.for("react.context"),it=Symbol.for("react.forward_ref"),Me=Symbol.for("react.suspense"),ge=Symbol.for("react.suspense_list"),G=Symbol.for("react.memo"),Ie=Symbol.for("react.lazy"),ae=Symbol.for("react.activity"),ye=Symbol.iterator,F={},Pe={isMounted:function(){return!1},enqueueForceUpdate:function(y){i(y,"forceUpdate")},enqueueReplaceState:function(y){i(y,"replaceState")},enqueueSetState:function(y){i(y,"setState")}},Ye=Object.assign,Ue={};Object.freeze(Ue),d.prototype.isReactComponent={},d.prototype.setState=function(y,q){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,q,"setState")},d.prototype.forceUpdate=function(y){this.updater.enqueueForceUpdate(this,y,"forceUpdate")};var ct={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(Kl in ct)ct.hasOwnProperty(Kl)&&r(Kl,ct[Kl]);f.prototype=d.prototype,ct=b.prototype=new f,ct.constructor=b,Ye(ct,d.prototype),ct.isPureReactComponent=!0;var Je=Array.isArray,dt=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},sn=Object.prototype.hasOwnProperty,jt=console.createTask?console.createTask:function(){return null};ct={react_stack_bottom_frame:function(y){return y()}};var Xd,An,Jr={},es=ct.react_stack_bottom_frame.bind(ct,k)(),zm=jt(h(k)),ru=!1,su=/\/+/g,Wl=typeof reportError==="function"?reportError:function(y){if(typeof window==="object"&&typeof window.ErrorEvent==="function"){var q=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(q))return}else if(typeof process==="object"&&typeof process.emit==="function"){process.emit("uncaughtException",y);return}console.error(y)},Yd=!1,ts=null,as=0,os=!1,ns=!1,Mi=typeof queueMicrotask==="function"?function(y){queueMicrotask(function(){return queueMicrotask(y)})}:ve;ct=Object.freeze({__proto__:null,c:function(y){return _().useMemoCache(y)}});var Kl={map:j,forEach:function(y,q,le){j(y,function(){q.apply(this,arguments)},le)},count:function(y){var q=0;return j(y,function(){q++}),q},toArray:function(y){return j(y,function(q){return q})||[]},only:function(y){if(!V(y))throw Error("React.Children.only expected to receive a single React element child.");return y}};pA.Activity=ae,pA.Children=Kl,pA.Component=d,pA.Fragment=vt,pA.Profiler=Ne,pA.PureComponent=b,pA.StrictMode=W,pA.Suspense=Me,pA.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=Ee,pA.__COMPILER_RUNTIME=ct,pA.act=function(y){var q=Ee.actQueue,le=as;as++;var de=Ee.actQueue=q!==null?q:[],Ce=!1;try{var Qe=y()}catch(Oe){Ee.thrownErrors.push(Oe)}if(0<Ee.thrownErrors.length)throw Be(q,le),y=Le(Ee.thrownErrors),Ee.thrownErrors.length=0,y;if(Qe!==null&&typeof Qe==="object"&&typeof Qe.then==="function"){var Ze=Qe;return Mi(function(){Ce||os||(os=!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){Ce=!0,Ze.then(function(Lo){if(Be(q,le),le===0){try{pe(de),ve(function(){return oe(Lo,Oe,Za)})}catch(Ai){Ee.thrownErrors.push(Ai)}if(0<Ee.thrownErrors.length){var Jl=Le(Ee.thrownErrors);Ee.thrownErrors.length=0,Za(Jl)}}else Oe(Lo)},function(Lo){Be(q,le),0<Ee.thrownErrors.length?(Lo=Le(Ee.thrownErrors),Ee.thrownErrors.length=0,Za(Lo)):Za(Lo)})}}}var wt=Qe;if(Be(q,le),le===0&&(pe(de),de.length!==0&&Mi(function(){Ce||os||(os=!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=Le(Ee.thrownErrors),Ee.thrownErrors.length=0,y;return{then:function(Oe,Za){Ce=!0,le===0?(Ee.actQueue=de,ve(function(){return oe(wt,Oe,Za)})):Oe(wt)}}},pA.cache=function(y){return function(){return y.apply(null,arguments)}},pA.cacheSignal=function(){return null},pA.captureOwnerStack=function(){var y=Ee.getCurrentStack;return y===null?null:y()},pA.cloneElement=function(y,q,le){if(y===null||y===void 0)throw Error("The argument must be a React element, but you passed "+y+".");var de=Ye({},y.props),{key:Ce,_owner:Qe}=y;if(q!=null){var Ze;e:{if(sn.call(q,"ref")&&(Ze=Object.getOwnPropertyDescriptor(q,"ref").get)&&Ze.isReactWarning){Ze=!1;break e}Ze=q.ref!==void 0}Ze&&(Qe=L()),w(q)&&(S(q.key),Ce=""+q.key);for(wt in q)!sn.call(q,wt)||wt==="key"||wt==="__self"||wt==="__source"||wt==="ref"&&q.ref===void 0||(de[wt]=q[wt])}var wt=arguments.length-2;if(wt===1)de.children=le;else if(1<wt){Ze=Array(wt);for(var Oe=0;Oe<wt;Oe++)Ze[Oe]=arguments[Oe+2];de.children=Ze}de=M(y.type,Ce,de,Qe,y._debugStack,y._debugTask);for(Ce=2;Ce<arguments.length;Ce++)U(arguments[Ce]);return de},pA.createContext=function(y){return y={$$typeof:ut,_currentValue:y,_currentValue2:y,_threadCount:0,Provider:null,Consumer:null},y.Provider=y,y.Consumer={$$typeof:Lt,_context:y},y._currentRenderer=null,y._currentRenderer2=null,y},pA.createElement=function(y,q,le){for(var de=2;de<arguments.length;de++)U(arguments[de]);de={};var Ce=null;if(q!=null)for(Oe in An||!("__self"in q)||"key"in q||(An=!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")),w(q)&&(S(q.key),Ce=""+q.key),q)sn.call(q,Oe)&&Oe!=="key"&&Oe!=="__self"&&Oe!=="__source"&&(de[Oe]=q[Oe]);var Qe=arguments.length-2;if(Qe===1)de.children=le;else if(1<Qe){for(var Ze=Array(Qe),wt=0;wt<Qe;wt++)Ze[wt]=arguments[wt+2];Object.freeze&&Object.freeze(Ze),de.children=Ze}if(y&&y.defaultProps)for(Oe in Qe=y.defaultProps,Qe)de[Oe]===void 0&&(de[Oe]=Qe[Oe]);Ce&&C(de,typeof y==="function"?y.displayName||y.name||"Unknown":y);var Oe=1e4>Ee.recentlyCreatedOwnerStacks++;return M(y,Ce,de,L(),Oe?Error("react-stack-top-frame"):es,Oe?jt(h(y)):zm)},pA.createRef=function(){var y={current:null};return Object.seal(y),y},pA.forwardRef=function(y){y!=null&&y.$$typeof===G?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 q={$$typeof:it,render:y},le;return Object.defineProperty(q,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(de){le=de,y.name||y.displayName||(Object.defineProperty(y,"name",{value:de}),y.displayName=de)}}),q},pA.isValidElement=V,pA.lazy=function(y){y={_status:-1,_result:y};var q={$$typeof:Ie,_payload:y,_init:te},le={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=le,q._debugInfo=[{awaited:le}],q},pA.memo=function(y,q){y==null&&console.error("memo: The first argument must be a component. Instead received: %s",y===null?"null":typeof y),q={$$typeof:G,type:y,compare:q===void 0?null:q};var le;return Object.defineProperty(q,"displayName",{enumerable:!1,configurable:!0,get:function(){return le},set:function(de){le=de,y.name||y.displayName||(Object.defineProperty(y,"name",{value:de}),y.displayName=de)}}),q},pA.startTransition=function(y){var q=Ee.T,le={};le._updatedFibers=new Set,Ee.T=le;try{var de=y(),Ce=Ee.S;Ce!==null&&Ce(le,de),typeof de==="object"&&de!==null&&typeof de.then==="function"&&(Ee.asyncTransitions++,de.then(ce,ce),de.then(m,Wl))}catch(Qe){Wl(Qe)}finally{q===null&&le._updatedFibers&&(y=le._updatedFibers.size,le._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.")),q!==null&&le.types!==null&&(q.types!==null&&q.types!==le.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."),q.types=le.types),Ee.T=q}},pA.unstable_useCacheRefresh=function(){return _().useCacheRefresh()},pA.use=function(y){return _().use(y)},pA.useActionState=function(y,q,le){return _().useActionState(y,q,le)},pA.useCallback=function(y,q){return _().useCallback(y,q)},pA.useContext=function(y){var q=_();return y.$$typeof===Lt&&console.error("Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?"),q.useContext(y)},pA.useDebugValue=function(y,q){return _().useDebugValue(y,q)},pA.useDeferredValue=function(y,q){return _().useDeferredValue(y,q)},pA.useEffect=function(y,q){return y==null&&console.warn("React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?"),_().useEffect(y,q)},pA.useEffectEvent=function(y){return _().useEffectEvent(y)},pA.useId=function(){return _().useId()},pA.useImperativeHandle=function(y,q,le){return _().useImperativeHandle(y,q,le)},pA.useInsertionEffect=function(y,q){return y==null&&console.warn("React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?"),_().useInsertionEffect(y,q)},pA.useLayoutEffect=function(y,q){return y==null&&console.warn("React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?"),_().useLayoutEffect(y,q)},pA.useMemo=function(y,q){return _().useMemo(y,q)},pA.useOptimistic=function(y,q){return _().useOptimistic(y,q)},pA.useReducer=function(y,q,le){return _().useReducer(y,q,le)},pA.useRef=function(y){return _().useRef(y)},pA.useState=function(y){return _().useState(y)},pA.useSyncExternalStore=function(y,q,le){return _().useSyncExternalStore(y,q,le)},pA.useTransition=function(){return _().useTransition()},pA.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var q1=Gs(function(mA){var bb=Z(ht());(function(){function r(){}function u(h){return""+h}function i(h,L,k){var w=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{u(w);var C=!1}catch(A){C=!0}return C&&(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&&w[Symbol.toStringTag]||w.constructor.name||"Object"),u(w)),{$$typeof:S,key:w==null?null:""+w,children:h,containerInfo:L,implementation:k}}function d(h,L){if(h==="font")return"";if(typeof L==="string")return L==="use-credentials"?L:""}function f(h){return h===null?"`null`":h===void 0?"`undefined`":h===""?"an empty string":'something with type "'+typeof h+'"'}function b(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 m(){var h=x.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=mb.__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"),JM.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=b,JM.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 i(h,x,null,C)},JM.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.")}},JM.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))},JM.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)},JM.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})}},JM.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)},JM.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})}},JM.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))},JM.requestFormReset=function(h){b.d.r(h)},JM.unstable_batchedUpdates=function(h,x){return h(x)},JM.useFormState=function(h,x,C){return p().useFormState(h,x,C)},JM.useFormStatus=function(){return p().useHostTransitionStatus()},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 sc=Gs(function(eA,im){im.exports=Y(I1())});var R1=Gs(function(tA){var bt=Y(T1()),di=Y(ut()),hb=Y(sc());(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function u(e,t,a,o){if(a>=t.length)return o;var l=t[a],n=Ra(e)?e.slice():rt({},e);return n[l]=u(e[l],t,a+1,o),n}function i(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 BT(e,t,a,o)}function R(e,t){e.context===Sr&&(qg(e.current,2,t,e,null,null),Su())}function L(e,t){if(jo!==null){var a=t.staleFamilies;t=t.updatedFamilies,ad(),A0(e.current,t,a),Su()}}function D(e){jo=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=Ux&&e[Ux]||e["@@iterator"],typeof e==="function"?e:null}function Z(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===aR?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Iu:return"Fragment";case _g:return"Profiler";case ap:return"StrictMode";case Fg:return"Suspense";case Gg:return"SuspenseList";case Vg: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 Tu:return"Portal";case jl:return e.displayName||"Context";case Hg:return(e._context.displayName||"Context")+".Consumer";case fd:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case op:return t=e.displayName||null,t!==null?t:Z(e.type)||"Memo";case Do: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===ap?"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 Be(e,t){0>In?console.error("Unexpected pop."):(t!==Xg[In]&&console.error("Unexpected Fiber popped."),e.current=$g[In],$g[In]=null,Xg[In]=null,In--)}function Ce(e,t,a){In++,$g[In]=e.current,Xg[In]=a,e.current=t}function qe(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(mr,t,e),Ce(pd,e,e),Ce(pr,null,e);var a=t.nodeType;switch(a){case 9:case 11:a=a===9?"#document":"#fragment",t=(t=t.documentElement)?(t=t.namespaceURI)?sx(t):Hn:Hn;break;default:if(a=t.tagName,t=t.namespaceURI)t=sx(t),t=ux(t,a);else switch(a){case"svg":t=si;break;case"math":t=tm;break;default:t=Hn}}a=a.toLowerCase(),a=t0(null,a),a={context:t,ancestorInfo:a},Be(pr,e),Ce(pr,a,e)}function ve(e){Be(pr,e),Be(pd,e),Be(mr,e)}function ke(){return qe(pr.current)}function je(e){e.memoizedState!==null&&Ce(lp,e,e);var t=qe(pr.current),a=e.type,o=ux(t.context,a);a=t0(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Ce(pd,e,e),Ce(pr,o,e))}function ae(e){pd.current===e&&(Be(pr,e),Be(pd,e)),lp.current===e&&(Be(lp,e),lc._currentValue=Fs)}function P(){}function ue(){if(md===0){Px=console.log,zx=console.info,_x=console.warn,Hx=console.error,Fx=console.group,Gx=console.groupCollapsed,Vx=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})}md++}function se(){if(md--,md===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:rt({},e,{value:Px}),info:rt({},e,{value:zx}),warn:rt({},e,{value:_x}),error:rt({},e,{value:Hx}),group:rt({},e,{value:Fx}),groupCollapsed:rt({},e,{value:Gx}),groupEnd:rt({},e,{value:Vx})})}0>md&&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 v={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"),x=bb.__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"),mA.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=v,mA.createPortal=function(h,L){var k=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!L||L.nodeType!==1&&L.nodeType!==9&&L.nodeType!==11)throw Error("Target container is not a DOM element.");return i(h,L,null,k)},mA.flushSync=function(h){var L=x.T,k=v.p;try{if(x.T=null,v.p=2,h)return h()}finally{x.T=L,v.p=k,v.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.")}},mA.preconnect=function(h,L){typeof h==="string"&&h?L!=null&&typeof L!=="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.",b(L)):L!=null&&typeof L.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(L.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"&&(L?(L=L.crossOrigin,L=typeof L==="string"?L==="use-credentials"?L:"":void 0):L=null,v.d.C(h,L))},mA.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 L=arguments[1];typeof L==="object"&&L.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`.",b(L)):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`.",b(L))}typeof h==="string"&&v.d.D(h)},mA.preinit=function(h,L){if(typeof h==="string"&&h?L==null||typeof L!=="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.",b(L)):L.as!=="style"&&L.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".',b(L.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"&&L&&typeof L.as==="string"){var k=L.as,w=d(k,L.crossOrigin),C=typeof L.integrity==="string"?L.integrity:void 0,A=typeof L.fetchPriority==="string"?L.fetchPriority:void 0;k==="style"?v.d.S(h,typeof L.precedence==="string"?L.precedence:void 0,{crossOrigin:w,integrity:C,fetchPriority:A}):k==="script"&&v.d.X(h,{crossOrigin:w,integrity:C,fetchPriority:A,nonce:typeof L.nonce==="string"?L.nonce:void 0})}},mA.preinitModule=function(h,L){var k="";if(typeof h==="string"&&h||(k+=" The `href` argument encountered was "+f(h)+"."),L!==void 0&&typeof L!=="object"?k+=" The `options` argument encountered was "+f(L)+".":L&&("as"in L)&&L.as!=="script"&&(k+=" The `as` option encountered was "+b(L.as)+"."),k)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",k);else switch(k=L&&typeof L.as==="string"?L.as:"script",k){case"script":break;default:k=b(k),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)',k,h)}if(typeof h==="string")if(typeof L==="object"&&L!==null){if(L.as==null||L.as==="script")k=d(L.as,L.crossOrigin),v.d.M(h,{crossOrigin:k,integrity:typeof L.integrity==="string"?L.integrity:void 0,nonce:typeof L.nonce==="string"?L.nonce:void 0})}else L==null&&v.d.M(h)},mA.preload=function(h,L){var k="";if(typeof h==="string"&&h||(k+=" The `href` argument encountered was "+f(h)+"."),L==null||typeof L!=="object"?k+=" The `options` argument encountered was "+f(L)+".":typeof L.as==="string"&&L.as||(k+=" The `as` option encountered was "+f(L.as)+"."),k&&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',k),typeof h==="string"&&typeof L==="object"&&L!==null&&typeof L.as==="string"){k=L.as;var w=d(k,L.crossOrigin);v.d.L(h,k,{crossOrigin:w,integrity:typeof L.integrity==="string"?L.integrity:void 0,nonce:typeof L.nonce==="string"?L.nonce:void 0,type:typeof L.type==="string"?L.type:void 0,fetchPriority:typeof L.fetchPriority==="string"?L.fetchPriority:void 0,referrerPolicy:typeof L.referrerPolicy==="string"?L.referrerPolicy:void 0,imageSrcSet:typeof L.imageSrcSet==="string"?L.imageSrcSet:void 0,imageSizes:typeof L.imageSizes==="string"?L.imageSizes:void 0,media:typeof L.media==="string"?L.media:void 0})}},mA.preloadModule=function(h,L){var k="";typeof h==="string"&&h||(k+=" The `href` argument encountered was "+f(h)+"."),L!==void 0&&typeof L!=="object"?k+=" The `options` argument encountered was "+f(L)+".":L&&("as"in L)&&typeof L.as!=="string"&&(k+=" The `as` option encountered was "+f(L.as)+"."),k&&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',k),typeof h==="string"&&(L?(k=d(L.as,L.crossOrigin),v.d.m(h,{as:typeof L.as==="string"&&L.as!=="script"?L.as:void 0,crossOrigin:k,integrity:typeof L.integrity==="string"?L.integrity:void 0})):v.d.m(h))},mA.requestFormReset=function(h){v.d.r(h)},mA.unstable_batchedUpdates=function(h,L){return h(L)},mA.useFormState=function(h,L,k){return m().useFormState(h,L,k)},mA.useFormStatus=function(){return m().useHostTransitionStatus()},mA.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var sd=Gs(function(hA,dm){dm.exports=Z(q1())});var B1=Gs(function(gA){var Tt=Z(O1()),ci=Z(ht()),vb=Z(sd());(function(){function r(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function u(e,t,a,o){if(a>=t.length)return o;var n=t[a],l=Ma(e)?e.slice():pt({},e);return l[n]=u(e[n],t,a+1,o),l}function i(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 d(e,t,a,0)}}function d(e,t,a,o){var n=t[o],l=Ma(e)?e.slice():pt({},e);return o+1===t.length?(l[a[o]]=l[n],Ma(l)?l.splice(n,1):delete l[n]):l[n]=d(e[n],t,a,o+1),l}function f(e,t,a){var o=t[a],n=Ma(e)?e.slice():pt({},e);if(a+1===t.length)return Ma(n)?n.splice(o,1):delete n[o],n;return n[o]=f(e[o],t,a+1),n}function b(){return!1}function m(){return null}function v(){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 x(){}function h(){}function L(e){var t=[];return e.forEach(function(a){t.push(a)}),t.sort().join(", ")}function k(e,t,a,o){return new ZT(e,t,a,o)}function w(e,t){e.context===vr&&(zg(e.current,2,t,e,null,null),Su())}function C(e,t){if(Xo!==null){var a=t.staleFamilies;t=t.updatedFamilies,ac(),U0(e.current,t,a),Su()}}function A(e){Xo=e}function M(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function N(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 U(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 V(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 X(e){if(N(e)!==e)throw Error("Unable to find node on an unmounted component.")}function ie(e){var t=e.alternate;if(!t){if(t=N(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 n=a.return;if(n===null)break;var l=n.alternate;if(l===null){if(o=n.return,o!==null){a=o;continue}break}if(n.child===l.child){for(l=n.child;l;){if(l===a)return X(n),e;if(l===o)return X(n),t;l=l.sibling}throw Error("Unable to find node on an unmounted component.")}if(a.return!==o.return)a=n,o=l;else{for(var s=!1,c=n.child;c;){if(c===a){s=!0,a=n,o=l;break}if(c===o){s=!0,o=n,a=l;break}c=c.sibling}if(!s){for(c=l.child;c;){if(c===a){s=!0,a=l,o=n;break}if(c===o){s=!0,o=l,a=n;break}c=c.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 K(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=K(e),t!==null)return t;e=e.sibling}return null}function ee(e){if(e===null||typeof e!=="object")return null;return e=Vx&&e[Vx]||e["@@iterator"],typeof e==="function"?e:null}function j(e){if(e==null)return null;if(typeof e==="function")return e.$$typeof===yR?null:e.displayName||e.name||null;if(typeof e==="string")return e;switch(e){case Iu:return"Fragment";case Vg:return"Profiler";case np:return"StrictMode";case jg:return"Suspense";case Xg:return"SuspenseList";case Yg: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 Tu:return"Portal";case Yn:return e.displayName||"Context";case $g:return(e._context.displayName||"Context")+".Consumer";case fc:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lp:return t=e.displayName||null,t!==null?t:j(e.type)||"Memo";case Do:t=e._payload,e=e._init;try{return j(e(t))}catch(a){}}return null}function te(e){return typeof e.tag==="number"?_(e):typeof e.name==="string"?e.name:null}function _(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 j(t);case 8:return t===np?"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 _(e.return)}return null}function ce(e){return{current:e}}function ve(e,t){0>Il?console.error("Unexpected pop."):(t!==Zg[Il]&&console.error("Unexpected Fiber popped."),e.current=Qg[Il],Qg[Il]=null,Zg[Il]=null,Il--)}function Le(e,t,a){Il++,Qg[Il]=e.current,Zg[Il]=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 oe(e,t){Le(pr,t,e),Le(pc,e,e),Le(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)?mx(t):Hl:Hl;break;default:if(a=t.tagName,t=t.namespaceURI)t=mx(t),t=hx(t,a);else switch(a){case"svg":t=si;break;case"math":t=om;break;default:t=Hl}}a=a.toLowerCase(),a=u0(null,a),a={context:t,ancestorInfo:a},ve(fr,e),Le(fr,a,e)}function pe(e){ve(fr,e),ve(pc,e),ve(pr,e)}function ke(){return Be(fr.current)}function Xe(e){e.memoizedState!==null&&Le(rp,e,e);var t=Be(fr.current),a=e.type,o=hx(t.context,a);a=u0(t.ancestorInfo,a),o={context:o,ancestorInfo:a},t!==o&&(Le(pc,e,e),Le(fr,o,e))}function vt(e){pc.current===e&&(ve(fr,e),ve(pc,e)),rp.current===e&&(ve(rp,e),nd._currentValue=Fs)}function W(){}function Ne(){if(mc===0){$x=console.log,jx=console.info,Xx=console.warn,Yx=console.error,Qx=console.group,Zx=console.groupCollapsed,Wx=console.groupEnd;var e={configurable:!0,enumerable:!0,value:W,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}mc++}function Lt(){if(mc--,mc===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:pt({},e,{value:$x}),info:pt({},e,{value:jx}),warn:pt({},e,{value:Xx}),error:pt({},e,{value:Yx}),group:pt({},e,{value:Qx}),groupCollapsed:pt({},e,{value:Zx}),groupEnd:pt({},e,{value:Wx})})}0>mc&&console.error("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}function ut(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
|
|
20
|
+
`,t)),t!==-1)e=e.slice(0,t);else return"";return e}function it(e){if(Wg===void 0)try{throw Error()}catch(a){var t=a.stack.trim().match(/\n( *(at )?)/);Wg=t&&t[1]||"",Kx=-1<a.stack.indexOf(`
|
|
21
21
|
at`)?" (<anonymous>)":-1<a.stack.indexOf("@")?"@unknown:0:0":""}return`
|
|
22
|
-
`+
|
|
23
|
-
`),
|
|
24
|
-
`);for(s=
|
|
25
|
-
`+g[
|
|
26
|
-
`),
|
|
27
|
-
`+
|
|
28
|
-
Error generating stack: `+
|
|
29
|
-
`+
|
|
30
|
-
`+
|
|
31
|
-
`+
|
|
32
|
-
Error generating stack: `+
|
|
33
|
-
`+d.stack}return s}function re(e,t,a,o,l,n,s){var d=Eo;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,Yl=!1,Eo=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 De(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 sl(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{Mu=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 iR==="function"&&dR(e),Ka&&typeof Ka.setStrictMode==="function")try{Ka.setStrictMode(Mu,e)}catch(t){Ql||(Ql=!0,console.error("React instrumentation encountered an error: %o",t))}}function $c(e){return e>>>=0,e===0?32:31-(cR(e)/fR|0)|0}function Ml(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 Jr(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=Ml(o):(s&=d,s!==0?l=Ml(s):a||(a=d&~e,a!==0&&(l=Ml(a))))):(d=o&~n,d!==0?l=Ml(d):s!==0?l=Ml(s):a||(a=o&~e,a!==0&&(l=Ml(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 es(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function qm(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 ru(){var e=sp;return sp<<=1,(sp&62914560)===0&&(sp=4194304),e}function su(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Kn(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Xc(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-oo(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&&ts(e,o,0),n!==0&&l===0&&e.tag!==0&&(e.suspendedLanes|=n&~(s&~t))}function ts(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-oo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function as(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-oo(a),l=1<<o;l&t|e[o]&t&&(e[o]|=t),a&=~l}}function os(e,t){var a=t&-t;return a=(a&42)!==0?1:ls(a),(a&(e.suspendedLanes|t))!==0?0:a}function ls(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 Mi(e,t,a){if(Zl)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-oo(a),l=1<<o;e[o].add(t),a&=~l}}function Jn(e,t){if(Zl)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var l=31-oo(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,Oo!==0&&Oo<e?fl!==0&&fl<e?(e&134217727)!==0?Wl:up:fl:Oo}function O(){var e=kt.p;if(e!==0)return e;return e=window.event,e===void 0?Wl:Ax(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[lo],delete e[ey],delete e[pR],delete e[mR]}function we(e){var t=e[Xa];if(t)return t;for(var a=e.parentNode;a;){if(t=a[gr]||a[Xa]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=gx(e);e!==null;){if(a=e[Xa])return a;e=gx(e)}return t}e=a,a=e.parentNode}return null}function $e(e){if(e=e[Xa]||e[gr]){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[Xx];return t||(t=e[Xx]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Ee(e){e[hd]=!0}function Za(e,t){Lo(e,t),Lo(e+"Capture",t)}function Lo(e,t){Ss[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ss[e]=t;var a=e.toLowerCase();ty[a]=e,e==="onDoubleClick"&&(ty.ondblclick=e);for(e=0;e<t.length;e++)jx.add(t[e])}function er(e,t){hR[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 Ai(e){if(cl.call(Qx,e))return!0;if(cl.call(Yx,e))return!1;if(gR.test(e))return Qx[e]=!0;return Yx[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function _b(e,t,a){if(Ai(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 jc(e,t,a){if(Ai(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 Yc(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 bn(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 Fo(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return De(e),e;default:return""}}function Hb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function fT(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){De(s),a=""+s,n.call(this,s)}}),Object.defineProperty(e,t,{enumerable:o.enumerable}),{getValue:function(){return a},setValue:function(s){De(s),a=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Bm(e){if(!e._valueTracker){var t=Hb(e)?"checked":"value";e._valueTracker=fT(e,t,""+e[t])}}function Fb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=Hb(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Qc(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 Go(e){return e.replace(yR,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Gb(e,t){t.checked===void 0||t.defaultChecked===void 0||Wx||(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),Wx=!0),t.value===void 0||t.defaultValue===void 0||Zx||(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),Zx=!0)}function Nm(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=""+Fo(t)}else e.value!==""+Fo(t)&&(e.value=""+Fo(t));else s!=="submit"&&s!=="reset"||e.removeAttribute("value");t!=null?Um(e,s,Fo(t)):a!=null?Um(e,s,Fo(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=""+Fo(d)):e.removeAttribute("name")}function Vb(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)){Bm(e);return}a=a!=null?""+Fo(a):"",t=t!=null?""+Fo(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),Bm(e)}function Um(e,t,a){t==="number"&&Qc(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function $b(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?di.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||Jx||(Jx=!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||eL||(eL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||Kx||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),Kx=!0)}function Xb(){var e=Mt();return e?`
|
|
34
|
-
|
|
35
|
-
Check the render method of \``+e+"`.":""}function uu(e,t,a,o){if(e=e.options,t){t={};for(var
|
|
36
|
-
`;if(typeof t==="string"){for(var
|
|
37
|
-
`+
|
|
22
|
+
`+Wg+e+Kx}function Me(e,t){if(!e||Kg)return"";var a=Jg.get(e);if(a!==void 0)return a;Kg=!0,a=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var o=null;o=H.H,H.H=null,Ne();try{var n={DetermineComponentFrameRoot:function(){try{if(t){var I=function(){throw Error()};if(Object.defineProperty(I.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==="object"&&Reflect.construct){try{Reflect.construct(I,[])}catch(re){var z=re}Reflect.construct(e,[],I)}else{try{I.call()}catch(re){z=re}e.call(I.prototype)}}else{try{throw Error()}catch(re){z=re}(I=e())&&typeof I.catch==="function"&&I.catch(function(){})}}catch(re){if(re&&z&&typeof re.stack==="string")return[re.stack,z.stack]}return[null,null]}};n.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var l=Object.getOwnPropertyDescriptor(n.DetermineComponentFrameRoot,"name");l&&l.configurable&&Object.defineProperty(n.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var s=n.DetermineComponentFrameRoot(),c=s[0],p=s[1];if(c&&p){var g=c.split(`
|
|
23
|
+
`),E=p.split(`
|
|
24
|
+
`);for(s=l=0;l<g.length&&!g[l].includes("DetermineComponentFrameRoot");)l++;for(;s<E.length&&!E[s].includes("DetermineComponentFrameRoot");)s++;if(l===g.length||s===E.length)for(l=g.length-1,s=E.length-1;1<=l&&0<=s&&g[l]!==E[s];)s--;for(;1<=l&&0<=s;l--,s--)if(g[l]!==E[s]){if(l!==1||s!==1)do if(l--,s--,0>s||g[l]!==E[s]){var O=`
|
|
25
|
+
`+g[l].replace(" at new "," at ");return e.displayName&&O.includes("<anonymous>")&&(O=O.replace("<anonymous>",e.displayName)),typeof e==="function"&&Jg.set(e,O),O}while(1<=l&&0<=s);break}}}finally{Kg=!1,H.H=o,Lt(),Error.prepareStackTrace=a}return g=(g=e?e.displayName||e.name:"")?it(g):"",typeof e==="function"&&Jg.set(e,g),g}function ge(e,t){switch(e.tag){case 26:case 27:case 5:return it(e.type);case 16:return it("Lazy");case 13:return e.child!==t&&t!==null?it("Suspense Fallback"):it("Suspense");case 19:return it("SuspenseList");case 0:case 15:return Me(e.type,!1);case 11:return Me(e.type.render,!1);case 1:return Me(e.type,!0);case 31:return it("Activity");default:return""}}function G(e){try{var t="",a=null;do{t+=ge(e,a);var o=e._debugInfo;if(o)for(var n=o.length-1;0<=n;n--){var l=o[n];if(typeof l.name==="string"){var s=t;e:{var{name:c,env:p,debugLocation:g}=l;if(g!=null){var E=ut(g),O=E.lastIndexOf(`
|
|
26
|
+
`),I=O===-1?E:E.slice(O+1);if(I.indexOf(c)!==-1){var z=`
|
|
27
|
+
`+I;break e}}z=it(c+(p?" ["+p+"]":""))}t=s+z}}a=e,e=e.return}while(e);return t}catch(re){return`
|
|
28
|
+
Error generating stack: `+re.message+`
|
|
29
|
+
`+re.stack}}function Ie(e){return(e=e?e.displayName||e.name:"")?it(e):""}function ae(){if(Eo===null)return null;var e=Eo._debugOwner;return e!=null?te(e):null}function ye(){if(Eo===null)return"";var e=Eo;try{var t="";switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=it(e.type);break;case 13:t+=it("Suspense");break;case 19:t+=it("SuspenseList");break;case 31:t+=it("Activity");break;case 30:case 0:case 15:case 1:e._debugOwner||t!==""||(t+=Ie(e.type));break;case 11:e._debugOwner||t!==""||(t+=Ie(e.type.render))}for(;e;)if(typeof e.tag==="number"){var a=e;e=a._debugOwner;var o=a._debugStack;if(e&&o){var n=ut(o);n!==""&&(t+=`
|
|
30
|
+
`+n)}}else if(e.debugStack!=null){var l=e.debugStack;(e=e.owner)&&l&&(t+=`
|
|
31
|
+
`+ut(l))}else break;var s=t}catch(c){s=`
|
|
32
|
+
Error generating stack: `+c.message+`
|
|
33
|
+
`+c.stack}return s}function F(e,t,a,o,n,l,s){var c=Eo;Pe(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,a,o,n,l,s)):t(a,o,n,l,s)}finally{Pe(c)}throw Error("runWithFiberInDEV should never be called in production. This is a bug in React.")}function Pe(e){H.getCurrentStack=e===null?null:ye,Qn=!1,Eo=e}function Ye(e){return typeof Symbol==="function"&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||"Object"}function Ue(e){try{return ct(e),!1}catch(t){return!0}}function ct(e){return""+e}function Je(e,t){if(Ue(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,Ye(e)),ct(e)}function dt(e,t){if(Ue(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,Ye(e)),ct(e)}function Ee(e){if(Ue(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.",Ye(e)),ct(e)}function sn(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{Mu=t.inject(e),Ka=t}catch(a){console.error("React instrumentation encountered an error: %o.",a)}return t.checkDCE?!0:!1}function jt(e){if(typeof kR==="function"&&wR(e),Ka&&typeof Ka.setStrictMode==="function")try{Ka.setStrictMode(Mu,e)}catch(t){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",t))}}function Xd(e){return e>>>=0,e===0?32:31-(TR(e)/IR|0)|0}function An(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 Jr(e,t,a){var o=e.pendingLanes;if(o===0)return 0;var n=0,l=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var c=o&134217727;return c!==0?(o=c&~l,o!==0?n=An(o):(s&=c,s!==0?n=An(s):a||(a=c&~e,a!==0&&(n=An(a))))):(c=o&~l,c!==0?n=An(c):s!==0?n=An(s):a||(a=o&~e,a!==0&&(n=An(a)))),n===0?0:t!==0&&t!==n&&(t&l)===0&&(l=n&-n,a=t&-t,l>=a||l===32&&(a&4194048)!==0)?t:n}function es(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function zm(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 ru(){var e=ip;return ip<<=1,(ip&62914560)===0&&(ip=4194304),e}function su(e){for(var t=[],a=0;31>a;a++)t.push(e);return t}function Wl(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Yd(e,t,a,o,n,l){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:c,expirationTimes:p,hiddenUpdates:g}=e;for(a=s&~a;0<a;){var E=31-oo(a),O=1<<E;c[E]=0,p[E]=-1;var I=g[E];if(I!==null)for(g[E]=null,E=0;E<I.length;E++){var z=I[E];z!==null&&(z.lane&=-536870913)}a&=~O}o!==0&&ts(e,o,0),l!==0&&n===0&&e.tag!==0&&(e.suspendedLanes|=l&~(s&~t))}function ts(e,t,a){e.pendingLanes|=t,e.suspendedLanes&=~t;var o=31-oo(t);e.entangledLanes|=t,e.entanglements[o]=e.entanglements[o]|1073741824|a&261930}function as(e,t){var a=e.entangledLanes|=t;for(e=e.entanglements;a;){var o=31-oo(a),n=1<<o;n&t|e[o]&t&&(e[o]|=t),a&=~n}}function os(e,t){var a=t&-t;return a=(a&42)!==0?1:ns(a),(a&(e.suspendedLanes|t))!==0?0:a}function ns(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 Mi(e,t,a){if(Wn)for(e=e.pendingUpdatersLaneMap;0<a;){var o=31-oo(a),n=1<<o;e[o].add(t),a&=~n}}function Kl(e,t){if(Wn)for(var a=e.pendingUpdatersLaneMap,o=e.memoizedUpdaters;0<t;){var n=31-oo(t);e=1<<n,n=a[n],0<n.size&&(n.forEach(function(l){var s=l.alternate;s!==null&&o.has(s)||o.add(l)}),n.clear()),t&=~e}}function y(e){return e&=-e,Oo!==0&&Oo<e?pn!==0&&pn<e?(e&134217727)!==0?Kn:cp:pn:Oo}function q(){var e=qt.p;if(e!==0)return e;return e=window.event,e===void 0?Kn:Ux(e.type)}function le(e,t){var a=qt.p;try{return qt.p=e,t()}finally{qt.p=a}}function de(e){delete e[ja],delete e[no],delete e[ny],delete e[RR],delete e[MR]}function Ce(e){var t=e[ja];if(t)return t;for(var a=e.parentNode;a;){if(t=a[hr]||a[ja]){if(a=t.alternate,t.child!==null||a!==null&&a.child!==null)for(e=Cx(e);e!==null;){if(a=e[ja])return a;e=Cx(e)}return t}e=a,a=e.parentNode}return null}function Qe(e){if(e=e[ja]||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 Ze(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error("getNodeFromInstance: Invalid argument.")}function wt(e){var t=e[Jx];return t||(t=e[Jx]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function Oe(e){e[hc]=!0}function Za(e,t){Lo(e,t),Lo(e+"Capture",t)}function Lo(e,t){Ss[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),Ss[e]=t;var a=e.toLowerCase();ly[a]=e,e==="onDoubleClick"&&(ly.ondblclick=e);for(e=0;e<t.length;e++)eL.add(t[e])}function Jl(e,t){AR[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 Ai(e){if(fn.call(aL,e))return!0;if(fn.call(tL,e))return!1;if(DR.test(e))return aL[e]=!0;return tL[e]=!0,console.error("Invalid attribute name: `%s`",e),!1}function Xb(e,t,a){if(Ai(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 Je(a,t),e===""+a?a:e}}function Qd(e,t,a){if(Ai(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}}Je(a,t),e.setAttribute(t,""+a)}}function Zd(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}Je(a,t),e.setAttribute(t,""+a)}}function bl(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}Je(o,a),e.setAttributeNS(t,a,""+o)}}function Fo(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 Yb(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function IT(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:n,set:l}=o;return Object.defineProperty(e,t,{configurable:!0,get:function(){return n.call(this)},set:function(s){Ee(s),a=""+s,l.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 Pm(e){if(!e._valueTracker){var t=Yb(e)?"checked":"value";e._valueTracker=IT(e,t,""+e[t])}}function Qb(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var a=t.getValue(),o="";return e&&(o=Yb(e)?e.checked?"true":"false":e.value),e=o,e!==a?(t.setValue(e),!0):!1}function Wd(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 Go(e){return e.replace(ER,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Zb(e,t){t.checked===void 0||t.defaultChecked===void 0||nL||(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",ae()||"A component",t.type),nL=!0),t.value===void 0||t.defaultValue===void 0||oL||(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",ae()||"A component",t.type),oL=!0)}function _m(e,t,a,o,n,l,s,c){if(e.name="",s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"?(Je(s,"type"),e.type=s):e.removeAttribute("type"),t!=null)if(s==="number"){if(t===0&&e.value===""||e.value!=t)e.value=""+Fo(t)}else e.value!==""+Fo(t)&&(e.value=""+Fo(t));else s!=="submit"&&s!=="reset"||e.removeAttribute("value");t!=null?Hm(e,s,Fo(t)):a!=null?Hm(e,s,Fo(a)):o!=null&&e.removeAttribute("value"),n==null&&l!=null&&(e.defaultChecked=!!l),n!=null&&(e.checked=n&&typeof n!=="function"&&typeof n!=="symbol"),c!=null&&typeof c!=="function"&&typeof c!=="symbol"&&typeof c!=="boolean"?(Je(c,"name"),e.name=""+Fo(c)):e.removeAttribute("name")}function Wb(e,t,a,o,n,l,s,c){if(l!=null&&typeof l!=="function"&&typeof l!=="symbol"&&typeof l!=="boolean"&&(Je(l,"type"),e.type=l),t!=null||a!=null){if(!(l!=="submit"&&l!=="reset"||t!==void 0&&t!==null)){Pm(e);return}a=a!=null?""+Fo(a):"",t=t!=null?""+Fo(t):a,c||t===e.value||(e.value=t),e.defaultValue=t}o=o!=null?o:n,o=typeof o!=="function"&&typeof o!=="symbol"&&!!o,e.checked=c?e.checked:!!o,e.defaultChecked=!!o,s!=null&&typeof s!=="function"&&typeof s!=="symbol"&&typeof s!=="boolean"&&(Je(s,"name"),e.name=s),Pm(e)}function Hm(e,t,a){t==="number"&&Wd(e.ownerDocument)===e||e.defaultValue===""+a||(e.defaultValue=""+a)}function Kb(e,t){t.value==null&&(typeof t.children==="object"&&t.children!==null?ci.Children.forEach(t.children,function(a){a==null||typeof a==="string"||typeof a==="number"||typeof a==="bigint"||rL||(rL=!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||sL||(sL=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||lL||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),lL=!0)}function Jb(){var e=ae();return e?`
|
|
34
|
+
|
|
35
|
+
Check the render method of \``+e+"`.":""}function uu(e,t,a,o){if(e=e.options,t){t={};for(var n=0;n<a.length;n++)t["$"+a[n]]=!0;for(a=0;a<e.length;a++)n=t.hasOwnProperty("$"+e[a].value),e[a].selected!==n&&(e[a].selected=n),n&&o&&(e[a].defaultSelected=!0)}else{a=""+Fo(a),t=null;for(n=0;n<e.length;n++){if(e[n].value===a){e[n].selected=!0,o&&(e[n].defaultSelected=!0);return}t!==null||e[n].disabled||(t=e[n])}t!==null&&(t.selected=!0)}}function e0(e,t){for(e=0;e<iL.length;e++){var a=iL[e];if(t[a]!=null){var o=Ma(t[a]);t.multiple&&!o?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",a,Jb()):!t.multiple&&o&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",a,Jb())}}t.value===void 0||t.defaultValue===void 0||uL||(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"),uL=!0)}function t0(e,t){t.value===void 0||t.defaultValue===void 0||cL||(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",ae()||"A component"),cL=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function a0(e,t,a){if(t!=null&&(t=""+Fo(t),t!==e.value&&(e.value=t),a==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=a!=null?""+Fo(a):""}function o0(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(Ma(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=Fo(t),e.defaultValue=a,o=e.textContent,o===a&&o!==""&&o!==null&&(e.value=o),Pm(e)}function n0(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?n0(e.children[0],t):e}function Co(e){return" "+" ".repeat(e)}function iu(e){return"+ "+" ".repeat(e)}function ls(e){return"- "+" ".repeat(e)}function l0(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 Di(e,t){return dL.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 Kd(e,t,a){var o=120-2*a;if(t===null)return iu(a)+Di(e,o)+`
|
|
36
|
+
`;if(typeof t==="string"){for(var n=0;n<t.length&&n<e.length&&t.charCodeAt(n)===e.charCodeAt(n);n++);return n>o-8&&10<n&&(e="..."+e.slice(n-8),t="..."+t.slice(n-8)),iu(a)+Di(e,o)+`
|
|
37
|
+
`+ls(a)+Di(t,o)+`
|
|
38
38
|
`}return Co(a)+Di(e,o)+`
|
|
39
|
-
`}function
|
|
40
|
-
`:0<o?a+"<"+e+" "+
|
|
39
|
+
`}function Fm(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(t,a){return a})}function Ei(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(Ma(e))return"[...]";if(e.$$typeof===Xn)return(t=j(e.type))?"<"+t+">":"<...>";var a=Fm(e);if(a==="Object"){a="",t-=2;for(var o in e)if(e.hasOwnProperty(o)){var n=JSON.stringify(o);if(n!=='"'+o+'"'&&(o=n),t-=o.length-2,n=Ei(e[o],15>t?t:15),t-=n.length,0>t){a+=a===""?"...":", ...";break}a+=(a===""?"":",")+o+":"+n}return"{"+a+"}"}return a;case"function":return(t=e.displayName||e.name)?"function "+t:"function";default:return String(e)}}function cu(e,t){return typeof e!=="string"||dL.test(e)?"{"+Ei(e,t-2)+"}":e.length>t-2?5>t?'"..."':'"'+e.slice(0,t-5)+'..."':'"'+e+'"'}function Gm(e,t,a){var o=120-a.length-e.length,n=[],l;for(l in t)if(t.hasOwnProperty(l)&&l!=="children"){var s=cu(t[l],120-a.length-l.length-1);o-=l.length+s.length+2,n.push(l+"="+s)}return n.length===0?a+"<"+e+`>
|
|
40
|
+
`:0<o?a+"<"+e+" "+n.join(" ")+`>
|
|
41
41
|
`:a+"<"+e+`
|
|
42
|
-
`+a+" "+
|
|
42
|
+
`+a+" "+n.join(`
|
|
43
43
|
`+a+" ")+`
|
|
44
44
|
`+a+`>
|
|
45
|
-
`}function
|
|
46
|
-
`,o+=
|
|
47
|
-
`):o+=iu(a)+
|
|
48
|
-
`}for(var
|
|
49
|
-
`);return o}function
|
|
50
|
-
`+
|
|
51
|
-
`:(
|
|
52
|
-
`,
|
|
53
|
-
`)}else
|
|
54
|
-
`}
|
|
55
|
-
`}}),
|
|
45
|
+
`}function RT(e,t,a){var o="",n=pt({},t),l;for(l in e)if(e.hasOwnProperty(l)){delete n[l];var s=120-2*a-l.length-2,c=Ei(e[l],s);t.hasOwnProperty(l)?(s=Ei(t[l],s),o+=iu(a)+l+": "+c+`
|
|
46
|
+
`,o+=ls(a)+l+": "+s+`
|
|
47
|
+
`):o+=iu(a)+l+": "+c+`
|
|
48
|
+
`}for(var p in n)n.hasOwnProperty(p)&&(e=Ei(n[p],120-2*a-p.length-2),o+=ls(a)+p+": "+e+`
|
|
49
|
+
`);return o}function MT(e,t,a,o){var n="",l=new Map;for(g in a)a.hasOwnProperty(g)&&l.set(g.toLowerCase(),g);if(l.size===1&&l.has("children"))n+=Gm(e,t,Co(o));else{for(var s in t)if(t.hasOwnProperty(s)&&s!=="children"){var c=120-2*(o+1)-s.length-1,p=l.get(s.toLowerCase());if(p!==void 0){l.delete(s.toLowerCase());var g=t[s];p=a[p];var E=cu(g,c);c=cu(p,c),typeof g==="object"&&g!==null&&typeof p==="object"&&p!==null&&Fm(g)==="Object"&&Fm(p)==="Object"&&(2<Object.keys(g).length||2<Object.keys(p).length||-1<E.indexOf("...")||-1<c.indexOf("..."))?n+=Co(o+1)+s+`={{
|
|
50
|
+
`+RT(g,p,o+2)+Co(o+1)+`}}
|
|
51
|
+
`:(n+=iu(o+1)+s+"="+E+`
|
|
52
|
+
`,n+=ls(o+1)+s+"="+c+`
|
|
53
|
+
`)}else n+=Co(o+1)+s+"="+cu(t[s],c)+`
|
|
54
|
+
`}l.forEach(function(O){if(O!=="children"){var I=120-2*(o+1)-O.length-1;n+=ls(o+1)+O+"="+cu(a[O],I)+`
|
|
55
|
+
`}}),n=n===""?Co(o)+"<"+e+`>
|
|
56
56
|
`:Co(o)+"<"+e+`
|
|
57
|
-
`+
|
|
58
|
-
`}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(
|
|
59
|
-
`}function
|
|
60
|
-
`+
|
|
61
|
-
`,t++)}if(o="",
|
|
62
|
-
`,t++}else e.serverProps===null?(o=
|
|
63
|
-
`),
|
|
64
|
-
`):g+
|
|
65
|
-
|
|
66
|
-
`+
|
|
67
|
-
This will cause a hydration error.%s`,s,o,a,
|
|
68
|
-
This will cause a hydration error.%s`,s,o,
|
|
69
|
-
See this log for the ancestor stack trace.`,o,s)})),!1}function
|
|
57
|
+
`+n+Co(o)+`>
|
|
58
|
+
`}if(e=a.children,t=t.children,typeof e==="string"||typeof e==="number"||typeof e==="bigint"){if(l="",typeof t==="string"||typeof t==="number"||typeof t==="bigint")l=""+t;n+=Kd(l,""+e,o+1)}else if(typeof t==="string"||typeof t==="number"||typeof t==="bigint")n=e==null?n+Kd(""+t,null,o+1):n+Kd(""+t,void 0,o+1);return n}function r0(e,t){var a=l0(e);if(a===null){a="";for(e=e.child;e;)a+=r0(e,t),e=e.sibling;return a}return Co(t)+"<"+a+`>
|
|
59
|
+
`}function Vm(e,t){var a=n0(e,t);if(a!==e&&(e.children.length!==1||e.children[0]!==a))return Co(t)+`...
|
|
60
|
+
`+Vm(a,t+1);a="";var o=e.fiber._debugInfo;if(o)for(var n=0;n<o.length;n++){var l=o[n].name;typeof l==="string"&&(a+=Co(t)+"<"+l+`>
|
|
61
|
+
`,t++)}if(o="",n=e.fiber.pendingProps,e.fiber.tag===6)o=Kd(n,e.serverProps,t),t++;else if(l=l0(e.fiber),l!==null)if(e.serverProps===void 0){o=t;var s=120-2*o-l.length-2,c="";for(g in n)if(n.hasOwnProperty(g)&&g!=="children"){var p=cu(n[g],15);if(s-=g.length+p.length+2,0>s){c+=" ...";break}c+=" "+g+"="+p}o=Co(o)+"<"+l+c+`>
|
|
62
|
+
`,t++}else e.serverProps===null?(o=Gm(l,n,iu(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=MT(l,n,e.serverProps,t),t++);var g="";n=e.fiber.child;for(l=0;n&&l<e.children.length;)s=e.children[l],s.fiber===n?(g+=Vm(s,t),l++):g+=r0(n,t),n=n.sibling;n&&0<e.children.length&&(g+=Co(t)+`...
|
|
63
|
+
`),n=e.serverTail,e.serverProps===null&&t--;for(e=0;e<n.length;e++)l=n[e],g=typeof l==="string"?g+(ls(t)+Di(l,120-2*t)+`
|
|
64
|
+
`):g+Gm(l.type,l.props,ls(t));return a+o+g}function $m(e){try{return`
|
|
65
|
+
|
|
66
|
+
`+Vm(e,0)}catch(t){return""}}function s0(e,t,a){for(var o=t,n=null,l=0;o;)o===e&&(l=0),n={fiber:o,children:n!==null?[n]:[],serverProps:o===t?a:o===e?null:void 0,serverTail:[],distanceFromLeaf:l},l++,o=o.return;return n!==null?$m(n).replaceAll(/^[+-]/gm,">"):""}function u0(e,t){var a=pt({},e||pL),o={tag:t};if(fL.indexOf(t)!==-1&&(a.aTagInScope=null,a.buttonTagInScope=null,a.nobrTagInScope=null),qR.indexOf(t)!==-1&&(a.pTagInButtonScope=null),OR.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 i0(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 AT(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 c0(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 jm(e,t){t=t||pL;var a=t.current;if(t=(a=i0(e,a&&a.tag,t.implicitRootScope)?null:a)?null:AT(e,t),t=a||t,!t)return!0;var o=t.tag;if(t=String(!!a)+"|"+e+"|"+o,dp[t])return!1;dp[t]=!0;var n=(t=Eo)?c0(t.return,o):null,l=t!==null&&n!==null?s0(n,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
|
+
This will cause a hydration error.%s`,s,o,a,l)):console.error(`In HTML, %s cannot be a descendant of <%s>.
|
|
68
|
+
This will cause a hydration error.%s`,s,o,l),t&&(e=t.return,n===null||e===null||n===e&&e._debugOwner===t._debugOwner||F(n,function(){console.error(`<%s> cannot contain a nested %s.
|
|
69
|
+
See this log for the ancestor stack trace.`,o,s)})),!1}function Jd(e,t,a){if(a||i0("#text",t,!1))return!0;if(a="#text|"+t,dp[a])return!1;dp[a]=!0;var o=(a=Eo)?c0(a,t):null;return a=a!==null&&o!==null?s0(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 Oi(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function gT(e){return e.replace(CR,function(t,a){return a.toUpperCase()})}function l0(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?Au.hasOwnProperty(t)&&Au[t]||(Au[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,gT(t.replace(LR,"ms-")))):xR.test(t)?Au.hasOwnProperty(t)&&Au[t]||(Au[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!iL.test(a)||oy.hasOwnProperty(a)&&oy[a]||(oy[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(iL,""))),typeof a==="number"&&(isNaN(a)?dL||(dL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||cL||(cL=!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||fL.has(t)?t==="float"?e.cssFloat=a:(Et(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function n0(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=ay[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=ay[d]||[d],n=0;n<l.length;n++)o[l[n]]=d;d={};for(var m in t)for(l=ay[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&&l0(e,T,g)}else for(o in t)t.hasOwnProperty(o)&&l0(e,o,t[o])}function qi(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 r0(e){return kR.get(e)||e}function yT(e,t){if(cl.call(Eu,t)&&Eu[t])return!0;if(TR.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=pL.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Eu[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Eu[t]=!0}if(wR.test(t)){if(e=t.toLowerCase(),e=pL.hasOwnProperty(e)?e:null,e==null)return Eu[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Eu[t]=!0)}return!0}function bT(e,t){var a=[],o;for(o in t)yT(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 vT(e,t,a,o){if(cl.call(no,t)&&no[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."),no[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),no[t]=!0;if(hL.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),no[t]=!0}else if(hL.test(t))return IR.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),no[t]=!0;if(RR.test(t)||MR.test(t))return!0;if(l==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),no[t]=!0;if(l==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),no[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),no[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),no[t]=!0;if(cp.hasOwnProperty(l)){if(l=cp[l],l!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,l),no[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),no[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),no[t]=!0}case"function":case"symbol":return no[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),no[t]=!0}}return!0}function ST(e,t,a){var o=[],l;for(l in t)vT(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 Bi(e){return AR.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function vn(){}function Gm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function s0(e){var t=$e(e);if(t&&(e=t.stateNode)){var a=e[lo]||null;e:switch(e=t.stateNode,t.type){case"input":if(Nm(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="'+Go(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var l=o[lo]||null;if(!l)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Nm(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&&Fb(o)}break e;case"textarea":Qb(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&uu(e,!!a.multiple,t,!1)}}}function u0(e,t,a){if(ly)return e(t,a);ly=!0;try{var o=e(t);return o}finally{if(ly=!1,Ou!==null||qu!==null){if(Su(),Ou&&(t=Ou,e=qu,qu=Ou=null,s0(t),e))for(t=0;t<e.length;t++)s0(e[t])}}}function Ni(e,t){var a=e.stateNode;if(a===null)return null;var o=a[lo]||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 i0(){if(fp)return fp;var e,t=ry,a=t.length,o,l="value"in yr?yr.value:yr.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 fp=l.slice(e,1<o?1-o:void 0)}function Kc(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 Jc(){return!0}function d0(){return!1}function po(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)?Jc:d0,this.isPropagationStopped=d0,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=Jc)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=Jc)},persist:function(){},isPersistent:Jc}),t}function xT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=GR[e])?!!t[e]:!1}function Vm(){return xT}function c0(e,t){switch(e){case"keyup":return tM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==vL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function f0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function LT(e,t){switch(e){case"compositionend":return f0(t);case"keypress":if(t.which!==xL)return null;return CL=!0,LL;case"textInput":return e=t.data,e===LL&&CL?null:e;default:return null}}function CT(e,t){if(Bu)return e==="compositionend"||!dy&&c0(e,t)?(e=i0(),fp=ry=yr=null,Bu=!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 SL&&t.locale!=="ko"?null:t.data;default:return null}}function p0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!oM[e.type]:t==="textarea"?!0:!1}function kT(e){if(!Kl)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 m0(e,t,a,o){Ou?qu?qu.push(o):qu=[o]:Ou=o,t=Xf(t,"onChange"),0<t.length&&(a=new pp("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function wT(e){ZS(e,0)}function ef(e){var t=Xe(e);if(Fb(t))return e}function h0(e,t){if(e==="change")return t}function g0(){xd&&(xd.detachEvent("onpropertychange",y0),Ld=xd=null)}function y0(e){if(e.propertyName==="value"&&ef(Ld)){var t=[];m0(t,Ld,e,Gm(e)),u0(wT,t)}}function TT(e,t,a){e==="focusin"?(g0(),xd=t,Ld=a,xd.attachEvent("onpropertychange",y0)):e==="focusout"&&g0()}function IT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ef(Ld)}function RT(e,t){if(e==="click")return ef(t)}function MT(e,t){if(e==="input"||e==="change")return ef(t)}function AT(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ui(e,t){if(ro(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(!cl.call(t,l)||!ro(e[l],t[l]))return!1}return!0}function b0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function v0(e,t){var a=b0(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=b0(a)}}function S0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?S0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function x0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Qc(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=Qc(e.document)}return t}function $m(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 L0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;fy||Nu==null||Nu!==Qc(o)||(o=Nu,("selectionStart"in o)&&$m(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}),Cd&&Ui(Cd,o)||(Cd=o,o=Xf(cy,"onSelect"),0<o.length&&(t=new pp("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Nu)))}function rs(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function ss(e){if(py[e])return py[e];if(!Uu[e])return e;var t=Uu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in wL)return py[e]=t[a];return e}function ul(e,t){AL.set(e,t),Za(t,[e])}function DT(e){for(var t=hp,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!==hp&&t!==by)return gy;t=by}else return gy;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==hp&&t!==yy)return gy;t=yy}}return t}function Xm(e,t,a,o){for(var l in e)cl.call(e,l)&&l[0]!=="_"&&Al(l,e[l],t,a,o)}function Al(e,t,a,o,l){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Xl){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&&Al("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):cl.call(t,g)&&g[0]!=="_"&&Al(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=DT(t),g===yy||g===hp){t=JSON.stringify(t);break}else if(g===by){a.push([l+" ".repeat(o)+e,""]);for(e=0;e<t.length;e++)n=t[e],Al(n[0],n[1],a,o+1,l);return}}if(n==="Promise"){if(t.status==="fulfilled"){if(n=a.length,Al(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,Al(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&&Xm(t,a,o+1,l);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===dM?"…":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 C0(e,t,a,o){var l=!0;for(s in e)s in t||(a.push([gp+" ".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([gp+l,"…"],[yp+l,"…"]);else{if(!(3<=o)){if(typeof s==="object"&&typeof d==="object"&&s!==null&&d!==null&&s.$$typeof===d.$$typeof)if(d.$$typeof===Xl){if(s.type===d.type&&s.key===d.key){s=Z(d.type)||"…",l=" ".repeat(o)+n,s="<"+s+" … />",a.push([gp+l,s],[yp+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=[OL+" ".repeat(o)+n,g==="[object Array]"?"Array":""],a.push(m),g=a.length,C0(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([OL+" ".repeat(o)+n,s+" Referentially unequal function closure. Consider memoization."]);continue}}Al(n,s,a,o,gp),Al(n,d,a,o,yp)}l=!1}}else a.push([yp+" ".repeat(o)+n,"…"]),l=!1;return l}function ko(e){it=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function Dl(e,t,a,o){Gt&&(vr.start=t,vr.end=a,Rn.color="warning",Rn.tooltipText=o,Rn.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,vr)):performance.measure(o,vr))}function tf(e,t,a){Dl(e,t,a,"Reconnect")}function af(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=[cM],g=C0(s.memoizedProps,g,m,0),1<m.length&&(g&&!br&&(s.lanes&l)===0&&100<e.actualDuration?(br=!0,m[0]=fM,Rn.color="warning",Rn.tooltipText=qL):(Rn.color=o,Rn.tooltipText=n),Rn.properties=m,vr.start=t,vr.end=a,d!=null?d.run(performance.measure.bind(performance,""+n,vr)):performance.measure(""+n,vr))):d!=null?d.run(console.timeStamp.bind(console,n,t,a,$o,void 0,o)):console.timeStamp(n,t,a,$o,void 0,o)}}function jm(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&&Al("key",e.key,s,0,""),e.memoizedProps!==null&&Xm(e.memoizedProps,s,0,""),n==null&&(n=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:$o,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 El(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&&Al("key",e.key,o,0,""),e.memoizedProps!==null&&Xm(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:$o,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,$o,void 0,l)):console.timeStamp(n,t,a,$o,void 0,l))}function ET(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 k0(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 w0(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 OT(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 Ym(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 qT(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 T0(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 Pi(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 of(){for(var e=Pu,t=vy=Pu=0;t<e;){var a=Xo[t];Xo[t++]=null;var o=Xo[t];Xo[t++]=null;var l=Xo[t];Xo[t++]=null;var n=Xo[t];if(Xo[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&&I0(a,l,n)}}function lf(e,t,a,o){Xo[Pu++]=e,Xo[Pu++]=t,Xo[Pu++]=a,Xo[Pu++]=o,vy|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Qm(e,t,a,o){return lf(e,t,a,o),nf(e)}function Wa(e,t){return lf(e,null,null,t),nf(e)}function I0(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&kd||(l=!0)),e=n,n=n.return;return e.tag===3?(n=e.stateNode,l&&t!==null&&(l=31-oo(a),e=n.hiddenUpdates,o=e[l],o===null?e[l]=[t]:o.push(t),t.lane=a|536870912),n):null}function nf(e){if(Wd>IM)throw Ns=Wd=0,Kd=Ky=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.");Ns>RM&&(Ns=0,Kd=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&&GS(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&GS(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function us(e){if(jo===null)return e;var t=jo(e);return t===void 0?e:t.current}function Zm(e){if(jo===null)return e;var t=jo(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=us(e.render),e.render!==t)?(t={$$typeof:fd,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function R0(e,t){if(jo===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===Do&&(o=!0);break;case 11:l===fd?o=!0:l===Do&&(o=!0);break;case 14:case 15:l===op?o=!0:l===Do&&(o=!0);break;default:return!1}return o&&(e=jo(a),e!==void 0&&e===jo(t))?!0:!1}function M0(e){jo!==null&&typeof WeakSet==="function"&&(zu===null&&(zu=new WeakSet),zu.add(e))}function A0(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(jo===null)throw Error("Expected resolveFamily to be set during hot reload.");var g=!1;if(o=!1,m!==null&&(m=jo(m),m!==void 0&&(a.has(m)?o=!0:t.has(m)&&(d===1?o=!0:g=!0))),zu!==null&&(zu.has(e)||l!==null&&zu.has(l))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||g)l=Wa(e,2),l!==null&&oa(l,e,2);if(n===null||o||A0(n,t,a),s===null)break;e=s}while(1)}function BT(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,BL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function Wm(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sn(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=us(e.type);break;case 1:a.type=us(e.type);break;case 11:a.type=Zm(e.type)}return a}function D0(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 Km(e,t,a,o,l,n){var s=0,d=e;if(typeof e==="function")Wm(e)&&(s=1),d=us(d);else if(typeof e==="string")s=ke(),s=VI(e,a,s)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Vg:return t=C(31,a,t,l),t.elementType=Vg,t.lanes=n,t;case Iu:return is(a.children,l,n,t);case ap:s=8,l|=Ja,l|=pl;break;case _g: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=_g,t.lanes=n,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Fg:return t=C(13,a,t,l),t.elementType=Fg,t.lanes=n,t;case Gg:return t=C(19,a,t,l),t.elementType=Gg,t.lanes=n,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case jl:s=10;break e;case Hg:s=9;break e;case fd:s=11,d=Zm(d);break e;case op:s=14;break e;case Do: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===Xl?(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 Oi(e,t){if(t){var a=e.firstChild;if(a&&a===e.lastChild&&a.nodeType===3){a.nodeValue=t;return}}e.textContent=t}function DT(e){return e.replace(zR,function(t,a){return a.toUpperCase()})}function d0(e,t,a){var o=t.indexOf("--")===0;o||(-1<t.indexOf("-")?Au.hasOwnProperty(t)&&Au[t]||(Au[t]=!0,console.error("Unsupported style property %s. Did you mean %s?",t,DT(t.replace(UR,"ms-")))):NR.test(t)?Au.hasOwnProperty(t)&&Au[t]||(Au[t]=!0,console.error("Unsupported vendor-prefixed style property %s. Did you mean %s?",t,t.charAt(0).toUpperCase()+t.slice(1))):!gL.test(a)||sy.hasOwnProperty(a)&&sy[a]||(sy[a]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,a.replace(gL,""))),typeof a==="number"&&(isNaN(a)?yL||(yL=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(a)||bL||(bL=!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||vL.has(t)?t==="float"?e.cssFloat=a:(dt(a,t),e[t]=(""+a).trim()):e[t]=a+"px"}function f0(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 n in a)if(a.hasOwnProperty(n)&&!t.hasOwnProperty(n))for(var l=ry[n]||[n],s=0;s<l.length;s++)o[l[s]]=n}for(var c in t)if(t.hasOwnProperty(c)&&(!a||a[c]!==t[c]))for(n=ry[c]||[c],l=0;l<n.length;l++)o[n[l]]=c;c={};for(var p in t)for(n=ry[p]||[p],l=0;l<n.length;l++)c[n[l]]=p;p={};for(var g in o)if(n=o[g],(l=c[g])&&n!==l&&(s=n+","+l,!p[s])){p[s]=!0,s=console;var E=t[n];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.",E==null||typeof E==="boolean"||E===""?"Removing":"Updating",n,l)}}for(var O in a)!a.hasOwnProperty(O)||t!=null&&t.hasOwnProperty(O)||(O.indexOf("--")===0?e.setProperty(O,""):O==="float"?e.cssFloat="":e[O]="");for(var I in t)g=t[I],t.hasOwnProperty(I)&&a[I]!==g&&d0(e,I,g)}else for(o in t)t.hasOwnProperty(o)&&d0(e,o,t[o])}function qi(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 p0(e){return PR.get(e)||e}function ET(e,t){if(fn.call(Eu,t)&&Eu[t])return!0;if(HR.test(t)){if(e="aria-"+t.slice(4).toLowerCase(),e=SL.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Eu[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Eu[t]=!0}if(_R.test(t)){if(e=t.toLowerCase(),e=SL.hasOwnProperty(e)?e:null,e==null)return Eu[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Eu[t]=!0)}return!0}function OT(e,t){var a=[],o;for(o in t)ET(e,o)||a.push(o);t=a.map(function(n){return"`"+n+"`"}).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 qT(e,t,a,o){if(fn.call(lo,t)&&lo[t])return!0;var n=t.toLowerCase();if(n==="onfocusin"||n==="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(n)?e[n]:null,o!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,o),lo[t]=!0;if(LL.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),lo[t]=!0}else if(LL.test(t))return FR.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),lo[t]=!0;if(GR.test(t)||VR.test(t))return!0;if(n==="innerhtml")return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),lo[t]=!0;if(n==="aria")return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),lo[t]=!0;if(n==="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(pp.hasOwnProperty(n)){if(n=pp[n],n!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,n),lo[t]=!0}else if(t!==n)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,n),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(n=t.toLowerCase().slice(0,5),n==="data-"||n==="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=[],n;for(n in t)qT(e,n,t[n],a)||o.push(n);t=o.map(function(l){return"`"+l+"`"}).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 Bi(e){return $R.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function vl(){}function Xm(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function m0(e){var t=Qe(e);if(t&&(e=t.stateNode)){var a=e[no]||null;e:switch(e=t.stateNode,t.type){case"input":if(_m(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;Je(t,"name"),a=a.querySelectorAll('input[name="'+Go(""+t)+'"][type="radio"]');for(t=0;t<a.length;t++){var o=a[t];if(o!==e&&o.form===e.form){var n=o[no]||null;if(!n)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");_m(o,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name)}}for(t=0;t<a.length;t++)o=a[t],o.form===e.form&&Qb(o)}break e;case"textarea":a0(e,a.value,a.defaultValue);break e;case"select":t=a.value,t!=null&&uu(e,!!a.multiple,t,!1)}}}function h0(e,t,a){if(uy)return e(t,a);uy=!0;try{var o=e(t);return o}finally{if(uy=!1,Ou!==null||qu!==null){if(Su(),Ou&&(t=Ou,e=qu,qu=Ou=null,m0(t),e))for(t=0;t<e.length;t++)m0(e[t])}}}function Ni(e,t){var a=e.stateNode;if(a===null)return null;var o=a[no]||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 g0(){if(mp)return mp;var e,t=cy,a=t.length,o,n="value"in gr?gr.value:gr.textContent,l=n.length;for(e=0;e<a&&t[e]===n[e];e++);var s=a-e;for(o=1;o<=s&&t[a-o]===n[l-o];o++);return mp=n.slice(e,1<o?1-o:void 0)}function ef(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 tf(){return!0}function y0(){return!1}function po(e){function t(a,o,n,l,s){this._reactName=a,this._targetInst=n,this.type=o,this.nativeEvent=l,this.target=s,this.currentTarget=null;for(var c in e)e.hasOwnProperty(c)&&(a=e[c],this[c]=a?a(l):l[c]);return this.isDefaultPrevented=(l.defaultPrevented!=null?l.defaultPrevented:l.returnValue===!1)?tf:y0,this.isPropagationStopped=y0,this}return pt(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=tf)},stopPropagation:function(){var a=this.nativeEvent;a&&(a.stopPropagation?a.stopPropagation():typeof a.cancelBubble!=="unknown"&&(a.cancelBubble=!0),this.isPropagationStopped=tf)},persist:function(){},isPersistent:tf}),t}function NT(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=nM[e])?!!t[e]:!1}function Ym(){return NT}function b0(e,t){switch(e){case"keyup":return gM.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==TL;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function v0(e){return e=e.detail,typeof e==="object"&&"data"in e?e.data:null}function UT(e,t){switch(e){case"compositionend":return v0(t);case"keypress":if(t.which!==RL)return null;return AL=!0,ML;case"textInput":return e=t.data,e===ML&&AL?null:e;default:return null}}function zT(e,t){if(Bu)return e==="compositionend"||!my&&b0(e,t)?(e=g0(),mp=cy=gr=null,Bu=!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 IL&&t.locale!=="ko"?null:t.data;default:return null}}function S0(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!bM[e.type]:t==="textarea"?!0:!1}function PT(e){if(!Jn)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 x0(e,t,a,o){Ou?qu?qu.push(o):qu=[o]:Ou=o,t=Yf(t,"onChange"),0<t.length&&(a=new hp("onChange","change",null,a,o),e.push({event:a,listeners:t}))}function _T(e){ox(e,0)}function af(e){var t=Ze(e);if(Qb(t))return e}function L0(e,t){if(e==="change")return t}function C0(){xc&&(xc.detachEvent("onpropertychange",k0),Lc=xc=null)}function k0(e){if(e.propertyName==="value"&&af(Lc)){var t=[];x0(t,Lc,e,Xm(e)),h0(_T,t)}}function HT(e,t,a){e==="focusin"?(C0(),xc=t,Lc=a,xc.attachEvent("onpropertychange",k0)):e==="focusout"&&C0()}function FT(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return af(Lc)}function GT(e,t){if(e==="click")return af(t)}function VT(e,t){if(e==="input"||e==="change")return af(t)}function $T(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}function Ui(e,t){if(ro(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 n=a[o];if(!fn.call(t,n)||!ro(e[n],t[n]))return!1}return!0}function w0(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function T0(e,t){var a=w0(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=w0(a)}}function I0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?I0(e,t.parentNode):("contains"in e)?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function R0(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Wd(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=Wd(e.document)}return t}function Qm(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 M0(e,t,a){var o=a.window===a?a.document:a.nodeType===9?a:a.ownerDocument;gy||Nu==null||Nu!==Wd(o)||(o=Nu,("selectionStart"in o)&&Qm(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}),Cc&&Ui(Cc,o)||(Cc=o,o=Yf(hy,"onSelect"),0<o.length&&(t=new hp("onSelect","select",null,t,a),e.push({event:t,listeners:o}),t.target=Nu)))}function rs(e,t){var a={};return a[e.toLowerCase()]=t.toLowerCase(),a["Webkit"+e]="webkit"+t,a["Moz"+e]="moz"+t,a}function ss(e){if(yy[e])return yy[e];if(!Uu[e])return e;var t=Uu[e],a;for(a in t)if(t.hasOwnProperty(a)&&a in EL)return yy[e]=t[a];return e}function un(e,t){UL.set(e,t),Za(t,[e])}function jT(e){for(var t=yp,a=0;a<e.length;a++){var o=e[a];if(typeof o==="object"&&o!==null)if(Ma(o)&&o.length===2&&typeof o[0]==="string"){if(t!==yp&&t!==Ly)return Sy;t=Ly}else return Sy;else{if(typeof o==="function"||typeof o==="string"&&50<o.length||t!==yp&&t!==xy)return Sy;t=xy}}return t}function Zm(e,t,a,o){for(var n in e)fn.call(e,n)&&n[0]!=="_"&&Dn(n,e[n],t,a,o)}function Dn(e,t,a,o,n){switch(typeof t){case"object":if(t===null){t="null";break}else{if(t.$$typeof===Xn){var l=j(t.type)||"…",s=t.key;t=t.props;var c=Object.keys(t),p=c.length;if(s==null&&p===0){t="<"+l+" />";break}if(3>o||p===1&&c[0]==="children"&&s==null){t="<"+l+" … />";break}a.push([n+" ".repeat(o)+e,"<"+l]),s!==null&&Dn("key",s,a,o+1,n),e=!1;for(var g in t)g==="children"?t.children!=null&&(!Ma(t.children)||0<t.children.length)&&(e=!0):fn.call(t,g)&&g[0]!=="_"&&Dn(g,t[g],a,o+1,n);a.push(["",e?">…</"+l+">":"/>"]);return}if(l=Object.prototype.toString.call(t),l=l.slice(8,l.length-1),l==="Array"){if(g=jT(t),g===xy||g===yp){t=JSON.stringify(t);break}else if(g===Ly){a.push([n+" ".repeat(o)+e,""]);for(e=0;e<t.length;e++)l=t[e],Dn(l[0],l[1],a,o+1,n);return}}if(l==="Promise"){if(t.status==="fulfilled"){if(l=a.length,Dn(e,t.value,a,o,n),a.length>l){a=a[l],a[1]="Promise<"+(a[1]||"Object")+">";return}}else if(t.status==="rejected"&&(l=a.length,Dn(e,t.reason,a,o,n),a.length>l)){a=a[l],a[1]="Rejected Promise<"+a[1]+">";return}a.push([" ".repeat(o)+e,"Promise"]);return}l==="Object"&&(g=Object.getPrototypeOf(t))&&typeof g.constructor==="function"&&(l=g.constructor.name),a.push([n+" ".repeat(o)+e,l==="Object"?3>o?"":"…":l]),3>o&&Zm(t,a,o+1,n);return}case"function":t=t.name===""?"() => {}":t.name+"() {}";break;case"string":t=t===wM?"…":JSON.stringify(t);break;case"undefined":t="undefined";break;case"boolean":t=t?"true":"false";break;default:t=String(t)}a.push([n+" ".repeat(o)+e,t])}function A0(e,t,a,o){var n=!0;for(s in e)s in t||(a.push([bp+" ".repeat(o)+s,"…"]),n=!1);for(var l in t)if(l in e){var s=e[l],c=t[l];if(s!==c){if(o===0&&l==="children")n=" ".repeat(o)+l,a.push([bp+n,"…"],[vp+n,"…"]);else{if(!(3<=o)){if(typeof s==="object"&&typeof c==="object"&&s!==null&&c!==null&&s.$$typeof===c.$$typeof)if(c.$$typeof===Xn){if(s.type===c.type&&s.key===c.key){s=j(c.type)||"…",n=" ".repeat(o)+l,s="<"+s+" … />",a.push([bp+n,s],[vp+n,s]),n=!1;continue}}else{var p=Object.prototype.toString.call(s),g=Object.prototype.toString.call(c);if(p===g&&(g==="[object Object]"||g==="[object Array]")){p=[_L+" ".repeat(o)+l,g==="[object Array]"?"Array":""],a.push(p),g=a.length,A0(s,c,a,o+1)?g===a.length&&(p[1]="Referentially unequal but deeply equal objects. Consider memoization."):n=!1;continue}}else if(typeof s==="function"&&typeof c==="function"&&s.name===c.name&&s.length===c.length&&(p=Function.prototype.toString.call(s),g=Function.prototype.toString.call(c),p===g)){s=c.name===""?"() => {}":c.name+"() {}",a.push([_L+" ".repeat(o)+l,s+" Referentially unequal function closure. Consider memoization."]);continue}}Dn(l,s,a,o,bp),Dn(l,c,a,o,vp)}n=!1}}else a.push([vp+" ".repeat(o)+l,"…"]),n=!1;return n}function ko(e){gt=e&63?"Blocking":e&64?"Gesture":e&4194176?"Transition":e&62914560?"Suspense":e&2080374784?"Idle":"Other"}function En(e,t,a,o){Qt&&(br.start=t,br.end=a,Rl.color="warning",Rl.tooltipText=o,Rl.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,o,br)):performance.measure(o,br))}function of(e,t,a){En(e,t,a,"Reconnect")}function nf(e,t,a,o,n){var l=_(e);if(l!==null&&Qt){var{alternate:s,actualDuration:c}=e;if(s===null||s.child!==e.child)for(var p=e.child;p!==null;p=p.sibling)c-=p.actualDuration;o=0.5>c?o?"tertiary-light":"primary-light":10>c?o?"tertiary":"primary":100>c?o?"tertiary-dark":"primary-dark":"error";var g=e.memoizedProps;c=e._debugTask,g!==null&&s!==null&&s.memoizedProps!==g?(p=[TM],g=A0(s.memoizedProps,g,p,0),1<p.length&&(g&&!yr&&(s.lanes&n)===0&&100<e.actualDuration?(yr=!0,p[0]=IM,Rl.color="warning",Rl.tooltipText=HL):(Rl.color=o,Rl.tooltipText=l),Rl.properties=p,br.start=t,br.end=a,c!=null?c.run(performance.measure.bind(performance,""+l,br)):performance.measure(""+l,br))):c!=null?c.run(console.timeStamp.bind(console,l,t,a,$o,void 0,o)):console.timeStamp(l,t,a,$o,void 0,o)}}function Wm(e,t,a,o){if(Qt){var n=_(e);if(n!==null){for(var l=null,s=[],c=0;c<o.length;c++){var p=o[c];l==null&&p.source!==null&&(l=p.source._debugTask),p=p.value,s.push(["Error",typeof p==="object"&&p!==null&&typeof p.message==="string"?String(p.message):String(p)])}e.key!==null&&Dn("key",e.key,s,0,""),e.memoizedProps!==null&&Zm(e.memoizedProps,s,0,""),l==null&&(l=e._debugTask),e={start:t,end:a,detail:{devtools:{color:"error",track:$o,tooltipText:e.tag===13?"Hydration failed":"Error boundary caught an error",properties:s}}},l?l.run(performance.measure.bind(performance,""+n,e)):performance.measure(""+n,e)}}}function On(e,t,a,o,n){if(n!==null){if(Qt){var l=_(e);if(l!==null){o=[];for(var s=0;s<n.length;s++){var c=n[s].value;o.push(["Error",typeof c==="object"&&c!==null&&typeof c.message==="string"?String(c.message):String(c)])}e.key!==null&&Dn("key",e.key,o,0,""),e.memoizedProps!==null&&Zm(e.memoizedProps,o,0,""),t={start:t,end:a,detail:{devtools:{color:"error",track:$o,tooltipText:"A lifecycle or effect errored",properties:o}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,""+l,t)):performance.measure(""+l,t)}}}else l=_(e),l!==null&&Qt&&(n=1>o?"secondary-light":100>o?"secondary":500>o?"secondary-dark":"error",(e=e._debugTask)?e.run(console.timeStamp.bind(console,l,t,a,$o,void 0,n)):console.timeStamp(l,t,a,$o,void 0,n))}function XT(e,t,a,o){if(Qt&&!(t<=e)){var n=(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,gt,mt,n)):console.timeStamp(a,e,t,gt,mt,n)}}function D0(e,t,a,o){!Qt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Prewarm",e,t,gt,mt,a)):console.timeStamp("Prewarm",e,t,gt,mt,a))}function E0(e,t,a,o){!Qt||t<=e||(a=(a&738197653)===a?"tertiary-dark":"primary-dark",o?o.run(console.timeStamp.bind(console,"Suspended",e,t,gt,mt,a)):console.timeStamp("Suspended",e,t,gt,mt,a))}function YT(e,t,a,o,n,l){if(Qt&&!(t<=e)){a=[];for(var s=0;s<o.length;s++){var c=o[s].value;a.push(["Recoverable Error",typeof c==="object"&&c!==null&&typeof c.message==="string"?String(c.message):String(c)])}e={start:e,end:t,detail:{devtools:{color:"primary-dark",track:gt,trackGroup:mt,tooltipText:n?"Hydration Failed":"Recovered after Error",properties:a}}},l?l.run(performance.measure.bind(performance,"Recovered",e)):performance.measure("Recovered",e)}}function Km(e,t,a,o){!Qt||t<=e||(o?o.run(console.timeStamp.bind(console,"Errored",e,t,gt,mt,"error")):console.timeStamp("Errored",e,t,gt,mt,"error"))}function QT(e,t,a,o){!Qt||t<=e||(o?o.run(console.timeStamp.bind(console,a,e,t,gt,mt,"secondary-light")):console.timeStamp(a,e,t,gt,mt,"secondary-light"))}function O0(e,t,a,o,n){if(Qt&&!(t<=e)){for(var l=[],s=0;s<a.length;s++){var c=a[s].value;l.push(["Error",typeof c==="object"&&c!==null&&typeof c.message==="string"?String(c.message):String(c)])}e={start:e,end:t,detail:{devtools:{color:"error",track:gt,trackGroup:mt,tooltipText:o?"Remaining Effects Errored":"Commit Errored",properties:l}}},n?n.run(performance.measure.bind(performance,"Errored",e)):performance.measure("Errored",e)}}function zi(e,t,a){!Qt||t<=e||(a?a.run(console.timeStamp.bind(console,"Animating",e,t,gt,mt,"secondary-dark")):console.timeStamp("Animating",e,t,gt,mt,"secondary-dark"))}function lf(){for(var e=zu,t=Cy=zu=0;t<e;){var a=jo[t];jo[t++]=null;var o=jo[t];jo[t++]=null;var n=jo[t];jo[t++]=null;var l=jo[t];if(jo[t++]=null,o!==null&&n!==null){var s=o.pending;s===null?n.next=n:(n.next=s.next,s.next=n),o.pending=n}l!==0&&q0(a,n,l)}}function rf(e,t,a,o){jo[zu++]=e,jo[zu++]=t,jo[zu++]=a,jo[zu++]=o,Cy|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Jm(e,t,a,o){return rf(e,t,a,o),sf(e)}function Wa(e,t){return rf(e,null,null,t),sf(e)}function q0(e,t,a){e.lanes|=a;var o=e.alternate;o!==null&&(o.lanes|=a);for(var n=!1,l=e.return;l!==null;)l.childLanes|=a,o=l.alternate,o!==null&&(o.childLanes|=a),l.tag===22&&(e=l.stateNode,e===null||e._visibility&kc||(n=!0)),e=l,l=l.return;return e.tag===3?(l=e.stateNode,n&&t!==null&&(n=31-oo(a),e=l.hiddenUpdates,o=e[n],o===null?e[n]=[t]:o.push(t),t.lane=a|536870912),l):null}function sf(e){if(Wc>FM)throw Ns=Wc=0,Kc=ab=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.");Ns>GM&&(Ns=0,Kc=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&&ZS(e);for(var t=e,a=t.return;a!==null;)t.alternate===null&&(t.flags&4098)!==0&&ZS(e),t=a,a=t.return;return t.tag===3?t.stateNode:null}function us(e){if(Xo===null)return e;var t=Xo(e);return t===void 0?e:t.current}function eh(e){if(Xo===null)return e;var t=Xo(e);return t===void 0?e!==null&&e!==void 0&&typeof e.render==="function"&&(t=us(e.render),e.render!==t)?(t={$$typeof:fc,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function B0(e,t){if(Xo===null)return!1;var a=e.elementType;t=t.type;var o=!1,n=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:n===Do&&(o=!0);break;case 11:n===fc?o=!0:n===Do&&(o=!0);break;case 14:case 15:n===lp?o=!0:n===Do&&(o=!0);break;default:return!1}return o&&(e=Xo(a),e!==void 0&&e===Xo(t))?!0:!1}function N0(e){Xo!==null&&typeof WeakSet==="function"&&(Pu===null&&(Pu=new WeakSet),Pu.add(e))}function U0(e,t,a){do{var o=e,n=o.alternate,l=o.child,s=o.sibling,c=o.tag;o=o.type;var p=null;switch(c){case 0:case 15:case 1:p=o;break;case 11:p=o.render}if(Xo===null)throw Error("Expected resolveFamily to be set during hot reload.");var g=!1;if(o=!1,p!==null&&(p=Xo(p),p!==void 0&&(a.has(p)?o=!0:t.has(p)&&(c===1?o=!0:g=!0))),Pu!==null&&(Pu.has(e)||n!==null&&Pu.has(n))&&(o=!0),o&&(e._debugNeedsRemount=!0),o||g)n=Wa(e,2),n!==null&&ra(n,e,2);if(l===null||o||U0(l,t,a),s===null)break;e=s}while(1)}function ZT(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,FL||typeof Object.preventExtensions!=="function"||Object.preventExtensions(this)}function th(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Sl(e,t){var a=e.alternate;switch(a===null?(a=k(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=us(e.type);break;case 1:a.type=us(e.type);break;case 11:a.type=eh(e.type)}return a}function z0(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 ah(e,t,a,o,n,l){var s=0,c=e;if(typeof e==="function")th(e)&&(s=1),c=us(c);else if(typeof e==="string")s=ke(),s=lR(e,a,s)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Yg:return t=k(31,a,t,n),t.elementType=Yg,t.lanes=l,t;case Iu:return is(a.children,n,l,t);case np:s=8,n|=Ja,n|=mn;break;case Vg:return e=a,o=n,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=k(12,e,t,o|nt),t.elementType=Vg,t.lanes=l,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case jg:return t=k(13,a,t,n),t.elementType=jg,t.lanes=l,t;case Xg:return t=k(19,a,t,n),t.elementType=Xg,t.lanes=l,t;default:if(typeof e==="object"&&e!==null)switch(e.$$typeof){case Yn:s=10;break e;case $g:s=9;break e;case fc:s=11,c=eh(c);break e;case lp:s=14;break e;case Do:s=16,c=null;break e}if(c="",e===void 0||typeof e==="object"&&e!==null&&Object.keys(e).length===0)c+=" 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":Ma(e)?a="array":e!==void 0&&e.$$typeof===Xn?(a="<"+(j(e.type)||"Unknown")+" />",c=" Did you accidentally export a JSX literal instead of a component?"):a=typeof e,(s=o?te(o):null)&&(c+=`
|
|
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+"."+
|
|
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+"."+c)),c=null}return t=k(s,a,t,n),t.elementType=e,t.type=c,t.lanes=l,t._debugOwner=o,t}function uf(e,t,a){return t=ah(e.type,e.key,e.props,e._owner,t,a),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function is(e,t,a,o){return e=k(7,e,o,t),e.lanes=a,e}function oh(e,t,a){return e=k(6,e,null,t),e.lanes=a,e}function P0(e){var t=k(18,null,null,_e);return t.stateNode=e,t}function nh(e,t,a){return t=k(4,e.children!==null?e.children:[],e.key,t),t.lanes=a,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function wo(e,t){if(typeof e==="object"&&e!==null){var a=ky.get(e);if(a!==void 0)return a;return t={value:e,source:t,stack:G(t)},ky.set(e,t),t}return{value:e,source:t,stack:G(t)}}function xl(e,t){er(),_u[Hu++]=wc,_u[Hu++]=Sp,Sp=e,wc=t}function _0(e,t,a){er(),Yo[Qo++]=Al,Yo[Qo++]=Dl,Yo[Qo++]=Ls,Ls=e;var o=Al;e=Dl;var n=32-oo(o)-1;o&=~(1<<n),a+=1;var l=32-oo(t)+n;if(30<l){var s=n-n%5;l=(o&(1<<s)-1).toString(32),o>>=s,n-=s,Al=1<<32-oo(t)+n|a<<n|o,Dl=l+e}else Al=1<<l|a<<n|o,Dl=e}function lh(e){er(),e.return!==null&&(xl(e,1),_0(e,1,0))}function rh(e){for(;e===Sp;)Sp=_u[--Hu],_u[Hu]=null,wc=_u[--Hu],_u[Hu]=null;for(;e===Ls;)Ls=Yo[--Qo],Yo[Qo]=null,Dl=Yo[--Qo],Yo[Qo]=null,Al=Yo[--Qo],Yo[Qo]=null}function H0(){return er(),Ls!==null?{id:Al,overflow:Dl}:null}function F0(e,t){er(),Yo[Qo++]=Al,Yo[Qo++]=Dl,Yo[Qo++]=Ls,Al=t.id,Dl=t.overflow,Ls=e}function er(){yt||console.error("Expected to be hydrating. This is a bug in React. Please file an issue.")}function cs(e,t){if(e.return===null){if(qo===null)qo={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(qo.fiber!==e)throw Error("Saw multiple hydration diff roots in a pass. This is a bug in React.");qo.distanceFromLeaf>t&&(qo.distanceFromLeaf=t)}return qo}var a=cs(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 G0(){yt&&console.error("We should not be hydrating here. This is a bug in React. Please file a bug.")}function cf(e,t){el||(e=cs(e,0),e.serverProps=null,t!==null&&(t=xx(t),e.serverTail.push(t)))}function tr(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,a="",o=qo;throw o!==null&&(qo=null,a=$m(o)),Pi(wo(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)),
|
|
83
|
+
https://react.dev/link/hydration-mismatch`+a),e)),wy}function V0(e){var{stateNode:t,type:a,memoizedProps:o}=e;switch(t[ja]=e,t[no]=o,Tg(a,o),a){case"dialog":St("cancel",t),St("close",t);break;case"iframe":case"object":case"embed":St("load",t);break;case"video":case"audio":for(a=0;a<Jc.length;a++)St(Jc[a],t);break;case"source":St("error",t);break;case"img":case"image":case"link":St("error",t),St("load",t);break;case"details":St("toggle",t);break;case"input":Jl("input",o),St("invalid",t),Zb(t,o),Wb(t,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0);break;case"option":Kb(t,o);break;case"select":Jl("select",o),St("invalid",t),e0(t,o);break;case"textarea":Jl("textarea",o),St("invalid",t),t0(t,o),o0(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||sx(t.textContent,a)?(o.popover!=null&&(St("beforetoggle",t),St("toggle",t)),o.onScroll!=null&&St("scroll",t),o.onScrollEnd!=null&&St("scrollend",t),o.onClick!=null&&(t.onclick=vl),t=!0):t=!1,t||tr(e,!0)}function $0(e){for(Xa=e.return;Xa;)switch(Xa.tag){case 5:case 31:case 13:Zo=!1;return;case 27:case 3:Zo=!0;return;default:Xa=Xa.return}}function du(e){if(e!==Xa)return!1;if(!yt)return $0(e),yt=!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")||Dg(e.type,e.memoizedProps);a=!a}if(a&&Zt){for(a=Zt;a;){var o=cs(e,0),n=xx(a);o.serverTail.push(n),a=n.type==="Suspense"?Bg(a):Ao(a.nextSibling)}tr(e)}if($0(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.");Zt=Bg(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.");Zt=Bg(e)}else t===27?(t=Zt,dr(e.type)?(e=mb,mb=null,Zt=e):Zt=t):Zt=Xa?Ao(e.stateNode.nextSibling):null;return!0}function ds(){Zt=Xa=null,el=yt=!1}function sh(){var e=Sr;return e!==null&&(co===null?co=e:co.push.apply(co,e),Sr=null),e}function Pi(e){Sr===null?Sr=[e]:Sr.push(e)}function uh(){var e=qo;if(e!==null){qo=null;for(var t=$m(e);0<e.children.length;)e=e.children[0];F(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,58 +90,58 @@ https://react.dev/link/hydration-mismatch`+a),e)),xy}function U0(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
|
|
93
|
+
%s%s`,"https://react.dev/link/hydration-mismatch",t)})}}function df(){Fu=xp=null,Gu=!1}function ar(e,t,a){Le(Ty,t._currentValue,e),t._currentValue=a,Le(Iy,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==VL&&console.error("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),t._currentRenderer=VL}function Ll(e,t){e._currentValue=Ty.current;var a=Iy.current;ve(Iy,t),e._currentRenderer=a,ve(Ty,t)}function ih(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 ch(e,t,a,o){var n=e.child;n!==null&&(n.return=e);for(;n!==null;){var l=n.dependencies;if(l!==null){var s=n.child;l=l.firstContext;e:for(;l!==null;){var c=l;l=n;for(var p=0;p<t.length;p++)if(c.context===t[p]){l.lanes|=a,c=l.alternate,c!==null&&(c.lanes|=a),ih(l.return,a,e),o||(s=null);break e}l=c.next}}else if(n.tag===18){if(s=n.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,l=s.alternate,l!==null&&(l.lanes|=a),ih(s,a,e),s=null}else s=n.child;if(s!==null)s.return=n;else for(s=n;s!==null;){if(s===e){s=null;break}if(n=s.sibling,n!==null){n.return=s.return,s=n;break}s=s.return}n=s}}function fu(e,t,a,o){e=null;for(var n=t,l=!1;n!==null;){if(!l){if((n.flags&524288)!==0)l=!0;else if((n.flags&262144)!==0)break}if(n.tag===10){var s=n.alternate;if(s===null)throw Error("Should have a current fiber. This is a bug in React.");if(s=s.memoizedProps,s!==null){var c=n.type;ro(n.pendingProps.value,s.value)||(e!==null?e.push(c):e=[c])}}else if(n===rp.current){if(s=n.alternate,s===null)throw Error("Should have a current fiber. This is a bug in React.");s.memoizedState.memoizedState!==n.memoizedState.memoizedState&&(e!==null?e.push(nd):e=[nd])}n=n.return}e!==null&&ch(t,e,a,o),t.flags|=262144}function ff(e){for(e=e.firstContext;e!==null;){if(!ro(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function fs(e){xp=e,Fu=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ea(e){return Gu&&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()."),j0(xp,e)}function pf(e,t){return xp===null&&fs(e),j0(e,t)}function j0(e,t){var a=t._currentValue;if(t={context:t,memoizedValue:a,next:null},Fu===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().");Fu=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else Fu=Fu.next=t;return a}function dh(){return{controller:new AM,data:new Map,refCount:0}}function ps(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 _i(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&&DM(EM,function(){e.controller.abort()})}function qn(e,t,a){if((e&127)!==0)0>tl&&(tl=La(),Ic=Lp(t),Ry=t,a!=null&&(My=_(a)),(kt&(Da|Uo))!==za&&(sa=!0,Cr=Tc),e=sc(),t=rc(),e!==Vu||t!==Rc?Vu=-1.1:t!==null&&(Cr=Tc),ks=e,Rc=t);else if((e&4194048)!==0&&0>Wo&&(Wo=La(),Mc=Lp(t),$L=t,a!=null&&(jL=_(a)),0>ql)){if(e=sc(),t=rc(),e!==wr||t!==ws)wr=-1.1;kr=e,ws=t}}function WT(e){if(0>tl){tl=La(),Ic=e._debugTask!=null?e._debugTask:null,(kt&(Da|Uo))!==za&&(Cr=Tc);var t=sc(),a=rc();t!==Vu||a!==Rc?Vu=-1.1:a!==null&&(Cr=Tc),ks=t,Rc=a}if(0>Wo&&(Wo=La(),Mc=e._debugTask!=null?e._debugTask:null,0>ql)){if(e=sc(),t=rc(),e!==wr||t!==ws)wr=-1.1;kr=e,ws=t}}function Cl(){var e=Cs;return Cs=0,e}function mf(e){var t=Cs;return Cs=e,t}function Hi(e){var t=Cs;return Cs+=e,t}function hf(){ze=qe=-1.1}function To(){var e=qe;return qe=-1.1,e}function Io(e){0<=e&&(qe=e)}function Bn(){var e=aa;return aa=-0,e}function Nn(e){0<=e&&(aa=e)}function Un(){var e=ta;return ta=null,e}function zn(){var e=sa;return sa=!1,e}function fh(e){so=La(),0>e.actualStartTime&&(e.actualStartTime=so)}function ph(e){if(0<=so){var t=La()-so;e.actualDuration+=t,e.selfBaseDuration=t,so=-1}}function X0(e){if(0<=so){var t=La()-so;e.actualDuration+=t,so=-1}}function Pn(){if(0<=so){var e=La(),t=e-so;so=-1,Cs+=t,aa+=t,ze=e}}function Y0(e){ta===null&&(ta=[]),ta.push(e),Ol===null&&(Ol=[]),Ol.push(e)}function _n(){so=La(),0>qe&&(qe=so)}function Fi(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function KT(e,t){if(Dc===null){var a=Dc=[];Dy=0,Ts=Lg(),$u={status:"pending",value:void 0,then:function(o){a.push(o)}}}return Dy++,t.then(Q0,Q0),t}function Q0(){if(--Dy===0&&(-1<Wo||(ql=-1.1),Dc!==null)){$u!==null&&($u.status="fulfilled");var e=Dc;Dc=null,Ts=0,$u=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function JT(e,t){var a=[],o={status:"pending",value:null,reason:null,then:function(n){a.push(n)}};return e.then(function(){o.status="fulfilled",o.value=t;for(var n=0;n<a.length;n++)(0,a[n])(t)},function(n){o.status="rejected",o.reason=n;for(n=0;n<a.length;n++)(0,a[n])(void 0)}),o}function mh(){var e=Is.current;return e!==null?e:Vt.pooledCache}function gf(e,t){t===null?Le(Is,Is.current,e):Le(Is,t.pool,e)}function Z0(){var e=mh();return e===null?null:{parent:xa._currentValue,pool:e}}function W0(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function K0(e){return e=e.status,e==="fulfilled"||e==="rejected"}function J0(e,t,a){H.actQueue!==null&&(H.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(vl,vl),t=a),t._debugInfo===void 0){e=performance.now(),o=t.displayName;var n={name:typeof o==="string"?o:"Promise",start:e,end:e,value:t};t._debugInfo=[{awaited:n}],t.status!=="fulfilled"&&t.status!=="rejected"&&(e=function(){n.end=performance.now()},t.then(e,e))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tv(e),e;default:if(typeof t.status==="string")t.then(vl,vl);else{if(e=Vt,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(l){if(t.status==="pending"){var s=t;s.status="fulfilled",s.value=l}},function(l){if(t.status==="pending"){var s=t;s.status="rejected",s.reason=l}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,tv(e),e}throw Ms=t,zc=!0,ju}}function or(e){try{return NM(e)}catch(t){if(t!==null&&typeof t==="object"&&typeof t.then==="function")throw Ms=t,zc=!0,ju;throw t}}function ev(){if(Ms===null)throw Error("Expected a suspended thenable. This is a bug in React. Please file an issue.");var e=Ms;return Ms=null,zc=!1,e}function tv(e){if(e===ju||e===Ap)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=lt;return e!=null&&(lt=t===null?e:t.concat(e)),t}function hh(){var e=lt;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 yf(e,t,a){for(var o=Object.keys(e.props),n=0;n<o.length;n++){var l=o[n];if(l!=="children"&&l!=="key"){t===null&&(t=uf(e,a.mode,0),t._debugInfo=lt,t.return=a),F(t,function(s){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",s)},l);break}}}function bf(e){var t=Pc;return Pc+=1,Xu===null&&(Xu=W0()),J0(Xu,e,t)}function Gi(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function av(e,t){if(t.$$typeof===hR)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
|
|
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 vf(e,t){var a=hh();a!==null?a.run(av.bind(null,e,t)):av(e,t)}function ov(e,t){var a=_(e)||"Component";fC[a]||(fC[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
|
|
98
|
+
<%s>{%s}</%s>`,t,t,a,t,a))}function Sf(e,t){var a=hh();a!==null?a.run(ov.bind(null,e,t)):ov(e,t)}function nv(e,t){var a=_(e)||"Component";pC[a]||(pC[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 vf(e,t){var a=ch();a!==null?a.run(W0.bind(null,e,t)):W0(e,t)}function K0(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=Sn(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=Jm(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===Iu)return I=A(w,I,M.props.children,Q,M.key),hf(M,I,w),I;if(I!==null&&(I.elementType===he||R0(I,M)||typeof he==="object"&&he!==null&&he.$$typeof===Do&&lr(he)===I.type))return I=l(I,M.props),Gi(I,M),I.return=w,I._debugOwner=M._owner,I._debugInfo=at,I;return I=rf(M,w.mode,Q),Gi(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=eh(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=is(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=Jm(""+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 Xl:return M=rf(I,w.mode,M),Gi(M,I),M.return=w,w=Ga(I._debugInfo),M._debugInfo=at,at=w,M;case Tu:return I=eh(I,w.mode,M),I.return=w,I._debugInfo=at,I;case Do:var Q=Ga(I._debugInfo);return I=lr(I),w=E(w,I,M),at=Q,w}if(Ra(I)||ee(I))return M=is(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,gf(I),M),at=Q,w;if(I.$$typeof===jl)return E(w,cf(w,I),M);yf(w,I)}return typeof I==="function"&&bf(w,I),typeof I==="symbol"&&vf(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 Xl:return M.key===he?(he=Ga(M._debugInfo),w=m(w,I,M,Q),at=he,w):null;case Tu:return M.key===he?g(w,I,M,Q):null;case Do:return he=Ga(M._debugInfo),M=lr(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,gf(M),Q),at=he,w;if(M.$$typeof===jl)return T(w,I,cf(w,M),Q);yf(w,M)}return typeof M==="function"&&bf(w,M),typeof M==="symbol"&&vf(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 Xl: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 Tu:return w=w.get(Q.key===null?M:Q.key)||null,g(I,w,Q,he);case Do:var Ge=Ga(Q._debugInfo);return Q=lr(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,gf(Q),he),at=Ge,I;if(Q.$$typeof===jl)return U(w,I,M,cf(I,Q),he);yf(I,Q)}return typeof Q==="function"&&bf(I,Q),typeof Q==="symbol"&&vf(I,Q),null}function de(w,I,M,Q){if(typeof M!=="object"||M===null)return Q;switch(M.$$typeof){case Xl:case Tu: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 Do:M=lr(M),de(w,I,M,Q)}return Q}function ye(w,I,M,Q){for(var he=null,Ge=null,Ae=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),Ae===null?Ge=ga:Ae.sibling=ga,Ae=ga,Te=$t}if(We===M.length)return a(w,Te),dt&&xn(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),Ae===null?Ge=Te:Ae.sibling=Te,Ae=Te);return dt&&xn(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),Ae===null?Ge=$t:Ae.sibling=$t,Ae=$t);return e&&Te.forEach(function(Gn){return t(w,Gn)}),dt&&xn(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,Ae=I,Te=I=0,We=null,$t=null,ga=M.next();Ae!==null&&!ga.done;Te++,ga=M.next()){Ae.index>Te?(We=Ae,Ae=null):We=Ae.sibling;var Gn=T(w,Ae,ga.value,Q);if(Gn===null){Ae===null&&(Ae=We);break}$t=de(w,Gn,ga.value,$t),e&&Ae&&Gn.alternate===null&&t(w,Ae),I=n(Gn,I,Te),Ge===null?he=Gn:Ge.sibling=Gn,Ge=Gn,Ae=We}if(ga.done)return a(w,Ae),dt&&xn(w,Te),he;if(Ae===null){for(;!ga.done;Te++,ga=M.next())Ae=E(w,ga.value,Q),Ae!==null&&($t=de(w,Ae,ga.value,$t),I=n(Ae,I,Te),Ge===null?he=Ae:Ge.sibling=Ae,Ge=Ae);return dt&&xn(w,Te),he}for(Ae=o(Ae);!ga.done;Te++,ga=M.next())We=U(Ae,w,Te,ga.value,Q),We!==null&&($t=de(w,We,ga.value,$t),e&&We.alternate!==null&&Ae.delete(We.key===null?Te:We.key),I=n(We,I,Te),Ge===null?he=We:Ge.sibling=We,Ge=We);return e&&Ae.forEach(function($M){return t(w,$M)}),dt&&xn(w,Te),he}function pt(w,I,M,Q){if(typeof M==="object"&&M!==null&&M.type===Iu&&M.key===null&&(hf(M,null,w),M=M.props.children),typeof M==="object"&&M!==null){switch(M.$$typeof){case Xl:var he=Ga(M._debugInfo);e:{for(var Ge=M.key;I!==null;){if(I.key===Ge){if(Ge=M.type,Ge===Iu){if(I.tag===7){a(w,I.sibling),Q=l(I,M.props.children),Q.return=w,Q._debugOwner=M._owner,Q._debugInfo=at,hf(M,Q,w),w=Q;break e}}else if(I.elementType===Ge||R0(I,M)||typeof Ge==="object"&&Ge!==null&&Ge.$$typeof===Do&&lr(Ge)===I.type){a(w,I.sibling),Q=l(I,M.props),Gi(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===Iu?(Q=is(M.props.children,w.mode,Q,M.key),Q.return=w,Q._debugOwner=w,Q._debugTask=w._debugTask,Q._debugInfo=at,hf(M,Q,w),w=Q):(Q=rf(M,w.mode,Q),Gi(Q,M),Q.return=w,Q._debugInfo=at,w=Q)}return w=s(w),at=he,w;case Tu: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=eh(he,w.mode,Q),Q.return=w,w=Q}return s(w);case Do:return he=Ga(M._debugInfo),M=lr(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 Ae=Ge.call(M);if(Ae===M){if(w.tag!==0||Object.prototype.toString.call(w.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(Ae)!=="[object Generator]")oC||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."),oC=!0}else M.entries!==Ge||Dy||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),Dy=!0);return w=Ft(w,I,Ae,Q),at=he,w}if(typeof M.then==="function")return he=Ga(M._debugInfo),w=pt(w,I,gf(M),Q),at=he,w;if(M.$$typeof===jl)return pt(w,I,cf(w,M),Q);yf(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=Jm(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"&&bf(w,M),typeof M==="symbol"&&vf(w,M),a(w,I)}return function(w,I,M,Q){var he=at;at=null;try{zd=0;var Ge=pt(w,I,M,Q);return ju=null,Ge}catch($t){if($t===Xu||$t===Rp)throw $t;var Ae=C(29,$t,null,w.mode);Ae.lanes=Q,Ae.return=w;var Te=Ae._debugInfo=at;if(Ae._debugOwner=w._debugOwner,Ae._debugTask=w._debugTask,Te!=null){for(var We=Te.length-1;0<=We;We--)if(typeof Te[We].stack==="string"){Ae._debugOwner=Te[We],Ae._debugTask=Te[We].debugTask;break}}return Ae}finally{at=he}}}function J0(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 fh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ph(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 nr(e){return{lane:e,tag:uC,payload:null,callback:null,next:null}}function rr(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Oy===o&&!cC){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 xf(e,t){var a=hh();a!==null?a.run(nv.bind(null,e,t)):nv(e,t)}function lv(e){function t(T,R){if(e){var D=T.deletions;D===null?(T.deletions=[R],T.flags|=16):D.push(R)}}function a(T,R){if(!e)return null;for(;R!==null;)t(T,R),R=R.sibling;return null}function o(T){for(var R=new Map;T!==null;)T.key!==null?R.set(T.key,T):R.set(T.index,T),T=T.sibling;return R}function n(T,R){return T=Sl(T,R),T.index=0,T.sibling=null,T}function l(T,R,D){if(T.index=D,!e)return T.flags|=1048576,R;if(D=T.alternate,D!==null)return D=D.index,D<R?(T.flags|=67108866,R):D;return T.flags|=67108866,R}function s(T){return e&&T.alternate===null&&(T.flags|=67108866),T}function c(T,R,D,Q){if(R===null||R.tag!==6)return R=oh(D,T.mode,Q),R.return=T,R._debugOwner=T,R._debugTask=T._debugTask,R._debugInfo=lt,R;return R=n(R,D),R.return=T,R._debugInfo=lt,R}function p(T,R,D,Q){var fe=D.type;if(fe===Iu)return R=E(T,R,D.props.children,Q,D.key),yf(D,R,T),R;if(R!==null&&(R.elementType===fe||B0(R,D)||typeof fe==="object"&&fe!==null&&fe.$$typeof===Do&&or(fe)===R.type))return R=n(R,D.props),Gi(R,D),R.return=T,R._debugOwner=D._owner,R._debugInfo=lt,R;return R=uf(D,T.mode,Q),Gi(R,D),R.return=T,R._debugInfo=lt,R}function g(T,R,D,Q){if(R===null||R.tag!==4||R.stateNode.containerInfo!==D.containerInfo||R.stateNode.implementation!==D.implementation)return R=nh(D,T.mode,Q),R.return=T,R._debugInfo=lt,R;return R=n(R,D.children||[]),R.return=T,R._debugInfo=lt,R}function E(T,R,D,Q,fe){if(R===null||R.tag!==7)return R=is(D,T.mode,Q,fe),R.return=T,R._debugOwner=T,R._debugTask=T._debugTask,R._debugInfo=lt,R;return R=n(R,D),R.return=T,R._debugInfo=lt,R}function O(T,R,D){if(typeof R==="string"&&R!==""||typeof R==="number"||typeof R==="bigint")return R=oh(""+R,T.mode,D),R.return=T,R._debugOwner=T,R._debugTask=T._debugTask,R._debugInfo=lt,R;if(typeof R==="object"&&R!==null){switch(R.$$typeof){case Xn:return D=uf(R,T.mode,D),Gi(D,R),D.return=T,T=Ga(R._debugInfo),D._debugInfo=lt,lt=T,D;case Tu:return R=nh(R,T.mode,D),R.return=T,R._debugInfo=lt,R;case Do:var Q=Ga(R._debugInfo);return R=or(R),T=O(T,R,D),lt=Q,T}if(Ma(R)||ee(R))return D=is(R,T.mode,D,null),D.return=T,D._debugOwner=T,D._debugTask=T._debugTask,T=Ga(R._debugInfo),D._debugInfo=lt,lt=T,D;if(typeof R.then==="function")return Q=Ga(R._debugInfo),T=O(T,bf(R),D),lt=Q,T;if(R.$$typeof===Yn)return O(T,pf(T,R),D);vf(T,R)}return typeof R==="function"&&Sf(T,R),typeof R==="symbol"&&xf(T,R),null}function I(T,R,D,Q){var fe=R!==null?R.key:null;if(typeof D==="string"&&D!==""||typeof D==="number"||typeof D==="bigint")return fe!==null?null:c(T,R,""+D,Q);if(typeof D==="object"&&D!==null){switch(D.$$typeof){case Xn:return D.key===fe?(fe=Ga(D._debugInfo),T=p(T,R,D,Q),lt=fe,T):null;case Tu:return D.key===fe?g(T,R,D,Q):null;case Do:return fe=Ga(D._debugInfo),D=or(D),T=I(T,R,D,Q),lt=fe,T}if(Ma(D)||ee(D)){if(fe!==null)return null;return fe=Ga(D._debugInfo),T=E(T,R,D,Q,null),lt=fe,T}if(typeof D.then==="function")return fe=Ga(D._debugInfo),T=I(T,R,bf(D),Q),lt=fe,T;if(D.$$typeof===Yn)return I(T,R,pf(T,D),Q);vf(T,D)}return typeof D==="function"&&Sf(T,D),typeof D==="symbol"&&xf(T,D),null}function z(T,R,D,Q,fe){if(typeof Q==="string"&&Q!==""||typeof Q==="number"||typeof Q==="bigint")return T=T.get(D)||null,c(R,T,""+Q,fe);if(typeof Q==="object"&&Q!==null){switch(Q.$$typeof){case Xn:return D=T.get(Q.key===null?D:Q.key)||null,T=Ga(Q._debugInfo),R=p(R,D,Q,fe),lt=T,R;case Tu:return T=T.get(Q.key===null?D:Q.key)||null,g(R,T,Q,fe);case Do:var $e=Ga(Q._debugInfo);return Q=or(Q),R=z(T,R,D,Q,fe),lt=$e,R}if(Ma(Q)||ee(Q))return D=T.get(D)||null,T=Ga(Q._debugInfo),R=E(R,D,Q,fe,null),lt=T,R;if(typeof Q.then==="function")return $e=Ga(Q._debugInfo),R=z(T,R,D,bf(Q),fe),lt=$e,R;if(Q.$$typeof===Yn)return z(T,R,D,pf(R,Q),fe);vf(R,Q)}return typeof Q==="function"&&Sf(R,Q),typeof Q==="symbol"&&xf(R,Q),null}function re(T,R,D,Q){if(typeof D!=="object"||D===null)return Q;switch(D.$$typeof){case Xn:case Tu:h(T,R,D);var fe=D.key;if(typeof fe!=="string")break;if(Q===null){Q=new Set,Q.add(fe);break}if(!Q.has(fe)){Q.add(fe);break}F(R,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.",fe)});break;case Do:D=or(D),re(T,R,D,Q)}return Q}function me(T,R,D,Q){for(var fe=null,$e=null,De=null,we=R,et=R=0,Wt=null;we!==null&&et<D.length;et++){we.index>et?(Wt=we,we=null):Wt=we.sibling;var ya=I(T,we,D[et],Q);if(ya===null){we===null&&(we=Wt);break}fe=re(T,ya,D[et],fe),e&&we&&ya.alternate===null&&t(T,we),R=l(ya,R,et),De===null?$e=ya:De.sibling=ya,De=ya,we=Wt}if(et===D.length)return a(T,we),yt&&xl(T,et),$e;if(we===null){for(;et<D.length;et++)we=O(T,D[et],Q),we!==null&&(fe=re(T,we,D[et],fe),R=l(we,R,et),De===null?$e=we:De.sibling=we,De=we);return yt&&xl(T,et),$e}for(we=o(we);et<D.length;et++)Wt=z(we,T,et,D[et],Q),Wt!==null&&(fe=re(T,Wt,D[et],fe),e&&Wt.alternate!==null&&we.delete(Wt.key===null?et:Wt.key),R=l(Wt,R,et),De===null?$e=Wt:De.sibling=Wt,De=Wt);return e&&we.forEach(function(Gl){return t(T,Gl)}),yt&&xl(T,et),$e}function Yt(T,R,D,Q){if(D==null)throw Error("An iterable object provided no iterator.");for(var fe=null,$e=null,De=R,we=R=0,et=null,Wt=null,ya=D.next();De!==null&&!ya.done;we++,ya=D.next()){De.index>we?(et=De,De=null):et=De.sibling;var Gl=I(T,De,ya.value,Q);if(Gl===null){De===null&&(De=et);break}Wt=re(T,Gl,ya.value,Wt),e&&De&&Gl.alternate===null&&t(T,De),R=l(Gl,R,we),$e===null?fe=Gl:$e.sibling=Gl,$e=Gl,De=et}if(ya.done)return a(T,De),yt&&xl(T,we),fe;if(De===null){for(;!ya.done;we++,ya=D.next())De=O(T,ya.value,Q),De!==null&&(Wt=re(T,De,ya.value,Wt),R=l(De,R,we),$e===null?fe=De:$e.sibling=De,$e=De);return yt&&xl(T,we),fe}for(De=o(De);!ya.done;we++,ya=D.next())et=z(De,T,we,ya.value,Q),et!==null&&(Wt=re(T,et,ya.value,Wt),e&&et.alternate!==null&&De.delete(et.key===null?we:et.key),R=l(et,R,we),$e===null?fe=et:$e.sibling=et,$e=et);return e&&De.forEach(function(rA){return t(T,rA)}),yt&&xl(T,we),fe}function xt(T,R,D,Q){if(typeof D==="object"&&D!==null&&D.type===Iu&&D.key===null&&(yf(D,null,T),D=D.props.children),typeof D==="object"&&D!==null){switch(D.$$typeof){case Xn:var fe=Ga(D._debugInfo);e:{for(var $e=D.key;R!==null;){if(R.key===$e){if($e=D.type,$e===Iu){if(R.tag===7){a(T,R.sibling),Q=n(R,D.props.children),Q.return=T,Q._debugOwner=D._owner,Q._debugInfo=lt,yf(D,Q,T),T=Q;break e}}else if(R.elementType===$e||B0(R,D)||typeof $e==="object"&&$e!==null&&$e.$$typeof===Do&&or($e)===R.type){a(T,R.sibling),Q=n(R,D.props),Gi(Q,D),Q.return=T,Q._debugOwner=D._owner,Q._debugInfo=lt,T=Q;break e}a(T,R);break}else t(T,R);R=R.sibling}D.type===Iu?(Q=is(D.props.children,T.mode,Q,D.key),Q.return=T,Q._debugOwner=T,Q._debugTask=T._debugTask,Q._debugInfo=lt,yf(D,Q,T),T=Q):(Q=uf(D,T.mode,Q),Gi(Q,D),Q.return=T,Q._debugInfo=lt,T=Q)}return T=s(T),lt=fe,T;case Tu:e:{fe=D;for(D=fe.key;R!==null;){if(R.key===D)if(R.tag===4&&R.stateNode.containerInfo===fe.containerInfo&&R.stateNode.implementation===fe.implementation){a(T,R.sibling),Q=n(R,fe.children||[]),Q.return=T,T=Q;break e}else{a(T,R);break}else t(T,R);R=R.sibling}Q=nh(fe,T.mode,Q),Q.return=T,T=Q}return s(T);case Do:return fe=Ga(D._debugInfo),D=or(D),T=xt(T,R,D,Q),lt=fe,T}if(Ma(D))return fe=Ga(D._debugInfo),T=me(T,R,D,Q),lt=fe,T;if(ee(D)){if(fe=Ga(D._debugInfo),$e=ee(D),typeof $e!=="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=$e.call(D);if(De===D){if(T.tag!==0||Object.prototype.toString.call(T.type)!=="[object GeneratorFunction]"||Object.prototype.toString.call(De)!=="[object Generator]")cC||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."),cC=!0}else D.entries!==$e||By||(console.error("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),By=!0);return T=Yt(T,R,De,Q),lt=fe,T}if(typeof D.then==="function")return fe=Ga(D._debugInfo),T=xt(T,R,bf(D),Q),lt=fe,T;if(D.$$typeof===Yn)return xt(T,R,pf(T,D),Q);vf(T,D)}if(typeof D==="string"&&D!==""||typeof D==="number"||typeof D==="bigint")return fe=""+D,R!==null&&R.tag===6?(a(T,R.sibling),Q=n(R,fe),Q.return=T,T=Q):(a(T,R),Q=oh(fe,T.mode,Q),Q.return=T,Q._debugOwner=T,Q._debugTask=T._debugTask,Q._debugInfo=lt,T=Q),s(T);return typeof D==="function"&&Sf(T,D),typeof D==="symbol"&&xf(T,D),a(T,R)}return function(T,R,D,Q){var fe=lt;lt=null;try{Pc=0;var $e=xt(T,R,D,Q);return Xu=null,$e}catch(Wt){if(Wt===ju||Wt===Ap)throw Wt;var De=k(29,Wt,null,T.mode);De.lanes=Q,De.return=T;var we=De._debugInfo=lt;if(De._debugOwner=T._debugOwner,De._debugTask=T._debugTask,we!=null){for(var et=we.length-1;0<=et;et--)if(typeof we[et].stack==="string"){De._debugOwner=we[et],De._debugTask=we[et].debugTask;break}}return De}finally{lt=fe}}}function rv(e,t){var a=Ma(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 gh(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function yh(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 nr(e){return{lane:e,tag:hC,payload:null,callback:null,next:null}}function lr(e,t,a){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,Uy===o&&!bC){var n=_(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`,
|
|
103
|
-
`,a+=
|
|
102
|
+
Please update the following component: %s`,n),bC=!0}if((kt&Da)!==za)return n=o.pending,n===null?t.next=t:(t.next=n.next,n.next=t),o.pending=t,t=sf(e),q0(e,null,a),t;return rf(e,o,t,a),sf(e)}function Vi(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,as(e,a)}}function Lf(e,t){var a=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,a===o)){var n=null,l=null;if(a=a.firstBaseUpdate,a!==null){do{var s={lane:a.lane,tag:a.tag,payload:a.payload,callback:null,next:null};l===null?n=l=s:l=l.next=s,a=a.next}while(a!==null);l===null?n=l=t:l=l.next=t}else n=l=t;a={baseState:o.baseState,firstBaseUpdate:n,lastBaseUpdate:l,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 $i(){if(zy){var e=$u;if(e!==null)throw e}}function ji(e,t,a,o){zy=!1;var n=e.updateQueue;Tr=!1,Uy=n.shared;var{firstBaseUpdate:l,lastBaseUpdate:s}=n,c=n.shared.pending;if(c!==null){n.shared.pending=null;var p=c,g=p.next;p.next=null,s===null?l=g:s.next=g,s=p;var E=e.alternate;E!==null&&(E=E.updateQueue,c=E.lastBaseUpdate,c!==s&&(c===null?E.firstBaseUpdate=g:c.next=g,E.lastBaseUpdate=p))}if(l!==null){var O=n.baseState;s=0,E=g=p=null,c=l;do{var I=c.lane&-536870913,z=I!==c.lane;if(z?(rt&I)===I:(o&I)===I){I!==0&&I===Ts&&(zy=!0),E!==null&&(E=E.next={lane:0,tag:c.tag,payload:c.payload,callback:null,next:null});e:{I=e;var re=c,me=t,Yt=a;switch(re.tag){case gC:if(re=re.payload,typeof re==="function"){Gu=!0;var xt=re.call(Yt,O,me);if(I.mode&Ja){jt(!0);try{re.call(Yt,O,me)}finally{jt(!1)}}Gu=!1,O=xt;break e}O=re;break e;case Ny:I.flags=I.flags&-65537|128;case hC:if(xt=re.payload,typeof xt==="function"){if(Gu=!0,re=xt.call(Yt,O,me),I.mode&Ja){jt(!0);try{xt.call(Yt,O,me)}finally{jt(!1)}}Gu=!1}else re=xt;if(re===null||re===void 0)break e;O=pt({},O,re);break e;case yC:Tr=!0}}I=c.callback,I!==null&&(e.flags|=64,z&&(e.flags|=8192),z=n.callbacks,z===null?n.callbacks=[I]:z.push(I))}else z={lane:I,tag:c.tag,payload:c.payload,callback:c.callback,next:null},E===null?(g=E=z,p=O):E=E.next=z,s|=I;if(c=c.next,c===null)if(c=n.shared.pending,c===null)break;else z=c,c=z.next,z.next=null,n.lastBaseUpdate=z,n.shared.pending=null}while(1);E===null&&(p=O),n.baseState=p,n.firstBaseUpdate=g,n.lastBaseUpdate=E,l===null&&(n.shared.lanes=0),Mr|=s,e.lanes=s,e.memoizedState=O}Uy=null}function sv(e,t){if(typeof e!=="function")throw Error("Invalid argument passed as callback. Expected a function. Instead received: "+e);e.call(t)}function eI(e,t){var a=e.shared.hiddenCallbacks;if(a!==null)for(e.shared.hiddenCallbacks=null,e=0;e<a.length;e++)sv(a[e],t)}function uv(e,t){var a=e.callbacks;if(a!==null)for(e.callbacks=null,e=0;e<a.length;e++)sv(a[e],t)}function iv(e,t){var a=nl;Le(Ep,a,e),Le(Yu,t,e),nl=a|t.baseLanes}function bh(e){Le(Ep,nl,e),Le(Yu,Yu.current,e)}function vh(e){nl=Ep.current,ve(Yu,e),ve(Ep,e)}function rr(e){var t=e.alternate;Le(ga,ga.current&Qu,e),Le(Bo,e,e),Ko===null&&(t===null||Yu.current!==null?Ko=e:t.memoizedState!==null&&(Ko=e))}function Sh(e){Le(ga,ga.current,e),Le(Bo,e,e),Ko===null&&(Ko=e)}function cv(e){e.tag===22?(Le(ga,ga.current,e),Le(Bo,e,e),Ko===null&&(Ko=e)):sr(e)}function sr(e){Le(ga,ga.current,e),Le(Bo,Bo.current,e)}function Ro(e){ve(Bo,e),Ko===e&&(Ko=null),ve(ga,e)}function Cf(e){for(var t=e;t!==null;){if(t.tag===13){var a=t.memoizedState;if(a!==null&&(a=a.dehydrated,a===null||Og(a)||qg(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 ft(){var e=P;en===null?en=[e]:en.push(e)}function ne(){var e=P;if(en!==null&&(zl++,en[zl]!==e)){var t=_(Ve);if(!vC.has(t)&&(vC.add(t),en!==null)){for(var a="",o=0;o<=zl;o++){var n=en[o],l=o===zl?e:n;for(n=o+1+". "+n;30>n.length;)n+=" ";n+=l+`
|
|
103
|
+
`,a+=n}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 pu(e){e===void 0||e===null||
|
|
108
|
+
`,t,a)}}}function pu(e){e===void 0||e===null||Ma(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.",P,typeof e)}function kf(){var e=_(Ve);xC.has(e)||(xC.add(e),console.error("ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",e))}function pa(){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
|
-
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function
|
|
112
|
+
See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function xh(e,t){if(Fc)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.",P),!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(!ro(e[a],t[a]))return!1;return!0}function bh(e,t,a,o,l,n){if(Nn=n,Fe=t,el=e!==null?e._debugHookTypes:null,Pn=-1,Fd=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")n=X(Fe),By.has(n)||(By.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?Uy:el!==null?hC:Ny,Ds=n=(t.mode&Ja)!==Pe;var s=Ry(a,o,l);if(Ds=!1,Wu&&(s=vh(t,a,o,l)),n){_t(!0);try{s=vh(t,a,o,l)}finally{_t(!1)}}return lv(e,t),s}function lv(e,t){t._debugHookTypes=el,t.dependencies===null?Un!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Un}):t.dependencies._debugThenableState=Un,G.H=Gd;var a=Ut!==null&&Ut.next!==null;if(Nn=0,el=H=xa=Ut=Fe=null,Pn=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),Ep=!1,Hd=0,Un=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&&df(e)&&(La=!0)),Pd?(Pd=!1,e=!0):e=!1,e&&(t=X(t)||"Unknown",pC.has(t)||By.has(t)||(pC.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 vh(e,t,a,o){Fe=e;var l=0;do{if(Wu&&(Un=null),Hd=0,Wu=!1,l>=CM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(l+=1,Fd=!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)}Pn=-1,G.H=gC,n=Ry(t,a,o)}while(Wu);return n}function _T(){var e=G.H,t=e.useState()[0];return t=typeof t.then==="function"?ji(t):t,e=e.useState()[0],(Ut!==null?Ut.memoizedState:null)!==e&&(Fe.flags|=1024),t}function Sh(){var e=Op!==0;return Op=0,e}function xh(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&pl)!==Pe?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Lh(e){if(Ep){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ep=!1}Nn=0,el=xa=Ut=Fe=null,Pn=-1,H=null,Wu=!1,Hd=Op=0,Un=null}function ao(){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 Cf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ji(e){var t=Hd;return Hd+=1,Un===null&&(Un=V0()),e=X0(Un,e,t),t=Fe,(xa===null?t.memoizedState:xa.next)===null&&(t=t.alternate,G.H=t!==null&&t.memoizedState!==null?Uy:Ny),e}function ir(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return ji(e);if(e.$$typeof===jl)return Qt(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function ms(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=Cf(),Fe.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Fd)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=tR;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 il(e,t){return typeof t==="function"?t(e):t}function Ch(e,t,a){var o=ao();if(a!==void 0){var l=a(t);if(Ds){_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=$T.bind(null,Fe,e),[o.memoizedState,e]}function mu(e){var t=At();return kh(t,Ut,e)}function kh(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:(Nn&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===Ts&&(A=!0);else if((Nn&T)===T){g=g.next,T===Ts&&(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,Ar|=T;E=g.action,Ds&&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,Ar|=E;g=g.next}while(g!==null&&g!==t);if(m===null?s=n:m.next=d,!ro(n,e.memoizedState)&&(La=!0,A&&(a=$u,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 Yi(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);ro(n,t.memoizedState)||(La=!0),t.memoizedState=n,t.baseQueue===null&&(t.baseState=n),a.lastRenderedState=n}return[n,o]}function wh(e,t,a){var o=Fe,l=ao();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();Zu||n===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Zu=!0)}else{if(n=t(),Zu||(a=t(),ro(n,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Zu=!0)),Pt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(ot&127)!==0||nv(o,t,n)}return l.memoizedState=n,a={value:n,getSnapshot:t},l.queue=a,If(sv.bind(null,o,a,e),[e]),o.flags|=2048,gu(Jo|io,{destroy:void 0},rv.bind(null,o,a,n,t),null),n}function kf(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(),!Zu){var s=t();ro(a,s)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Zu=!0)}if(s=!ro((Ut||l).memoizedState,a))l.memoizedState=a,La=!0;l=l.queue;var d=sv.bind(null,o,l,e);if(mo(2048,io,d,[e]),l.getSnapshot!==t||s||xa!==null&&xa.memoizedState.tag&Jo){if(o.flags|=2048,gu(Jo|io,{destroy:void 0},rv.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||(Nn&127)!==0||nv(o,t,a)}return a}function nv(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Fe.updateQueue,t===null?(t=Cf(),Fe.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function rv(e,t,a,o){t.value=a,t.getSnapshot=o,uv(t)&&iv(e)}function sv(e,t,a){return a(function(){uv(t)&&(Ol(2,"updateSyncExternalStore()",e),iv(e))})}function uv(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ro(e,a)}catch(o){return!0}}function iv(e){var t=Wa(e,2);t!==null&&oa(t,e,2)}function Th(e){var t=ao();if(typeof e==="function"){var a=e;if(e=a(),Ds){_t(!0);try{a()}finally{_t(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:e},t}function Ih(e){e=Th(e);var t=e.queue,a=Rv.bind(null,Fe,t);return t.dispatch=a,[e.memoizedState,a]}function Rh(e){var t=ao();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=Fh.bind(null,Fe,!0,a),a.dispatch=t,[e,t]}function dv(e,t){var a=At();return cv(a,Ut,e,t)}function cv(e,t,a,o){return e.baseState=a,kh(e,Ut,typeof o==="function"?o:il)}function fv(e,t){var a=At();if(Ut!==null)return cv(a,Ut,e,t);return a.baseState=e,[e,a.queue.dispatch]}function HT(e,t,a,o,l){if(Of(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,pv(t,n)):(n.next=a.next,t.pending=a.next=n)}}function pv(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),mv(e,t,d)}catch(g){Mh(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),mv(e,t,s)}catch(g){Mh(e,t,g)}}function mv(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(G.asyncTransitions++,a.then(Ef,Ef),a.then(function(o){hv(e,t,o)},function(o){return Mh(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.")):hv(e,t,a)}function hv(e,t,a){t.status="fulfilled",t.value=a,gv(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,pv(e,a)))}function Mh(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,gv(t),t=t.next;while(t!==o)}e.action=null}function gv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function yv(e,t){return t}function hu(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=Zo;l.nodeType!==8;){if(!n){l=null;break t}if(l=Ao(l.nextSibling),l===null){l=null;break t}}n=l.data,l=n===rb||n===t1?l:null}if(l){Vt=Ao(l.nextSibling),o=l.data===rb;break e}}ar(o)}o=!1}o&&(t=a[0])}}return a=ao(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:yv,lastRenderedState:t},a.queue=o,a=Rv.bind(null,Fe,o),o.dispatch=a,o=Th(!1),n=Fh.bind(null,Fe,!1,o.queue),o=ao(),l={state:t,dispatch:null,action:e,pending:null},o.queue=l,a=HT.bind(null,Fe,l,n,a),l.dispatch=a,o.memoizedState=e,[t,a,!1]}function wf(e){var t=At();return bv(t,Ut,e)}function bv(e,t,a){if(t=kh(e,t,yv)[0],e=mu(il)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=ji(t)}catch(s){if(s===Xu)throw Rp;throw s}else o=t;t=At();var l=t.queue,n=l.dispatch;return a!==t.memoizedState&&(Fe.flags|=2048,gu(Jo|io,{destroy:void 0},FT.bind(null,l,a),null)),[o,n,e]}function FT(e,t){e.action=t}function Tf(e){var t=At(),a=Ut;if(a!==null)return bv(t,a,e);At(),t=t.memoizedState,a=At();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function gu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Fe.updateQueue,t===null&&(t=Cf(),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 Ah(e){var t=ao();return e={current:e},t.memoizedState=e}function hs(e,t,a,o){var l=ao();Fe.flags|=e,l.memoizedState=gu(Jo|t,{destroy:void 0},a,o===void 0?null:o)}function mo(e,t,a,o){var l=At();o=o===void 0?null:o;var n=l.memoizedState.inst;Ut!==null&&o!==null&&yh(o,Ut.memoizedState.deps)?l.memoizedState=gu(t,n,a,o):(Fe.flags|=e,l.memoizedState=gu(Jo|t,n,a,o))}function If(e,t){(Fe.mode&pl)!==Pe?hs(276826112,io,e,t):hs(8390656,io,e,t)}function GT(e){Fe.flags|=4;var t=Fe.updateQueue;if(t===null)t=Cf(),Fe.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Dh(e){var t=ao(),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 Rf(e){var t=At().memoizedState;return GT({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 Eh(e,t){var a=4194308;return(Fe.mode&pl)!==Pe&&(a|=134217728),hs(a,No,e,t)}function vv(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 Oh(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&pl)!==Pe&&(o|=134217728),hs(o,No,vv.bind(null,t,e),a)}function Mf(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,mo(4,No,vv.bind(null,t,e),a)}function qh(e,t){return ao().memoizedState=[e,t===void 0?null:t],e}function Af(e,t){var a=At();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&yh(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function Bh(e,t){var a=ao();t=t===void 0?null:t;var o=e();if(Ds){_t(!0);try{e()}finally{_t(!1)}}return a.memoizedState=[o,t],o}function Df(e,t){var a=At();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&yh(t,o[1]))return o[0];if(o=e(),Ds){_t(!0);try{e()}finally{_t(!1)}}return a.memoizedState=[o,t],o}function Nh(e,t){var a=ao();return Uh(a,e,t)}function Sv(e,t){var a=At();return Lv(a,Ut.memoizedState,e,t)}function xv(e,t){var a=At();return Ut===null?Uh(a,e,t):Lv(a,Ut.memoizedState,e,t)}function Uh(e,t,a){if(a===void 0||(Nn&1073741824)!==0&&(ot&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=CS(),Fe.lanes|=e,Ar|=e,a}function Lv(e,t,a,o){if(ro(a,t))return a;if(Yu.current!==null)return e=Uh(e,a,o),ro(e,t)||(La=!0),e;if((Nn&42)===0||(Nn&1073741824)!==0&&(ot&261930)===0)return La=!0,e.memoizedState=a;return e=CS(),Fe.lanes|=e,Ar|=e,t}function Ef(){G.asyncTransitions--}function Cv(e,t,a,o,l){var n=kt.p;kt.p=n!==0&&n<fl?n:fl;var s=G.T,d={};d._updatedFibers=new Set,G.T=d,Fh(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(Ef,Ef);var A=PT(m,o);Qi(e,t,A,Mo(e))}else Qi(e,t,o,Mo(e))}catch(E){Qi(e,t,{then:function(){},status:"rejected",reason:E},Mo(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 Ph(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=kv(e).queue;NT(e),Cv(e,l,t,Fs,a===null?k:function(){return wv(e),a(o)})}function kv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Fs,baseState:Fs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:Fs},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:il,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function wv(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=kv(e);t.next===null&&(t=e.alternate.memoizedState),Qi(e,t.next.queue,{},Mo(e))}function zh(){var e=Th(!1);return e=Cv.bind(null,Fe,e.queue,!0,!1),ao().memoizedState=e,[!1,e]}function Tv(){var e=mu(il)[0],t=At().memoizedState;return[typeof e==="boolean"?e:ji(e),t]}function Iv(){var e=Yi(il)[0],t=At().memoizedState;return[typeof e==="boolean"?e:ji(e),t]}function gs(){return Qt(lc)}function _h(){var e=ao(),t=Pt.identifierPrefix;if(dt){var a=Dn,o=An;a=(o&~(1<<32-oo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Op++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=LM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function Hh(){return ao().memoizedState=VT.bind(null,Fe)}function VT(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Mo(a),l=nr(o),n=rr(a,l,o);n!==null&&(Ol(o,"refresh()",e),oa(n,a,o),Vi(n,a,o)),e=sh(),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 $T(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=Mo(e);var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Of(e)?Mv(t,l):(l=Qm(e,t,l,o),l!==null&&(Ol(o,"dispatch()",e),oa(l,e,o),Av(l,t,o)))}function Rv(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=Mo(e),Qi(e,t,a,o)&&Ol(o,"setState()",e)}function Qi(e,t,a,o){var l={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Of(e))Mv(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=hl;try{var d=t.lastRenderedState,m=n(d,a);if(l.hasEagerState=!0,l.eagerState=m,ro(m,d))return lf(e,t,l,0),Pt===null&&of(),!1}catch(g){}finally{G.H=s}}if(a=Qm(e,t,l,o),a!==null)return oa(a,e,o),Av(a,t,o),!0}return!1}function Fh(e,t,a,o){if(G.T===null&&Ts===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:bg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Of(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Qm(e,a,o,2),t!==null&&(Ol(2,"setOptimistic()",e),oa(t,e,2))}function Of(e){var t=e.alternate;return e===Fe||t!==null&&t===Fe}function Mv(e,t){Wu=Ep=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Av(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,as(e,a)}}function Gh(e){if(e!==null&&typeof e!=="function"){var t=String(e);IC.has(t)||(IC.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Vh(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",CC.has(t)||(CC.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 Dv(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?!Ui(a,o)||!Ui(l,n):!0}function Ev(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",bC.has(e)||(bC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Py.enqueueReplaceState(t,t.state,null))}function ys(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 Ov(e){hy(e),console.warn(`%s
|
|
115
|
+
Incoming: %s`,P,"["+t.join(", ")+"]","["+e.join(", ")+"]");for(var a=0;a<t.length&&a<e.length;a++)if(!ro(e[a],t[a]))return!1;return!0}function Lh(e,t,a,o,n,l){if(Nl=l,Ve=t,en=e!==null?e._debugHookTypes:null,zl=-1,Fc=e!==null&&e.type!==t.type,Object.prototype.toString.call(a)==="[object AsyncFunction]"||Object.prototype.toString.call(a)==="[object AsyncGeneratorFunction]")l=_(Ve),Py.has(l)||(Py.add(l),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.",l===null?"An unknown Component":"<"+l+">"));t.memoizedState=null,t.updateQueue=null,t.lanes=0,H.H=e!==null&&e.memoizedState!==null?Hy:en!==null?LC:_y,Ds=l=(t.mode&Ja)!==_e;var s=Ey(a,o,n);if(Ds=!1,Wu&&(s=Ch(t,a,o,n)),l){jt(!0);try{s=Ch(t,a,o,n)}finally{jt(!1)}}return dv(e,t),s}function dv(e,t){t._debugHookTypes=en,t.dependencies===null?Ul!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Ul}):t.dependencies._debugThenableState=Ul,H.H=Gc;var a=Gt!==null&&Gt.next!==null;if(Nl=0,en=P=Ca=Gt=Ve=null,zl=-1,e!==null&&(e.flags&65011712)!==(t.flags&65011712)&&console.error("Internal React error: Expected static flag was missing. Please notify the React team."),qp=!1,Hc=0,Ul=null,a)throw Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");e===null||ka||(e=e.dependencies,e!==null&&ff(e)&&(ka=!0)),zc?(zc=!1,e=!0):e=!1,e&&(t=_(t)||"Unknown",SC.has(t)||Py.has(t)||(SC.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 Ch(e,t,a,o){Ve=e;var n=0;do{if(Wu&&(Ul=null),Hc=0,Wu=!1,n>=zM)throw Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");if(n+=1,Fc=!1,Ca=Gt=null,e.updateQueue!=null){var l=e.updateQueue;l.lastEffect=null,l.events=null,l.stores=null,l.memoCache!=null&&(l.memoCache.index=0)}zl=-1,H.H=CC,l=Ey(t,a,o)}while(Wu);return l}function tI(){var e=H.H,t=e.useState()[0];return t=typeof t.then==="function"?Xi(t):t,e=e.useState()[0],(Gt!==null?Gt.memoizedState:null)!==e&&(Ve.flags|=1024),t}function kh(){var e=Bp!==0;return Bp=0,e}function wh(e,t,a){t.updateQueue=e.updateQueue,t.flags=(t.mode&mn)!==_e?t.flags&-402655237:t.flags&-2053,e.lanes&=~a}function Th(e){if(qp){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}qp=!1}Nl=0,en=Ca=Gt=Ve=null,zl=-1,P=null,Wu=!1,Hc=Bp=0,Ul=null}function ao(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ca===null?Ve.memoizedState=Ca=e:Ca=Ca.next=e,Ca}function zt(){if(Gt===null){var e=Ve.alternate;e=e!==null?e.memoizedState:null}else e=Gt.next;var t=Ca===null?Ve.memoizedState:Ca.next;if(t!==null)Ca=t,Gt=e;else{if(e===null){if(Ve.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.")}Gt=e,e={memoizedState:Gt.memoizedState,baseState:Gt.baseState,baseQueue:Gt.baseQueue,queue:Gt.queue,next:null},Ca===null?Ve.memoizedState=Ca=e:Ca=Ca.next=e}return Ca}function wf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Xi(e){var t=Hc;return Hc+=1,Ul===null&&(Ul=W0()),e=J0(Ul,e,t),t=Ve,(Ca===null?t.memoizedState:Ca.next)===null&&(t=t.alternate,H.H=t!==null&&t.memoizedState!==null?Hy:_y),e}function ur(e){if(e!==null&&typeof e==="object"){if(typeof e.then==="function")return Xi(e);if(e.$$typeof===Yn)return ea(e)}throw Error("An unsupported type was passed to use(): "+String(e))}function ms(e){var t=null,a=Ve.updateQueue;if(a!==null&&(t=a.memoCache),t==null){var o=Ve.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(t={data:o.data.map(function(n){return n.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),a===null&&(a=wf(),Ve.updateQueue=a),a.memoCache=t,a=t.data[t.index],a===void 0||Fc)for(a=t.data[t.index]=Array(e),o=0;o<e;o++)a[o]=gR;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 cn(e,t){return typeof t==="function"?t(e):t}function Ih(e,t,a){var o=ao();if(a!==void 0){var n=a(t);if(Ds){jt(!0);try{a(t)}finally{jt(!1)}}}else n=t;return o.memoizedState=o.baseState=n,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:n},o.queue=e,e=e.dispatch=rI.bind(null,Ve,e),[o.memoizedState,e]}function mu(e){var t=zt();return Rh(t,Gt,e)}function Rh(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 n=e.baseQueue,l=o.pending;if(l!==null){if(n!==null){var s=n.next;n.next=l.next,l.next=s}t.baseQueue!==n&&console.error("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),t.baseQueue=n=l,o.pending=null}if(l=e.baseState,n===null)e.memoizedState=l;else{t=n.next;var c=s=null,p=null,g=t,E=!1;do{var O=g.lane&-536870913;if(O!==g.lane?(rt&O)===O:(Nl&O)===O){var I=g.revertLane;if(I===0)p!==null&&(p=p.next={lane:0,revertLane:0,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null}),O===Ts&&(E=!0);else if((Nl&I)===I){g=g.next,I===Ts&&(E=!0);continue}else O={lane:0,revertLane:g.revertLane,gesture:null,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},p===null?(c=p=O,s=l):p=p.next=O,Ve.lanes|=I,Mr|=I;O=g.action,Ds&&a(l,O),l=g.hasEagerState?g.eagerState:a(l,O)}else I={lane:O,revertLane:g.revertLane,gesture:g.gesture,action:g.action,hasEagerState:g.hasEagerState,eagerState:g.eagerState,next:null},p===null?(c=p=I,s=l):p=p.next=I,Ve.lanes|=O,Mr|=O;g=g.next}while(g!==null&&g!==t);if(p===null?s=l:p.next=c,!ro(l,e.memoizedState)&&(ka=!0,E&&(a=$u,a!==null)))throw a;e.memoizedState=l,e.baseState=s,e.baseQueue=p,o.lastRenderedState=l}return n===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function Yi(e){var t=zt(),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:n}=a,l=t.memoizedState;if(n!==null){a.pending=null;var s=n=n.next;do l=e(l,s.action),s=s.next;while(s!==n);ro(l,t.memoizedState)||(ka=!0),t.memoizedState=l,t.baseQueue===null&&(t.baseState=l),a.lastRenderedState=l}return[l,o]}function Mh(e,t,a){var o=Ve,n=ao();if(yt){if(a===void 0)throw Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");var l=a();Zu||l===a()||(console.error("The result of getServerSnapshot should be cached to avoid an infinite loop"),Zu=!0)}else{if(l=t(),Zu||(a=t(),ro(l,a)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Zu=!0)),Vt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");(rt&127)!==0||fv(o,t,l)}return n.memoizedState=l,a={value:l,getSnapshot:t},n.queue=a,Mf(mv.bind(null,o,a,e),[e]),o.flags|=2048,gu(Jo|io,{destroy:void 0},pv.bind(null,o,a,l,t),null),l}function Tf(e,t,a){var o=Ve,n=zt(),l=yt;if(l){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(),!Zu){var s=t();ro(a,s)||(console.error("The result of getSnapshot should be cached to avoid an infinite loop"),Zu=!0)}if(s=!ro((Gt||n).memoizedState,a))n.memoizedState=a,ka=!0;n=n.queue;var c=mv.bind(null,o,n,e);if(mo(2048,io,c,[e]),n.getSnapshot!==t||s||Ca!==null&&Ca.memoizedState.tag&Jo){if(o.flags|=2048,gu(Jo|io,{destroy:void 0},pv.bind(null,o,n,a,t),null),Vt===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");l||(Nl&127)!==0||fv(o,t,a)}return a}function fv(e,t,a){e.flags|=16384,e={getSnapshot:t,value:a},t=Ve.updateQueue,t===null?(t=wf(),Ve.updateQueue=t,t.stores=[e]):(a=t.stores,a===null?t.stores=[e]:a.push(e))}function pv(e,t,a,o){t.value=a,t.getSnapshot=o,hv(t)&&gv(e)}function mv(e,t,a){return a(function(){hv(t)&&(qn(2,"updateSyncExternalStore()",e),gv(e))})}function hv(e){var t=e.getSnapshot;e=e.value;try{var a=t();return!ro(e,a)}catch(o){return!0}}function gv(e){var t=Wa(e,2);t!==null&&ra(t,e,2)}function Ah(e){var t=ao();if(typeof e==="function"){var a=e;if(e=a(),Ds){jt(!0);try{a()}finally{jt(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:e},t}function Dh(e){e=Ah(e);var t=e.queue,a=Bv.bind(null,Ve,t);return t.dispatch=a,[e.memoizedState,a]}function Eh(e){var t=ao();t.memoizedState=t.baseState=e;var a={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=a,t=jh.bind(null,Ve,!0,a),a.dispatch=t,[e,t]}function yv(e,t){var a=zt();return bv(a,Gt,e,t)}function bv(e,t,a,o){return e.baseState=a,Rh(e,Gt,typeof o==="function"?o:cn)}function vv(e,t){var a=zt();if(Gt!==null)return bv(a,Gt,e,t);return a.baseState=e,[e,a.queue.dispatch]}function aI(e,t,a,o,n){if(Bf(e))throw Error("Cannot update form state while rendering.");if(e=t.action,e!==null){var l={payload:n,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){l.listeners.push(s)}};H.T!==null?a(!0):l.isTransition=!1,o(l),a=t.pending,a===null?(l.next=t.pending=l,Sv(t,l)):(l.next=a.next,t.pending=a.next=l)}}function Sv(e,t){var{action:a,payload:o}=t,n=e.state;if(t.isTransition){var l=H.T,s={};s._updatedFibers=new Set,H.T=s;try{var c=a(n,o),p=H.S;p!==null&&p(s,c),xv(e,t,c)}catch(g){Oh(e,t,g)}finally{l!==null&&s.types!==null&&(l.types!==null&&l.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."),l.types=s.types),H.T=l,l===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(n,o),xv(e,t,s)}catch(g){Oh(e,t,g)}}function xv(e,t,a){a!==null&&typeof a==="object"&&typeof a.then==="function"?(H.asyncTransitions++,a.then(qf,qf),a.then(function(o){Lv(e,t,o)},function(o){return Oh(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.")):Lv(e,t,a)}function Lv(e,t,a){t.status="fulfilled",t.value=a,Cv(t),e.state=a,t=e.pending,t!==null&&(a=t.next,a===t?e.pending=null:(a=a.next,t.next=a,Sv(e,a)))}function Oh(e,t,a){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do t.status="rejected",t.reason=a,Cv(t),t=t.next;while(t!==o)}e.action=null}function Cv(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function kv(e,t){return t}function hu(e,t){if(yt){var a=Vt.formState;if(a!==null){e:{var o=Ve;if(yt){if(Zt){t:{var n=Zt;for(var l=Zo;n.nodeType!==8;){if(!l){n=null;break t}if(n=Ao(n.nextSibling),n===null){n=null;break t}}l=n.data,n=l===cb||l===u1?n:null}if(n){Zt=Ao(n.nextSibling),o=n.data===cb;break e}}tr(o)}o=!1}o&&(t=a[0])}}return a=ao(),a.memoizedState=a.baseState=t,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:kv,lastRenderedState:t},a.queue=o,a=Bv.bind(null,Ve,o),o.dispatch=a,o=Ah(!1),l=jh.bind(null,Ve,!1,o.queue),o=ao(),n={state:t,dispatch:null,action:e,pending:null},o.queue=n,a=aI.bind(null,Ve,n,l,a),n.dispatch=a,o.memoizedState=e,[t,a,!1]}function If(e){var t=zt();return wv(t,Gt,e)}function wv(e,t,a){if(t=Rh(e,t,kv)[0],e=mu(cn)[0],typeof t==="object"&&t!==null&&typeof t.then==="function")try{var o=Xi(t)}catch(s){if(s===ju)throw Ap;throw s}else o=t;t=zt();var n=t.queue,l=n.dispatch;return a!==t.memoizedState&&(Ve.flags|=2048,gu(Jo|io,{destroy:void 0},oI.bind(null,n,a),null)),[o,l,e]}function oI(e,t){e.action=t}function Rf(e){var t=zt(),a=Gt;if(a!==null)return wv(t,a,e);zt(),t=t.memoizedState,a=zt();var o=a.queue.dispatch;return a.memoizedState=e,[t,o,!1]}function gu(e,t,a,o){return e={tag:e,create:a,deps:o,inst:t,next:null},t=Ve.updateQueue,t===null&&(t=wf(),Ve.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 qh(e){var t=ao();return e={current:e},t.memoizedState=e}function hs(e,t,a,o){var n=ao();Ve.flags|=e,n.memoizedState=gu(Jo|t,{destroy:void 0},a,o===void 0?null:o)}function mo(e,t,a,o){var n=zt();o=o===void 0?null:o;var l=n.memoizedState.inst;Gt!==null&&o!==null&&xh(o,Gt.memoizedState.deps)?n.memoizedState=gu(t,l,a,o):(Ve.flags|=e,n.memoizedState=gu(Jo|t,l,a,o))}function Mf(e,t){(Ve.mode&mn)!==_e?hs(276826112,io,e,t):hs(8390656,io,e,t)}function nI(e){Ve.flags|=4;var t=Ve.updateQueue;if(t===null)t=wf(),Ve.updateQueue=t,t.events=[e];else{var a=t.events;a===null?t.events=[e]:a.push(e)}}function Bh(e){var t=ao(),a={impl:e};return t.memoizedState=a,function(){if((kt&Da)!==za)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return a.impl.apply(void 0,arguments)}}function Af(e){var t=zt().memoizedState;return nI({ref:t,nextImpl:e}),function(){if((kt&Da)!==za)throw Error("A function wrapped in useEffectEvent can't be called during rendering.");return t.impl.apply(void 0,arguments)}}function Nh(e,t){var a=4194308;return(Ve.mode&mn)!==_e&&(a|=134217728),hs(a,No,e,t)}function Tv(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 Uh(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;(Ve.mode&mn)!==_e&&(o|=134217728),hs(o,No,Tv.bind(null,t,e),a)}function Df(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,mo(4,No,Tv.bind(null,t,e),a)}function zh(e,t){return ao().memoizedState=[e,t===void 0?null:t],e}function Ef(e,t){var a=zt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&xh(t,o[1]))return o[0];return a.memoizedState=[e,t],e}function Ph(e,t){var a=ao();t=t===void 0?null:t;var o=e();if(Ds){jt(!0);try{e()}finally{jt(!1)}}return a.memoizedState=[o,t],o}function Of(e,t){var a=zt();t=t===void 0?null:t;var o=a.memoizedState;if(t!==null&&xh(t,o[1]))return o[0];if(o=e(),Ds){jt(!0);try{e()}finally{jt(!1)}}return a.memoizedState=[o,t],o}function _h(e,t){var a=ao();return Hh(a,e,t)}function Iv(e,t){var a=zt();return Mv(a,Gt.memoizedState,e,t)}function Rv(e,t){var a=zt();return Gt===null?Hh(a,e,t):Mv(a,Gt.memoizedState,e,t)}function Hh(e,t,a){if(a===void 0||(Nl&1073741824)!==0&&(rt&261930)===0)return e.memoizedState=t;return e.memoizedState=a,e=AS(),Ve.lanes|=e,Mr|=e,a}function Mv(e,t,a,o){if(ro(a,t))return a;if(Yu.current!==null)return e=Hh(e,a,o),ro(e,t)||(ka=!0),e;if((Nl&42)===0||(Nl&1073741824)!==0&&(rt&261930)===0)return ka=!0,e.memoizedState=a;return e=AS(),Ve.lanes|=e,Mr|=e,t}function qf(){H.asyncTransitions--}function Av(e,t,a,o,n){var l=qt.p;qt.p=l!==0&&l<pn?l:pn;var s=H.T,c={};c._updatedFibers=new Set,H.T=c,jh(e,!1,t,a);try{var p=n(),g=H.S;if(g!==null&&g(c,p),p!==null&&typeof p==="object"&&typeof p.then==="function"){H.asyncTransitions++,p.then(qf,qf);var E=JT(p,o);Qi(e,t,E,Mo(e))}else Qi(e,t,o,Mo(e))}catch(O){Qi(e,t,{then:function(){},status:"rejected",reason:O},Mo(e))}finally{qt.p=l,s!==null&&c.types!==null&&(s.types!==null&&s.types!==c.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=c.types),H.T=s,s===null&&c._updatedFibers&&(e=c._updatedFibers.size,c._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 Fh(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 n=Dv(e).queue;WT(e),Av(e,n,t,Fs,a===null?x:function(){return Ev(e),a(o)})}function Dv(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Fs,baseState:Fs,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:Fs},next:null};var a={};return t.next={memoizedState:a,baseState:a,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:cn,lastRenderedState:a},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ev(e){H.T===null&&console.error("requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.");var t=Dv(e);t.next===null&&(t=e.alternate.memoizedState),Qi(e,t.next.queue,{},Mo(e))}function Gh(){var e=Ah(!1);return e=Av.bind(null,Ve,e.queue,!0,!1),ao().memoizedState=e,[!1,e]}function Ov(){var e=mu(cn)[0],t=zt().memoizedState;return[typeof e==="boolean"?e:Xi(e),t]}function qv(){var e=Yi(cn)[0],t=zt().memoizedState;return[typeof e==="boolean"?e:Xi(e),t]}function gs(){return ea(nd)}function Vh(){var e=ao(),t=Vt.identifierPrefix;if(yt){var a=Dl,o=Al;a=(o&~(1<<32-oo(o)-1)).toString(32)+a,t="_"+t+"R_"+a,a=Bp++,0<a&&(t+="H"+a.toString(32)),t+="_"}else a=UM++,t="_"+t+"r_"+a.toString(32)+"_";return e.memoizedState=t}function $h(){return ao().memoizedState=lI.bind(null,Ve)}function lI(e,t){for(var a=e.return;a!==null;){switch(a.tag){case 24:case 3:var o=Mo(a),n=nr(o),l=lr(a,n,o);l!==null&&(qn(o,"refresh()",e),ra(l,a,o),Vi(l,a,o)),e=dh(),t!==null&&t!==void 0&&l!==null&&console.error("The seed argument is not enabled outside experimental channels."),n.payload={cache:e};return}a=a.return}}function rI(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=Mo(e);var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};Bf(e)?Nv(t,n):(n=Jm(e,t,n,o),n!==null&&(qn(o,"dispatch()",e),ra(n,e,o),Uv(n,t,o)))}function Bv(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=Mo(e),Qi(e,t,a,o)&&qn(o,"setState()",e)}function Qi(e,t,a,o){var n={lane:o,revertLane:0,gesture:null,action:a,hasEagerState:!1,eagerState:null,next:null};if(Bf(e))Nv(t,n);else{var l=e.alternate;if(e.lanes===0&&(l===null||l.lanes===0)&&(l=t.lastRenderedReducer,l!==null)){var s=H.H;H.H=gn;try{var c=t.lastRenderedState,p=l(c,a);if(n.hasEagerState=!0,n.eagerState=p,ro(p,c))return rf(e,t,n,0),Vt===null&&lf(),!1}catch(g){}finally{H.H=s}}if(a=Jm(e,t,n,o),a!==null)return ra(a,e,o),Uv(a,t,o),!0}return!1}function jh(e,t,a,o){if(H.T===null&&Ts===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:Lg(),gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Bf(e)){if(t)throw Error("Cannot update optimistic state while rendering.");console.error("Cannot call startTransition while rendering.")}else t=Jm(e,a,o,2),t!==null&&(qn(2,"setOptimistic()",e),ra(t,e,2))}function Bf(e){var t=e.alternate;return e===Ve||t!==null&&t===Ve}function Nv(e,t){Wu=qp=!0;var a=e.pending;a===null?t.next=t:(t.next=a.next,a.next=t),e.pending=t}function Uv(e,t,a){if((a&4194048)!==0){var o=t.lanes;o&=e.pendingLanes,a|=o,t.lanes=a,as(e,a)}}function Xh(e){if(e!==null&&typeof e!=="function"){var t=String(e);qC.has(t)||(qC.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function Yh(e,t,a,o){var n=e.memoizedState,l=a(o,n);if(e.mode&Ja){jt(!0);try{l=a(o,n)}finally{jt(!1)}}l===void 0&&(t=j(t)||"Component",AC.has(t)||(AC.add(t),console.error("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",t))),n=l===null||l===void 0?n:pt({},n,l),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}function zv(e,t,a,o,n,l,s){var c=e.stateNode;if(typeof c.shouldComponentUpdate==="function"){if(a=c.shouldComponentUpdate(o,l,s),e.mode&Ja){jt(!0);try{a=c.shouldComponentUpdate(o,l,s)}finally{jt(!1)}}return a===void 0&&console.error("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",j(t)||"Component"),a}return t.prototype&&t.prototype.isPureReactComponent?!Ui(a,o)||!Ui(n,l):!0}function Pv(e,t,a,o){var n=t.state;typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps(a,o),typeof t.UNSAFE_componentWillReceiveProps==="function"&&t.UNSAFE_componentWillReceiveProps(a,o),t.state!==n&&(e=_(e)||"Component",wC.has(e)||(wC.add(e),console.error("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",e)),Fy.enqueueReplaceState(t,t.state,null))}function ys(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=pt({},a));for(var n in e)a[n]===void 0&&(a[n]=e[n])}return a}function _v(e){vy(e),console.warn(`%s
|
|
116
116
|
|
|
117
117
|
%s
|
|
118
118
|
`,Ku?"An error occurred in the <"+Ku+"> 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
|
|
119
|
+
Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function Hv(e){var t=Ku?"The above error occurred in the <"+Ku+"> 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, "+((Gy||"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,
|
|
124
|
+
`,e,t,a].slice(0),typeof e[0]==="string"?e.splice(0,1,g1+" "+e[0],y1,rm+o+rm,b1):e.splice(0,0,g1,y1,rm+o+rm,b1),e.unshift(console),o=nA.apply(console.error,e),o()}else console.error(`%o
|
|
125
125
|
|
|
126
126
|
%s
|
|
127
127
|
|
|
128
128
|
%s
|
|
129
|
-
`,e,t,a)}function
|
|
129
|
+
`,e,t,a)}function Fv(e){vy(e)}function Nf(e,t){try{Ku=t.source?_(t.source):null,Gy=null;var a=t.value;if(H.actQueue!==null)H.thrownErrors.push(a);else{var o=e.onUncaughtError;o(a,{componentStack:t.stack})}}catch(n){setTimeout(function(){throw n})}}function Gv(e,t,a){try{Ku=a.source?_(a.source):null,Gy=_(t);var o=e.onCaughtError;o(a.value,{componentStack:a.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(n){setTimeout(function(){throw n})}}function Qh(e,t,a){return a=nr(a),a.tag=Ny,a.payload={element:null},a.callback=function(){F(t.source,Nf,e,t)},a}function Zh(e){return e=nr(e),e.tag=Ny,e}function Wh(e,t,a,o){var n=a.type.getDerivedStateFromError;if(typeof n==="function"){var l=o.value;e.payload=function(){return n(l)},e.callback=function(){N0(a),F(o.source,Gv,t,a,o)}}var s=a.stateNode;s!==null&&typeof s.componentDidCatch==="function"&&(e.callback=function(){N0(a),F(o.source,Gv,t,a,o),typeof n!=="function"&&(Dr===null?Dr=new Set([this]):Dr.add(this)),OM(this,o),typeof n==="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.",_(a)||"Unknown")})}function sI(e,t,a,o,n){if(a.flags|=32768,Wn&&oc(e,n),o!==null&&typeof o==="object"&&typeof o.then==="function"){if(t=a.alternate,t!==null&&fu(t,a,n,!0),yt&&(el=!0),a=Bo.current,a!==null){switch(a.tag){case 31:case 13:return Ko===null?$f():a.alternate===null&&oa===_l&&(oa=zp),a.flags&=-257,a.flags|=65536,a.lanes=n,o===Dp?a.flags|=16384:(t=a.updateQueue,t===null?a.updateQueue=new Set([o]):t.add(o),bg(e,o,n)),!1;case 22:return a.flags|=65536,o===Dp?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)),bg(e,o,n)),!1}throw Error("Unexpected Suspense handler tag ("+a.tag+"). This is a bug in React.")}return bg(e,o,n),$f(),!1}if(yt)return el=!0,t=Bo.current,t!==null?((t.flags&65536)===0&&(t.flags|=256),t.flags|=65536,t.lanes=n,o!==wy&&Pi(wo(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!==wy&&Pi(wo(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,n&=-n,e.lanes|=n,o=wo(o,a),n=Qh(e.stateNode,o,n),Lf(e,n),oa!==Ir&&(oa=Es)),!1;var l=wo(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(Qc===null?Qc=[l]:Qc.push(l),oa!==Ir&&(oa=Es),t===null)return!0;o=wo(o,a),a=t;do{switch(a.tag){case 3:return a.flags|=65536,e=n&-n,a.lanes|=e,e=Qh(a.stateNode,o,e),Lf(a,e),!1;case 1:if(t=a.type,l=a.stateNode,(a.flags&128)===0&&(typeof t.getDerivedStateFromError==="function"||l!==null&&typeof l.componentDidCatch==="function"&&(Dr===null||!Dr.has(l))))return a.flags|=65536,n&=-n,a.lanes|=n,n=Zh(n),Wh(n,e,a,o),Lf(a,n),!1}a=a.return}while(a!==null);return!1}function Va(e,t,a,o){t.child=e===null?mC(t,null,a,o):As(t,e.child,a,o)}function Vv(e,t,a,o,n){a=a.render;var l=t.ref;if("ref"in o){var s={};for(var c in o)c!=="ref"&&(s[c]=o[c])}else s=o;if(fs(t),o=Lh(e,t,a,s,l,n),c=kh(),e!==null&&!ka)return wh(e,t,n),kl(e,t,n);return yt&&c&&lh(t),t.flags|=1,Va(e,t,o,n),t.child}function $v(e,t,a,o,n){if(e===null){var l=a.type;if(typeof l==="function"&&!th(l)&&l.defaultProps===void 0&&a.compare===null)return a=us(l),t.tag=15,t.type=a,Jh(t,l),jv(e,t,a,o,n);return e=ah(a.type,null,o,t,t.mode,n),e.ref=t.ref,e.return=t,t.child=e}if(l=e.child,!lg(e,n)){var s=l.memoizedProps;if(a=a.compare,a=a!==null?a:Ui,a(s,o)&&e.ref===t.ref)return kl(e,t,n)}return t.flags|=1,e=Sl(l,o),e.ref=t.ref,e.return=t,t.child=e}function jv(e,t,a,o,n){if(e!==null){var l=e.memoizedProps;if(Ui(l,o)&&e.ref===t.ref&&t.type===e.type)if(ka=!1,t.pendingProps=o=l,lg(e,n))(e.flags&131072)!==0&&(ka=!0);else return t.lanes=e.lanes,kl(e,t,n)}return Kh(e,t,a,o,n)}function Xv(e,t,a,o){var n=o.children,l=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:kc,_pendingMarkers:null,_retryCache:null,_transitions:null}),o.mode==="hidden"){if((t.flags&128)!==0){if(l=l!==null?l.baseLanes|a:a,e!==null){o=t.child=e.child;for(n=0;o!==null;)n=n|o.lanes|o.childLanes,o=o.sibling;o=n&~l}else o=0,t.child=null;return Yv(e,t,l,a,o)}if((a&536870912)!==0)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&gf(t,l!==null?l.cachePool:null),l!==null?iv(t,l):bh(t),cv(t);else return o=t.lanes=536870912,Yv(e,t,l!==null?l.baseLanes|a:a,a,o)}else l!==null?(gf(t,l.cachePool),iv(t,l),sr(t),t.memoizedState=null):(e!==null&&gf(t,null),bh(t),sr(t));return Va(e,t,n,a),t.child}function Zi(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:kc,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Yv(e,t,a,o,n){var l=mh();return l=l===null?null:{parent:xa._currentValue,pool:l},t.memoizedState={baseLanes:a,cachePool:l},e!==null&&gf(t,null),bh(t),cv(t),e!==null&&fu(e,t,o,!0),t.childLanes=n,null}function Uf(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=
|
|
131
|
+
+ <Activity %s>`,a===!0?"hidden":a===!1?"hidden={false}":"hidden={...}",a?'mode="hidden"':'mode="visible"'),t=Pf({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Qv(e,t,a){return As(t,e.child,null,a),e=Uf(t,t.pendingProps),e.flags|=2,Ro(t),t.memoizedState=null,e}function uI(e,t,a){var o=t.pendingProps,n=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(yt){if(o.mode==="hidden")return e=Uf(t,o),t.lanes=536870912,Zi(null,e);if(Sh(t),(e=Zt)?(a=Sx(e,Zo),a=a!==null&&a.data===zs?a:null,a!==null&&(o={dehydrated:a,treeContext:H0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=P0(a),o.return=t,t.child=o,Xa=t,Zt=null)):a=null,a===null)throw cf(t,e),tr(t);return t.lanes=536870912,null}return Uf(t,o)}var l=e.memoizedState;if(l!==null){var s=l.dehydrated;if(Sh(t),n)if(t.flags&256)t.flags&=-257,t=Qv(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(G0(),(a&536870912)!==0&&Vf(t),ka||fu(e,t,a,!1),n=(a&e.childLanes)!==0,ka||n){if(o=Vt,o!==null&&(s=os(o,a),s!==0&&s!==l.retryLane))throw l.retryLane=s,Wa(e,s),ra(o,e,s),Vy;$f(),t=Qv(e,t,a)}else e=l.treeContext,Zt=Ao(s.nextSibling),Xa=t,yt=!0,Sr=null,el=!1,qo=null,Zo=!1,e!==null&&F0(t,e),t=Uf(t,o),t.flags|=4096;return t}return l=e.child,o={mode:o.mode,children:o.children},(a&536870912)!==0&&(a&e.lanes)!==0&&Vf(t),e=Sl(l,o),e.ref=t.ref,t.child=e,e.return=t,e}function zf(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 Kh(e,t,a,o,n){if(a.prototype&&typeof a.prototype.render==="function"){var l=j(a)||"Unknown";BC[l]||(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.",l,l),BC[l]=!0)}if(t.mode&Ja&&hn.recordLegacyContextWarning(t,null),e===null&&(Jh(t,t.type),a.contextTypes&&(l=j(a)||"Unknown",UC[l]||(UC[l]=!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)",l)))),fs(t),a=Lh(e,t,a,o,void 0,n),o=kh(),e!==null&&!ka)return wh(e,t,n),kl(e,t,n);return yt&&o&&lh(t),t.flags|=1,Va(e,t,a,n),t.child}function Zv(e,t,a,o,n,l){if(fs(t),zl=-1,Fc=e!==null&&e.type!==t.type,t.updateQueue=null,a=Ch(t,o,a,n),dv(e,t),o=kh(),e!==null&&!ka)return wh(e,t,l),kl(e,t,l);return yt&&o&&lh(t),t.flags|=1,Va(e,t,a,l),t.child}function Wv(e,t,a,o,n){switch(m(t)){case!1:var l=t.stateNode,s=new t.type(t.memoizedProps,l.context).state;l.updater.enqueueSetState(l,s,null);break;case!0:t.flags|=128,t.flags|=65536,l=Error("Simulated error coming from DevTools");var c=n&-n;if(t.lanes|=c,s=Vt,s===null)throw Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");c=Zh(c),Wh(c,s,t,wo(l,t)),Lf(t,c)}if(fs(t),t.stateNode===null){if(s=vr,l=a.contextType,"contextType"in a&&l!==null&&(l===void 0||l.$$typeof!==Yn)&&!OC.has(a)&&(OC.add(a),c=l===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 l!=="object"?" However, it is set to a "+typeof l+".":l.$$typeof===$g?" Did you accidentally pass the Context.Consumer instead?":" However, it is set to an object with keys {"+Object.keys(l).join(", ")+"}.",console.error("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",j(a)||"Component",c)),typeof l==="object"&&l!==null&&(s=ea(l)),l=new a(o,s),t.mode&Ja){jt(!0);try{l=new a(o,s)}finally{jt(!1)}}if(s=t.memoizedState=l.state!==null&&l.state!==void 0?l.state:null,l.updater=Fy,t.stateNode=l,l._reactInternals=t,l._reactInternalInstance=kC,typeof a.getDerivedStateFromProps==="function"&&s===null&&(s=j(a)||"Component",TC.has(s)||(TC.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,l.state===null?"null":"undefined",s))),typeof a.getDerivedStateFromProps==="function"||typeof l.getSnapshotBeforeUpdate==="function"){var p=c=s=null;if(typeof l.componentWillMount==="function"&&l.componentWillMount.__suppressDeprecationWarning!==!0?s="componentWillMount":typeof l.UNSAFE_componentWillMount==="function"&&(s="UNSAFE_componentWillMount"),typeof l.componentWillReceiveProps==="function"&&l.componentWillReceiveProps.__suppressDeprecationWarning!==!0?c="componentWillReceiveProps":typeof l.UNSAFE_componentWillReceiveProps==="function"&&(c="UNSAFE_componentWillReceiveProps"),typeof l.componentWillUpdate==="function"&&l.componentWillUpdate.__suppressDeprecationWarning!==!0?p="componentWillUpdate":typeof l.UNSAFE_componentWillUpdate==="function"&&(p="UNSAFE_componentWillUpdate"),s!==null||c!==null||p!==null){l=j(a)||"Component";var g=typeof a.getDerivedStateFromProps==="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";RC.has(l)||(RC.add(l),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
|
|
|
135
135
|
The above lifecycles should be removed. Learn more about this warning here:
|
|
136
|
-
https://react.dev/link/unsafe-component-lifecycles`,
|
|
137
|
-
`+s:"",
|
|
138
|
-
`+
|
|
139
|
-
`+
|
|
140
|
-
%s.childContextTypes = ...`,t.displayName||t.name||"Component"),typeof t.getDerivedStateFromProps==="function"&&(e=Z(t)||"Unknown",DC[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),DC[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=Z(t)||"Unknown",MC[t]||(console.error("%s: Function components do not support contextType.",t),MC[t]=!0))}function Zh(e){return{baseLanes:e,cachePool:G0()}}function Wh(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=vo),e}function Xv(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&_d)!==0),o&&(n=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(dt){if(n?sr(t):ur(t),(e=Vt)?(a=px(e,Zo),a=a!==null&&a.data!==Ps?a:null,a!==null&&(o={dehydrated:a,treeContext:q0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=E0(a),o.return=t,t.child=o,ja=t,Vt=null)):a=null,a===null)throw sf(t,e),ar(t);return Ag(a)?t.lanes=32:t.lanes=536870912,null}var d=l.children;if(l=l.fallback,n){ur(t);var m=t.mode;return d=Uf({mode:"hidden",children:d},m),l=is(l,m,a,null),d.return=t,l.return=t,d.sibling=l,t.child=d,l=t.child,l.memoizedState=Zh(a),l.childLanes=Wh(e,o,a),t.memoizedState=Hy,Zi(null,l)}return sr(t),Kh(t,d)}var g=e.memoizedState;if(g!==null){var A=g.dehydrated;if(A!==null){if(s)t.flags&256?(sr(t),t.flags&=-257,t=Jh(e,t,a)):t.memoizedState!==null?(ur(t),t.child=e.child,t.flags|=128,t=null):(ur(t),d=l.fallback,m=t.mode,l=Uf({mode:"visible",children:l.children},m),d=is(d,m,a,null),d.flags|=2,l.return=t,d.return=t,l.sibling=d,t.child=l,As(t,e.child,null,a),l=t.child,l.memoizedState=Zh(a),l.childLanes=Wh(e,o,a),t.memoizedState=Hy,t=Zi(null,l));else if(sr(t),N0(),(a&536870912)!==0&&Ff(t),Ag(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"&&Sy.set(d,l),zi(l),t=Jh(e,t,a)}else if(La||fu(e,t,a,!1),o=(a&e.childLanes)!==0,La||o){if(o=Pt,o!==null&&(l=os(o,a),l!==0&&l!==g.retryLane))throw g.retryLane=l,Wa(e,l),oa(o,e,l),_y;Mg(A)||Gf(),t=Jh(e,t,a)}else Mg(A)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Vt=Ao(A.nextSibling),ja=t,dt=!0,xr=null,Jl=!1,qo=null,Zo=!1,e!==null&&B0(t,e),t=Kh(t,l.children),t.flags|=4096);return t}}if(n)return ur(t),d=l.fallback,m=t.mode,T=e.child,A=T.sibling,l=Sn(T,{mode:"hidden",children:l.children}),l.subtreeFlags=T.subtreeFlags&65011712,A!==null?d=Sn(A,d):(d=is(d,m,a,null),d.flags|=2),d.return=t,l.return=t,l.sibling=d,t.child=l,Zi(null,l),l=t.child,d=e.child.memoizedState,d===null?d=Zh(a):(m=d.cachePool,m!==null?(T=va._currentValue,m=m.parent!==T?{parent:T,pool:T}:m):m=G0(),d={baseLanes:d.baseLanes|a,cachePool:m}),l.memoizedState=d,l.childLanes=Wh(e,o,a),t.memoizedState=Hy,Zi(e.child,l);return g!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Ff(t),sr(t),a=e.child,e=a.sibling,a=Sn(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 Kh(e,t){return t=Uf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Uf(e,t){return e=C(22,e,null,t),e.lanes=0,e}function Jh(e,t,a){return As(t,e.child,null,a),e=Kh(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function jv(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),nh(e.return,t,a)}function eg(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 Yv(e,t,a){var o=t.pendingProps,l=o.revealOrder,n=o.tail,s=o.children,d=ha.current;if((o=(d&_d)!==0)?(d=d&Qu|_d,t.flags|=128):d&=Qu,Ce(ha,d,t),d=l==null?"null":l,l!=="forwards"&&l!=="unstable_legacy-backwards"&&l!=="together"&&l!=="independent"&&!EC[d])if(EC[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,!Bp[d])if(n==null){if(l==="forwards"||l==="backwards"||l==="unstable_legacy-backwards")Bp[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"?(Bp[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"&&(Bp[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(!J0(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(!J0(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?(tr(),s=wd):s=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&jv(e,a,t);else if(e.tag===19)jv(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&&xf(e)===null&&(l=a),a=a.sibling;a=l,a===null?(l=t.child,t.child=null):(l=a.sibling,a.sibling=null),eg(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&&xf(e)===null){t.child=l;break}e=l.sibling,l.sibling=a,a=l,l=e}eg(t,!0,a,null,n,s);break;case"together":eg(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function kn(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),so=-1,Ar|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(fu(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=Sn(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Sn(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function tg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&df(e)?!0:!1}function YT(e,t,a){switch(t.tag){case 3:te(t,t.stateNode.containerInfo),or(t,va,e.memoizedState.cache),cs();break;case 27:case 5:je(t);break;case 4:te(t,t.stateNode.containerInfo);break;case 10:or(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,gh(t),null;break;case 13:if(o=t.memoizedState,o!==null){if(o.dehydrated!==null)return sr(t),t.flags|=128,null;if((a&t.child.childLanes)!==0)return Xv(e,t,a);return sr(t),e=kn(e,t,a),e!==null?e.sibling:null}sr(t);break;case 19:var l=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(fu(e,t,a,!1),o=(a&t.childLanes)!==0),l){if(o)return Yv(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,_v(e,t,a,t.pendingProps);case 24:or(t,va,e.memoizedState.cache)}return kn(e,t,a)}function ag(e,t,a){if(t._debugNeedsRemount&&e!==null){a=Km(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(!tg(e,a)&&(t.flags&128)===0)return La=!1,YT(e,t,a);La=(e.flags&131072)!==0?!0:!1}else{if(La=!1,o=dt)tr(),o=(t.flags&1048576)!==0;o&&(o=t.index,tr(),O0(t,wd,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=lr(t.elementType),t.type=e,typeof e==="function")Wm(e)?(o=ys(e,o),t.tag=1,t.type=e=us(e),t=Vv(null,t,e,o,a)):(t.tag=0,Qh(t,e),t.type=e=us(e),t=Yh(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(l=e.$$typeof,l===fd){t.tag=11,t.type=e=Zm(e),t=Uv(null,t,e,o,a);break e}else if(l===op){t.tag=14,t=Pv(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===Do&&(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 Yh(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,l=ys(o,t.pendingProps),Vv(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,ph(e,t),Xi(t,o,null,a);var s=t.memoizedState;if(o=s.cache,or(t,va,o),o!==n.cache&&rh(t,[va],a,!0),$i(),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=$v(e,t,o,a);break e}else if(o!==l){l=wo(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),zi(l),t=$v(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=Ao(e.firstChild),ja=t,dt=!0,xr=null,Jl=!1,qo=null,Zo=!0,a=sC(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(cs(),o===l){t=kn(e,t,a);break e}Va(e,t,o,a)}t=t.child}return t;case 26:return Nf(e,t),e===null?(a=vx(t.type,null,t.pendingProps,null))?t.memoizedState=a:dt||(a=t.type,e=t.pendingProps,o=qe(mr.current),o=jf(o).createElement(a),o[Xa]=t,o[lo]=e,$a(o,a,e),Ee(o),t.stateNode=o):t.memoizedState=vx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return je(t),e===null&&dt&&(o=qe(mr.current),l=ke(),o=t.stateNode=yx(t.type,t.pendingProps,o,l,!1),Jl||(l=nx(o,t.type,t.pendingProps,l),l!==null&&(ds(t,0).serverProps=l)),ja=t,Zo=!0,l=Vt,fr(t.type)?(db=l,Vt=Ao(o.firstChild)):Vt=l),Va(e,t,t.pendingProps.children,a),Nf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&dt&&(n=ke(),o=Fm(t.type,n.ancestorInfo),l=Vt,(s=!l)||(s=NI(l,t.type,t.pendingProps,Zo),s!==null?(t.stateNode=s,Jl||(n=nx(s,t.type,t.pendingProps,n),n!==null&&(ds(t,0).serverProps=n)),ja=t,Vt=Ao(s.firstChild),Zo=!1,n=!0):n=!1,s=!n),s&&(o&&sf(t,l),ar(t))),je(t),l=t.type,n=t.pendingProps,s=e!==null?e.memoizedProps:null,o=n.children,Ig(l,n)?o=null:s!==null&&Ig(l,s)&&(t.flags|=32),t.memoizedState!==null&&(l=bh(e,t,_T,null,null,a),lc._currentValue=l),Nf(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?Wc(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=Vt,(o=!e)||(o=UI(e,t.pendingProps,Zo),o!==null?(t.stateNode=o,ja=t,Vt=null,o=!0):o=!1,o=!o),o&&(a&&sf(t,e),ar(t))),null;case 13:return Xv(e,t,a);case 4:return te(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=As(t,null,o,a):Va(e,t,o,a),t.child;case 11:return Uv(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||OC||(OC=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),or(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."),fs(t),l=Qt(l),o=Ry(o,l,void 0),t.flags|=1,Va(e,t,o,a),t.child;case 14:return Pv(e,t,t.type,t.pendingProps,a);case 15:return zv(e,t,t.type,t.pendingProps,a);case 19:return Yv(e,t,a);case 31:return jT(e,t,a);case 22:return _v(e,t,a,t.pendingProps);case 24:return fs(t),o=Qt(va),e===null?(l=dh(),l===null&&(l=Pt,n=sh(),l.pooledCache=n,ps(n),n!==null&&(l.pooledCacheLanes|=a),l=n),t.memoizedState={parent:o,cache:l},fh(t),or(t,va,l)):((e.lanes&a)!==0&&(ph(e,t),Xi(t,null,null,a),$i()),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),or(t,va,o)):(o=n.cache,or(t,va,o),o!==l.cache&&rh(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 wn(e){e.flags|=4}function og(e,t,a,o,l){if(t=(e.mode&mM)!==Pe)t=!1;if(t){if(e.flags|=16777216,(l&335544128)===l)if(e.stateNode.complete)e.flags|=8192;else if(IS())e.flags|=8192;else throw Ms=Mp,Ay}else e.flags&=-16777217}function Qv(e,t){if(t.type!=="stylesheet"||(t.state.loading&tl)!==Hs)e.flags&=-16777217;else if(e.flags|=16777216,!kx(t))if(IS())e.flags|=8192;else throw Ms=Mp,Ay}function Pf(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ru():536870912,e.lanes|=t,Bs|=t)}function Wi(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)!==Pe){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)!==Pe){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 QT(e,t,a){var o=t.pendingProps;switch(ah(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),Ln(va,t),ve(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)cu(t)?(lh(),wn(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,oh());return Ht(t),null;case 26:var{type:l,memoizedState:n}=t;return e===null?(wn(t),n!==null?(Ht(t),Qv(t,n)):(Ht(t),og(t,l,null,o,a))):n?n!==e.memoizedState?(wn(t),Ht(t),Qv(t,n)):(Ht(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&wn(t),Ht(t),og(t,l,e,o,a)),null;case 27:if(ae(t),a=qe(mr.current),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&wn(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(),cu(t)?U0(t,e):(e=yx(l,o,a,e,!0),t.stateNode=e,wn(t))}return Ht(t),null;case 5:if(ae(t),l=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&wn(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(cu(t))U0(t,s);else{switch(n=qe(mr.current),Fm(l,s.ancestorInfo),s=s.context,n=jf(n),s){case si:n=n.createElementNS(Du,l);break;case tm:n=n.createElementNS(dp,l);break;default:switch(l){case"svg":n=n.createElementNS(Du,l);break;case"math":n=n.createElementNS(dp,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]"||cl.call(o1,l)||(o1[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[lo]=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&&wn(t)}}return Ht(t),og(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&wn(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=qe(mr.current),a=ke(),cu(t)){if(e=t.stateNode,a=t.memoizedProps,l=!Jl,o=null,n=ja,n!==null)switch(n.tag){case 3:l&&(l=hx(e,a,o),l!==null&&(ds(t,0).serverProps=l));break;case 27:case 5:o=n.memoizedProps,l&&(l=hx(e,a,o),l!==null&&(ds(t,0).serverProps=l))}e[Xa]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||ex(e.nodeValue,a)?!0:!1,e||ar(t,!0)}else l=a.ancestorInfo.current,l!=null&&Wc(o,l.tag,a.ancestorInfo.implicitRootScope),e=jf(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=cu(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)!==Pe&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else lh(),cs(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Ht(t),(t.mode&tt)!==Pe&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=oh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Ro(t),t;return Ro(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=cu(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)!==Pe&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration))}else lh(),cs(),(t.flags&128)===0&&(l=t.memoizedState=null),t.flags|=4,Ht(t),(t.mode&tt)!==Pe&&l!==null&&(l=t.child,l!==null&&(t.treeBaseDuration-=l.treeBaseDuration));l=!1}else l=oh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=l),l=!0;if(!l){if(t.flags&256)return Ro(t),t;return Ro(t),null}}if(Ro(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&tt)!==Pe&&Fi(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),Pf(t,t.updateQueue),Ht(t),(t.mode&tt)!==Pe&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return ve(t),e===null&&Sg(t.stateNode.containerInfo),Ht(t),null;case 10:return Ln(t.type,t),Ht(t),null;case 19:if(Be(ha,t),o=t.memoizedState,o===null)return Ht(t),null;if(l=(t.flags&128)!==0,n=o.rendering,n===null)if(l)Wi(o,!1);else{if(ea!==_n||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(n=xf(e),n!==null){t.flags|=128,Wi(o,!1),e=n.updateQueue,t.updateQueue=e,Pf(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)D0(a,e),a=a.sibling;return Ce(ha,ha.current&Qu|_d,t),dt&&xn(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ba()>Fp&&(t.flags|=128,l=!0,Wi(o,!1),t.lanes=4194304)}else{if(!l)if(e=xf(n),e!==null){if(t.flags|=128,l=!0,e=e.updateQueue,t.updateQueue=e,Pf(t,e),Wi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!n.alternate&&!dt)return Ht(t),null}else 2*Ba()-o.renderingStartTime>Fp&&a!==536870912&&(t.flags|=128,l=!0,Wi(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&Qu|_d:a&Qu,Ce(ha,a,t),dt&&xn(t,o.treeForkCount),e;return Ht(t),null;case 22:case 23:return Ro(t),hh(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&&Pf(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&&Be(Is,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ln(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 ZT(e,t){switch(ah(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==Pe&&Fi(t),t):null;case 3:return Ln(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(Ro(t),t.alternate===null)throw Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==Pe&&Fi(t),t):null;case 13:if(Ro(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.");cs()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==Pe&&Fi(t),t):null;case 19:return Be(ha,t),null;case 4:return ve(t),null;case 10:return Ln(t.type,t),null;case 22:case 23:return Ro(t),hh(t),e!==null&&Be(Is,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&tt)!==Pe&&Fi(t),t):null;case 24:return Ln(va,t),null;case 25:return null;default:return null}}function Zv(e,t){switch(ah(t),t.tag){case 3:Ln(va,t),ve(t);break;case 26:case 27:case 5:ae(t);break;case 4:ve(t);break;case 31:t.memoizedState!==null&&Ro(t);break;case 13:Ro(t);break;case 19:Be(ha,t);break;case 10:Ln(t.type,t);break;case 22:case 23:Ro(t),hh(t),e!==null&&Be(Is,t);break;case 24:Ln(va,t)}}function _l(e){return(e.mode&tt)!==Pe}function Wv(e,t){_l(e)?(zl(),Ki(t,e),Pl()):Ki(t,e)}function lg(e,t,a){_l(e)?(zl(),yu(a,e,t),Pl()):yu(a,e,t)}function Ki(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&uo)!==Dp&&(li=!0),o=re(t,vM,a),(e&uo)!==Dp&&(li=!1),o!==void 0&&typeof o!=="function")){var n=void 0;n=(a.tag&No)!==0?"useLayoutEffect":(a.tag&uo)!==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"?`
|
|
136
|
+
https://react.dev/link/unsafe-component-lifecycles`,l,g,s!==null?`
|
|
137
|
+
`+s:"",c!==null?`
|
|
138
|
+
`+c:"",p!==null?`
|
|
139
|
+
`+p:""))}}l=t.stateNode,s=j(a)||"Component",l.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)),!l.getInitialState||l.getInitialState.isReactClassApproved||l.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),l.getDefaultProps&&!l.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),l.contextType&&console.error("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",s),a.childContextTypes&&!EC.has(a)&&(EC.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&&!DC.has(a)&&(DC.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 l.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 l.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.",j(a)||"A pure component"),typeof l.componentDidUnmount==="function"&&console.error("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",s),typeof l.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 l.componentWillRecieveProps==="function"&&console.error("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",s),typeof l.UNSAFE_componentWillRecieveProps==="function"&&console.error("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",s),c=l.props!==o,l.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",s),l.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 l.getSnapshotBeforeUpdate!=="function"||typeof l.componentDidUpdate==="function"||IC.has(a)||(IC.add(a),console.error("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",j(a))),typeof l.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 l.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),(c=l.state)&&(typeof c!=="object"||Ma(c))&&console.error("%s.state: must be set to an object or null",s),typeof l.getChildContext==="function"&&typeof a.childContextTypes!=="object"&&console.error("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",s),l=t.stateNode,l.props=o,l.state=t.memoizedState,l.refs={},gh(t),s=a.contextType,l.context=typeof s==="object"&&s!==null?ea(s):vr,l.state===o&&(s=j(a)||"Component",MC.has(s)||(MC.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&&hn.recordLegacyContextWarning(t,l),hn.recordUnsafeLifecycleWarnings(t,l),l.state=t.memoizedState,s=a.getDerivedStateFromProps,typeof s==="function"&&(Yh(t,a,s,o),l.state=t.memoizedState),typeof a.getDerivedStateFromProps==="function"||typeof l.getSnapshotBeforeUpdate==="function"||typeof l.UNSAFE_componentWillMount!=="function"&&typeof l.componentWillMount!=="function"||(s=l.state,typeof l.componentWillMount==="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount==="function"&&l.UNSAFE_componentWillMount(),s!==l.state&&(console.error("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",_(t)||"Component"),Fy.enqueueReplaceState(l,l.state,null)),ji(t,o,l,n),$i(),l.state=t.memoizedState),typeof l.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&mn)!==_e&&(t.flags|=134217728),l=!0}else if(e===null){l=t.stateNode;var E=t.memoizedProps;c=ys(a,E),l.props=c;var O=l.context;p=a.contextType,s=vr,typeof p==="object"&&p!==null&&(s=ea(p)),g=a.getDerivedStateFromProps,p=typeof g==="function"||typeof l.getSnapshotBeforeUpdate==="function",E=t.pendingProps!==E,p||typeof l.UNSAFE_componentWillReceiveProps!=="function"&&typeof l.componentWillReceiveProps!=="function"||(E||O!==s)&&Pv(t,l,o,s),Tr=!1;var I=t.memoizedState;l.state=I,ji(t,o,l,n),$i(),O=t.memoizedState,E||I!==O||Tr?(typeof g==="function"&&(Yh(t,a,g,o),O=t.memoizedState),(c=Tr||zv(t,a,c,o,I,O,s))?(p||typeof l.UNSAFE_componentWillMount!=="function"&&typeof l.componentWillMount!=="function"||(typeof l.componentWillMount==="function"&&l.componentWillMount(),typeof l.UNSAFE_componentWillMount==="function"&&l.UNSAFE_componentWillMount()),typeof l.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&mn)!==_e&&(t.flags|=134217728)):(typeof l.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&mn)!==_e&&(t.flags|=134217728),t.memoizedProps=o,t.memoizedState=O),l.props=o,l.state=O,l.context=s,l=c):(typeof l.componentDidMount==="function"&&(t.flags|=4194308),(t.mode&mn)!==_e&&(t.flags|=134217728),l=!1)}else{l=t.stateNode,yh(e,t),s=t.memoizedProps,p=ys(a,s),l.props=p,g=t.pendingProps,I=l.context,O=a.contextType,c=vr,typeof O==="object"&&O!==null&&(c=ea(O)),E=a.getDerivedStateFromProps,(O=typeof E==="function"||typeof l.getSnapshotBeforeUpdate==="function")||typeof l.UNSAFE_componentWillReceiveProps!=="function"&&typeof l.componentWillReceiveProps!=="function"||(s!==g||I!==c)&&Pv(t,l,o,c),Tr=!1,I=t.memoizedState,l.state=I,ji(t,o,l,n),$i();var z=t.memoizedState;s!==g||I!==z||Tr||e!==null&&e.dependencies!==null&&ff(e.dependencies)?(typeof E==="function"&&(Yh(t,a,E,o),z=t.memoizedState),(p=Tr||zv(t,a,p,o,I,z,c)||e!==null&&e.dependencies!==null&&ff(e.dependencies))?(O||typeof l.UNSAFE_componentWillUpdate!=="function"&&typeof l.componentWillUpdate!=="function"||(typeof l.componentWillUpdate==="function"&&l.componentWillUpdate(o,z,c),typeof l.UNSAFE_componentWillUpdate==="function"&&l.UNSAFE_componentWillUpdate(o,z,c)),typeof l.componentDidUpdate==="function"&&(t.flags|=4),typeof l.getSnapshotBeforeUpdate==="function"&&(t.flags|=1024)):(typeof l.componentDidUpdate!=="function"||s===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),t.memoizedProps=o,t.memoizedState=z),l.props=o,l.state=z,l.context=c,l=p):(typeof l.componentDidUpdate!=="function"||s===e.memoizedProps&&I===e.memoizedState||(t.flags|=4),typeof l.getSnapshotBeforeUpdate!=="function"||s===e.memoizedProps&&I===e.memoizedState||(t.flags|=1024),l=!1)}if(c=l,zf(e,t),s=(t.flags&128)!==0,c||s){if(c=t.stateNode,Pe(t),s&&typeof a.getDerivedStateFromError!=="function")a=null,so=-1;else if(a=eC(c),t.mode&Ja){jt(!0);try{eC(c)}finally{jt(!1)}}t.flags|=1,e!==null&&s?(t.child=As(t,e.child,null,n),t.child=As(t,null,a,n)):Va(e,t,a,n),t.memoizedState=c.state,e=t.child}else e=kl(e,t,n);return n=t.stateNode,l&&n.props!==o&&(Ju||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",_(t)||"a component"),Ju=!0),e}function Kv(e,t,a,o){return ds(),t.flags|=256,Va(e,t,a,o),t.child}function Jh(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=j(t)||"Unknown",zC[e]||(console.error("%s: Function components do not support getDerivedStateFromProps.",e),zC[e]=!0)),typeof t.contextType==="object"&&t.contextType!==null&&(t=j(t)||"Unknown",NC[t]||(console.error("%s: Function components do not support contextType.",t),NC[t]=!0))}function eg(e){return{baseLanes:e,cachePool:Z0()}}function tg(e,t,a){return e=e!==null?e.childLanes&~a:0,t&&(e|=vo),e}function Jv(e,t,a){var o,n=t.pendingProps;b(t)&&(t.flags|=128);var l=!1,s=(t.flags&128)!==0;if((o=s)||(o=e!==null&&e.memoizedState===null?!1:(ga.current&_c)!==0),o&&(l=!0,t.flags&=-129),o=(t.flags&32)!==0,t.flags&=-33,e===null){if(yt){if(l?rr(t):sr(t),(e=Zt)?(a=Sx(e,Zo),a=a!==null&&a.data!==zs?a:null,a!==null&&(o={dehydrated:a,treeContext:H0(),retryLane:536870912,hydrationErrors:null},t.memoizedState=o,o=P0(a),o.return=t,t.child=o,Xa=t,Zt=null)):a=null,a===null)throw cf(t,e),tr(t);return qg(a)?t.lanes=32:t.lanes=536870912,null}var c=n.children;if(n=n.fallback,l){sr(t);var p=t.mode;return c=Pf({mode:"hidden",children:c},p),n=is(n,p,a,null),c.return=t,n.return=t,c.sibling=n,t.child=c,n=t.child,n.memoizedState=eg(a),n.childLanes=tg(e,o,a),t.memoizedState=$y,Zi(null,n)}return rr(t),ag(t,c)}var g=e.memoizedState;if(g!==null){var E=g.dehydrated;if(E!==null){if(s)t.flags&256?(rr(t),t.flags&=-257,t=og(e,t,a)):t.memoizedState!==null?(sr(t),t.child=e.child,t.flags|=128,t=null):(sr(t),c=n.fallback,p=t.mode,n=Pf({mode:"visible",children:n.children},p),c=is(c,p,a,null),c.flags|=2,n.return=t,c.return=t,n.sibling=c,t.child=n,As(t,e.child,null,a),n=t.child,n.memoizedState=eg(a),n.childLanes=tg(e,o,a),t.memoizedState=$y,t=Zi(null,n));else if(rr(t),G0(),(a&536870912)!==0&&Vf(t),qg(E)){if(o=E.nextSibling&&E.nextSibling.dataset,o){c=o.dgst;var O=o.msg;p=o.stck;var I=o.cstck}l=O,o=c,n=p,E=I,c=l,p=E,c=c?Error(c):Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering."),c.stack=n||"",c.digest=o,o=p===void 0?null:p,n={value:c,source:null,stack:o},typeof o==="string"&&ky.set(c,n),Pi(n),t=og(e,t,a)}else if(ka||fu(e,t,a,!1),o=(a&e.childLanes)!==0,ka||o){if(o=Vt,o!==null&&(n=os(o,a),n!==0&&n!==g.retryLane))throw g.retryLane=n,Wa(e,n),ra(o,e,n),Vy;Og(E)||$f(),t=og(e,t,a)}else Og(E)?(t.flags|=192,t.child=e.child,t=null):(e=g.treeContext,Zt=Ao(E.nextSibling),Xa=t,yt=!0,Sr=null,el=!1,qo=null,Zo=!1,e!==null&&F0(t,e),t=ag(t,n.children),t.flags|=4096);return t}}if(l)return sr(t),c=n.fallback,p=t.mode,I=e.child,E=I.sibling,n=Sl(I,{mode:"hidden",children:n.children}),n.subtreeFlags=I.subtreeFlags&65011712,E!==null?c=Sl(E,c):(c=is(c,p,a,null),c.flags|=2),c.return=t,n.return=t,n.sibling=c,t.child=n,Zi(null,n),n=t.child,c=e.child.memoizedState,c===null?c=eg(a):(p=c.cachePool,p!==null?(I=xa._currentValue,p=p.parent!==I?{parent:I,pool:I}:p):p=Z0(),c={baseLanes:c.baseLanes|a,cachePool:p}),n.memoizedState=c,n.childLanes=tg(e,o,a),t.memoizedState=$y,Zi(e.child,n);return g!==null&&(a&62914560)===a&&(a&e.lanes)!==0&&Vf(t),rr(t),a=e.child,e=a.sibling,a=Sl(a,{mode:"visible",children:n.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 ag(e,t){return t=Pf({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function Pf(e,t){return e=k(22,e,null,t),e.lanes=0,e}function og(e,t,a){return As(t,e.child,null,a),e=ag(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function eS(e,t,a){e.lanes|=t;var o=e.alternate;o!==null&&(o.lanes|=t),ih(e.return,t,a)}function ng(e,t,a,o,n,l){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:o,tail:a,tailMode:n,treeForkCount:l}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=o,s.tail=a,s.tailMode=n,s.treeForkCount=l)}function tS(e,t,a){var o=t.pendingProps,n=o.revealOrder,l=o.tail,s=o.children,c=ga.current;if((o=(c&_c)!==0)?(c=c&Qu|_c,t.flags|=128):c&=Qu,Le(ga,c,t),c=n==null?"null":n,n!=="forwards"&&n!=="unstable_legacy-backwards"&&n!=="together"&&n!=="independent"&&!PC[c])if(PC[c]=!0,n==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(n==="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 n==="string")switch(n.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.',n,n.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.',n,n.toLowerCase());break;default:console.error('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',n)}else console.error('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?',n);if(c=l==null?"null":l,!Up[c])if(l==null){if(n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")Up[c]=!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 l!=="visible"&&l!=="collapsed"&&l!=="hidden"?(Up[c]=!0,console.error('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?',l)):n!=="forwards"&&n!=="backwards"&&n!=="unstable_legacy-backwards"&&(Up[c]=!0,console.error('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',l));e:if((n==="forwards"||n==="backwards"||n==="unstable_legacy-backwards")&&s!==void 0&&s!==null&&s!==!1)if(Ma(s)){for(c=0;c<s.length;c++)if(!rv(s[c],c))break e}else if(c=ee(s),typeof c==="function"){if(c=c.call(s))for(var p=c.next(),g=0;!p.done;p=c.next()){if(!rv(p.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?',n);if(Va(e,t,s,a),yt?(er(),s=wc):s=0,!o&&e!==null&&(e.flags&128)!==0)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&eS(e,a,t);else if(e.tag===19)eS(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(n){case"forwards":a=t.child;for(n=null;a!==null;)e=a.alternate,e!==null&&Cf(e)===null&&(n=a),a=a.sibling;a=n,a===null?(n=t.child,t.child=null):(n=a.sibling,a.sibling=null),ng(t,!1,n,a,l,s);break;case"backwards":case"unstable_legacy-backwards":a=null,n=t.child;for(t.child=null;n!==null;){if(e=n.alternate,e!==null&&Cf(e)===null){t.child=n;break}e=n.sibling,n.sibling=a,a=n,n=e}ng(t,!0,a,null,l,s);break;case"together":ng(t,!1,null,null,void 0,s);break;default:t.memoizedState=null}return t.child}function kl(e,t,a){if(e!==null&&(t.dependencies=e.dependencies),so=-1,Mr|=t.lanes,(a&t.childLanes)===0)if(e!==null){if(fu(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=Sl(e,e.pendingProps),t.child=a;for(a.return=t;e.sibling!==null;)e=e.sibling,a=a.sibling=Sl(e,e.pendingProps),a.return=t;a.sibling=null}return t.child}function lg(e,t){if((e.lanes&t)!==0)return!0;return e=e.dependencies,e!==null&&ff(e)?!0:!1}function iI(e,t,a){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),ar(t,xa,e.memoizedState.cache),ds();break;case 27:case 5:Xe(t);break;case 4:oe(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,Sh(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 Jv(e,t,a);return rr(t),e=kl(e,t,a),e!==null?e.sibling:null}rr(t);break;case 19:var n=(e.flags&128)!==0;if(o=(a&t.childLanes)!==0,o||(fu(e,t,a,!1),o=(a&t.childLanes)!==0),n){if(o)return tS(e,t,a);t.flags|=128}if(n=t.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Le(ga,ga.current,t),o)break;else return null;case 22:return t.lanes=0,Xv(e,t,a,t.pendingProps);case 24:ar(t,xa,e.memoizedState.cache)}return kl(e,t,a)}function rg(e,t,a){if(t._debugNeedsRemount&&e!==null){a=ah(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 n=o.child;if(n===null)throw Error("Expected parent to have a child.");for(;n.sibling!==t;)if(n=n.sibling,n===null)throw Error("Expected to find the previous sibling.");n.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)ka=!0;else{if(!lg(e,a)&&(t.flags&128)===0)return ka=!1,iI(e,t,a);ka=(e.flags&131072)!==0?!0:!1}else{if(ka=!1,o=yt)er(),o=(t.flags&1048576)!==0;o&&(o=t.index,er(),_0(t,wc,o))}switch(t.lanes=0,t.tag){case 16:e:if(o=t.pendingProps,e=or(t.elementType),t.type=e,typeof e==="function")th(e)?(o=ys(e,o),t.tag=1,t.type=e=us(e),t=Wv(null,t,e,o,a)):(t.tag=0,Jh(t,e),t.type=e=us(e),t=Kh(null,t,e,o,a));else{if(e!==void 0&&e!==null){if(n=e.$$typeof,n===fc){t.tag=11,t.type=e=eh(e),t=Vv(null,t,e,o,a);break e}else if(n===lp){t.tag=14,t=$v(null,t,e,o,a);break e}}throw t="",e!==null&&typeof e==="object"&&e.$$typeof===Do&&(t=" Did you wrap a component in React.lazy() more than once?"),a=j(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 Kh(e,t,t.type,t.pendingProps,a);case 1:return o=t.type,n=ys(o,t.pendingProps),Wv(e,t,o,n,a);case 3:e:{if(oe(t,t.stateNode.containerInfo),e===null)throw Error("Should have a current fiber. This is a bug in React.");o=t.pendingProps;var l=t.memoizedState;n=l.element,yh(e,t),ji(t,o,null,a);var s=t.memoizedState;if(o=s.cache,ar(t,xa,o),o!==l.cache&&ch(t,[xa],a,!0),$i(),o=s.element,l.isDehydrated)if(l={element:o,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=l,t.memoizedState=l,t.flags&256){t=Kv(e,t,o,a);break e}else if(o!==n){n=wo(Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),t),Pi(n),t=Kv(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}Zt=Ao(e.firstChild),Xa=t,yt=!0,Sr=null,el=!1,qo=null,Zo=!0,a=mC(t,null,o,a);for(t.child=a;a;)a.flags=a.flags&-3|4096,a=a.sibling}else{if(ds(),o===n){t=kl(e,t,a);break e}Va(e,t,o,a)}t=t.child}return t;case 26:return zf(e,t),e===null?(a=Tx(t.type,null,t.pendingProps,null))?t.memoizedState=a:yt||(a=t.type,e=t.pendingProps,o=Be(pr.current),o=Qf(o).createElement(a),o[ja]=t,o[no]=e,$a(o,a,e),Oe(o),t.stateNode=o):t.memoizedState=Tx(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Xe(t),e===null&&yt&&(o=Be(pr.current),n=ke(),o=t.stateNode=kx(t.type,t.pendingProps,o,n,!1),el||(n=fx(o,t.type,t.pendingProps,n),n!==null&&(cs(t,0).serverProps=n)),Xa=t,Zo=!0,n=Zt,dr(t.type)?(mb=n,Zt=Ao(o.firstChild)):Zt=n),Va(e,t,t.pendingProps.children,a),zf(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&yt&&(l=ke(),o=jm(t.type,l.ancestorInfo),n=Zt,(s=!n)||(s=WI(n,t.type,t.pendingProps,Zo),s!==null?(t.stateNode=s,el||(l=fx(s,t.type,t.pendingProps,l),l!==null&&(cs(t,0).serverProps=l)),Xa=t,Zt=Ao(s.firstChild),Zo=!1,l=!0):l=!1,s=!l),s&&(o&&cf(t,n),tr(t))),Xe(t),n=t.type,l=t.pendingProps,s=e!==null?e.memoizedProps:null,o=l.children,Dg(n,l)?o=null:s!==null&&Dg(n,s)&&(t.flags|=32),t.memoizedState!==null&&(n=Lh(e,t,tI,null,null,a),nd._currentValue=n),zf(e,t),Va(e,t,o,a),t.child;case 6:return e===null&&yt&&(a=t.pendingProps,e=ke(),o=e.ancestorInfo.current,a=o!=null?Jd(a,o.tag,e.ancestorInfo.implicitRootScope):!0,e=Zt,(o=!e)||(o=KI(e,t.pendingProps,Zo),o!==null?(t.stateNode=o,Xa=t,Zt=null,o=!0):o=!1,o=!o),o&&(a&&cf(t,e),tr(t))),null;case 13:return Jv(e,t,a);case 4:return oe(t,t.stateNode.containerInfo),o=t.pendingProps,e===null?t.child=As(t,null,o,a):Va(e,t,o,a),t.child;case 11:return Vv(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,n=t.pendingProps,l=n.value,"value"in n||_C||(_C=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),ar(t,o,l),Va(e,t,n.children,a),t.child;case 9:return n=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."),fs(t),n=ea(n),o=Ey(o,n,void 0),t.flags|=1,Va(e,t,o,a),t.child;case 14:return $v(e,t,t.type,t.pendingProps,a);case 15:return jv(e,t,t.type,t.pendingProps,a);case 19:return tS(e,t,a);case 31:return uI(e,t,a);case 22:return Xv(e,t,a,t.pendingProps);case 24:return fs(t),o=ea(xa),e===null?(n=mh(),n===null&&(n=Vt,l=dh(),n.pooledCache=l,ps(l),l!==null&&(n.pooledCacheLanes|=a),n=l),t.memoizedState={parent:o,cache:n},gh(t),ar(t,xa,n)):((e.lanes&a)!==0&&(yh(e,t),ji(t,null,null,a),$i()),n=e.memoizedState,l=t.memoizedState,n.parent!==o?(n={parent:o,cache:o},t.memoizedState=n,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=n),ar(t,xa,o)):(o=l.cache,ar(t,xa,o),o!==n.cache&&ch(t,[xa],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 wl(e){e.flags|=4}function sg(e,t,a,o,n){if(t=(e.mode&MM)!==_e)t=!1;if(t){if(e.flags|=16777216,(n&335544128)===n)if(e.stateNode.complete)e.flags|=8192;else if(qS())e.flags|=8192;else throw Ms=Dp,qy}else e.flags&=-16777217}function aS(e,t){if(t.type!=="stylesheet"||(t.state.loading&tn)!==Hs)e.flags&=-16777217;else if(e.flags|=16777216,!Dx(t))if(qS())e.flags|=8192;else throw Ms=Dp,qy}function _f(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?ru():536870912,e.lanes|=t,Bs|=t)}function Wi(e,t){if(!yt)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 Xt(e){var t=e.alternate!==null&&e.alternate.child===e.child,a=0,o=0;if(t)if((e.mode&nt)!==_e){for(var{selfBaseDuration:n,child:l}=e;l!==null;)a|=l.lanes|l.childLanes,o|=l.subtreeFlags&65011712,o|=l.flags&65011712,n+=l.treeBaseDuration,l=l.sibling;e.treeBaseDuration=n}else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags&65011712,o|=n.flags&65011712,n.return=e,n=n.sibling;else if((e.mode&nt)!==_e){n=e.actualDuration,l=e.selfBaseDuration;for(var s=e.child;s!==null;)a|=s.lanes|s.childLanes,o|=s.subtreeFlags,o|=s.flags,n+=s.actualDuration,l+=s.treeBaseDuration,s=s.sibling;e.actualDuration=n,e.treeBaseDuration=l}else for(n=e.child;n!==null;)a|=n.lanes|n.childLanes,o|=n.subtreeFlags,o|=n.flags,n.return=e,n=n.sibling;return e.subtreeFlags|=o,e.childLanes=a,t}function cI(e,t,a){var o=t.pendingProps;switch(rh(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Xt(t),null;case 1:return Xt(t),null;case 3:if(a=t.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),t.memoizedState.cache!==o&&(t.flags|=2048),Ll(xa,t),pe(t),a.pendingContext&&(a.context=a.pendingContext,a.pendingContext=null),e===null||e.child===null)du(t)?(uh(),wl(t)):e===null||e.memoizedState.isDehydrated&&(t.flags&256)===0||(t.flags|=1024,sh());return Xt(t),null;case 26:var{type:n,memoizedState:l}=t;return e===null?(wl(t),l!==null?(Xt(t),aS(t,l)):(Xt(t),sg(t,n,null,o,a))):l?l!==e.memoizedState?(wl(t),Xt(t),aS(t,l)):(Xt(t),t.flags&=-16777217):(e=e.memoizedProps,e!==o&&wl(t),Xt(t),sg(t,n,e,o,a)),null;case 27:if(vt(t),a=Be(pr.current),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&wl(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 Xt(t),null}e=ke(),du(t)?V0(t,e):(e=kx(n,o,a,e,!0),t.stateNode=e,wl(t))}return Xt(t),null;case 5:if(vt(t),n=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==o&&wl(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 Xt(t),null}var s=ke();if(du(t))V0(t,s);else{switch(l=Be(pr.current),jm(n,s.ancestorInfo),s=s.context,l=Qf(l),s){case si:l=l.createElementNS(Du,n);break;case om:l=l.createElementNS(fp,n);break;default:switch(n){case"svg":l=l.createElementNS(Du,n);break;case"math":l=l.createElementNS(fp,n);break;case"script":l=l.createElement("div"),l.innerHTML="<script></script>",l=l.removeChild(l.firstChild);break;case"select":l=typeof o.is==="string"?l.createElement("select",{is:o.is}):l.createElement("select"),o.multiple?l.multiple=!0:o.size&&(l.size=o.size);break;default:l=typeof o.is==="string"?l.createElement(n,{is:o.is}):l.createElement(n),n.indexOf("-")===-1&&(n!==n.toLowerCase()&&console.error("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",n),Object.prototype.toString.call(l)!=="[object HTMLUnknownElement]"||fn.call(c1,n)||(c1[n]=!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.",n)))}}l[ja]=t,l[no]=o;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)l.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=l;e:switch($a(l,n,o),n){case"button":case"input":case"select":case"textarea":o=!!o.autoFocus;break e;case"img":o=!0;break e;default:o=!1}o&&wl(t)}}return Xt(t),sg(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,a),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==o&&wl(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,n=!el,o=null,l=Xa,l!==null)switch(l.tag){case 3:n&&(n=Lx(e,a,o),n!==null&&(cs(t,0).serverProps=n));break;case 27:case 5:o=l.memoizedProps,n&&(n=Lx(e,a,o),n!==null&&(cs(t,0).serverProps=n))}e[ja]=t,e=e.nodeValue===a||o!==null&&o.suppressHydrationWarning===!0||sx(e.nodeValue,a)?!0:!1,e||tr(t,!0)}else n=a.ancestorInfo.current,n!=null&&Jd(o,n.tag,a.ancestorInfo.implicitRootScope),e=Qf(e).createTextNode(o),e[ja]=t,t.stateNode=e}return Xt(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[ja]=t,Xt(t),(t.mode&nt)!==_e&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else uh(),ds(),(t.flags&128)===0&&(a=t.memoizedState=null),t.flags|=4,Xt(t),(t.mode&nt)!==_e&&a!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else a=sh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),e=!0;if(!e){if(t.flags&256)return Ro(t),t;return Ro(t),null}if((t.flags&128)!==0)throw Error("Client rendering an Activity suspended it again. This is a bug in React.")}return Xt(t),null;case 13:if(o=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(n=o,l=du(t),n!==null&&n.dehydrated!==null){if(e===null){if(!l)throw Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(l=t.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");l[ja]=t,Xt(t),(t.mode&nt)!==_e&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration))}else uh(),ds(),(t.flags&128)===0&&(n=t.memoizedState=null),t.flags|=4,Xt(t),(t.mode&nt)!==_e&&n!==null&&(n=t.child,n!==null&&(t.treeBaseDuration-=n.treeBaseDuration));n=!1}else n=sh(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),n=!0;if(!n){if(t.flags&256)return Ro(t),t;return Ro(t),null}}if(Ro(t),(t.flags&128)!==0)return t.lanes=a,(t.mode&nt)!==_e&&Fi(t),t;return a=o!==null,e=e!==null&&e.memoizedState!==null,a&&(o=t.child,n=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(n=o.alternate.memoizedState.cachePool.pool),l=null,o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool),l!==n&&(o.flags|=2048)),a!==e&&a&&(t.child.flags|=8192),_f(t,t.updateQueue),Xt(t),(t.mode&nt)!==_e&&a&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null;case 4:return pe(t),e===null&&kg(t.stateNode.containerInfo),Xt(t),null;case 10:return Ll(t.type,t),Xt(t),null;case 19:if(ve(ga,t),o=t.memoizedState,o===null)return Xt(t),null;if(n=(t.flags&128)!==0,l=o.rendering,l===null)if(n)Wi(o,!1);else{if(oa!==_l||e!==null&&(e.flags&128)!==0)for(e=t.child;e!==null;){if(l=Cf(e),l!==null){t.flags|=128,Wi(o,!1),e=l.updateQueue,t.updateQueue=e,_f(t,e),t.subtreeFlags=0,e=a;for(a=t.child;a!==null;)z0(a,e),a=a.sibling;return Le(ga,ga.current&Qu|_c,t),yt&&xl(t,o.treeForkCount),t.child}e=e.sibling}o.tail!==null&&Ba()>Vp&&(t.flags|=128,n=!0,Wi(o,!1),t.lanes=4194304)}else{if(!n)if(e=Cf(l),e!==null){if(t.flags|=128,n=!0,e=e.updateQueue,t.updateQueue=e,_f(t,e),Wi(o,!0),o.tail===null&&o.tailMode==="hidden"&&!l.alternate&&!yt)return Xt(t),null}else 2*Ba()-o.renderingStartTime>Vp&&a!==536870912&&(t.flags|=128,n=!0,Wi(o,!1),t.lanes=4194304);o.isBackwards?(l.sibling=t.child,t.child=l):(e=o.last,e!==null?e.sibling=l:t.child=l,o.last=l)}if(o.tail!==null)return e=o.tail,o.rendering=e,o.tail=e.sibling,o.renderingStartTime=Ba(),e.sibling=null,a=ga.current,a=n?a&Qu|_c:a&Qu,Le(ga,a,t),yt&&xl(t,o.treeForkCount),e;return Xt(t),null;case 22:case 23:return Ro(t),vh(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&&(Xt(t),t.subtreeFlags&6&&(t.flags|=8192)):Xt(t),a=t.updateQueue,a!==null&&_f(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&&ve(Is,t),null;case 24:return a=null,e!==null&&(a=e.memoizedState.cache),t.memoizedState.cache!==a&&(t.flags|=2048),Ll(xa,t),Xt(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 dI(e,t){switch(rh(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&nt)!==_e&&Fi(t),t):null;case 3:return Ll(xa,t),pe(t),e=t.flags,(e&65536)!==0&&(e&128)===0?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return vt(t),null;case 31:if(t.memoizedState!==null){if(Ro(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&nt)!==_e&&Fi(t),t):null;case 13:if(Ro(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&nt)!==_e&&Fi(t),t):null;case 19:return ve(ga,t),null;case 4:return pe(t),null;case 10:return Ll(t.type,t),null;case 22:case 23:return Ro(t),vh(t),e!==null&&ve(Is,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&nt)!==_e&&Fi(t),t):null;case 24:return Ll(xa,t),null;case 25:return null;default:return null}}function oS(e,t){switch(rh(t),t.tag){case 3:Ll(xa,t),pe(t);break;case 26:case 27:case 5:vt(t);break;case 4:pe(t);break;case 31:t.memoizedState!==null&&Ro(t);break;case 13:Ro(t);break;case 19:ve(ga,t);break;case 10:Ll(t.type,t);break;case 22:case 23:Ro(t),vh(t),e!==null&&ve(Is,t);break;case 24:Ll(xa,t)}}function Hn(e){return(e.mode&nt)!==_e}function nS(e,t){Hn(e)?(_n(),Ki(t,e),Pn()):Ki(t,e)}function ug(e,t,a){Hn(e)?(_n(),yu(a,e,t),Pn()):yu(a,e,t)}function Ki(e,t){try{var a=t.updateQueue,o=a!==null?a.lastEffect:null;if(o!==null){var n=o.next;a=n;do{if((a.tag&e)===e&&(o=void 0,(e&uo)!==Op&&(ni=!0),o=F(t,qM,a),(e&uo)!==Op&&(ni=!1),o!==void 0&&typeof o!=="function")){var l=void 0;l=(a.tag&No)!==0?"useLayoutEffect":(a.tag&uo)!==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
|
-
It looks like you wrote `+
|
|
142
|
+
It looks like you wrote `+l+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
|
|
143
143
|
|
|
144
|
-
`+
|
|
144
|
+
`+l+`(() => {
|
|
145
145
|
async function fetchData() {
|
|
146
146
|
// You can await here
|
|
147
147
|
const response = await MyAPI.getData(someId);
|
|
@@ -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 yu(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&uo)!==Dp&&(li=!0),l=t,re(l,SM,l,a,d),(e&uo)!==Dp&&(li=!1))}o=o.next}while(o!==n)}}catch(m){Ct(t,t.return,m)}}function Kv(e,t){_l(e)?(zl(),Ki(t,e),Pl()):Ki(t,e)}function ng(e,t,a){_l(e)?(zl(),yu(a,e,t),Pl()):yu(a,e,t)}function Jv(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Ju||(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,tv,t,a)}catch(o){Ct(e,e.return,o)}}}function WT(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function KT(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Ju||(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=ys(e.type,a),n=re(e,WT,t,l,o);a=qC,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 eS(e,t,a){a.props=ys(e.type,e.memoizedProps),a.state=e.memoizedState,_l(e)?(zl(),re(e,JL,e,t,a),Pl()):re(e,JL,e,t,a)}function JT(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(_l(e))try{zl(),e.refCleanup=t(a)}finally{Pl()}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 Ji(e,t){try{re(e,JT,e)}catch(a){Ct(e,t,a)}}function Hl(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(_l(e))try{zl(),re(e,o)}finally{Pl(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(_l(e))try{zl(),re(e,a,null)}finally{Pl(e)}else re(e,a,null)}catch(l){Ct(e,t,l)}else a.current=null}function tS(e,t,a,o){var l=e.memoizedProps,n=l.id,s=l.onCommit;l=l.onRender,t=t===null?"mount":"update",wp&&(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 eI(e,t,a,o){var l=e.memoizedProps;e=l.id,l=l.onPostCommit,t=t===null?"mount":"update",wp&&(t="nested-update"),typeof l==="function"&&l(e,t,o,a)}function aS(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{re(e,kI,o,t,a,e)}catch(l){Ct(e,e.return,l)}}function rg(e,t,a){try{re(e,TI,e.stateNode,e.type,a,t,e)}catch(o){Ct(e,e.return,o)}}function oS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&fr(e.type)||e.tag===4}function sg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||oS(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&&fr(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 ug(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(dx(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(dx(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=vn));else if(o!==4&&(o===27&&fr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(ug(e,t,a),e=e.sibling;e!==null;)ug(e,t,a),e=e.sibling}function zf(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&&fr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(zf(e,t,a),e=e.sibling;e!==null;)zf(e,t,a),e=e.sibling}function tI(e){for(var t,a=e.return;a!==null;){if(oS(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=sg(e),zf(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(ix(a),t.flags&=-33),t=sg(e),zf(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=sg(e),ug(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 lS(e){var{stateNode:t,memoizedProps:a}=e;try{re(e,FI,e.type,a,t,e)}catch(o){Ct(e,e.return,o)}}function nS(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 aI(e,t){if(e=e.containerInfo,sb=nm,e=x0(e),$m(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;ub={focusedElem:e,selectionRange:a},nm=!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&&KT(e,a);break;case 3:if((l&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Rg(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Rg(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 rS(e,t,a){var o=To(),l=ql(),n=Nl(),s=Ul(),d=a.flags;switch(a.tag){case 0:case 11:case 15:Fl(e,a),d&4&&Wv(a,No|Jo);break;case 1:if(Fl(e,a),d&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Ju||(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")),_l(a)?(zl(),re(a,My,a,e),Pl()):re(a,My,a,e);else{var m=ys(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Ju||(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")),_l(a)?(zl(),re(a,ZL,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate),Pl()):re(a,ZL,a,e,m,t,e.__reactInternalSnapshotBeforeUpdate)}d&64&&Jv(a),d&512&&Ji(a,a.return);break;case 3:if(t=Cn(),Fl(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,tv,d,m)}catch(A){Ct(a,a.return,A)}}e.effectDuration+=ff(t);break;case 27:t===null&&d&4&&lS(a);case 26:case 5:if(Fl(e,a),t===null){if(d&4)aS(a);else if(d&64){e=a.type,t=a.memoizedProps,m=a.stateNode;try{re(a,wI,m,e,t,a)}catch(A){Ct(a,a.return,A)}}}d&512&&Ji(a,a.return);break;case 12:if(d&4){d=Cn(),Fl(e,a),e=a.stateNode,e.effectDuration+=Hi(d);try{re(a,tS,a,t,Lr,e.effectDuration)}catch(A){Ct(a,a.return,A)}}else Fl(e,a);break;case 31:Fl(e,a),d&4&&iS(e,a);break;case 13:Fl(e,a),d&4&&dS(e,a),d&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(d=cI.bind(null,a),PI(e,d))));break;case 22:if(d=a.memoizedState!==null||zn,!d){t=t!==null&&t.memoizedState!==null||Ca,m=zn;var g=Ca;zn=d,(Ca=t)&&!g?(Gl(e,a,(a.subtreeFlags&8772)!==0),(a.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&tf(a,Oe,Ne)):Fl(e,a),zn=m,Ca=g}break;case 30:break;default:Fl(e,a)}(a.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&((la||0.05<Jt)&&El(a,Oe,Ne,Jt,Zt),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<Ne-Oe&&(nS(a.return.alternate,a.return)||Dl(a,Oe,Ne,"Mount"))),Io(o),Bl(l),Zt=n,la=s}function sS(e){var t=e.alternate;t!==null&&(e.alternate=null,sS(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 Tn(e,t,a){for(a=a.child;a!==null;)uS(e,t,a),a=a.sibling}function uS(e,t,a){if(Ka&&typeof Ka.onCommitFiberUnmount==="function")try{Ka.onCommitFiberUnmount(Mu,a)}catch(g){Ql||(Ql=!0,console.error("React instrumentation encountered an error: %o",g))}var o=To(),l=ql(),n=Nl(),s=Ul();switch(a.tag){case 26:Ca||Hl(a,t),Tn(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:Ca||Hl(a,t);var d=ka,m=yo;fr(a.type)&&(ka=a.stateNode,yo=!1),Tn(e,t,a),re(a,ud,a.stateNode),ka=d,yo=m;break;case 5:Ca||Hl(a,t);case 6:if(d=ka,m=yo,ka=null,Tn(e,t,a),ka=d,yo=m,ka!==null)if(yo)try{re(a,MI,ka,a.stateNode)}catch(g){Ct(a,t,g)}else try{re(a,RI,ka,a.stateNode)}catch(g){Ct(a,t,g)}break;case 18:ka!==null&&(yo?(e=ka,cx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),wu(e)):cx(ka,a.stateNode));break;case 4:d=ka,m=yo,ka=a.stateNode.containerInfo,yo=!0,Tn(e,t,a),ka=d,yo=m;break;case 0:case 11:case 14:case 15:yu(uo,a,t),Ca||lg(a,t,No),Tn(e,t,a);break;case 1:Ca||(Hl(a,t),d=a.stateNode,typeof d.componentWillUnmount==="function"&&eS(a,t,d)),Tn(e,t,a);break;case 21:Tn(e,t,a);break;case 22:Ca=(d=Ca)||a.memoizedState!==null,Tn(e,t,a),Ca=d;break;default:Tn(e,t,a)}(a.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(a,Oe,Ne,Jt,Zt),Io(o),Bl(l),Zt=n,la=s}function iS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{re(t,_I,e)}catch(a){Ct(t,t.return,a)}}}function dS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{re(t,HI,e)}catch(a){Ct(t,t.return,a)}}function oI(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new BC),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new BC),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function _f(e,t){var a=oI(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Zl)if(ei!==null&&ti!==null)od(ti,ei);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var l=fI.bind(null,e,o);o.then(l,l)}})}function ho(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=To(),m=n;e:for(;m!==null;){switch(m.tag){case 27:if(fr(m.type)){ka=m.stateNode,yo=!1;break e}break;case 5:ka=m.stateNode,yo=!1;break e;case 3:case 4:ka=m.stateNode.containerInfo,yo=!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.");uS(l,n,s),ka=null,yo=!1,(s.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&Dl(s,Oe,Ne,"Unmount"),Io(d),l=s,n=l.alternate,n!==null&&(n.return=null),l.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)cS(t,e),t=t.sibling}function cS(e,t){var a=To(),o=ql(),l=Nl(),n=Ul(),{alternate:s,flags:d}=e;switch(e.tag){case 0:case 11:case 14:case 15:ho(t,e),go(e),d&4&&(yu(uo|Jo,e,e.return),Ki(uo|Jo,e),lg(e,e.return,No|Jo));break;case 1:if(ho(t,e),go(e),d&512&&(Ca||s===null||Hl(s,s.return)),d&64&&zn&&(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=gl,ho(t,e),go(e),d&512&&(Ca||s===null||Hl(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[hd]||g[Xa]||g.namespaceURI===Du||g.hasAttribute("itemprop"))g=m.createElement(d),m.head.insertBefore(g,m.querySelector("head > title"));$a(g,d,s),g[Xa]=e,Ee(g),d=g;break e;case"link":var A=Lx("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=Lx("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,Ee(g),d=g}e.stateNode=d}else Cx(m,e.type,e.stateNode);else e.stateNode=xx(m,d,e.memoizedProps);else g!==d?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,d===null?Cx(m,e.type,e.stateNode):xx(m,d,e.memoizedProps)):d===null&&e.stateNode!==null&&rg(e,e.memoizedProps,s.memoizedProps)}break;case 27:ho(t,e),go(e),d&512&&(Ca||s===null||Hl(s,s.return)),s!==null&&d&4&&rg(e,e.memoizedProps,s.memoizedProps);break;case 5:if(ho(t,e),go(e),d&512&&(Ca||s===null||Hl(s,s.return)),e.flags&32){m=e.stateNode;try{re(e,ix,m)}catch(ye){Ct(e,e.return,ye)}}d&4&&e.stateNode!=null&&(m=e.memoizedProps,rg(e,m,s!==null?s.memoizedProps:m)),d&1024&&(Fy=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(ho(t,e),go(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,II,m,s,d)}catch(ye){Ct(e,e.return,ye)}}break;case 3:if(m=Cn(),am=null,g=gl,gl=Yf(t.containerInfo),ho(t,e),gl=g,go(e),d&4&&s!==null&&s.memoizedState.isDehydrated)try{re(e,zI,t.containerInfo)}catch(ye){Ct(e,e.return,ye)}Fy&&(Fy=!1,fS(e)),t.effectDuration+=ff(m);break;case 4:d=gl,gl=Yf(e.stateNode.containerInfo),ho(t,e),go(e),gl=d;break;case 12:d=Cn(),ho(t,e),go(e),e.stateNode.effectDuration+=Hi(d);break;case 31:ho(t,e),go(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,_f(e,d)));break;case 13:ho(t,e),go(e),e.child.flags&8192&&e.memoizedState!==null!==(s!==null&&s.memoizedState!==null)&&(Hp=Ba()),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,_f(e,d)));break;case 22:m=e.memoizedState!==null;var T=s!==null&&s.memoizedState!==null,U=zn,de=Ca;if(zn=U||m,Ca=de||T,ho(t,e),Ca=de,zn=U,T&&!m&&!U&&!de&&(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&tf(e,Oe,Ne),go(e),d&8192)e:for(t=e.stateNode,t._visibility=m?t._visibility&~kd:t._visibility|kd,!m||s===null||T||zn||Ca||(bs(e),(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&Dl(e,Oe,Ne,"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,DI,g):re(T,qI,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,EI,A):re(T,BI,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,AI,E):re(T,OI,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,_f(e,s))));break;case 19:ho(t,e),go(e),d&4&&(d=e.updateQueue,d!==null&&(e.updateQueue=null,_f(e,d)));break;case 30:break;case 21:break;default:ho(t,e),go(e)}(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&((la||0.05<Jt)&&El(e,Oe,Ne,Jt,Zt),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<Ne-Oe&&(nS(e.return.alternate,e.return)||Dl(e,Oe,Ne,"Mount"))),Io(a),Bl(o),Zt=l,la=n}function go(e){var t=e.flags;if(t&2){try{re(e,tI,e)}catch(a){Ct(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function fS(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;fS(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Fl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)rS(e,t.alternate,t),t=t.sibling}function pS(e){var t=To(),a=ql(),o=Nl(),l=Ul();switch(e.tag){case 0:case 11:case 14:case 15:lg(e,e.return,No),bs(e);break;case 1:Hl(e,e.return);var n=e.stateNode;typeof n.componentWillUnmount==="function"&&eS(e,e.return,n),bs(e);break;case 27:re(e,ud,e.stateNode);case 26:case 5:Hl(e,e.return),bs(e);break;case 22:e.memoizedState===null&&bs(e);break;case 30:bs(e);break;default:bs(e)}(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(e,Oe,Ne,Jt,Zt),Io(t),Bl(a),Zt=o,la=l}function bs(e){for(e=e.child;e!==null;)pS(e),e=e.sibling}function mS(e,t,a,o){var l=To(),n=ql(),s=Nl(),d=Ul(),m=a.flags;switch(a.tag){case 0:case 11:case 15:Gl(e,a,o),Wv(a,No);break;case 1:if(Gl(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&re(a,My,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{re(a,zT,t,e)}catch(g){Ct(a,a.return,g)}}o&&m&64&&Jv(a),Ji(a,a.return);break;case 27:lS(a);case 26:case 5:Gl(e,a,o),o&&t===null&&m&4&&aS(a),Ji(a,a.return);break;case 12:if(o&&m&4){m=Cn(),Gl(e,a,o),o=a.stateNode,o.effectDuration+=Hi(m);try{re(a,tS,a,t,Lr,o.effectDuration)}catch(g){Ct(a,a.return,g)}}else Gl(e,a,o);break;case 31:Gl(e,a,o),o&&m&4&&iS(e,a);break;case 13:Gl(e,a,o),o&&m&4&&dS(e,a);break;case 22:a.memoizedState===null&&Gl(e,a,o),Ji(a,a.return);break;case 30:break;default:Gl(e,a,o)}(a.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(a,Oe,Ne,Jt,Zt),Io(l),Bl(n),Zt=s,la=d}function Gl(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)mS(e,t.alternate,t,a),t=t.sibling}function ig(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&&ps(e),a!=null&&_i(a))}function dg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(ps(t),e!=null&&_i(e))}function dl(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;hS(e,t,a,o,n!==null?n.actualStartTime:l),t=n}}function hS(e,t,a,o,l){var n=To(),s=ql(),d=Nl(),m=Ul(),g=br,A=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&tt)!==Pe&&0<t.actualStartTime&&(t.flags&1)!==0&&af(t,t.actualStartTime,l,Ma,a),dl(e,t,a,o,l),A&2048&&Kv(t,io|Jo);break;case 1:(t.mode&tt)!==Pe&&0<t.actualStartTime&&((t.flags&128)!==0?jm(t,t.actualStartTime,l,[]):(t.flags&1)!==0&&af(t,t.actualStartTime,l,Ma,a)),dl(e,t,a,o,l);break;case 3:var E=Cn(),T=Ma;Ma=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,dl(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&&(ps(o),a!=null&&_i(a))),e.passiveEffectDuration+=ff(E);break;case 12:if(A&2048){A=Cn(),dl(e,t,a,o,l),e=t.stateNode,e.passiveEffectDuration+=Hi(A);try{re(t,eI,t,t.alternate,Lr,e.passiveEffectDuration)}catch(U){Ct(t,t.return,U)}}else dl(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&&jm(t,t.actualStartTime,l,E)):Ma=!0):Ma=!1,dl(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&&jm(t,t.actualStartTime,l,E)):Ma=!0),dl(e,t,a,o,l),Ma=A;break;case 23:break;case 22:T=t.stateNode,E=t.alternate,t.memoizedState!==null?T._visibility&Mn?dl(e,t,a,o,l):ed(e,t,a,o,l):T._visibility&Mn?dl(e,t,a,o,l):(T._visibility|=Mn,bu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),l),(t.mode&tt)===Pe||Ma||(e=t.actualStartTime,0<=e&&0.05<l-e&&tf(t,e,l),0<=Oe&&0<=Ne&&0.05<Ne-Oe&&tf(t,Oe,Ne))),A&2048&&ig(E,t);break;case 24:dl(e,t,a,o,l),A&2048&&dg(t.alternate,t);break;default:dl(e,t,a,o,l)}if((t.mode&tt)!==Pe){if(e=!Ma&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<l-a&&Dl(t,a,l,"Mount");0<=Oe&&0<=Ne&&((la||0.05<Jt)&&El(t,Oe,Ne,Jt,Zt),e&&0.05<Ne-Oe&&Dl(t,Oe,Ne,"Mount"))}Io(n),Bl(s),Zt=d,la=m,br=g}function bu(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;gS(e,t,a,o,l,s!==null?s.actualStartTime:n),t=s}}function gS(e,t,a,o,l,n){var s=To(),d=ql(),m=Nl(),g=Ul(),A=br;l&&(t.mode&tt)!==Pe&&0<t.actualStartTime&&(t.flags&1)!==0&&af(t,t.actualStartTime,n,Ma,a);var E=t.flags;switch(t.tag){case 0:case 11:case 15:bu(e,t,a,o,l,n),Kv(t,io);break;case 23:break;case 22:var T=t.stateNode;t.memoizedState!==null?T._visibility&Mn?bu(e,t,a,o,l,n):ed(e,t,a,o,n):(T._visibility|=Mn,bu(e,t,a,o,l,n)),l&&E&2048&&ig(t.alternate,t);break;case 24:bu(e,t,a,o,l,n),l&&E&2048&&dg(t.alternate,t);break;default:bu(e,t,a,o,l,n)}(t.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(t,Oe,Ne,Jt,Zt),Io(s),Bl(d),Zt=m,la=g,br=A}function ed(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=br;(n.mode&tt)!==Pe&&0<n.actualStartTime&&(n.flags&1)!==0&&af(n,n.actualStartTime,g,Ma,d);var E=n.flags;switch(n.tag){case 22:ed(s,n,d,m,g),E&2048&&ig(n.alternate,n);break;case 24:ed(s,n,d,m,g),E&2048&&dg(n.alternate,n);break;default:ed(s,n,d,m,g)}br=A,n=t}}function vu(e,t,a){if(e.subtreeFlags&Vd)for(e=e.child;e!==null;)yS(e,t,a),e=e.sibling}function yS(e,t,a){switch(e.tag){case 26:vu(e,t,a),e.flags&Vd&&e.memoizedState!==null&&$I(a,gl,e.memoizedState,e.memoizedProps);break;case 5:vu(e,t,a);break;case 3:case 4:var o=gl;gl=Yf(e.stateNode.containerInfo),vu(e,t,a),gl=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Vd,Vd=16777216,vu(e,t,a),Vd=o):vu(e,t,a));break;default:vu(e,t,a)}}function bS(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 td(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=To();Ua=o,xS(o,e),(o.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&Dl(o,Oe,Ne,"Unmount"),Io(l)}bS(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)vS(e),e=e.sibling}function vS(e){var t=To(),a=ql(),o=Nl(),l=Ul();switch(e.tag){case 0:case 11:case 15:td(e),e.flags&2048&&ng(e,e.return,io|Jo);break;case 3:var n=Cn();td(e),e.stateNode.passiveEffectDuration+=ff(n);break;case 12:n=Cn(),td(e),e.stateNode.passiveEffectDuration+=Hi(n);break;case 22:n=e.stateNode,e.memoizedState!==null&&n._visibility&Mn&&(e.return===null||e.return.tag!==13)?(n._visibility&=~Mn,Hf(e),(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&Dl(e,Oe,Ne,"Disconnect")):td(e);break;default:td(e)}(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(e,Oe,Ne,Jt,Zt),Io(t),Bl(a),la=l,Zt=o}function Hf(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=To();Ua=o,xS(o,e),(o.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&0.05<Ne-Oe&&Dl(o,Oe,Ne,"Unmount"),Io(l)}bS(e)}for(e=e.child;e!==null;)SS(e),e=e.sibling}function SS(e){var t=To(),a=ql(),o=Nl(),l=Ul();switch(e.tag){case 0:case 11:case 15:ng(e,e.return,io),Hf(e);break;case 22:var n=e.stateNode;n._visibility&Mn&&(n._visibility&=~Mn,Hf(e));break;default:Hf(e)}(e.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(e,Oe,Ne,Jt,Zt),Io(t),Bl(a),la=l,Zt=o}function xS(e,t){for(;Ua!==null;){var a=Ua,o=a,l=t,n=To(),s=ql(),d=Nl(),m=Ul();switch(o.tag){case 0:case 11:case 15:ng(o,l,io);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(l=o.memoizedState.cachePool.pool,l!=null&&ps(l));break;case 24:_i(o.memoizedState.cache)}if((o.mode&tt)!==Pe&&0<=Oe&&0<=Ne&&(la||0.05<Jt)&&El(o,Oe,Ne,Jt,Zt),Io(n),Bl(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,sS(o),o===a){Ua=null;break e}if(n!==null){n.return=s,Ua=n;break e}Ua=s}}}function lI(){wM.forEach(function(e){return e()})}function LS(){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 Mo(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),bg()):O()}function CS(){if(vo===0)if((ot&536870912)===0||dt){var e=rp;rp<<=1,(rp&3932160)===0&&(rp=262144),vo=e}else vo=536870912;return e=Bo.current,e!==null&&(e.flags|=32),vo}function oa(e,t,a){if(li&&console.error("useInsertionEffect must not schedule updates."),Jy&&($p=!0),e===Pt&&(Dt===Os||Dt===qs)||e.cancelPendingCommit!==null)xu(e,0),dr(e,ot,vo,!1);if(Kn(e,a),(ht&Aa)!==Pa&&e===Pt){if(Yl)switch(t.tag){case 0:case 11:case 15:e=lt&&X(lt)||"Unknown",ZC.has(e)||(ZC.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:QC||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),QC=!0)}}else Zl&&Mi(e,t,a),mI(t),e===Pt&&((ht&Aa)===Pa&&(Dr|=a),ea===Rr&&dr(e,ot,vo,!1)),Vl(e)}function kS(e,t,a){if((ht&(Aa|Uo))!==Pa)throw Error("Should not already be working.");if(ot!==0&<!==null){var o=lt,l=Ba();switch(FL){case jd:case Os:var n=Ad;Gt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",n,l,$o,void 0,"primary-light")):console.timeStamp("Suspended",n,l,$o,void 0,"primary-light"));break;case qs:n=Ad,Gt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",n,l,$o,void 0,"primary-light")):console.timeStamp("Action",n,l,$o,void 0,"primary-light"));break;default:Gt&&(o=l-Ad,3>o||console.timeStamp("Blocked",Ad,l,$o,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}n=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||es(e,t))?rI(e,t):fg(e,t,!0);var s=a;do{if(n===_n){ai&&!a&&dr(e,t,0,!1),t=Dt,Ad=Sa(),FL=t;break}else{if(o=Ba(),l=e.current.alternate,s&&!nI(l)){ko(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")),vs(t,o),n=fg(e,t,!1),s=!1;continue}if(n===Es){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){ko(t),Ym(Na,o,t,ca),vs(t,o),t=d;e:{o=e,n=s,s=Qd;var m=o.current.memoizedState.isDehydrated;if(m&&(xu(o,d).flags|=256),d=fg(o,d,!1),d!==Es){if($y&&!m){o.errorRecoveryDisabledLanes|=n,Dr|=n,n=Rr;break e}o=co,co=s,o!==null&&(co===null?co=o:co.push.apply(co,o))}n=d}if(s=!1,n!==Es)continue;else o=Ba()}}if(n===Xd){ko(t),Ym(Na,o,t,ca),vs(t,o),xu(e,0),dr(e,t,0,!0);break}e:{switch(a=e,n){case _n:case Xd:throw Error("Root did not complete. This is a bug in React.");case Rr:if((t&4194048)!==t)break;case Up:ko(t),k0(Na,o,t,ca),vs(t,o),l=t,(l&127)!==0?Lp=o:(l&4194048)!==0&&(Cp=o),dr(a,t,vo,!Mr);break e;case Es:co=null;break;case Np:case NC:break;default:throw Error("Unknown root exit status.")}if(G.actQueue!==null)pg(a,l,t,co,Zd,_p,vo,Dr,Bs,n,null,null,Na,o);else{if((t&62914560)===t&&(s=Hp+zC-Ba(),10<s)){if(dr(a,t,vo,!Mr),Jr(a,0,!0)!==0)break e;yl=t,a.timeoutHandle=l1(wS.bind(null,a,l,co,Zd,_p,t,vo,Dr,Bs,Mr,n,"Throttled",Na,o),s);break e}wS(a,l,co,Zd,_p,t,vo,Dr,Bs,Mr,n,null,Na,o)}}}break}while(1);Vl(e)}function wS(e,t,a,o,l,n,s,d,m,g,A,E,T,U){e.timeoutHandle=_s;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:vn},yS(t,n,ye),de=(n&62914560)===n?Hp-Ba():(n&4194048)===n?PC-Ba():0,de=XI(ye,de),de!==null){yl=n,e.cancelPendingCommit=de(pg.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)),dr(e,n,s,!g);return}}pg(e,t,n,a,o,l,s,d,m,A,ye,E,T,U)}function nI(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(!ro(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 dr(e,t,a,o){t&=~Xy,t&=~Dr,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var l=t;0<l;){var n=31-oo(l),s=1<<n;o[n]=-1,l&=~s}a!==0&&ts(e,a,t)}function Su(){return(ht&(Aa|Uo))===Pa?(ld(0,!1),!1):!0}function cg(){if(lt!==null){if(Dt===bo)var e=lt.return;else e=lt,uf(),Lh(e),ju=null,zd=0,e=lt;for(;e!==null;)Zv(e.alternate,e),e=e.return;lt=null}}function vs(e,t){(e&127)!==0&&(Cr=t),(e&4194048)!==0&&(tn=t),(e&62914560)!==0&&(_L=t),(e&2080374784)!==0&&(HL=t)}function xu(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(ko(ot),ea===Np||ea===Rr)k0(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)}}vs(ot,Na)}if(a=ca,ca=null,(t&127)!==0){ca=Id,l=0<=en&&en<Cr?Cr:en,o=0<=ks&&ks<Cr?Cr:ks,n=0<=o?o:0<=l?l:Na,0<=Lp?(ko(2),w0(Lp,n,t,a)):(kp&127)!==0&&(ko(2),Pi(Cr,n,Bn)),a=l;var d=o,m=Rd,g=0<Vu,A=kr===Td,E=kr===xp;if(l=Na,o=Id,n=ky,s=wy,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))}en=-1.1,kr=0,wy=ky=null,Lp=-1.1,Vu=ks,ks=-1.1,Cr=Sa()}if((t&4194048)!==0&&(ca=Md,l=0<=qn&&qn<tn?tn:qn,a=0<=Wo&&Wo<tn?tn:Wo,o=0<=wr&&wr<tn?tn:wr,n=0<=o?o:0<=a?a:Na,0<=Cp?(ko(256),w0(Cp,n,t,ca)):(kp&4194048)!==0&&(ko(256),Pi(tn,n,Bn)),E=o,d=ws,m=0<Tr,g=Ty===xp,n=Na,o=Md,s=PL,A=zL,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))),Wo=qn=-1.1,Ty=0,Cp=-1.1,Tr=wr,wr=-1.1,tn=Sa()),(t&62914560)!==0&&(kp&62914560)!==0&&(ko(4194304),Pi(_L,Na,Bn)),(t&2080374784)!==0&&(kp&2080374784)!==0&&(ko(268435456),Pi(HL,Na,Bn)),a=e.timeoutHandle,a!==_s&&(e.timeoutHandle=_s,PM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),yl=0,cg(),Pt=e,lt=a=Sn(e.current,null),ot=t,Dt=bo,Po=null,Mr=!1,ai=es(e,t),$y=!1,ea=_n,Bs=vo=Xy=Dr=Ar=0,co=Qd=null,_p=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)l=31-oo(o),n=1<<l,t|=e[l],o&=~n;return on=t,of(),e=EL(),1000<e-DL&&(G.recentlyCreatedOwnerStacks=0,DL=e),ml.discardPendingWarnings(),a}function TS(e,t){Fe=null,G.H=Gd,G.getCurrentStack=null,Yl=!1,Eo=null,t===Xu||t===Rp?(t=j0(),Dt=jd):t===Ay?(t=j0(),Dt=UC):Dt=t===_y?Vy:t!==null&&typeof t==="object"&&typeof t.then==="function"?Yd:Pp,Po=t;var a=lt;a===null?(ea=Xd,qf(e,wo(t,e.current))):a.mode&tt&&ih(a)}function IS(){var e=Bo.current;return e===null?!0:(ot&4194048)===ot?Ko===null?!0:!1:(ot&62914560)===ot||(ot&536870912)!==0?e===Ko:!1}function RS(){var e=G.H;return G.H=Gd,e===null?Gd:e}function MS(){var e=G.A;return G.A=kM,e}function Ff(e){ca===null&&(ca=e._debugTask==null?null:e._debugTask)}function Gf(){ea=Rr,Mr||(ot&4194048)!==ot&&Bo.current!==null||(ai=!0),(Ar&134217727)===0&&(Dr&134217727)===0||Pt===null||dr(Pt,ot,vo,!1)}function fg(e,t,a){var o=ht;ht|=Aa;var l=RS(),n=MS();if(Pt!==e||ot!==t){if(Zl){var s=e.memoizedUpdaters;0<s.size&&(od(e,ot),s.clear()),Jn(e,t)}Zd=null,xu(e,t)}t=!1,s=ea;e:do try{if(Dt!==bo&<!==null){var d=lt,m=Po;switch(Dt){case Vy:cg(),s=Up;break e;case jd:case Os:case qs:case Yd:Bo.current===null&&(t=!0);var g=Dt;if(Dt=bo,Po=null,Lu(e,d,m,g),a&&ai){s=_n;break e}break;default:g=Dt,Dt=bo,Po=null,Lu(e,d,m,g)}}AS(),s=ea;break}catch(A){TS(e,A)}while(1);return t&&e.shellSuspendCounter++,uf(),ht=o,G.H=l,G.A=n,lt===null&&(Pt=null,ot=0,of()),s}function AS(){for(;lt!==null;)DS(lt)}function rI(e,t){var a=ht;ht|=Aa;var o=RS(),l=MS();if(Pt!==e||ot!==t){if(Zl){var n=e.memoizedUpdaters;0<n.size&&(od(e,ot),n.clear()),Jn(e,t)}Zd=null,Fp=Ba()+_C,xu(e,t)}else ai=es(e,t);e:do try{if(Dt!==bo&<!==null)t:switch(t=lt,n=Po,Dt){case Pp:Dt=bo,Po=null,Lu(e,t,n,Pp);break;case Os:case qs:if($0(n)){Dt=bo,Po=null,ES(t);break}t=function(){Dt!==Os&&Dt!==qs||Pt!==e||(Dt=zp),Vl(e)},n.then(t,t);break e;case jd:Dt=zp;break e;case UC:Dt=Gy;break e;case zp:$0(n)?(Dt=bo,Po=null,ES(t)):(Dt=bo,Po=null,Lu(e,t,n,zp));break;case Gy:var s=null;switch(lt.tag){case 26:s=lt.memoizedState;case 5:case 27:var d=lt;if(s?kx(s):d.stateNode.complete){Dt=bo,Po=null;var m=d.sibling;if(m!==null)lt=m;else{var g=d.return;g!==null?(lt=g,Vf(g)):lt=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Dt=bo,Po=null,Lu(e,t,n,Gy);break;case Yd:Dt=bo,Po=null,Lu(e,t,n,Yd);break;case Vy:cg(),ea=Up;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}G.actQueue!==null?AS():sI();break}catch(A){TS(e,A)}while(1);if(uf(),G.H=o,G.A=l,ht=a,lt!==null)return _n;return Pt=null,ot=0,of(),ea}function sI(){for(;lt!==null&&!nR();)DS(lt)}function DS(e){var t=e.alternate;(e.mode&tt)!==Pe?(uh(e),t=re(e,ag,t,e,on),ih(e)):t=re(e,ag,t,e,on),e.memoizedProps=e.pendingProps,t===null?Vf(e):lt=t}function ES(e){var t=re(e,uI,e);e.memoizedProps=e.pendingProps,t===null?Vf(e):lt=t}function uI(e){var t=e.alternate,a=(e.mode&tt)!==Pe;switch(a&&uh(e),e.tag){case 15:case 0:t=Gv(t,e,e.pendingProps,e.type,void 0,ot);break;case 11:t=Gv(t,e,e.pendingProps,e.type.render,e.ref,ot);break;case 5:Lh(e);default:Zv(t,e),e=lt=D0(e,on),t=ag(t,e,on)}return a&&ih(e),t}function Lu(e,t,a,o){uf(),Lh(t),ju=null,zd=0;var l=t.return;try{if(XT(e,l,t,a,ot)){ea=Xd,qf(e,wo(a,e.current)),lt=null;return}}catch(n){if(l!==null)throw lt=l,n;ea=Xd,qf(e,wo(a,e.current)),lt=null;return}if(t.flags&32768){if(dt||o===Pp)e=!0;else if(ai||(ot&536870912)!==0)e=!1;else if(Mr=e=!0,o===Os||o===qs||o===jd||o===Yd)o=Bo.current,o!==null&&o.tag===13&&(o.flags|=16384);OS(t,e)}else Vf(t)}function Vf(e){var t=e;do{if((t.flags&32768)!==0){OS(t,Mr);return}var a=t.alternate;if(e=t.return,uh(t),a=re(t,QT,a,t,on),(t.mode&tt)!==Pe&&_0(t),a!==null){lt=a;return}if(t=t.sibling,t!==null){lt=t;return}lt=t=e}while(t!==null);ea===_n&&(ea=NC)}function OS(e,t){do{var a=ZT(e.alternate,e);if(a!==null){a.flags&=32767,lt=a;return}if((e.mode&tt)!==Pe){_0(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=Up,lt=null}function pg(e,t,a,o,l,n,s,d,m,g,A,E,T,U){e.cancelPendingCommit=null;do ad();while(wa!==Or);if(ml.flushLegacyContextWarning(),ml.flushPendingUnsafeLifecycleWarnings(),(ht&(Aa|Uo))!==Pa)throw Error("Should not already be working.");if(ko(a),g===Es?Ym(T,U,a,ca):o!==null?OT(T,U,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ca):ET(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|=vy,Xc(e,a,n,s,d,m),e===Pt&&(lt=Pt=null,ot=0),oi=t,qr=e,yl=a,Qy=n,Wy=l,XC=o,Zy=U,jC=E,bl=Gp,YC=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,pI(Ru,function(){return ac=window.event,bl===Gp&&(bl=Yy),PS(),null})):(e.callbackNode=null,e.callbackPriority=0),On=null,Lr=Sa(),E!==null&&qT(U,Lr,E,ca),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null,l=kt.p,kt.p=Oo,s=ht,ht|=Uo;try{aI(e,t,a)}finally{ht=s,kt.p=l,G.T=o}}wa=FC,qS(),BS(),NS()}}function qS(){if(wa===FC){wa=Or;var e=qr,t=oi,a=yl,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=G.T,G.T=null;var l=kt.p;kt.p=Oo;var n=ht;ht|=Uo;try{ei=a,ti=e,pf(),cS(t,e),ti=ei=null,a=ub;var s=x0(e.containerInfo),d=a.focusedElem,m=a.selectionRange;if(s!==d&&d&&d.ownerDocument&&S0(d.ownerDocument.documentElement,d)){if(m!==null&&$m(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=v0(d,ye),w=v0(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}}nm=!!sb,ub=sb=null}finally{ht=n,kt.p=l,G.T=o}}e.current=t,wa=GC}}function BS(){if(wa===GC){wa=Or;var e=YC;if(e!==null){Lr=Sa();var t=En,a=Lr;!Gt||a<=t||(Bn?Bn.run(console.timeStamp.bind(console,e,t,a,it,st,"secondary-light")):console.timeStamp(e,t,a,it,st,"secondary-light"))}e=qr,t=oi,a=yl;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=G.T,G.T=null;var l=kt.p;kt.p=Oo;var n=ht;ht|=Uo;try{ei=a,ti=e,pf(),rS(e,t.alternate,t),ti=ei=null}finally{ht=n,kt.p=l,G.T=o}}e=Zy,t=jC,En=Sa(),e=t===null?e:Lr,t=En,a=bl===jy,o=ca,On!==null?T0(e,t,On,!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=VC}}function NS(){if(wa===$C||wa===VC){if(wa===$C){var e=En;En=Sa();var t=En,a=bl===jy;!Gt||t<=e||(Bn?Bn.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")),bl!==jy&&(bl=HC)}wa=Or,rR(),e=qr;var o=oi;t=yl,a=XC;var l=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;l?wa=Vp:(wa=Or,oi=qr=null,US(e,e.pendingLanes),Ns=0,Kd=null);var n=e.pendingLanes;if(n===0&&(Er=null),l||FS(e),n=y(t),o=o.stateNode,Ka&&typeof Ka.onCommitFiberRoot==="function")try{var s=(o.current.flags&128)===128;switch(n){case Oo:var d=Wg;break;case fl:d=Kg;break;case Wl:d=Ru;break;case up:d=Jg;break;default:d=Ru}Ka.onCommitFiberRoot(Mu,o,d,s)}catch(E){Ql||(Ql=!0,console.error("React instrumentation encountered an error: %o",E))}if(Zl&&e.memoizedUpdaters.clear(),lI(),a!==null){s=G.T,d=kt.p,kt.p=Oo,G.T=null;try{var m=e.onRecoverableError;for(o=0;o<a.length;o++){var g=a[o],A=iI(g.stack);re(g.source,m,g.value,A)}}finally{G.T=s,kt.p=d}}(yl&3)!==0&&ad(),Vl(e),n=e.pendingLanes,(t&261930)!==0&&(n&42)!==0?(Tp=!0,e===Ky?Wd++:(Wd=0,Ky=e)):Wd=0,l||vs(t,En),ld(0,!1)}}function iI(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 US(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,_i(t)))}function ad(){return qS(),BS(),NS(),PS()}function PS(){if(wa!==Vp)return!1;var e=qr,t=Qy;Qy=0;var a=y(yl),o=Wl===0||Wl>a?Wl:a;a=G.T;var l=kt.p;try{kt.p=o,G.T=null;var n=Wy;Wy=null,o=qr;var s=yl;if(wa=Or,oi=qr=null,yl=0,(ht&(Aa|Uo))!==Pa)throw Error("Cannot flush passive effects while already rendering.");ko(s),Jy=!0,$p=!1;var d=0;if(On=null,d=Ba(),bl===HC)Pi(En,d,Bn);else{var m=En,g=d,A=bl===Yy;!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|=Uo;var E=o.current;pf(),vS(E);var T=o.current;E=Zy,pf(),hS(o,T,s,n,E),FS(o),ht=m;var U=Ba();if(T=d,E=ca,On!==null?T0(T,U,On,!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")),vs(s,U),ld(0,!1),$p?o===Kd?Ns++:(Ns=0,Kd=o):Ns=0,$p=Jy=!1,Ka&&typeof Ka.onPostCommitFiberRoot==="function")try{Ka.onPostCommitFiberRoot(Mu,o)}catch(ye){Ql||(Ql=!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,US(e,t)}}function zS(e,t,a){t=wo(a,t),H0(t),t=$h(e.stateNode,t,2),e=rr(e,t,2),e!==null&&(Kn(e,2),Vl(e))}function Ct(e,t,a){if(li=!1,e.tag===3)zS(e,e,a);else{for(;t!==null;){if(t.tag===3){zS(t,e,a);return}if(t.tag===1){var o=t.stateNode;if(typeof t.type.getDerivedStateFromError==="function"||typeof o.componentDidCatch==="function"&&(Er===null||!Er.has(o))){e=wo(a,e),H0(e),a=Xh(2),o=rr(t,a,2),o!==null&&(jh(a,o,t,e),Kn(o,2),Vl(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,F(t,function(c,p){console.error("%s must not return anything besides a function, which is used for clean-up.%s",c,p)},l,s)}a=a.next}while(a!==n)}}catch(c){Ot(t,t.return,c)}}function yu(e,t,a){try{var o=t.updateQueue,n=o!==null?o.lastEffect:null;if(n!==null){var l=n.next;o=l;do{if((o.tag&e)===e){var s=o.inst,c=s.destroy;c!==void 0&&(s.destroy=void 0,(e&uo)!==Op&&(ni=!0),n=t,F(n,BM,n,a,c),(e&uo)!==Op&&(ni=!1))}o=o.next}while(o!==l)}}catch(p){Ot(t,t.return,p)}}function lS(e,t){Hn(e)?(_n(),Ki(t,e),Pn()):Ki(t,e)}function ig(e,t,a){Hn(e)?(_n(),yu(a,e,t),Pn()):yu(a,e,t)}function rS(e){var t=e.updateQueue;if(t!==null){var a=e.stateNode;e.type.defaultProps||"ref"in e.memoizedProps||Ju||(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.",_(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.",_(e)||"instance"));try{F(e,uv,t,a)}catch(o){Ot(e,e.return,o)}}}function fI(e,t,a){return e.getSnapshotBeforeUpdate(t,a)}function pI(e,t){var a=t.memoizedProps,o=t.memoizedState;t=e.stateNode,e.type.defaultProps||"ref"in e.memoizedProps||Ju||(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.",_(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.",_(e)||"instance"));try{var n=ys(e.type,a),l=F(e,fI,t,n,o);a=HC,l!==void 0||a.has(e.type)||(a.add(e.type),F(e,function(){console.error("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",_(e))})),t.__reactInternalSnapshotBeforeUpdate=l}catch(s){Ot(e,e.return,s)}}function sS(e,t,a){a.props=ys(e.type,e.memoizedProps),a.state=e.memoizedState,Hn(e)?(_n(),F(e,rC,e,t,a),Pn()):F(e,rC,e,t,a)}function mI(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(Hn(e))try{_n(),e.refCleanup=t(a)}finally{Pn()}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().",_(e)),t.current=a}}function Ji(e,t){try{F(e,mI,e)}catch(a){Ot(e,t,a)}}function Fn(e,t){var a=e.ref,o=e.refCleanup;if(a!==null)if(typeof o==="function")try{if(Hn(e))try{_n(),F(e,o)}finally{Pn(e)}else F(e,o)}catch(n){Ot(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof a==="function")try{if(Hn(e))try{_n(),F(e,a,null)}finally{Pn(e)}else F(e,a,null)}catch(n){Ot(e,t,n)}else a.current=null}function uS(e,t,a,o){var n=e.memoizedProps,l=n.id,s=n.onCommit;n=n.onRender,t=t===null?"mount":"update",Ip&&(t="nested-update"),typeof n==="function"&&n(l,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,a),typeof s==="function"&&s(l,t,o,a)}function hI(e,t,a,o){var n=e.memoizedProps;e=n.id,n=n.onPostCommit,t=t===null?"mount":"update",Ip&&(t="nested-update"),typeof n==="function"&&n(e,t,o,a)}function iS(e){var{type:t,memoizedProps:a,stateNode:o}=e;try{F(e,PI,o,t,a,e)}catch(n){Ot(e,e.return,n)}}function cg(e,t,a){try{F(e,HI,e.stateNode,e.type,a,t,e)}catch(o){Ot(e,e.return,o)}}function cS(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&dr(e.type)||e.tag===4}function dg(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||cS(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&&dr(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 fg(e,t,a){var o=e.tag;if(o===5||o===6)e=e.stateNode,t?(yx(a),(a.nodeType===9?a.body:a.nodeName==="HTML"?a.ownerDocument.body:a).insertBefore(e,t)):(yx(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=vl));else if(o!==4&&(o===27&&dr(e.type)&&(a=e.stateNode,t=null),e=e.child,e!==null))for(fg(e,t,a),e=e.sibling;e!==null;)fg(e,t,a),e=e.sibling}function Hf(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&&dr(e.type)&&(a=e.stateNode),e=e.child,e!==null))for(Hf(e,t,a),e=e.sibling;e!==null;)Hf(e,t,a),e=e.sibling}function gI(e){for(var t,a=e.return;a!==null;){if(cS(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=dg(e),Hf(e,a,t);break;case 5:a=t.stateNode,t.flags&32&&(gx(a),t.flags&=-33),t=dg(e),Hf(e,t,a);break;case 3:case 4:t=t.stateNode.containerInfo,a=dg(e),fg(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 dS(e){var{stateNode:t,memoizedProps:a}=e;try{F(e,oR,e.type,a,t,e)}catch(o){Ot(e,e.return,o)}}function fS(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 yI(e,t){if(e=e.containerInfo,db=sm,e=R0(e),Qm(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 n=o.anchorOffset,l=o.focusNode;o=o.focusOffset;try{a.nodeType,l.nodeType}catch(re){a=null;break e}var s=0,c=-1,p=-1,g=0,E=0,O=e,I=null;t:for(;;){for(var z;;){if(O!==a||n!==0&&O.nodeType!==3||(c=s+n),O!==l||o!==0&&O.nodeType!==3||(p=s+o),O.nodeType===3&&(s+=O.nodeValue.length),(z=O.firstChild)===null)break;I=O,O=z}for(;;){if(O===e)break t;if(I===a&&++g===n&&(c=s),I===l&&++E===o&&(p=s),(z=O.nextSibling)!==null)break;O=I,I=O.parentNode}O=z}a=c===-1||p===-1?null:{start:c,end:p}}else a=null}a=a||{start:0,end:0}}else a=null;fb={focusedElem:e,selectionRange:a},sm=!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,n=e.flags,e.tag){case 0:if((n&4)!==0&&(e=e.updateQueue,e=e!==null?e.events:null,e!==null))for(a=0;a<e.length;a++)n=e[a],n.ref.impl=n.nextImpl;break;case 11:case 15:break;case 1:(n&1024)!==0&&a!==null&&pI(e,a);break;case 3:if((n&1024)!==0){if(e=e.stateNode.containerInfo,a=e.nodeType,a===9)Eg(e);else if(a===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Eg(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&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 pS(e,t,a){var o=To(),n=Bn(),l=Un(),s=zn(),c=a.flags;switch(a.tag){case 0:case 11:case 15:Gn(e,a),c&4&&nS(a,No|Jo);break;case 1:if(Gn(e,a),c&4)if(e=a.stateNode,t===null)a.type.defaultProps||"ref"in a.memoizedProps||Ju||(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.",_(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.",_(a)||"instance")),Hn(a)?(_n(),F(a,Oy,a,e),Pn()):F(a,Oy,a,e);else{var p=ys(a.type,t.memoizedProps);t=t.memoizedState,a.type.defaultProps||"ref"in a.memoizedProps||Ju||(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.",_(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.",_(a)||"instance")),Hn(a)?(_n(),F(a,oC,a,e,p,t,e.__reactInternalSnapshotBeforeUpdate),Pn()):F(a,oC,a,e,p,t,e.__reactInternalSnapshotBeforeUpdate)}c&64&&rS(a),c&512&&Ji(a,a.return);break;case 3:if(t=Cl(),Gn(e,a),c&64&&(c=a.updateQueue,c!==null)){if(p=null,a.child!==null)switch(a.child.tag){case 27:case 5:p=a.child.stateNode;break;case 1:p=a.child.stateNode}try{F(a,uv,c,p)}catch(E){Ot(a,a.return,E)}}e.effectDuration+=mf(t);break;case 27:t===null&&c&4&&dS(a);case 26:case 5:if(Gn(e,a),t===null){if(c&4)iS(a);else if(c&64){e=a.type,t=a.memoizedProps,p=a.stateNode;try{F(a,_I,p,e,t,a)}catch(E){Ot(a,a.return,E)}}}c&512&&Ji(a,a.return);break;case 12:if(c&4){c=Cl(),Gn(e,a),e=a.stateNode,e.effectDuration+=Hi(c);try{F(a,uS,a,t,xr,e.effectDuration)}catch(E){Ot(a,a.return,E)}}else Gn(e,a);break;case 31:Gn(e,a),c&4&&gS(e,a);break;case 13:Gn(e,a),c&4&&yS(e,a),c&64&&(e=a.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(c=TI.bind(null,a),JI(e,c))));break;case 22:if(c=a.memoizedState!==null||Pl,!c){t=t!==null&&t.memoizedState!==null||wa,p=Pl;var g=wa;Pl=c,(wa=t)&&!g?(Vn(e,a,(a.subtreeFlags&8772)!==0),(a.mode&nt)!==_e&&0<=qe&&0<=ze&&0.05<ze-qe&&of(a,qe,ze)):Gn(e,a),Pl=p,wa=g}break;case 30:break;default:Gn(e,a)}(a.mode&nt)!==_e&&0<=qe&&0<=ze&&((sa||0.05<aa)&&On(a,qe,ze,aa,ta),a.alternate===null&&a.return!==null&&a.return.alternate!==null&&0.05<ze-qe&&(fS(a.return.alternate,a.return)||En(a,qe,ze,"Mount"))),Io(o),Nn(n),ta=l,sa=s}function mS(e){var t=e.alternate;t!==null&&(e.alternate=null,mS(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&de(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 Tl(e,t,a){for(a=a.child;a!==null;)hS(e,t,a),a=a.sibling}function hS(e,t,a){if(Ka&&typeof Ka.onCommitFiberUnmount==="function")try{Ka.onCommitFiberUnmount(Mu,a)}catch(g){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",g))}var o=To(),n=Bn(),l=Un(),s=zn();switch(a.tag){case 26:wa||Fn(a,t),Tl(e,t,a),a.memoizedState?a.memoizedState.count--:a.stateNode&&(e=a.stateNode,e.parentNode.removeChild(e));break;case 27:wa||Fn(a,t);var c=Ta,p=yo;dr(a.type)&&(Ta=a.stateNode,yo=!1),Tl(e,t,a),F(a,uc,a.stateNode),Ta=c,yo=p;break;case 5:wa||Fn(a,t);case 6:if(c=Ta,p=yo,Ta=null,Tl(e,t,a),Ta=c,yo=p,Ta!==null)if(yo)try{F(a,VI,Ta,a.stateNode)}catch(g){Ot(a,t,g)}else try{F(a,GI,Ta,a.stateNode)}catch(g){Ot(a,t,g)}break;case 18:Ta!==null&&(yo?(e=Ta,bx(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,a.stateNode),wu(e)):bx(Ta,a.stateNode));break;case 4:c=Ta,p=yo,Ta=a.stateNode.containerInfo,yo=!0,Tl(e,t,a),Ta=c,yo=p;break;case 0:case 11:case 14:case 15:yu(uo,a,t),wa||ug(a,t,No),Tl(e,t,a);break;case 1:wa||(Fn(a,t),c=a.stateNode,typeof c.componentWillUnmount==="function"&&sS(a,t,c)),Tl(e,t,a);break;case 21:Tl(e,t,a);break;case 22:wa=(c=wa)||a.memoizedState!==null,Tl(e,t,a),wa=c;break;default:Tl(e,t,a)}(a.mode&nt)!==_e&&0<=qe&&0<=ze&&(sa||0.05<aa)&&On(a,qe,ze,aa,ta),Io(o),Nn(n),ta=l,sa=s}function gS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{F(t,tR,e)}catch(a){Ot(t,t.return,a)}}}function yS(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{F(t,aR,e)}catch(a){Ot(t,t.return,a)}}function bI(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new FC),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new FC),t;default:throw Error("Unexpected Suspense handler tag ("+e.tag+"). This is a bug in React.")}}function Ff(e,t){var a=bI(e);t.forEach(function(o){if(!a.has(o)){if(a.add(o),Wn)if(ei!==null&&ti!==null)oc(ti,ei);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");var n=II.bind(null,e,o);o.then(n,n)}})}function ho(e,t){var a=t.deletions;if(a!==null)for(var o=0;o<a.length;o++){var n=e,l=t,s=a[o],c=To(),p=l;e:for(;p!==null;){switch(p.tag){case 27:if(dr(p.type)){Ta=p.stateNode,yo=!1;break e}break;case 5:Ta=p.stateNode,yo=!1;break e;case 3:case 4:Ta=p.stateNode.containerInfo,yo=!0;break e}p=p.return}if(Ta===null)throw Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");hS(n,l,s),Ta=null,yo=!1,(s.mode&nt)!==_e&&0<=qe&&0<=ze&&0.05<ze-qe&&En(s,qe,ze,"Unmount"),Io(c),n=s,l=n.alternate,l!==null&&(l.return=null),n.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)bS(t,e),t=t.sibling}function bS(e,t){var a=To(),o=Bn(),n=Un(),l=zn(),{alternate:s,flags:c}=e;switch(e.tag){case 0:case 11:case 14:case 15:ho(t,e),go(e),c&4&&(yu(uo|Jo,e,e.return),Ki(uo|Jo,e),ug(e,e.return,No|Jo));break;case 1:if(ho(t,e),go(e),c&512&&(wa||s===null||Fn(s,s.return)),c&64&&Pl&&(c=e.updateQueue,c!==null&&(s=c.callbacks,s!==null))){var p=c.shared.hiddenCallbacks;c.shared.hiddenCallbacks=p===null?s:p.concat(s)}break;case 26:if(p=yn,ho(t,e),go(e),c&512&&(wa||s===null||Fn(s,s.return)),c&4){var g=s!==null?s.memoizedState:null;if(c=e.memoizedState,s===null)if(c===null)if(e.stateNode===null){e:{c=e.type,s=e.memoizedProps,p=p.ownerDocument||p;t:switch(c){case"title":if(g=p.getElementsByTagName("title")[0],!g||g[hc]||g[ja]||g.namespaceURI===Du||g.hasAttribute("itemprop"))g=p.createElement(c),p.head.insertBefore(g,p.querySelector("head > title"));$a(g,c,s),g[ja]=e,Oe(g),c=g;break e;case"link":var E=Mx("link","href",p).get(c+(s.href||""));if(E){for(var O=0;O<E.length;O++)if(g=E[O],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)){E.splice(O,1);break t}}g=p.createElement(c),$a(g,c,s),p.head.appendChild(g);break;case"meta":if(E=Mx("meta","content",p).get(c+(s.content||""))){for(O=0;O<E.length;O++)if(g=E[O],Je(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)){E.splice(O,1);break t}}g=p.createElement(c),$a(g,c,s),p.head.appendChild(g);break;default:throw Error('getNodesForType encountered a type it did not expect: "'+c+'". This is a bug in React.')}g[ja]=e,Oe(g),c=g}e.stateNode=c}else Ax(p,e.type,e.stateNode);else e.stateNode=Rx(p,c,e.memoizedProps);else g!==c?(g===null?s.stateNode!==null&&(s=s.stateNode,s.parentNode.removeChild(s)):g.count--,c===null?Ax(p,e.type,e.stateNode):Rx(p,c,e.memoizedProps)):c===null&&e.stateNode!==null&&cg(e,e.memoizedProps,s.memoizedProps)}break;case 27:ho(t,e),go(e),c&512&&(wa||s===null||Fn(s,s.return)),s!==null&&c&4&&cg(e,e.memoizedProps,s.memoizedProps);break;case 5:if(ho(t,e),go(e),c&512&&(wa||s===null||Fn(s,s.return)),e.flags&32){p=e.stateNode;try{F(e,gx,p)}catch(me){Ot(e,e.return,me)}}c&4&&e.stateNode!=null&&(p=e.memoizedProps,cg(e,p,s!==null?s.memoizedProps:p)),c&1024&&(jy=!0,e.type!=="form"&&console.error("Unexpected host component type. Expected a form. This is a bug in React."));break;case 6:if(ho(t,e),go(e),c&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.");c=e.memoizedProps,s=s!==null?s.memoizedProps:c,p=e.stateNode;try{F(e,FI,p,s,c)}catch(me){Ot(e,e.return,me)}}break;case 3:if(p=Cl(),nm=null,g=yn,yn=Zf(t.containerInfo),ho(t,e),yn=g,go(e),c&4&&s!==null&&s.memoizedState.isDehydrated)try{F(e,eR,t.containerInfo)}catch(me){Ot(e,e.return,me)}jy&&(jy=!1,vS(e)),t.effectDuration+=mf(p);break;case 4:c=yn,yn=Zf(e.stateNode.containerInfo),ho(t,e),go(e),yn=c;break;case 12:c=Cl(),ho(t,e),go(e),e.stateNode.effectDuration+=Hi(c);break;case 31:ho(t,e),go(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,Ff(e,c)));break;case 13:ho(t,e),go(e),e.child.flags&8192&&e.memoizedState!==null!==(s!==null&&s.memoizedState!==null)&&(Gp=Ba()),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,Ff(e,c)));break;case 22:p=e.memoizedState!==null;var I=s!==null&&s.memoizedState!==null,z=Pl,re=wa;if(Pl=z||p,wa=re||I,ho(t,e),wa=re,Pl=z,I&&!p&&!z&&!re&&(e.mode&nt)!==_e&&0<=qe&&0<=ze&&0.05<ze-qe&&of(e,qe,ze),go(e),c&8192)e:for(t=e.stateNode,t._visibility=p?t._visibility&~kc:t._visibility|kc,!p||s===null||I||Pl||wa||(bs(e),(e.mode&nt)!==_e&&0<=qe&&0<=ze&&0.05<ze-qe&&En(e,qe,ze,"Disconnect")),s=null,t=e;;){if(t.tag===5||t.tag===26){if(s===null){I=s=t;try{g=I.stateNode,p?F(I,jI,g):F(I,QI,I.stateNode,I.memoizedProps)}catch(me){Ot(I,I.return,me)}}}else if(t.tag===6){if(s===null){I=t;try{E=I.stateNode,p?F(I,XI,E):F(I,ZI,E,I.memoizedProps)}catch(me){Ot(I,I.return,me)}}}else if(t.tag===18){if(s===null){I=t;try{O=I.stateNode,p?F(I,$I,O):F(I,YI,I.stateNode)}catch(me){Ot(I,I.return,me)}}}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}c&4&&(c=e.updateQueue,c!==null&&(s=c.retryQueue,s!==null&&(c.retryQueue=null,Ff(e,s))));break;case 19:ho(t,e),go(e),c&4&&(c=e.updateQueue,c!==null&&(e.updateQueue=null,Ff(e,c)));break;case 30:break;case 21:break;default:ho(t,e),go(e)}(e.mode&nt)!==_e&&0<=qe&&0<=ze&&((sa||0.05<aa)&&On(e,qe,ze,aa,ta),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&0.05<ze-qe&&(fS(e.return.alternate,e.return)||En(e,qe,ze,"Mount"))),Io(a),Nn(o),ta=n,sa=l}function go(e){var t=e.flags;if(t&2){try{F(e,gI,e)}catch(a){Ot(e,e.return,a)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function vS(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;vS(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Gn(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)pS(e,t.alternate,t),t=t.sibling}function SS(e){var t=To(),a=Bn(),o=Un(),n=zn();switch(e.tag){case 0:case 11:case 14:case 15:ug(e,e.return,No),bs(e);break;case 1:Fn(e,e.return);var l=e.stateNode;typeof l.componentWillUnmount==="function"&&sS(e,e.return,l),bs(e);break;case 27:F(e,uc,e.stateNode);case 26:case 5:Fn(e,e.return),bs(e);break;case 22:e.memoizedState===null&&bs(e);break;case 30:bs(e);break;default:bs(e)}(e.mode&nt)!==_e&&0<=qe&&0<=ze&&(sa||0.05<aa)&&On(e,qe,ze,aa,ta),Io(t),Nn(a),ta=o,sa=n}function bs(e){for(e=e.child;e!==null;)SS(e),e=e.sibling}function xS(e,t,a,o){var n=To(),l=Bn(),s=Un(),c=zn(),p=a.flags;switch(a.tag){case 0:case 11:case 15:Vn(e,a,o),nS(a,No);break;case 1:if(Vn(e,a,o),t=a.stateNode,typeof t.componentDidMount==="function"&&F(a,Oy,a,t),t=a.updateQueue,t!==null){e=a.stateNode;try{F(a,eI,t,e)}catch(g){Ot(a,a.return,g)}}o&&p&64&&rS(a),Ji(a,a.return);break;case 27:dS(a);case 26:case 5:Vn(e,a,o),o&&t===null&&p&4&&iS(a),Ji(a,a.return);break;case 12:if(o&&p&4){p=Cl(),Vn(e,a,o),o=a.stateNode,o.effectDuration+=Hi(p);try{F(a,uS,a,t,xr,o.effectDuration)}catch(g){Ot(a,a.return,g)}}else Vn(e,a,o);break;case 31:Vn(e,a,o),o&&p&4&&gS(e,a);break;case 13:Vn(e,a,o),o&&p&4&&yS(e,a);break;case 22:a.memoizedState===null&&Vn(e,a,o),Ji(a,a.return);break;case 30:break;default:Vn(e,a,o)}(a.mode&nt)!==_e&&0<=qe&&0<=ze&&(sa||0.05<aa)&&On(a,qe,ze,aa,ta),Io(n),Nn(l),ta=s,sa=c}function Vn(e,t,a){a=a&&(t.subtreeFlags&8772)!==0;for(t=t.child;t!==null;)xS(e,t.alternate,t,a),t=t.sibling}function pg(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&&ps(e),a!=null&&_i(a))}function mg(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(ps(t),e!=null&&_i(e))}function dn(e,t,a,o,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var l=t.sibling;LS(e,t,a,o,l!==null?l.actualStartTime:n),t=l}}function LS(e,t,a,o,n){var l=To(),s=Bn(),c=Un(),p=zn(),g=yr,E=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&nt)!==_e&&0<t.actualStartTime&&(t.flags&1)!==0&&nf(t,t.actualStartTime,n,Aa,a),dn(e,t,a,o,n),E&2048&&lS(t,io|Jo);break;case 1:(t.mode&nt)!==_e&&0<t.actualStartTime&&((t.flags&128)!==0?Wm(t,t.actualStartTime,n,[]):(t.flags&1)!==0&&nf(t,t.actualStartTime,n,Aa,a)),dn(e,t,a,o,n);break;case 3:var O=Cl(),I=Aa;Aa=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)===0,dn(e,t,a,o,n),Aa=I,E&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),o=t.memoizedState.cache,o!==a&&(ps(o),a!=null&&_i(a))),e.passiveEffectDuration+=mf(O);break;case 12:if(E&2048){E=Cl(),dn(e,t,a,o,n),e=t.stateNode,e.passiveEffectDuration+=Hi(E);try{F(t,hI,t,t.alternate,xr,e.passiveEffectDuration)}catch(z){Ot(t,t.return,z)}}else dn(e,t,a,o,n);break;case 31:E=Aa,O=t.alternate!==null?t.alternate.memoizedState:null,I=t.memoizedState,O!==null&&I===null?(I=t.deletions,I!==null&&0<I.length&&I[0].tag===18?(Aa=!1,O=O.hydrationErrors,O!==null&&Wm(t,t.actualStartTime,n,O)):Aa=!0):Aa=!1,dn(e,t,a,o,n),Aa=E;break;case 13:E=Aa,O=t.alternate!==null?t.alternate.memoizedState:null,I=t.memoizedState,O===null||O.dehydrated===null||I!==null&&I.dehydrated!==null?Aa=!1:(I=t.deletions,I!==null&&0<I.length&&I[0].tag===18?(Aa=!1,O=O.hydrationErrors,O!==null&&Wm(t,t.actualStartTime,n,O)):Aa=!0),dn(e,t,a,o,n),Aa=E;break;case 23:break;case 22:I=t.stateNode,O=t.alternate,t.memoizedState!==null?I._visibility&Ml?dn(e,t,a,o,n):ec(e,t,a,o,n):I._visibility&Ml?dn(e,t,a,o,n):(I._visibility|=Ml,bu(e,t,a,o,(t.subtreeFlags&10256)!==0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),n),(t.mode&nt)===_e||Aa||(e=t.actualStartTime,0<=e&&0.05<n-e&&of(t,e,n),0<=qe&&0<=ze&&0.05<ze-qe&&of(t,qe,ze))),E&2048&&pg(O,t);break;case 24:dn(e,t,a,o,n),E&2048&&mg(t.alternate,t);break;default:dn(e,t,a,o,n)}if((t.mode&nt)!==_e){if(e=!Aa&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)a=t.actualStartTime,0<=a&&0.05<n-a&&En(t,a,n,"Mount");0<=qe&&0<=ze&&((sa||0.05<aa)&&On(t,qe,ze,aa,ta),e&&0.05<ze-qe&&En(t,qe,ze,"Mount"))}Io(l),Nn(s),ta=c,sa=p,yr=g}function bu(e,t,a,o,n,l){n=n&&((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;CS(e,t,a,o,n,s!==null?s.actualStartTime:l),t=s}}function CS(e,t,a,o,n,l){var s=To(),c=Bn(),p=Un(),g=zn(),E=yr;n&&(t.mode&nt)!==_e&&0<t.actualStartTime&&(t.flags&1)!==0&&nf(t,t.actualStartTime,l,Aa,a);var O=t.flags;switch(t.tag){case 0:case 11:case 15:bu(e,t,a,o,n,l),lS(t,io);break;case 23:break;case 22:var I=t.stateNode;t.memoizedState!==null?I._visibility&Ml?bu(e,t,a,o,n,l):ec(e,t,a,o,l):(I._visibility|=Ml,bu(e,t,a,o,n,l)),n&&O&2048&&pg(t.alternate,t);break;case 24:bu(e,t,a,o,n,l),n&&O&2048&&mg(t.alternate,t);break;default:bu(e,t,a,o,n,l)}(t.mode&nt)!==_e&&0<=qe&&0<=ze&&(sa||0.05<aa)&&On(t,qe,ze,aa,ta),Io(s),Nn(c),ta=p,sa=g,yr=E}function ec(e,t,a,o,n){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var l=t.child;l!==null;){t=l.sibling;var s=e,c=a,p=o,g=t!==null?t.actualStartTime:n,E=yr;(l.mode&nt)!==_e&&0<l.actualStartTime&&(l.flags&1)!==0&&nf(l,l.actualStartTime,g,Aa,c);var O=l.flags;switch(l.tag){case 22:ec(s,l,c,p,g),O&2048&&pg(l.alternate,l);break;case 24:ec(s,l,c,p,g),O&2048&&mg(l.alternate,l);break;default:ec(s,l,c,p,g)}yr=E,l=t}}function vu(e,t,a){if(e.subtreeFlags&Vc)for(e=e.child;e!==null;)kS(e,t,a),e=e.sibling}function kS(e,t,a){switch(e.tag){case 26:vu(e,t,a),e.flags&Vc&&e.memoizedState!==null&&rR(a,yn,e.memoizedState,e.memoizedProps);break;case 5:vu(e,t,a);break;case 3:case 4:var o=yn;yn=Zf(e.stateNode.containerInfo),vu(e,t,a),yn=o;break;case 22:e.memoizedState===null&&(o=e.alternate,o!==null&&o.memoizedState!==null?(o=Vc,Vc=16777216,vu(e,t,a),Vc=o):vu(e,t,a));break;default:vu(e,t,a)}}function wS(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 tc(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],n=To();Ua=o,RS(o,e),(o.mode&nt)!==_e&&0<=qe&&0<=ze&&0.05<ze-qe&&En(o,qe,ze,"Unmount"),Io(n)}wS(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)TS(e),e=e.sibling}function TS(e){var t=To(),a=Bn(),o=Un(),n=zn();switch(e.tag){case 0:case 11:case 15:tc(e),e.flags&2048&&ig(e,e.return,io|Jo);break;case 3:var l=Cl();tc(e),e.stateNode.passiveEffectDuration+=mf(l);break;case 12:l=Cl(),tc(e),e.stateNode.passiveEffectDuration+=Hi(l);break;case 22:l=e.stateNode,e.memoizedState!==null&&l._visibility&Ml&&(e.return===null||e.return.tag!==13)?(l._visibility&=~Ml,Gf(e),(e.mode&nt)!==_e&&0<=qe&&0<=ze&&0.05<ze-qe&&En(e,qe,ze,"Disconnect")):tc(e);break;default:tc(e)}(e.mode&nt)!==_e&&0<=qe&&0<=ze&&(sa||0.05<aa)&&On(e,qe,ze,aa,ta),Io(t),Nn(a),sa=n,ta=o}function Gf(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],n=To();Ua=o,RS(o,e),(o.mode&nt)!==_e&&0<=qe&&0<=ze&&0.05<ze-qe&&En(o,qe,ze,"Unmount"),Io(n)}wS(e)}for(e=e.child;e!==null;)IS(e),e=e.sibling}function IS(e){var t=To(),a=Bn(),o=Un(),n=zn();switch(e.tag){case 0:case 11:case 15:ig(e,e.return,io),Gf(e);break;case 22:var l=e.stateNode;l._visibility&Ml&&(l._visibility&=~Ml,Gf(e));break;default:Gf(e)}(e.mode&nt)!==_e&&0<=qe&&0<=ze&&(sa||0.05<aa)&&On(e,qe,ze,aa,ta),Io(t),Nn(a),sa=n,ta=o}function RS(e,t){for(;Ua!==null;){var a=Ua,o=a,n=t,l=To(),s=Bn(),c=Un(),p=zn();switch(o.tag){case 0:case 11:case 15:ig(o,n,io);break;case 23:case 22:o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(n=o.memoizedState.cachePool.pool,n!=null&&ps(n));break;case 24:_i(o.memoizedState.cache)}if((o.mode&nt)!==_e&&0<=qe&&0<=ze&&(sa||0.05<aa)&&On(o,qe,ze,aa,ta),Io(l),Nn(s),sa=p,ta=c,o=a.child,o!==null)o.return=a,Ua=o;else e:for(a=e;Ua!==null;){if(o=Ua,l=o.sibling,s=o.return,mS(o),o===a){Ua=null;break e}if(l!==null){l.return=s,Ua=l;break e}Ua=s}}}function vI(){_M.forEach(function(e){return e()})}function MS(){var e=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return e||H.actQueue===null||console.error("The current testing environment is not configured to support act(...)"),e}function Mo(e){if((kt&Da)!==za&&rt!==0)return rt&-rt;var t=H.T;return t!==null?(t._updatedFibers||(t._updatedFibers=new Set),t._updatedFibers.add(e),Lg()):q()}function AS(){if(vo===0)if((rt&536870912)===0||yt){var e=up;up<<=1,(up&3932160)===0&&(up=262144),vo=e}else vo=536870912;return e=Bo.current,e!==null&&(e.flags|=32),vo}function ra(e,t,a){if(ni&&console.error("useInsertionEffect must not schedule updates."),ob&&(Xp=!0),e===Vt&&(Pt===Os||Pt===qs)||e.cancelPendingCommit!==null)xu(e,0),ir(e,rt,vo,!1);if(Wl(e,a),(kt&Da)!==za&&e===Vt){if(Qn)switch(t.tag){case 0:case 11:case 15:e=st&&_(st)||"Unknown",o1.has(e)||(o1.add(e),t=_(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:a1||(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),a1=!0)}}else Wn&&Mi(e,t,a),MI(t),e===Vt&&((kt&Da)===za&&(Ar|=a),oa===Ir&&ir(e,rt,vo,!1)),$n(e)}function DS(e,t,a){if((kt&(Da|Uo))!==za)throw Error("Should not already be working.");if(rt!==0&&st!==null){var o=st,n=Ba();switch(QL){case Xc:case Os:var l=Ac;Qt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Suspended",l,n,$o,void 0,"primary-light")):console.timeStamp("Suspended",l,n,$o,void 0,"primary-light"));break;case qs:l=Ac,Qt&&((o=o._debugTask)?o.run(console.timeStamp.bind(console,"Action",l,n,$o,void 0,"primary-light")):console.timeStamp("Action",l,n,$o,void 0,"primary-light"));break;default:Qt&&(o=n-Ac,3>o||console.timeStamp("Blocked",Ac,n,$o,void 0,5>o?"primary-light":10>o?"primary":100>o?"primary-dark":"error"))}}l=(a=!a&&(t&127)===0&&(t&e.expiredLanes)===0||es(e,t))?xI(e,t):gg(e,t,!0);var s=a;do{if(l===_l){ai&&!a&&ir(e,t,0,!1),t=Pt,Ac=La(),QL=t;break}else{if(o=Ba(),n=e.current.alternate,s&&!SI(n)){ko(t),n=Na,l=o,!Qt||l<=n||(ma?ma.run(console.timeStamp.bind(console,"Teared Render",n,l,gt,mt,"error")):console.timeStamp("Teared Render",n,l,gt,mt,"error")),vs(t,o),l=gg(e,t,!1),s=!1;continue}if(l===Es){if(s=t,e.errorRecoveryDisabledLanes&s)var c=0;else c=e.pendingLanes&-536870913,c=c!==0?c:c&536870912?536870912:0;if(c!==0){ko(t),Km(Na,o,t,ma),vs(t,o),t=c;e:{o=e,l=s,s=Qc;var p=o.current.memoizedState.isDehydrated;if(p&&(xu(o,c).flags|=256),c=gg(o,c,!1),c!==Es){if(Qy&&!p){o.errorRecoveryDisabledLanes|=l,Ar|=l,l=Ir;break e}o=co,co=s,o!==null&&(co===null?co=o:co.push.apply(co,o))}l=c}if(s=!1,l!==Es)continue;else o=Ba()}}if(l===jc){ko(t),Km(Na,o,t,ma),vs(t,o),xu(e,0),ir(e,t,0,!0);break}e:{switch(a=e,l){case _l:case jc:throw Error("Root did not complete. This is a bug in React.");case Ir:if((t&4194048)!==t)break;case Pp:ko(t),D0(Na,o,t,ma),vs(t,o),n=t,(n&127)!==0?kp=o:(n&4194048)!==0&&(wp=o),ir(a,t,vo,!Rr);break e;case Es:co=null;break;case zp:case GC:break;default:throw Error("Unknown root exit status.")}if(H.actQueue!==null)yg(a,n,t,co,Zc,Fp,vo,Ar,Bs,l,null,null,Na,o);else{if((t&62914560)===t&&(s=Gp+jC-Ba(),10<s)){if(ir(a,t,vo,!Rr),Jr(a,0,!0)!==0)break e;bn=t,a.timeoutHandle=d1(ES.bind(null,a,n,co,Zc,Fp,t,vo,Ar,Bs,Rr,l,"Throttled",Na,o),s);break e}ES(a,n,co,Zc,Fp,t,vo,Ar,Bs,Rr,l,null,Na,o)}}}break}while(1);$n(e)}function ES(e,t,a,o,n,l,s,c,p,g,E,O,I,z){e.timeoutHandle=_s;var re=t.subtreeFlags,me=null;if(re&8192||(re&16785408)===16785408){if(me={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:vl},kS(t,l,me),re=(l&62914560)===l?Gp-Ba():(l&4194048)===l?$C-Ba():0,re=sR(me,re),re!==null){bn=l,e.cancelPendingCommit=re(yg.bind(null,e,t,l,a,o,n,s,c,p,E,me,me.waitingForViewTransition?"Waiting for the previous Animation":0<me.count?0<me.imgCount?"Suspended on CSS and Images":"Suspended on CSS":me.imgCount===1?"Suspended on an Image":0<me.imgCount?"Suspended on Images":null,I,z)),ir(e,l,s,!g);return}}yg(e,t,l,a,o,n,s,c,p,E,me,O,I,z)}function SI(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 n=a[o],l=n.getSnapshot;n=n.value;try{if(!ro(l(),n))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&=~Zy,t&=~Ar,e.suspendedLanes|=t,e.pingedLanes&=~t,o&&(e.warmLanes|=t),o=e.expirationTimes;for(var n=t;0<n;){var l=31-oo(n),s=1<<l;o[l]=-1,n&=~s}a!==0&&ts(e,a,t)}function Su(){return(kt&(Da|Uo))===za?(nc(0,!1),!1):!0}function hg(){if(st!==null){if(Pt===bo)var e=st.return;else e=st,df(),Th(e),Xu=null,Pc=0,e=st;for(;e!==null;)oS(e.alternate,e),e=e.return;st=null}}function vs(e,t){(e&127)!==0&&(Lr=t),(e&4194048)!==0&&(al=t),(e&62914560)!==0&&(XL=t),(e&2080374784)!==0&&(YL=t)}function xu(e,t){Qt&&(console.timeStamp("Blocking Track",0.003,0.003,"Blocking",mt,"primary-light"),console.timeStamp("Transition Track",0.003,0.003,"Transition",mt,"primary-light"),console.timeStamp("Suspense Track",0.003,0.003,"Suspense",mt,"primary-light"),console.timeStamp("Idle Track",0.003,0.003,"Idle",mt,"primary-light"));var a=Na;if(Na=La(),rt!==0&&0<a){if(ko(rt),oa===zp||oa===Ir)D0(a,Na,t,ma);else{var o=Na,n=ma;if(Qt&&!(o<=a)){var l=(t&738197653)===t?"tertiary-dark":"primary-dark",s=(t&536870912)===t?"Prewarm":(t&201326741)===t?"Interrupted Hydration":"Interrupted Render";n?n.run(console.timeStamp.bind(console,s,a,o,gt,mt,l)):console.timeStamp(s,a,o,gt,mt,l)}}vs(rt,Na)}if(a=ma,ma=null,(t&127)!==0){ma=Ic,n=0<=tl&&tl<Lr?Lr:tl,o=0<=ks&&ks<Lr?Lr:ks,l=0<=o?o:0<=n?n:Na,0<=kp?(ko(2),E0(kp,l,t,a)):(Tp&127)!==0&&(ko(2),zi(Lr,l,Bl)),a=n;var c=o,p=Rc,g=0<Vu,E=Cr===Tc,O=Cr===Cp;if(n=Na,o=Ic,l=Ry,s=My,Qt){if(gt="Blocking",0<a?a>n&&(a=n):a=n,0<c?c>a&&(c=a):c=a,p!==null&&a>c){var I=g?"secondary-light":"warning";o?o.run(console.timeStamp.bind(console,g?"Consecutive":"Event: "+p,c,a,gt,mt,I)):console.timeStamp(g?"Consecutive":"Event: "+p,c,a,gt,mt,I)}n>a&&(c=E?"error":(t&738197653)===t?"tertiary-light":"primary-light",E=O?"Promise Resolved":E?"Cascading Update":5<n-a?"Update Blocked":"Update",O=[],s!=null&&O.push(["Component name",s]),l!=null&&O.push(["Method name",l]),a={start:a,end:n,detail:{devtools:{properties:O,track:gt,trackGroup:mt,color:c}}},o?o.run(performance.measure.bind(performance,E,a)):performance.measure(E,a))}tl=-1.1,Cr=0,My=Ry=null,kp=-1.1,Vu=ks,ks=-1.1,Lr=La()}if((t&4194048)!==0&&(ma=Mc,n=0<=ql&&ql<al?al:ql,a=0<=Wo&&Wo<al?al:Wo,o=0<=kr&&kr<al?al:kr,l=0<=o?o:0<=a?a:Na,0<=wp?(ko(256),E0(wp,l,t,ma)):(Tp&4194048)!==0&&(ko(256),zi(al,l,Bl)),O=o,c=ws,p=0<wr,g=Ay===Cp,l=Na,o=Mc,s=$L,E=jL,Qt&&(gt="Transition",0<a?a>l&&(a=l):a=l,0<n?n>a&&(n=a):n=a,0<O?O>n&&(O=n):O=n,n>O&&c!==null&&(I=p?"secondary-light":"warning",o?o.run(console.timeStamp.bind(console,p?"Consecutive":"Event: "+c,O,n,gt,mt,I)):console.timeStamp(p?"Consecutive":"Event: "+c,O,n,gt,mt,I)),a>n&&(o?o.run(console.timeStamp.bind(console,"Action",n,a,gt,mt,"primary-dark")):console.timeStamp("Action",n,a,gt,mt,"primary-dark")),l>a&&(n=g?"Promise Resolved":5<l-a?"Update Blocked":"Update",O=[],E!=null&&O.push(["Component name",E]),s!=null&&O.push(["Method name",s]),a={start:a,end:l,detail:{devtools:{properties:O,track:gt,trackGroup:mt,color:"primary-light"}}},o?o.run(performance.measure.bind(performance,n,a)):performance.measure(n,a))),Wo=ql=-1.1,Ay=0,wp=-1.1,wr=kr,kr=-1.1,al=La()),(t&62914560)!==0&&(Tp&62914560)!==0&&(ko(4194304),zi(XL,Na,Bl)),(t&2080374784)!==0&&(Tp&2080374784)!==0&&(ko(268435456),zi(YL,Na,Bl)),a=e.timeoutHandle,a!==_s&&(e.timeoutHandle=_s,JM(a)),a=e.cancelPendingCommit,a!==null&&(e.cancelPendingCommit=null,a()),bn=0,hg(),Vt=e,st=a=Sl(e.current,null),rt=t,Pt=bo,zo=null,Rr=!1,ai=es(e,t),Qy=!1,oa=_l,Bs=vo=Zy=Ar=Mr=0,co=Qc=null,Fp=!1,(t&8)!==0&&(t|=t&32),o=e.entangledLanes,o!==0)for(e=e.entanglements,o&=t;0<o;)n=31-oo(o),l=1<<n,t|=e[n],o&=~l;return nl=t,lf(),e=PL(),1000<e-zL&&(H.recentlyCreatedOwnerStacks=0,zL=e),hn.discardPendingWarnings(),a}function OS(e,t){Ve=null,H.H=Gc,H.getCurrentStack=null,Qn=!1,Eo=null,t===ju||t===Ap?(t=ev(),Pt=Xc):t===qy?(t=ev(),Pt=VC):Pt=t===Vy?Yy:t!==null&&typeof t==="object"&&typeof t.then==="function"?Yc:_p,zo=t;var a=st;a===null?(oa=jc,Nf(e,wo(t,e.current))):a.mode&nt&&ph(a)}function qS(){var e=Bo.current;return e===null?!0:(rt&4194048)===rt?Ko===null?!0:!1:(rt&62914560)===rt||(rt&536870912)!==0?e===Ko:!1}function BS(){var e=H.H;return H.H=Gc,e===null?Gc:e}function NS(){var e=H.A;return H.A=PM,e}function Vf(e){ma===null&&(ma=e._debugTask==null?null:e._debugTask)}function $f(){oa=Ir,Rr||(rt&4194048)!==rt&&Bo.current!==null||(ai=!0),(Mr&134217727)===0&&(Ar&134217727)===0||Vt===null||ir(Vt,rt,vo,!1)}function gg(e,t,a){var o=kt;kt|=Da;var n=BS(),l=NS();if(Vt!==e||rt!==t){if(Wn){var s=e.memoizedUpdaters;0<s.size&&(oc(e,rt),s.clear()),Kl(e,t)}Zc=null,xu(e,t)}t=!1,s=oa;e:do try{if(Pt!==bo&&st!==null){var c=st,p=zo;switch(Pt){case Yy:hg(),s=Pp;break e;case Xc:case Os:case qs:case Yc:Bo.current===null&&(t=!0);var g=Pt;if(Pt=bo,zo=null,Lu(e,c,p,g),a&&ai){s=_l;break e}break;default:g=Pt,Pt=bo,zo=null,Lu(e,c,p,g)}}US(),s=oa;break}catch(E){OS(e,E)}while(1);return t&&e.shellSuspendCounter++,df(),kt=o,H.H=n,H.A=l,st===null&&(Vt=null,rt=0,lf()),s}function US(){for(;st!==null;)zS(st)}function xI(e,t){var a=kt;kt|=Da;var o=BS(),n=NS();if(Vt!==e||rt!==t){if(Wn){var l=e.memoizedUpdaters;0<l.size&&(oc(e,rt),l.clear()),Kl(e,t)}Zc=null,Vp=Ba()+XC,xu(e,t)}else ai=es(e,t);e:do try{if(Pt!==bo&&st!==null)t:switch(t=st,l=zo,Pt){case _p:Pt=bo,zo=null,Lu(e,t,l,_p);break;case Os:case qs:if(K0(l)){Pt=bo,zo=null,PS(t);break}t=function(){Pt!==Os&&Pt!==qs||Vt!==e||(Pt=Hp),$n(e)},l.then(t,t);break e;case Xc:Pt=Hp;break e;case VC:Pt=Xy;break e;case Hp:K0(l)?(Pt=bo,zo=null,PS(t)):(Pt=bo,zo=null,Lu(e,t,l,Hp));break;case Xy:var s=null;switch(st.tag){case 26:s=st.memoizedState;case 5:case 27:var c=st;if(s?Dx(s):c.stateNode.complete){Pt=bo,zo=null;var p=c.sibling;if(p!==null)st=p;else{var g=c.return;g!==null?(st=g,jf(g)):st=null}break t}break;default:console.error("Unexpected type of fiber triggered a suspensey commit. This is a bug in React.")}Pt=bo,zo=null,Lu(e,t,l,Xy);break;case Yc:Pt=bo,zo=null,Lu(e,t,l,Yc);break;case Yy:hg(),oa=Pp;break e;default:throw Error("Unexpected SuspendedReason. This is a bug in React.")}H.actQueue!==null?US():LI();break}catch(E){OS(e,E)}while(1);if(df(),H.H=o,H.A=n,kt=a,st!==null)return _l;return Vt=null,rt=0,lf(),oa}function LI(){for(;st!==null&&!SR();)zS(st)}function zS(e){var t=e.alternate;(e.mode&nt)!==_e?(fh(e),t=F(e,rg,t,e,nl),ph(e)):t=F(e,rg,t,e,nl),e.memoizedProps=e.pendingProps,t===null?jf(e):st=t}function PS(e){var t=F(e,CI,e);e.memoizedProps=e.pendingProps,t===null?jf(e):st=t}function CI(e){var t=e.alternate,a=(e.mode&nt)!==_e;switch(a&&fh(e),e.tag){case 15:case 0:t=Zv(t,e,e.pendingProps,e.type,void 0,rt);break;case 11:t=Zv(t,e,e.pendingProps,e.type.render,e.ref,rt);break;case 5:Th(e);default:oS(t,e),e=st=z0(e,nl),t=rg(t,e,nl)}return a&&ph(e),t}function Lu(e,t,a,o){df(),Th(t),Xu=null,Pc=0;var n=t.return;try{if(sI(e,n,t,a,rt)){oa=jc,Nf(e,wo(a,e.current)),st=null;return}}catch(l){if(n!==null)throw st=n,l;oa=jc,Nf(e,wo(a,e.current)),st=null;return}if(t.flags&32768){if(yt||o===_p)e=!0;else if(ai||(rt&536870912)!==0)e=!1;else if(Rr=e=!0,o===Os||o===qs||o===Xc||o===Yc)o=Bo.current,o!==null&&o.tag===13&&(o.flags|=16384);_S(t,e)}else jf(t)}function jf(e){var t=e;do{if((t.flags&32768)!==0){_S(t,Rr);return}var a=t.alternate;if(e=t.return,fh(t),a=F(t,cI,a,t,nl),(t.mode&nt)!==_e&&X0(t),a!==null){st=a;return}if(t=t.sibling,t!==null){st=t;return}st=t=e}while(t!==null);oa===_l&&(oa=GC)}function _S(e,t){do{var a=dI(e.alternate,e);if(a!==null){a.flags&=32767,st=a;return}if((e.mode&nt)!==_e){X0(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)){st=e;return}st=e=a}while(e!==null);oa=Pp,st=null}function yg(e,t,a,o,n,l,s,c,p,g,E,O,I,z){e.cancelPendingCommit=null;do ac();while(Ia!==Er);if(hn.flushLegacyContextWarning(),hn.flushPendingUnsafeLifecycleWarnings(),(kt&(Da|Uo))!==za)throw Error("Should not already be working.");if(ko(a),g===Es?Km(I,z,a,ma):o!==null?YT(I,z,a,o,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!==0,ma):XT(I,z,a,ma),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(l=t.lanes|t.childLanes,l|=Cy,Yd(e,a,l,s,c,p),e===Vt&&(st=Vt=null,rt=0),oi=t,Or=e,bn=a,Jy=l,tb=n,JC=o,eb=z,e1=O,vn=$p,t1=null,t.actualDuration!==0||(t.subtreeFlags&10256)!==0||(t.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,RI(Ru,function(){return ad=window.event,vn===$p&&(vn=Ky),$S(),null})):(e.callbackNode=null,e.callbackPriority=0),Ol=null,xr=La(),O!==null&&QT(z,xr,O,ma),o=(t.flags&13878)!==0,(t.subtreeFlags&13878)!==0||o){o=H.T,H.T=null,n=qt.p,qt.p=Oo,s=kt,kt|=Uo;try{yI(e,t,a)}finally{kt=s,qt.p=n,H.T=o}}Ia=QC,HS(),FS(),GS()}}function HS(){if(Ia===QC){Ia=Er;var e=Or,t=oi,a=bn,o=(t.flags&13878)!==0;if((t.subtreeFlags&13878)!==0||o){o=H.T,H.T=null;var n=qt.p;qt.p=Oo;var l=kt;kt|=Uo;try{ei=a,ti=e,hf(),bS(t,e),ti=ei=null,a=fb;var s=R0(e.containerInfo),c=a.focusedElem,p=a.selectionRange;if(s!==c&&c&&c.ownerDocument&&I0(c.ownerDocument.documentElement,c)){if(p!==null&&Qm(c)){var{start:g,end:E}=p;if(E===void 0&&(E=g),"selectionStart"in c)c.selectionStart=g,c.selectionEnd=Math.min(E,c.value.length);else{var O=c.ownerDocument||document,I=O&&O.defaultView||window;if(I.getSelection){var z=I.getSelection(),re=c.textContent.length,me=Math.min(p.start,re),Yt=p.end===void 0?me:Math.min(p.end,re);!z.extend&&me>Yt&&(s=Yt,Yt=me,me=s);var xt=T0(c,me),T=T0(c,Yt);if(xt&&T&&(z.rangeCount!==1||z.anchorNode!==xt.node||z.anchorOffset!==xt.offset||z.focusNode!==T.node||z.focusOffset!==T.offset)){var R=O.createRange();R.setStart(xt.node,xt.offset),z.removeAllRanges(),me>Yt?(z.addRange(R),z.extend(T.node,T.offset)):(R.setEnd(T.node,T.offset),z.addRange(R))}}}}O=[];for(z=c;z=z.parentNode;)z.nodeType===1&&O.push({element:z,left:z.scrollLeft,top:z.scrollTop});typeof c.focus==="function"&&c.focus();for(c=0;c<O.length;c++){var D=O[c];D.element.scrollLeft=D.left,D.element.scrollTop=D.top}}sm=!!db,fb=db=null}finally{kt=l,qt.p=n,H.T=o}}e.current=t,Ia=ZC}}function FS(){if(Ia===ZC){Ia=Er;var e=t1;if(e!==null){xr=La();var t=El,a=xr;!Qt||a<=t||(Bl?Bl.run(console.timeStamp.bind(console,e,t,a,gt,mt,"secondary-light")):console.timeStamp(e,t,a,gt,mt,"secondary-light"))}e=Or,t=oi,a=bn;var o=(t.flags&8772)!==0;if((t.subtreeFlags&8772)!==0||o){o=H.T,H.T=null;var n=qt.p;qt.p=Oo;var l=kt;kt|=Uo;try{ei=a,ti=e,hf(),pS(e,t.alternate,t),ti=ei=null}finally{kt=l,qt.p=n,H.T=o}}e=eb,t=e1,El=La(),e=t===null?e:xr,t=El,a=vn===Wy,o=ma,Ol!==null?O0(e,t,Ol,!1,o):!Qt||t<=e||(o?o.run(console.timeStamp.bind(console,a?"Commit Interrupted View Transition":"Commit",e,t,gt,mt,a?"error":"secondary-dark")):console.timeStamp(a?"Commit Interrupted View Transition":"Commit",e,t,gt,mt,a?"error":"secondary-dark")),Ia=WC}}function GS(){if(Ia===KC||Ia===WC){if(Ia===KC){var e=El;El=La();var t=El,a=vn===Wy;!Qt||t<=e||(Bl?Bl.run(console.timeStamp.bind(console,a?"Interrupted View Transition":"Starting Animation",e,t,gt,mt,a?"error":"secondary-light")):console.timeStamp(a?"Interrupted View Transition":"Starting Animation",e,t,gt,mt,a?" error":"secondary-light")),vn!==Wy&&(vn=YC)}Ia=Er,xR(),e=Or;var o=oi;t=bn,a=JC;var n=o.actualDuration!==0||(o.subtreeFlags&10256)!==0||(o.flags&10256)!==0;n?Ia=jp:(Ia=Er,oi=Or=null,VS(e,e.pendingLanes),Ns=0,Kc=null);var l=e.pendingLanes;if(l===0&&(Dr=null),n||QS(e),l=y(t),o=o.stateNode,Ka&&typeof Ka.onCommitFiberRoot==="function")try{var s=(o.current.flags&128)===128;switch(l){case Oo:var c=ty;break;case pn:c=ay;break;case Kn:c=Ru;break;case cp:c=oy;break;default:c=Ru}Ka.onCommitFiberRoot(Mu,o,c,s)}catch(O){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",O))}if(Wn&&e.memoizedUpdaters.clear(),vI(),a!==null){s=H.T,c=qt.p,qt.p=Oo,H.T=null;try{var p=e.onRecoverableError;for(o=0;o<a.length;o++){var g=a[o],E=kI(g.stack);F(g.source,p,g.value,E)}}finally{H.T=s,qt.p=c}}(bn&3)!==0&&ac(),$n(e),l=e.pendingLanes,(t&261930)!==0&&(l&42)!==0?(Rp=!0,e===ab?Wc++:(Wc=0,ab=e)):Wc=0,n||vs(t,El),nc(0,!1)}}function kI(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 VS(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,_i(t)))}function ac(){return HS(),FS(),GS(),$S()}function $S(){if(Ia!==jp)return!1;var e=Or,t=Jy;Jy=0;var a=y(bn),o=Kn===0||Kn>a?Kn:a;a=H.T;var n=qt.p;try{qt.p=o,H.T=null;var l=tb;tb=null,o=Or;var s=bn;if(Ia=Er,oi=Or=null,bn=0,(kt&(Da|Uo))!==za)throw Error("Cannot flush passive effects while already rendering.");ko(s),ob=!0,Xp=!1;var c=0;if(Ol=null,c=Ba(),vn===YC)zi(El,c,Bl);else{var p=El,g=c,E=vn===Ky;!Qt||g<=p||(ma?ma.run(console.timeStamp.bind(console,E?"Waiting for Paint":"Waiting",p,g,gt,mt,"secondary-light")):console.timeStamp(E?"Waiting for Paint":"Waiting",p,g,gt,mt,"secondary-light"))}p=kt,kt|=Uo;var O=o.current;hf(),TS(O);var I=o.current;O=eb,hf(),LS(o,I,s,l,O),QS(o),kt=p;var z=Ba();if(I=c,O=ma,Ol!==null?O0(I,z,Ol,!0,O):!Qt||z<=I||(O?O.run(console.timeStamp.bind(console,"Remaining Effects",I,z,gt,mt,"secondary-dark")):console.timeStamp("Remaining Effects",I,z,gt,mt,"secondary-dark")),vs(s,z),nc(0,!1),Xp?o===Kc?Ns++:(Ns=0,Kc=o):Ns=0,Xp=ob=!1,Ka&&typeof Ka.onPostCommitFiberRoot==="function")try{Ka.onPostCommitFiberRoot(Mu,o)}catch(me){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",me))}var re=o.current.stateNode;return re.effectDuration=0,re.passiveEffectDuration=0,!0}finally{qt.p=n,H.T=a,VS(e,t)}}function jS(e,t,a){t=wo(a,t),Y0(t),t=Qh(e.stateNode,t,2),e=lr(e,t,2),e!==null&&(Wl(e,2),$n(e))}function Ot(e,t,a){if(ni=!1,e.tag===3)jS(e,e,a);else{for(;t!==null;){if(t.tag===3){jS(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=wo(a,e),Y0(e),a=Zh(2),o=lr(t,a,2),o!==null&&(Wh(a,o,t,e),Wl(o,2),$n(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
|
|
157
|
+
%s`,a)}}function bg(e,t,a){var o=e.pingCache;if(o===null){o=e.pingCache=new HM;var n=new Set;o.set(t,n)}else n=o.get(t),n===void 0&&(n=new Set,o.set(t,n));n.has(a)||(Qy=!0,n.add(a),o=wI.bind(null,e,t,a),Wn&&oc(e,a),t.then(o,o))}function wI(e,t,a){var o=e.pingCache;o!==null&&o.delete(t),e.pingedLanes|=e.suspendedLanes&a,e.warmLanes&=~a,(a&127)!==0?0>tl&&(Lr=tl=La(),Ic=Lp("Promise Resolved"),Cr=Cp):(a&4194048)!==0&&0>Wo&&(al=Wo=La(),Mc=Lp("Promise Resolved"),Ay=Cp),MS()&&H.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`),
|
|
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`),Vt===e&&(rt&a)===a&&(oa===Ir||oa===zp&&(rt&62914560)===rt&&Ba()-Gp<jC?(kt&Da)===za&&xu(e,0):Zy|=a,Bs===rt&&(Bs=0)),$n(e)}function XS(e,t){t===0&&(t=ru()),e=Wa(e,t),e!==null&&(Wl(e,t),$n(e))}function TI(e){var t=e.memoizedState,a=0;t!==null&&(a=t.retryLane),XS(e,a)}function II(e,t){var a=0;switch(e.tag){case 31:case 13:var{stateNode:o,memoizedState:n}=e;n!==null&&(a=n.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),XS(e,a)}function vg(e,t,a){if((t.subtreeFlags&67117056)!==0)for(t=t.child;t!==null;){var o=e,n=t,l=n.type===np;l=a||l,n.tag!==22?n.flags&67108864?l&&F(n,YS,o,n):vg(o,n,l):n.memoizedState===null&&(l&&n.flags&8192?F(n,YS,o,n):n.subtreeFlags&67108864&&F(n,vg,o,n,l)),t=t.sibling}}function YS(e,t){jt(!0);try{SS(t),IS(t),xS(e,t.alternate,t,!1),CS(e,t,0,null,!1,0)}finally{jt(!1)}}function QS(e){var t=!0;e.current.mode&(Ja|mn)||(t=!1),vg(e,e.current,t)}function ZS(e){if((kt&Da)===za){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=_(e)||"ReactComponent",Yp!==null){if(Yp.has(t))return;Yp.add(t)}else Yp=new Set([t]);F(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 oc(e,t){Wn&&e.memoizedUpdaters.forEach(function(a){Mi(e,a,t)})}function RI(e,t){var a=H.actQueue;return a!==null?(a.push(t),VM):ey(e,t)}function MI(e){MS()&&H.actQueue===null&&F(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,65 +172,65 @@ 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 Vl(e){e!==ni&&e.next===null&&(ni===null?jp=ni=e:ni=ni.next=e),Yp=!0,G.actQueue!==null?tb||(tb=!0,jS()):eb||(eb=!0,jS())}function ld(e,t){if(!ab&&Yp){ab=!0;do{var a=!1;for(var o=jp;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-oo(42|e)+1)-1,n&=l&~(s&~d),n=n&201326741?n&201326741|1:n?n|2:0}n!==0&&(a=!0,XS(o,n))}else n=ot,n=Jr(o,o===Pt?n:0,o.cancelPendingCommit!==null||o.timeoutHandle!==_s),(n&3)===0||es(o,n)||(a=!0,XS(o,n));o=o.next}}while(a);ab=!1}}function hI(){ac=window.event,gg()}function gg(){Yp=tb=eb=!1;var e=0;Br!==0&&LI()&&(e=Br);for(var t=Ba(),a=null,o=jp;o!==null;){var l=o.next,n=VS(o,t);if(n===0)o.next=null,a===null?jp=l:a.next=l,l===null&&(ni=a);else if(a=o,e!==0||(n&3)!==0)Yp=!0;o=l}wa!==Or&&wa!==Vp||ld(e,!1),Br!==0&&(Br=0)}function VS(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:l}=e,n=e.pendingLanes&-62914561;0<n;){var s=31-oo(n),d=1<<s,m=l[s];if(m===-1){if((d&a)===0||(d&o)!==0)l[s]=qm(d,t)}else m<=t&&(e.expiredLanes|=d);n&=~d}if(t=Pt,a=ot,a=Jr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==_s),o=e.callbackNode,a===0||e===t&&(Dt===Os||Dt===qs)||e.cancelPendingCommit!==null)return o!==null&&yg(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||es(e,a)){if(t=a&-a,t!==e.callbackPriority||G.actQueue!==null&&o!==ob)yg(o);else return t;switch(y(a)){case Oo:case fl:a=Kg;break;case Wl:a=Ru;break;case up:a=Jg;break;default:a=Ru}return o=$S.bind(null,e),G.actQueue!==null?(G.actQueue.push(o),a=ob):a=Zg(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&yg(o),e.callbackPriority=2,e.callbackNode=null,2}function $S(e,t){if(Tp=wp=!1,ac=window.event,wa!==Or&&wa!==Vp)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(bl===Gp&&(bl=Yy),ad()&&e.callbackNode!==a)return null;var o=ot;if(o=Jr(e,e===Pt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==_s),o===0)return null;return kS(e,o,t),VS(e,Ba()),e.callbackNode!=null&&e.callbackNode===a?$S.bind(null,e):null}function XS(e,t){if(ad())return null;wp=Tp,Tp=!1,kS(e,t,!0)}function yg(e){e!==ob&&e!==null&&lR(e)}function jS(){G.actQueue!==null&&G.actQueue.push(function(){return gg(),null}),zM(function(){(ht&(Aa|Uo))!==Pa?Zg(Wg,hI):gg()})}function bg(){if(Br===0){var e=Ts;e===0&&(e=np,np<<=1,(np&261888)===0&&(np=256)),Br=e}return Br}function YS(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return gt(e,"action"),Bi(""+e)}function QS(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 gI(e,t,a,o,l){if(t==="submit"&&a&&a.stateNode===l){var n=YS((l[lo]||null).action),s=o.submitter;s&&(t=(t=s[lo]||null)?YS(t.formAction):s.getAttribute("formAction"),t!==null&&(n=t,s=null));var d=new pp("action","action",null,o,l);e.push({event:d,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(Br!==0){var m=s?QS(l,s):new FormData(l),g={pending:!0,data:m,method:l.method,action:n};Object.freeze(g),Ph(a,g,null,m)}}else typeof n==="function"&&(d.preventDefault(),m=s?QS(l,s):new FormData(l),g={pending:!0,data:m,method:l.method,action:n},Object.freeze(g),Ph(a,g,n,m))},currentTarget:l}]})}}function $f(e,t,a){e.currentTarget=a;try{t(e)}catch(o){hy(o)}e.currentTarget=null}function ZS(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,$f,n,d,g):$f(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,$f,n,d,g):$f(n,d,g),l=m}}}}function ft(e,t){lb.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[ey];a===void 0&&(a=t[ey]=new Set);var o=e+"__bubble";a.has(o)||(WS(t,e,2,!1),a.add(o))}function vg(e,t,a){lb.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),WS(a,e,o,t)}function Sg(e){if(!e[Qp]){e[Qp]=!0,jx.forEach(function(a){a!=="selectionchange"&&(lb.has(a)||vg(a,!1,e),vg(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Qp]||(t[Qp]=!0,vg("selectionchange",!1,t))}}function WS(e,t,a,o){switch(Ax(t)){case Oo:var l=ZI;break;case fl:l=WI;break;default:l=Ng}a=l.bind(null,t,a,e),l=void 0,!ny||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 xg(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}u0(function(){var g=n,A=Gm(a),E=[];e:{var T=AL.get(e);if(T!==void 0){var U=pp,de=e;switch(e){case"keypress":if(Kc(a)===0)break e;case"keydown":case"keyup":U=$R;break;case"focusin":de="focus",U=iy;break;case"focusout":de="blur",U=iy;break;case"beforeblur":case"afterblur":U=iy;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=gL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":U=OR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":U=YR;break;case TL:case IL:case RL:U=NR;break;case ML:U=ZR;break;case"scroll":case"scrollend":U=DR;break;case"wheel":U=KR;break;case"copy":case"cut":case"paste":U=PR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":U=bL;break;case"toggle":case"beforetoggle":U=eM}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=Ni(w,pt),M!=null&&ye.push(nd(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!==gd&&(de=a.relatedTarget||a.fromElement)&&(we(de)||de[gr]))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=gL,M="onMouseLeave",pt="onMouseEnter",w="mouse",e==="pointerout"||e==="pointerover")ye=bL,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=yI,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&&KS(E,T,U,ye,!1),de!==null&&Ft!==null&&KS(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=h0;else if(p0(T))if(kL)he=MT;else{he=IT;var Ge=TT}else U=T.nodeName,!U||U.toLowerCase()!=="input"||T.type!=="checkbox"&&T.type!=="radio"?g&&qi(g.elementType)&&(he=h0):he=RT;if(he&&(he=he(e,g))){m0(E,he,a,A);break e}Ge&&Ge(e,T,g),e==="focusout"&&g&&T.type==="number"&&g.memoizedProps.value!=null&&Um(T,"number",T.value)}switch(Ge=g?Xe(g):window,e){case"focusin":if(p0(Ge)||Ge.contentEditable==="true")Nu=Ge,cy=g,Cd=null;break;case"focusout":Cd=cy=Nu=null;break;case"mousedown":fy=!0;break;case"contextmenu":case"mouseup":case"dragend":fy=!1,L0(E,a,A);break;case"selectionchange":if(lM)break;case"keydown":case"keyup":L0(E,a,A)}var Ae;if(dy)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 Bu?c0(e,a)&&(Te="onCompositionEnd"):e==="keydown"&&a.keyCode===vL&&(Te="onCompositionStart");if(Te&&(SL&&a.locale!=="ko"&&(Bu||Te!=="onCompositionStart"?Te==="onCompositionEnd"&&Bu&&(Ae=i0()):(yr=A,ry=("value"in yr)?yr.value:yr.textContent,Bu=!0)),Ge=Xf(g,Te),0<Ge.length&&(Te=new yL(Te,e,null,a,A),E.push({event:Te,listeners:Ge}),Ae?Te.data=Ae:(Ae=f0(a),Ae!==null&&(Te.data=Ae)))),Ae=aM?LT(e,a):CT(e,a))Te=Xf(g,"onBeforeInput"),0<Te.length&&(Ge=new _R("onBeforeInput","beforeinput",null,a,A),E.push({event:Ge,listeners:Te}),Ge.data=Ae);gI(E,e,g,a,A)}ZS(E,t)})}function nd(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Xf(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=Ni(e,a),l!=null&&o.unshift(nd(e,l,n)),l=Ni(e,t),l!=null&&o.push(nd(e,l,n))),e.tag===3)return o;e=e.return}return[]}function yI(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function KS(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=Ni(a,n),g!=null&&s.unshift(nd(a,g,m))):l||(g=Ni(a,n),g!=null&&s.push(nd(a,g,m)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}function Lg(e,t){bT(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||mL||(mL=!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:Ss,possibleRegistrationNames:ty};qi(e)||typeof t.is==="string"||ST(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=cr(a),cr(t)!==a&&(o[e]=t))}function bI(e,t,a){t.forEach(function(o){a[tx(o)]=o==="style"?kg(e):e.getAttribute(o)})}function $l(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 JS(e,t){return e=e.namespaceURI===dp||e.namespaceURI===Du?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function cr(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(AM,`
|
|
176
|
-
`).replace(DM,"")}function ex(e,t){return t=cr(t),cr(e)===t?!0:!1}function Nt(e,t,a,o,l,n){switch(a){case"children":if(typeof o==="string")Wc(o,t,!1),t==="body"||t==="textarea"&&o===""||Oi(e,o);else if(typeof o==="number"||typeof o==="bigint")Wc(""+o,t,!1),t!=="body"&&Oi(e,""+o);break;case"className":Yc(e,"class",o);break;case"tabIndex":Yc(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Yc(e,a,o);break;case"style":n0(e,o,n);break;case"data":if(t!=="object"){Yc(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=Bi(""+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||Kp||(Kp=!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||Wp||(Wp=!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"||Zp?t!=="button"||l.type==null||l.type==="submit"||Zp?typeof o==="function"&&(l.name==null||JC||(JC=!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||Kp||(Kp=!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||Wp||(Wp=!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."))):(Zp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Zp=!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=Bi(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&$l(a,o),e.onclick=vn);break;case"onScroll":o!=null&&(typeof o!=="function"&&$l(a,o),ft("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&$l(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=Bi(""+o),e.setAttributeNS(Us,"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!==""||Jp[a]||(Jp[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),jc(e,"popover",o);break;case"xlinkActuate":bn(e,Us,"xlink:actuate",o);break;case"xlinkArcrole":bn(e,Us,"xlink:arcrole",o);break;case"xlinkRole":bn(e,Us,"xlink:role",o);break;case"xlinkShow":bn(e,Us,"xlink:show",o);break;case"xlinkTitle":bn(e,Us,"xlink:title",o);break;case"xlinkType":bn(e,Us,"xlink:type",o);break;case"xmlBase":bn(e,nb,"xml:base",o);break;case"xmlLang":bn(e,nb,"xml:lang",o);break;case"xmlSpace":bn(e,nb,"xml:space",o);break;case"is":n!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),jc(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":e1||o==null||typeof o!=="object"||(e1=!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=r0(a),jc(e,a,o)):Ss.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&$l(a,o)}}function Cg(e,t,a,o,l,n){switch(a){case"style":n0(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"?Oi(e,o):(typeof o==="number"||typeof o==="bigint")&&Oi(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&$l(a,o),ft("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&$l(a,o),ft("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&$l(a,o),e.onclick=vn);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ss.hasOwnProperty(a))o!=null&&typeof o!=="function"&&$l(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[lo]||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,""):jc(e,a,o)}}}function $a(e,t,a){switch(Lg(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":er("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)}}Gb(e,a),Vb(e,n,d,m,g,s,l,!1);return;case"select":er("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)}jb(e,a),t=n,a=s,e.multiple=!!o,t!=null?uu(e,!!o,t,!1):a!=null&&uu(e,!!o,a,!0);return;case"textarea":er("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)}Yb(e,a),Zb(e,o,l,n);return;case"option":$b(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<Jd.length;o++)ft(Jd[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(qi(t)){for(A in a)a.hasOwnProperty(A)&&(o=a[A],o!==void 0&&Cg(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 vI(e,t,a,o){switch(Lg(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||KC||(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"),KC=!0),!t||o||WC||(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"),WC=!0),Nm(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?uu(e,!!t,T,!1):!!a!==!!t&&(o!=null?uu(e,!!t,o,!0):uu(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)}Qb(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(qi(t)){for(var Ft in a)T=a[Ft],a.hasOwnProperty(Ft)&&T!==void 0&&!o.hasOwnProperty(Ft)&&Cg(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||Cg(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 tx(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function kg(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 ax(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||fL.has(n)?(Et(s,n),o+=l+n.replace(sL,"-$1").toLowerCase().replace(uL,"-ms-")+":"+(""+s).trim()):o+=l+n.replace(sL,"-$1").toLowerCase().replace(uL,"-ms-")+":"+s+"px",l=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=cr(o),cr(t)!==o&&(a.style=kg(e)))}}function Vo(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 ox(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 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":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 lx(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 Tg(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=Bi(""+o),e===a)return}qa(t,e,o,n)}function nx(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(qi(t)){for(var m in a)if(a.hasOwnProperty(m)){var g=a[m];if(g!=null){if(Ss.hasOwnProperty(m))typeof g!=="function"&&$l(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=JS(e,g),qa(m,s,g,l));continue;case"style":n.delete(m),ax(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=_b(e,"class",g),qa("className",s,g,l);continue;default:o.context===Hn&&t!=="svg"&&t!=="math"?n.delete(m.toLowerCase()):n.delete(m),s=_b(e,m,g),qa(m,s,g,l)}}}}else for(g in a)if(a.hasOwnProperty(g)&&(m=a[g],m!=null)){if(Ss.hasOwnProperty(g))typeof m!=="function"&&$l(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=JS(e,m),s!==m&&(l[g]={__html:s}));continue;case"className":Vo(e,g,"class",m,n,l);continue;case"tabIndex":Vo(e,g,"tabindex",m,n,l);continue;case"style":n.delete(g),ax(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}Tg(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===EM){n.delete(g.toLowerCase()),qa(g,"function",m,l);continue}Tg(e,g,g.toLowerCase(),m,n,l);continue;case"xlinkHref":Tg(e,g,"xlink:href",m,n,l);continue;case"contentEditable":wg(e,g,"contenteditable",m,n,l);continue;case"spellCheck":wg(e,g,"spellcheck",m,n,l);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":wg(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":ox(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":lx(e,g,"rowspan",m,n,l);continue;case"start":lx(e,g,g,m,n,l);continue;case"xHeight":Vo(e,g,"x-height",m,n,l);continue;case"xlinkActuate":Vo(e,g,"xlink:actuate",m,n,l);continue;case"xlinkArcrole":Vo(e,g,"xlink:arcrole",m,n,l);continue;case"xlinkRole":Vo(e,g,"xlink:role",m,n,l);continue;case"xlinkShow":Vo(e,g,"xlink:show",m,n,l);continue;case"xlinkTitle":Vo(e,g,"xlink:title",m,n,l);continue;case"xlinkType":Vo(e,g,"xlink:type",m,n,l);continue;case"xmlBase":Vo(e,g,"xml:base",m,n,l);continue;case"xmlLang":Vo(e,g,"xml:lang",m,n,l);continue;case"xmlSpace":Vo(e,g,"xml:space",m,n,l);continue;case"inert":m!==""||Jp[g]||(Jp[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)),ox(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=r0(g),s=!1,o.context===Hn&&t!=="svg"&&t!=="math"?n.delete(d.toLowerCase()):(A=g.toLowerCase(),A=cp.hasOwnProperty(A)?cp[A]||null:null,A!==null&&A!==g&&(s=!0,n.delete(A)),n.delete(d));e:if(A=e,E=d,d=m,Ai(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&&bI(e,n,l),Object.keys(l).length===0?null:l}function SI(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 rx(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function xI(){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&&rx(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&&rx(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 jf(e){return e.nodeType===9?e:e.ownerDocument}function sx(e){switch(e){case Du:return si;case dp:return tm;default:return Hn}}function ux(e,t){if(e===Hn)switch(t){case"svg":return si;case"math":return tm;default:return Hn}return e===si&&t==="foreignObject"?Hn:e}function Ig(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 LI(){var e=window.event;if(e&&e.type==="popstate"){if(e===ib)return!1;return ib=e,!0}return ib=null,!1}function rd(){var e=window.event;return e&&e!==ac?e.type:null}function sd(){var e=window.event;return e&&e!==ac?e.timeStamp:-1.1}function CI(e){setTimeout(function(){throw e})}function kI(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 wI(){}function TI(e,t,a,o){vI(e,t,a,o),e[lo]=o}function ix(e){Oi(e,"")}function II(e,t,a){e.nodeValue=a}function dx(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[lo]||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 fr(e){return e==="head"}function RI(e,t){e.removeChild(t)}function MI(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function cx(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===tc||a===em){if(o===0){e.removeChild(l),wu(t);return}o--}else if(a===ec||a===Nr||a===zs||a===ri||a===Ps)o++;else if(a===qM)ud(e.ownerDocument.documentElement);else if(a===NM){a=e.ownerDocument.head,ud(a);for(var n=a.firstChild;n;){var s=n.nextSibling,d=n.nodeName;n[hd]||d==="SCRIPT"||d==="STYLE"||d==="LINK"&&n.rel.toLowerCase()==="stylesheet"||a.removeChild(n),n=s}}else a===BM&&ud(e.ownerDocument.body);a=l}while(a);wu(t)}function fx(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===tc)if(e===0)break;else e--;else a!==ec&&a!==Nr&&a!==zs&&a!==ri||e++;a=o}while(a)}function AI(e){fx(e,!0)}function DI(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function EI(e){e.nodeValue=""}function OI(e){fx(e,!1)}function qI(e,t){t=t[UM],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function BI(e,t){e.nodeValue=t}function Rg(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":Rg(a),me(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function NI(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[hd])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=Ao(e.nextSibling),e===null)break}return null}function UI(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=Ao(e.nextSibling),e===null)return null}return e}function px(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Ao(e.nextSibling),e===null)return null}return e}function Mg(e){return e.data===Nr||e.data===zs}function Ag(e){return e.data===ri||e.data===Nr&&e.ownerDocument.readyState!==a1}function PI(e,t){var a=e.ownerDocument;if(e.data===zs)e._reactRetry=t;else if(e.data!==Nr||a.readyState!==a1)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Ao(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===ec||t===ri||t===Nr||t===zs||t===Ps||t===rb||t===t1)break;if(t===tc||t===em)return null}}return e}function mx(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[tx(n.name)]=n.name.toLowerCase()==="style"?kg(e):n.value}return{type:t,props:a}}return e.nodeType===8?e.data===Ps?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function hx(e,t,a){return a===null||a[OM]!==!0?(e.nodeValue===t?e=null:(t=cr(t),e=cr(e.nodeValue)===t?null:e.nodeValue),e):null}function Dg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===tc||a===em){if(t===0)return Ao(e.nextSibling);t--}else a!==ec&&a!==ri&&a!==Nr&&a!==zs&&a!==Ps||t++}e=e.nextSibling}return null}function gx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===ec||a===ri||a===Nr||a===zs||a===Ps){if(t===0)return e;t--}else a!==tc&&a!==em||t++}e=e.previousSibling}return null}function zI(e){wu(e)}function _I(e){wu(e)}function HI(e){wu(e)}function yx(e,t,a,o,l){switch(l&&Fm(e,o.ancestorInfo),t=jf(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 FI(e,t,a,o){if(!a[gr]&&$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[lo]=t}function ud(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);me(e)}function Yf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function bx(e,t,a){var o=ui;if(o&&typeof t==="string"&&t){var l=Go(t);l='link[rel="'+e+'"][href="'+l+'"]',typeof a==="string"&&(l+='[crossorigin="'+a+'"]'),u1.has(l)||(u1.add(l),e={rel:e,crossOrigin:a,href:t},o.querySelector(l)===null&&(t=o.createElement("link"),$a(t,"link",e),Ee(t),o.head.appendChild(t)))}}function vx(e,t,a,o){var l=(l=mr.current)?Yf(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=Cu(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=Cu(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:Hs,preload:null}},n.set(e,s),(n=l.querySelector(id(e)))&&!n._p&&(s.instance=n,s.state.loading=oc|tl),!al.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};al.set(e,d),n||GI(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`,_(e))})}function $n(e){e!==li&&e.next===null&&(li===null?Qp=li=e:li=li.next=e),Zp=!0,H.actQueue!==null?lb||(lb=!0,ex()):nb||(nb=!0,ex())}function nc(e,t){if(!rb&&Zp){rb=!0;do{var a=!1;for(var o=Qp;o!==null;){if(!t)if(e!==0){var n=o.pendingLanes;if(n===0)var l=0;else{var s=o.suspendedLanes,c=o.pingedLanes;l=(1<<31-oo(42|e)+1)-1,l&=n&~(s&~c),l=l&201326741?l&201326741|1:l?l|2:0}l!==0&&(a=!0,JS(o,l))}else l=rt,l=Jr(o,o===Vt?l:0,o.cancelPendingCommit!==null||o.timeoutHandle!==_s),(l&3)===0||es(o,l)||(a=!0,JS(o,l));o=o.next}}while(a);rb=!1}}function AI(){ad=window.event,Sg()}function Sg(){Zp=lb=nb=!1;var e=0;qr!==0&&UI()&&(e=qr);for(var t=Ba(),a=null,o=Qp;o!==null;){var n=o.next,l=WS(o,t);if(l===0)o.next=null,a===null?Qp=n:a.next=n,n===null&&(li=a);else if(a=o,e!==0||(l&3)!==0)Zp=!0;o=n}Ia!==Er&&Ia!==jp||nc(e,!1),qr!==0&&(qr=0)}function WS(e,t){for(var{suspendedLanes:a,pingedLanes:o,expirationTimes:n}=e,l=e.pendingLanes&-62914561;0<l;){var s=31-oo(l),c=1<<s,p=n[s];if(p===-1){if((c&a)===0||(c&o)!==0)n[s]=zm(c,t)}else p<=t&&(e.expiredLanes|=c);l&=~c}if(t=Vt,a=rt,a=Jr(e,e===t?a:0,e.cancelPendingCommit!==null||e.timeoutHandle!==_s),o=e.callbackNode,a===0||e===t&&(Pt===Os||Pt===qs)||e.cancelPendingCommit!==null)return o!==null&&xg(o),e.callbackNode=null,e.callbackPriority=0;if((a&3)===0||es(e,a)){if(t=a&-a,t!==e.callbackPriority||H.actQueue!==null&&o!==sb)xg(o);else return t;switch(y(a)){case Oo:case pn:a=ay;break;case Kn:a=Ru;break;case cp:a=oy;break;default:a=Ru}return o=KS.bind(null,e),H.actQueue!==null?(H.actQueue.push(o),a=sb):a=ey(a,o),e.callbackPriority=t,e.callbackNode=a,t}return o!==null&&xg(o),e.callbackPriority=2,e.callbackNode=null,2}function KS(e,t){if(Rp=Ip=!1,ad=window.event,Ia!==Er&&Ia!==jp)return e.callbackNode=null,e.callbackPriority=0,null;var a=e.callbackNode;if(vn===$p&&(vn=Ky),ac()&&e.callbackNode!==a)return null;var o=rt;if(o=Jr(e,e===Vt?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==_s),o===0)return null;return DS(e,o,t),WS(e,Ba()),e.callbackNode!=null&&e.callbackNode===a?KS.bind(null,e):null}function JS(e,t){if(ac())return null;Ip=Rp,Rp=!1,DS(e,t,!0)}function xg(e){e!==sb&&e!==null&&vR(e)}function ex(){H.actQueue!==null&&H.actQueue.push(function(){return Sg(),null}),eA(function(){(kt&(Da|Uo))!==za?ey(ty,AI):Sg()})}function Lg(){if(qr===0){var e=Ts;e===0&&(e=sp,sp<<=1,(sp&261888)===0&&(sp=256)),qr=e}return qr}function tx(e){if(e==null||typeof e==="symbol"||typeof e==="boolean")return null;if(typeof e==="function")return e;return Je(e,"action"),Bi(""+e)}function ax(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 DI(e,t,a,o,n){if(t==="submit"&&a&&a.stateNode===n){var l=tx((n[no]||null).action),s=o.submitter;s&&(t=(t=s[no]||null)?tx(t.formAction):s.getAttribute("formAction"),t!==null&&(l=t,s=null));var c=new hp("action","action",null,o,n);e.push({event:c,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(qr!==0){var p=s?ax(n,s):new FormData(n),g={pending:!0,data:p,method:n.method,action:l};Object.freeze(g),Fh(a,g,null,p)}}else typeof l==="function"&&(c.preventDefault(),p=s?ax(n,s):new FormData(n),g={pending:!0,data:p,method:n.method,action:l},Object.freeze(g),Fh(a,g,l,p))},currentTarget:n}]})}}function Xf(e,t,a){e.currentTarget=a;try{t(e)}catch(o){vy(o)}e.currentTarget=null}function ox(e,t){t=(t&4)!==0;for(var a=0;a<e.length;a++){var o=e[a];e:{var n=void 0,l=o.event;if(o=o.listeners,t)for(var s=o.length-1;0<=s;s--){var c=o[s],p=c.instance,g=c.currentTarget;if(c=c.listener,p!==n&&l.isPropagationStopped())break e;p!==null?F(p,Xf,l,c,g):Xf(l,c,g),n=p}else for(s=0;s<o.length;s++){if(c=o[s],p=c.instance,g=c.currentTarget,c=c.listener,p!==n&&l.isPropagationStopped())break e;p!==null?F(p,Xf,l,c,g):Xf(l,c,g),n=p}}}}function St(e,t){ub.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[ny];a===void 0&&(a=t[ny]=new Set);var o=e+"__bubble";a.has(o)||(nx(t,e,2,!1),a.add(o))}function Cg(e,t,a){ub.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),nx(a,e,o,t)}function kg(e){if(!e[Wp]){e[Wp]=!0,eL.forEach(function(a){a!=="selectionchange"&&(ub.has(a)||Cg(a,!1,e),Cg(a,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Wp]||(t[Wp]=!0,Cg("selectionchange",!1,t))}}function nx(e,t,a,o){switch(Ux(t)){case Oo:var n=dR;break;case pn:n=fR;break;default:n=_g}a=n.bind(null,t,a,e),n=void 0,!iy||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(n=!0),o?n!==void 0?e.addEventListener(t,a,{capture:!0,passive:n}):e.addEventListener(t,a,!0):n!==void 0?e.addEventListener(t,a,{passive:n}):e.addEventListener(t,a,!1)}function wg(e,t,a,o,n){var l=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 c=o.stateNode.containerInfo;if(c===n)break;if(s===4)for(s=o.return;s!==null;){var p=s.tag;if((p===3||p===4)&&s.stateNode.containerInfo===n)return;s=s.return}for(;c!==null;){if(s=Ce(c),s===null)return;if(p=s.tag,p===5||p===6||p===26||p===27){o=l=s;continue e}c=c.parentNode}}o=o.return}h0(function(){var g=l,E=Xm(a),O=[];e:{var I=UL.get(e);if(I!==void 0){var z=hp,re=e;switch(e){case"keypress":if(ef(a)===0)break e;case"keydown":case"keyup":z=rM;break;case"focusin":re="focus",z=py;break;case"focusout":re="blur",z=py;break;case"beforeblur":case"afterblur":z=py;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":z=CL;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":z=YR;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":z=iM;break;case OL:case qL:case BL:z=WR;break;case NL:z=dM;break;case"scroll":case"scrollend":z=jR;break;case"wheel":z=pM;break;case"copy":case"cut":case"paste":z=JR;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":z=wL;break;case"toggle":case"beforetoggle":z=hM}var me=(t&4)!==0,Yt=!me&&(e==="scroll"||e==="scrollend"),xt=me?I!==null?I+"Capture":null:I;me=[];for(var T=g,R;T!==null;){var D=T;if(R=D.stateNode,D=D.tag,D!==5&&D!==26&&D!==27||R===null||xt===null||(D=Ni(T,xt),D!=null&&me.push(lc(T,D,R))),Yt)break;T=T.return}0<me.length&&(I=new z(I,re,null,a,E),O.push({event:I,listeners:me}))}}if((t&7)===0){e:{if(I=e==="mouseover"||e==="pointerover",z=e==="mouseout"||e==="pointerout",I&&a!==gc&&(re=a.relatedTarget||a.fromElement)&&(Ce(re)||re[hr]))break e;if(z||I){if(I=E.window===E?E:(I=E.ownerDocument)?I.defaultView||I.parentWindow:window,z){if(re=a.relatedTarget||a.toElement,z=g,re=re?Ce(re):null,re!==null&&(Yt=N(re),me=re.tag,re!==Yt||me!==5&&me!==27&&me!==6))re=null}else z=null,re=g;if(z!==re){if(me=CL,D="onMouseLeave",xt="onMouseEnter",T="mouse",e==="pointerout"||e==="pointerover")me=wL,D="onPointerLeave",xt="onPointerEnter",T="pointer";if(Yt=z==null?I:Ze(z),R=re==null?I:Ze(re),I=new me(D,T+"leave",z,a,E),I.target=Yt,I.relatedTarget=R,D=null,Ce(E)===g&&(me=new me(xt,T+"enter",re,a,E),me.target=R,me.relatedTarget=Yt,D=me),Yt=D,z&&re)t:{me=EI,xt=z,T=re,R=0;for(D=xt;D;D=me(D))R++;D=0;for(var Q=T;Q;Q=me(Q))D++;for(;0<R-D;)xt=me(xt),R--;for(;0<D-R;)T=me(T),D--;for(;R--;){if(xt===T||T!==null&&xt===T.alternate){me=xt;break t}xt=me(xt),T=me(T)}me=null}else me=null;z!==null&&lx(O,I,z,me,!1),re!==null&&Yt!==null&&lx(O,Yt,re,me,!0)}}}e:{if(I=g?Ze(g):window,z=I.nodeName&&I.nodeName.toLowerCase(),z==="select"||z==="input"&&I.type==="file")var fe=L0;else if(S0(I))if(DL)fe=VT;else{fe=FT;var $e=HT}else z=I.nodeName,!z||z.toLowerCase()!=="input"||I.type!=="checkbox"&&I.type!=="radio"?g&&qi(g.elementType)&&(fe=L0):fe=GT;if(fe&&(fe=fe(e,g))){x0(O,fe,a,E);break e}$e&&$e(e,I,g),e==="focusout"&&g&&I.type==="number"&&g.memoizedProps.value!=null&&Hm(I,"number",I.value)}switch($e=g?Ze(g):window,e){case"focusin":if(S0($e)||$e.contentEditable==="true")Nu=$e,hy=g,Cc=null;break;case"focusout":Cc=hy=Nu=null;break;case"mousedown":gy=!0;break;case"contextmenu":case"mouseup":case"dragend":gy=!1,M0(O,a,E);break;case"selectionchange":if(vM)break;case"keydown":case"keyup":M0(O,a,E)}var De;if(my)e:{switch(e){case"compositionstart":var we="onCompositionStart";break e;case"compositionend":we="onCompositionEnd";break e;case"compositionupdate":we="onCompositionUpdate";break e}we=void 0}else Bu?b0(e,a)&&(we="onCompositionEnd"):e==="keydown"&&a.keyCode===TL&&(we="onCompositionStart");if(we&&(IL&&a.locale!=="ko"&&(Bu||we!=="onCompositionStart"?we==="onCompositionEnd"&&Bu&&(De=g0()):(gr=E,cy=("value"in gr)?gr.value:gr.textContent,Bu=!0)),$e=Yf(g,we),0<$e.length&&(we=new kL(we,e,null,a,E),O.push({event:we,listeners:$e}),De?we.data=De:(De=v0(a),De!==null&&(we.data=De)))),De=yM?UT(e,a):zT(e,a))we=Yf(g,"onBeforeInput"),0<we.length&&($e=new tM("onBeforeInput","beforeinput",null,a,E),O.push({event:$e,listeners:we}),$e.data=De);DI(O,e,g,a,E)}ox(O,t)})}function lc(e,t,a){return{instance:e,listener:t,currentTarget:a}}function Yf(e,t){for(var a=t+"Capture",o=[];e!==null;){var n=e,l=n.stateNode;if(n=n.tag,n!==5&&n!==26&&n!==27||l===null||(n=Ni(e,a),n!=null&&o.unshift(lc(e,n,l)),n=Ni(e,t),n!=null&&o.push(lc(e,n,l))),e.tag===3)return o;e=e.return}return[]}function EI(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e?e:null}function lx(e,t,a,o,n){for(var l=t._reactName,s=[];a!==null&&a!==o;){var c=a,p=c.alternate,g=c.stateNode;if(c=c.tag,p!==null&&p===o)break;c!==5&&c!==26&&c!==27||g===null||(p=g,n?(g=Ni(a,l),g!=null&&s.unshift(lc(a,g,p))):n||(g=Ni(a,l),g!=null&&s.push(lc(a,g,p)))),a=a.return}s.length!==0&&e.push({event:t,listeners:s})}function Tg(e,t){OT(e,t),e!=="input"&&e!=="textarea"&&e!=="select"||t==null||t.value!==null||xL||(xL=!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:Ss,possibleRegistrationNames:ly};qi(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=cr(a),cr(t)!==a&&(o[e]=t))}function OI(e,t,a){t.forEach(function(o){a[ux(o)]=o==="style"?Rg(e):e.getAttribute(o)})}function jn(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 rx(e,t){return e=e.namespaceURI===fp||e.namespaceURI===Du?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function cr(e){return Ue(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.",Ye(e)),ct(e)),(typeof e==="string"?e:""+e).replace($M,`
|
|
176
|
+
`).replace(jM,"")}function sx(e,t){return t=cr(t),cr(e)===t?!0:!1}function Ft(e,t,a,o,n,l){switch(a){case"children":if(typeof o==="string")Jd(o,t,!1),t==="body"||t==="textarea"&&o===""||Oi(e,o);else if(typeof o==="number"||typeof o==="bigint")Jd(""+o,t,!1),t!=="body"&&Oi(e,""+o);break;case"className":Zd(e,"class",o);break;case"tabIndex":Zd(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Zd(e,a,o);break;case"style":f0(e,o,l);break;case"data":if(t!=="object"){Zd(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}Je(o,a),o=Bi(""+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"&&(n.encType==null&&n.method==null||em||(em=!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.")),n.target==null||Jp||(Jp=!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"||n.type==="submit"||n.type==="image"||Kp?t!=="button"||n.type==null||n.type==="submit"||Kp?typeof o==="function"&&(n.name==null||r1||(r1=!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.')),n.formEncType==null&&n.formMethod==null||em||(em=!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.")),n.formTarget==null||Jp||(Jp=!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."))):(Kp=!0,console.error('A button can only specify a formAction along with type="submit" or no type.')):(Kp=!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 l==="function"&&(a==="formAction"?(t!=="input"&&Ft(e,t,"name",n.name,n,null),Ft(e,t,"formEncType",n.formEncType,n,null),Ft(e,t,"formMethod",n.formMethod,n,null),Ft(e,t,"formTarget",n.formTarget,n,null)):(Ft(e,t,"encType",n.encType,n,null),Ft(e,t,"method",n.method,n,null),Ft(e,t,"target",n.target,n,null)));if(o==null||typeof o==="symbol"||typeof o==="boolean"){e.removeAttribute(a);break}Je(o,a),o=Bi(""+o),e.setAttribute(a,o);break;case"onClick":o!=null&&(typeof o!=="function"&&jn(a,o),e.onclick=vl);break;case"onScroll":o!=null&&(typeof o!=="function"&&jn(a,o),St("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&jn(a,o),St("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(n.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}Je(o,a),a=Bi(""+o),e.setAttributeNS(Us,"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"?(Je(o,a),e.setAttribute(a,""+o)):e.removeAttribute(a);break;case"inert":o!==""||tm[a]||(tm[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"?(Je(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?(Je(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):(Je(o,a),e.setAttribute(a,o));break;case"popover":St("beforetoggle",e),St("toggle",e),Qd(e,"popover",o);break;case"xlinkActuate":bl(e,Us,"xlink:actuate",o);break;case"xlinkArcrole":bl(e,Us,"xlink:arcrole",o);break;case"xlinkRole":bl(e,Us,"xlink:role",o);break;case"xlinkShow":bl(e,Us,"xlink:show",o);break;case"xlinkTitle":bl(e,Us,"xlink:title",o);break;case"xlinkType":bl(e,Us,"xlink:type",o);break;case"xmlBase":bl(e,ib,"xml:base",o);break;case"xmlLang":bl(e,ib,"xml:lang",o);break;case"xmlSpace":bl(e,ib,"xml:space",o);break;case"is":l!=null&&console.error('Cannot update the "is" prop after it has been initialized.'),Qd(e,"is",o);break;case"innerText":case"textContent":break;case"popoverTarget":s1||o==null||typeof o!=="object"||(s1=!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=p0(a),Qd(e,a,o)):Ss.hasOwnProperty(a)&&o!=null&&typeof o!=="function"&&jn(a,o)}}function Ig(e,t,a,o,n,l){switch(a){case"style":f0(e,o,l);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(n.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");e.innerHTML=a}}break;case"children":typeof o==="string"?Oi(e,o):(typeof o==="number"||typeof o==="bigint")&&Oi(e,""+o);break;case"onScroll":o!=null&&(typeof o!=="function"&&jn(a,o),St("scroll",e));break;case"onScrollEnd":o!=null&&(typeof o!=="function"&&jn(a,o),St("scrollend",e));break;case"onClick":o!=null&&(typeof o!=="function"&&jn(a,o),e.onclick=vl);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(Ss.hasOwnProperty(a))o!=null&&typeof o!=="function"&&jn(a,o);else e:{if(a[0]==="o"&&a[1]==="n"&&(n=a.endsWith("Capture"),t=a.slice(2,n?a.length-7:void 0),l=e[no]||null,l=l!=null?l[a]:null,typeof l==="function"&&e.removeEventListener(t,l,n),typeof o==="function")){typeof l!=="function"&&l!==null&&(a in e?e[a]=null:e.hasAttribute(a)&&e.removeAttribute(a)),e.addEventListener(t,o,n);break e}a in e?e[a]=o:o===!0?e.setAttribute(a,""):Qd(e,a,o)}}}function $a(e,t,a){switch(Tg(t,a),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":St("error",e),St("load",e);var o=!1,n=!1,l;for(l in a)if(a.hasOwnProperty(l)){var s=a[l];if(s!=null)switch(l){case"src":o=!0;break;case"srcSet":n=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Ft(e,t,l,s,a,null)}}n&&Ft(e,t,"srcSet",a.srcSet,a,null),o&&Ft(e,t,"src",a.src,a,null);return;case"input":Jl("input",a),St("invalid",e);var c=l=s=n=null,p=null,g=null;for(o in a)if(a.hasOwnProperty(o)){var E=a[o];if(E!=null)switch(o){case"name":n=E;break;case"type":s=E;break;case"checked":p=E;break;case"defaultChecked":g=E;break;case"value":l=E;break;case"defaultValue":c=E;break;case"children":case"dangerouslySetInnerHTML":if(E!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ft(e,t,o,E,a,null)}}Zb(e,a),Wb(e,l,c,p,g,s,n,!1);return;case"select":Jl("select",a),St("invalid",e),o=s=l=null;for(n in a)if(a.hasOwnProperty(n)&&(c=a[n],c!=null))switch(n){case"value":l=c;break;case"defaultValue":s=c;break;case"multiple":o=c;default:Ft(e,t,n,c,a,null)}e0(e,a),t=l,a=s,e.multiple=!!o,t!=null?uu(e,!!o,t,!1):a!=null&&uu(e,!!o,a,!0);return;case"textarea":Jl("textarea",a),St("invalid",e),l=n=o=null;for(s in a)if(a.hasOwnProperty(s)&&(c=a[s],c!=null))switch(s){case"value":o=c;break;case"defaultValue":n=c;break;case"children":l=c;break;case"dangerouslySetInnerHTML":if(c!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Ft(e,t,s,c,a,null)}t0(e,a),o0(e,o,n,l);return;case"option":Kb(e,a);for(p in a)if(a.hasOwnProperty(p)&&(o=a[p],o!=null))switch(p){case"selected":e.selected=o&&typeof o!=="function"&&typeof o!=="symbol";break;default:Ft(e,t,p,o,a,null)}return;case"dialog":St("beforetoggle",e),St("toggle",e),St("cancel",e),St("close",e);break;case"iframe":case"object":St("load",e);break;case"video":case"audio":for(o=0;o<Jc.length;o++)St(Jc[o],e);break;case"image":St("error",e),St("load",e);break;case"details":St("toggle",e);break;case"embed":case"source":case"link":St("error",e),St("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:Ft(e,t,g,o,a,null)}return;default:if(qi(t)){for(E in a)a.hasOwnProperty(E)&&(o=a[E],o!==void 0&&Ig(e,t,E,o,a,void 0));return}}for(c in a)a.hasOwnProperty(c)&&(o=a[c],o!=null&&Ft(e,t,c,o,a,null))}function qI(e,t,a,o){switch(Tg(t,o),t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var n=null,l=null,s=null,c=null,p=null,g=null,E=null;for(z in a){var O=a[z];if(a.hasOwnProperty(z)&&O!=null)switch(z){case"checked":break;case"value":break;case"defaultValue":p=O;default:o.hasOwnProperty(z)||Ft(e,t,z,null,o,O)}}for(var I in o){var z=o[I];if(O=a[I],o.hasOwnProperty(I)&&(z!=null||O!=null))switch(I){case"type":l=z;break;case"name":n=z;break;case"checked":g=z;break;case"defaultChecked":E=z;break;case"value":s=z;break;case"defaultValue":c=z;break;case"children":case"dangerouslySetInnerHTML":if(z!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:z!==O&&Ft(e,t,I,z,o,O)}}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||l1||(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"),l1=!0),!t||o||n1||(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"),n1=!0),_m(e,s,c,p,g,E,l,n);return;case"select":z=s=c=I=null;for(l in a)if(p=a[l],a.hasOwnProperty(l)&&p!=null)switch(l){case"value":break;case"multiple":z=p;default:o.hasOwnProperty(l)||Ft(e,t,l,null,o,p)}for(n in o)if(l=o[n],p=a[n],o.hasOwnProperty(n)&&(l!=null||p!=null))switch(n){case"value":I=l;break;case"defaultValue":c=l;break;case"multiple":s=l;default:l!==p&&Ft(e,t,n,l,o,p)}o=c,t=s,a=z,I!=null?uu(e,!!t,I,!1):!!a!==!!t&&(o!=null?uu(e,!!t,o,!0):uu(e,!!t,t?[]:"",!1));return;case"textarea":z=I=null;for(c in a)if(n=a[c],a.hasOwnProperty(c)&&n!=null&&!o.hasOwnProperty(c))switch(c){case"value":break;case"children":break;default:Ft(e,t,c,null,o,n)}for(s in o)if(n=o[s],l=a[s],o.hasOwnProperty(s)&&(n!=null||l!=null))switch(s){case"value":I=n;break;case"defaultValue":z=n;break;case"children":break;case"dangerouslySetInnerHTML":if(n!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:n!==l&&Ft(e,t,s,n,o,l)}a0(e,I,z);return;case"option":for(var re in a)if(I=a[re],a.hasOwnProperty(re)&&I!=null&&!o.hasOwnProperty(re))switch(re){case"selected":e.selected=!1;break;default:Ft(e,t,re,null,o,I)}for(p in o)if(I=o[p],z=a[p],o.hasOwnProperty(p)&&I!==z&&(I!=null||z!=null))switch(p){case"selected":e.selected=I&&typeof I!=="function"&&typeof I!=="symbol";break;default:Ft(e,t,p,I,o,z)}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 me in a)I=a[me],a.hasOwnProperty(me)&&I!=null&&!o.hasOwnProperty(me)&&Ft(e,t,me,null,o,I);for(g in o)if(I=o[g],z=a[g],o.hasOwnProperty(g)&&I!==z&&(I!=null||z!=null))switch(g){case"children":case"dangerouslySetInnerHTML":if(I!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Ft(e,t,g,I,o,z)}return;default:if(qi(t)){for(var Yt in a)I=a[Yt],a.hasOwnProperty(Yt)&&I!==void 0&&!o.hasOwnProperty(Yt)&&Ig(e,t,Yt,void 0,o,I);for(E in o)I=o[E],z=a[E],!o.hasOwnProperty(E)||I===z||I===void 0&&z===void 0||Ig(e,t,E,I,o,z);return}}for(var xt in a)I=a[xt],a.hasOwnProperty(xt)&&I!=null&&!o.hasOwnProperty(xt)&&Ft(e,t,xt,null,o,I);for(O in o)I=o[O],z=a[O],!o.hasOwnProperty(O)||I===z||I==null&&z==null||Ft(e,t,O,I,o,z)}function ux(e){switch(e){case"class":return"className";case"for":return"htmlFor";default:return e}}function Rg(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 ix(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,n=o="",l;for(l in t)if(t.hasOwnProperty(l)){var s=t[l];s!=null&&typeof s!=="boolean"&&s!==""&&(l.indexOf("--")===0?(dt(s,l),o+=n+l+":"+(""+s).trim()):typeof s!=="number"||s===0||vL.has(l)?(dt(s,l),o+=n+l.replace(mL,"-$1").toLowerCase().replace(hL,"-ms-")+":"+(""+s).trim()):o+=n+l.replace(mL,"-$1").toLowerCase().replace(hL,"-ms-")+":"+s+"px",n=";")}o=o||null,t=e.getAttribute("style"),t!==o&&(o=cr(o),cr(t)!==o&&(a.style=Rg(e)))}}function Vo(e,t,a,o,n,l){if(n.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(Je(o,t),e===""+o)return}qa(t,e,o,l)}function cx(e,t,a,o,n,l){if(n.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,l)}function Mg(e,t,a,o,n,l){if(n.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(Je(o,a),e===""+o)return}qa(t,e,o,l)}function dx(e,t,a,o,n,l){if(n.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)&&(Je(o,t),e===""+o))return}qa(t,e,o,l)}function Ag(e,t,a,o,n,l){if(n.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(Je(o,t),a=Bi(""+o),e===a)return}qa(t,e,o,l)}function fx(e,t,a,o){for(var n={},l=new Set,s=e.attributes,c=0;c<s.length;c++)switch(s[c].name.toLowerCase()){case"value":break;case"checked":break;case"selected":break;default:l.add(s[c].name)}if(qi(t)){for(var p in a)if(a.hasOwnProperty(p)){var g=a[p];if(g!=null){if(Ss.hasOwnProperty(p))typeof g!=="function"&&jn(p,g);else if(a.suppressHydrationWarning!==!0)switch(p){case"children":typeof g!=="string"&&typeof g!=="number"||qa("children",e.textContent,g,n);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=rx(e,g),qa(p,s,g,n));continue;case"style":l.delete(p),ix(e,g,n);continue;case"offsetParent":case"offsetTop":case"offsetLeft":case"offsetWidth":case"offsetHeight":case"isContentEditable":case"outerText":case"outerHTML":l.delete(p.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",p);continue;case"className":l.delete("class"),s=Xb(e,"class",g),qa("className",s,g,n);continue;default:o.context===Hl&&t!=="svg"&&t!=="math"?l.delete(p.toLowerCase()):l.delete(p),s=Xb(e,p,g),qa(p,s,g,n)}}}}else for(g in a)if(a.hasOwnProperty(g)&&(p=a[g],p!=null)){if(Ss.hasOwnProperty(g))typeof p!=="function"&&jn(g,p);else if(a.suppressHydrationWarning!==!0)switch(g){case"children":typeof p!=="string"&&typeof p!=="number"||qa("children",e.textContent,p,n);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,p=p?p.__html:void 0,p!=null&&(p=rx(e,p),s!==p&&(n[g]={__html:s}));continue;case"className":Vo(e,g,"class",p,l,n);continue;case"tabIndex":Vo(e,g,"tabindex",p,l,n);continue;case"style":l.delete(g),ix(e,p,n);continue;case"multiple":l.delete(g),qa(g,e.multiple,p,n);continue;case"muted":l.delete(g),qa(g,e.muted,p,n);continue;case"autoFocus":l.delete("autofocus"),qa(g,e.autofocus,p,n);continue;case"data":if(t!=="object"){l.delete(g),s=e.getAttribute("data"),qa(g,s,p,n);continue}case"src":case"href":if(!(p!==""||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}Ag(e,g,g,p,l,n);continue;case"action":case"formAction":if(s=e.getAttribute(g),typeof p==="function"){l.delete(g.toLowerCase()),g==="formAction"?(l.delete("name"),l.delete("formenctype"),l.delete("formmethod"),l.delete("formtarget")):(l.delete("enctype"),l.delete("method"),l.delete("target"));continue}else if(s===XM){l.delete(g.toLowerCase()),qa(g,"function",p,n);continue}Ag(e,g,g.toLowerCase(),p,l,n);continue;case"xlinkHref":Ag(e,g,"xlink:href",p,l,n);continue;case"contentEditable":Mg(e,g,"contenteditable",p,l,n);continue;case"spellCheck":Mg(e,g,"spellcheck",p,l,n);continue;case"draggable":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":Mg(e,g,g,p,l,n);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":cx(e,g,g.toLowerCase(),p,l,n);continue;case"capture":case"download":e:{c=e;var E=s=g,O=n;if(l.delete(E),c=c.getAttribute(E),c===null)switch(typeof p){case"undefined":case"function":case"symbol":break e;default:if(p===!1)break e}else if(p!=null)switch(typeof p){case"function":case"symbol":break;case"boolean":if(p===!0&&c==="")break e;break;default:if(Je(p,s),c===""+p)break e}qa(s,c,p,O)}continue;case"cols":case"rows":case"size":case"span":e:{if(c=e,E=s=g,O=n,l.delete(E),c=c.getAttribute(E),c===null)switch(typeof p){case"undefined":case"function":case"symbol":case"boolean":break e;default:if(isNaN(p)||1>p)break e}else if(p!=null)switch(typeof p){case"function":case"symbol":case"boolean":break;default:if(!(isNaN(p)||1>p)&&(Je(p,s),c===""+p))break e}qa(s,c,p,O)}continue;case"rowSpan":dx(e,g,"rowspan",p,l,n);continue;case"start":dx(e,g,g,p,l,n);continue;case"xHeight":Vo(e,g,"x-height",p,l,n);continue;case"xlinkActuate":Vo(e,g,"xlink:actuate",p,l,n);continue;case"xlinkArcrole":Vo(e,g,"xlink:arcrole",p,l,n);continue;case"xlinkRole":Vo(e,g,"xlink:role",p,l,n);continue;case"xlinkShow":Vo(e,g,"xlink:show",p,l,n);continue;case"xlinkTitle":Vo(e,g,"xlink:title",p,l,n);continue;case"xlinkType":Vo(e,g,"xlink:type",p,l,n);continue;case"xmlBase":Vo(e,g,"xml:base",p,l,n);continue;case"xmlLang":Vo(e,g,"xml:lang",p,l,n);continue;case"xmlSpace":Vo(e,g,"xml:space",p,l,n);continue;case"inert":p!==""||tm[g]||(tm[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)),cx(e,g,g,p,l,n);continue;default:if(!(2<g.length)||g[0]!=="o"&&g[0]!=="O"||g[1]!=="n"&&g[1]!=="N"){c=p0(g),s=!1,o.context===Hl&&t!=="svg"&&t!=="math"?l.delete(c.toLowerCase()):(E=g.toLowerCase(),E=pp.hasOwnProperty(E)?pp[E]||null:null,E!==null&&E!==g&&(s=!0,l.delete(E)),l.delete(c));e:if(E=e,O=c,c=p,Ai(O))if(E.hasAttribute(O))E=E.getAttribute(O),Je(c,O),c=E===""+c?c:E;else{switch(typeof c){case"function":case"symbol":break e;case"boolean":if(E=O.toLowerCase().slice(0,5),E!=="data-"&&E!=="aria-")break e}c=c===void 0?void 0:null}else c=void 0;s||qa(g,c,p,n)}}}return 0<l.size&&a.suppressHydrationWarning!==!0&&OI(e,l,n),Object.keys(n).length===0?null:n}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 px(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function NI(){if(typeof performance.getEntriesByType==="function"){for(var e=0,t=0,a=performance.getEntriesByType("resource"),o=0;o<a.length;o++){var n=a[o],{transferSize:l,initiatorType:s,duration:c}=n;if(l&&c&&px(s)){s=0,c=n.responseEnd;for(o+=1;o<a.length;o++){var p=a[o],g=p.startTime;if(g>c)break;var E=p.transferSize,O=p.initiatorType;E&&px(O)&&(p=p.responseEnd,s+=E*(p<c?1:(c-g)/(p-g)))}if(--o,t+=8*(l+s)/(n.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 Qf(e){return e.nodeType===9?e:e.ownerDocument}function mx(e){switch(e){case Du:return si;case fp:return om;default:return Hl}}function hx(e,t){if(e===Hl)switch(t){case"svg":return si;case"math":return om;default:return Hl}return e===si&&t==="foreignObject"?Hl:e}function Dg(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 UI(){var e=window.event;if(e&&e.type==="popstate"){if(e===pb)return!1;return pb=e,!0}return pb=null,!1}function rc(){var e=window.event;return e&&e!==ad?e.type:null}function sc(){var e=window.event;return e&&e!==ad?e.timeStamp:-1.1}function zI(e){setTimeout(function(){throw e})}function PI(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 _I(){}function HI(e,t,a,o){qI(e,t,a,o),e[no]=o}function gx(e){Oi(e,"")}function FI(e,t,a){e.nodeValue=a}function yx(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[no]||null;if(t!==null){var a=Qe(e);a!==null&&(typeof t.children==="string"||typeof t.children==="number"?(e.__reactWarnedAboutChildrenConflict=!0,F(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,F(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 dr(e){return e==="head"}function GI(e,t){e.removeChild(t)}function VI(e,t){(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e).removeChild(t)}function bx(e,t){var a=t,o=0;do{var n=a.nextSibling;if(e.removeChild(a),n&&n.nodeType===8)if(a=n.data,a===td||a===am){if(o===0){e.removeChild(n),wu(t);return}o--}else if(a===ed||a===Br||a===Ps||a===ri||a===zs)o++;else if(a===QM)uc(e.ownerDocument.documentElement);else if(a===WM){a=e.ownerDocument.head,uc(a);for(var l=a.firstChild;l;){var s=l.nextSibling,c=l.nodeName;l[hc]||c==="SCRIPT"||c==="STYLE"||c==="LINK"&&l.rel.toLowerCase()==="stylesheet"||a.removeChild(l),l=s}}else a===ZM&&uc(e.ownerDocument.body);a=n}while(a);wu(t)}function vx(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===td)if(e===0)break;else e--;else a!==ed&&a!==Br&&a!==Ps&&a!==ri||e++;a=o}while(a)}function $I(e){vx(e,!0)}function jI(e){e=e.style,typeof e.setProperty==="function"?e.setProperty("display","none","important"):e.display="none"}function XI(e){e.nodeValue=""}function YI(e){vx(e,!1)}function QI(e,t){t=t[KM],t=t!==void 0&&t!==null&&t.hasOwnProperty("display")?t.display:null,e.style.display=t==null||typeof t==="boolean"?"":(""+t).trim()}function ZI(e,t){e.nodeValue=t}function Eg(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":Eg(a),de(a);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(a.rel.toLowerCase()==="stylesheet")continue}e.removeChild(a)}}function WI(e,t,a,o){for(;e.nodeType===1;){var n=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"){Je(n.name,"name");var l=n.name==null?null:""+n.name;if(n.type==="hidden"&&e.getAttribute("name")===l)return e}else return e;else if(!e[hc])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(l=e.getAttribute("rel"),l==="stylesheet"&&e.hasAttribute("data-precedence"))break;else if(l!==n.rel||e.getAttribute("href")!==(n.href==null||n.href===""?null:n.href)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin)||e.getAttribute("title")!==(n.title==null?null:n.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(l=e.getAttribute("src"),(l!==(n.src==null?null:n.src)||e.getAttribute("type")!==(n.type==null?null:n.type)||e.getAttribute("crossorigin")!==(n.crossOrigin==null?null:n.crossOrigin))&&l&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}if(e=Ao(e.nextSibling),e===null)break}return null}function KI(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=Ao(e.nextSibling),e===null)return null}return e}function Sx(e,t){for(;e.nodeType!==8;){if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t)return null;if(e=Ao(e.nextSibling),e===null)return null}return e}function Og(e){return e.data===Br||e.data===Ps}function qg(e){return e.data===ri||e.data===Br&&e.ownerDocument.readyState!==i1}function JI(e,t){var a=e.ownerDocument;if(e.data===Ps)e._reactRetry=t;else if(e.data!==Br||a.readyState!==i1)t();else{var o=function(){t(),a.removeEventListener("DOMContentLoaded",o)};a.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function Ao(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===ed||t===ri||t===Br||t===Ps||t===zs||t===cb||t===u1)break;if(t===td||t===am)return null}}return e}function xx(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),a={},o=e.attributes,n=0;n<o.length;n++){var l=o[n];a[ux(l.name)]=l.name.toLowerCase()==="style"?Rg(e):l.value}return{type:t,props:a}}return e.nodeType===8?e.data===zs?{type:"Activity",props:{}}:{type:"Suspense",props:{}}:e.nodeValue}function Lx(e,t,a){return a===null||a[YM]!==!0?(e.nodeValue===t?e=null:(t=cr(t),e=cr(e.nodeValue)===t?null:e.nodeValue),e):null}function Bg(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===td||a===am){if(t===0)return Ao(e.nextSibling);t--}else a!==ed&&a!==ri&&a!==Br&&a!==Ps&&a!==zs||t++}e=e.nextSibling}return null}function Cx(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var a=e.data;if(a===ed||a===ri||a===Br||a===Ps||a===zs){if(t===0)return e;t--}else a!==td&&a!==am||t++}e=e.previousSibling}return null}function eR(e){wu(e)}function tR(e){wu(e)}function aR(e){wu(e)}function kx(e,t,a,o,n){switch(n&&jm(e,o.ancestorInfo),t=Qf(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 oR(e,t,a,o){if(!a[hr]&&Qe(a)){var n=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.",n,n,n)}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(n=a.attributes;n.length;)a.removeAttributeNode(n[0]);$a(a,e,t),a[ja]=o,a[no]=t}function uc(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);de(e)}function Zf(e){return typeof e.getRootNode==="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function wx(e,t,a){var o=ui;if(o&&typeof t==="string"&&t){var n=Go(t);n='link[rel="'+e+'"][href="'+n+'"]',typeof a==="string"&&(n+='[crossorigin="'+a+'"]'),h1.has(n)||(h1.add(n),e={rel:e,crossOrigin:a,href:t},o.querySelector(n)===null&&(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}}function Tx(e,t,a,o){var n=(n=pr.current)?Zf(n):null;if(!n)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=Cu(a.href),t=wt(n).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=Cu(a.href);var l=wt(n).hoistableStyles,s=l.get(e);if(!s&&(n=n.ownerDocument||n,s={type:"stylesheet",instance:null,count:0,state:{loading:Hs,preload:null}},l.set(e,s),(l=n.querySelector(ic(e)))&&!l._p&&(s.instance=l,s.state.loading=od|tn),!an.has(e))){var c={rel:"preload",as:"style",href:a.href,crossOrigin:a.crossOrigin,integrity:a.integrity,media:a.media,hrefLang:a.hrefLang,referrerPolicy:a.referrerPolicy};an.set(e,c),l||nR(n,e,c,s.state)}if(t&&o===null)throw a=`
|
|
177
177
|
|
|
178
|
-
- `+
|
|
179
|
-
+ `+
|
|
178
|
+
- `+Wf(t)+`
|
|
179
|
+
+ `+Wf(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
|
-
- `+
|
|
182
|
-
+ `+Qf(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=ku(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 Qf(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):cl.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):cl.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):cl.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Cu(e){return'href="'+Go(e)+'"'}function id(e){return'link[rel="stylesheet"]['+e+"]"}function Sx(e){return rt({},e,{"data-precedence":e.precedence,precedence:null})}function GI(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=oc:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=oc}),t.addEventListener("error",function(){return o.loading|=r1}),$a(t,"link",a),Ee(t),e.head.appendChild(t))}function ku(e){return'[src="'+Go(e)+'"]'}function dd(e){return"script[async]"+e}function xx(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Go(a.href)+'"]');if(o)return t.instance=o,Ee(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"),Ee(o),$a(o,"style",l),Zf(o,a.precedence,e),t.instance=o;case"stylesheet":l=Cu(a.href);var n=e.querySelector(id(l));if(n)return t.state.loading|=tl,t.instance=n,Ee(n),n;o=Sx(a),(l=al.get(l))&&Eg(o,l),n=(e.ownerDocument||e).createElement("link"),Ee(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|=tl,Zf(n,a.precedence,e),t.instance=n;case"script":if(n=ku(a.src),l=e.querySelector(dd(n)))return t.instance=l,Ee(l),l;if(o=a,l=al.get(n))o=rt({},a),Og(o,l);return e=e.ownerDocument||e,l=e.createElement("script"),Ee(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&tl)===Hs&&(o=t.instance,t.state.loading|=tl,Zf(o,a.precedence,e));return t.instance}function Zf(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 Eg(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Og(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function Lx(e,t,a){if(am===null){var o=new Map,l=am=new Map;l.set(a,o)}else l=am,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[hd]||n[Xa]||e==="link"&&n.getAttribute("rel")==="stylesheet")&&n.namespaceURI!==Du){var s=n.getAttribute(t)||"";s=e+s;var d=o.get(s);d?d.push(n):o.set(s,[n])}}return o}function Cx(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function VI(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===si||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=SI(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 kx(e){return e.type==="stylesheet"&&(e.state.loading&s1)===Hs?!1:!0}function $I(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&tl)===Hs){if(a.instance===null){var l=Cu(o.href),n=t.querySelector(id(l));if(n){t=n._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=Wf.bind(e),t.then(e,e)),a.state.loading|=tl,a.instance=n,Ee(n);return}n=t.ownerDocument||t,o=Sx(o),(l=al.get(l))&&Eg(o,l),n=n.createElement("link"),Ee(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&s1)===Hs&&(e.count++,a=Wf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function XI(e,t){return e.stylesheets&&e.count===0&&Kf(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&Kf(e,e.stylesheets),e.unsuspend){var n=e.unsuspend;e.unsuspend=null,n()}},_M+t);0<e.imgBytes&&cb===0&&(cb=125*xI()*FM);var l=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Kf(e,e.stylesheets),e.unsuspend)){var n=e.unsuspend;e.unsuspend=null,n()}},(e.imgBytes>cb?50:HM)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(l)}}:null}function Wf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Kf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,om=new Map,t.forEach(jI,e),om=null,Wf.call(e))}function jI(e,t){if(!(t.state.loading&tl)){var a=om.get(e);if(a)var o=a.get(fb);else{a=new Map,om.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(fb,o)}l=t.instance,s=l.getAttribute("data-precedence"),n=a.get(s)||o,n===o&&a.set(fb,l),a.set(s,l),this.count++,o=Wf.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|=tl}}function YI(e,t,a,o,l,n,s,d,m){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=_s,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=su(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=su(0),this.hiddenUpdates=su(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 wx(e,t,a,o,l,n,s,d,m,g,A,E){return e=new YI(e,t,a,s,m,g,A,E,d),t=pM,n===!0&&(t|=Ja|pl),t|=tt,n=C(3,null,null,t),e.current=n,n.stateNode=e,t=sh(),ps(t),e.pooledCache=t,ps(t),n.memoizedState={element:o,isDehydrated:a,cache:t},fh(n),e}function Tx(e){if(!e)return Sr;return e=Sr,e}function qg(e,t,a,o,l,n){if(Ka&&typeof Ka.onScheduleFiberRoot==="function")try{Ka.onScheduleFiberRoot(Mu,o,a)}catch(s){Ql||(Ql=!0,console.error("React instrumentation encountered an error: %o",s))}l=Tx(l),o.context===null?o.context=l:o.pendingContext=l,Yl&&Eo!==null&&!f1&&(f1=!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.
|
|
181
|
+
- `+Wf(t)+`
|
|
182
|
+
+ `+Wf(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=ku(a),t=wt(n).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 Wf(e){var t=0,a="<link";return typeof e.rel==="string"?(t++,a+=' rel="'+e.rel+'"'):fn.call(e,"rel")&&(t++,a+=' rel="'+(e.rel===null?"null":"invalid type "+typeof e.rel)+'"'),typeof e.href==="string"?(t++,a+=' href="'+e.href+'"'):fn.call(e,"href")&&(t++,a+=' href="'+(e.href===null?"null":"invalid type "+typeof e.href)+'"'),typeof e.precedence==="string"?(t++,a+=' precedence="'+e.precedence+'"'):fn.call(e,"precedence")&&(t++,a+=" precedence={"+(e.precedence===null?"null":"invalid type "+typeof e.precedence)+"}"),Object.getOwnPropertyNames(e).length>t&&(a+=" ..."),a+" />"}function Cu(e){return'href="'+Go(e)+'"'}function ic(e){return'link[rel="stylesheet"]['+e+"]"}function Ix(e){return pt({},e,{"data-precedence":e.precedence,precedence:null})}function nR(e,t,a,o){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?o.loading=od:(t=e.createElement("link"),o.preload=t,t.addEventListener("load",function(){return o.loading|=od}),t.addEventListener("error",function(){return o.loading|=p1}),$a(t,"link",a),Oe(t),e.head.appendChild(t))}function ku(e){return'[src="'+Go(e)+'"]'}function cc(e){return"script[async]"+e}function Rx(e,t,a){if(t.count++,t.instance===null)switch(t.type){case"style":var o=e.querySelector('style[data-href~="'+Go(a.href)+'"]');if(o)return t.instance=o,Oe(o),o;var n=pt({},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",n),Kf(o,a.precedence,e),t.instance=o;case"stylesheet":n=Cu(a.href);var l=e.querySelector(ic(n));if(l)return t.state.loading|=tn,t.instance=l,Oe(l),l;o=Ix(a),(n=an.get(n))&&Ng(o,n),l=(e.ownerDocument||e).createElement("link"),Oe(l);var s=l;return s._p=new Promise(function(c,p){s.onload=c,s.onerror=p}),$a(l,"link",o),t.state.loading|=tn,Kf(l,a.precedence,e),t.instance=l;case"script":if(l=ku(a.src),n=e.querySelector(cc(l)))return t.instance=n,Oe(n),n;if(o=a,n=an.get(l))o=pt({},a),Ug(o,n);return e=e.ownerDocument||e,n=e.createElement("script"),Oe(n),$a(n,"link",o),e.head.appendChild(n),t.instance=n;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&tn)===Hs&&(o=t.instance,t.state.loading|=tn,Kf(o,a.precedence,e));return t.instance}function Kf(e,t,a){for(var o=a.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),n=o.length?o[o.length-1]:null,l=n,s=0;s<o.length;s++){var c=o[s];if(c.dataset.precedence===t)l=c;else if(l!==n)break}l?l.parentNode.insertBefore(e,l.nextSibling):(t=a.nodeType===9?a.head:a,t.insertBefore(e,t.firstChild))}function Ng(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function Ug(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}function Mx(e,t,a){if(nm===null){var o=new Map,n=nm=new Map;n.set(a,o)}else n=nm,o=n.get(a),o||(o=new Map,n.set(a,o));if(o.has(e))return o;o.set(e,null),a=a.getElementsByTagName(e);for(n=0;n<a.length;n++){var l=a[n];if(!(l[hc]||l[ja]||e==="link"&&l.getAttribute("rel")==="stylesheet")&&l.namespaceURI!==Du){var s=l.getAttribute(t)||"";s=e+s;var c=o.get(s);c?c.push(l):o.set(s,[l])}}return o}function Ax(e,t,a){e=e.ownerDocument||e,e.head.insertBefore(a,t==="title"?e.querySelector("head > title"):null)}function lR(e,t,a){var o=!a.ancestorInfo.containerTagInScope;if(a.context===si||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 n=t.onError,l=t.disabled;a=[],t.onLoad&&a.push("`onLoad`"),n&&a.push("`onError`"),l!=null&&a.push("`disabled`"),n=BI(a,"and"),n+=a.length===1?" prop":" props",l=a.length===1?"an "+n:"the "+n,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,l,n)}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 Dx(e){return e.type==="stylesheet"&&(e.state.loading&m1)===Hs?!1:!0}function rR(e,t,a,o){if(a.type==="stylesheet"&&(typeof o.media!=="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&tn)===Hs){if(a.instance===null){var n=Cu(o.href),l=t.querySelector(ic(n));if(l){t=l._p,t!==null&&typeof t==="object"&&typeof t.then==="function"&&(e.count++,e=Jf.bind(e),t.then(e,e)),a.state.loading|=tn,a.instance=l,Oe(l);return}l=t.ownerDocument||t,o=Ix(o),(n=an.get(n))&&Ng(o,n),l=l.createElement("link"),Oe(l);var s=l;s._p=new Promise(function(c,p){s.onload=c,s.onerror=p}),$a(l,"link",o),a.instance=l}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(a,t),(t=a.state.preload)&&(a.state.loading&m1)===Hs&&(e.count++,a=Jf.bind(e),t.addEventListener("load",a),t.addEventListener("error",a))}}function sR(e,t){return e.stylesheets&&e.count===0&&ep(e,e.stylesheets),0<e.count||0<e.imgCount?function(a){var o=setTimeout(function(){if(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend){var l=e.unsuspend;e.unsuspend=null,l()}},tA+t);0<e.imgBytes&&hb===0&&(hb=125*NI()*oA);var n=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ep(e,e.stylesheets),e.unsuspend)){var l=e.unsuspend;e.unsuspend=null,l()}},(e.imgBytes>hb?50:aA)+t);return e.unsuspend=a,function(){e.unsuspend=null,clearTimeout(o),clearTimeout(n)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ep(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function ep(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,lm=new Map,t.forEach(uR,e),lm=null,Jf.call(e))}function uR(e,t){if(!(t.state.loading&tn)){var a=lm.get(e);if(a)var o=a.get(gb);else{a=new Map,lm.set(e,a);for(var n=e.querySelectorAll("link[data-precedence],style[data-precedence]"),l=0;l<n.length;l++){var s=n[l];if(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")a.set(s.dataset.precedence,s),o=s}o&&a.set(gb,o)}n=t.instance,s=n.getAttribute("data-precedence"),l=a.get(s)||o,l===o&&a.set(gb,n),a.set(s,n),this.count++,o=Jf.bind(this),n.addEventListener("load",o),n.addEventListener("error",o),l?l.parentNode.insertBefore(n,l.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(n,e.firstChild)),t.state.loading|=tn}}function iR(e,t,a,o,n,l,s,c,p){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=_s,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=su(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=su(0),this.hiddenUpdates=su(null),this.identifierPrefix=o,this.onUncaughtError=n,this.onCaughtError=l,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=p,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 Ex(e,t,a,o,n,l,s,c,p,g,E,O){return e=new iR(e,t,a,s,p,g,E,O,c),t=RM,l===!0&&(t|=Ja|mn),t|=nt,l=k(3,null,null,t),e.current=l,l.stateNode=e,t=dh(),ps(t),e.pooledCache=t,ps(t),l.memoizedState={element:o,isDehydrated:a,cache:t},gh(l),e}function Ox(e){if(!e)return vr;return e=vr,e}function zg(e,t,a,o,n,l){if(Ka&&typeof Ka.onScheduleFiberRoot==="function")try{Ka.onScheduleFiberRoot(Mu,o,a)}catch(s){Zn||(Zn=!0,console.error("React instrumentation encountered an error: %o",s))}n=Ox(n),o.context===null?o.context=n:o.pendingContext=n,Qn&&Eo!==null&&!v1&&(v1=!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(Eo)||"Unknown")),o=nr(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=rr(e,o,t),a!==null&&(Ol(t,"root.render()",null),oa(a,e,t),Vi(a,e,t))}function Ix(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Bg(e,t){Ix(e,t),(e=e.alternate)&&Ix(e,t)}function Rx(e){if(e.tag===13||e.tag===31){var t=Wa(e,67108864);t!==null&&oa(t,e,67108864),Bg(e,67108864)}}function Mx(e){if(e.tag===13||e.tag===31){var t=Mo(e);t=ls(t);var a=Wa(e,t);a!==null&&oa(a,e,t),Bg(e,t)}}function QI(){return Eo}function ZI(e,t,a,o){var l=G.T;G.T=null;var n=kt.p;try{kt.p=Oo,Ng(e,t,a,o)}finally{kt.p=n,G.T=l}}function WI(e,t,a,o){var l=G.T;G.T=null;var n=kt.p;try{kt.p=fl,Ng(e,t,a,o)}finally{kt.p=n,G.T=l}}function Ng(e,t,a,o){if(nm){var l=Ug(o);if(l===null)xg(e,t,o,rm,a),Dx(e,o);else if(KI(l,e,t,a,o))o.stopPropagation();else if(Dx(e,o),t&4&&-1<VM.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=Ml(n.pendingLanes);if(s!==0){var d=n;d.pendingLanes|=2;for(d.entangledLanes|=2;s;){var m=1<<31-oo(s);d.entanglements[1]|=m,s&=~m}Vl(n),(ht&(Aa|Uo))===Pa&&(Fp=Ba()+_C,ld(0,!1))}}break;case 31:case 13:d=Wa(n,2),d!==null&&oa(d,n,2),Su(),Bg(n,2)}if(n=Ug(o),n===null&&xg(e,t,o,rm,a),n===l)break;l=n}l!==null&&o.stopPropagation()}else xg(e,t,o,null,a)}}function Ug(e){return e=Gm(e),Pg(e)}function Pg(e){if(rm=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 rm=e,null}function Ax(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 Oo;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 fl;case"message":switch(sR()){case Wg:return Oo;case Kg:return fl;case Ru:case uR:return Wl;case Jg:return up;default:return Wl}default:return Wl}}function Dx(e,t){switch(e){case"focusin":case"focusout":Ur=null;break;case"dragenter":case"dragleave":Pr=null;break;case"mouseover":case"mouseout":zr=null;break;case"pointerover":case"pointerout":nc.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rc.delete(t.pointerId)}}function cd(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&&Rx(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,l!==null&&t.indexOf(l)===-1&&t.push(l),e}function KI(e,t,a,o,l){switch(t){case"focusin":return Ur=cd(Ur,e,t,a,o,l),!0;case"dragenter":return Pr=cd(Pr,e,t,a,o,l),!0;case"mouseover":return zr=cd(zr,e,t,a,o,l),!0;case"pointerover":var n=l.pointerId;return nc.set(n,cd(nc.get(n)||null,e,t,a,o,l)),!0;case"gotpointercapture":return n=l.pointerId,rc.set(n,cd(rc.get(n)||null,e,t,a,o,l)),!0}return!1}function Ex(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(){Mx(a)});return}}else if(t===31){if(t=K(a),t!==null){e.blockedOn=t,ie(e.priority,function(){Mx(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 Jf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Ug(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),l=o;gd!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),gd=l,a.target.dispatchEvent(o),gd===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."),gd=null}else return t=$e(a),t!==null&&Rx(t),e.blockedOn=a,!1;t.shift()}return!0}function Ox(e,t,a){Jf(e)&&a.delete(t)}function JI(){pb=!1,Ur!==null&&Jf(Ur)&&(Ur=null),Pr!==null&&Jf(Pr)&&(Pr=null),zr!==null&&Jf(zr)&&(zr=null),nc.forEach(Ox),rc.forEach(Ox)}function ep(e,t){e.blockedOn===t&&(e.blockedOn=null,pb||(pb=!0,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,JI)))}function qx(e){sm!==e&&(sm=e,bt.unstable_scheduleCallback(bt.unstable_NormalPriority,function(){sm===e&&(sm=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(Pg(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),Ph(n,a,o,l))}}))}function wu(e){function t(m){return ep(m,e)}Ur!==null&&ep(Ur,e),Pr!==null&&ep(Pr,e),zr!==null&&ep(zr,e),nc.forEach(t),rc.forEach(t);for(var a=0;a<_r.length;a++){var o=_r[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<_r.length&&(a=_r[0],a.blockedOn===null);)Ex(a),a.blockedOn===null&&_r.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[lo]||null;if(typeof n==="function")s||qx(a);else if(s){var d=null;if(n&&n.hasAttribute("formAction")){if(l=n,s=n[lo]||null)d=s.formAction;else if(Pg(l)!==null)continue}else d=s.action;typeof d==="function"?a[o+1]=d:(a.splice(o,3),o-=3),qx(a)}}}function Bx(){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 zg(e){this._internalRoot=e}function tp(e){this._internalRoot=e}function Nx(e){e[gr]&&(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,eR=Symbol.for("react.element"),Xl=Symbol.for("react.transitional.element"),Tu=Symbol.for("react.portal"),Iu=Symbol.for("react.fragment"),ap=Symbol.for("react.strict_mode"),_g=Symbol.for("react.profiler"),Hg=Symbol.for("react.consumer"),jl=Symbol.for("react.context"),fd=Symbol.for("react.forward_ref"),Fg=Symbol.for("react.suspense"),Gg=Symbol.for("react.suspense_list"),op=Symbol.for("react.memo"),Do=Symbol.for("react.lazy"),Vg=Symbol.for("react.activity"),tR=Symbol.for("react.memo_cache_sentinel"),Ux=Symbol.iterator,aR=Symbol.for("react.client.reference"),Ra=Array.isArray,G=di.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,kt=hb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,oR=Object.freeze({pending:!1,data:null,method:null,action:null}),$g=[],Xg=[],In=-1,pr=ge(null),pd=ge(null),mr=ge(null),lp=ge(null),md=0,Px,zx,_x,Hx,Fx,Gx,Vx;P.__reactDisabledLog=!0;var jg,$x,Yg=!1,Qg=new(typeof WeakMap==="function"?WeakMap:Map),Eo=null,Yl=!1,cl=Object.prototype.hasOwnProperty,Zg=bt.unstable_scheduleCallback,lR=bt.unstable_cancelCallback,nR=bt.unstable_shouldYield,rR=bt.unstable_requestPaint,Ba=bt.unstable_now,sR=bt.unstable_getCurrentPriorityLevel,Wg=bt.unstable_ImmediatePriority,Kg=bt.unstable_UserBlockingPriority,Ru=bt.unstable_NormalPriority,uR=bt.unstable_LowPriority,Jg=bt.unstable_IdlePriority,iR=bt.log,dR=bt.unstable_setDisableYieldValue,Mu=null,Ka=null,Ql=!1,Zl=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",oo=Math.clz32?Math.clz32:$c,{log:cR,LN2:fR}=Math,np=256,rp=262144,sp=4194304,Oo=2,fl=8,Wl=32,up=268435456,hr=Math.random().toString(36).slice(2),Xa="__reactFiber$"+hr,lo="__reactProps$"+hr,gr="__reactContainer$"+hr,ey="__reactEvents$"+hr,pR="__reactListeners$"+hr,mR="__reactHandles$"+hr,Xx="__reactResources$"+hr,hd="__reactMarker$"+hr,jx=new Set,Ss={},ty={},hR={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},gR=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]*$"),Yx={},Qx={},yR=/[\n"\\]/g,Zx=!1,Wx=!1,Kx=!1,Jx=!1,eL=!1,tL=!1,aL=["value","defaultValue"],oL=!1,lL=/["'&<>\n\t]|^\s|\s$/,bR="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(" "),nL="applet caption html table td th marquee object template foreignObject desc title".split(" "),vR=nL.concat(["button"]),SR="dd dt li option optgroup p rp rt".split(" "),rL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},ip={},ay={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"]},sL=/([A-Z])/g,uL=/^ms-/,xR=/^(?:webkit|moz|o)[A-Z]/,LR=/^-ms-/,CR=/-(.)/g,iL=/;\s*$/,Au={},oy={},dL=!1,cL=!1,fL=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(" ")),dp="http://www.w3.org/1998/Math/MathML",Du="http://www.w3.org/2000/svg",kR=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"]]),cp={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"},pL={"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},Eu={},wR=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]*$"),TR=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]*$"),mL=!1,no={},hL=/^on./,IR=/^on[^A-Z]/,RR=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]*$"),MR=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]*$"),AR=/^[\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,gd=null,Ou=null,qu=null,ly=!1,Kl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ny=!1;if(Kl)try{var yd={};Object.defineProperty(yd,"passive",{get:function(){ny=!0}}),window.addEventListener("test",yd,yd),window.removeEventListener("test",yd,yd)}catch(e){ny=!1}var yr=null,ry=null,fp=null,xs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},pp=po(xs),bd=rt({},xs,{view:0,detail:0}),DR=po(bd),sy,uy,vd,mp=rt({},bd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vm,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!==vd&&(vd&&e.type==="mousemove"?(sy=e.screenX-vd.screenX,uy=e.screenY-vd.screenY):uy=sy=0,vd=e),sy},movementY:function(e){return"movementY"in e?e.movementY:uy}}),gL=po(mp),ER=rt({},mp,{dataTransfer:0}),OR=po(ER),qR=rt({},bd,{relatedTarget:0}),iy=po(qR),BR=rt({},xs,{animationName:0,elapsedTime:0,pseudoElement:0}),NR=po(BR),UR=rt({},xs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),PR=po(UR),zR=rt({},xs,{data:0}),yL=po(zR),_R=yL,HR={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},FR={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"},GR={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},VR=rt({},bd,{key:function(e){if(e.key){var t=HR[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Kc(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?FR[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vm,charCode:function(e){return e.type==="keypress"?Kc(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Kc(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),$R=po(VR),XR=rt({},mp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),bL=po(XR),jR=rt({},bd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vm}),YR=po(jR),QR=rt({},xs,{propertyName:0,elapsedTime:0,pseudoElement:0}),ZR=po(QR),WR=rt({},mp,{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}),KR=po(WR),JR=rt({},xs,{newState:0,oldState:0}),eM=po(JR),tM=[9,13,27,32],vL=229,dy=Kl&&"CompositionEvent"in window,Sd=null;Kl&&"documentMode"in document&&(Sd=document.documentMode);var aM=Kl&&"TextEvent"in window&&!Sd,SL=Kl&&(!dy||Sd&&8<Sd&&11>=Sd),xL=32,LL=String.fromCharCode(xL),CL=!1,Bu=!1,oM={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},xd=null,Ld=null,kL=!1;Kl&&(kL=kT("input")&&(!document.documentMode||9<document.documentMode));var ro=typeof Object.is==="function"?Object.is:AT,lM=Kl&&"documentMode"in document&&11>=document.documentMode,Nu=null,cy=null,Cd=null,fy=!1,Uu={animationend:rs("Animation","AnimationEnd"),animationiteration:rs("Animation","AnimationIteration"),animationstart:rs("Animation","AnimationStart"),transitionrun:rs("Transition","TransitionRun"),transitionstart:rs("Transition","TransitionStart"),transitioncancel:rs("Transition","TransitionCancel"),transitionend:rs("Transition","TransitionEnd")},py={},wL={};Kl&&(wL=document.createElement("div").style,("AnimationEvent"in window)||(delete Uu.animationend.animation,delete Uu.animationiteration.animation,delete Uu.animationstart.animation),("TransitionEvent"in window)||delete Uu.transitionend.transition);var TL=ss("animationend"),IL=ss("animationiteration"),RL=ss("animationstart"),nM=ss("transitionrun"),rM=ss("transitionstart"),sM=ss("transitioncancel"),ML=ss("transitionend"),AL=new Map,my="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(" ");my.push("scrollEnd");var DL=0;if(typeof performance==="object"&&typeof performance.now==="function")var uM=performance,EL=function(){return uM.now()};else{var iM=Date;EL=function(){return iM.now()}}var hy=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)},dM="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.",hp=0,gy=1,yy=2,by=3,gp="– ",yp="+ ",OL=" ",Gt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",$o="Components ⚛",st="Scheduler ⚛",it="Blocking",br=!1,Rn={color:"primary",properties:null,tooltipText:"",track:$o},vr={start:-0,end:-0,detail:{devtools:Rn}},cM=["Changed Props",""],qL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",fM=["Changed Props",qL],kd=1,Mn=2,Xo=[],Pu=0,vy=0,Sr={};Object.freeze(Sr);var jo=null,zu=null,Pe=0,pM=1,tt=2,Ja=8,pl=16,mM=32,BL=!1;try{var NL=Object.preventExtensions({})}catch(e){BL=!0}var Sy=new WeakMap,_u=[],Hu=0,bp=null,wd=0,Yo=[],Qo=0,Ls=null,An=1,Dn="",ja=null,Vt=null,dt=!1,Jl=!1,qo=null,xr=null,Zo=!1,xy=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."),Ly=ge(null),Cy=ge(null),UL={},vp=null,Fu=null,Gu=!1,hM=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()})}},gM=bt.unstable_scheduleCallback,yM=bt.unstable_NormalPriority,va={$$typeof:jl,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},Sa=bt.unstable_now,Sp=console.createTask?console.createTask:function(){return null},Td=1,xp=2,Na=-0,Lr=-0,En=-0,On=null,so=-1.1,Cs=-0,Jt=-0,Oe=-1.1,Ne=-1.1,Zt=null,la=!1,Cr=-0,en=-1.1,Id=null,kr=0,ky=null,wy=null,ks=-1.1,Rd=null,Vu=-1.1,Lp=-1.1,tn=-0,qn=-1.1,Wo=-1.1,Ty=0,Md=null,PL=null,zL=null,wr=-1.1,ws=null,Tr=-1.1,Cp=-1.1,_L=-0,HL=-0,kp=0,Bn=null,FL=0,Ad=-1.1,wp=!1,Tp=!1,Dd=null,Iy=0,Ts=0,$u=null,GL=G.S;G.S=function(e,t){if(PC=Ba(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>qn&&0>Wo){qn=Sa();var a=sd(),o=rd();if(a!==Tr||o!==ws)Tr=-1.1;wr=a,ws=o}UT(e,t)}GL!==null&&GL(e,t)};var Is=ge(null),ml={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ed=[],Od=[],qd=[],Bd=[],Nd=[],Ud=[],Rs=new Set;ml.recordUnsafeLifecycleWarnings=function(e,t){Rs.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Ed.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillMount==="function"&&Od.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&qd.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&Bd.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Nd.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillUpdate==="function"&&Ud.push(e))},ml.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Ed.length&&(Ed.forEach(function(d){e.add(X(d)||"Component"),Rs.add(d.type)}),Ed=[]);var t=new Set;0<Od.length&&(Od.forEach(function(d){t.add(X(d)||"Component"),Rs.add(d.type)}),Od=[]);var a=new Set;0<qd.length&&(qd.forEach(function(d){a.add(X(d)||"Component"),Rs.add(d.type)}),qd=[]);var o=new Set;0<Bd.length&&(Bd.forEach(function(d){o.add(X(d)||"Component"),Rs.add(d.type)}),Bd=[]);var l=new Set;0<Nd.length&&(Nd.forEach(function(d){l.add(X(d)||"Component"),Rs.add(d.type)}),Nd=[]);var n=new Set;if(0<Ud.length&&(Ud.forEach(function(d){n.add(X(d)||"Component"),Rs.add(d.type)}),Ud=[]),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.`,_(Eo)||"Unknown")),o=nr(t),o.payload={element:a},l=l===void 0?null:l,l!==null&&(typeof l!=="function"&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",l),o.callback=l),a=lr(e,o,t),a!==null&&(qn(t,"root.render()",null),ra(a,e,t),Vi(a,e,t))}function qx(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var a=e.retryLane;e.retryLane=a!==0&&a<t?a:t}}function Pg(e,t){qx(e,t),(e=e.alternate)&&qx(e,t)}function Bx(e){if(e.tag===13||e.tag===31){var t=Wa(e,67108864);t!==null&&ra(t,e,67108864),Pg(e,67108864)}}function Nx(e){if(e.tag===13||e.tag===31){var t=Mo(e);t=ns(t);var a=Wa(e,t);a!==null&&ra(a,e,t),Pg(e,t)}}function cR(){return Eo}function dR(e,t,a,o){var n=H.T;H.T=null;var l=qt.p;try{qt.p=Oo,_g(e,t,a,o)}finally{qt.p=l,H.T=n}}function fR(e,t,a,o){var n=H.T;H.T=null;var l=qt.p;try{qt.p=pn,_g(e,t,a,o)}finally{qt.p=l,H.T=n}}function _g(e,t,a,o){if(sm){var n=Hg(o);if(n===null)wg(e,t,o,um,a),zx(e,o);else if(pR(n,e,t,a,o))o.stopPropagation();else if(zx(e,o),t&4&&-1<lA.indexOf(e)){for(;n!==null;){var l=Qe(n);if(l!==null)switch(l.tag){case 3:if(l=l.stateNode,l.current.memoizedState.isDehydrated){var s=An(l.pendingLanes);if(s!==0){var c=l;c.pendingLanes|=2;for(c.entangledLanes|=2;s;){var p=1<<31-oo(s);c.entanglements[1]|=p,s&=~p}$n(l),(kt&(Da|Uo))===za&&(Vp=Ba()+XC,nc(0,!1))}}break;case 31:case 13:c=Wa(l,2),c!==null&&ra(c,l,2),Su(),Pg(l,2)}if(l=Hg(o),l===null&&wg(e,t,o,um,a),l===n)break;n=l}n!==null&&o.stopPropagation()}else wg(e,t,o,null,a)}}function Hg(e){return e=Xm(e),Fg(e)}function Fg(e){if(um=null,e=Ce(e),e!==null){var t=N(e);if(t===null)e=null;else{var a=t.tag;if(a===13){if(e=U(t),e!==null)return e;e=null}else if(a===31){if(e=V(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 um=e,null}function Ux(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 Oo;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 pn;case"message":switch(LR()){case ty:return Oo;case ay:return pn;case Ru:case CR:return Kn;case oy:return cp;default:return Kn}default:return Kn}}function zx(e,t){switch(e){case"focusin":case"focusout":Nr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":zr=null;break;case"pointerover":case"pointerout":ld.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rd.delete(t.pointerId)}}function dc(e,t,a,o,n,l){if(e===null||e.nativeEvent!==l)return e={blockedOn:t,domEventName:a,eventSystemFlags:o,nativeEvent:l,targetContainers:[n]},t!==null&&(t=Qe(t),t!==null&&Bx(t)),e;return e.eventSystemFlags|=o,t=e.targetContainers,n!==null&&t.indexOf(n)===-1&&t.push(n),e}function pR(e,t,a,o,n){switch(t){case"focusin":return Nr=dc(Nr,e,t,a,o,n),!0;case"dragenter":return Ur=dc(Ur,e,t,a,o,n),!0;case"mouseover":return zr=dc(zr,e,t,a,o,n),!0;case"pointerover":var l=n.pointerId;return ld.set(l,dc(ld.get(l)||null,e,t,a,o,n)),!0;case"gotpointercapture":return l=n.pointerId,rd.set(l,dc(rd.get(l)||null,e,t,a,o,n)),!0}return!1}function Px(e){var t=Ce(e.target);if(t!==null){var a=N(t);if(a!==null){if(t=a.tag,t===13){if(t=U(a),t!==null){e.blockedOn=t,le(e.priority,function(){Nx(a)});return}}else if(t===31){if(t=V(a),t!==null){e.blockedOn=t,le(e.priority,function(){Nx(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 tp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var a=Hg(e.nativeEvent);if(a===null){a=e.nativeEvent;var o=new a.constructor(a.type,a),n=o;gc!==null&&console.error("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),gc=n,a.target.dispatchEvent(o),gc===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."),gc=null}else return t=Qe(a),t!==null&&Bx(t),e.blockedOn=a,!1;t.shift()}return!0}function _x(e,t,a){tp(e)&&a.delete(t)}function mR(){yb=!1,Nr!==null&&tp(Nr)&&(Nr=null),Ur!==null&&tp(Ur)&&(Ur=null),zr!==null&&tp(zr)&&(zr=null),ld.forEach(_x),rd.forEach(_x)}function ap(e,t){e.blockedOn===t&&(e.blockedOn=null,yb||(yb=!0,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,mR)))}function Hx(e){im!==e&&(im=e,Tt.unstable_scheduleCallback(Tt.unstable_NormalPriority,function(){im===e&&(im=null);for(var t=0;t<e.length;t+=3){var a=e[t],o=e[t+1],n=e[t+2];if(typeof o!=="function")if(Fg(o||a)===null)continue;else break;var l=Qe(a);l!==null&&(e.splice(t,3),t-=3,a={pending:!0,data:n,method:a.method,action:o},Object.freeze(a),Fh(l,a,o,n))}}))}function wu(e){function t(p){return ap(p,e)}Nr!==null&&ap(Nr,e),Ur!==null&&ap(Ur,e),zr!==null&&ap(zr,e),ld.forEach(t),rd.forEach(t);for(var a=0;a<Pr.length;a++){var o=Pr[a];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Pr.length&&(a=Pr[0],a.blockedOn===null);)Px(a),a.blockedOn===null&&Pr.shift();if(a=(e.ownerDocument||e).$$reactFormReplay,a!=null)for(o=0;o<a.length;o+=3){var n=a[o],l=a[o+1],s=n[no]||null;if(typeof l==="function")s||Hx(a);else if(s){var c=null;if(l&&l.hasAttribute("formAction")){if(n=l,s=l[no]||null)c=s.formAction;else if(Fg(n)!==null)continue}else c=s.action;typeof c==="function"?a[o+1]=c:(a.splice(o,3),o-=3),Hx(a)}}}function Fx(){function e(l){l.canIntercept&&l.info==="react-transition"&&l.intercept({handler:function(){return new Promise(function(s){return n=s})},focusReset:"manual",scroll:"manual"})}function t(){n!==null&&(n(),n=null),o||setTimeout(a,20)}function a(){if(!o&&!navigation.transition){var l=navigation.currentEntry;l&&l.url!=null&&navigation.navigate(l.url,{state:l.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation==="object"){var o=!1,n=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),n!==null&&(n(),n=null)}}}function Gg(e){this._internalRoot=e}function op(e){this._internalRoot=e}function Gx(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 pt=Object.assign,hR=Symbol.for("react.element"),Xn=Symbol.for("react.transitional.element"),Tu=Symbol.for("react.portal"),Iu=Symbol.for("react.fragment"),np=Symbol.for("react.strict_mode"),Vg=Symbol.for("react.profiler"),$g=Symbol.for("react.consumer"),Yn=Symbol.for("react.context"),fc=Symbol.for("react.forward_ref"),jg=Symbol.for("react.suspense"),Xg=Symbol.for("react.suspense_list"),lp=Symbol.for("react.memo"),Do=Symbol.for("react.lazy"),Yg=Symbol.for("react.activity"),gR=Symbol.for("react.memo_cache_sentinel"),Vx=Symbol.iterator,yR=Symbol.for("react.client.reference"),Ma=Array.isArray,H=ci.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,qt=vb.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,bR=Object.freeze({pending:!1,data:null,method:null,action:null}),Qg=[],Zg=[],Il=-1,fr=ce(null),pc=ce(null),pr=ce(null),rp=ce(null),mc=0,$x,jx,Xx,Yx,Qx,Zx,Wx;W.__reactDisabledLog=!0;var Wg,Kx,Kg=!1,Jg=new(typeof WeakMap==="function"?WeakMap:Map),Eo=null,Qn=!1,fn=Object.prototype.hasOwnProperty,ey=Tt.unstable_scheduleCallback,vR=Tt.unstable_cancelCallback,SR=Tt.unstable_shouldYield,xR=Tt.unstable_requestPaint,Ba=Tt.unstable_now,LR=Tt.unstable_getCurrentPriorityLevel,ty=Tt.unstable_ImmediatePriority,ay=Tt.unstable_UserBlockingPriority,Ru=Tt.unstable_NormalPriority,CR=Tt.unstable_LowPriority,oy=Tt.unstable_IdlePriority,kR=Tt.log,wR=Tt.unstable_setDisableYieldValue,Mu=null,Ka=null,Zn=!1,Wn=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u",oo=Math.clz32?Math.clz32:Xd,{log:TR,LN2:IR}=Math,sp=256,up=262144,ip=4194304,Oo=2,pn=8,Kn=32,cp=268435456,mr=Math.random().toString(36).slice(2),ja="__reactFiber$"+mr,no="__reactProps$"+mr,hr="__reactContainer$"+mr,ny="__reactEvents$"+mr,RR="__reactListeners$"+mr,MR="__reactHandles$"+mr,Jx="__reactResources$"+mr,hc="__reactMarker$"+mr,eL=new Set,Ss={},ly={},AR={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},DR=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]*$"),tL={},aL={},ER=/[\n"\\]/g,oL=!1,nL=!1,lL=!1,rL=!1,sL=!1,uL=!1,iL=["value","defaultValue"],cL=!1,dL=/["'&<>\n\t]|^\s|\s$/,OR="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(" "),fL="applet caption html table td th marquee object template foreignObject desc title".split(" "),qR=fL.concat(["button"]),BR="dd dt li option optgroup p rp rt".split(" "),pL={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},dp={},ry={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"]},mL=/([A-Z])/g,hL=/^ms-/,NR=/^(?:webkit|moz|o)[A-Z]/,UR=/^-ms-/,zR=/-(.)/g,gL=/;\s*$/,Au={},sy={},yL=!1,bL=!1,vL=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(" ")),fp="http://www.w3.org/1998/Math/MathML",Du="http://www.w3.org/2000/svg",PR=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"]]),pp={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"},SL={"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},Eu={},_R=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]*$"),HR=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]*$"),xL=!1,lo={},LL=/^on./,FR=/^on[^A-Z]/,GR=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]*$"),VR=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]*$"),$R=/^[\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,gc=null,Ou=null,qu=null,uy=!1,Jn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),iy=!1;if(Jn)try{var yc={};Object.defineProperty(yc,"passive",{get:function(){iy=!0}}),window.addEventListener("test",yc,yc),window.removeEventListener("test",yc,yc)}catch(e){iy=!1}var gr=null,cy=null,mp=null,xs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hp=po(xs),bc=pt({},xs,{view:0,detail:0}),jR=po(bc),dy,fy,vc,gp=pt({},bc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Ym,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!==vc&&(vc&&e.type==="mousemove"?(dy=e.screenX-vc.screenX,fy=e.screenY-vc.screenY):fy=dy=0,vc=e),dy},movementY:function(e){return"movementY"in e?e.movementY:fy}}),CL=po(gp),XR=pt({},gp,{dataTransfer:0}),YR=po(XR),QR=pt({},bc,{relatedTarget:0}),py=po(QR),ZR=pt({},xs,{animationName:0,elapsedTime:0,pseudoElement:0}),WR=po(ZR),KR=pt({},xs,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),JR=po(KR),eM=pt({},xs,{data:0}),kL=po(eM),tM=kL,aM={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},oM={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"},nM={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"},lM=pt({},bc,{key:function(e){if(e.key){var t=aM[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=ef(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?oM[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Ym,charCode:function(e){return e.type==="keypress"?ef(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?ef(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),rM=po(lM),sM=pt({},gp,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),wL=po(sM),uM=pt({},bc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Ym}),iM=po(uM),cM=pt({},xs,{propertyName:0,elapsedTime:0,pseudoElement:0}),dM=po(cM),fM=pt({},gp,{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}),pM=po(fM),mM=pt({},xs,{newState:0,oldState:0}),hM=po(mM),gM=[9,13,27,32],TL=229,my=Jn&&"CompositionEvent"in window,Sc=null;Jn&&"documentMode"in document&&(Sc=document.documentMode);var yM=Jn&&"TextEvent"in window&&!Sc,IL=Jn&&(!my||Sc&&8<Sc&&11>=Sc),RL=32,ML=String.fromCharCode(RL),AL=!1,Bu=!1,bM={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},xc=null,Lc=null,DL=!1;Jn&&(DL=PT("input")&&(!document.documentMode||9<document.documentMode));var ro=typeof Object.is==="function"?Object.is:$T,vM=Jn&&"documentMode"in document&&11>=document.documentMode,Nu=null,hy=null,Cc=null,gy=!1,Uu={animationend:rs("Animation","AnimationEnd"),animationiteration:rs("Animation","AnimationIteration"),animationstart:rs("Animation","AnimationStart"),transitionrun:rs("Transition","TransitionRun"),transitionstart:rs("Transition","TransitionStart"),transitioncancel:rs("Transition","TransitionCancel"),transitionend:rs("Transition","TransitionEnd")},yy={},EL={};Jn&&(EL=document.createElement("div").style,("AnimationEvent"in window)||(delete Uu.animationend.animation,delete Uu.animationiteration.animation,delete Uu.animationstart.animation),("TransitionEvent"in window)||delete Uu.transitionend.transition);var OL=ss("animationend"),qL=ss("animationiteration"),BL=ss("animationstart"),SM=ss("transitionrun"),xM=ss("transitionstart"),LM=ss("transitioncancel"),NL=ss("transitionend"),UL=new Map,by="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(" ");by.push("scrollEnd");var zL=0;if(typeof performance==="object"&&typeof performance.now==="function")var CM=performance,PL=function(){return CM.now()};else{var kM=Date;PL=function(){return kM.now()}}var vy=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)},wM="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.",yp=0,Sy=1,xy=2,Ly=3,bp="– ",vp="+ ",_L=" ",Qt=typeof console<"u"&&typeof console.timeStamp==="function"&&typeof performance<"u"&&typeof performance.measure==="function",$o="Components ⚛",mt="Scheduler ⚛",gt="Blocking",yr=!1,Rl={color:"primary",properties:null,tooltipText:"",track:$o},br={start:-0,end:-0,detail:{devtools:Rl}},TM=["Changed Props",""],HL="This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.",IM=["Changed Props",HL],kc=1,Ml=2,jo=[],zu=0,Cy=0,vr={};Object.freeze(vr);var Xo=null,Pu=null,_e=0,RM=1,nt=2,Ja=8,mn=16,MM=32,FL=!1;try{var GL=Object.preventExtensions({})}catch(e){FL=!0}var ky=new WeakMap,_u=[],Hu=0,Sp=null,wc=0,Yo=[],Qo=0,Ls=null,Al=1,Dl="",Xa=null,Zt=null,yt=!1,el=!1,qo=null,Sr=null,Zo=!1,wy=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."),Ty=ce(null),Iy=ce(null),VL={},xp=null,Fu=null,Gu=!1,AM=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()})}},DM=Tt.unstable_scheduleCallback,EM=Tt.unstable_NormalPriority,xa={$$typeof:Yn,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},La=Tt.unstable_now,Lp=console.createTask?console.createTask:function(){return null},Tc=1,Cp=2,Na=-0,xr=-0,El=-0,Ol=null,so=-1.1,Cs=-0,aa=-0,qe=-1.1,ze=-1.1,ta=null,sa=!1,Lr=-0,tl=-1.1,Ic=null,Cr=0,Ry=null,My=null,ks=-1.1,Rc=null,Vu=-1.1,kp=-1.1,al=-0,ql=-1.1,Wo=-1.1,Ay=0,Mc=null,$L=null,jL=null,kr=-1.1,ws=null,wr=-1.1,wp=-1.1,XL=-0,YL=-0,Tp=0,Bl=null,QL=0,Ac=-1.1,Ip=!1,Rp=!1,Dc=null,Dy=0,Ts=0,$u=null,ZL=H.S;H.S=function(e,t){if($C=Ba(),typeof t==="object"&&t!==null&&typeof t.then==="function"){if(0>ql&&0>Wo){ql=La();var a=sc(),o=rc();if(a!==wr||o!==ws)wr=-1.1;kr=a,ws=o}KT(e,t)}ZL!==null&&ZL(e,t)};var Is=ce(null),hn={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},Ec=[],Oc=[],qc=[],Bc=[],Nc=[],Uc=[],Rs=new Set;hn.recordUnsafeLifecycleWarnings=function(e,t){Rs.has(e.type)||(typeof t.componentWillMount==="function"&&t.componentWillMount.__suppressDeprecationWarning!==!0&&Ec.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillMount==="function"&&Oc.push(e),typeof t.componentWillReceiveProps==="function"&&t.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&qc.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillReceiveProps==="function"&&Bc.push(e),typeof t.componentWillUpdate==="function"&&t.componentWillUpdate.__suppressDeprecationWarning!==!0&&Nc.push(e),e.mode&Ja&&typeof t.UNSAFE_componentWillUpdate==="function"&&Uc.push(e))},hn.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<Ec.length&&(Ec.forEach(function(c){e.add(_(c)||"Component"),Rs.add(c.type)}),Ec=[]);var t=new Set;0<Oc.length&&(Oc.forEach(function(c){t.add(_(c)||"Component"),Rs.add(c.type)}),Oc=[]);var a=new Set;0<qc.length&&(qc.forEach(function(c){a.add(_(c)||"Component"),Rs.add(c.type)}),qc=[]);var o=new Set;0<Bc.length&&(Bc.forEach(function(c){o.add(_(c)||"Component"),Rs.add(c.type)}),Bc=[]);var n=new Set;0<Nc.length&&(Nc.forEach(function(c){n.add(_(c)||"Component"),Rs.add(c.type)}),Nc=[]);var l=new Set;if(0<Uc.length&&(Uc.forEach(function(c){l.add(_(c)||"Component"),Rs.add(c.type)}),Uc=[]),0<t.size){var s=L(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
|
|
|
188
|
-
Please update the following components: %s`,s)}0<o.size&&(s=
|
|
188
|
+
Please update the following components: %s`,s)}0<o.size&&(s=L(o),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
189
189
|
|
|
190
190
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
191
191
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
192
192
|
|
|
193
|
-
Please update the following components: %s`,s)),0<
|
|
193
|
+
Please update the following components: %s`,s)),0<l.size&&(s=L(l),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
194
194
|
|
|
195
195
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
196
196
|
|
|
197
|
-
Please update the following components: %s`,s)),0<e.size&&(s=
|
|
197
|
+
Please update the following components: %s`,s)),0<e.size&&(s=L(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
198
198
|
|
|
199
199
|
* Move code with side effects to componentDidMount, and set initial state in the constructor.
|
|
200
200
|
* Rename componentWillMount to UNSAFE_componentWillMount 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.
|
|
201
201
|
|
|
202
|
-
Please update the following components: %s`,s)),0<a.size&&(s=
|
|
202
|
+
Please update the following components: %s`,s)),0<a.size&&(s=L(a),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
203
203
|
|
|
204
204
|
* Move data fetching code or side effects to componentDidUpdate.
|
|
205
205
|
* If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
|
|
206
206
|
* Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps 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.
|
|
207
207
|
|
|
208
|
-
Please update the following components: %s`,s)),0<
|
|
208
|
+
Please update the following components: %s`,s)),0<n.size&&(s=L(n),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
|
|
209
209
|
|
|
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
|
|
213
|
+
Please update the following components: %s`,s))};var Mp=new Map,WL=new Set;hn.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."):!WL.has(e.type)&&(o=Mp.get(a),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==="function")&&(o===void 0&&(o=[],Mp.set(a,o)),o.push(e))},hn.flushLegacyContextWarning=function(){Mp.forEach(function(e){if(e.length!==0){var t=e[0],a=new Set;e.forEach(function(n){a.add(_(n)||"Component"),WL.add(n.type)});var o=L(a);F(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)})}})},
|
|
219
|
+
Learn more about this warning here: https://react.dev/link/legacy-context`,o)})}})},hn.discardPendingWarnings=function(){Ec=[],Oc=[],qc=[],Bc=[],Nc=[],Uc=[],Mp=new Map};var KL={react_stack_bottom_frame:function(e,t,a){var o=Qn;Qn=!0;try{return e(t,a)}finally{Qn=o}}},Ey=KL.react_stack_bottom_frame.bind(KL),JL={react_stack_bottom_frame:function(e){var t=Qn;Qn=!0;try{return e.render()}finally{Qn=t}}},eC=JL.react_stack_bottom_frame.bind(JL),tC={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(a){Ot(e,e.return,a)}}},Oy=tC.react_stack_bottom_frame.bind(tC),aC={react_stack_bottom_frame:function(e,t,a,o,n){try{t.componentDidUpdate(a,o,n)}catch(l){Ot(e,e.return,l)}}},oC=aC.react_stack_bottom_frame.bind(aC),nC={react_stack_bottom_frame:function(e,t){var a=t.stack;e.componentDidCatch(t.value,{componentStack:a!==null?a:""})}},OM=nC.react_stack_bottom_frame.bind(nC),lC={react_stack_bottom_frame:function(e,t,a){try{a.componentWillUnmount()}catch(o){Ot(e,t,o)}}},rC=lC.react_stack_bottom_frame.bind(lC),sC={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},qM=sC.react_stack_bottom_frame.bind(sC),uC={react_stack_bottom_frame:function(e,t,a){try{a()}catch(o){Ot(e,t,o)}}},BM=uC.react_stack_bottom_frame.bind(uC),iC={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},NM=iC.react_stack_bottom_frame.bind(iC),ju=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`."),qy=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."),Ap=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."),Dp={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.')}},Ms=null,zc=!1,Xu=null,Pc=0,lt=null,By,cC=By=!1,dC={},fC={},pC={};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=_(e),n=o||"null";if(!dC[n]){dC[n]=!0,a=a._owner,e=e._debugOwner;var l="";e&&typeof e.tag==="number"&&(n=_(e))&&(l=`
|
|
220
220
|
|
|
221
|
-
Check the render method of \``+
|
|
221
|
+
Check the render method of \``+n+"`."),l||o&&(l=`
|
|
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 As=K0(!0),sC=K0(!1),uC=0,iC=1,dC=2,Ey=3,Ir=!1,cC=!1,Oy=null,qy=!1,Yu=ge(null),Ap=ge(0),Bo=ge(null),Ko=null,Qu=1,_d=2,ha=ge(0),Dp=0,Jo=1,uo=2,No=4,io=8,Zu,fC=new Set,pC=new Set,By=new Set,mC=new Set,Nn=0,Fe=null,Ut=null,xa=null,Ep=!1,Wu=!1,Ds=!1,Op=0,Hd=0,Un=null,LM=0,CM=25,H=null,el=null,Pn=-1,Fd=!1,Gd={readContext:Qt,use:ir,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};Gd.useEffectEvent=da;var Ny=null,hC=null,Uy=null,gC=null,an=null,hl=null,qp=null;Ny={readContext:function(e){return Qt(e)},use:ir,useCallback:function(e,t){return H="useCallback",nt(),pu(t),qh(e,t)},useContext:function(e){return H="useContext",nt(),Qt(e)},useEffect:function(e,t){return H="useEffect",nt(),pu(t),If(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",nt(),pu(a),Oh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",nt(),pu(t),hs(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",nt(),pu(t),Eh(e,t)},useMemo:function(e,t){H="useMemo",nt(),pu(t);var a=G.H;G.H=an;try{return Bh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",nt();var o=G.H;G.H=an;try{return Ch(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",nt(),Ah(e)},useState:function(e){H="useState",nt();var t=G.H;G.H=an;try{return Ih(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",nt()},useDeferredValue:function(e,t){return H="useDeferredValue",nt(),Nh(e,t)},useTransition:function(){return H="useTransition",nt(),zh()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",nt(),wh(e,t,a)},useId:function(){return H="useId",nt(),_h()},useFormState:function(e,t){return H="useFormState",nt(),Lf(),hu(e,t)},useActionState:function(e,t){return H="useActionState",nt(),hu(e,t)},useOptimistic:function(e){return H="useOptimistic",nt(),Rh(e)},useHostTransitionStatus:gs,useMemoCache:ms,useCacheRefresh:function(){return H="useCacheRefresh",nt(),Hh()},useEffectEvent:function(e){return H="useEffectEvent",nt(),Dh(e)}},hC={readContext:function(e){return Qt(e)},use:ir,useCallback:function(e,t){return H="useCallback",le(),qh(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){return H="useEffect",le(),If(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Oh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",le(),hs(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),Eh(e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=an;try{return Bh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=an;try{return Ch(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",le(),Ah(e)},useState:function(e){H="useState",le();var t=G.H;G.H=an;try{return Ih(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),Nh(e,t)},useTransition:function(){return H="useTransition",le(),zh()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),wh(e,t,a)},useId:function(){return H="useId",le(),_h()},useActionState:function(e,t){return H="useActionState",le(),hu(e,t)},useFormState:function(e,t){return H="useFormState",le(),Lf(),hu(e,t)},useOptimistic:function(e){return H="useOptimistic",le(),Rh(e)},useHostTransitionStatus:gs,useMemoCache:ms,useCacheRefresh:function(){return H="useCacheRefresh",le(),Hh()},useEffectEvent:function(e){return H="useEffectEvent",le(),Dh(e)}},Uy={readContext:function(e){return Qt(e)},use:ir,useCallback:function(e,t){return H="useCallback",le(),Af(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){H="useEffect",le(),mo(2048,io,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Mf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",le(),mo(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),mo(4,No,e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=hl;try{return Df(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=hl;try{return mu(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=hl;try{return mu(il)}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(),kf(e,t,a)},useId:function(){return H="useId",le(),At().memoizedState},useFormState:function(e){return H="useFormState",le(),Lf(),wf(e)},useActionState:function(e){return H="useActionState",le(),wf(e)},useOptimistic:function(e,t){return H="useOptimistic",le(),dv(e,t)},useHostTransitionStatus:gs,useMemoCache:ms,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",le(),Rf(e)}},gC={readContext:function(e){return Qt(e)},use:ir,useCallback:function(e,t){return H="useCallback",le(),Af(e,t)},useContext:function(e){return H="useContext",le(),Qt(e)},useEffect:function(e,t){H="useEffect",le(),mo(2048,io,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",le(),Mf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",le(),mo(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",le(),mo(4,No,e,t)},useMemo:function(e,t){H="useMemo",le();var a=G.H;G.H=qp;try{return Df(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",le();var o=G.H;G.H=qp;try{return Yi(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=qp;try{return Yi(il)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",le()},useDeferredValue:function(e,t){return H="useDeferredValue",le(),xv(e,t)},useTransition:function(){return H="useTransition",le(),Iv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",le(),kf(e,t,a)},useId:function(){return H="useId",le(),At().memoizedState},useFormState:function(e){return H="useFormState",le(),Lf(),Tf(e)},useActionState:function(e){return H="useActionState",le(),Tf(e)},useOptimistic:function(e,t){return H="useOptimistic",le(),fv(e,t)},useHostTransitionStatus:gs,useMemoCache:ms,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",le(),Rf(e)}},an={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ir(e)},useCallback:function(e,t){return H="useCallback",b(),nt(),qh(e,t)},useContext:function(e){return H="useContext",b(),nt(),Qt(e)},useEffect:function(e,t){return H="useEffect",b(),nt(),If(e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),nt(),Oh(e,t,a)},useInsertionEffect:function(e,t){H="useInsertionEffect",b(),nt(),hs(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),nt(),Eh(e,t)},useMemo:function(e,t){H="useMemo",b(),nt();var a=G.H;G.H=an;try{return Bh(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),nt();var o=G.H;G.H=an;try{return Ch(e,t,a)}finally{G.H=o}},useRef:function(e){return H="useRef",b(),nt(),Ah(e)},useState:function(e){H="useState",b(),nt();var t=G.H;G.H=an;try{return Ih(e)}finally{G.H=t}},useDebugValue:function(){H="useDebugValue",b(),nt()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),nt(),Nh(e,t)},useTransition:function(){return H="useTransition",b(),nt(),zh()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),nt(),wh(e,t,a)},useId:function(){return H="useId",b(),nt(),_h()},useFormState:function(e,t){return H="useFormState",b(),nt(),hu(e,t)},useActionState:function(e,t){return H="useActionState",b(),nt(),hu(e,t)},useOptimistic:function(e){return H="useOptimistic",b(),nt(),Rh(e)},useMemoCache:function(e){return b(),ms(e)},useHostTransitionStatus:gs,useCacheRefresh:function(){return H="useCacheRefresh",nt(),Hh()},useEffectEvent:function(e){return H="useEffectEvent",b(),nt(),Dh(e)}},hl={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ir(e)},useCallback:function(e,t){return H="useCallback",b(),le(),Af(e,t)},useContext:function(e){return H="useContext",b(),le(),Qt(e)},useEffect:function(e,t){H="useEffect",b(),le(),mo(2048,io,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),le(),Mf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),le(),mo(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),le(),mo(4,No,e,t)},useMemo:function(e,t){H="useMemo",b(),le();var a=G.H;G.H=hl;try{return Df(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),le();var o=G.H;G.H=hl;try{return mu(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=hl;try{return mu(il)}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(),kf(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(),ms(e)},useHostTransitionStatus:gs,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),le(),Rf(e)}},qp={readContext:function(e){return S(),Qt(e)},use:function(e){return b(),ir(e)},useCallback:function(e,t){return H="useCallback",b(),le(),Af(e,t)},useContext:function(e){return H="useContext",b(),le(),Qt(e)},useEffect:function(e,t){H="useEffect",b(),le(),mo(2048,io,e,t)},useImperativeHandle:function(e,t,a){return H="useImperativeHandle",b(),le(),Mf(e,t,a)},useInsertionEffect:function(e,t){return H="useInsertionEffect",b(),le(),mo(4,uo,e,t)},useLayoutEffect:function(e,t){return H="useLayoutEffect",b(),le(),mo(4,No,e,t)},useMemo:function(e,t){H="useMemo",b(),le();var a=G.H;G.H=hl;try{return Df(e,t)}finally{G.H=a}},useReducer:function(e,t,a){H="useReducer",b(),le();var o=G.H;G.H=hl;try{return Yi(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=hl;try{return Yi(il)}finally{G.H=e}},useDebugValue:function(){H="useDebugValue",b(),le()},useDeferredValue:function(e,t){return H="useDeferredValue",b(),le(),xv(e,t)},useTransition:function(){return H="useTransition",b(),le(),Iv()},useSyncExternalStore:function(e,t,a){return H="useSyncExternalStore",b(),le(),kf(e,t,a)},useId:function(){return H="useId",b(),le(),At().memoizedState},useFormState:function(e){return H="useFormState",b(),le(),Tf(e)},useActionState:function(e){return H="useActionState",b(),le(),Tf(e)},useOptimistic:function(e,t){return H="useOptimistic",b(),le(),fv(e,t)},useMemoCache:function(e){return b(),ms(e)},useHostTransitionStatus:gs,useCacheRefresh:function(){return H="useCacheRefresh",le(),At().memoizedState},useEffectEvent:function(e){return H="useEffectEvent",b(),le(),Rf(e)}};var yC={},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,IC=new Set;Object.freeze(yC);var Py={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Mo(e),l=nr(o);l.payload=t,a!==void 0&&a!==null&&(Gh(a),l.callback=a),t=rr(e,l,o),t!==null&&(Ol(o,"this.setState()",e),oa(t,e,o),Vi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Mo(e),l=nr(o);l.tag=iC,l.payload=t,a!==void 0&&a!==null&&(Gh(a),l.callback=a),t=rr(e,l,o),t!==null&&(Ol(o,"this.replaceState()",e),oa(t,e,o),Vi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Mo(e),o=nr(a);o.tag=dC,t!==void 0&&t!==null&&(Gh(t),o.callback=t),t=rr(e,o,a),t!==null&&(Ol(a,"this.forceUpdate()",e),oa(t,e,a),Vi(t,e,a))}},Ku=null,zy=null,_y=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,RC={},MC={},AC={},DC={},Ju=!1,EC={},Bp={},Hy={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},OC=!1,qC=null;qC=new Set;var zn=!1,Ca=!1,Fy=!1,BC=typeof WeakSet==="function"?WeakSet:Set,Ua=null,ei=null,ti=null,ka=null,yo=!1,gl=null,Ma=!1,Vd=8192,kM={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 Eo}};if(typeof Symbol==="function"&&Symbol.for){var $d=Symbol.for;$d("selector.component"),$d("selector.has_pseudo_class"),$d("selector.role"),$d("selector.test_id"),$d("selector.text")}var wM=[],TM=typeof WeakMap==="function"?WeakMap:Map,Pa=0,Aa=2,Uo=4,_n=0,Xd=1,Es=2,Np=3,Rr=4,Up=6,NC=5,ht=Pa,Pt=null,lt=null,ot=0,bo=0,Pp=1,Os=2,jd=3,UC=4,Gy=5,Yd=6,zp=7,Vy=8,qs=9,Dt=bo,Po=null,Mr=!1,ai=!1,$y=!1,on=0,ea=_n,Ar=0,Dr=0,Xy=0,vo=0,Bs=0,Qd=null,co=null,_p=!1,Hp=0,PC=0,zC=300,Fp=1/0,_C=500,Zd=null,ca=null,Er=null,Gp=0,jy=1,Yy=2,HC=3,Or=0,FC=1,GC=2,VC=3,$C=4,Vp=5,wa=0,qr=null,oi=null,yl=0,Qy=0,Zy=-0,Wy=null,XC=null,jC=null,bl=Gp,YC=null,IM=50,Wd=0,Ky=null,Jy=!1,$p=!1,RM=50,Ns=0,Kd=null,li=!1,Xp=null,QC=!1,ZC=new Set,MM={},jp=null,ni=null,eb=!1,tb=!1,Yp=!1,ab=!1,Br=0,ob={};(function(){for(var e=0;e<my.length;e++){var t=my[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),ul(a,"on"+t)}ul(TL,"onAnimationEnd"),ul(IL,"onAnimationIteration"),ul(RL,"onAnimationStart"),ul("dblclick","onDoubleClick"),ul("focusin","onFocus"),ul("focusout","onBlur"),ul(nM,"onTransitionRun"),ul(rM,"onTransitionStart"),ul(sM,"onTransitionCancel"),ul(ML,"onTransitionEnd")})(),Lo("onMouseEnter",["mouseout","mouseover"]),Lo("onMouseLeave",["mouseout","mouseover"]),Lo("onPointerEnter",["pointerout","pointerover"]),Lo("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 Jd="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(" "),lb=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jd)),Qp="_reactListening"+Math.random().toString(36).slice(2),WC=!1,KC=!1,Zp=!1,JC=!1,Wp=!1,Kp=!1,e1=!1,Jp={},AM=/\r\n?/g,DM=/\u0000|\uFFFD/g,Us="http://www.w3.org/1999/xlink",nb="http://www.w3.org/XML/1998/namespace",EM="javascript:throw new Error('React form unexpectedly submitted.')",OM="suppressHydrationWarning",Ps="&",em="/&",ec="$",tc="/$",Nr="$?",zs="$~",ri="$!",qM="html",BM="body",NM="head",rb="F!",t1="F",a1="loading",UM="style",Hn=0,si=1,tm=2,sb=null,ub=null,o1={dialog:!0,webview:!0},ib=null,ac=void 0,l1=typeof setTimeout==="function"?setTimeout:void 0,PM=typeof clearTimeout==="function"?clearTimeout:void 0,_s=-1,n1=typeof Promise==="function"?Promise:void 0,zM=typeof queueMicrotask==="function"?queueMicrotask:typeof n1<"u"?function(e){return n1.resolve(null).then(e).catch(CI)}:l1,db=null,Hs=0,oc=1,r1=2,s1=3,tl=4,al=new Map,u1=new Set,Fn=kt.d;kt.d={f:function(){var e=Fn.f(),t=Su();return e||t},r:function(e){var t=$e(e);t!==null&&t.tag===5&&t.type==="form"?wv(t):Fn.r(e)},D:function(e){Fn.D(e),bx("dns-prefetch",e,null)},C:function(e,t){Fn.C(e,t),bx("preconnect",e,t)},L:function(e,t,a){Fn.L(e,t,a);var o=ui;if(o&&e&&t){var l='link[rel="preload"][as="'+Go(t)+'"]';t==="image"?a&&a.imageSrcSet?(l+='[imagesrcset="'+Go(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(l+='[imagesizes="'+Go(a.imageSizes)+'"]')):l+='[href="'+Go(e)+'"]':l+='[href="'+Go(e)+'"]';var n=l;switch(t){case"style":n=Cu(e);break;case"script":n=ku(e)}al.has(n)||(e=rt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),al.set(n,e),o.querySelector(l)!==null||t==="style"&&o.querySelector(id(n))||t==="script"&&o.querySelector(dd(n))||(t=o.createElement("link"),$a(t,"link",e),Ee(t),o.head.appendChild(t)))}},m:function(e,t){Fn.m(e,t);var a=ui;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",l='link[rel="modulepreload"][as="'+Go(o)+'"][href="'+Go(e)+'"]',n=l;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":n=ku(e)}if(!al.has(n)&&(e=rt({rel:"modulepreload",href:e},t),al.set(n,e),a.querySelector(l)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(dd(n)))return}o=a.createElement("link"),$a(o,"link",e),Ee(o),a.head.appendChild(o)}}},X:function(e,t){Fn.X(e,t);var a=ui;if(a&&e){var o=yt(a).hoistableScripts,l=ku(e),n=o.get(l);n||(n=a.querySelector(dd(l)),n||(e=rt({src:e,async:!0},t),(t=al.get(l))&&Og(e,t),n=a.createElement("script"),Ee(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){Fn.S(e,t,a);var o=ui;if(o&&e){var l=yt(o).hoistableStyles,n=Cu(e);t=t||"default";var s=l.get(n);if(!s){var d={loading:Hs,preload:null};if(s=o.querySelector(id(n)))d.loading=oc|tl;else{e=rt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=al.get(n))&&Eg(e,a);var m=s=o.createElement("link");Ee(m),$a(m,"link",e),m._p=new Promise(function(g,A){m.onload=g,m.onerror=A}),m.addEventListener("load",function(){d.loading|=oc}),m.addEventListener("error",function(){d.loading|=r1}),d.loading|=tl,Zf(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:d},l.set(n,s)}}},M:function(e,t){Fn.M(e,t);var a=ui;if(a&&e){var o=yt(a).hoistableScripts,l=ku(e),n=o.get(l);n||(n=a.querySelector(dd(l)),n||(e=rt({src:e,async:!0,type:"module"},t),(t=al.get(l))&&Og(e,t),n=a.createElement("script"),Ee(n),$a(n,"link",e),a.head.appendChild(n)),n={type:"script",instance:n,count:1,state:null},o.set(l,n))}}};var ui=typeof document>"u"?null:document,am=null,_M=60000,HM=800,FM=500,cb=0,fb=null,om=null,Fs=oR,lc={$$typeof:jl,Provider:null,Consumer:null,_currentValue:Fs,_currentValue2:Fs,_threadCount:0},i1="%c%s%c",d1="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",c1="",lm=" ",GM=Function.prototype.bind,f1=!1,p1=null,m1=null,h1=null,g1=null,y1=null,b1=null,v1=null,S1=null,x1=null,L1=null;p1=function(e,t,a,o){t=r(e,t),t!==null&&(a=u(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))},m1=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))},h1=function(e,t,a,o){t=r(e,t),t!==null&&(a=i(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))},g1=function(e,t,a){e.pendingProps=u(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},y1=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)},b1=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&oa(t,e,2)},v1=function(e){var t=Wa(e,2);t!==null&&oa(t,e,2)},S1=function(e){var t=ru(),a=Wa(e,t);a!==null&&oa(a,e,t)},x1=function(e){p=e},L1=function(e){v=e};var nm=!0,rm=null,pb=!1,Ur=null,Pr=null,zr=null,nc=new Map,rc=new Map,_r=[],VM="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(" "),sm=null;if(tp.prototype.render=zg.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=Mo(o);qg(o,l,a,t,null,null)},tp.prototype.unmount=zg.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|Uo))!==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."),qg(e.current,2,null,e,null,null),Su(),t[gr]=null}},tp.prototype.unstable_scheduleHydration=function(e){if(e){var t=O();e={blockedOn:null,target:e,priority:t};for(var a=0;a<_r.length&&t!==0&&t<_r[a].priority;a++);_r.splice(a,0,e),a===0&&Ex(e)}},function(){var e=di.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=_(a):typeof a.name==="string"&&(o=a.name),o&&(s=" It was passed a child from "+o+".")),F(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.',l,s)})}}};var As=lv(!0),mC=lv(!1),hC=0,gC=1,yC=2,Ny=3,Tr=!1,bC=!1,Uy=null,zy=!1,Yu=ce(null),Ep=ce(0),Bo=ce(null),Ko=null,Qu=1,_c=2,ga=ce(0),Op=0,Jo=1,uo=2,No=4,io=8,Zu,vC=new Set,SC=new Set,Py=new Set,xC=new Set,Nl=0,Ve=null,Gt=null,Ca=null,qp=!1,Wu=!1,Ds=!1,Bp=0,Hc=0,Ul=null,UM=0,zM=25,P=null,en=null,zl=-1,Fc=!1,Gc={readContext:ea,use:ur,useCallback:pa,useContext:pa,useEffect:pa,useImperativeHandle:pa,useLayoutEffect:pa,useInsertionEffect:pa,useMemo:pa,useReducer:pa,useRef:pa,useState:pa,useDebugValue:pa,useDeferredValue:pa,useTransition:pa,useSyncExternalStore:pa,useId:pa,useHostTransitionStatus:pa,useFormState:pa,useActionState:pa,useOptimistic:pa,useMemoCache:pa,useCacheRefresh:pa};Gc.useEffectEvent=pa;var _y=null,LC=null,Hy=null,CC=null,ol=null,gn=null,Np=null;_y={readContext:function(e){return ea(e)},use:ur,useCallback:function(e,t){return P="useCallback",ft(),pu(t),zh(e,t)},useContext:function(e){return P="useContext",ft(),ea(e)},useEffect:function(e,t){return P="useEffect",ft(),pu(t),Mf(e,t)},useImperativeHandle:function(e,t,a){return P="useImperativeHandle",ft(),pu(a),Uh(e,t,a)},useInsertionEffect:function(e,t){P="useInsertionEffect",ft(),pu(t),hs(4,uo,e,t)},useLayoutEffect:function(e,t){return P="useLayoutEffect",ft(),pu(t),Nh(e,t)},useMemo:function(e,t){P="useMemo",ft(),pu(t);var a=H.H;H.H=ol;try{return Ph(e,t)}finally{H.H=a}},useReducer:function(e,t,a){P="useReducer",ft();var o=H.H;H.H=ol;try{return Ih(e,t,a)}finally{H.H=o}},useRef:function(e){return P="useRef",ft(),qh(e)},useState:function(e){P="useState",ft();var t=H.H;H.H=ol;try{return Dh(e)}finally{H.H=t}},useDebugValue:function(){P="useDebugValue",ft()},useDeferredValue:function(e,t){return P="useDeferredValue",ft(),_h(e,t)},useTransition:function(){return P="useTransition",ft(),Gh()},useSyncExternalStore:function(e,t,a){return P="useSyncExternalStore",ft(),Mh(e,t,a)},useId:function(){return P="useId",ft(),Vh()},useFormState:function(e,t){return P="useFormState",ft(),kf(),hu(e,t)},useActionState:function(e,t){return P="useActionState",ft(),hu(e,t)},useOptimistic:function(e){return P="useOptimistic",ft(),Eh(e)},useHostTransitionStatus:gs,useMemoCache:ms,useCacheRefresh:function(){return P="useCacheRefresh",ft(),$h()},useEffectEvent:function(e){return P="useEffectEvent",ft(),Bh(e)}},LC={readContext:function(e){return ea(e)},use:ur,useCallback:function(e,t){return P="useCallback",ne(),zh(e,t)},useContext:function(e){return P="useContext",ne(),ea(e)},useEffect:function(e,t){return P="useEffect",ne(),Mf(e,t)},useImperativeHandle:function(e,t,a){return P="useImperativeHandle",ne(),Uh(e,t,a)},useInsertionEffect:function(e,t){P="useInsertionEffect",ne(),hs(4,uo,e,t)},useLayoutEffect:function(e,t){return P="useLayoutEffect",ne(),Nh(e,t)},useMemo:function(e,t){P="useMemo",ne();var a=H.H;H.H=ol;try{return Ph(e,t)}finally{H.H=a}},useReducer:function(e,t,a){P="useReducer",ne();var o=H.H;H.H=ol;try{return Ih(e,t,a)}finally{H.H=o}},useRef:function(e){return P="useRef",ne(),qh(e)},useState:function(e){P="useState",ne();var t=H.H;H.H=ol;try{return Dh(e)}finally{H.H=t}},useDebugValue:function(){P="useDebugValue",ne()},useDeferredValue:function(e,t){return P="useDeferredValue",ne(),_h(e,t)},useTransition:function(){return P="useTransition",ne(),Gh()},useSyncExternalStore:function(e,t,a){return P="useSyncExternalStore",ne(),Mh(e,t,a)},useId:function(){return P="useId",ne(),Vh()},useActionState:function(e,t){return P="useActionState",ne(),hu(e,t)},useFormState:function(e,t){return P="useFormState",ne(),kf(),hu(e,t)},useOptimistic:function(e){return P="useOptimistic",ne(),Eh(e)},useHostTransitionStatus:gs,useMemoCache:ms,useCacheRefresh:function(){return P="useCacheRefresh",ne(),$h()},useEffectEvent:function(e){return P="useEffectEvent",ne(),Bh(e)}},Hy={readContext:function(e){return ea(e)},use:ur,useCallback:function(e,t){return P="useCallback",ne(),Ef(e,t)},useContext:function(e){return P="useContext",ne(),ea(e)},useEffect:function(e,t){P="useEffect",ne(),mo(2048,io,e,t)},useImperativeHandle:function(e,t,a){return P="useImperativeHandle",ne(),Df(e,t,a)},useInsertionEffect:function(e,t){return P="useInsertionEffect",ne(),mo(4,uo,e,t)},useLayoutEffect:function(e,t){return P="useLayoutEffect",ne(),mo(4,No,e,t)},useMemo:function(e,t){P="useMemo",ne();var a=H.H;H.H=gn;try{return Of(e,t)}finally{H.H=a}},useReducer:function(e,t,a){P="useReducer",ne();var o=H.H;H.H=gn;try{return mu(e,t,a)}finally{H.H=o}},useRef:function(){return P="useRef",ne(),zt().memoizedState},useState:function(){P="useState",ne();var e=H.H;H.H=gn;try{return mu(cn)}finally{H.H=e}},useDebugValue:function(){P="useDebugValue",ne()},useDeferredValue:function(e,t){return P="useDeferredValue",ne(),Iv(e,t)},useTransition:function(){return P="useTransition",ne(),Ov()},useSyncExternalStore:function(e,t,a){return P="useSyncExternalStore",ne(),Tf(e,t,a)},useId:function(){return P="useId",ne(),zt().memoizedState},useFormState:function(e){return P="useFormState",ne(),kf(),If(e)},useActionState:function(e){return P="useActionState",ne(),If(e)},useOptimistic:function(e,t){return P="useOptimistic",ne(),yv(e,t)},useHostTransitionStatus:gs,useMemoCache:ms,useCacheRefresh:function(){return P="useCacheRefresh",ne(),zt().memoizedState},useEffectEvent:function(e){return P="useEffectEvent",ne(),Af(e)}},CC={readContext:function(e){return ea(e)},use:ur,useCallback:function(e,t){return P="useCallback",ne(),Ef(e,t)},useContext:function(e){return P="useContext",ne(),ea(e)},useEffect:function(e,t){P="useEffect",ne(),mo(2048,io,e,t)},useImperativeHandle:function(e,t,a){return P="useImperativeHandle",ne(),Df(e,t,a)},useInsertionEffect:function(e,t){return P="useInsertionEffect",ne(),mo(4,uo,e,t)},useLayoutEffect:function(e,t){return P="useLayoutEffect",ne(),mo(4,No,e,t)},useMemo:function(e,t){P="useMemo",ne();var a=H.H;H.H=Np;try{return Of(e,t)}finally{H.H=a}},useReducer:function(e,t,a){P="useReducer",ne();var o=H.H;H.H=Np;try{return Yi(e,t,a)}finally{H.H=o}},useRef:function(){return P="useRef",ne(),zt().memoizedState},useState:function(){P="useState",ne();var e=H.H;H.H=Np;try{return Yi(cn)}finally{H.H=e}},useDebugValue:function(){P="useDebugValue",ne()},useDeferredValue:function(e,t){return P="useDeferredValue",ne(),Rv(e,t)},useTransition:function(){return P="useTransition",ne(),qv()},useSyncExternalStore:function(e,t,a){return P="useSyncExternalStore",ne(),Tf(e,t,a)},useId:function(){return P="useId",ne(),zt().memoizedState},useFormState:function(e){return P="useFormState",ne(),kf(),Rf(e)},useActionState:function(e){return P="useActionState",ne(),Rf(e)},useOptimistic:function(e,t){return P="useOptimistic",ne(),vv(e,t)},useHostTransitionStatus:gs,useMemoCache:ms,useCacheRefresh:function(){return P="useCacheRefresh",ne(),zt().memoizedState},useEffectEvent:function(e){return P="useEffectEvent",ne(),Af(e)}},ol={readContext:function(e){return S(),ea(e)},use:function(e){return v(),ur(e)},useCallback:function(e,t){return P="useCallback",v(),ft(),zh(e,t)},useContext:function(e){return P="useContext",v(),ft(),ea(e)},useEffect:function(e,t){return P="useEffect",v(),ft(),Mf(e,t)},useImperativeHandle:function(e,t,a){return P="useImperativeHandle",v(),ft(),Uh(e,t,a)},useInsertionEffect:function(e,t){P="useInsertionEffect",v(),ft(),hs(4,uo,e,t)},useLayoutEffect:function(e,t){return P="useLayoutEffect",v(),ft(),Nh(e,t)},useMemo:function(e,t){P="useMemo",v(),ft();var a=H.H;H.H=ol;try{return Ph(e,t)}finally{H.H=a}},useReducer:function(e,t,a){P="useReducer",v(),ft();var o=H.H;H.H=ol;try{return Ih(e,t,a)}finally{H.H=o}},useRef:function(e){return P="useRef",v(),ft(),qh(e)},useState:function(e){P="useState",v(),ft();var t=H.H;H.H=ol;try{return Dh(e)}finally{H.H=t}},useDebugValue:function(){P="useDebugValue",v(),ft()},useDeferredValue:function(e,t){return P="useDeferredValue",v(),ft(),_h(e,t)},useTransition:function(){return P="useTransition",v(),ft(),Gh()},useSyncExternalStore:function(e,t,a){return P="useSyncExternalStore",v(),ft(),Mh(e,t,a)},useId:function(){return P="useId",v(),ft(),Vh()},useFormState:function(e,t){return P="useFormState",v(),ft(),hu(e,t)},useActionState:function(e,t){return P="useActionState",v(),ft(),hu(e,t)},useOptimistic:function(e){return P="useOptimistic",v(),ft(),Eh(e)},useMemoCache:function(e){return v(),ms(e)},useHostTransitionStatus:gs,useCacheRefresh:function(){return P="useCacheRefresh",ft(),$h()},useEffectEvent:function(e){return P="useEffectEvent",v(),ft(),Bh(e)}},gn={readContext:function(e){return S(),ea(e)},use:function(e){return v(),ur(e)},useCallback:function(e,t){return P="useCallback",v(),ne(),Ef(e,t)},useContext:function(e){return P="useContext",v(),ne(),ea(e)},useEffect:function(e,t){P="useEffect",v(),ne(),mo(2048,io,e,t)},useImperativeHandle:function(e,t,a){return P="useImperativeHandle",v(),ne(),Df(e,t,a)},useInsertionEffect:function(e,t){return P="useInsertionEffect",v(),ne(),mo(4,uo,e,t)},useLayoutEffect:function(e,t){return P="useLayoutEffect",v(),ne(),mo(4,No,e,t)},useMemo:function(e,t){P="useMemo",v(),ne();var a=H.H;H.H=gn;try{return Of(e,t)}finally{H.H=a}},useReducer:function(e,t,a){P="useReducer",v(),ne();var o=H.H;H.H=gn;try{return mu(e,t,a)}finally{H.H=o}},useRef:function(){return P="useRef",v(),ne(),zt().memoizedState},useState:function(){P="useState",v(),ne();var e=H.H;H.H=gn;try{return mu(cn)}finally{H.H=e}},useDebugValue:function(){P="useDebugValue",v(),ne()},useDeferredValue:function(e,t){return P="useDeferredValue",v(),ne(),Iv(e,t)},useTransition:function(){return P="useTransition",v(),ne(),Ov()},useSyncExternalStore:function(e,t,a){return P="useSyncExternalStore",v(),ne(),Tf(e,t,a)},useId:function(){return P="useId",v(),ne(),zt().memoizedState},useFormState:function(e){return P="useFormState",v(),ne(),If(e)},useActionState:function(e){return P="useActionState",v(),ne(),If(e)},useOptimistic:function(e,t){return P="useOptimistic",v(),ne(),yv(e,t)},useMemoCache:function(e){return v(),ms(e)},useHostTransitionStatus:gs,useCacheRefresh:function(){return P="useCacheRefresh",ne(),zt().memoizedState},useEffectEvent:function(e){return P="useEffectEvent",v(),ne(),Af(e)}},Np={readContext:function(e){return S(),ea(e)},use:function(e){return v(),ur(e)},useCallback:function(e,t){return P="useCallback",v(),ne(),Ef(e,t)},useContext:function(e){return P="useContext",v(),ne(),ea(e)},useEffect:function(e,t){P="useEffect",v(),ne(),mo(2048,io,e,t)},useImperativeHandle:function(e,t,a){return P="useImperativeHandle",v(),ne(),Df(e,t,a)},useInsertionEffect:function(e,t){return P="useInsertionEffect",v(),ne(),mo(4,uo,e,t)},useLayoutEffect:function(e,t){return P="useLayoutEffect",v(),ne(),mo(4,No,e,t)},useMemo:function(e,t){P="useMemo",v(),ne();var a=H.H;H.H=gn;try{return Of(e,t)}finally{H.H=a}},useReducer:function(e,t,a){P="useReducer",v(),ne();var o=H.H;H.H=gn;try{return Yi(e,t,a)}finally{H.H=o}},useRef:function(){return P="useRef",v(),ne(),zt().memoizedState},useState:function(){P="useState",v(),ne();var e=H.H;H.H=gn;try{return Yi(cn)}finally{H.H=e}},useDebugValue:function(){P="useDebugValue",v(),ne()},useDeferredValue:function(e,t){return P="useDeferredValue",v(),ne(),Rv(e,t)},useTransition:function(){return P="useTransition",v(),ne(),qv()},useSyncExternalStore:function(e,t,a){return P="useSyncExternalStore",v(),ne(),Tf(e,t,a)},useId:function(){return P="useId",v(),ne(),zt().memoizedState},useFormState:function(e){return P="useFormState",v(),ne(),Rf(e)},useActionState:function(e){return P="useActionState",v(),ne(),Rf(e)},useOptimistic:function(e,t){return P="useOptimistic",v(),ne(),vv(e,t)},useMemoCache:function(e){return v(),ms(e)},useHostTransitionStatus:gs,useCacheRefresh:function(){return P="useCacheRefresh",ne(),zt().memoizedState},useEffectEvent:function(e){return P="useEffectEvent",v(),ne(),Af(e)}};var kC={},wC=new Set,TC=new Set,IC=new Set,RC=new Set,MC=new Set,AC=new Set,DC=new Set,EC=new Set,OC=new Set,qC=new Set;Object.freeze(kC);var Fy={enqueueSetState:function(e,t,a){e=e._reactInternals;var o=Mo(e),n=nr(o);n.payload=t,a!==void 0&&a!==null&&(Xh(a),n.callback=a),t=lr(e,n,o),t!==null&&(qn(o,"this.setState()",e),ra(t,e,o),Vi(t,e,o))},enqueueReplaceState:function(e,t,a){e=e._reactInternals;var o=Mo(e),n=nr(o);n.tag=gC,n.payload=t,a!==void 0&&a!==null&&(Xh(a),n.callback=a),t=lr(e,n,o),t!==null&&(qn(o,"this.replaceState()",e),ra(t,e,o),Vi(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var a=Mo(e),o=nr(a);o.tag=yC,t!==void 0&&t!==null&&(Xh(t),o.callback=t),t=lr(e,o,a),t!==null&&(qn(a,"this.forceUpdate()",e),ra(t,e,a),Vi(t,e,a))}},Ku=null,Gy=null,Vy=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."),ka=!1,BC={},NC={},UC={},zC={},Ju=!1,PC={},Up={},$y={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},_C=!1,HC=null;HC=new Set;var Pl=!1,wa=!1,jy=!1,FC=typeof WeakSet==="function"?WeakSet:Set,Ua=null,ei=null,ti=null,Ta=null,yo=!1,yn=null,Aa=!1,Vc=8192,PM={getCacheForType:function(e){var t=ea(xa),a=t.data.get(e);return a===void 0&&(a=e(),t.data.set(e,a)),a},cacheSignal:function(){return ea(xa).controller.signal},getOwner:function(){return Eo}};if(typeof Symbol==="function"&&Symbol.for){var $c=Symbol.for;$c("selector.component"),$c("selector.has_pseudo_class"),$c("selector.role"),$c("selector.test_id"),$c("selector.text")}var _M=[],HM=typeof WeakMap==="function"?WeakMap:Map,za=0,Da=2,Uo=4,_l=0,jc=1,Es=2,zp=3,Ir=4,Pp=6,GC=5,kt=za,Vt=null,st=null,rt=0,bo=0,_p=1,Os=2,Xc=3,VC=4,Xy=5,Yc=6,Hp=7,Yy=8,qs=9,Pt=bo,zo=null,Rr=!1,ai=!1,Qy=!1,nl=0,oa=_l,Mr=0,Ar=0,Zy=0,vo=0,Bs=0,Qc=null,co=null,Fp=!1,Gp=0,$C=0,jC=300,Vp=1/0,XC=500,Zc=null,ma=null,Dr=null,$p=0,Wy=1,Ky=2,YC=3,Er=0,QC=1,ZC=2,WC=3,KC=4,jp=5,Ia=0,Or=null,oi=null,bn=0,Jy=0,eb=-0,tb=null,JC=null,e1=null,vn=$p,t1=null,FM=50,Wc=0,ab=null,ob=!1,Xp=!1,GM=50,Ns=0,Kc=null,ni=!1,Yp=null,a1=!1,o1=new Set,VM={},Qp=null,li=null,nb=!1,lb=!1,Zp=!1,rb=!1,qr=0,sb={};(function(){for(var e=0;e<by.length;e++){var t=by[e],a=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),un(a,"on"+t)}un(OL,"onAnimationEnd"),un(qL,"onAnimationIteration"),un(BL,"onAnimationStart"),un("dblclick","onDoubleClick"),un("focusin","onFocus"),un("focusout","onBlur"),un(SM,"onTransitionRun"),un(xM,"onTransitionStart"),un(LM,"onTransitionCancel"),un(NL,"onTransitionEnd")})(),Lo("onMouseEnter",["mouseout","mouseover"]),Lo("onMouseLeave",["mouseout","mouseover"]),Lo("onPointerEnter",["pointerout","pointerover"]),Lo("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 Jc="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(" "),ub=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Jc)),Wp="_reactListening"+Math.random().toString(36).slice(2),n1=!1,l1=!1,Kp=!1,r1=!1,Jp=!1,em=!1,s1=!1,tm={},$M=/\r\n?/g,jM=/\u0000|\uFFFD/g,Us="http://www.w3.org/1999/xlink",ib="http://www.w3.org/XML/1998/namespace",XM="javascript:throw new Error('React form unexpectedly submitted.')",YM="suppressHydrationWarning",zs="&",am="/&",ed="$",td="/$",Br="$?",Ps="$~",ri="$!",QM="html",ZM="body",WM="head",cb="F!",u1="F",i1="loading",KM="style",Hl=0,si=1,om=2,db=null,fb=null,c1={dialog:!0,webview:!0},pb=null,ad=void 0,d1=typeof setTimeout==="function"?setTimeout:void 0,JM=typeof clearTimeout==="function"?clearTimeout:void 0,_s=-1,f1=typeof Promise==="function"?Promise:void 0,eA=typeof queueMicrotask==="function"?queueMicrotask:typeof f1<"u"?function(e){return f1.resolve(null).then(e).catch(zI)}:d1,mb=null,Hs=0,od=1,p1=2,m1=3,tn=4,an=new Map,h1=new Set,Fl=qt.d;qt.d={f:function(){var e=Fl.f(),t=Su();return e||t},r:function(e){var t=Qe(e);t!==null&&t.tag===5&&t.type==="form"?Ev(t):Fl.r(e)},D:function(e){Fl.D(e),wx("dns-prefetch",e,null)},C:function(e,t){Fl.C(e,t),wx("preconnect",e,t)},L:function(e,t,a){Fl.L(e,t,a);var o=ui;if(o&&e&&t){var n='link[rel="preload"][as="'+Go(t)+'"]';t==="image"?a&&a.imageSrcSet?(n+='[imagesrcset="'+Go(a.imageSrcSet)+'"]',typeof a.imageSizes==="string"&&(n+='[imagesizes="'+Go(a.imageSizes)+'"]')):n+='[href="'+Go(e)+'"]':n+='[href="'+Go(e)+'"]';var l=n;switch(t){case"style":l=Cu(e);break;case"script":l=ku(e)}an.has(l)||(e=pt({rel:"preload",href:t==="image"&&a&&a.imageSrcSet?void 0:e,as:t},a),an.set(l,e),o.querySelector(n)!==null||t==="style"&&o.querySelector(ic(l))||t==="script"&&o.querySelector(cc(l))||(t=o.createElement("link"),$a(t,"link",e),Oe(t),o.head.appendChild(t)))}},m:function(e,t){Fl.m(e,t);var a=ui;if(a&&e){var o=t&&typeof t.as==="string"?t.as:"script",n='link[rel="modulepreload"][as="'+Go(o)+'"][href="'+Go(e)+'"]',l=n;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":l=ku(e)}if(!an.has(l)&&(e=pt({rel:"modulepreload",href:e},t),an.set(l,e),a.querySelector(n)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(a.querySelector(cc(l)))return}o=a.createElement("link"),$a(o,"link",e),Oe(o),a.head.appendChild(o)}}},X:function(e,t){Fl.X(e,t);var a=ui;if(a&&e){var o=wt(a).hoistableScripts,n=ku(e),l=o.get(n);l||(l=a.querySelector(cc(n)),l||(e=pt({src:e,async:!0},t),(t=an.get(n))&&Ug(e,t),l=a.createElement("script"),Oe(l),$a(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},o.set(n,l))}},S:function(e,t,a){Fl.S(e,t,a);var o=ui;if(o&&e){var n=wt(o).hoistableStyles,l=Cu(e);t=t||"default";var s=n.get(l);if(!s){var c={loading:Hs,preload:null};if(s=o.querySelector(ic(l)))c.loading=od|tn;else{e=pt({rel:"stylesheet",href:e,"data-precedence":t},a),(a=an.get(l))&&Ng(e,a);var p=s=o.createElement("link");Oe(p),$a(p,"link",e),p._p=new Promise(function(g,E){p.onload=g,p.onerror=E}),p.addEventListener("load",function(){c.loading|=od}),p.addEventListener("error",function(){c.loading|=p1}),c.loading|=tn,Kf(s,t,o)}s={type:"stylesheet",instance:s,count:1,state:c},n.set(l,s)}}},M:function(e,t){Fl.M(e,t);var a=ui;if(a&&e){var o=wt(a).hoistableScripts,n=ku(e),l=o.get(n);l||(l=a.querySelector(cc(n)),l||(e=pt({src:e,async:!0,type:"module"},t),(t=an.get(n))&&Ug(e,t),l=a.createElement("script"),Oe(l),$a(l,"link",e),a.head.appendChild(l)),l={type:"script",instance:l,count:1,state:null},o.set(n,l))}}};var ui=typeof document>"u"?null:document,nm=null,tA=60000,aA=800,oA=500,hb=0,gb=null,lm=null,Fs=bR,nd={$$typeof:Yn,Provider:null,Consumer:null,_currentValue:Fs,_currentValue2:Fs,_threadCount:0},g1="%c%s%c",y1="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",b1="",rm=" ",nA=Function.prototype.bind,v1=!1,S1=null,x1=null,L1=null,C1=null,k1=null,w1=null,T1=null,I1=null,R1=null,M1=null;S1=function(e,t,a,o){t=r(e,t),t!==null&&(a=u(t.memoizedState,a,0,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=pt({},e.memoizedProps),a=Wa(e,2),a!==null&&ra(a,e,2))},x1=function(e,t,a){t=r(e,t),t!==null&&(a=f(t.memoizedState,a,0),t.memoizedState=a,t.baseState=a,e.memoizedProps=pt({},e.memoizedProps),a=Wa(e,2),a!==null&&ra(a,e,2))},L1=function(e,t,a,o){t=r(e,t),t!==null&&(a=i(t.memoizedState,a,o),t.memoizedState=a,t.baseState=a,e.memoizedProps=pt({},e.memoizedProps),a=Wa(e,2),a!==null&&ra(a,e,2))},C1=function(e,t,a){e.pendingProps=u(e.memoizedProps,t,0,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&ra(t,e,2)},k1=function(e,t){e.pendingProps=f(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&ra(t,e,2)},w1=function(e,t,a){e.pendingProps=i(e.memoizedProps,t,a),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=Wa(e,2),t!==null&&ra(t,e,2)},T1=function(e){var t=Wa(e,2);t!==null&&ra(t,e,2)},I1=function(e){var t=ru(),a=Wa(e,t);a!==null&&ra(a,e,t)},R1=function(e){m=e},M1=function(e){b=e};var sm=!0,um=null,yb=!1,Nr=null,Ur=null,zr=null,ld=new Map,rd=new Map,Pr=[],lA="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(" "),im=null;if(op.prototype.render=Gg.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()."):M(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,n=Mo(o);zg(o,n,a,t,null,null)},op.prototype.unmount=Gg.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;(kt&(Da|Uo))!==za&&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."),zg(e.current,2,null,e,null,null),Su(),t[hr]=null}},op.prototype.unstable_scheduleHydration=function(e){if(e){var t=q();e={blockedOn:null,target:e,priority:t};for(var a=0;a<Pr.length&&t!==0&&t<Pr[a].priority;a++);Pr.splice(a,0,e),a===0&&Px(e)}},function(){var e=ci.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"),
|
|
227
|
-
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}
|
|
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"),qt.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=ie(t),e=e!==null?K(e):null,e=e===null?null:e.stateNode,e},!function(){var e={bundleType:1,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:H,reconcilerVersion:"19.2.7"};return e.overrideHookState=S1,e.overrideHookStateDeletePath=x1,e.overrideHookStateRenamePath=L1,e.overrideProps=C1,e.overridePropsDeletePath=k1,e.overridePropsRenamePath=w1,e.scheduleUpdate=T1,e.scheduleRetry=I1,e.setErrorHandler=R1,e.setSuspenseHandler=M1,e.scheduleRefresh=C,e.scheduleRoot=w,e.setRefreshHandler=A,e.getCurrentFiber=cR,sn(e)}()&&Jn&&window.top===window.self&&(-1<navigator.userAgent.indexOf("Chrome")&&navigator.userAgent.indexOf("Edge")===-1||-1<navigator.userAgent.indexOf("Firefox"))){var A1=window.location.protocol;/^(https?|file):$/.test(A1)&&console.info("%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools"+(A1==="file:"?`
|
|
227
|
+
You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:""),"font-weight:bold")}gA.createRoot=function(e,t){if(!M(e))throw Error("Target container is not a DOM element.");Gx(e);var a=!1,o="",n=_v,l=Hv,s=Fv;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===Xn&&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&&(
|
|
230
|
+
root.render(<App />);`),t.unstable_strictMode===!0&&(a=!0),t.identifierPrefix!==void 0&&(o=t.identifierPrefix),t.onUncaughtError!==void 0&&(n=t.onUncaughtError),t.onCaughtError!==void 0&&(l=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=Ex(e,1,!1,null,null,a,o,null,n,l,s,Fx),e[hr]=t.current,kg(e),new Gg(t)},gA.hydrateRoot=function(e,t,a){if(!M(e))throw Error("Target container is not a DOM element.");Gx(e),t===void 0&&console.error("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var o=!1,n="",l=_v,s=Hv,c=Fv,p=null;return a!==null&&a!==void 0&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(n=a.identifierPrefix),a.onUncaughtError!==void 0&&(l=a.onUncaughtError),a.onCaughtError!==void 0&&(s=a.onCaughtError),a.onRecoverableError!==void 0&&(c=a.onRecoverableError),a.formState!==void 0&&(p=a.formState)),t=Ex(e,1,!0,t,a!=null?a:null,o,n,p,l,s,c,Fx),t.context=Ox(null),a=t.current,o=Mo(a),o=ns(o),n=nr(o),n.callback=null,lr(a,n,o),qn(o,"hydrateRoot()",null),a=o,t.current.lanes=a,Wl(t,a),$n(t),e[hr]=t.current,kg(e),new op(t)},gA.version="19.2.7",typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()});var N1=Gs(function(yA,fm){fm.exports=Z(B1())});var se=Gs(function(EA){var Ys=Z(ht());(function(){function r(W){if(W==null)return null;if(typeof W==="function")return W.$$typeof===_?null:W.displayName||W.name||null;if(typeof W==="string")return W;switch(W){case A:return"Fragment";case N:return"Profiler";case M:return"StrictMode";case ie:return"Suspense";case K:return"SuspenseList";case te:return"Activity"}if(typeof W==="object")switch(typeof W.tag==="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),W.$$typeof){case C:return"Portal";case V:return W.displayName||"Context";case U:return(W._context.displayName||"Context")+".Consumer";case X:var Ne=W.render;return W=W.displayName,W||(W=Ne.displayName||Ne.name||"",W=W!==""?"ForwardRef("+W+")":"ForwardRef"),W;case ee:return Ne=W.displayName||null,Ne!==null?Ne:r(W.type)||"Memo";case j:Ne=W._payload,W=W._init;try{return r(W(Ne))}catch(Lt){}}return null}function u(W){return""+W}function i(W){try{u(W);var Ne=!1}catch(it){Ne=!0}if(Ne){Ne=console;var Lt=Ne.error,ut=typeof Symbol==="function"&&Symbol.toStringTag&&W[Symbol.toStringTag]||W.constructor.name||"Object";return Lt.call(Ne,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ut),u(W)}}function d(W){if(W===A)return"<>";if(typeof W==="object"&&W!==null&&W.$$typeof===j)return"<...>";try{var Ne=r(W);return Ne?"<"+Ne+">":"<...>"}catch(Lt){return"<...>"}}function f(){var W=ce.A;return W===null?null:W.getOwner()}function b(){return Error("react-stack-top-frame")}function m(W){if(ve.call(W,"key")){var Ne=Object.getOwnPropertyDescriptor(W,"key").get;if(Ne&&Ne.isReactWarning)return!1}return W.key!==void 0}function v(W,Ne){function Lt(){oe||(oe=!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)",Ne))}Lt.isReactWarning=!0,Object.defineProperty(W,"key",{get:Lt,configurable:!0})}function S(){var W=r(this.type);return pe[W]||(pe[W]=!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.")),W=this.props.ref,W!==void 0?W:null}function x(W,Ne,Lt,ut,it,Me){var ge=Lt.ref;return W={$$typeof:w,type:W,key:Ne,props:Lt,_owner:ut},(ge!==void 0?ge:null)!==null?Object.defineProperty(W,"ref",{enumerable:!1,get:S}):Object.defineProperty(W,"ref",{enumerable:!1,value:null}),W._store={},Object.defineProperty(W._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(W,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(W,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:it}),Object.defineProperty(W,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:Me}),Object.freeze&&(Object.freeze(W.props),Object.freeze(W)),W}function h(W,Ne,Lt,ut,it,Me){var ge=Ne.children;if(ge!==void 0)if(ut)if(Le(ge)){for(ut=0;ut<ge.length;ut++)L(ge[ut]);Object.freeze&&Object.freeze(ge)}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 L(ge);if(ve.call(Ne,"key")){ge=r(W);var G=Object.keys(Ne).filter(function(ae){return ae!=="key"});ut=0<G.length?"{key: someKey, "+G.join(": ..., ")+": ...}":"{key: someKey}",vt[ge+ut]||(G=0<G.length?"{"+G.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&&(i(se),Ye=""+se),p(ue)&&(i(ue.key),Ye=""+ue.key),"key"in ue){se={};for(var Ue in ue)Ue!=="key"&&(se[Ue]=ue[Ue])}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=Ys.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Be=Object.prototype.hasOwnProperty,Ce=Array.isArray,qe=console.createTask?console.createTask:function(){return null};Ys={react_stack_bottom_frame:function(P){return P()}};var te,ve={},ke=Ys.react_stack_bottom_frame.bind(Ys,v)(),je=qe(c(v)),ae={};dA.Fragment=D,dA.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?qe(c(P)):je)}})()});var iT=Y(M1(),1);var Ri=Y(ut(),1);var cm=Y(ut(),1);var A1=(r)=>r?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function D1(r,u,i=[]){if(u==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:A1(r),size:24,node:u,...i.length>0?{aliases:i}:{}}}var E1=(r)=>{let u="",i=!1;for(let c of r){if(c==="-"||c==="_"||c<=" "){i=u.length>0;continue}if(u.length===0)u+=c.toLowerCase();else u+=i?c.toUpperCase():c;i=!1}return u};var O1=(r)=>{let u=E1(r);return u.charAt(0).toUpperCase()+u.slice(1)};var ic=Y(ut(),1);var uc=(...r)=>r.filter((u,i,c)=>Boolean(u)&&u.trim()!==""&&c.indexOf(u)===i).join(" ").trim();var Hr={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 gb(r){return r!==null&&r!==void 0}function q1(r,u={}){let i=u.attributeNames??{},c=(C)=>i[C]??C,f=r.size??r.width??Hr.width,v=r.size??r.height??Hr.height,p=r.aliases?.filter((C)=>typeof C==="string"&&C.trim()!=="").map((C)=>`lucide-${C}`)??[],b=[...r.name?[`lucide-${r.name}`]:[],...p],S=u.className?.split(" ").filter(Boolean)??[],k=u.includeDefaultClasses===!1?uc(...S):uc("lucide",...b,...S),h=u.absoluteStrokeWidth?Number(u.strokeWidth??Hr["stroke-width"])*Number(r.size??r.width??Hr.width)/Number(u.size??u.width??Hr.width):u.strokeWidth??Hr["stroke-width"];return["svg",{...Object.entries(Hr).reduce((C,[R,L])=>(C[c(R)]=L,C),{}),..."color"in u&&u.color&&{[c("stroke")]:u.color},..."size"in u&&gb(u.size)&&{[c("width")]:u.size,[c("height")]:u.size},..."width"in u&&gb(u.width)&&{[c("width")]:u.width},..."height"in u&&gb(u.height)&&{[c("height")]:u.height},[c("stroke-width")]:h,...k&&{[c("class")]:k},[c("viewBox")]:`0 0 ${f} ${v}`,...u.hasA11yProp===!1?{[c("aria-hidden")]:"true"}:{},..."attributes"in u&&u.attributes},r.node.map((C)=>{let[R,L,D]=C,_=u.nonScalingStroke?{[c("vector-effect")]:"non-scaling-stroke",...L}:L;return D?[R,_,D]:[R,_]})]}function B1(r,u={}){return q1(r,{...u,attributeNames:{...u.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var N1=(r)=>{for(let u in r)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1};var ci=Y(ut(),1),oA=ci.createContext({});var U1=()=>ci.useContext(oA);var P1=ic.forwardRef(({color:r,size:u,width:i,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=""}=U1()??{},K=Boolean(S)||N1(x),[N,oe,B=[]]=B1(h,{color:r??z,width:i??u??R,height:c??u??R,strokeWidth:f??L,absoluteStrokeWidth:v??D,nonScalingStroke:p??_,className:uc(F,b),hasA11yProp:K,attributes:x});return ic.createElement(N,{ref:C,...oe},[...B.map(([ee,Z])=>ic.createElement(ee,Z)),...Array.isArray(S)?S:[S]])});function xe(r,u=[],i=[]){let c=typeof r==="string"?D1(r,u,i):r,f=cm.forwardRef(({className:v,...p},b)=>cm.createElement(P1,{ref:b,icon:c,className:v,...p}));if(c.name)f.displayName=O1(c.name);return f}var z1={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"]};z1.node;var Fr=xe(z1);var _1={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"]};_1.node;var Gr=xe(_1);var H1={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"]};H1.node;var Vr=xe(H1);var F1={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"]};F1.node;var ln=xe(F1);var G1={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"]};G1.node;var vl=xe(G1);var V1={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"]};V1.node;var $r=xe(V1);var $1={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"}]]};$1.node;var dc=xe($1);var X1={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};X1.node;var cc=xe(X1);var j1={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};j1.node;var fc=xe(j1);var Y1={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};Y1.node;var pc=xe(Y1);var Q1={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};Q1.node;var mc=xe(Q1);var Z1={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};Z1.node;var hc=xe(Z1);var W1={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};W1.node;var $s=xe(W1);var K1={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};K1.node;var Xs=xe(K1);var J1={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};J1.node;var gc=xe(J1);var ek={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};ek.node;var Sl=xe(ek);var tk={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"}]]};tk.node;var yc=xe(tk);var ak={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"}]]};ak.node;var js=xe(ak);var ok={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"}]]};ok.node;var bc=xe(ok);var lk={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"}]]};lk.node;var vc=xe(lk);var nk={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"}]]};nk.node;var Sc=xe(nk);var rk={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"}]]};rk.node;var xc=xe(rk);var sk={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"}]]};sk.node;var Lc=xe(sk);var uk={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};uk.node;var Cc=xe(uk);var ik={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"}]]};ik.node;var kc=xe(ik);var dk={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"}]]};dk.node;var wc=xe(dk);var ck={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"}]]};ck.node;var Xr=xe(ck);var fk={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"}]]};fk.node;var Tc=xe(fk);var pk={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};pk.node;var Ic=xe(pk);var mk={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"}]]};mk.node;var Rc=xe(mk);var hk={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"}]]};hk.node;var Mc=xe(hk);var gk={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};gk.node;var ol=xe(gk);var Si=Y(ut(),1);var yk=["January","February","March","April","May","June","July","August","September","October","November","December"],bk=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],lA=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function jr(r,u=2){return String(r).padStart(u,"0")}function nA(r,u){let i=r.getMonth(),c=r.getDay(),f=r.getHours(),v=f%12||12;switch(u){case"yyyy":return jr(r.getFullYear(),4);case"yy":return jr(r.getFullYear()%100);case"MMMM":return yk[i];case"MMM":return yk[i].slice(0,3);case"MM":return jr(i+1);case"M":return String(i+1);case"dd":return jr(r.getDate());case"d":return String(r.getDate());case"EEEE":return bk[c];case"EEE":return bk[c].slice(0,3);case"HH":return jr(f);case"H":return String(f);case"hh":return jr(v);case"h":return String(v);case"mm":return jr(r.getMinutes());case"m":return String(r.getMinutes());case"ss":return jr(r.getSeconds());case"s":return String(r.getSeconds());case"a":return f<12?"AM":"PM"}}function Sk(r){let u=r instanceof Date?new Date(r.getTime()):new Date(r);if(Number.isNaN(u.getTime()))throw RangeError("Invalid time value");return u}function nn(r,u){let i=Sk(r),c="";for(let f=0;f<u.length;){if(u[f]==="'"){if(u[f+1]==="'"){c+="'",f+=2;continue}f++;while(f<u.length){if(u[f]!=="'"){c+=u[f++];continue}if(u[f+1]==="'"){c+="'",f+=2;continue}f++;break}continue}let v=u.slice(f),p=lA.find((S)=>v.startsWith(S));if(p){c+=nA(i,p),f+=p.length;continue}let b=u[f++];if(/[A-Za-z]/.test(b))throw RangeError(`Format string contains an unescaped latin alphabet character \`${b}\``);c+=b}return c}function Yr(r,u){return`${r} ${r===1?u:`${u}s`}`}function rA(r,u){let i=(u.getFullYear()-r.getFullYear())*12+u.getMonth()-r.getMonth();if(i===0)return 0;let c=new Date(r);c.setDate(1),c.setFullYear(r.getFullYear(),r.getMonth()+i,1);let f=new Date(c.getFullYear(),c.getMonth()+1,0).getDate();if(c.setDate(Math.min(r.getDate(),f)),c.getTime()>u.getTime())i--;return i}function vk(r,u){let i=(u.getTime()-r.getTime())/1000,c=(u.getTimezoneOffset()-r.getTimezoneOffset())*60,f=Math.round((i-c)/60);if(f<2)return f===0?"less than a minute":"1 minute";if(f<45)return Yr(f,"minute");if(f<90)return"about 1 hour";if(f<1440)return`about ${Yr(Math.round(f/60),"hour")}`;if(f<2520)return"1 day";if(f<43200)return Yr(Math.round(f/1440),"day");if(f<86400)return`about ${Yr(Math.round(f/43200),"month")}`;let v=rA(r,u);if(v<12)return Yr(Math.round(f/43200),"month");let p=Math.trunc(v/12),b=v%12;if(b<3)return`about ${Yr(p,"year")}`;if(b<9)return`over ${Yr(p,"year")}`;return`almost ${Yr(p+1,"year")}`}function xk(r,u={}){let i=Sk(r),c=new Date(Date.now()),f=i.getTime()>c.getTime(),v=f?vk(c,i):vk(i,c);if(!u.addSuffix)return v;return f?`in ${v}`:`${v} ago`}var Lk=60000,fm=60*Lk,rn=24*fm,yb={"1h":{label:"1h",windowLabel:"the last hour",spanMs:fm,bucketMs:5*Lk},"24h":{label:"24h",windowLabel:"the last 24 hours",spanMs:rn,bucketMs:fm},"7d":{label:"7d",windowLabel:"the last 7 days",spanMs:7*rn,bucketMs:rn},"30d":{label:"30d",windowLabel:"the last 30 days",spanMs:30*rn,bucketMs:rn},"90d":{label:"90d",windowLabel:"the last 90 days",spanMs:90*rn,bucketMs:rn},all:{label:"All",windowLabel:"all time",spanMs:null,bucketMs:rn}},sA=1500,fi=["1h","24h","7d","30d","90d","all"];function na(r){return yb[r]}function pm(r,u){if(u<rn)return nn(new Date(r),u<fm?"HH:mm":"MMM d HH:mm");return nn(new Date(r),"MMM d")}function mm(r,u){if(u<rn)return nn(new Date(r),"HH:mm");return nn(new Date(r),"MMM d")}function zo(r,u,i=yb[r].bucketMs,c=Date.now()){let f=Math.floor(c/i)*i,v=yb[r].spanMs,p;if(v!==null)p=Math.floor((c-v)/i)*i;else{p=f;for(let S of u)if(S<p)p=S;p=Math.floor(p/i)*i}p=Math.max(p,f-(sA-1)*i);let b=[];for(let S=p;S<=f;S+=i)b.push(S);return b}var _o=Y(ut(),1);class Ck extends Error{status;endpoint;constructor(r,u,i){super(i);this.name="ApiError",this.status=r,this.endpoint=u}}async function uA(r,u){try{let i=await r.json();if(typeof i==="object"&&i!==null&&"error"in i&&typeof i.error==="string")return i.error}catch{}return`HTTP error ${r.status} on ${u}`}async function Da(r,u){let i=await fetch(r,u);if(!i.ok)throw new Ck(i.status,r,await uA(i,r));return i.json()}var kk={"X-Omp-Stats-Action":"1"};async function wk(r="24h",u){return Da(`/api/stats/overview?range=${encodeURIComponent(r)}`,{signal:u})}async function Tk(r="24h",u){return Da(`/api/stats/model-dashboard?range=${encodeURIComponent(r)}`,{signal:u})}async function Ik(r="24h",u){return Da(`/api/stats/costs?range=${encodeURIComponent(r)}`,{signal:u})}async function hm(r=50,u){return Da(`/api/stats/recent?limit=${r}`,{signal:u})}async function Rk(r="24h",u=50,i){return Da(`/api/stats/errors?range=${encodeURIComponent(r)}&limit=${u}`,{signal:i})}async function Mk(r,u){return Da(`/api/request/${r}`,{signal:u})}async function Ak(){return Da("/api/sync",{method:"POST"})}async function Dk(r="24h",u){return Da(`/api/stats/frustration?range=${encodeURIComponent(r)}`,{signal:u})}async function Ek(r,u){return Da(`/api/frustration/estimate?range=${encodeURIComponent(r)}`,{signal:u})}async function Ok(r){return Da(`/api/frustration/judge?range=${encodeURIComponent(r)}`,{method:"POST",headers:kk})}async function qk(){return Da("/api/frustration/cancel",{method:"POST",headers:kk})}async function Bk(r="24h",u){return Da(`/api/stats/folders?range=${encodeURIComponent(r)}`,{signal:u})}async function Nk(r="24h",u,i){let c=new URLSearchParams({range:r});if(u)c.set("project",u);return Da(`/api/stats/gain?${c}`,{signal:i})}async function Uk(r="24h",u){return Da(`/api/stats/tools?range=${encodeURIComponent(r)}`,{signal:u})}async function Pk(r="24h",u){return Da(`/api/stats/providers?range=${encodeURIComponent(r)}`,{signal:u})}async function bb(r,u,i){let c=new URLSearchParams({range:r});if(u!==null)c.set("provider",u);return Da(`/api/stats/provider-windows?${c}`,{signal:i})}async function zk(r=100,u,i){let c=new URLSearchParams({limit:String(r)});if(u)c.set("q",u);return Da(`/api/sessions?${c}`,{signal:i})}async function _k(r,u){return Da(`/api/session/trace?file=${encodeURIComponent(r)}`,{signal:u})}async function Hk(r,u,i){return Da(`/api/session/entry?file=${encodeURIComponent(r)}&id=${encodeURIComponent(u)}`,{signal:i})}var $k=Y(ce(),1),Fk={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null},Gk=_o.createContext({version:0,sync:Fk,indexingHours:0,connected:!1,requestSync:()=>{}});function Vk({children:r}){let[u,i]=_o.useState({server:null,version:0}),[c,f]=_o.useState(!1);_o.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);i((h)=>({server:k,version:h.server&&h.server.version===k.version?h.version:h.version+1}))},()=>b.close()},[]);let v=_o.useCallback(()=>{Ak().catch(()=>{})},[]),p=_o.useMemo(()=>({version:Math.max(0,u.version-1),sync:u.server?.sync??Fk,indexingHours:u.server?.indexingHours??0,connected:c,requestSync:v}),[u,c,v]);return $k.jsxDEV(Gk.Provider,{value:p,children:r},void 0,!1,void 0,this)}function pi(){return _o.useContext(Gk)}var gm=Y(ce(),1);function wt({tone:r="neutral",mono:u,children:i}){return gm.jsxDEV("span",{className:"badge","data-tone":r,"data-mono":u??!1,children:i},void 0,!1,void 0,this)}function sn({tone:r="neutral",pulse:u}){return gm.jsxDEV("span",{className:"dot","data-tone":r,"data-pulse":u??!1},void 0,!1,void 0,this)}function xl({color:r}){return gm.jsxDEV("span",{className:"swatch",style:{background:r}},void 0,!1,void 0,this)}function un(r){if(r>=0.05)return"bad";if(r>=0.01)return"warn";return"ok"}var So=Y(ce(),1);function Ve({title:r,description:u,actions:i,flush:c,footer:f,className:v,index:p,stale:b,children:S}){let k=r!==void 0||u!==void 0||i!==void 0;return So.jsxDEV("section",{className:v?`card rise ${v}`:"card rise",style:p!==void 0?{"--i":p}:void 0,children:[k&&So.jsxDEV("header",{className:"card-header",children:[So.jsxDEV("div",{className:"card-titles",children:[r!==void 0&&So.jsxDEV("h2",{className:"card-title",children:r},void 0,!1,void 0,this),u!==void 0&&So.jsxDEV("p",{className:"card-description",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&So.jsxDEV("div",{className:"card-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),So.jsxDEV("div",{className:"card-body","data-flush":c??!1,"data-stale":b??!1,children:S},void 0,!1,void 0,this),f!==void 0&&So.jsxDEV("footer",{className:"card-footer",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function ta({title:r,description:u,actions:i}){return So.jsxDEV("header",{className:"page-header rise",children:[So.jsxDEV("div",{children:[So.jsxDEV("h1",{className:"page-title",children:r},void 0,!1,void 0,this),u!==void 0&&So.jsxDEV("p",{className:"page-description",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&So.jsxDEV("div",{className:"page-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Ac=Y(ut(),1),Xk=Y(sc(),1),Ya=Y(ce(),1);function ym({open:r,onClose:u,title:i,subtitle:c,actions:f,width:v,children:p}){let b=Ac.useRef(u);b.current=u;let S=Ac.useRef(null);if(Ac.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 Xk.createPortal(Ya.jsxDEV(Ya.Fragment,{children:[Ya.jsxDEV("div",{className:"drawer-scrim",onClick:u,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:i},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:u,"aria-label":"Close",children:Ya.jsxDEV(ol,{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 Ho({items:r}){return Ya.jsxDEV("dl",{className:"kv",style:{margin:0},children:r.map((u)=>Ya.jsxDEV("div",{className:"kv-item",children:[Ya.jsxDEV("dt",{className:"kv-key",children:u.label},void 0,!1,void 0,this),Ya.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:u.value},void 0,!1,void 0,this)]},u.key,!0,void 0,this))},void 0,!1,void 0,this)}var Qs=Y(ut(),1),Ll=Y(ce(),1);function mi({data:r,title:u="JSON",initialCollapsed:i=!1}){let[c,f]=Qs.useState(i),[v,p]=Qs.useState(!1),b=Qs.useRef(0),S=JSON.stringify(r,null,2);return Qs.useEffect(()=>()=>window.clearTimeout(b.current),[]),Ll.jsxDEV("div",{className:"stack",style:{gap:6},children:[Ll.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Ll.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>f((h)=>!h),"aria-expanded":!c,children:[c?Ll.jsxDEV(Sl,{size:13},void 0,!1,void 0,this):Ll.jsxDEV(Xs,{size:13},void 0,!1,void 0,this),u]},void 0,!0,void 0,this),Ll.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?Ll.jsxDEV($s,{size:13},void 0,!1,void 0,this):Ll.jsxDEV(js,{size:13},void 0,!1,void 0,this),v?"Copied":"Copy"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!c&&Ll.jsxDEV("pre",{className:"code-block",children:Ll.jsxDEV("code",{children:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Zs=Y(ut(),1),jk=Y(sc(),1);var Cl=Y(ce(),1);function Yk({open:r,title:u,onClose:i,primaryAction:c,cancelLabel:f="Cancel",children:v}){let p=Zs.useRef(null),b=Zs.useRef(null),S=Zs.useRef(i);S.current=i,Zs.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(Zs.useEffect(()=>{if(!r)return;(k&&!h?p.current:b.current)?.focus()},[r,k,h]),!r)return null;return jk.createPortal(Cl.jsxDEV("div",{className:"modal-overlay",onClick:(C)=>{if(C.target===C.currentTarget)i()},role:"presentation",children:Cl.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[Cl.jsxDEV("div",{className:"modal-header",children:[Cl.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:u},void 0,!1,void 0,this),Cl.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:i,"aria-label":"Close",children:Cl.jsxDEV(ol,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Cl.jsxDEV("div",{className:"modal-body",children:v},void 0,!1,void 0,this),Cl.jsxDEV("div",{className:"modal-footer",children:[Cl.jsxDEV("button",{ref:b,type:"button",className:"btn",onClick:i,children:f},void 0,!1,void 0,this),c&&Cl.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 bm=Y(ce(),1);function dn({value:r,onChange:u,placeholder:i="Filter…",width:c}){return bm.jsxDEV("label",{className:"search",children:[bm.jsxDEV(Ic,{size:14},void 0,!1,void 0,this),bm.jsxDEV("input",{className:"input",type:"search",value:r,placeholder:i,onChange:(f)=>u(f.target.value),style:c!==void 0?{width:c}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var hi=Y(ut(),1),vm=Y(ce(),1);function za({options:r,value:u,onChange:i,size:c="md","aria-label":f}){let v=hi.useRef(null),[p,b]=hi.useState(null);return hi.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()},[u,r]),vm.jsxDEV("div",{ref:v,className:"segmented","data-size":c,role:"radiogroup","aria-label":f,children:[p&&vm.jsxDEV("span",{className:"segmented-thumb",style:{left:p.left,width:p.width}},void 0,!1,void 0,this),r.map((S)=>vm.jsxDEV("button",{type:"button",role:"radio","aria-checked":S.value===u,className:"segmented-option","data-active":S.value===u,title:S.title,onClick:()=>i(S.value),children:S.label},S.value,!1,void 0,this))]},void 0,!0,void 0,this)}var bi=Y(ut(),1);var gi=Y(ut(),1);function Sm(){let r=gi.useRef(null),[u,i]=gi.useState(0);return gi.useLayoutEffect(()=>{let c=r.current;if(!c)return;i(c.clientWidth);let f=new ResizeObserver((v)=>{let p=Math.round(v[0]?.contentRect.width??0);i((b)=>b===p?b:p)});return f.observe(c),()=>f.disconnect()},[]),[r,u]}var Dc=Y(ce(),1);function yi({values:r,color:u="var(--chart-primary)",height:i=28,width:c,area:f=!0}){let[v,p]=Sm(),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?i-2-r[C]/S*(i-4):i-2;h+=`${C===0?"M":"L"}${R.toFixed(1)},${L.toFixed(1)}`}}return Dc.jsxDEV("div",{ref:v,className:"sparkline",style:{width:c??"100%",height:i},children:b>0&&k>0&&Dc.jsxDEV("svg",{width:b,height:i,"aria-hidden":"true",children:[f&&Dc.jsxDEV("path",{className:"area",d:`${h}L${b},${i}L0,${i}Z`,fill:u},void 0,!1,void 0,this),Dc.jsxDEV("path",{className:"chart-line",d:h,stroke:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var ll=Y(ce(),1);function fe({label:r,value:u,hint:i,delta:c,spark:f,sparkColor:v,size:p="md",title:b}){let S=fA(typeof u==="string"||typeof u==="number"?u:null);return ll.jsxDEV("div",{className:"stat","data-size":p,title:b,children:[ll.jsxDEV("div",{className:"stat-label",children:r},void 0,!1,void 0,this),ll.jsxDEV("div",{className:"stat-value","data-flash":S,children:u},void 0,!1,void 0,this),(i!==void 0||c)&&ll.jsxDEV("div",{className:"stat-foot",children:[c&&ll.jsxDEV(cA,{...c},void 0,!1,void 0,this),i!==void 0&&ll.jsxDEV("span",{className:"truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&f.length>1&&ll.jsxDEV("div",{className:"stat-spark",children:ll.jsxDEV(yi,{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:u}){return ll.jsxDEV("div",{className:"stat-grid rise",style:r!==void 0?{"--stat-min":`${r}px`}:void 0,children:u},void 0,!1,void 0,this)}function cA({change:r,good:u="up"}){if(r===null||!Number.isFinite(r))return ll.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let i=Math.abs(r)<0.0005?0:r,c=i===0?void 0:i>0===(u==="up")?"good":"bad",f=i>0?"+":i<0?"−":"±",v=Math.abs(i)*100;return ll.jsxDEV("span",{className:"delta","data-tone":c,children:[f,v>=100?v.toFixed(0):v.toFixed(1),"%"]},void 0,!0,void 0,this)}function fA(r){let u=bi.useRef(r),[i,c]=bi.useState(!1);return bi.useEffect(()=>{if(u.current===r)return;let f=u.current!==null;if(u.current=r,!f)return;c(!0);let v=setTimeout(()=>c(!1),900);return()=>clearTimeout(v)},[r]),i}var fa=Y(ce(),1);function mt({title:r="Nothing here yet",hint:u}){return fa.jsxDEV("div",{className:"empty",children:[fa.jsxDEV(xc,{size:20},void 0,!1,void 0,this),fa.jsxDEV("div",{className:"empty-title",children:r},void 0,!1,void 0,this),u!==void 0&&fa.jsxDEV("div",{className:"empty-hint",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function vi({error:r,onRetry:u}){return fa.jsxDEV("div",{className:"error-state",role:"alert",children:[fa.jsxDEV($r,{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),u&&fa.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:u,children:[fa.jsxDEV(Tc,{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:u=14,style:i}){return fa.jsxDEV("div",{className:"skeleton",style:{width:r,height:u,...i}},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},(u,i)=>fa.jsxDEV(Ea,{height:16,width:`${92-i*13%30}%`},i,!1,void 0,this))},void 0,!1,void 0,this)}function _e({query:r,skeleton:u,isEmpty:i,empty:c,children:f}){if(r.data===null){if(r.error)return fa.jsxDEV(vi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this);return fa.jsxDEV(fa.Fragment,{children:u},void 0,!1,void 0,this)}return fa.jsxDEV(fa.Fragment,{children:[r.error&&fa.jsxDEV(vi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this),i?.(r.data)?c??fa.jsxDEV(mt,{},void 0,!1,void 0,this):f(r.data)]},void 0,!0,void 0,this)}var Ks=Y(ut(),1);var vb="en-US";function q(r){return r.toLocaleString(vb)}function Re(r){return r.toLocaleString(vb,{notation:"compact"})}function sa(r,u){if(r===0)return"$0";let i=u!==void 0?u:r>0&&r<0.01?4:2;return`$${r.toLocaleString(vb,{minimumFractionDigits:i,maximumFractionDigits:i})}`}function Ot(r,u,i){return r===0&&u>0?"N/A":sa(r,i)}function Sb(r){return r.usage.totalTokens>0&&r.usage.cost.total===0&&(r.provider==="xai-oauth"||r.costUnpriced===!0)}function Qr(r,u){return Ot(r.usage.cost.total,Sb(r)?1:0,u)}function ze(r,u=1){return`${(r*100).toFixed(u)}%`}function eo(r){let u=r*100;if(u>0&&u<0.005)return"<0.01%";return ze(r,u>0&&u<0.1?2:1)}function vt(r,u){if(r===null)return"-";let i=r/1000,c=u!==void 0?u:i<1?2:1;return`${i.toFixed(c)}s`}function Ws(r){if(r<60000)return vt(r);let u=Math.floor(r/60000);if(u<60)return`${u}m ${String(Math.floor(r%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(u/60)}h ${String(u%60).padStart(2,"0")}m`}function cn(r){if(r===null)return"-";return r.toFixed(1)}function ua(r){return xk(new Date(r),{addSuffix:!0})}function nl(r){return nn(new Date(r),"MMM d, HH:mm:ss")}function fn(r){return r.replace(/^\/+|\/+$/g,"")||"(root)"}function xb(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:u,rowKey:i,onRowClick:c,selectedKey:f,initialSort:v,limit:p,dense:b,empty:S,expanded:k}){let[h,x]=Ks.useState(v??null),[C,R]=Ks.useState(p??Number.POSITIVE_INFINITY),L=Ks.useMemo(()=>{let z=h?r.find((N)=>N.key===h.key):void 0;if(!h||!z?.sort)return u;let F=z.sort,K=h.dir==="asc"?1:-1;return[...u].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})},[u,r,h]);if(u.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(hc,{size:11},void 0,!1,void 0,this):St.jsxDEV(cc,{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=i(z),K=k?.(z)??null;return St.jsxDEV(Ks.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:u,display:i,color:c}){let f=u>0?Math.min(100,r/u*100):0;return St.jsxDEV("div",{className:"meter-cell",children:[St.jsxDEV("span",{className:"num",children:i},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:u,lead:i}){return St.jsxDEV("div",{className:"row",style:{gap:10},children:[i,St.jsxDEV("div",{className:"stack",style:{gap:0},children:[St.jsxDEV("span",{className:"cell-primary truncate",children:r},void 0,!1,void 0,this),u!==void 0&&St.jsxDEV("span",{className:"cell-secondary truncate",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var xm=Y(ut(),1);var Xt=Y(ce(),1);function Qk(){let{sync:r,indexingHours:u,connected:i,requestSync:c}=pi(),f=mA(r.phase==="idle"?15000:null),v,p;if(!i)v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(sn,{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(Xr,{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(sn,{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(u>pA)v=Xt.jsxDEV(Xt.Fragment,{children:[Xt.jsxDEV(Xr,{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(u),"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(sn,{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:hA(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 pA=24;function mA(r){let[u,i]=xm.useState(Date.now);return xm.useEffect(()=>{if(r===null)return;i(Date.now());let c=setInterval(()=>i(Date.now()),r);return()=>clearInterval(c)},[r]),u}function hA(r){let u=Math.max(0,Math.round(r/1000));if(u<45)return"just now";let i=Math.round(u/60);if(i<60)return`${i}m ago`;let c=Math.round(i/60);return c<24?`${c}h ago`:`${Math.round(c/24)}d ago`}var Lm=[{heading:"Usage",items:[{id:"overview",label:"Overview",icon:Lc,hotkey:"o"},{id:"models",label:"Models",icon:bc,hotkey:"m"},{id:"providers",label:"Providers",icon:Vr,hotkey:"p"},{id:"costs",label:"Costs",icon:yc,hotkey:"c"}]},{heading:"Activity",items:[{id:"requests",label:"Requests",icon:dc,hotkey:"r"},{id:"errors",label:"Errors",icon:Fr,hotkey:"e"},{id:"traces",label:"Traces",icon:vl,hotkey:"t"}]},{heading:"Insights",items:[{id:"tools",label:"Tools",icon:Mc,hotkey:"l"},{id:"frustration",label:"Frustration",icon:Gr,hotkey:"f"},{id:"projects",label:"Projects",icon:vc,hotkey:"j"},{id:"gain",label:"Gain",icon:ln,hotkey:"g"}]}],gA=Lm.flatMap((r)=>r.items),Zk=gA.map((r)=>r.id);var Cm=Y(ut(),1),Wk="omp-stats-theme",Kk="(prefers-color-scheme: dark)";function yA(){if(typeof localStorage>"u")return"system";let r=localStorage.getItem(Wk);return r==="light"||r==="dark"||r==="system"?r:"system"}function Jk(){if(typeof window>"u")return"dark";return window.matchMedia(Kk).matches?"dark":"light"}var Js=yA(),Ec=Js==="system"?Jk():Js,Lb=new Set;function ew(){for(let r of Lb)r()}function Cb(){if(Ec=Js==="system"?Jk():Js,typeof document<"u")document.documentElement.dataset.theme=Ec,document.documentElement.style.colorScheme=Ec}if(typeof window<"u")Cb(),window.matchMedia(Kk).addEventListener("change",()=>{if(Js==="system")Cb(),ew()});function bA(r){if(Js=r,typeof localStorage<"u")localStorage.setItem(Wk,r);Cb(),ew()}function kb(r){return Lb.add(r),()=>Lb.delete(r)}function tw(){return Cm.useSyncExternalStore(kb,()=>Ec,()=>"dark")}function aw(){let r=Cm.useSyncExternalStore(kb,()=>Js,()=>"system"),u=Cm.useSyncExternalStore(kb,()=>Ec,()=>"dark");return{preference:r,resolved:u,setPreference:bA}}var wb=Y(ce(),1),vA={system:"light",light:"dark",dark:"system"},SA={system:kc,light:Rc,dark:wc},ow={system:"System theme",light:"Light theme",dark:"Dark theme"};function lw(){let{preference:r,setPreference:u}=aw(),i=SA[r];return wb.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>u(vA[r]),"aria-label":`${ow[r]} (click to switch)`,title:`${ow[r]} — click to switch`,children:wb.jsxDEV(i,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ke=Y(ce(),1),xA=fi.map((r,u)=>({value:r,label:na(r).label,title:`${na(r).windowLabel} (${u+1})`}));function nw({section:r,onSectionChange:u,range:i,onRangeChange:c,children:f}){let[v,p]=Si.useState(!1),b=LA(),{sync:S}=pi();CA(u,c);let k=(x)=>{u(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(Cc,{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(Qk,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV(za,{options:xA,value:i,onChange:c,"aria-label":"Time range"},void 0,!1,void 0,this),Ke.jsxDEV(lw,{},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:[Lm.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 LA(){let[r,u]=Si.useState(!1);return Si.useEffect(()=>{let i=()=>u(window.scrollY>4);return i(),window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[]),r}function CA(r,u){Si.useEffect(()=>{let i=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(i&&Date.now()-i<1200){i=0;let S=Lm.flatMap((k)=>k.items).find((k)=>k.hotkey===p);if(S)f.preventDefault(),r(S.id),window.scrollTo({top:0});return}if(p==="g"){i=Date.now();return}let b=Number(p)-1;if(Number.isInteger(b)&&b>=0&&b<fi.length)f.preventDefault(),u(fi[b])};return window.addEventListener("keydown",c),()=>window.removeEventListener("keydown",c)},[r,u])}var Vn=Y(ut(),1);function Oc(r){let[u,i]=r.replace(/^#\/?/,"").split("?"),c=Zk.includes(u)?u:"overview",f=new URLSearchParams(i??""),v=f.get("range"),p=fi.includes(v??"")?v:"24h";return{section:c,range:p,session:f.get("s")}}function km({section:r,range:u,session:i}){let c=i?`&s=${encodeURIComponent(i)}`:"";return`#/${r}?range=${u}${c}`}function rw(){let[r,u]=Vn.useState(()=>Oc(window.location.hash));Vn.useEffect(()=>{let p=()=>u(Oc(window.location.hash));window.addEventListener("hashchange",p),window.addEventListener("popstate",p);let b=km(Oc(window.location.hash));if(window.location.hash!==b)history.replaceState(null,"",b);return()=>{window.removeEventListener("hashchange",p),window.removeEventListener("popstate",p)}},[]);let i=Vn.useCallback((p)=>{u(p);let b=km(p);if(window.location.hash!==b)history.pushState(null,"",b)},[]),c=Vn.useCallback((p)=>i({...r,section:p,session:p==="traces"?r.session:null}),[r,i]),f=Vn.useCallback((p)=>i({...r,range:p}),[r,i]),v=Vn.useCallback((p)=>i({...r,session:p}),[r,i]);return{...r,setSection:c,setRange:f,setSession:v}}var Im=Y(ut(),1);var pn=Y(ce(),1);function qc({items:r,max:u,onSelect:i}){let c=u??Math.max(0,...r.map((f)=>f.value));return pn.jsxDEV("div",{className:"bar-list",children:r.map((f)=>{let v=c>0?Math.max(0.5,f.value/c*100):0,p=pn.jsxDEV(pn.Fragment,{children:[pn.jsxDEV("span",{className:"bar-list-fill",style:{width:`${v}%`,background:f.color??"var(--chart-primary)"}},void 0,!1,void 0,this),pn.jsxDEV("span",{className:"bar-list-label",children:f.label},void 0,!1,void 0,this),pn.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 i?pn.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>i(f.key),children:p},f.key,!1,void 0,this):pn.jsxDEV("div",{className:"bar-list-row",children:p},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}var $n=Y(ut(),1);var ct=Y(ce(),1),eu=10,kA=24,wA=68,TA=4;function kl({slots:r,tickLabel:u,tooltipTitle:i,series:c,kind:f="bars",stacked:v=!0,height:p=220,format:b=Re,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]=Sm(),[N,oe]=$n.useState(null),B=$n.useId().replace(/:/g,""),ee=$n.useMemo(()=>c.filter((V)=>!C?.has(V.key)),[c,C]),Z=$n.useMemo(()=>{let V=ee.filter((Et)=>Et.axis!=="right"),Ue=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 De=re.slice();pa.set(Et.key,De);for(let sl=0;sl<r;sl++)re[sl]+=Et.values[sl]??0}else for(let De=0;De<r;De++)ma=Math.max(ma,Et.values[De]??0);for(let Et of re)ma=Math.max(ma,Et);let Ia=0;for(let Et of Ue)for(let De=0;De<r;De++)Ia=Math.max(Ia,Et.values[De]??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=sw(h??ma),Yt=Ue.length>0?sw(x??Ia):null,gt=ee.every((Et)=>Et.values.every((De)=>!De));return{left:V,right:Ue,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,uw(W)+12),Be=Z.rightScale?Math.max(28,uw(X)+12):8,Ce=Math.max(0,K-ge-Be),qe=p-eu-kA,te=r>0?Ce/r:0,ve=(V)=>eu+qe-V/Z.leftScale.max*qe,ke=(V)=>eu+qe-V/(Z.rightScale?.max??1)*qe,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/wA)))),ne=(V)=>{let Ue=V.currentTarget.getBoundingClientRect(),Mt=Math.floor((V.clientX-Ue.left)/(Ue.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,Ue)=>ee.length>1?Ue.v-V.v:0),Lt=pe.filter((V)=>V.s.axis!=="right").reduce((V,Ue)=>V+Ue.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}-${Tb(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,Ue)=>ct.jsxDEV("text",{x:ge-8,y:ve(V),dy:"0.32em",textAnchor:"end",children:W[Ue]},V,!1,void 0,this)),Z.rightScale?.ticks.map((V,Ue)=>ct.jsxDEV("text",{x:ge+Ce+8,y:ke(V),dy:"0.32em",textAnchor:"start",children:X[Ue]},V,!1,void 0,this)),Array.from({length:r},(V,Ue)=>Ue%se===0?ct.jsxDEV("text",{x:je(Ue),y:p-6,textAnchor:"middle",children:u(Ue)},Ue,!1,void 0,this):null)]},void 0,!0,void 0,this),N!==null&&ct.jsxDEV("rect",{className:"chart-cursor",x:ge+N*te,y:eu,width:te,height:qe},void 0,!1,void 0,this),ee.filter((V)=>(V.kind??f)==="area").map((V)=>{let Ue=V.axis==="right"?ke:ve,Mt=Z.bases.get(V.key),pa=(Kt)=>(Mt?.[Kt]??0)+(V.values[Kt]??0),re=iw(r,je,(Kt)=>Ue(pa(Kt))),ma=Array.from({length:r},(Kt,Yt)=>r-1-Yt).map((Kt)=>`L${je(Kt).toFixed(1)},${Ue(Mt?.[Kt]??0).toFixed(1)}`).join(""),Ia=V.pattern==="hatch"?`url(#${B}-${Tb(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 Ue=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}-${Tb(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=Ue(Yt),Et=Ue(Yt+Ia),De=je(Kt)-ue/2+(pa>=0?pa*re:0);return ct.jsxDEV("rect",{className:"chart-bar","data-hover":N===Kt,x:De,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 Ue=V.axis==="right"?ke:ve,Mt=(pa)=>{let re=V.values[pa];return re===null||re===void 0?null:Ue(re)};return ct.jsxDEV("g",{children:[ct.jsxDEV("path",{className:"chart-line",d:iw(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 Ue=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:Ue,y2:Ue,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),V.label&&ct.jsxDEV("text",{x:ge+Ce-4,y:Ue-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:eu,width:Ce,height:qe,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:eu}:{left:je(N)+Math.min(te/2,24)+8,top:eu},children:[ct.jsxDEV("div",{className:"chart-tooltip-title",children:(i??u)(N)},void 0,!1,void 0,this),pe.map(({s:V,v:Ue})=>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)(Ue):(k??b)(Ue)},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($n.Fragment,{children:z(N)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function sw(r){if(!(r>0))return{max:1,ticks:[0]};let u=r/TA,i=10**Math.floor(Math.log10(u)),c=[1,2,2.5,5,10].map((p)=>p*i).find((p)=>p>=u)??10*i,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 uw(r){return r.reduce((u,i)=>Math.max(u,i.length*6.3),0)}function iw(r,u,i){let c="",f=!1;for(let v=0;v<r;v++){let p=i(v);if(p===null){f=!1;continue}c+=`${f?"L":"M"}${u(v).toFixed(1)},${p.toFixed(1)}`,f=!0}return c}function Tb(r){return r.replace(/[^a-zA-Z0-9_-]/g,"_")}var wm=Y(ut(),1),mn=Y(ce(),1);function Qa({items:r,hidden:u,onToggle:i}){return mn.jsxDEV("div",{className:"legend",children:r.map((c)=>{let f=mn.jsxDEV(mn.Fragment,{children:[mn.jsxDEV("span",{className:"swatch",style:{background:c.color}},void 0,!1,void 0,this),mn.jsxDEV("span",{className:"truncate",children:c.label},void 0,!1,void 0,this),c.value&&mn.jsxDEV("span",{className:"legend-value",children:c.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?mn.jsxDEV("button",{type:"button",className:"legend-item","data-off":u?.has(c.key)??!1,onClick:()=>i(c.key),title:c.label,children:f},c.key,!1,void 0,this):mn.jsxDEV("span",{className:"legend-item",title:c.label,children:f},c.key,!1,void 0,this)})},void 0,!1,void 0,this)}function rl(){let[r,u]=wm.useState(()=>new Set),i=wm.useCallback((c)=>{u((f)=>{let v=new Set(f);if(!v.delete(c))v.add(c);return v})},[]);return[r,i]}var Ib=Y(ce(),1);function Zr({segments:r,height:u=8}){let i=r.reduce((c,f)=>c+Math.max(0,f.value),0);return Ib.jsxDEV("div",{className:"share-bar",style:{height:u},role:"img",children:i>0&&r.filter((c)=>c.value>0).map((c)=>Ib.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:c.value/i,background:c.color},title:`${c.label}: ${(c.value/i*100).toFixed(1)}%`},c.key,!1,void 0,this))},void 0,!1,void 0,this)}var dw=Y(ce(),1);function Xn({buckets:r,bucketMs:u,onSelectBucket:i,...c}){return dw.jsxDEV(kl,{...c,slots:r.length,tickLabel:(f)=>mm(r[f],u),tooltipTitle:(f)=>pm(r[f],u),onSelect:i?(f)=>i(r[f]):void 0},void 0,!1,void 0,this)}var Ha=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],to="#6c6c74";function ya(r,u){return`${r}::${u}`}function Tm(r){return Bc(r.map((u)=>({key:ya(u.model,u.provider),weight:u.totalRequests})))}function Bc(r){let u=[...r].sort((i,c)=>c.weight-i.weight||i.key.localeCompare(c.key));return new Map(u.map((i,c)=>[i.key,Ha[c%Ha.length]]))}var Oa=Y(ut(),1);var IA=128,RA=1500,tu=new Map,Rb=new Map;function MA(r,u){if(tu.delete(r),tu.set(r,u),tu.size>IA){let i=tu.keys().next().value;if(i!==void 0)tu.delete(i)}}function AA(r,u,i){let c=Rb.get(r);if(c)return c;let f=u().then((v)=>(MA(r,{data:v,updatedAt:Date.now(),version:i}),v)).finally(()=>{Rb.delete(r)});return Rb.set(r,f),f}function qt(r,u,i){let c=JSON.stringify(r),f=i?.enabled??!0,v=i?.pollMs,{version:p}=pi(),[,b]=Oa.useReducer((B)=>B+1,0),[S,k]=Oa.useState(null),[h,x]=Oa.useState(!1),C=Oa.useRef(u);C.current=u;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),AA(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=tu.get(c);if(B&&B.version>=p)return;let ee=B?_.current+RA-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=tu.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,u,i){let c=cw(u),f=Array.from({length:u.length},()=>0);for(let v of r){let p=c.get(v.timestamp);if(p!==void 0)f[p]+=i(v)}return f}function hn(r,u){let i=cw(u.buckets),c=new Map;for(let k of r){let h=i.get(k.timestamp);if(h===void 0)continue;let x=u.key(k),C=c.get(x);if(!C)C=Array.from({length:u.buckets.length},()=>0),c.set(x,C);C[h]+=u.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=u.limit??Number.POSITIVE_INFINITY,p=f.slice(0,v),b=f.slice(v),S=p.map((k,h)=>({key:k.key,label:u.label?u.label(k.key):k.key,color:u.colors?.get(k.key)??Ha[h%Ha.length],values:k.values}));if(b.length>0){let k=Array.from({length:u.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:to,values:k})}return S}function cw(r){let u=new Map;for(let i=0;i<r.length;i++)u.set(r[i],i);return u}var DA=["main","subagent","advisor"];function Wr(r){return r.totalInputTokens+r.totalOutputTokens+r.totalCacheReadTokens+r.totalCacheWriteTokens}function mw(r){let u=new Map;for(let p of r)u.set(p.agentType,p);let i=DA.map((p)=>u.get(p)).filter((p)=>p!==void 0),c=i.reduce((p,b)=>p+Wr(b),0),f=i.reduce((p,b)=>p+b.totalCost,0),v=i.map((p)=>{let b=Wr(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 hw(r){let u={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},i=new Map;for(let f of r){let v=ya(f.model,f.provider),p=i.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},i.set(v,p);fw(p,f),fw(u,f),p.cost+=f.cost,u.totalCost+=f.cost}u.avgDailyCost=u.activeDays>0?u.totalCost/u.activeDays:0,u.models=[...i.values()].sort((f,v)=>v.cost-f.cost||v.requests-f.requests||f.key.localeCompare(v.key));for(let f of u.models)f.share=u.totalCost>0?f.cost/u.totalCost:0;let c=u.models[0];return u.topModel=c!==void 0&&c.cost>0?c:null,u}function fw(r,u){r.costInput+=u.costInput,r.costOutput+=u.costOutput,r.costCacheRead+=u.costCacheRead,r.costCacheWrite+=u.costCacheWrite,r.requests+=u.requests,r.unpricedRequests+=u.unpricedRequests}function gw(r){let u=new Map;for(let i of r){let c=ya(i.model,i.provider),f=u.get(c);if(!f)f=[],u.set(c,f);f.push({timestamp:i.timestamp,avgTtftSeconds:i.avgTtft!==null?i.avgTtft/1000:null,avgTokensPerSecond:i.avgTokensPerSecond,requests:i.requests})}for(let i of u.values())i.sort((c,f)=>c.timestamp-f.timestamp);return u}var EA=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function yw(r){let u=0,i=0,c=0,f=0,v=0,p=0,b=0,S=0,k=0;for(let C of r){if(u+=C.totalRequests,i+=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=EA.test(C.folder);if(R)h++;return{...C,conversationTokens:C.totalInputTokens+C.totalCacheReadTokens+C.totalCacheWriteTokens+C.totalOutputTokens,requestShare:u>0?C.totalRequests/u:0,costShare:c>0?C.totalCost/c:0,temporary:R}}),totalRequests:u,failedRequests:i,totalCost:c,unpricedRequests:f,conversationTokens:v,cacheRate:p+b>0?b/(p+b):0,maxRequests:S,maxCost:k,temporaryCount:h}}function bw(r){let u=0,i=0,c=0;for(let f of r)u+=f.calls,i+=f.totalTokensShare,c+=f.costShare;return r.map((f)=>({...f,errorRate:f.calls>0?f.errors/f.calls:0,callFraction:u>0?f.calls/u:0,tokenFraction:i>0?f.totalTokensShare/i:0,costFraction:c>0?f.costShare/c:0,avgResultChars:f.calls>0?f.resultChars/f.calls:0}))}function jn(r){if(r.stopReason==="aborted")return"aborted";if(r.stopReason==="error"||r.errorMessage)return"failed";return"ok"}function Mb(r,u){if(r.length===0)return null;return r[Math.min(r.length-1,Math.max(0,Math.ceil(u*r.length)-1))]}function vw(r){let u=0,i=0,c=0,f=0,v=0,p=null,b=null,S=[],k=[];for(let h of r){let x=jn(h);if(x==="failed")u++;else if(x==="aborted")i++;if(c+=h.usage.totalTokens,f+=h.usage.cost.total,Sb(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:u,aborted:i,tokens:c,cost:f,unpriced:v,medianDuration:Mb(S,0.5),p95Duration:Mb(S,0.95),medianTtft:Mb(k,0.5),oldest:p,newest:b}}var pw=180,OA=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,qA=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,BA=/\b[0-9a-f]{12,}\b/gi,NA=/(?<![\w.-])\d+(?:\.\d+)?/g,UA=/^[1-5]\d\d$/;function Ab(r){if(!r?.trim())return"Unknown error";let u=r.replace(/\s+/g," ").trim().replace(OA,"<id>").replace(qA,"<id>").replace(BA,"<hex>").replace(NA,(i)=>UA.test(i)?i:"N");return u.length>pw?`${u.slice(0,pw-1)}…`:u}function Sw(r){let u=new Map;for(let i of r){let c=Ab(i.errorMessage),f=u.get(c);if(!f)f={signature:c,count:0,firstSeen:i.timestamp,lastSeen:i.timestamp,latest:i,models:[],byModel:new Map},u.set(c,f);if(f.count++,i.timestamp<f.firstSeen)f.firstSeen=i.timestamp;if(i.timestamp>f.lastSeen)f.lastSeen=i.timestamp,f.latest=i;let v=ya(i.model,i.provider),p=f.byModel.get(v);if(p)p.count++;else f.byModel.set(v,{model:i.model,provider:i.provider,count:1})}return[...u.values()].map(({byModel:i,...c})=>({...c,models:[...i.values()].sort((f,v)=>v.count-f.count||f.model.localeCompare(v.model))})).sort((i,c)=>c.count-i.count||c.lastSeen-i.lastSeen)}var Me=Y(ce(),1),PA=[{value:"model",label:"By model"},{value:"component",label:"By component"}],zA=6,_A=86400000,Nc=[{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"}],HA=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),FA=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function xw({active:r,range:u}){let i=qt(["costs",u],()=>Ik(u),{enabled:r}),c=na(u),[f,v]=Im.useState("model"),[p,b]=rl(),S=Im.useMemo(()=>i.data?GA(i.data,u):null,[i.data,u]),k=(x)=>x.costSeries.length===0,h=Me.jsxDEV(mt,{title:"No usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return Me.jsxDEV("div",{className:"page",children:[Me.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),Me.jsxDEV(_e,{query:i,skeleton:Me.jsxDEV(Ea,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Me.jsxDEV(VA,{view:S,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"grid grid-main-side",children:[Me.jsxDEV(Ve,{index:1,title:"Daily estimate",description:f==="model"?"Per UTC day, stacked by model":"Per UTC day, stacked by billing component",actions:Me.jsxDEV(za,{size:"sm",options:PA,value:f,onChange:v,"aria-label":"Split by"},void 0,!1,void 0,this),stale:i.stale,children:Me.jsxDEV(_e,{query:i,skeleton:Me.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 Me.jsxDEV("div",{className:"stack",style:{gap:12},children:[Me.jsxDEV(kl,{slots:S.buckets.length,tickLabel:(C)=>HA.format(S.buckets[C]),tooltipTitle:(C)=>FA.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?Me.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Me.jsxDEV("span",{className:"chart-tooltip-label",children:"Unpriced requests"},void 0,!1,void 0,this),Me.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),Me.jsxDEV(Qa,{items:x.map((C)=>({key:C.key,label:C.label,color:C.color,value:sa(jA(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),Me.jsxDEV(Ve,{index:2,title:"Where it went",description:"Estimate by billing component",stale:i.stale,children:Me.jsxDEV(_e,{query:i,skeleton:Me.jsxDEV(Tt,{height:280},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Me.jsxDEV($A,{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),Me.jsxDEV(Ve,{index:3,title:"By model",description:"Estimate per model with its input, output and cache split",stale:i.stale,flush:!0,children:Me.jsxDEV(_e,{query:i,skeleton:Me.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:k,empty:h,children:()=>S&&Me.jsxDEV(zt,{rows:S.summary.models,rowKey:(x)=>x.key,columns:XA(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 GA(r,u){let i=r.costSeries,c=hw(i),f=Tm(c.models.map((k)=>({model:k.model,provider:k.provider,totalRequests:k.requests}))),v=new Map(c.models.map((k)=>[k.key,k])),p=zo(u,i.map((k)=>k.timestamp),_A),b=hn(i,{buckets:p,key:(k)=>ya(k.model,k.provider),label:(k)=>v.get(k)?.model??k,value:(k)=>k.cost,limit:zA,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(i,p,(k)=>k.cost),unpricedPerDay:ba(i,p,(k)=>k.unpricedRequests),modelSeries:b,componentSeries:Nc.map((k)=>({key:k.key,label:k.label,color:k.color,values:ba(i,p,(h)=>h[k.key]).map((h)=>h||null)})),maxModelCost:c.models[0]?.cost??0}}function VA({view:r,stale:u}){let{summary:i}=r,c=i.requests-i.unpricedRequests,f=i.topModel;return Me.jsxDEV("div",{"data-stale":u,children:Me.jsxDEV(aa,{min:180,children:[Me.jsxDEV(fe,{label:"API-equivalent estimate",title:"What this usage would cost at public API rates",value:Ot(i.totalCost,i.unpricedRequests),hint:`${q(i.requests)} requests`,spark:r.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Me.jsxDEV(fe,{label:"Average per day",title:"Estimate ÷ days with any usage",value:Ot(i.avgDailyCost,i.unpricedRequests),hint:`over ${q(i.activeDays)} active day${i.activeDays===1?"":"s"}`},void 0,!1,void 0,this),Me.jsxDEV(fe,{label:"Top model",title:f?`${f.model} (${f.provider})`:void 0,value:f?f.model:"–",hint:f?`${sa(f.cost)} · ${ze(f.share)} of estimate`:"Nothing priced yet"},void 0,!1,void 0,this),Me.jsxDEV(fe,{label:"Per priced request",title:"Estimate ÷ requests that have a public price",value:c>0?Lw(i.totalCost/c):"–",hint:`${q(c)} priced`},void 0,!1,void 0,this),Me.jsxDEV(fe,{label:"Unpriced requests",title:"Subscription usage with no public-equivalent price; excluded from the estimate",value:q(i.unpricedRequests),hint:i.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 $A({summary:r}){return Me.jsxDEV("div",{className:"stack",style:{gap:14},children:[Me.jsxDEV(Zr,{height:10,segments:Nc.map((u)=>({key:u.key,label:u.label,value:r[u.key],color:u.color}))},void 0,!1,void 0,this),Me.jsxDEV("div",{className:"costs-components",children:[Nc.map((u)=>Me.jsxDEV("div",{className:"costs-component-row",children:[Me.jsxDEV("span",{className:"row",children:[Me.jsxDEV(xl,{color:u.color},void 0,!1,void 0,this),u.label]},void 0,!0,void 0,this),Me.jsxDEV("span",{className:"num",children:sa(r[u.key])},void 0,!1,void 0,this),Me.jsxDEV("span",{className:"num dim costs-component-share",children:r.totalCost>0?ze(r[u.key]/r.totalCost):"–"},void 0,!1,void 0,this)]},u.key,!0,void 0,this)),Me.jsxDEV("div",{className:"costs-component-row costs-component-total",children:[Me.jsxDEV("span",{children:"Total"},void 0,!1,void 0,this),Me.jsxDEV("span",{className:"num",children:Ot(r.totalCost,r.unpricedRequests)},void 0,!1,void 0,this),Me.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&&Me.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 XA(r){let u=Nc.map((i)=>({key:i.key,header:i.label,align:"right",sort:(c)=>c[i.key],render:(c)=>Me.jsxDEV("span",{className:"num",children:sa(c[i.key])},void 0,!1,void 0,this)}));return[{key:"model",header:"Model",sort:(i)=>i.model,render:(i)=>Me.jsxDEV(_a,{lead:Me.jsxDEV(xl,{color:r.swatches.get(i.key)??to},void 0,!1,void 0,this),primary:Me.jsxDEV("span",{className:"mono",children:i.model},void 0,!1,void 0,this),secondary:i.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(i)=>i.requests,render:(i)=>Me.jsxDEV("span",{className:"num",children:q(i.requests)},void 0,!1,void 0,this)},{key:"cost",header:"Estimate",title:"API-equivalent estimate at public rates",align:"right",sort:(i)=>i.cost,render:(i)=>Me.jsxDEV(ia,{value:i.cost,max:r.maxModelCost,display:Ot(i.cost,i.unpricedRequests),color:r.swatches.get(i.key)??to},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(i)=>i.share,render:(i)=>Me.jsxDEV("span",{className:"num muted",children:i.cost>0?ze(i.share):"–"},void 0,!1,void 0,this)},{key:"split",header:"Split",title:"Input · output · cache read · cache write",width:150,render:(i)=>i.cost>0?Me.jsxDEV(Zr,{segments:Nc.map((c)=>({key:c.key,label:c.label,value:i[c.key],color:c.color}))},void 0,!1,void 0,this):Me.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...u,{key:"perRequest",header:"Per request",title:"Estimate ÷ priced requests",align:"right",sort:(i)=>i.requests>i.unpricedRequests?i.cost/(i.requests-i.unpricedRequests):-1,render:(i)=>Me.jsxDEV("span",{className:"num",children:i.requests>i.unpricedRequests?Lw(i.cost/(i.requests-i.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:"Unpriced",title:"Requests with no public-equivalent price",align:"right",sort:(i)=>i.unpricedRequests,render:(i)=>i.unpricedRequests>0?Me.jsxDEV("span",{className:"num tone-warn",children:q(i.unpricedRequests)},void 0,!1,void 0,this):Me.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function Lw(r){return r>0&&r<0.0001?"<$0.0001":sa(r)}function jA(r){let u=0;for(let i of r)u+=i??0;return u}var Yn=Y(ut(),1);var Se=Y(ce(),1),Db=[50,200,1000];function Cw({active:r,range:u,onRequestClick:i}){let[c,f]=Yn.useState(0),v=Db[c],p=qt(["errors",u,v],()=>Rk(u,v),{enabled:r}),[b,S]=Yn.useState(null),[k,h]=Yn.useState(null),[x,C]=Yn.useState(""),R=na(u),L=Yn.useMemo(()=>{let W=(p.data??[]).map((qe)=>({row:qe,signature:Ab(qe.errorMessage)})),X=Sw(p.data??[]),ge=new Map;for(let{row:qe}of W){let te=ya(qe.model,qe.provider),ve=ge.get(te);if(ve)ve.count++;else ge.set(te,{model:qe.model,provider:qe.provider,count:1})}let Be=[...ge.entries()].map(([qe,te])=>({key:qe,...te})).sort((qe,te)=>te.count-qe.count||qe.model.localeCompare(te.model)),Ce=W.reduce((qe,{row:te})=>!qe||te.timestamp>qe.timestamp?te:qe,null);return{rows:W,groups:X,models:Be,newest:Ce}},[p.data]),D=L.groups.some((W)=>W.signature===b)?b:null,_=L.models.some((W)=>W.key===k)?k:null,z=Yn.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<Db.length?Db[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=Yn.useMemo(()=>YA(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?nl(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(QA,{group:W,onRequestClick:i},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(qc,{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(ol,{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(ol,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Se.jsxDEV(dn,{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&&i(W.id),columns:ZA,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 YA(r){return[{key:"signature",header:"Signature",wrap:!0,sort:(u)=>u.signature,render:(u)=>Se.jsxDEV("span",{className:"errors-signature",title:u.latest.errorMessage??void 0,children:u.signature},void 0,!1,void 0,this)},{key:"models",header:"Models",sort:(u)=>u.models.length,render:(u)=>Se.jsxDEV(_a,{primary:Se.jsxDEV("span",{className:"mono",children:u.models[0]?.model},void 0,!1,void 0,this),secondary:u.models.length>1?`+${u.models.length-1} more`:u.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:"Last seen",sort:(u)=>u.lastSeen,render:(u)=>Se.jsxDEV("span",{className:"muted",title:nl(u.lastSeen),children:ua(u.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:"Failures",align:"right",width:120,sort:(u)=>u.count,render:(u)=>Se.jsxDEV(ia,{value:u.count,max:r,display:q(u.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function QA({group:r,onRequestClick:u}){let i=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 ",nl(r.firstSeen)," · last"," ",nl(r.lastSeen)]},void 0,!0,void 0,this),i!==void 0&&Se.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>u(i),children:["Open latest ",Se.jsxDEV(mc,{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:Re(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 ZA=[{key:"time",header:"When",width:120,sort:(r)=>r.timestamp,render:(r)=>Se.jsxDEV("span",{className:"muted",title:nl(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:fn(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:Qr(r,4)},void 0,!1,void 0,this)}];var It=Y(ut(),1);var j=Y(ce(),1),WA=1000,Rm=50,Ob=0.5,Uc="*";function ww({active:r,range:u}){let[i,c]=It.useState(!1),f=qt(["frustration",u],()=>Dk(u),{enabled:r,pollMs:i?WA:void 0}),v=na(u),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(KA,{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(JA,{active:r,range:u,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(i2,{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 wl(r,u){return u>0?ze(r/u):"–"}function Eb(r){return r instanceof Error?r.message:String(r)}function Tw(r){let u=Math.max(0,Math.floor(r/1000)),i=Math.floor(u/60),c=u%60;return i>0?`${i}m ${String(c).padStart(2,"0")}s`:`${c}s`}function KA({overall:r}){let u=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:wl(r.judged,r.messages),hint:`${q(r.judged)} judged · ${q(u)} regex`},void 0,!1,void 0,this),j.jsxDEV(fe,{label:"Annoyed",title:"Messages annoyed at any target",value:wl(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:wl(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:wl(r.angry,r.messages),hint:`${q(r.angry)} messages`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var kw="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 JA({active:r,range:u,judgeAvailable:i,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=u;k({status:"loading"}),R(null),z(null),b(!0),Ek(ge,X.signal).then((Be)=>{if(!X.signal.aborted)k({status:"ready",estimate:Be,range:ge})},(Be)=>{if(!X.signal.aborted)k({status:"error",message:Eb(Be)})})},B=async()=>{if(S.status!=="ready")return;x(!0),R(null);try{await Ok(S.range),N(),f()}catch(X){R(Eb(X))}finally{x(!1)}},ee=async()=>{D(!0),z(null);try{await qk(),v()}catch(X){z(Eb(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(e2,{job:c,judgeAvailable:i},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:!i||K,title:!i?kw:K?"A judge run is in progress":"Quote the cost of judging every unjudged message in range",children:[j.jsxDEV(ln,{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(a2,{job:c,cancelling:L,onCancel:ee},void 0,!1,void 0,this):j.jsxDEV(o2,{job:c},void 0,!1,void 0,this),!i&&j.jsxDEV("p",{className:"micro dim",children:kw},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(Yk,{open:p,title:"Classify with judge",onClose:N,primaryAction:W,children:[j.jsxDEV(t2,{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 e2({job:r,judgeAvailable:u}){switch(r.state){case"running":return j.jsxDEV(wt,{tone:"ok",children:[j.jsxDEV(sn,{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:u?"Not run yet":"Regex only"},void 0,!1,void 0,this)}}function t2({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 u=r.estimate;if(!u.available)return j.jsxDEV("p",{children:u.reason},void 0,!1,void 0,this);if(u.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(u.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),j.jsxDEV(Ho,{items:[{key:"messages",label:"Unjudged unique messages",value:q(u.messages)},{key:"chars",label:"Prose characters",value:q(u.chars)},{key:"tokens",label:"Estimated input tokens",value:q(u.inputTokens)},{key:"judge",label:"Judge",value:u.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 a2({job:r,cancelling:u,onCancel:i}){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:ze(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:i,disabled:u,children:u?"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 ",Tw(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 o2({job:r}){let u=`${q(r.done)}/${q(r.total)} messages`,i=r.failed>0?`, ${q(r.failed)} failed`:"",c=r.judge?` with ${r.judge}`:"",f=r.startedAt!==null&&r.finishedAt!==null?` in ${Tw(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 ",u,i,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 ",u,i,"; 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 ",u,i,": ",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 zc(r){return`${r.modelClass}/${r.family??"unclassified"}`}function xi(r){return r.messages>0&&r.judged/r.messages<Ob}function l2(r){let u=2166136261;for(let i=0;i<r.length;i++)u^=r.charCodeAt(i),u=Math.imul(u,16777619);return u>>>0}function n2(r){let u=[...new Set(r.map(zc))].sort(),i=new Set,c=new Map;for(let f of u){let v=l2(f)%Ha.length;for(let p=0;p<Ha.length&&i.has(v);p++)v=(v+1)%Ha.length;i.add(v),c.set(f,Ha[v])}return c}function r2(r,u){if(u==="angry")return`color-mix(in srgb, ${r} 55%, black)`;if(u==="other")return`color-mix(in srgb, ${r} 32%, transparent)`;return r}var s2=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function u2(r,u){if(u==="angry")return r.angry;if(u==="assistant")return r.atAssistant-r.angry;return r.annoyed-r.atAssistant}function Pc(r,u){return u>0?r/u*100:0}function i2({models:r,stale:u}){let[i,c]=It.useState(null),[f,v]=rl(),[p,b]=It.useState(!1),[S,k]=It.useState(!1),h=It.useMemo(()=>n2(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??Uc},[x]),R=i!==null&&(i===Uc||x.has(i))?i:C,L=It.useMemo(()=>[{value:Uc,label:"All",title:"Every model class"},...[...x].map(([B,ee])=>({value:B,label:B,title:`${q(ee)} messages`}))],[x]),D=It.useMemo(()=>R===Uc?r:r.filter((B)=>B.modelClass===R),[r,R]),_=It.useMemo(()=>{let B=new Map;for(let ee of D){let Z=zc(ee),W=B.get(Z);if(W){W.messages+=ee.messages;continue}let X=ee.family??"unclassified";B.set(Z,{key:Z,label:R===Uc?`${ee.modelClass} · ${X}`:X,messages:ee.messages})}return[...B.values()]},[D,R]),z=It.useMemo(()=>D.filter((B)=>!f.has(zc(B))),[D,f]),F=z.filter((B)=>B.messages<Rm).length,K=z.filter(xi).length,N=It.useMemo(()=>z.filter((B)=>(p||B.messages>=Rm)&&!(S&&xi(B))),[z,p,S]);if(r.length===0)return j.jsxDEV(Ve,{index:2,title:"Frustration by model version",stale:u,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(xi);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:u,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 ${Rm} 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 < ",Rm," messages",F>0?` (${F})`:""]},void 0,!0,void 0,this),j.jsxDEV("label",{className:"check",title:`Hide models with under ${Ob*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(d2,{hasRegexRows:oe},void 0,!1,void 0,this),j.jsxDEV(c2,{rows:N,familyColors:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),j.jsxDEV(f2,{rows:N,familyColors:h,stale:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function d2({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 ${Ob*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 c2({rows:r,familyColors:u}){let i=It.useMemo(()=>{let c=new Map;r.forEach((v,p)=>{let b=zc(v),S=xi(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 s2)for(let[p,b]of c){let S=r.map(()=>null);for(let k of b.slots)S[k]=Pc(u2(r[k],v.key),r[k].messages);f.push({key:`${v.key}|${p}`,label:v.label,color:r2(u.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)=>Pc(v.atAssistant,v.messages)),kind:"line",tooltip:!1}),f},[r,u]);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(kl,{slots:r.length,tickLabel:(c)=>r[c].label,series:i,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:wl(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)," (",wl(f.judged,f.messages),")",xi(f)?" · mostly regex fallback":""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}},void 0,!1,void 0,this)}function f2({rows:r,familyColors:u,stale:i}){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:u.get(zc(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)=>xi(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:wl(f.judged,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):j.jsxDEV("span",{className:"num",children:wl(f.judged,f.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:"Annoyed",align:"right",sort:(f)=>Pc(f.annoyed,f.messages),render:(f)=>j.jsxDEV("span",{className:"num",title:`${q(f.annoyed)} messages`,children:wl(f.annoyed,f.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:"At assistant",align:"right",sort:(f)=>Pc(f.atAssistant,f.messages),render:(f)=>j.jsxDEV("span",{className:"num",title:`${q(f.atAssistant)} messages`,children:wl(f.atAssistant,f.messages)},void 0,!1,void 0,this)},{key:"angry",header:"Angry",align:"right",sort:(f)=>Pc(f.angry,f.messages),render:(f)=>j.jsxDEV("span",{className:f.angry>0?"num tone-bad":"num",title:`${q(f.angry)} messages`,children:wl(f.angry,f.messages)},void 0,!1,void 0,this)}],[u]);return j.jsxDEV(Ve,{index:3,title:"Model versions",description:"Rates are shares of user messages; rows follow the chart filters.",flush:!0,stale:i,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 _c=Y(ut(),1);var xt=Y(ce(),1),p2=86400000,m2={snapcompact:"Snapcompact"},h2=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function Iw({active:r,range:u}){let[i,c]=_c.useState(null),f=qt(["gain",u,i],()=>Nk(u,i),{enabled:r}),v=na(u),p=f.data,b=_c.useMemo(()=>{let R=(p?.timeSeries??[]).map((F)=>({...F,timestamp:Date.parse(`${F.date}T00:00:00Z`)})),L=zo(u,R.map((F)=>F.timestamp),p2),D=ba(R,L,(F)=>F.snapcompact),_=0,z=D.map((F)=>_+=F);return{buckets:L,daily:D,cumulative:z}},[p,u]),S=_c.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=i!==null&&!k.includes(i)?[i,...k]:k,x=i?` for ${i}`:"",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:i??"",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:u==="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:Re(R.savedTokens),hint:q(R.savedTokens),spark:b.daily},void 0,!1,void 0,this),xt.jsxDEV(fe,{label:"Saved bytes",value:xb(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?ze(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?Re(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(kl,{slots:b.buckets.length,tickLabel:(L)=>h2.format(b.buckets[L]),series:C,height:260,formatTooltip:q,formatRight:Re},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:g2},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 g2=[{key:"source",header:"Source",sort:(r)=>r.source,render:(r)=>xt.jsxDEV("span",{className:"cell-primary",children:m2[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:Re(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:ze(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:xb(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?ze(r.reductionPercent):"–"},void 0,!1,void 0,this)}];var Hc=Y(ut(),1);var Le=Y(ce(),1),y2=[{value:"share",label:"Share"},{value:"requests",label:"Requests"}],b2=6;function Mw({active:r,range:u}){let i=qt(["models",u],()=>Tk(u),{enabled:r}),c=na(u),[f,v]=Hc.useState("share"),[p,b]=rl(),[S,k]=Hc.useState(null),h=Hc.useMemo(()=>i.data?v2(i.data,u):null,[i.data,u]),x=C2(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:i,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":i.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?`${ze(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:y2,value:f,onChange:v,"aria-label":"Share chart mode"},void 0,!1,void 0,this),stale:i.stale,children:Le.jsxDEV(_e,{query:i,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(Xn,{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)=>ze(L,0):Re,formatTooltip:f==="share"?(L)=>ze(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:ze(Rw(L.values)/Math.max(1,Rw(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:i.stale,flush:!0,children:Le.jsxDEV(_e,{query:i,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:x2(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(L2,{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 v2(r,u){let i=r.byModel,c=Tm(i),f=S2(i),v=zo(u,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=hn(r.modelSeries,{...b,limit:b2}).map((_)=>({..._,values:_.values.map((z)=>z||null)})),k=S.map((_)=>({..._,values:_.values.map((z,F)=>z===null?null:z/p[F])})),h=new Map(hn(r.modelSeries,b).map((_)=>[_.key,_.values])),x,C=0,R=0,L=0,D=0;for(let _ of i){if(!x||_.totalRequests>x.totalRequests)x=_;C+=_.totalRequests,R+=_.failedRequests,L+=_.totalCost,D+=_.unpricedRequests}return{models:i,top:x,swatches:new Map(S.filter((_)=>_.key!=="__other__").map((_)=>[_.key,_.color])),labels:f,providerCount:new Set(i.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:gw(r.modelPerformanceSeries)}}function S2(r){let u=new Map;for(let i of r)u.set(i.model,(u.get(i.model)??0)+1);return new Map(r.map((i)=>[ya(i.model,i.provider),(u.get(i.model)??0)>1?`${i.model} · ${i.provider}`:i.model]))}function x2(r,u,i){return[{key:"expand",header:"",width:28,render:(c)=>Le.jsxDEV("span",{className:"models-chevron","data-open":ya(c.model,c.provider)===u,children:Le.jsxDEV(Sl,{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(xl,{color:r.swatches.get(ya(c.model,c.provider))??to},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))??to},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)=>Wr(c),render:(c)=>{let f=Wr(c);return Le.jsxDEV("span",{className:"num",title:q(f),children:Re(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:ze(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:un(c.errorRate),mono:!0,children:eo(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:cn(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 ${i}`,width:112,render:(c)=>{let f=ya(c.model,c.provider),v=r.trends.get(f);return v?Le.jsxDEV(yi,{values:v.map((p)=>p??0),color:r.swatches.get(f)??to,width:96,height:22},void 0,!1,void 0,this):Le.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function L2({model:r,color:u,points:i,bucketMs:c,bucketWord:f}){let[v,p]=rl(),b=[{key:"tps",label:"Tokens/s",color:u,kind:i.length>1?"line":"bars",values:i.map((S)=>S.avgTokensPerSecond)},{key:"ttft",label:"TTFT",color:to,kind:i.length>1?"line":"bars",axis:"right",dashed:!0,values:i.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(Ho,{items:[{key:"err",label:"Error rate",value:Le.jsxDEV("span",{className:`tone-${un(r.errorRate)}`,children:[eo(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:ze(r.cacheRate)},{key:"savings",label:"Cache savings",value:Le.jsxDEV("span",{className:r.cacheSavings<0?"tone-bad":void 0,children:ze(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(Ho,{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:cn(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(Ho,{items:[{key:"in",label:"Uncached input",value:Re(r.totalInputTokens)},{key:"cr",label:"Cache read",value:Re(r.totalCacheReadTokens)},{key:"cw",label:"Cache write",value:Re(r.totalCacheWriteTokens)},{key:"out",label:"Output",value:Re(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),i.length===0?Le.jsxDEV(mt,{title:"No performance samples",hint:"Timing is recorded for streamed responses."},void 0,!1,void 0,this):Le.jsxDEV(Xn,{buckets:i.map((S)=>S.timestamp),bucketMs:c,series:b,hidden:v,stacked:!1,height:240,format:Re,formatTooltip:(S)=>`${cn(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(i[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 C2(r){if(r<3600000)return"5 minutes";if(r<86400000)return"hour";return"day"}function Rw(r){let u=0;for(let i of r)u+=i??0;return u}var Mm=Y(ut(),1);var Ie=Y(ce(),1),k2=[{value:"requests",label:"Requests"},{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],Aw={main:"Main agent",subagent:"Subagents",advisor:"Advisor"},Dw={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},Ew=[{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 Ow({active:r,range:u,onRequestClick:i}){let c=qt(["overview",u],()=>wk(u),{enabled:r}),f=qt(["recent-requests"],()=>hm(12),{enabled:r}),[v,p]=Mm.useState("requests"),b=na(u),S=Mm.useMemo(()=>{let h=c.data?.timeSeries??[],x=zo(u,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,u]),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:Re(Wr(h)),hint:`${Re(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:ze(h.cacheRate),hint:`${ze(h.cacheSavings)} saved`},void 0,!1,void 0,this),Ie.jsxDEV(fe,{label:"Error rate",value:eo(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:Re(h.totalInputTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Cache read",value:Re(h.totalCacheReadTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Cache write",value:Re(h.totalCacheWriteTokens)},void 0,!1,void 0,this),Ie.jsxDEV(fe,{size:"sm",label:"Output",value:Re(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:cn(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:k2,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(Xn,{buckets:S.buckets,bucketMs:b.bucketMs,series:k,height:260,format:v==="cost"?(h)=>Ot(h,0):Re},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=Wr(h),L=mw(x);return Ie.jsxDEV("div",{className:"stack",style:{gap:18},children:[Ie.jsxDEV("div",{className:"stack",style:{gap:10},children:[Ie.jsxDEV(Zr,{segments:Ew.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:Ew.map((D)=>({key:D.key,label:D.label,color:D.color,value:R>0?ze(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(Zr,{segments:L.segments.map((D)=>({key:D.agentType,label:Aw[D.agentType],value:D.tokens,color:Dw[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:Dw[D.agentType]}},void 0,!1,void 0,this),Aw[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:Re(D.tokens)},void 0,!1,void 0,this),Ie.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:ze(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(sn,{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=${u}`,children:["All requests ",Ie.jsxDEV(pc,{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&&i(x.id),columns:w2,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 w2=[{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:Qr(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 Tl=Y(ut(),1);var He=Y(ce(),1),T2=100,qw=8;function Bw({active:r,range:u}){let i=qt(["projects",u],()=>Bk(u),{enabled:r}),[c,f]=Tl.useState(""),[v,p]=Tl.useState(!0),b=Tl.useDeferredValue(c.trim().toLowerCase()),S=na(u),k=Tl.useMemo(()=>yw(i.data??[]),[i.data]),h=Tl.useMemo(()=>v?k.rows.filter((D)=>!D.temporary):k.rows,[k,v]),x=Tl.useMemo(()=>b?h.filter((D)=>D.folder.toLowerCase().includes(b)):h,[h,b]),C=Tl.useMemo(()=>({cost:[...h].sort((D,_)=>_.totalCost-D.totalCost).slice(0,qw),requests:[...h].sort((D,_)=>_.totalRequests-D.totalRequests).slice(0,qw)}),[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=Tl.useMemo(()=>I2(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:i,skeleton:He.jsxDEV(Tt,{height:96},void 0,!1,void 0,this),children:()=>He.jsxDEV("div",{"data-stale":i.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:Re(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:ze(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:i.stale,children:He.jsxDEV(_e,{query:i,skeleton:He.jsxDEV(Tt,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.cost.length===0,empty:R,children:()=>He.jsxDEV(qc,{items:C.cost.map((D)=>({key:D.folder,label:He.jsxDEV("span",{className:"mono",children:fn(D.folder)},void 0,!1,void 0,this),value:D.totalCost,display:`${Ot(D.totalCost,D.unpricedRequests)} · ${ze(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:i.stale,children:He.jsxDEV(_e,{query:i,skeleton:He.jsxDEV(Tt,{height:236},void 0,!1,void 0,this),isEmpty:()=>C.requests.length===0,empty:R,children:()=>He.jsxDEV(qc,{items:C.requests.map((D)=>({key:D.folder,label:He.jsxDEV("span",{className:"mono",children:fn(D.folder)},void 0,!1,void 0,this),value:D.totalRequests,display:`${q(D.totalRequests)} · ${ze(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:i.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(dn,{value:c,onChange:f,placeholder:"Filter folders…",width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:i.stale,children:He.jsxDEV(_e,{query:i,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:T2,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 I2(r,u){return[{key:"folder",header:"Folder",sort:(i)=>i.folder,render:(i)=>He.jsxDEV("span",{className:"row projects-folder",title:i.folder||"(root)",children:[He.jsxDEV("span",{className:"mono truncate",children:fn(i.folder)},void 0,!1,void 0,this),i.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:(i)=>i.totalRequests,render:(i)=>He.jsxDEV("span",{title:`${ze(i.requestShare)} of all requests`,children:He.jsxDEV(ia,{value:i.totalRequests,max:r,display:q(i.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:(i)=>i.totalCost,render:(i)=>He.jsxDEV("span",{title:`${ze(i.costShare)} of all cost`,children:He.jsxDEV(ia,{value:i.totalCost,max:u,display:Ot(i.totalCost,i.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:(i)=>i.conversationTokens,render:(i)=>He.jsxDEV("span",{className:"num",title:q(i.conversationTokens),children:Re(i.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(i)=>i.cacheRate,render:(i)=>He.jsxDEV("span",{className:"num",children:ze(i.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:(i)=>i.cacheSavings,render:(i)=>He.jsxDEV("span",{className:`num ${i.cacheSavings<0?"tone-bad":"muted"}`,children:ze(i.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(i)=>i.errorRate,render:(i)=>He.jsxDEV("span",{title:`${q(i.failedRequests)} failed`,children:He.jsxDEV(wt,{tone:i.failedRequests>0?un(i.errorRate):"neutral",mono:!0,children:eo(i.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:"Avg duration",align:"right",sort:(i)=>i.avgDuration??-1,render:(i)=>He.jsxDEV("span",{className:"num",children:vt(i.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:"Last active",align:"right",sort:(i)=>i.lastTimestamp,render:(i)=>He.jsxDEV("span",{className:"dim",children:ua(i.lastTimestamp)},void 0,!1,void 0,this)}]}var fo=Y(ut(),1);var J=Y(ce(),1),R2=[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost",title:"API-equivalent estimate"},{value:"requests",label:"Requests"}],Nw=6,Uw=[{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)"}],Pw="Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, omp usage).";function zw({active:r,range:u}){let i=qt(["providers",u],()=>Pk(u),{enabled:r}),[c,f]=fo.useState("tokens"),[v,p]=rl(),b=na(u),S=qt(["provider-windows",u],()=>bb(u,null),{enabled:r}),[k,h]=fo.useState(null),x=M2(S.data?.windowInsights??[],k),C=x?.provider??null,R=qt(["provider-windows",u,C],()=>bb(u,C),{enabled:r&&C!==null}),L=fo.useMemo(()=>{let F=i.data?.providers??[],K=i.data?.series??[],N=Bc(F.map((Z)=>({key:Z.provider,weight:Z.totalTokens}))),oe=zo(u,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)=>hn(K,{buckets:oe,key:(W)=>W.provider,value:Z,limit:Nw,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)}},[i.data,u]),D=L.burn[c],_=c==="cost"?(F)=>sa(F):Re,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:i,skeleton:J.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:({providers:F})=>J.jsxDEV("div",{"data-stale":i.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:Re(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:eo(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:i.stale,children:J.jsxDEV(_e,{query:i,skeleton:J.jsxDEV(ra,{rows:6},void 0,!1,void 0,this),children:({providers:F})=>J.jsxDEV(A2,{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 ${Nw} providers stacked`,actions:J.jsxDEV(za,{size:"sm",options:R2,value:c,onChange:f},void 0,!1,void 0,this),stale:i.stale,children:J.jsxDEV(_e,{query:i,skeleton:J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),children:()=>J.jsxDEV("div",{className:"stack",style:{gap:12},children:[J.jsxDEV(Xn,{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:i,skeleton:J.jsxDEV(Tt,{height:320},void 0,!1,void 0,this),children:({hourly:F,providers:K})=>J.jsxDEV(E2,{hourly:F,providers:K,stale:i.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(O2,{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(P2,{insights:S.data?.windowInsights??null,accounts:R,selected:x,onSelect:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function M2(r,u){if(u&&r.some((c)=>c.provider===u.provider&&c.windowKey===u.windowKey))return u;let i=u&&r.find((c)=>c.provider===u.provider)||r.reduce((c,f)=>c===void 0||f.fractionConsumed>c.fractionConsumed?f:c,void 0);return i?{provider:i.provider,windowKey:i.windowKey}:null}function A2({providers:r,colors:u}){let[i,c]=fo.useState(null),f=fo.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(xl,{color:u.get(S.provider)??to},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?un(k):"neutral",mono:!0,children:eo(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:Re(S.totalTokens),color:u.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:ze(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:cn(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,u]);return J.jsxDEV(zt,{rows:r,rowKey:(v)=>v.provider,columns:f,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:i,onRowClick:(v)=>c((p)=>p===v.provider?null:v.provider),expanded:(v)=>v.provider===i?J.jsxDEV(D2,{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 D2({provider:r}){let u={input:r.totalInputTokens,cacheRead:r.totalCacheReadTokens,cacheWrite:r.totalCacheWriteTokens,output:r.totalOutputTokens};return J.jsxDEV("div",{className:"providers-mix",children:[J.jsxDEV(Zr,{segments:Uw.map((i)=>({key:i.key,label:i.label,value:u[i.key],color:i.color}))},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:Uw.map((i)=>({key:i.key,label:i.label,color:i.color,value:`${Re(u[i.key])} · ${r.totalTokens>0?ze(u[i.key]/r.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Fc="";function E2({hourly:r,providers:u,stale:i}){let[c,f]=fo.useState(Fc),v=c===Fc||u.some((S)=>S.provider===c)?c:Fc,p=fo.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!==Fc&&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:Fc,children:"All providers"},void 0,!1,void 0,this),u.map((S)=>J.jsxDEV("option",{value:S.provider,children:S.provider},S.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:i,children:J.jsxDEV(kl,{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 O2({insights:r,selected:u,onSelect:i}){return J.jsxDEV(zt,{rows:r,rowKey:(c)=>`${c.provider}::${c.windowKey}`,columns:q2,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:u?`${u.provider}::${u.windowKey}`:null,onRowClick:(c)=>i({provider:c.provider,windowKey:c.windowKey}),empty:J.jsxDEV(mt,{title:"No usage snapshots in this range",hint:Pw},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var q2=[{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:Re(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 u=r.accounts>0?r.peakConcurrentFraction/r.accounts:0;return J.jsxDEV(ia,{value:r.peakConcurrentFraction,max:r.accounts,display:ze(r.peakConcurrentFraction,0),color:u>=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)}],Am=60000,Qn=60*Am,Dm=24*Qn,B2=[5*Am,15*Am,30*Am,Qn,2*Qn,3*Qn,6*Qn,12*Qn,Dm],N2=240,U2=6*Qn;function P2({insights:r,accounts:u,selected:i,onSelect:c}){let[f,v]=rl(),p=fo.useMemo(()=>[...new Set((r??[]).map((L)=>L.provider))],[r]),b=fo.useMemo(()=>(r??[]).filter((L)=>L.provider===i?.provider).map((L)=>({key:L.windowKey,label:L.windowLabel})),[r,i?.provider]),S=fo.useMemo(()=>(u.data?.usageSeries??[]).filter((L)=>L.provider===i?.provider),[u.data,i?.provider]),k=S.length===0&&(u.loading||u.stale),h=fo.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=fo.useMemo(()=>z2(S.filter((L)=>L.windowKey===i?.windowKey),h),[S,h,i?.windowKey]),C=fo.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===i?.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,i?.windowKey]),R=b.find((L)=>L.key===i?.windowKey)?.label;return J.jsxDEV(Ve,{index:5,title:"Window utilization",description:x.buckets.length>0?`${R??"Window"} used fraction per account, ${nn(new Date(x.first),"MMM d HH:mm")} – ${nn(new Date(x.last),"MMM d HH:mm")}`:"Recorded limit utilization per account",actions:i&&J.jsxDEV("div",{className:"row",style:{gap:6},children:[J.jsxDEV("select",{className:"input providers-select",value:i.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:i.windowKey,onChange:(L)=>c({provider:i.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:u.stale,children:r===null?J.jsxDEV(Tt,{height:260},void 0,!1,void 0,this):i===null?J.jsxDEV(mt,{title:"No usage snapshots in this range",hint:Pw},void 0,!1,void 0,this):J.jsxDEV(_e,{query:u,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(kl,{slots:x.buckets.length,tickLabel:(L)=>mm(x.buckets[L],x.last-x.first>Dm?Dm:x.bucketMs),tooltipTitle:(L)=>pm(x.buckets[L],Qn),series:x.series,hidden:f,kind:"line",stacked:!1,height:260,yMax:Math.max(1,x.max),format:(L)=>ze(L,0),formatTooltip:(L)=>ze(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:H2,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 z2(r,u){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:c}=Number;for(let R of r)for(let L of R.points){if(L.timestamp<i)i=L.timestamp;if(L.timestamp>c)c=L.timestamp}if(!(c>=i))return{buckets:[],bucketMs:Qn,first:0,last:0,max:0,series:[],exhausted:[]};let f=c-i,v=B2.find((R)=>f/R<N2)??Dm,p=zo("all",[i],v,c),b=(R)=>Math.floor((R-p[0])/v),S=p.map(()=>[]),k=0,h=(R)=>u.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<=U2)D[K]=z;return{key:R.accountKey,label:h(R),color:Ha[L%Ha.length],values:D}});return{buckets:p,bucketMs:v,first:i,last:c,max:k,series:C,exhausted:S}}function _2(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 H2=[{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(xl,{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:ze(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)=>_2(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?"–":ze(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 au=Y(ut(),1);var Je=Y(ce(),1),Em={ok:{label:"OK",tone:"ok"},aborted:{label:"Aborted",tone:"warn"},failed:{label:"Failed",tone:"bad"}};function _w({id:r,onClose:u}){let i=qt(["request",r],()=>Mk(r??0),{enabled:r!==null}),c=i.stale?null:i.data,f=c?Em[jn(c)]:null;return Je.jsxDEV(ym,{open:r!==null,onClose:u,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:nl(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:km({...Oc(window.location.hash),section:"traces",session:c.sessionFile}),onClick:u,title:"Open this request's session in the trace view",children:[Je.jsxDEV(Sc,{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(F2,{details:c,aborted:jn(c)==="aborted"},void 0,!1,void 0,this):i.error?Je.jsxDEV(vi,{error:i.error,onRetry:i.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 F2({details:r,aborted:u}){let{usage:i}=r,c=r.duration!==null&&r.duration>0&&i.output>0?i.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":u?"warn":"bad",role:"note",children:[Je.jsxDEV("div",{className:"request-drawer-error-label",children:u?"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(Ho,{items:[{key:"at",label:"Started",value:nl(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:cn(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(Ho,{items:[{key:"input",label:"Uncached input",value:q(i.input)},{key:"cacheRead",label:"Cache read",value:q(i.cacheRead)},{key:"cacheWrite",label:"Cache write",value:q(i.cacheWrite)},{key:"output",label:"Output",value:q(i.output)},{key:"total",label:"Total",value:q(i.totalTokens)},{key:"premium",label:"Premium requests",value:q(Math.round((i.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(Ho,{items:[{key:"total",label:"Total",value:Qr(r,4)},{key:"input",label:"Input",value:sa(i.cost.input,4)},{key:"cacheRead",label:"Cache read",value:sa(i.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:sa(i.cost.cacheWrite,4)},{key:"output",label:"Output",value:sa(i.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(Ho,{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:fn(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),v!=null&&Je.jsxDEV(mi,{data:v,title:"Output message"},void 0,!1,void 0,this),Je.jsxDEV(mi,{data:f,title:"Session entry",initialCollapsed:!0},void 0,!1,void 0,this),Je.jsxDEV(mi,{data:p,title:"Stats row",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Qe=Y(ce(),1),qb=[500,2000,1e4];function Hw({active:r,range:u,onRequestClick:i}){let[c,f]=au.useState(0),v=qb[c],p=qt(["requests-log",v],()=>hm(v),{enabled:r}),[b,S]=au.useState(""),[k,h]=au.useState("all"),x=na(u),C=au.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[jn(W)]++;return{loaded:N.length,inRange:B,complete:ee,counts:Z,summary:vw(B)}},[p.data,p.stale,v,x.spanMs]),R=au.useMemo(()=>{let N=b.trim().toLowerCase();return C.inRange.filter((oe)=>(k==="all"||jn(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<qb.length?qb[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":Em[N].label," ",Qe.jsxDEV("span",{className:"dim num",children:Re(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?eo(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:Re(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(dn,{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?"–":nl(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&&i(N.id),columns:G2,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 G2=[{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:nl(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:fn(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:Re(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:Re(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:Re(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:Qr(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)=>jn(r),render:(r)=>{let u=Em[jn(r)];return Qe.jsxDEV("span",{title:r.errorMessage??void 0,children:Qe.jsxDEV(_a,{lead:Qe.jsxDEV(sn,{tone:u.tone},void 0,!1,void 0,this),primary:u.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 lu=Y(ut(),1);var be=Y(ce(),1),V2=[{value:"calls",label:"Calls"},{value:"errors",label:"Errors"}],Fw=6,ou="Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls",Bb=be.jsxDEV(mt,{title:"No tool calls in this range"},void 0,!1,void 0,this);function Gw({active:r,range:u}){let i=qt(["tools",u],()=>Uk(u),{enabled:r}),[c,f]=lu.useState("calls"),[v,p]=rl(),[b,S]=lu.useState(null),k=na(u),h=lu.useMemo(()=>$2(i.data,u),[i.data,u]),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:i,skeleton:be.jsxDEV(Tt,{height:112},void 0,!1,void 0,this),children:()=>{let L=h.totals;return be.jsxDEV("div",{"data-stale":i.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:eo(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:ou,value:Re(Math.round(L.tokens)),hint:`${Re(Math.round(L.output))} output`},void 0,!1,void 0,this),be.jsxDEV(fe,{label:"Attributed cost",title:`${ou}; 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:`${Re(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:`${Re(L.argsChars)} chars`},void 0,!1,void 0,this),be.jsxDEV(fe,{size:"sm",label:"Avg result per call",value:`${Re(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:`${Re(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 ${Fw} tools stacked`,actions:be.jsxDEV(za,{size:"sm",options:V2,value:c,onChange:f},void 0,!1,void 0,this),stale:i.stale,children:be.jsxDEV(_e,{query:i,skeleton:be.jsxDEV(Tt,{height:260},void 0,!1,void 0,this),isEmpty:R,empty:Bb,children:()=>be.jsxDEV("div",{className:"stack",style:{gap:12},children:[be.jsxDEV(Xn,{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:Re(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:`${ou}. Select a tool to break it down by model.`,flush:!0,stale:i.stale,children:be.jsxDEV(_e,{query:i,skeleton:be.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:R,empty:Bb,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:i.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(ol,{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:i,skeleton:be.jsxDEV(ra,{rows:8},void 0,!1,void 0,this),isEmpty:R,empty:Bb,children:(L)=>be.jsxDEV(j2,{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 $2(r,u){let i=r?.byTool??[],c=r?.series??[],f=bw(i).sort((R,L)=>L.calls-R.calls),v=Bc(i.map((R)=>({key:R.tool,weight:R.calls}))),p=zo(u,c.map((R)=>R.timestamp)),b={calls:0,errors:0,tools:i.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let R of i)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)=>hn(c,{buckets:p,key:(L)=>L.tool,value:R,limit:Fw,colors:v}).map((L)=>({...L,values:L.values.map((D)=>D||null)}))),h=new Map(hn(c,{buckets:p,key:(R)=>R.tool,value:(R)=>R.calls}).map((R)=>[R.key,R.values])),x=f[0]?.calls??0,C=X2(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 X2(r,u,i){return[{key:"tool",header:"Tool",sort:(c)=>c.tool,render:(c)=>be.jsxDEV("span",{className:"row",style:{gap:8},children:[be.jsxDEV(xl,{color:u.get(c.tool)??to},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=i.get(c.tool);return f&&f.length>1?be.jsxDEV(yi,{values:f,width:80,height:20,color:u.get(c.tool)??to},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:`${ze(c.callFraction)} of all tool calls`,children:[q(c.calls),be.jsxDEV("span",{className:"dim tools-share",children:ze(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?un(c.errorRate):"neutral",mono:!0,children:eo(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:Re(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:Re(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:Re(Math.round(c.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:ou,align:"right",sort:(c)=>c.totalTokensShare,render:(c)=>be.jsxDEV("span",{className:"num",title:`${ze(c.tokenFraction)} of attributed tokens`,children:[Re(Math.round(c.totalTokensShare)),be.jsxDEV("span",{className:"dim tools-share",children:ze(c.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:"Attr. cost",title:`${ou}; API-equivalent estimate`,align:"right",sort:(c)=>c.costShare,render:(c)=>be.jsxDEV("span",{className:"num",title:`${ze(c.costFraction)} of attributed cost`,children:[Ot(c.costShare,c.unpricedRequestsShare),be.jsxDEV("span",{className:"dim tools-share",children:ze(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 j2({rows:r,tool:u,colors:i}){let c=lu.useMemo(()=>(u===null?r:r.filter((v)=>v.tool===u)).map((v)=>({...v,errorRate:v.calls>0?v.errors/v.calls:0})),[r,u]),f=lu.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(xl,{color:i.get(p.tool)??to},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?un(p.errorRate):"neutral",mono:!0,children:eo(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:Re(p.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:ou,align:"right",sort:(p)=>p.totalTokensShare,render:(p)=>be.jsxDEV("span",{className:"num",children:Re(Math.round(p.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. cost",title:`${ou}; 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,i]);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:u?`No calls to ${u} in this range`:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ii=Y(ut(),1);var Bt=Y(ut(),1);var gn=Y(ce(),1);function Vw({toolStats:r,index:u}){if(r.length===0)return null;let i=Math.max(...r.map((f)=>f.totalMs)),c=[{key:"tool",header:"Tool",render:(f)=>gn.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)=>gn.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?gn.jsxDEV(wt,{tone:"bad",children:[q(f.errors)," failed"]},void 0,!0,void 0,this):gn.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)=>gn.jsxDEV(ia,{value:f.totalMs,max:i,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)=>gn.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)=>gn.jsxDEV("span",{className:"num",children:vt(f.maxMs)},void 0,!1,void 0,this),sort:(f)=>f.maxMs}];return gn.jsxDEV(Ve,{title:"Tool aggregates",description:`${r.length} tools, by total time`,flush:!0,index:u,children:gn.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 Il=Y(ut(),1);var Li=Y(ut(),1);var nu={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function Y2(){let r=getComputedStyle(document.documentElement),u=(i,c)=>r.getPropertyValue(i).trim()||c;return{category:{turn:u(nu.turn,"#a0a0a8"),model:u(nu.model,"#5ad8e6"),tool:u(nu.tool,"#f5a524"),subagent:u(nu.subagent,"#ed4abf"),background:u(nu.background,"#46464c")},error:u("--bad","#ff6166"),errorSoft:u("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:u("--ink-1","#ededef"),turnBand:u("--hover","rgba(255, 255, 255, 0.035)"),grid:u("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:u("--chart-axis","#5c5c64"),spanText:u("--ink-inverse","#0a0a0b"),selection:u("--focus","#5ad8e6"),brush:u("--selected","rgba(255, 255, 255, 0.075)"),fontSans:u("--font-sans","system-ui, sans-serif"),fontMono:u("--font-mono","ui-monospace, monospace")}}function Ci(){let r=tw(),[u,i]=Li.useState(0);return Li.useEffect(()=>{let c=new MutationObserver(()=>i((f)=>f+1));return c.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>c.disconnect()},[]),Li.useMemo(Y2,[r,u])}var jw=Y(ce(),1),Kr=44,Nb=["turn","model","tool","subagent"],$w=6,ki=10;function Xw({tracks:r,scale:u,viewport:i,onViewportChange:c}){let f=Ci(),v=Il.useRef(null),[p,b]=Il.useState(800),S=Il.useRef(null);Il.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]=u.domain,x=Math.max(h-k,0.000000001),C=Il.useCallback((z)=>(z-k)/x*p,[k,x,p]),R=Il.useCallback((z)=>k+z/Math.max(p,1)*x,[k,x,p]);Il.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,Kr);let N=Kr/Nb.length;for(let ee=0;ee<Nb.length;ee++){let Z=Nb[ee],W=new Float32Array(p);for(let X of r)for(let ge of X.spans){if(ge.kind!==Z)continue;let Be=Math.max(0,Math.floor(C(u.toU(ge.start)))),Ce=Math.min(p-1,Math.ceil(C(u.toU(ge.end))));for(let qe=Be;qe<=Ce;qe++)W[qe]=Math.min(1,W[qe]+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(i.u0),B=C(i.u1);F.fillStyle=f.brush,F.fillRect(oe,0,B-oe,Kr),F.strokeStyle=f.selection,F.strokeRect(oe+0.5,0.5,B-oe-1,Kr-1),F.fillStyle=f.selection,F.fillRect(oe,0,2,Kr),F.fillRect(B-2,0,2,Kr)},[r,u,i,f,p,C]);let L=(z)=>{let F=z.currentTarget.getBoundingClientRect(),K=z.clientX-F.left,N=C(i.u0),oe=C(i.u1),B;if(Math.abs(K-N)<=$w)B="left";else if(Math.abs(K-oe)<=$w)B="right";else if(K>N&&K<oe)B="move";else{B="create";let ee=R(K);c(Gc({u0:ee,u1:ee+ki},k,h))}S.current={mode:B,startX:K,startViewport:i},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(Gc({u0:B+oe,u1:ee+oe},k,h));else if(F.mode==="left")c(Gc({u0:Math.min(B+oe,ee-ki),u1:ee},k,h));else if(F.mode==="right")c(Gc({u0:B,u1:Math.max(ee+oe,B+ki)},k,h));else{let Z=R(F.startX),W=R(N);c(Gc({u0:Math.min(Z,W),u1:Math.max(Z,W,Math.min(Z,W)+ki)},k,h))}},_=()=>{S.current=null};return jw.jsxDEV("canvas",{ref:v,width:Math.floor(p*devicePixelRatio),height:Math.floor(Kr*devicePixelRatio),className:"traces-minimap",style:{height:Kr},role:"slider","aria-label":"Timeline overview brush","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((i.u0-k)/x*100),tabIndex:-1,onPointerDown:L,onPointerMove:D,onPointerUp:_},void 0,!1,void 0,this)}function Gc(r,u,i){let c=Math.max(ki,r.u1-r.u0);c=Math.min(c,i-u||ki);let f=r.u0;if(f<u)f=u;if(f+c>i)f=i-c;return{u0:f,u1:f+c}}var yn=Y(ut(),1);var et=Y(ce(),1);function Q2(r){let u=[];if(typeof r==="string"){if(r.trim())u.push({kind:"text",text:r});return u}if(!Array.isArray(r))return u;for(let i of r){if(!i||typeof i!=="object"||!("type"in i))continue;if((i.type==="text"||i.type==="thinking")&&"text"in i&&typeof i.text==="string")u.push({kind:String(i.type),text:i.text})}return u}function Yw({span:r,track:u,onClose:i,onOpenChildTrack:c}){let[f,v]=yn.useState(null),[p,b]=yn.useState(!1),[S,k]=yn.useState(null),[h,x]=yn.useState(!1),C=yn.useRef(0);if(yn.useEffect(()=>{if(v(null),k(null),x(!1),b(!1),!r||!u||!r.entryId)return;b(!0);let F=new AbortController;return Hk(u.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,u]),yn.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:u?.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(ym,{open:!0,onClose:i,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($s,{size:15},void 0,!1,void 0,this):et.jsxDEV(js,{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(Ho,{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(vi,{error:`Failed to load entry: ${S.message}`},void 0,!1,void 0,this),!p&&f!==null&&Q2(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(mi,{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 Rl=Y(ce(),1);function Qw({summary:r}){let u=(i)=>r.wallMs>0?`${ze(i/r.wallMs)} of wall`:void 0;return Rl.jsxDEV(aa,{min:112,children:[Rl.jsxDEV(fe,{size:"sm",label:"Wall time",value:Ws(r.wallMs)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Model time",value:Ws(r.modelMs),hint:u(r.modelMs)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Tool time",value:Ws(r.toolMs),hint:u(r.toolMs)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Idle",value:Ws(r.idleMs),hint:u(r.idleMs)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Turns",value:q(r.turns)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Requests",value:q(r.requests),hint:`${q(r.toolCalls)} tool calls`},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Agents",value:q(r.subagents)},void 0,!1,void 0,this),Rl.jsxDEV(fe,{size:"sm",label:"Tokens",value:Re(r.totalTokens)},void 0,!1,void 0,this),Rl.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),aT=Y(sc(),1);function Om(r,u){let i=r.length,c=[u[0],u[i-1]],f=(v,p)=>{let b=0,S=i-1;while(b<S){let k=b+S+1>>1;if(v[k]<=p)b=k;else S=k-1}return Math.min(b,i-2)};return{toU(v){if(v<=r[0])return u[0];if(v>=r[i-1])return u[i-1];let p=f(r,v),b=r[p+1]-r[p];if(b<=0)return u[p];return u[p]+(v-r[p])/b*(u[p+1]-u[p])},toT(v){if(v<=u[0])return r[0];if(v>=u[i-1])return r[i-1];let p=f(u,v),b=u[p+1]-u[p];if(b<=0)return r[p];return r[p]+(v-u[p])/b*(r[p+1]-r[p])},domain:c,gaps:[]}}function Z2(r){let u=[];for(let i of r)for(let c of i.spans)u.push([c.start,c.end]);return u.sort((i,c)=>i[0]-c[0]),u}function W2(r){let{POSITIVE_INFINITY:u,NEGATIVE_INFINITY:i}=Number;for(let c of r)for(let f of c.spans){if(f.start<u)u=f.start;if(f.end>i)i=f.end}if(!Number.isFinite(u))return[0,1];return[u,Math.max(i,u+1)]}function Zw(r,u,i){let c=[...new Set(r.filter((b)=>b>=u&&b<=i))].sort((b,S)=>b-S);if(c[0]!==u)c.unshift(u);if(c[c.length-1]!==i)c.push(i);if(c.length<2)return Om([u,i],[u,i]);let v=(i-u)/(c.length-1),p=c.map((b,S)=>u+S*v);return Om(c,p)}function K2(r,u,i){let c=Z2(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([u,i]);f[0][0]=Math.max(f[0][0],u),f[f.length-1][1]=Math.min(Math.max(f[f.length-1][1],f[f.length-1][0]),i);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{...Om(v,p),gaps:b}}function Ww(r,u,i){let[c,f]=W2(r);if(u==="turns"){let p=(r.find((b)=>b.id==="main")?.spans??[]).filter((b)=>b.kind==="turn").map((b)=>b.start);return Zw(p,c,f)}if(u==="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 Zw(v,c,f)}if(i)return K2(r,c,f);return Om([c,f],[c,f])}var J2=90;function eD(r){let u=10**Math.floor(Math.log10(Math.max(r,1)));for(let i of[1,2,5,10])if(u*i>=r)return u*i;return u*10}function tD(r){let u=new Date(r),i=String(u.getHours()).padStart(2,"0"),c=String(u.getMinutes()).padStart(2,"0"),f=String(u.getSeconds()).padStart(2,"0");return`${i}:${c}:${f}`}function wi(r){let u=r<0?"-":"+",i=Math.abs(r),c=Math.floor(i/3600000),f=Math.floor(i%3600000/60000),v=Math.floor(i%60000/1000),p=Math.floor(i%1000),b=i%1000!==0,S=`${String(f).padStart(2,"0")}:${String(v).padStart(2,"0")}${b?".":""}${b?String(p).padStart(3,"0"):""}`;return c>0?`${u}${c}:${S}`:`${u}${S}`}function Kw(r,u,i,c){let f=i-u;if(f<=0||c<=0)return[];let v=[],p=r.domain[0],b=eD(f*J2/c),S=p+Math.ceil((u-p)/b)*b,k=0;for(let h=S;h<=i&&k<200;h+=b,k++){let x=r.toT(h),C=Math.round((h-p)/b)%5===0;v.push({u:h,label:C?tD(x):wi(h-p),major:C})}return v}var Rt=Y(ce(),1),Zn=28,Pb=22,xo=18,Jw=3,aD=14,eT=200,Ub=10,oD=2,lD=4,nD=56,tT=3,rD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tools"},{kind:"subagent",label:"Agents"},{kind:"background",label:"Bg"}];function sD(r,u){let i=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(u.has(k))return!0;k=i.get(k)?.parentId??null}return!1},v=[],p=[],b=Zn+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+=Pb;for(let{kind:x,label:C}of rD){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+=xo+Jw}h.y1=b-Jw,v.push(h),b+=aD}return{blocks:v,lanes:p,totalHeight:Math.max(b,Zn+48)}}function oT({tracks:r,scale:u,viewport:i,onViewportChange:c,selection:f,onSelect:v,search:p,collapsed:b,onToggleCollapse:S,traceStart:k}){let h=Ci(),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(i);N.current=i;let oe=Wt.useMemo(()=>sD(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-eT));L(se)});return P.observe(ae),()=>P.disconnect()},[]);let B=Wt.useCallback((ae,P)=>{let[ue,se]=u.domain,ne=Math.max(Ub,P-ae);ne=Math.min(ne,se-ue||Ub);let pe=ae;if(pe<ue)pe=ue;if(pe+ne>se)pe=se-ne;return{u0:pe,u1:pe+ne}},[u]),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=u.toU(ae.start),ue=u.toU(ae.end),se=Math.max((ue-P)*0.1,Ub/2);ee(B(P-se,ue+se))},[u,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},[]),Be=(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)},qe=(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=u.toU(se.start);if(ne<i.u0||ne>i.u1){let pe=i.u1-i.u0;c(B(ne-pe/2,ne+pe/2))}return}},[f,oe,v,u,i,c,B]),ke=(ae)=>{let P=i.u1-i.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:u.domain[0],u1:u.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(()=>{uD(ae,oe,u,i,h,{width:R,selection:f,hoverId:D?.hit.kind==="span"?D.hit.span.id:null,search:p,hits:z})});return()=>cancelAnimationFrame(P)},[oe,u,i,h,R,f,D,p]);let je=D?iD(D,k):null;return Rt.jsxDEV("div",{ref:x,className:"traces-timeline",children:[Rt.jsxDEV("div",{style:{width:eT,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:Pb,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(Sl,{size:12},void 0,!1,void 0,this):Rt.jsxDEV(Xs,{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:`${xo}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:Be,onPointerMove:Ce,onPointerUp:qe,onPointerLeave:()=>{K.current=null,_(null)},onDoubleClick:te,onKeyDown:ke},void 0,!1,void 0,this),je&&aT.createPortal(je,document.body)]},void 0,!0,void 0,this)}function Vc(r,u,i,c,f){if(r.beginPath(),c>=tT*2+1)r.roundRect(u,i,c,f,tT);else r.rect(u,i,c,f)}function uD(r,u,i,c,f,v){let p=r.getContext("2d");if(!p)return;let{width:b,selection:S,hoverId:k,search:h,hits:x}=v,C=u.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 u.blocks){let oe=N.track.spans.filter((B)=>B.kind==="turn");for(let B=0;B<oe.length;B++){let ee=z(i.toU(oe[B].start)),Z=B+1<oe.length?z(i.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 i.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,Zn),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,Zn-4),p.textAlign="left"}p.font=`9px ${f.fontMono}`;for(let N of Kw(i,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,Zn-8),p.lineTo(oe,Zn);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,Zn-10),p.globalAlpha=1}p.strokeStyle=f.grid,p.beginPath(),p.moveTo(0,Zn+0.5),p.lineTo(b,Zn+0.5),p.stroke();for(let N of u.lanes){let oe=N.kind==="turn";for(let B of N.spans){let ee=i.toU(B.start);if(ee>D)break;let Z=i.toU(B.end);if(Z<L)continue;let W=z(ee),X=Math.max(oD,z(Z)-W),ge=N.y,Be=F===""||`${B.label} ${B.detail??""}`.toLowerCase().includes(F),Ce=f.category[B.kind];if(p.globalAlpha=Be?1:0.3,oe)p.fillStyle=Ce,p.globalAlpha=(Be?1:0.3)*0.23,Vc(p,W,ge,X,xo),p.fill(),p.globalAlpha=Be?1:0.3,p.fillStyle=Ce,p.fillRect(W,ge,2,xo);else p.fillStyle=Ce,Vc(p,W,ge,X,xo),p.fill();if(B.isError)p.fillStyle=f.errorSoft,Vc(p,W,ge,X,xo),p.fill(),p.fillStyle=f.error,p.fillRect(W,ge,2,xo);if(B.kind==="model"&&typeof B.ttft==="number"&&B.ttft>0&&X>20){let te=z(i.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,xo-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+xo),p.stroke(),p.restore();if(k===B.id)p.fillStyle="rgba(255,255,255,0.16)",Vc(p,W,ge,X,xo),p.fill();if(S===B.id)p.strokeStyle=f.selection,p.lineWidth=1.5,Vc(p,W-1,ge-1,X+2,xo+2),p.stroke(),p.lineWidth=1;if(X>nD)p.save(),p.beginPath(),p.rect(W+3,ge,X-6,xo),p.clip(),p.fillStyle=oe?f.tick:f.spanText,p.font=`10px ${f.fontSans}`,p.fillText(B.label,W+5,ge+xo-5),p.restore();p.globalAlpha=1;let qe=Math.max(X,lD);K.push({kind:"span",x:W-(qe-X)/2,y:ge,w:qe,h:xo,span:B,track:N.track})}}for(let N of u.blocks)for(let oe of N.track.markers){let B=z(i.toU(oe.time));if(B<-6||B>b+6)continue;let ee=N.headerY+Pb/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 iD(r,u){let i=Math.min(r.clientX+14,window.innerWidth-320),c=r.clientY+16>window.innerHeight-140?r.clientY-120:r.clientY+16,f={left:i,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()," (",wi(p.time-u),")"]},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()," (",wi(v.start-u),")",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 Wn=Y(ut(),1);var Fa=Y(ce(),1),Ti=28,lT=20,dD=340;function cD(r){let u=[];for(let i of r){let c=i.id==="main"?0:i.id.split("/").length;for(let f of i.spans)u.push({key:f.id,time:f.start,span:f,track:i,depth:c});for(let f=0;f<i.markers.length;f++){let v=i.markers[f];u.push({key:`${i.id}:marker:${f}`,time:v.time,marker:v,track:i,depth:c})}}return u.sort((i,c)=>i.time-c.time),u}function nT({tracks:r,selection:u,onSelect:i,search:c,traceStart:f}){let v=Ci(),p=Wn.useRef(null),[b,S]=Wn.useState(0),k=Wn.useMemo(()=>cD(r),[r]),h=Wn.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]);Wn.useEffect(()=>{if(!u)return;let L=p.current;if(!L)return;let D=h.findIndex((z)=>z.span?.id===u);if(D===-1)return;let _=D*Ti;if(_<L.scrollTop||_+Ti>L.scrollTop+L.clientHeight)L.scrollTop=Math.max(0,_-L.clientHeight/2)},[u,h]);let x=Math.max(0,Math.floor(b/Ti)-lT),C=Math.min(h.length,Math.ceil((b+dD)/Ti)+lT),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*Ti,position:"relative"},children:Fa.jsxDEV("div",{style:{position:"absolute",top:x*Ti,left:0,right:0},children:R.map((L)=>{let D=L.span,_=D!==void 0&&D.id===u,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:wi(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:()=>i(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),fD=[{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"}],pD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tool"},{kind:"subagent",label:"Agent"},{kind:"background",label:"Background"}];function rT({file:r,active:u,onBack:i}){let c=qt(["trace",r],()=>_k(r),{pollMs:15000,enabled:u}),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(()=>Ww(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]),Be=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,Ue=(ne+pe)/2,[Mt,pa]=B.domain,re=Ue-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)Be(ne.span)},[X,Be]),qe=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((Ue)=>Ue.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:i,children:[Ze.jsxDEV(fc,{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(Xr,{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(Qw,{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:fD,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(dn,{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(gc,{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(Sl,{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:pD.map((ne)=>Ze.jsxDEV("span",{className:"traces-legend-item",children:[Ze.jsxDEV("span",{className:"swatch",style:{background:`var(${nu[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(Xw,{tracks:oe,scale:B,viewport:W,onViewportChange:N},void 0,!1,void 0,this),Ze.jsxDEV(oT,{tracks:oe,scale:B,viewport:W,onViewportChange:N,selection:k,onSelect:qe,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(nT,{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(Vw,{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(Yw,{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),sT=200;function mD({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:[
|
|
235
|
+
<%s key={someKey} {...props} />`,ut,ge,G,ge),vt[ge+ut]=!0)}if(ge=null,Lt!==void 0&&(i(Lt),ge=""+Lt),m(Ne)&&(i(Ne.key),ge=""+Ne.key),"key"in Ne){Lt={};for(var Ie in Ne)Ie!=="key"&&(Lt[Ie]=Ne[Ie])}else Lt=Ne;return ge&&v(Lt,typeof W==="function"?W.displayName||W.name||"Unknown":W),x(W,ge,Lt,f(),it,Me)}function L(W){k(W)?W._store&&(W._store.validated=1):typeof W==="object"&&W!==null&&W.$$typeof===j&&(W._payload.status==="fulfilled"?k(W._payload.value)&&W._payload.value._store&&(W._payload.value._store.validated=1):W._store&&(W._store.validated=1))}function k(W){return typeof W==="object"&&W!==null&&W.$$typeof===w}var w=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),A=Symbol.for("react.fragment"),M=Symbol.for("react.strict_mode"),N=Symbol.for("react.profiler"),U=Symbol.for("react.consumer"),V=Symbol.for("react.context"),X=Symbol.for("react.forward_ref"),ie=Symbol.for("react.suspense"),K=Symbol.for("react.suspense_list"),ee=Symbol.for("react.memo"),j=Symbol.for("react.lazy"),te=Symbol.for("react.activity"),_=Symbol.for("react.client.reference"),ce=Ys.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ve=Object.prototype.hasOwnProperty,Le=Array.isArray,Be=console.createTask?console.createTask:function(){return null};Ys={react_stack_bottom_frame:function(W){return W()}};var oe,pe={},ke=Ys.react_stack_bottom_frame.bind(Ys,b)(),Xe=Be(d(b)),vt={};EA.Fragment=A,EA.jsxDEV=function(W,Ne,Lt,ut){var it=1e4>ce.recentlyCreatedOwnerStacks++;return h(W,Ne,Lt,ut,it?Error("react-stack-top-frame"):ke,it?Be(d(W)):Xe)}})()});var kT=Z(N1(),1);var Ri=Z(ht(),1);var pm=Z(ht(),1);var U1=(r)=>r?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();function z1(r,u,i=[]){if(u==null)throw Error("[lucide]: iconNode is required when icon name is used");return{name:U1(r),size:24,node:u,...i.length>0?{aliases:i}:{}}}var P1=(r)=>{let u="",i=!1;for(let d of r){if(d==="-"||d==="_"||d<=" "){i=u.length>0;continue}if(u.length===0)u+=d.toLowerCase();else u+=i?d.toUpperCase():d;i=!1}return u};var _1=(r)=>{let u=P1(r);return u.charAt(0).toUpperCase()+u.slice(1)};var id=Z(ht(),1);var ud=(...r)=>r.filter((u,i,d)=>Boolean(u)&&u.trim()!==""&&d.indexOf(u)===i).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 Sb(r){return r!==null&&r!==void 0}function H1(r,u={}){let i=u.attributeNames??{},d=(k)=>i[k]??k,f=r.size??r.width??_r.width,b=r.size??r.height??_r.height,m=r.aliases?.filter((k)=>typeof k==="string"&&k.trim()!=="").map((k)=>`lucide-${k}`)??[],v=[...r.name?[`lucide-${r.name}`]:[],...m],S=u.className?.split(" ").filter(Boolean)??[],x=u.includeDefaultClasses===!1?ud(...S):ud("lucide",...v,...S),h=u.absoluteStrokeWidth?Number(u.strokeWidth??_r["stroke-width"])*Number(r.size??r.width??_r.width)/Number(u.size??u.width??_r.width):u.strokeWidth??_r["stroke-width"];return["svg",{...Object.entries(_r).reduce((k,[w,C])=>(k[d(w)]=C,k),{}),..."color"in u&&u.color&&{[d("stroke")]:u.color},..."size"in u&&Sb(u.size)&&{[d("width")]:u.size,[d("height")]:u.size},..."width"in u&&Sb(u.width)&&{[d("width")]:u.width},..."height"in u&&Sb(u.height)&&{[d("height")]:u.height},[d("stroke-width")]:h,...x&&{[d("class")]:x},[d("viewBox")]:`0 0 ${f} ${b}`,...u.hasA11yProp===!1?{[d("aria-hidden")]:"true"}:{},..."attributes"in u&&u.attributes},r.node.map((k)=>{let[w,C,A]=k,M=u.nonScalingStroke?{[d("vector-effect")]:"non-scaling-stroke",...C}:C;return A?[w,M,A]:[w,M]})]}function F1(r,u={}){return H1(r,{...u,attributeNames:{...u.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}var G1=(r)=>{for(let u in r)if(u.startsWith("aria-")||u==="role"||u==="title")return!0;return!1};var di=Z(ht(),1),bA=di.createContext({});var V1=()=>di.useContext(bA);var $1=id.forwardRef(({color:r,size:u,width:i,height:d,strokeWidth:f,absoluteStrokeWidth:b,nonScalingStroke:m,className:v="",children:S,iconNode:x=[],icon:h={node:x,aliases:[],size:24},...L},k)=>{let{size:w=24,strokeWidth:C=2,absoluteStrokeWidth:A=!1,nonScalingStroke:M=!1,color:N="currentColor",className:U=""}=V1()??{},V=Boolean(S)||G1(L),[X,ie,K=[]]=F1(h,{color:r??N,width:i??u??w,height:d??u??w,strokeWidth:f??C,absoluteStrokeWidth:b??A,nonScalingStroke:m??M,className:ud(U,v),hasA11yProp:V,attributes:L});return id.createElement(X,{ref:k,...ie},[...K.map(([ee,j])=>id.createElement(ee,j)),...Array.isArray(S)?S:[S]])});function Se(r,u=[],i=[]){let d=typeof r==="string"?z1(r,u,i):r,f=pm.forwardRef(({className:b,...m},v)=>pm.createElement($1,{ref:v,icon:d,className:b,...m}));if(d.name)f.displayName=_1(d.name);return f}var j1={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"]};j1.node;var Hr=Se(j1);var X1={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"]};X1.node;var Fr=Se(X1);var Y1={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"]};Y1.node;var Gr=Se(Y1);var Q1={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"]};Q1.node;var ll=Se(Q1);var Z1={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"]};Z1.node;var Sn=Se(Z1);var W1={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"]};W1.node;var Vr=Se(W1);var K1={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"}]]};K1.node;var cd=Se(K1);var J1={name:"arrow-down",size:24,node:[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]};J1.node;var dd=Se(J1);var ek={name:"arrow-left",size:24,node:[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]};ek.node;var fd=Se(ek);var tk={name:"arrow-right",size:24,node:[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]};tk.node;var pd=Se(tk);var ak={name:"arrow-up-right",size:24,node:[["path",{d:"M7 7h10v10",key:"1tivn9"}],["path",{d:"M7 17 17 7",key:"1vkiza"}]]};ak.node;var md=Se(ak);var ok={name:"arrow-up",size:24,node:[["path",{d:"m5 12 7-7 7 7",key:"hav0vg"}],["path",{d:"M12 19V5",key:"x0mq9r"}]]};ok.node;var hd=Se(ok);var nk={name:"check",size:24,node:[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]};nk.node;var $s=Se(nk);var lk={name:"chevron-down",size:24,node:[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]};lk.node;var js=Se(lk);var rk={name:"chevron-left",size:24,node:[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]};rk.node;var gd=Se(rk);var sk={name:"chevron-right",size:24,node:[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]};sk.node;var xn=Se(sk);var uk={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"}]]};uk.node;var yd=Se(uk);var ik={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"}]]};ik.node;var Xs=Se(ik);var ck={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"}]]};ck.node;var bd=Se(ck);var dk={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"}]]};dk.node;var vd=Se(dk);var fk={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"}]]};fk.node;var Sd=Se(fk);var pk={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"}]]};pk.node;var xd=Se(pk);var mk={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"}]]};mk.node;var Ld=Se(mk);var hk={name:"menu",size:24,node:[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]]};hk.node;var Cd=Se(hk);var gk={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"}]]};gk.node;var kd=Se(gk);var yk={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"}]]};yk.node;var wd=Se(yk);var bk={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"}]]};bk.node;var $r=Se(bk);var vk={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"}]]};vk.node;var Td=Se(vk);var Sk={name:"search",size:24,node:[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]};Sk.node;var Id=Se(Sk);var xk={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"}]]};xk.node;var Rd=Se(xk);var Lk={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"}]]};Lk.node;var Md=Se(Lk);var Ck={name:"x",size:24,node:[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]};Ck.node;var on=Se(Ck);var vi=Z(ht(),1);var kk=["January","February","March","April","May","June","July","August","September","October","November","December"],wk=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],vA=["MMMM","yyyy","EEEE","MMM","EEE","yy","MM","dd","HH","hh","mm","ss","M","d","H","h","m","s","a"];function jr(r,u=2){return String(r).padStart(u,"0")}function SA(r,u){let i=r.getMonth(),d=r.getDay(),f=r.getHours(),b=f%12||12;switch(u){case"yyyy":return jr(r.getFullYear(),4);case"yy":return jr(r.getFullYear()%100);case"MMMM":return kk[i];case"MMM":return kk[i].slice(0,3);case"MM":return jr(i+1);case"M":return String(i+1);case"dd":return jr(r.getDate());case"d":return String(r.getDate());case"EEEE":return wk[d];case"EEE":return wk[d].slice(0,3);case"HH":return jr(f);case"H":return String(f);case"hh":return jr(b);case"h":return String(b);case"mm":return jr(r.getMinutes());case"m":return String(r.getMinutes());case"ss":return jr(r.getSeconds());case"s":return String(r.getSeconds());case"a":return f<12?"AM":"PM"}}function Ik(r){let u=r instanceof Date?new Date(r.getTime()):new Date(r);if(Number.isNaN(u.getTime()))throw RangeError("Invalid time value");return u}function rl(r,u){let i=Ik(r),d="";for(let f=0;f<u.length;){if(u[f]==="'"){if(u[f+1]==="'"){d+="'",f+=2;continue}f++;while(f<u.length){if(u[f]!=="'"){d+=u[f++];continue}if(u[f+1]==="'"){d+="'",f+=2;continue}f++;break}continue}let b=u.slice(f),m=vA.find((S)=>b.startsWith(S));if(m){d+=SA(i,m),f+=m.length;continue}let v=u[f++];if(/[A-Za-z]/.test(v))throw RangeError(`Format string contains an unescaped latin alphabet character \`${v}\``);d+=v}return d}function Xr(r,u){return`${r} ${r===1?u:`${u}s`}`}function xA(r,u){let i=(u.getFullYear()-r.getFullYear())*12+u.getMonth()-r.getMonth();if(i===0)return 0;let d=new Date(r);d.setDate(1),d.setFullYear(r.getFullYear(),r.getMonth()+i,1);let f=new Date(d.getFullYear(),d.getMonth()+1,0).getDate();if(d.setDate(Math.min(r.getDate(),f)),d.getTime()>u.getTime())i--;return i}function Tk(r,u){let i=(u.getTime()-r.getTime())/1000,d=(u.getTimezoneOffset()-r.getTimezoneOffset())*60,f=Math.round((i-d)/60);if(f<2)return f===0?"less than a minute":"1 minute";if(f<45)return Xr(f,"minute");if(f<90)return"about 1 hour";if(f<1440)return`about ${Xr(Math.round(f/60),"hour")}`;if(f<2520)return"1 day";if(f<43200)return Xr(Math.round(f/1440),"day");if(f<86400)return`about ${Xr(Math.round(f/43200),"month")}`;let b=xA(r,u);if(b<12)return Xr(Math.round(f/43200),"month");let m=Math.trunc(b/12),v=b%12;if(v<3)return`about ${Xr(m,"year")}`;if(v<9)return`over ${Xr(m,"year")}`;return`almost ${Xr(m+1,"year")}`}function Rk(r,u={}){let i=Ik(r),d=new Date(Date.now()),f=i.getTime()>d.getTime(),b=f?Tk(d,i):Tk(i,d);if(!u.addSuffix)return b;return f?`in ${b}`:`${b} ago`}var Mk=60000,mm=60*Mk,sl=24*mm,xb={"1h":{label:"1h",windowLabel:"the last hour",spanMs:mm,bucketMs:5*Mk},"24h":{label:"24h",windowLabel:"the last 24 hours",spanMs:sl,bucketMs:mm},"7d":{label:"7d",windowLabel:"the last 7 days",spanMs:7*sl,bucketMs:sl},"30d":{label:"30d",windowLabel:"the last 30 days",spanMs:30*sl,bucketMs:sl},"90d":{label:"90d",windowLabel:"the last 90 days",spanMs:90*sl,bucketMs:sl},all:{label:"All",windowLabel:"all time",spanMs:null,bucketMs:sl}},LA=1500,fi=["1h","24h","7d","30d","90d","all"];function ua(r){return xb[r]}function hm(r,u){if(u<sl)return rl(new Date(r),u<mm?"HH:mm":"MMM d HH:mm");return rl(new Date(r),"MMM d")}function gm(r,u){if(u<sl)return rl(new Date(r),"HH:mm");return rl(new Date(r),"MMM d")}function Po(r,u,i=xb[r].bucketMs,d=Date.now()){let f=Math.floor(d/i)*i,b=xb[r].spanMs,m;if(b!==null)m=Math.floor((d-b)/i)*i;else{m=f;for(let S of u)if(S<m)m=S;m=Math.floor(m/i)*i}m=Math.max(m,f-(LA-1)*i);let v=[];for(let S=m;S<=f;S+=i)v.push(S);return v}var Ad=Z(ht(),1);class Dk extends Error{status;endpoint;constructor(r,u,i){super(i);this.name="ApiError",this.status=r,this.endpoint=u}}async function CA(r,u){try{let i=await r.json();if(typeof i==="object"&&i!==null&&"error"in i&&typeof i.error==="string")return i.error}catch{}return`HTTP error ${r.status} on ${u}`}var Ak=new WeakMap;async function Ea(r,u,i){let d=typeof i==="object"&&i!==null?Ak.get(i):void 0,f=u;if(d){let S=new Headers(u?.headers);S.set("If-None-Match",d),f={...u,headers:S}}let b=await fetch(r,f);if(b.status===304&&d)return i;if(!b.ok)throw new Dk(b.status,r,await CA(b,r));let m=await b.json(),v=b.headers.get("ETag");if(v&&typeof m==="object"&&m!==null)Ak.set(m,v);return m}var Ek={"X-Omp-Stats-Action":"1"};async function Ok(r="24h",u){return Ea(`/api/stats/overview?range=${encodeURIComponent(r)}`,{signal:u})}async function qk(r="24h",u){return Ea(`/api/stats/model-dashboard?range=${encodeURIComponent(r)}`,{signal:u})}async function Bk(r="24h",u){return Ea(`/api/stats/costs?range=${encodeURIComponent(r)}`,{signal:u})}async function ym(r=50,u){return Ea(`/api/stats/recent?limit=${r}`,{signal:u})}async function Nk(r="24h",u=50,i){return Ea(`/api/stats/errors?range=${encodeURIComponent(r)}&limit=${u}`,{signal:i})}async function Uk(r,u){return Ea(`/api/request/${r}`,{signal:u})}async function zk(){return Ea("/api/sync",{method:"POST"})}async function Pk(r="24h",u){return Ea(`/api/stats/frustration?range=${encodeURIComponent(r)}`,{signal:u})}async function _k(r,u){return Ea(`/api/frustration/estimate?range=${encodeURIComponent(r)}`,{signal:u})}async function Hk(r){return Ea(`/api/frustration/judge?range=${encodeURIComponent(r)}`,{method:"POST",headers:Ek})}async function Fk(){return Ea("/api/frustration/cancel",{method:"POST",headers:Ek})}async function Gk(r="24h",u){return Ea(`/api/stats/folders?range=${encodeURIComponent(r)}`,{signal:u})}async function Vk(r="24h",u,i){let d=new URLSearchParams({range:r});if(u)d.set("project",u);return Ea(`/api/stats/gain?${d}`,{signal:i})}async function $k(r="24h",u){return Ea(`/api/stats/tools?range=${encodeURIComponent(r)}`,{signal:u})}async function jk(r="24h",u){return Ea(`/api/stats/providers?range=${encodeURIComponent(r)}`,{signal:u})}async function Lb(r,u,i){let d=new URLSearchParams({range:r});if(u!==null)d.set("provider",u);return Ea(`/api/stats/provider-windows?${d}`,{signal:i})}async function Xk(r=100,u,i){let d=new URLSearchParams({limit:String(r)});if(u)d.set("q",u);return Ea(`/api/sessions?${d}`,{signal:i})}async function Yk(r,u,i){return Ea(`/api/session/trace?file=${encodeURIComponent(r)}`,{signal:u,cache:"no-store"},i)}async function Qk(r,u,i){return Ea(`/api/session/entry?file=${encodeURIComponent(r)}&id=${encodeURIComponent(u)}`,{signal:i})}var wA={phase:"idle",current:0,total:0,processed:0,lastSyncedAt:null,error:null};function TA(){zk().catch(()=>{})}var Zk=null,Wk=0,bm=0,Yr={sync:wA,indexingHours:0,connected:!1,requestSync:TA},kb=new Set;function Kk(r){return kb.add(r),()=>kb.delete(r)}function Jk(){for(let r of kb)r()}function IA(r,u){return r.phase===u.phase&&r.current===u.current&&r.total===u.total&&r.processed===u.processed&&r.lastSyncedAt===u.lastSyncedAt&&r.error===u.error}function RA(r){if(Zk!==r.version)Zk=r.version,Wk++;let u=Math.max(0,Wk-1),i=r.indexingHours!==Yr.indexingHours||!IA(r.sync,Yr.sync);if(!i&&u===bm)return;if(bm=u,i)Yr={...Yr,sync:r.sync,indexingHours:r.indexingHours};Jk()}function Cb(r){if(r===Yr.connected)return;Yr={...Yr,connected:r},Jk()}var MA=()=>Yr,AA=()=>bm,DA=()=>-1;function ew(){return bm}function tw({children:r}){return Ad.useEffect(()=>{let u=new EventSource("/api/events");return u.onopen=()=>Cb(!0),u.onerror=()=>Cb(!1),u.onmessage=(i)=>RA(JSON.parse(i.data)),()=>{u.close(),Cb(!1)}},[]),r}function vm(){return Ad.useSyncExternalStore(Kk,MA)}function aw(r=!0){return Ad.useSyncExternalStore(Kk,r?AA:DA)}var Sm=Z(se(),1);function Bt({tone:r="neutral",mono:u,children:i}){return Sm.jsxDEV("span",{className:"badge","data-tone":r,"data-mono":u??!1,children:i},void 0,!1,void 0,this)}function ul({tone:r="neutral",pulse:u}){return Sm.jsxDEV("span",{className:"dot","data-tone":r,"data-pulse":u??!1},void 0,!1,void 0,this)}function Ln({color:r}){return Sm.jsxDEV("span",{className:"swatch",style:{background:r}},void 0,!1,void 0,this)}function il(r){if(r>=0.05)return"bad";if(r>=0.01)return"warn";return"ok"}var So=Z(se(),1);function je({title:r,description:u,actions:i,flush:d,footer:f,className:b,index:m,stale:v,children:S}){let x=r!==void 0||u!==void 0||i!==void 0;return So.jsxDEV("section",{className:b?`card rise ${b}`:"card rise",style:m!==void 0?{"--i":m}:void 0,children:[x&&So.jsxDEV("header",{className:"card-header",children:[So.jsxDEV("div",{className:"card-titles",children:[r!==void 0&&So.jsxDEV("h2",{className:"card-title",children:r},void 0,!1,void 0,this),u!==void 0&&So.jsxDEV("p",{className:"card-description",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&So.jsxDEV("div",{className:"card-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),So.jsxDEV("div",{className:"card-body","data-flush":d??!1,"data-stale":v??!1,children:S},void 0,!1,void 0,this),f!==void 0&&So.jsxDEV("footer",{className:"card-footer",children:f},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function na({title:r,description:u,actions:i}){return So.jsxDEV("header",{className:"page-header rise",children:[So.jsxDEV("div",{children:[So.jsxDEV("h1",{className:"page-title",children:r},void 0,!1,void 0,this),u!==void 0&&So.jsxDEV("p",{className:"page-description",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i!==void 0&&So.jsxDEV("div",{className:"page-actions",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Dd=Z(ht(),1),ow=Z(sd(),1),Ya=Z(se(),1);function xm({open:r,onClose:u,title:i,subtitle:d,actions:f,width:b,children:m}){let v=Dd.useRef(u);v.current=u;let S=Dd.useRef(null);if(Dd.useEffect(()=>{if(!r)return;let x=document.activeElement instanceof HTMLElement?document.activeElement:null;S.current?.focus();let h=(L)=>{if(L.key==="Escape")L.preventDefault(),v.current()};return window.addEventListener("keydown",h),()=>{window.removeEventListener("keydown",h),x?.focus()}},[r]),!r)return null;return ow.createPortal(Ya.jsxDEV(Ya.Fragment,{children:[Ya.jsxDEV("div",{className:"drawer-scrim",onClick:u,role:"presentation"},void 0,!1,void 0,this),Ya.jsxDEV("div",{ref:S,className:"drawer",role:"dialog","aria-modal":"true",tabIndex:-1,style:b!==void 0?{"--drawer-w":`${b}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:i},void 0,!1,void 0,this),d!==void 0&&Ya.jsxDEV("div",{className:"drawer-subtitle",children:d},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:u,"aria-label":"Close",children:Ya.jsxDEV(on,{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:m},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((u)=>Ya.jsxDEV("div",{className:"kv-item",children:[Ya.jsxDEV("dt",{className:"kv-key",children:u.label},void 0,!1,void 0,this),Ya.jsxDEV("dd",{className:"kv-value",style:{margin:0},children:u.value},void 0,!1,void 0,this)]},u.key,!0,void 0,this))},void 0,!1,void 0,this)}var Qs=Z(ht(),1),Cn=Z(se(),1);function pi({data:r,title:u="JSON",initialCollapsed:i=!1}){let[d,f]=Qs.useState(i),[b,m]=Qs.useState(!1),v=Qs.useRef(0),S=JSON.stringify(r,null,2);return Qs.useEffect(()=>()=>window.clearTimeout(v.current),[]),Cn.jsxDEV("div",{className:"stack",style:{gap:6},children:[Cn.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Cn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>f((h)=>!h),"aria-expanded":!d,children:[d?Cn.jsxDEV(xn,{size:13},void 0,!1,void 0,this):Cn.jsxDEV(js,{size:13},void 0,!1,void 0,this),u]},void 0,!0,void 0,this),Cn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:async()=>{try{await navigator.clipboard.writeText(S),m(!0),window.clearTimeout(v.current),v.current=window.setTimeout(()=>m(!1),1500)}catch{}},children:[b?Cn.jsxDEV($s,{size:13},void 0,!1,void 0,this):Cn.jsxDEV(Xs,{size:13},void 0,!1,void 0,this),b?"Copied":"Copy"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),!d&&Cn.jsxDEV("pre",{className:"code-block",children:Cn.jsxDEV("code",{children:S},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Zs=Z(ht(),1),nw=Z(sd(),1);var kn=Z(se(),1);function lw({open:r,title:u,onClose:i,primaryAction:d,cancelLabel:f="Cancel",children:b}){let m=Zs.useRef(null),v=Zs.useRef(null),S=Zs.useRef(i);S.current=i,Zs.useEffect(()=>{if(!r)return;let k=document.activeElement instanceof HTMLElement?document.activeElement:null,w=(C)=>{if(C.key==="Escape")C.preventDefault(),S.current()};return window.addEventListener("keydown",w),()=>{window.removeEventListener("keydown",w),k?.focus()}},[r]);let x=d!==void 0,h=d?.disabled??!1;if(Zs.useEffect(()=>{if(!r)return;(x&&!h?m.current:v.current)?.focus()},[r,x,h]),!r)return null;return nw.createPortal(kn.jsxDEV("div",{className:"modal-overlay",onClick:(k)=>{if(k.target===k.currentTarget)i()},role:"presentation",children:kn.jsxDEV("div",{className:"modal",role:"dialog","aria-modal":"true","aria-labelledby":"modal-title",children:[kn.jsxDEV("div",{className:"modal-header",children:[kn.jsxDEV("h2",{id:"modal-title",className:"modal-title",children:u},void 0,!1,void 0,this),kn.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true","data-size":"sm",onClick:i,"aria-label":"Close",children:kn.jsxDEV(on,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),kn.jsxDEV("div",{className:"modal-body",children:b},void 0,!1,void 0,this),kn.jsxDEV("div",{className:"modal-footer",children:[kn.jsxDEV("button",{ref:v,type:"button",className:"btn",onClick:i,children:f},void 0,!1,void 0,this),d&&kn.jsxDEV("button",{ref:m,type:"button",className:"btn","data-variant":"primary",onClick:d.onClick,disabled:d.disabled,children:d.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 Lm=Z(se(),1);function cl({value:r,onChange:u,placeholder:i="Filter…",width:d}){return Lm.jsxDEV("label",{className:"search",children:[Lm.jsxDEV(Id,{size:14},void 0,!1,void 0,this),Lm.jsxDEV("input",{className:"input",type:"search",value:r,placeholder:i,onChange:(f)=>u(f.target.value),style:d!==void 0?{width:d}:void 0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var mi=Z(ht(),1),Cm=Z(se(),1);function Pa({options:r,value:u,onChange:i,size:d="md","aria-label":f}){let b=mi.useRef(null),[m,v]=mi.useState(null);return mi.useLayoutEffect(()=>{let S=b.current,x=S?.querySelector('[data-active="true"]');if(!S||!x){v(null);return}let h=()=>v({left:x.offsetLeft,width:x.offsetWidth});h();let L=new ResizeObserver(h);return L.observe(S),()=>L.disconnect()},[u,r]),Cm.jsxDEV("div",{ref:b,className:"segmented","data-size":d,role:"radiogroup","aria-label":f,children:[m&&Cm.jsxDEV("span",{className:"segmented-thumb",style:{left:m.left,width:m.width}},void 0,!1,void 0,this),r.map((S)=>Cm.jsxDEV("button",{type:"button",role:"radio","aria-checked":S.value===u,className:"segmented-option","data-active":S.value===u,title:S.title,onClick:()=>i(S.value),children:S.label},S.value,!1,void 0,this))]},void 0,!0,void 0,this)}var yi=Z(ht(),1);var hi=Z(ht(),1);function km(){let r=hi.useRef(null),[u,i]=hi.useState(0);return hi.useLayoutEffect(()=>{let d=r.current;if(!d)return;i(d.clientWidth);let f=new ResizeObserver((b)=>{let m=Math.round(b[0]?.contentRect.width??0);i((v)=>v===m?v:m)});return f.observe(d),()=>f.disconnect()},[]),[r,u]}var Ed=Z(se(),1);function gi({values:r,color:u="var(--chart-primary)",height:i=28,width:d,area:f=!0}){let[b,m]=km(),v=d??m,S=Math.max(0,...r),x=r.length,h="";if(v>0&&x>0){let L=x>1?v/(x-1):0;for(let k=0;k<x;k++){let w=x>1?k*L:v/2,C=S>0?i-2-r[k]/S*(i-4):i-2;h+=`${k===0?"M":"L"}${w.toFixed(1)},${C.toFixed(1)}`}}return Ed.jsxDEV("div",{ref:b,className:"sparkline",style:{width:d??"100%",height:i},children:v>0&&x>0&&Ed.jsxDEV("svg",{width:v,height:i,"aria-hidden":"true",children:[f&&Ed.jsxDEV("path",{className:"area",d:`${h}L${v},${i}L0,${i}Z`,fill:u},void 0,!1,void 0,this),Ed.jsxDEV("path",{className:"chart-line",d:h,stroke:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}var nn=Z(se(),1);function ue({label:r,value:u,hint:i,delta:d,spark:f,sparkColor:b,size:m="md",title:v}){let S=qA(typeof u==="string"||typeof u==="number"?u:null);return nn.jsxDEV("div",{className:"stat","data-size":m,title:v,children:[nn.jsxDEV("div",{className:"stat-label",children:r},void 0,!1,void 0,this),nn.jsxDEV("div",{className:"stat-value","data-flash":S,children:u},void 0,!1,void 0,this),(i!==void 0||d)&&nn.jsxDEV("div",{className:"stat-foot",children:[d&&nn.jsxDEV(OA,{...d},void 0,!1,void 0,this),i!==void 0&&nn.jsxDEV("span",{className:"truncate",children:i},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f&&f.length>1&&nn.jsxDEV("div",{className:"stat-spark",children:nn.jsxDEV(gi,{values:f,color:b},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function la({min:r,children:u}){return nn.jsxDEV("div",{className:"stat-grid rise",style:r!==void 0?{"--stat-min":`${r}px`}:void 0,children:u},void 0,!1,void 0,this)}function OA({change:r,good:u="up"}){if(r===null||!Number.isFinite(r))return nn.jsxDEV("span",{className:"delta",children:"new"},void 0,!1,void 0,this);let i=Math.abs(r)<0.0005?0:r,d=i===0?void 0:i>0===(u==="up")?"good":"bad",f=i>0?"+":i<0?"−":"±",b=Math.abs(i)*100;return nn.jsxDEV("span",{className:"delta","data-tone":d,children:[f,b>=100?b.toFixed(0):b.toFixed(1),"%"]},void 0,!0,void 0,this)}function qA(r){let u=yi.useRef(r),[i,d]=yi.useState(!1);return yi.useEffect(()=>{if(u.current===r)return;let f=u.current!==null;if(u.current=r,!f)return;d(!0);let b=setTimeout(()=>d(!1),900);return()=>clearTimeout(b)},[r]),i}var ha=Z(se(),1);function Ct({title:r="Nothing here yet",hint:u}){return ha.jsxDEV("div",{className:"empty",children:[ha.jsxDEV(xd,{size:20},void 0,!1,void 0,this),ha.jsxDEV("div",{className:"empty-title",children:r},void 0,!1,void 0,this),u!==void 0&&ha.jsxDEV("div",{className:"empty-hint",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function bi({error:r,onRetry:u}){return ha.jsxDEV("div",{className:"error-state",role:"alert",children:[ha.jsxDEV(Vr,{size:15},void 0,!1,void 0,this),ha.jsxDEV("span",{className:"error-state-message",children:typeof r==="string"?r:r.message},void 0,!1,void 0,this),u&&ha.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:u,children:[ha.jsxDEV(Td,{size:13},void 0,!1,void 0,this)," Retry"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function Oa({width:r="100%",height:u=14,style:i}){return ha.jsxDEV("div",{className:"skeleton",style:{width:r,height:u,...i}},void 0,!1,void 0,this)}function Nt({height:r=220}){return ha.jsxDEV(Oa,{height:r,style:{borderRadius:8}},void 0,!1,void 0,this)}function ia({rows:r=6}){return ha.jsxDEV("div",{style:{display:"flex",flexDirection:"column",gap:10,padding:"8px 16px 16px"},children:Array.from({length:r},(u,i)=>ha.jsxDEV(Oa,{height:16,width:`${92-i*13%30}%`},i,!1,void 0,this))},void 0,!1,void 0,this)}function Fe({query:r,skeleton:u,isEmpty:i,empty:d,children:f}){if(r.data===null){if(r.error)return ha.jsxDEV(bi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this);return ha.jsxDEV(ha.Fragment,{children:u},void 0,!1,void 0,this)}return ha.jsxDEV(ha.Fragment,{children:[r.error&&ha.jsxDEV(bi,{error:r.error,onRetry:r.refetch},void 0,!1,void 0,this),i?.(r.data)?d??ha.jsxDEV(Ct,{},void 0,!1,void 0,this):f(r.data)]},void 0,!0,void 0,this)}var Ks=Z(ht(),1);var wb="en-US";function B(r){return r.toLocaleString(wb)}function Re(r){return r.toLocaleString(wb,{notation:"compact"})}function ca(r,u){if(r===0)return"$0";let i=u!==void 0?u:r>0&&r<0.01?4:2;return`$${r.toLocaleString(wb,{minimumFractionDigits:i,maximumFractionDigits:i})}`}function _t(r,u,i){return r===0&&u>0?"N/A":ca(r,i)}function Tb(r){return r.usage.totalTokens>0&&r.usage.cost.total===0&&(r.provider==="xai-oauth"||r.costUnpriced===!0)}function Qr(r,u){return _t(r.usage.cost.total,Tb(r)?1:0,u)}function He(r,u=1){return`${(r*100).toFixed(u)}%`}function eo(r){let u=r*100;if(u>0&&u<0.005)return"<0.01%";return He(r,u>0&&u<0.1?2:1)}function Rt(r,u){if(r===null)return"-";let i=r/1000,d=u!==void 0?u:i<1?2:1;return`${i.toFixed(d)}s`}function Ws(r){if(r<60000)return Rt(r);let u=Math.floor(r/60000);if(u<60)return`${u}m ${String(Math.floor(r%60000/1000)).padStart(2,"0")}s`;return`${Math.floor(u/60)}h ${String(u%60).padStart(2,"0")}m`}function dl(r){if(r===null)return"-";return r.toFixed(1)}function da(r){return Rk(new Date(r),{addSuffix:!0})}function ln(r){return rl(new Date(r),"MMM d, HH:mm:ss")}function fl(r){return r.replace(/^\/+|\/+$/g,"")||"(root)"}function Ib(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 Mt=Z(se(),1);function $t({columns:r,rows:u,rowKey:i,onRowClick:d,selectedKey:f,initialSort:b,limit:m,dense:v,empty:S,expanded:x}){let[h,L]=Ks.useState(b??null),[k,w]=Ks.useState(m??Number.POSITIVE_INFINITY),C=Ks.useMemo(()=>{let N=h?r.find((X)=>X.key===h.key):void 0;if(!h||!N?.sort)return u;let U=N.sort,V=h.dir==="asc"?1:-1;return[...u].sort((X,ie)=>{let K=U(X),ee=U(ie);if(typeof K==="number"&&typeof ee==="number")return(K-ee)*V;return String(K).localeCompare(String(ee))*V})},[u,r,h]);if(u.length===0)return Mt.jsxDEV(Mt.Fragment,{children:S??Mt.jsxDEV(Ct,{},void 0,!1,void 0,this)},void 0,!1,void 0,this);let A=C.length>k?C.slice(0,k):C,M=(N)=>{if(!N.sort)return;L((U)=>U?.key===N.key?{key:N.key,dir:U.dir==="asc"?"desc":"asc"}:{key:N.key,dir:N.align==="right"?"desc":"asc"})};return Mt.jsxDEV(Mt.Fragment,{children:[Mt.jsxDEV("div",{className:"table-wrap",children:Mt.jsxDEV("table",{className:"table","data-dense":v??!1,children:[Mt.jsxDEV("thead",{children:Mt.jsxDEV("tr",{children:r.map((N)=>{let U=h?.key===N.key?h.dir:void 0;return Mt.jsxDEV("th",{"data-align":N.align??"left","data-sortable":N.sort!==void 0,"data-sorted":U,style:N.width!==void 0?{width:N.width}:void 0,title:N.title,onClick:()=>M(N),"aria-sort":U==="asc"?"ascending":U==="desc"?"descending":void 0,children:[N.header,U&&Mt.jsxDEV("span",{className:"sort-arrow",children:U==="asc"?Mt.jsxDEV(hd,{size:11},void 0,!1,void 0,this):Mt.jsxDEV(dd,{size:11},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},N.key,!0,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),Mt.jsxDEV("tbody",{children:A.map((N)=>{let U=i(N),V=x?.(N)??null;return Mt.jsxDEV(Ks.Fragment,{children:[Mt.jsxDEV("tr",{"data-clickable":d!==void 0,"data-selected":f===U,onClick:d?()=>d(N):void 0,onKeyDown:d?(X)=>{if(X.key==="Enter"||X.key===" ")X.preventDefault(),d(N)}:void 0,tabIndex:d?0:void 0,children:r.map((X)=>Mt.jsxDEV("td",{"data-align":X.align??"left","data-wrap":X.wrap??!1,children:X.render(N)},X.key,!1,void 0,this))},void 0,!1,void 0,this),V!==null&&Mt.jsxDEV("tr",{children:Mt.jsxDEV("td",{colSpan:r.length,"data-wrap":"true",style:{padding:0},children:V},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},U,!0,void 0,this)})},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),m!==void 0&&C.length>m&&Mt.jsxDEV("div",{className:"table-more",children:[Mt.jsxDEV("span",{className:"micro",children:[B(A.length)," of ",B(C.length)]},void 0,!0,void 0,this),C.length>k&&Mt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>w((N)=>N+m*4),children:"Show more"},void 0,!1,void 0,this),k>m&&Mt.jsxDEV("button",{type:"button",className:"btn","data-size":"sm","data-variant":"ghost",onClick:()=>w(m),children:"Show fewer"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function fa({value:r,max:u,display:i,color:d}){let f=u>0?Math.min(100,r/u*100):0;return Mt.jsxDEV("div",{className:"meter-cell",children:[Mt.jsxDEV("span",{className:"num",children:i},void 0,!1,void 0,this),Mt.jsxDEV("div",{className:"meter",children:Mt.jsxDEV("div",{className:"meter-fill",style:{width:`${f}%`,background:d}},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function _a({primary:r,secondary:u,lead:i}){return Mt.jsxDEV("div",{className:"row",style:{gap:10},children:[i,Mt.jsxDEV("div",{className:"stack",style:{gap:0},children:[Mt.jsxDEV("span",{className:"cell-primary truncate",children:r},void 0,!1,void 0,this),u!==void 0&&Mt.jsxDEV("span",{className:"cell-secondary truncate",children:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}var wm=Z(ht(),1);var Kt=Z(se(),1);function rw(){let{sync:r,indexingHours:u,connected:i,requestSync:d}=vm(),f=NA(r.phase==="idle"?15000:null),b,m;if(!i)b=Kt.jsxDEV(Kt.Fragment,{children:[Kt.jsxDEV(ul,{tone:"warn"},void 0,!1,void 0,this),Kt.jsxDEV("span",{children:"Reconnecting"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m="Lost the live connection to the stats server; retrying";else if(r.phase==="syncing")b=Kt.jsxDEV(Kt.Fragment,{children:[Kt.jsxDEV($r,{size:13,className:"spin"},void 0,!1,void 0,this),Kt.jsxDEV("span",{children:"Syncing"},void 0,!1,void 0,this),r.total>0&&Kt.jsxDEV("span",{className:"live-chip-count",children:[B(r.current),"/",B(r.total)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m="Ingesting session files";else if(r.phase==="error")b=Kt.jsxDEV(Kt.Fragment,{children:[Kt.jsxDEV(ul,{tone:"bad"},void 0,!1,void 0,this),Kt.jsxDEV("span",{children:"Sync failed"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m=`${r.error??"Sync failed"} — click to retry`;else if(u>BA)b=Kt.jsxDEV(Kt.Fragment,{children:[Kt.jsxDEV($r,{size:13,className:"spin"},void 0,!1,void 0,this),Kt.jsxDEV("span",{children:"Indexing"},void 0,!1,void 0,this),Kt.jsxDEV("span",{className:"live-chip-count",children:[B(u),"h left"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),m="Building hourly rollups; older ranges fill in as it goes";else b=Kt.jsxDEV(Kt.Fragment,{children:[Kt.jsxDEV(ul,{tone:"live",pulse:!0},void 0,!1,void 0,this),Kt.jsxDEV("span",{children:"Live"},void 0,!1,void 0,this),r.lastSyncedAt!==null&&Kt.jsxDEV("span",{className:"live-chip-count",children:UA(f-r.lastSyncedAt)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m="Click to sync session files now";return Kt.jsxDEV("button",{type:"button",className:"live-chip",onClick:d,disabled:r.phase==="syncing",title:m,children:b},void 0,!1,void 0,this)}var BA=24;function NA(r){let[u,i]=wm.useState(Date.now);return wm.useEffect(()=>{if(r===null)return;i(Date.now());let d=setInterval(()=>i(Date.now()),r);return()=>clearInterval(d)},[r]),u}function UA(r){let u=Math.max(0,Math.round(r/1000));if(u<45)return"just now";let i=Math.round(u/60);if(i<60)return`${i}m ago`;let d=Math.round(i/60);return d<24?`${d}h ago`:`${Math.round(d/24)}d ago`}var Tm=[{heading:"Usage",items:[{id:"overview",label:"Overview",icon:Ld,hotkey:"o"},{id:"models",label:"Models",icon:bd,hotkey:"m"},{id:"providers",label:"Providers",icon:Gr,hotkey:"p"},{id:"costs",label:"Costs",icon:yd,hotkey:"c"}]},{heading:"Activity",items:[{id:"requests",label:"Requests",icon:cd,hotkey:"r"},{id:"errors",label:"Errors",icon:Hr,hotkey:"e"},{id:"traces",label:"Traces",icon:Sn,hotkey:"t"}]},{heading:"Insights",items:[{id:"tools",label:"Tools",icon:Md,hotkey:"l"},{id:"frustration",label:"Frustration",icon:Fr,hotkey:"f"},{id:"projects",label:"Projects",icon:vd,hotkey:"j"},{id:"gain",label:"Gain",icon:ll,hotkey:"g"}]}],zA=Tm.flatMap((r)=>r.items),sw=zA.map((r)=>r.id);var Im=Z(ht(),1),uw="omp-stats-theme",iw="(prefers-color-scheme: dark)";function PA(){if(typeof localStorage>"u")return"system";let r=localStorage.getItem(uw);return r==="light"||r==="dark"||r==="system"?r:"system"}function cw(){if(typeof window>"u")return"dark";return window.matchMedia(iw).matches?"dark":"light"}var Js=PA(),Od=Js==="system"?cw():Js,Rb=new Set;function dw(){for(let r of Rb)r()}function Mb(){if(Od=Js==="system"?cw():Js,typeof document<"u")document.documentElement.dataset.theme=Od,document.documentElement.style.colorScheme=Od}if(typeof window<"u")Mb(),window.matchMedia(iw).addEventListener("change",()=>{if(Js==="system")Mb(),dw()});function _A(r){if(Js=r,typeof localStorage<"u")localStorage.setItem(uw,r);Mb(),dw()}function Ab(r){return Rb.add(r),()=>Rb.delete(r)}function fw(){return Im.useSyncExternalStore(Ab,()=>Od,()=>"dark")}function pw(){let r=Im.useSyncExternalStore(Ab,()=>Js,()=>"system"),u=Im.useSyncExternalStore(Ab,()=>Od,()=>"dark");return{preference:r,resolved:u,setPreference:_A}}var Db=Z(se(),1),HA={system:"light",light:"dark",dark:"system"},FA={system:kd,light:Rd,dark:wd},mw={system:"System theme",light:"Light theme",dark:"Dark theme"};function hw(){let{preference:r,setPreference:u}=pw(),i=FA[r];return Db.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:()=>u(HA[r]),"aria-label":`${mw[r]} (click to switch)`,title:`${mw[r]} — click to switch`,children:Db.jsxDEV(i,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var tt=Z(se(),1),GA=fi.map((r,u)=>({value:r,label:ua(r).label,title:`${ua(r).windowLabel} (${u+1})`}));function gw({section:r,onSectionChange:u,range:i,onRangeChange:d,children:f}){let[b,m]=vi.useState(!1),v=VA(),{sync:S}=vm();$A(u,d);let x=(L)=>{u(L),m(!1),window.scrollTo({top:0})},h=S.phase==="syncing"?S.total>0?S.current/S.total:null:void 0;return tt.jsxDEV(tt.Fragment,{children:[tt.jsxDEV("div",{className:"shell-ambient"},void 0,!1,void 0,this),tt.jsxDEV("header",{className:"topbar","data-scrolled":v,children:[tt.jsxDEV("button",{type:"button",className:"btn topbar-menu","data-variant":"ghost","data-icon":"true",onClick:()=>m(!0),"aria-label":"Open navigation",children:tt.jsxDEV(Cd,{size:16},void 0,!1,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV("div",{className:"topbar-brand",children:[tt.jsxDEV("svg",{className:"topbar-mark",viewBox:"0 0 64 64",width:"22",height:"22","aria-hidden":"true",children:[tt.jsxDEV("defs",{children:tt.jsxDEV("linearGradient",{id:"omp-mark-grad",x1:"0",y1:"0",x2:"1",y2:"1",children:[tt.jsxDEV("stop",{offset:"0",stopColor:"oklch(0.7 0.24 340)"},void 0,!1,void 0,this),tt.jsxDEV("stop",{offset:".5",stopColor:"oklch(0.62 0.21 295)"},void 0,!1,void 0,this),tt.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),tt.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),tt.jsxDEV("span",{children:"omp"},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"topbar-slash",children:"/"},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"topbar-title",children:"stats"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),tt.jsxDEV("div",{className:"topbar-spacer"},void 0,!1,void 0,this),tt.jsxDEV("div",{className:"topbar-actions",children:[tt.jsxDEV("span",{className:"topbar-hide-narrow",children:tt.jsxDEV(rw,{},void 0,!1,void 0,this)},void 0,!1,void 0,this),tt.jsxDEV(Pa,{options:GA,value:i,onChange:d,"aria-label":"Time range"},void 0,!1,void 0,this),tt.jsxDEV(hw,{},void 0,!1,void 0,this)]},void 0,!0,void 0,this),h!==void 0&&tt.jsxDEV("div",{className:"topbar-progress",children:tt.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),b&&tt.jsxDEV("div",{className:"drawer-scrim",onClick:()=>m(!1),role:"presentation"},void 0,!1,void 0,this),tt.jsxDEV("nav",{className:"sidebar","data-open":b,"aria-label":"Pages",children:[Tm.map((L)=>tt.jsxDEV("div",{className:"nav-group",children:[tt.jsxDEV("div",{className:"nav-heading",children:L.heading},void 0,!1,void 0,this),L.items.map((k)=>tt.jsxDEV("button",{type:"button",className:"nav-row","data-active":k.id===r,"aria-current":k.id===r?"page":void 0,onClick:()=>x(k.id),children:[tt.jsxDEV(k.icon,{size:15},void 0,!1,void 0,this),tt.jsxDEV("span",{className:"nav-row-label",children:k.label},void 0,!1,void 0,this),tt.jsxDEV("kbd",{children:["G ",k.hotkey.toUpperCase()]},void 0,!0,void 0,this)]},k.id,!0,void 0,this))]},L.heading,!0,void 0,this)),tt.jsxDEV("div",{className:"sidebar-foot micro",children:[tt.jsxDEV("span",{children:[tt.jsxDEV("span",{className:"kbd",children:"1"},void 0,!1,void 0,this),"–",tt.jsxDEV("span",{className:"kbd",children:"6"},void 0,!1,void 0,this)," range"]},void 0,!0,void 0,this),tt.jsxDEV("span",{children:[tt.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),tt.jsxDEV("main",{className:"shell-panel",children:tt.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 VA(){let[r,u]=vi.useState(!1);return vi.useEffect(()=>{let i=()=>u(window.scrollY>4);return i(),window.addEventListener("scroll",i,{passive:!0}),()=>window.removeEventListener("scroll",i)},[]),r}function $A(r,u){vi.useEffect(()=>{let i=0,d=(f)=>{if(f.metaKey||f.ctrlKey||f.altKey||f.defaultPrevented)return;let b=f.target;if(b instanceof HTMLElement&&(b.isContentEditable||b.tagName==="INPUT"||b.tagName==="TEXTAREA"||b.tagName==="SELECT"))return;if(document.querySelector('[aria-modal="true"]'))return;let m=f.key.toLowerCase();if(i&&Date.now()-i<1200){i=0;let S=Tm.flatMap((x)=>x.items).find((x)=>x.hotkey===m);if(S)f.preventDefault(),r(S.id),window.scrollTo({top:0});return}if(m==="g"){i=Date.now();return}let v=Number(m)-1;if(Number.isInteger(v)&&v>=0&&v<fi.length)f.preventDefault(),u(fi[v])};return window.addEventListener("keydown",d),()=>window.removeEventListener("keydown",d)},[r,u])}var Vl=Z(ht(),1);function qd(r){let[u,i]=r.replace(/^#\/?/,"").split("?"),d=sw.includes(u)?u:"overview",f=new URLSearchParams(i??""),b=f.get("range"),m=fi.includes(b??"")?b:"24h";return{section:d,range:m,session:f.get("s")}}function Rm({section:r,range:u,session:i}){let d=i?`&s=${encodeURIComponent(i)}`:"";return`#/${r}?range=${u}${d}`}function yw(){let[r,u]=Vl.useState(()=>qd(window.location.hash));Vl.useEffect(()=>{let m=()=>u(qd(window.location.hash));window.addEventListener("hashchange",m),window.addEventListener("popstate",m);let v=Rm(qd(window.location.hash));if(window.location.hash!==v)history.replaceState(null,"",v);return()=>{window.removeEventListener("hashchange",m),window.removeEventListener("popstate",m)}},[]);let i=Vl.useCallback((m)=>{u(m);let v=Rm(m);if(window.location.hash!==v)history.pushState(null,"",v)},[]),d=Vl.useCallback((m)=>i({...r,section:m,session:m==="traces"?r.session:null}),[r,i]),f=Vl.useCallback((m)=>i({...r,range:m}),[r,i]),b=Vl.useCallback((m)=>i({...r,session:m}),[r,i]);return{...r,setSection:d,setRange:f,setSession:b}}var zd=Z(ht(),1);var pl=Z(se(),1);function Bd({items:r,max:u,onSelect:i}){let d=u??Math.max(0,...r.map((f)=>f.value));return pl.jsxDEV("div",{className:"bar-list",children:r.map((f)=>{let b=d>0?Math.max(0.5,f.value/d*100):0,m=pl.jsxDEV(pl.Fragment,{children:[pl.jsxDEV("span",{className:"bar-list-fill",style:{width:`${b}%`,background:f.color??"var(--chart-primary)"}},void 0,!1,void 0,this),pl.jsxDEV("span",{className:"bar-list-label",children:f.label},void 0,!1,void 0,this),pl.jsxDEV("span",{className:"bar-list-value",children:f.display??B(f.value)},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?pl.jsxDEV("button",{type:"button",className:"bar-list-row",onClick:()=>i(f.key),children:m},f.key,!1,void 0,this):pl.jsxDEV("div",{className:"bar-list-row",children:m},f.key,!1,void 0,this)})},void 0,!1,void 0,this)}var $l=Z(ht(),1);var bt=Z(se(),1),eu=10,jA=24,XA=68,YA=4;function wn({slots:r,tickLabel:u,tooltipTitle:i,series:d,kind:f="bars",stacked:b=!0,height:m=220,format:v=Re,formatRight:S,formatTooltip:x,yMax:h,yMaxRight:L,hidden:k,showTotal:w,references:C,onSelect:A,emptyLabel:M="No data in this range",tooltipExtra:N}){let[U,V]=km(),[X,ie]=$l.useState(null),K=$l.useId().replace(/:/g,""),ee=$l.useMemo(()=>d.filter((G)=>!k?.has(G.key)),[d,k]),j=$l.useMemo(()=>{let G=ee.filter((dt)=>dt.axis!=="right"),Ie=ee.filter((dt)=>dt.axis==="right"),ae=(dt)=>b&&(dt.kind??f)!=="line",ye=new Map,F=Array.from({length:r},()=>0),Pe=0;for(let dt of G)if(ae(dt)){let Ee=F.slice();ye.set(dt.key,Ee);for(let sn=0;sn<r;sn++)F[sn]+=dt.values[sn]??0}else for(let Ee=0;Ee<r;Ee++)Pe=Math.max(Pe,dt.values[Ee]??0);for(let dt of F)Pe=Math.max(Pe,dt);let Ye=0;for(let dt of Ie)for(let Ee=0;Ee<r;Ee++)Ye=Math.max(Ye,dt.values[Ee]??0);for(let dt of C??[])if(dt.axis==="right")Ye=Math.max(Ye,dt.value);else Pe=Math.max(Pe,dt.value);let Ue=bw(h??Pe),ct=Ie.length>0?bw(L??Ye):null,Je=ee.every((dt)=>dt.values.every((Ee)=>!Ee));return{left:G,right:Ie,bases:ye,stackable:ae,leftScale:Ue,rightScale:ct,empty:Je}},[ee,r,b,f,h,L,C]),te=j.leftScale.ticks.map((G)=>v(G)),_=j.rightScale?.ticks.map((G)=>(S??v)(G))??[],ce=Math.max(28,vw(te)+12),ve=j.rightScale?Math.max(28,vw(_)+12):8,Le=Math.max(0,V-ce-ve),Be=m-eu-jA,oe=r>0?Le/r:0,pe=(G)=>eu+Be-G/j.leftScale.max*Be,ke=(G)=>eu+Be-G/(j.rightScale?.max??1)*Be,Xe=(G)=>ce+(G+0.5)*oe,vt=ee.filter((G)=>(G.kind??f)==="bars"),W=vt.filter((G)=>!j.stackable(G)||G.axis==="right"),Ne=Math.max(1,Math.min(56,oe*(oe>6?0.72:0.9))),Lt=Math.max(1,Math.ceil(r/Math.max(1,Math.floor(Le/XA)))),ut=(G)=>{let Ie=G.currentTarget.getBoundingClientRect(),ae=Math.floor((G.clientX-Ie.left)/(Ie.width/r));ie(ae>=0&&ae<r?ae:null)},it=X===null?[]:ee.filter((G)=>G.tooltip!==!1).map((G)=>({s:G,v:G.values[X]})).filter((G)=>G.v!==null&&G.v!==void 0&&(G.v!==0||ee.length===1)).sort((G,Ie)=>ee.length>1?Ie.v-G.v:0),Me=it.filter((G)=>G.s.axis!=="right").reduce((G,Ie)=>G+Ie.v,0),ge=w??(b&&j.left.length>1);return bt.jsxDEV("div",{className:"chart",ref:U,"data-hovering":X!==null,style:{height:m},children:[V>0&&bt.jsxDEV("svg",{width:V,height:m,role:"img",children:[bt.jsxDEV("defs",{children:ee.filter((G)=>G.pattern==="hatch").map((G)=>bt.jsxDEV("pattern",{id:`${K}-${Eb(G.key)}`,width:"5",height:"5",patternUnits:"userSpaceOnUse",patternTransform:"rotate(45)",children:[bt.jsxDEV("rect",{width:"5",height:"5",fill:G.color,fillOpacity:"0.14"},void 0,!1,void 0,this),bt.jsxDEV("rect",{width:"1.6",height:"5",fill:G.color},void 0,!1,void 0,this)]},G.key,!0,void 0,this))},void 0,!1,void 0,this),bt.jsxDEV("g",{className:"chart-grid",children:j.leftScale.ticks.map((G)=>bt.jsxDEV("line",{x1:ce,x2:ce+Le,y1:pe(G),y2:pe(G)},G,!1,void 0,this))},void 0,!1,void 0,this),bt.jsxDEV("g",{className:"chart-axis",children:[j.leftScale.ticks.map((G,Ie)=>bt.jsxDEV("text",{x:ce-8,y:pe(G),dy:"0.32em",textAnchor:"end",children:te[Ie]},G,!1,void 0,this)),j.rightScale?.ticks.map((G,Ie)=>bt.jsxDEV("text",{x:ce+Le+8,y:ke(G),dy:"0.32em",textAnchor:"start",children:_[Ie]},G,!1,void 0,this)),Array.from({length:r},(G,Ie)=>Ie%Lt===0?bt.jsxDEV("text",{x:Xe(Ie),y:m-6,textAnchor:"middle",children:u(Ie)},Ie,!1,void 0,this):null)]},void 0,!0,void 0,this),X!==null&&bt.jsxDEV("rect",{className:"chart-cursor",x:ce+X*oe,y:eu,width:oe,height:Be},void 0,!1,void 0,this),ee.filter((G)=>(G.kind??f)==="area").map((G)=>{let Ie=G.axis==="right"?ke:pe,ae=j.bases.get(G.key),ye=(Ue)=>(ae?.[Ue]??0)+(G.values[Ue]??0),F=Sw(r,Xe,(Ue)=>Ie(ye(Ue))),Pe=Array.from({length:r},(Ue,ct)=>r-1-ct).map((Ue)=>`L${Xe(Ue).toFixed(1)},${Ie(ae?.[Ue]??0).toFixed(1)}`).join(""),Ye=G.pattern==="hatch"?`url(#${K}-${Eb(G.key)})`:G.color;return bt.jsxDEV("g",{children:[bt.jsxDEV("path",{d:`${F}${Pe}Z`,fill:Ye,fillOpacity:G.pattern?1:0.2},void 0,!1,void 0,this),bt.jsxDEV("path",{className:"chart-line",d:F,stroke:G.color},void 0,!1,void 0,this)]},G.key,!0,void 0,this)}),vt.map((G)=>{let Ie=G.axis==="right"?ke:pe,ae=j.bases.get(G.key),ye=W.indexOf(G),F=ye>=0?Ne/W.length:Ne,Pe=G.pattern==="hatch"?`url(#${K}-${Eb(G.key)})`:G.color;return bt.jsxDEV("g",{children:G.values.map((Ye,Ue)=>{if(!Ye)return null;let ct=ye>=0?0:ae?.[Ue]??0,Je=Ie(ct),dt=Ie(ct+Ye),Ee=Xe(Ue)-Ne/2+(ye>=0?ye*F:0);return bt.jsxDEV("rect",{className:"chart-bar","data-hover":X===Ue,x:Ee,y:Math.min(Je,dt),width:Math.max(1,F-(ye>=0&&W.length>1?1:0)),height:Math.max(Ye>0?1:0,Math.abs(Je-dt)),fill:Pe},Ue,!1,void 0,this)})},G.key,!1,void 0,this)}),ee.filter((G)=>(G.kind??f)==="line").map((G)=>{let Ie=G.axis==="right"?ke:pe,ae=(ye)=>{let F=G.values[ye];return F===null||F===void 0?null:Ie(F)};return bt.jsxDEV("g",{children:[bt.jsxDEV("path",{className:"chart-line",d:Sw(r,Xe,ae),stroke:G.color,strokeDasharray:G.dashed?"4 3":void 0},void 0,!1,void 0,this),G.values.map((ye,F)=>{let Pe=ae(F);if(Pe===null||F>0&&ae(F-1)!==null||F<r-1&&ae(F+1)!==null)return null;return bt.jsxDEV("circle",{cx:Xe(F),cy:Pe,r:2.5,fill:G.color},F,!1,void 0,this)})]},G.key,!0,void 0,this)}),C?.map((G)=>{let Ie=G.axis==="right"?ke(G.value):pe(G.value);return bt.jsxDEV("g",{className:"chart-axis",children:[bt.jsxDEV("line",{x1:ce,x2:ce+Le,y1:Ie,y2:Ie,stroke:"var(--line-4)",strokeDasharray:"3 3"},void 0,!1,void 0,this),G.label&&bt.jsxDEV("text",{x:ce+Le-4,y:Ie-5,textAnchor:"end",children:G.label},void 0,!1,void 0,this)]},`${G.axis??"left"}:${G.value}`,!0,void 0,this)}),bt.jsxDEV("line",{className:"chart-baseline",x1:ce,x2:ce+Le,y1:pe(0),y2:pe(0)},void 0,!1,void 0,this),bt.jsxDEV("rect",{x:ce,y:eu,width:Le,height:Be,fill:"transparent",onPointerMove:ut,onPointerLeave:()=>ie(null),onClick:A&&X!==null?()=>A(X):void 0,style:{cursor:A?"pointer":"crosshair"}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j.empty&&bt.jsxDEV("div",{className:"chart-empty",children:M},void 0,!1,void 0,this),X!==null&&!j.empty&&bt.jsxDEV("div",{className:"chart-tooltip",style:Xe(X)>V/2?{right:V-Xe(X)+Math.min(oe/2,24)+8,top:eu}:{left:Xe(X)+Math.min(oe/2,24)+8,top:eu},children:[bt.jsxDEV("div",{className:"chart-tooltip-title",children:(i??u)(X)},void 0,!1,void 0,this),it.map(({s:G,v:Ie})=>bt.jsxDEV("div",{className:"chart-tooltip-row",children:[bt.jsxDEV("span",{className:"swatch",style:{background:G.color}},void 0,!1,void 0,this),bt.jsxDEV("span",{className:"chart-tooltip-label",children:G.label},void 0,!1,void 0,this),bt.jsxDEV("span",{className:"chart-tooltip-value",children:G.axis==="right"?(S??v)(Ie):(x??v)(Ie)},void 0,!1,void 0,this)]},G.key,!0,void 0,this)),ge&&it.length>1&&bt.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[bt.jsxDEV("span",{className:"chart-tooltip-label",children:"Total"},void 0,!1,void 0,this),bt.jsxDEV("span",{className:"chart-tooltip-value",children:(x??v)(Me)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),N&&bt.jsxDEV($l.Fragment,{children:N(X)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function bw(r){if(!(r>0))return{max:1,ticks:[0]};let u=r/YA,i=10**Math.floor(Math.log10(u)),d=[1,2,2.5,5,10].map((m)=>m*i).find((m)=>m>=u)??10*i,f=Math.ceil(r/d)*d,b=[];for(let m=0;m<=f+d/2;m+=d)b.push(Number(m.toPrecision(12)));return{max:f,ticks:b}}function vw(r){return r.reduce((u,i)=>Math.max(u,i.length*6.3),0)}function Sw(r,u,i){let d="",f=!1;for(let b=0;b<r;b++){let m=i(b);if(m===null){f=!1;continue}d+=`${f?"L":"M"}${u(b).toFixed(1)},${m.toFixed(1)}`,f=!0}return d}function Eb(r){return r.replace(/[^a-zA-Z0-9_-]/g,"_")}var Mm=Z(ht(),1),ml=Z(se(),1);function Qa({items:r,hidden:u,onToggle:i}){return ml.jsxDEV("div",{className:"legend",children:r.map((d)=>{let f=ml.jsxDEV(ml.Fragment,{children:[ml.jsxDEV("span",{className:"swatch",style:{background:d.color}},void 0,!1,void 0,this),ml.jsxDEV("span",{className:"truncate",children:d.label},void 0,!1,void 0,this),d.value&&ml.jsxDEV("span",{className:"legend-value",children:d.value},void 0,!1,void 0,this)]},void 0,!0,void 0,this);return i?ml.jsxDEV("button",{type:"button",className:"legend-item","data-off":u?.has(d.key)??!1,onClick:()=>i(d.key),title:d.label,children:f},d.key,!1,void 0,this):ml.jsxDEV("span",{className:"legend-item",title:d.label,children:f},d.key,!1,void 0,this)})},void 0,!1,void 0,this)}function rn(){let[r,u]=Mm.useState(()=>new Set),i=Mm.useCallback((d)=>{u((f)=>{let b=new Set(f);if(!b.delete(d))b.add(d);return b})},[]);return[r,i]}var Ob=Z(se(),1);function Zr({segments:r,height:u=8}){let i=r.reduce((d,f)=>d+Math.max(0,f.value),0);return Ob.jsxDEV("div",{className:"share-bar",style:{height:u},role:"img",children:i>0&&r.filter((d)=>d.value>0).map((d)=>Ob.jsxDEV("div",{className:"share-bar-seg",style:{flexGrow:d.value/i,background:d.color},title:`${d.label}: ${(d.value/i*100).toFixed(1)}%`},d.key,!1,void 0,this))},void 0,!1,void 0,this)}var xw=Z(se(),1);function jl({buckets:r,bucketMs:u,onSelectBucket:i,...d}){return xw.jsxDEV(wn,{...d,slots:r.length,tickLabel:(f)=>gm(r[f],u),tooltipTitle:(f)=>hm(r[f],u),onSelect:i?(f)=>i(r[f]):void 0},void 0,!1,void 0,this)}var Ha=["#5ad8e6","#ed4abf","#9d7bff","#f5b54a","#4ade80","#5b8cff","#ff7a59","#2dd4bf","#c3e94f","#fb7185"],to="#6c6c74";function ba(r,u){return`${r}::${u}`}function Am(r){return Nd(r.map((u)=>({key:ba(u.model,u.provider),weight:u.totalRequests})))}function Nd(r){let u=[...r].sort((i,d)=>d.weight-i.weight||i.key.localeCompare(d.key));return new Map(u.map((i,d)=>[i.key,Ha[d%Ha.length]]))}var va=Z(ht(),1);var QA={entries:new Map,limit:128},ZA={entries:new Map,limit:4},WA={entries:new Map,limit:16},tu=new Map;function Lw(r){if(r.startsWith('["trace",'))return ZA;if(r.startsWith('["request",'))return WA;return QA}function Ud(r){return Lw(r).entries.get(r)}function Cw(r){return tu.get(r)}function KA(r,u){let{entries:i,limit:d}=Lw(r);if(i.delete(r),i.set(r,u),i.size>d){let f=i.keys().next().value;if(f!==void 0)i.delete(f)}}function kw(r,u,i){let d=tu.get(r);if(d)return d.waiters++,d;let f=new AbortController,b=Ud(r)?.data,m={promise:i({signal:f.signal},b).then((v)=>(KA(r,{data:v,updatedAt:Date.now(),version:u}),v)).finally(()=>{if(tu.get(r)===m)tu.delete(r)}),controller:f,waiters:1};return tu.set(r,m),m}function qb(r,u){if(u.waiters--,u.waiters>0)return;if(tu.get(r)===u)tu.delete(r);u.controller.abort()}var JA=1500;function Ht(r,u,i){let d=JSON.stringify(r),f=i?.enabled??!0,b=i?.pollMs,m=aw(f),[,v]=va.useReducer((ee)=>ee+1,0),[S,x]=va.useState(null),[h,L]=va.useState(!1),k=va.useRef(u);k.current=u;let w=va.useRef(d);w.current=d;let C=va.useRef(null),A=va.useRef(0),M=va.useRef(null),N=va.useCallback((ee)=>{A.current=Date.now();let j=M.current;if(j?.key===ee&&Cw(ee)===j.request)return;let te=Ud(ee)?.data;L(!0);let _=kw(ee,ew(),k.current);if(M.current={key:ee,request:_},j)qb(j.key,j.request);_.promise.then((ce)=>{if(w.current!==ee)return;if(ce===te){x((ve)=>ve===null?ve:null);return}va.startTransition(()=>{x(null),v()})}).catch((ce)=>{if(w.current!==ee||_.controller.signal.aborted)return;x({key:ee,error:ce instanceof Error?ce:Error(String(ce))})}).finally(()=>{if(M.current?.request===_)M.current=null;if(w.current===ee)L(!1)})},[]),U=va.useCallback(()=>{let ee=M.current;if(M.current=null,ee)qb(ee.key,ee.request)},[]);va.useEffect(()=>U,[U]),va.useEffect(()=>{if(!f||M.current&&M.current.key!==d)U();if(!f)return;let ee=Ud(d);if(ee&&ee.version>=m)return;let j=ee?A.current+JA-Date.now():0;if(j<=0){N(d);return}let te=setTimeout(()=>N(d),j);return()=>clearTimeout(te)},[d,f,m,N,U]),va.useEffect(()=>{if(!f||!b)return;let ee=setInterval(()=>{if(!document.hidden)N(w.current)},b);return()=>clearInterval(ee)},[f,b,N]);let V=va.useCallback(()=>N(w.current),[N]),X=Ud(d);if(X)C.current={key:d,data:X.data,updatedAt:X.updatedAt};let ie=C.current,K=S?.key===d?S.error:null;return{data:ie?.data??null,error:K,loading:!ie&&!K,stale:!!ie&&ie.key!==d,refreshing:h,updatedAt:ie?.updatedAt??null,refetch:V}}function Sa(r,u,i){let d=ww(u),f=Array.from({length:u.length},()=>0);for(let b of r){let m=d.get(b.timestamp);if(m!==void 0)f[m]+=i(b)}return f}function hl(r,u){let i=ww(u.buckets),d=new Map;for(let x of r){let h=i.get(x.timestamp);if(h===void 0)continue;let L=u.key(x),k=d.get(L);if(!k)k=Array.from({length:u.buckets.length},()=>0),d.set(L,k);k[h]+=u.value(x)}let f=[...d.entries()].map(([x,h])=>({key:x,values:h,total:h.reduce((L,k)=>L+k,0)})).filter((x)=>x.total!==0).sort((x,h)=>h.total-x.total||x.key.localeCompare(h.key)),b=u.limit??Number.POSITIVE_INFINITY,m=f.slice(0,b),v=f.slice(b),S=m.map((x,h)=>({key:x.key,label:u.label?u.label(x.key):x.key,color:u.colors?.get(x.key)??Ha[h%Ha.length],values:x.values}));if(v.length>0){let x=Array.from({length:u.buckets.length},()=>0);for(let h of v)for(let L=0;L<x.length;L++)x[L]+=h.values[L];S.push({key:"__other__",label:`Other (${v.length})`,color:to,values:x})}return S}function ww(r){let u=new Map;for(let i=0;i<r.length;i++)u.set(r[i],i);return u}var e2=["main","subagent","advisor"];function Wr(r){return r.totalInputTokens+r.totalOutputTokens+r.totalCacheReadTokens+r.totalCacheWriteTokens}function Rw(r){let u=new Map;for(let m of r)u.set(m.agentType,m);let i=e2.map((m)=>u.get(m)).filter((m)=>m!==void 0),d=i.reduce((m,v)=>m+Wr(v),0),f=i.reduce((m,v)=>m+v.totalCost,0),b=i.map((m)=>{let v=Wr(m);return{agentType:m.agentType,tokens:v,requests:m.totalRequests,cost:m.totalCost,share:d>0?v/d:0}});return{totalTokens:d,totalCost:f,segments:b}}function Mw(r){let u={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},i=new Map;for(let f of r){let b=ba(f.model,f.provider),m=i.get(b);if(!m)m={key:b,model:f.model,provider:f.provider,cost:0,requests:0,unpricedRequests:0,costInput:0,costOutput:0,costCacheRead:0,costCacheWrite:0,share:0},i.set(b,m);Tw(m,f),Tw(u,f),m.cost+=f.cost,u.totalCost+=f.cost}u.avgDailyCost=u.activeDays>0?u.totalCost/u.activeDays:0,u.models=[...i.values()].sort((f,b)=>b.cost-f.cost||b.requests-f.requests||f.key.localeCompare(b.key));for(let f of u.models)f.share=u.totalCost>0?f.cost/u.totalCost:0;let d=u.models[0];return u.topModel=d!==void 0&&d.cost>0?d:null,u}function Tw(r,u){r.costInput+=u.costInput,r.costOutput+=u.costOutput,r.costCacheRead+=u.costCacheRead,r.costCacheWrite+=u.costCacheWrite,r.requests+=u.requests,r.unpricedRequests+=u.unpricedRequests}function Aw(r){let u=new Map;for(let i of r){let d=ba(i.model,i.provider),f=u.get(d);if(!f)f=[],u.set(d,f);f.push({timestamp:i.timestamp,avgTtftSeconds:i.avgTtft!==null?i.avgTtft/1000:null,avgTokensPerSecond:i.avgTokensPerSecond,requests:i.requests})}for(let i of u.values())i.sort((d,f)=>d.timestamp-f.timestamp);return u}var t2=/^\/?-?(?:private-)?(?:tmp|var-folders)(?:[-/]|$)/;function Dw(r){let u=0,i=0,d=0,f=0,b=0,m=0,v=0,S=0,x=0;for(let k of r){if(u+=k.totalRequests,i+=k.failedRequests,d+=k.totalCost,f+=k.unpricedRequests,b+=k.totalInputTokens+k.totalCacheReadTokens+k.totalCacheWriteTokens+k.totalOutputTokens,m+=k.totalInputTokens,v+=k.totalCacheReadTokens,k.totalRequests>S)S=k.totalRequests;if(k.totalCost>x)x=k.totalCost}let h=0;return{rows:r.map((k)=>{let w=t2.test(k.folder);if(w)h++;return{...k,conversationTokens:k.totalInputTokens+k.totalCacheReadTokens+k.totalCacheWriteTokens+k.totalOutputTokens,requestShare:u>0?k.totalRequests/u:0,costShare:d>0?k.totalCost/d:0,temporary:w}}),totalRequests:u,failedRequests:i,totalCost:d,unpricedRequests:f,conversationTokens:b,cacheRate:m+v>0?v/(m+v):0,maxRequests:S,maxCost:x,temporaryCount:h}}function Ew(r){let u=0,i=0,d=0;for(let f of r)u+=f.calls,i+=f.totalTokensShare,d+=f.costShare;return r.map((f)=>({...f,errorRate:f.calls>0?f.errors/f.calls:0,callFraction:u>0?f.calls/u:0,tokenFraction:i>0?f.totalTokensShare/i:0,costFraction:d>0?f.costShare/d:0,avgResultChars:f.calls>0?f.resultChars/f.calls:0}))}function Xl(r){if(r.stopReason==="aborted")return"aborted";if(r.stopReason==="error"||r.errorMessage)return"failed";return"ok"}function Bb(r,u){if(r.length===0)return null;return r[Math.min(r.length-1,Math.max(0,Math.ceil(u*r.length)-1))]}function Ow(r){let u=0,i=0,d=0,f=0,b=0,m=null,v=null,S=[],x=[];for(let h of r){let L=Xl(h);if(L==="failed")u++;else if(L==="aborted")i++;if(d+=h.usage.totalTokens,f+=h.usage.cost.total,Tb(h))b++;if(h.duration!==null)S.push(h.duration);if(h.ttft!==null)x.push(h.ttft);if(m===null||h.timestamp<m)m=h.timestamp;if(v===null||h.timestamp>v)v=h.timestamp}return S.sort((h,L)=>h-L),x.sort((h,L)=>h-L),{requests:r.length,failed:u,aborted:i,tokens:d,cost:f,unpriced:b,medianDuration:Bb(S,0.5),p95Duration:Bb(S,0.95),medianTtft:Bb(x,0.5),oldest:m,newest:v}}var Iw=180,a2=/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/gi,o2=/\b(?:req|msg|call|toolu|chatcmpl|resp|run|gen)[-_][A-Za-z0-9_-]{6,}/g,n2=/\b[0-9a-f]{12,}\b/gi,l2=/(?<![\w.-])\d+(?:\.\d+)?/g,r2=/^[1-5]\d\d$/;function Nb(r){if(!r?.trim())return"Unknown error";let u=r.replace(/\s+/g," ").trim().replace(a2,"<id>").replace(o2,"<id>").replace(n2,"<hex>").replace(l2,(i)=>r2.test(i)?i:"N");return u.length>Iw?`${u.slice(0,Iw-1)}…`:u}function qw(r){let u=new Map;for(let i of r){let d=Nb(i.errorMessage),f=u.get(d);if(!f)f={signature:d,count:0,firstSeen:i.timestamp,lastSeen:i.timestamp,latest:i,models:[],byModel:new Map},u.set(d,f);if(f.count++,i.timestamp<f.firstSeen)f.firstSeen=i.timestamp;if(i.timestamp>f.lastSeen)f.lastSeen=i.timestamp,f.latest=i;let b=ba(i.model,i.provider),m=f.byModel.get(b);if(m)m.count++;else f.byModel.set(b,{model:i.model,provider:i.provider,count:1})}return[...u.values()].map(({byModel:i,...d})=>({...d,models:[...i.values()].sort((f,b)=>b.count-f.count||f.model.localeCompare(b.model))})).sort((i,d)=>d.count-i.count||d.lastSeen-i.lastSeen)}var Ae=Z(se(),1),s2=[{value:"model",label:"By model"},{value:"component",label:"By component"}],u2=6,i2=86400000,Pd=[{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"}],c2=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"}),d2=new Intl.DateTimeFormat(void 0,{weekday:"short",month:"short",day:"numeric",year:"numeric",timeZone:"UTC"});function Bw({active:r,range:u}){let i=Ht(["costs",u],({signal:k})=>Bk(u,k),{enabled:r}),d=ua(u),[f,b]=zd.useState("model"),[m,v]=rn(),S=zd.useMemo(()=>i.data?f2(i.data,u):null,[i.data,u]),x=zd.useMemo(()=>S?h2(S):[],[S]),h=(k)=>k.costSeries.length===0,L=Ae.jsxDEV(Ct,{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(na,{title:"Costs",description:`What ${d.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(Fe,{query:i,skeleton:Ae.jsxDEV(Oa,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:h,empty:L,children:()=>S&&Ae.jsxDEV(p2,{view:S,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ae.jsxDEV("div",{className:"grid grid-main-side",children:[Ae.jsxDEV(je,{index:1,title:"Daily estimate",description:f==="model"?"Per UTC day, stacked by model":"Per UTC day, stacked by billing component",actions:Ae.jsxDEV(Pa,{size:"sm",options:s2,value:f,onChange:b,"aria-label":"Split by"},void 0,!1,void 0,this),stale:i.stale,children:Ae.jsxDEV(Fe,{query:i,skeleton:Ae.jsxDEV(Nt,{height:280},void 0,!1,void 0,this),isEmpty:h,empty:L,children:()=>{if(!S)return null;let k=f==="model"?S.modelSeries:S.componentSeries;return Ae.jsxDEV("div",{className:"stack",style:{gap:12},children:[Ae.jsxDEV(wn,{slots:S.buckets.length,tickLabel:(w)=>c2.format(S.buckets[w]),tooltipTitle:(w)=>d2.format(S.buckets[w]),series:k,hidden:m,height:280,format:(w)=>ca(w,Number.isInteger(w)?0:2),formatTooltip:(w)=>ca(w),emptyLabel:"No priced usage in this range",tooltipExtra:(w)=>S.unpricedPerDay[w]>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:B(S.unpricedPerDay[w])},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null},void 0,!1,void 0,this),Ae.jsxDEV(Qa,{items:k.map((w)=>({key:w.key,label:w.label,color:w.color,value:ca(g2(w.values))})),hidden:m,onToggle:v},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(je,{index:2,title:"Where it went",description:"Estimate by billing component",stale:i.stale,children:Ae.jsxDEV(Fe,{query:i,skeleton:Ae.jsxDEV(Nt,{height:280},void 0,!1,void 0,this),isEmpty:h,empty:L,children:()=>S&&Ae.jsxDEV(m2,{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(je,{index:3,title:"By model",description:"Estimate per model with its input, output and cache split",stale:i.stale,flush:!0,children:Ae.jsxDEV(Fe,{query:i,skeleton:Ae.jsxDEV(ia,{rows:8},void 0,!1,void 0,this),isEmpty:h,empty:L,children:()=>S&&Ae.jsxDEV($t,{rows:S.summary.models,rowKey:(k)=>k.key,columns:x,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 f2(r,u){let i=r.costSeries,d=Mw(i),f=Am(d.models.map((x)=>({model:x.model,provider:x.provider,totalRequests:x.requests}))),b=new Map(d.models.map((x)=>[x.key,x])),m=Po(u,i.map((x)=>x.timestamp),i2),v=hl(i,{buckets:m,key:(x)=>ba(x.model,x.provider),label:(x)=>b.get(x)?.model??x,value:(x)=>x.cost,limit:u2,colors:f}).map((x)=>({...x,values:x.values.map((h)=>h||null)})),S=new Set;for(let x of v){if(x.key==="__other__")continue;if(S.has(x.color))x.color=Ha.find((h)=>!S.has(h))??x.color;S.add(x.color)}return{summary:d,swatches:new Map(v.filter((x)=>x.key!=="__other__").map((x)=>[x.key,x.color])),buckets:m,dailyTotals:Sa(i,m,(x)=>x.cost),unpricedPerDay:Sa(i,m,(x)=>x.unpricedRequests),modelSeries:v,componentSeries:Pd.map((x)=>({key:x.key,label:x.label,color:x.color,values:Sa(i,m,(h)=>h[x.key]).map((h)=>h||null)})),maxModelCost:d.models[0]?.cost??0}}function p2({view:r,stale:u}){let{summary:i}=r,d=i.requests-i.unpricedRequests,f=i.topModel;return Ae.jsxDEV("div",{"data-stale":u,children:Ae.jsxDEV(la,{min:180,children:[Ae.jsxDEV(ue,{label:"API-equivalent estimate",title:"What this usage would cost at public API rates",value:_t(i.totalCost,i.unpricedRequests),hint:`${B(i.requests)} requests`,spark:r.dailyTotals,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Ae.jsxDEV(ue,{label:"Average per day",title:"Estimate ÷ days with any usage",value:_t(i.avgDailyCost,i.unpricedRequests),hint:`over ${B(i.activeDays)} active day${i.activeDays===1?"":"s"}`},void 0,!1,void 0,this),Ae.jsxDEV(ue,{label:"Top model",title:f?`${f.model} (${f.provider})`:void 0,value:f?f.model:"–",hint:f?`${ca(f.cost)} · ${He(f.share)} of estimate`:"Nothing priced yet"},void 0,!1,void 0,this),Ae.jsxDEV(ue,{label:"Per priced request",title:"Estimate ÷ requests that have a public price",value:d>0?Nw(i.totalCost/d):"–",hint:`${B(d)} priced`},void 0,!1,void 0,this),Ae.jsxDEV(ue,{label:"Unpriced requests",title:"Subscription usage with no public-equivalent price; excluded from the estimate",value:B(i.unpricedRequests),hint:i.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 m2({summary:r}){return Ae.jsxDEV("div",{className:"stack",style:{gap:14},children:[Ae.jsxDEV(Zr,{height:10,segments:Pd.map((u)=>({key:u.key,label:u.label,value:r[u.key],color:u.color}))},void 0,!1,void 0,this),Ae.jsxDEV("div",{className:"costs-components",children:[Pd.map((u)=>Ae.jsxDEV("div",{className:"costs-component-row",children:[Ae.jsxDEV("span",{className:"row",children:[Ae.jsxDEV(Ln,{color:u.color},void 0,!1,void 0,this),u.label]},void 0,!0,void 0,this),Ae.jsxDEV("span",{className:"num",children:ca(r[u.key])},void 0,!1,void 0,this),Ae.jsxDEV("span",{className:"num dim costs-component-share",children:r.totalCost>0?He(r[u.key]/r.totalCost):"–"},void 0,!1,void 0,this)]},u.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:_t(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:[B(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 h2(r){let u=Pd.map((i)=>({key:i.key,header:i.label,align:"right",sort:(d)=>d[i.key],render:(d)=>Ae.jsxDEV("span",{className:"num",children:ca(d[i.key])},void 0,!1,void 0,this)}));return[{key:"model",header:"Model",sort:(i)=>i.model,render:(i)=>Ae.jsxDEV(_a,{lead:Ae.jsxDEV(Ln,{color:r.swatches.get(i.key)??to},void 0,!1,void 0,this),primary:Ae.jsxDEV("span",{className:"mono",children:i.model},void 0,!1,void 0,this),secondary:i.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(i)=>i.requests,render:(i)=>Ae.jsxDEV("span",{className:"num",children:B(i.requests)},void 0,!1,void 0,this)},{key:"cost",header:"Estimate",title:"API-equivalent estimate at public rates",align:"right",sort:(i)=>i.cost,render:(i)=>Ae.jsxDEV(fa,{value:i.cost,max:r.maxModelCost,display:_t(i.cost,i.unpricedRequests),color:r.swatches.get(i.key)??to},void 0,!1,void 0,this)},{key:"share",header:"Share",align:"right",sort:(i)=>i.share,render:(i)=>Ae.jsxDEV("span",{className:"num muted",children:i.cost>0?He(i.share):"–"},void 0,!1,void 0,this)},{key:"split",header:"Split",title:"Input · output · cache read · cache write",width:150,render:(i)=>i.cost>0?Ae.jsxDEV(Zr,{segments:Pd.map((d)=>({key:d.key,label:d.label,value:i[d.key],color:d.color}))},void 0,!1,void 0,this):Ae.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)},...u,{key:"perRequest",header:"Per request",title:"Estimate ÷ priced requests",align:"right",sort:(i)=>i.requests>i.unpricedRequests?i.cost/(i.requests-i.unpricedRequests):-1,render:(i)=>Ae.jsxDEV("span",{className:"num",children:i.requests>i.unpricedRequests?Nw(i.cost/(i.requests-i.unpricedRequests)):"–"},void 0,!1,void 0,this)},{key:"unpriced",header:"Unpriced",title:"Requests with no public-equivalent price",align:"right",sort:(i)=>i.unpricedRequests,render:(i)=>i.unpricedRequests>0?Ae.jsxDEV("span",{className:"num tone-warn",children:B(i.unpricedRequests)},void 0,!1,void 0,this):Ae.jsxDEV("span",{className:"num dim",children:"–"},void 0,!1,void 0,this)}]}function Nw(r){return r>0&&r<0.0001?"<$0.0001":ca(r)}function g2(r){let u=0;for(let i of r)u+=i??0;return u}var Yl=Z(ht(),1);var be=Z(se(),1),Ub=[50,200,1000];function Uw({active:r,range:u,onRequestClick:i}){let[d,f]=Yl.useState(0),b=Ub[d],m=Ht(["errors",u,b],({signal:te})=>Nk(u,b,te),{enabled:r}),[v,S]=Yl.useState(null),[x,h]=Yl.useState(null),[L,k]=Yl.useState(""),w=ua(u),C=Yl.useMemo(()=>{let te=(m.data??[]).map((Be)=>({row:Be,signature:Nb(Be.errorMessage)})),_=qw(m.data??[]),ce=new Map;for(let{row:Be}of te){let oe=ba(Be.model,Be.provider),pe=ce.get(oe);if(pe)pe.count++;else ce.set(oe,{model:Be.model,provider:Be.provider,count:1})}let ve=[...ce.entries()].map(([Be,oe])=>({key:Be,...oe})).sort((Be,oe)=>oe.count-Be.count||Be.model.localeCompare(oe.model)),Le=te.reduce((Be,{row:oe})=>!Be||oe.timestamp>Be.timestamp?oe:Be,null);return{rows:te,groups:_,models:ve,newest:Le}},[m.data]),A=C.groups.some((te)=>te.signature===v)?v:null,M=C.models.some((te)=>te.key===x)?x:null,N=Yl.useMemo(()=>{let te=L.trim().toLowerCase();return C.rows.filter((_)=>(A===null||_.signature===A)&&(M===null||ba(_.row.model,_.row.provider)===M)&&(te===""||_.row.model.toLowerCase().includes(te)||_.row.provider.toLowerCase().includes(te)||_.row.folder.toLowerCase().includes(te)||(_.row.errorMessage??"").toLowerCase().includes(te))).map((_)=>_.row)},[C.rows,A,M,L]),U=m.data?.length??0,V=!m.stale&&U<b,X=d+1<Ub.length?Ub[d+1]:null,ie=m.data!==null&&!V?be.jsxDEV(be.Fragment,{children:[be.jsxDEV("span",{children:["Showing the latest ",B(U)," failures in ",w.windowLabel,"; older ones are not loaded."]},void 0,!0,void 0,this),X!==null&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:m.refreshing,onClick:()=>f(d+1),children:m.refreshing&&m.stale?"Loading…":`Load latest ${B(X)}`},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,K=C.groups[0]?.count??0,ee=Yl.useMemo(()=>y2(K),[K]),j=C.models.find((te)=>te.key===M);return be.jsxDEV("div",{className:"page",children:[be.jsxDEV(na,{title:"Errors",description:`Failed model requests in ${w.windowLabel}, grouped by error signature. Open a failure for its full payload.`},void 0,!1,void 0,this),be.jsxDEV(Fe,{query:m,skeleton:be.jsxDEV(Oa,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>be.jsxDEV("div",{"data-stale":m.stale,children:be.jsxDEV(la,{min:170,children:[be.jsxDEV(ue,{label:"Failures",value:B(U),hint:V?`in ${w.windowLabel}`:`latest ${B(U)} loaded`},void 0,!1,void 0,this),be.jsxDEV(ue,{label:"Signatures",title:"Distinct error messages after normalizing ids and numbers",value:B(C.groups.length),hint:C.groups[0]?`top: ${B(C.groups[0].count)} failures`:void 0},void 0,!1,void 0,this),be.jsxDEV(ue,{label:"Affected models",value:B(C.models.length),hint:C.models[0]?.model},void 0,!1,void 0,this),be.jsxDEV(ue,{label:"Last failure",value:C.newest?da(C.newest.timestamp):"–",hint:C.newest?ln(C.newest.timestamp):`none in ${w.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),be.jsxDEV("div",{className:"grid grid-main-side",children:[be.jsxDEV(je,{index:1,title:"Error signatures",description:"Same message with ids and counters normalized. Select one to filter the failures below.",flush:!0,stale:m.stale,children:be.jsxDEV(Fe,{query:m,skeleton:be.jsxDEV(ia,{rows:8},void 0,!1,void 0,this),isEmpty:(te)=>te.length===0,empty:be.jsxDEV(Ct,{title:`No failures in ${w.windowLabel}`,hint:"Every request succeeded or was aborted."},void 0,!1,void 0,this),children:()=>be.jsxDEV($t,{rows:C.groups,rowKey:(te)=>te.signature,columns:ee,onRowClick:(te)=>S(A===te.signature?null:te.signature),selectedKey:A,expanded:(te)=>te.signature===A?be.jsxDEV(b2,{group:te,onRequestClick:i},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),be.jsxDEV(je,{index:2,title:"By model",description:"Failures per model. Select one to filter.",stale:m.stale,children:be.jsxDEV(Fe,{query:m,skeleton:be.jsxDEV(Oa,{height:180},void 0,!1,void 0,this),isEmpty:(te)=>te.length===0,empty:be.jsxDEV(Ct,{title:"No affected models"},void 0,!1,void 0,this),children:()=>be.jsxDEV(Bd,{items:C.models.slice(0,12).map((te)=>({key:te.key,label:be.jsxDEV("span",{className:"row",style:{gap:6,minWidth:0},children:[be.jsxDEV("span",{className:"mono truncate",children:te.model},void 0,!1,void 0,this),be.jsxDEV("span",{className:"dim truncate",children:te.provider},void 0,!1,void 0,this)]},void 0,!0,void 0,this),value:te.count,color:te.key===M?"var(--bad)":"color-mix(in srgb, var(--bad) 45%, transparent)"})),onSelect:(te)=>h(M===te?null:te)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(je,{index:3,title:"Failures",description:m.data===null?"Loading failures…":`${B(N.length)} of ${B(U)} failures, newest first`,actions:be.jsxDEV(be.Fragment,{children:[A!==null&&be.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>S(null),title:A,children:[be.jsxDEV("span",{className:"mono truncate",children:A},void 0,!1,void 0,this),be.jsxDEV(on,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),j&&be.jsxDEV("button",{type:"button",className:"btn errors-filter","data-size":"sm",onClick:()=>h(null),children:[be.jsxDEV("span",{className:"mono truncate",children:j.model},void 0,!1,void 0,this),be.jsxDEV(on,{size:12},void 0,!1,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV(cl,{value:L,onChange:k,placeholder:"Message, model or project"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:m.stale,footer:ie,children:be.jsxDEV(Fe,{query:m,skeleton:be.jsxDEV(ia,{rows:10},void 0,!1,void 0,this),isEmpty:(te)=>te.length===0,empty:be.jsxDEV(Ct,{title:`No failures in ${w.windowLabel}`},void 0,!1,void 0,this),children:()=>be.jsxDEV($t,{rows:N,rowKey:(te)=>te.id??`${te.sessionFile}:${te.entryId}`,onRowClick:(te)=>te.id!==void 0&&i(te.id),columns:v2,initialSort:{key:"time",dir:"desc"},limit:50,dense:!0,empty:be.jsxDEV(Ct,{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 y2(r){return[{key:"signature",header:"Signature",wrap:!0,sort:(u)=>u.signature,render:(u)=>be.jsxDEV("span",{className:"errors-signature",title:u.latest.errorMessage??void 0,children:u.signature},void 0,!1,void 0,this)},{key:"models",header:"Models",sort:(u)=>u.models.length,render:(u)=>be.jsxDEV(_a,{primary:be.jsxDEV("span",{className:"mono",children:u.models[0]?.model},void 0,!1,void 0,this),secondary:u.models.length>1?`+${u.models.length-1} more`:u.models[0]?.provider},void 0,!1,void 0,this)},{key:"last",header:"Last seen",sort:(u)=>u.lastSeen,render:(u)=>be.jsxDEV("span",{className:"muted",title:ln(u.lastSeen),children:da(u.lastSeen)},void 0,!1,void 0,this)},{key:"count",header:"Failures",align:"right",width:120,sort:(u)=>u.count,render:(u)=>be.jsxDEV(fa,{value:u.count,max:r,display:B(u.count),color:"var(--bad)"},void 0,!1,void 0,this)}]}function b2({group:r,onRequestClick:u}){let i=r.latest.id;return be.jsxDEV("div",{className:"errors-detail",children:[be.jsxDEV("pre",{className:"code-block errors-detail-message",children:r.latest.errorMessage??"Unknown error"},void 0,!1,void 0,this),be.jsxDEV("div",{className:"errors-detail-meta",children:[be.jsxDEV("span",{className:"muted",children:[B(r.count)," failures · first ",ln(r.firstSeen)," · last"," ",ln(r.lastSeen)]},void 0,!0,void 0,this),i!==void 0&&be.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>u(i),children:["Open latest ",be.jsxDEV(md,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),be.jsxDEV("div",{className:"errors-detail-models",children:r.models.map((d)=>be.jsxDEV("span",{className:"badge","data-mono":"true",children:[d.model," ",be.jsxDEV("span",{className:"dim",children:d.provider},void 0,!1,void 0,this)," ",be.jsxDEV("span",{className:"num",children:Re(d.count)},void 0,!1,void 0,this)]},ba(d.model,d.provider),!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var v2=[{key:"time",header:"When",width:120,sort:(r)=>r.timestamp,render:(r)=>be.jsxDEV("span",{className:"muted",title:ln(r.timestamp),children:da(r.timestamp)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>be.jsxDEV(_a,{primary:be.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)=>be.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)=>be.jsxDEV("span",{className:"mono muted",title:r.folder,children:fl(r.folder)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",sort:(r)=>r.usage.totalTokens,render:(r)=>be.jsxDEV("span",{className:"num",children:B(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)=>be.jsxDEV("span",{className:"num",children:Qr(r,4)},void 0,!1,void 0,this)}];var Ut=Z(ht(),1);var Y=Z(se(),1),S2=1000,Dm=50,Pb=0.5,_d="*";function Pw({active:r,range:u}){let[i,d]=Ut.useState(!1),f=Ht(["frustration",u],({signal:x})=>Pk(u,x),{enabled:r,pollMs:i?S2:void 0}),b=ua(u),m=f.data?.job.state;Ut.useEffect(()=>{if(m!==void 0)d(m==="running")},[m]);let{refetch:v}=f,S=Ut.useCallback(()=>{d(!0),v()},[v]);return Y.jsxDEV("div",{className:"page",children:[Y.jsxDEV(na,{title:"Frustration",description:`How often your messages sound annoyed, per model version, in ${b.windowLabel}.`},void 0,!1,void 0,this),Y.jsxDEV(Fe,{query:f,skeleton:Y.jsxDEV(Nt,{height:96},void 0,!1,void 0,this),children:(x)=>Y.jsxDEV("div",{"data-stale":f.stale,children:Y.jsxDEV(x2,{overall:x.overall},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV(Fe,{query:f,skeleton:Y.jsxDEV(Nt,{height:120},void 0,!1,void 0,this),children:(x)=>Y.jsxDEV(L2,{active:r,range:u,judgeAvailable:x.judgeAvailable,job:x.job,onRunStarted:S,onRunChanged:v},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV(Fe,{query:f,skeleton:Y.jsxDEV(je,{index:2,title:"Frustration by model version",children:[Y.jsxDEV(Nt,{height:340},void 0,!1,void 0,this),Y.jsxDEV(ia,{rows:6},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:(x)=>Y.jsxDEV(E2,{models:x.byModel,stale:f.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function Tn(r,u){return u>0?He(r/u):"–"}function zb(r){return r instanceof Error?r.message:String(r)}function _w(r){let u=Math.max(0,Math.floor(r/1000)),i=Math.floor(u/60),d=u%60;return i>0?`${i}m ${String(d).padStart(2,"0")}s`:`${d}s`}function x2({overall:r}){let u=r.messages-r.judged;return Y.jsxDEV(la,{min:170,children:[Y.jsxDEV(ue,{label:"User messages",title:"User messages with prose in range",value:B(r.messages)},void 0,!1,void 0,this),Y.jsxDEV(ue,{label:"Judge coverage",title:"Messages with a cached judge verdict; the rest use regex signals",value:Tn(r.judged,r.messages),hint:`${B(r.judged)} judged · ${B(u)} regex`},void 0,!1,void 0,this),Y.jsxDEV(ue,{label:"Annoyed",title:"Messages annoyed at any target",value:Tn(r.annoyed,r.messages),hint:`${B(r.annoyed)} messages`},void 0,!1,void 0,this),Y.jsxDEV(ue,{label:"At assistant",title:"Messages annoyed at the assistant",value:Tn(r.atAssistant,r.messages),hint:`${B(r.atAssistant)} messages`},void 0,!1,void 0,this),Y.jsxDEV(ue,{label:"Angry",title:"Messages angry or hostile toward the assistant",value:Tn(r.angry,r.messages),hint:`${B(r.angry)} messages`},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var zw="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 L2({active:r,range:u,judgeAvailable:i,job:d,onRunStarted:f,onRunChanged:b}){let[m,v]=Ut.useState(!1),[S,x]=Ut.useState({status:"loading"}),[h,L]=Ut.useState(!1),[k,w]=Ut.useState(null),[C,A]=Ut.useState(!1),[M,N]=Ut.useState(null),U=Ut.useRef(null),V=d.state==="running",X=Ut.useCallback(()=>{U.current?.abort(),U.current=null,v(!1)},[]);Ut.useEffect(()=>{if(!r)X()},[r,X]),Ut.useEffect(()=>()=>U.current?.abort(),[]);let ie=()=>{U.current?.abort();let _=new AbortController;U.current=_;let ce=u;x({status:"loading"}),w(null),N(null),v(!0),_k(ce,_.signal).then((ve)=>{if(!_.signal.aborted)x({status:"ready",estimate:ve,range:ce})},(ve)=>{if(!_.signal.aborted)x({status:"error",message:zb(ve)})})},K=async()=>{if(S.status!=="ready")return;L(!0),w(null);try{await Hk(S.range),X(),f()}catch(_){w(zb(_))}finally{L(!1)}},ee=async()=>{A(!0),N(null);try{await Fk(),b()}catch(_){N(zb(_))}finally{A(!1)}},j=S.status==="ready"?S.estimate:null,te=S.status==="loading"?{label:"Proceed",onClick:K,disabled:!0}:j?.available?{label:h?"Starting…":"Proceed",onClick:K,disabled:h||j.messages===0}:void 0;return Y.jsxDEV(je,{index:1,title:Y.jsxDEV(Y.Fragment,{children:["Judge classification ",Y.jsxDEV(C2,{job:d,judgeAvailable:i},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:Y.jsxDEV("button",{type:"button",className:"btn","data-variant":"accent","data-size":"sm",onClick:ie,disabled:!i||V,title:!i?zw:V?"A judge run is in progress":"Quote the cost of judging every unjudged message in range",children:[Y.jsxDEV(ll,{size:13},void 0,!1,void 0,this)," Classify with judge"]},void 0,!0,void 0,this),children:[Y.jsxDEV("div",{className:"stack frustration-judge",children:[V?Y.jsxDEV(w2,{job:d,cancelling:C,onCancel:ee},void 0,!1,void 0,this):Y.jsxDEV(T2,{job:d},void 0,!1,void 0,this),!i&&Y.jsxDEV("p",{className:"micro dim",children:zw},void 0,!1,void 0,this),M&&Y.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:M},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(lw,{open:m,title:"Classify with judge",onClose:X,primaryAction:te,children:[Y.jsxDEV(k2,{estimate:S},void 0,!1,void 0,this),k&&Y.jsxDEV("p",{className:"micro tone-bad",role:"alert",children:k},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}function C2({job:r,judgeAvailable:u}){switch(r.state){case"running":return Y.jsxDEV(Bt,{tone:"ok",children:[Y.jsxDEV(ul,{tone:"live",pulse:!0},void 0,!1,void 0,this)," Running"]},void 0,!0,void 0,this);case"done":return Y.jsxDEV(Bt,{tone:"ok",children:"Last run done"},void 0,!1,void 0,this);case"cancelled":return Y.jsxDEV(Bt,{tone:"warn",children:"Last run cancelled"},void 0,!1,void 0,this);case"failed":return Y.jsxDEV(Bt,{tone:"bad",children:"Last run failed"},void 0,!1,void 0,this);case"idle":return Y.jsxDEV(Bt,{children:u?"Not run yet":"Regex only"},void 0,!1,void 0,this)}}function k2({estimate:r}){if(r.status==="loading")return Y.jsxDEV("p",{className:"muted",children:"Estimating cost…"},void 0,!1,void 0,this);if(r.status==="error")return Y.jsxDEV("p",{className:"tone-bad",children:r.message},void 0,!1,void 0,this);let u=r.estimate;if(!u.available)return Y.jsxDEV("p",{children:u.reason},void 0,!1,void 0,this);if(u.messages===0)return Y.jsxDEV("p",{children:"Everything in this range is already judged. There is nothing left to classify."},void 0,!1,void 0,this);return Y.jsxDEV(Y.Fragment,{children:[Y.jsxDEV("div",{className:"frustration-quote",children:[Y.jsxDEV("span",{className:"dim micro",children:"Estimated cost"},void 0,!1,void 0,this),Y.jsxDEV("span",{className:"num frustration-quote-value",children:["≈ ",ca(u.cost)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(_o,{items:[{key:"messages",label:"Unjudged unique messages",value:B(u.messages)},{key:"chars",label:"Prose characters",value:B(u.chars)},{key:"tokens",label:"Estimated input tokens",value:B(u.inputTokens)},{key:"judge",label:"Judge",value:u.judge}]},void 0,!1,void 0,this),Y.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 w2({job:r,cancelling:u,onCancel:i}){let d=r.done+r.failed,f=r.total>0?Math.min(1,d/r.total):0;return Y.jsxDEV("div",{className:"stack frustration-progress",children:[Y.jsxDEV("div",{className:"row frustration-progress-head",children:[Y.jsxDEV("span",{className:"num",children:[B(r.done),"/",B(r.total)," judged"]},void 0,!0,void 0,this),Y.jsxDEV("span",{className:"num dim",children:He(f)},void 0,!1,void 0,this),Y.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),Y.jsxDEV("button",{type:"button",className:"btn","data-variant":"danger","data-size":"sm",onClick:i,disabled:u,children:u?"Cancelling…":"Cancel run"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV("div",{className:"meter frustration-progress-track",role:"progressbar","aria-valuemin":0,"aria-valuemax":r.total,"aria-valuenow":d,children:Y.jsxDEV("div",{className:"meter-fill frustration-progress-fill",style:{width:`${f*100}%`}},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV("div",{className:"row micro muted frustration-progress-meta",children:[Y.jsxDEV("span",{className:r.failed>0?"tone-bad":void 0,children:[B(r.failed)," failed"]},void 0,!0,void 0,this),Y.jsxDEV("span",{children:["cost so far ",Y.jsxDEV("span",{className:"num",children:ca(r.cost)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.judge&&Y.jsxDEV("span",{className:"mono",children:r.judge},void 0,!1,void 0,this),r.startedAt!==null&&Y.jsxDEV("span",{children:["elapsed ",_w(Date.now()-r.startedAt)]},void 0,!0,void 0,this),r.startedAt!==null&&r.done>0&&Y.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&&Y.jsxDEV("span",{className:"num",children:[B(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 u=`${B(r.done)}/${B(r.total)} messages`,i=r.failed>0?`, ${B(r.failed)} failed`:"",d=r.judge?` with ${r.judge}`:"",f=r.startedAt!==null&&r.finishedAt!==null?` in ${_w(r.finishedAt-r.startedAt)}`:"";switch(r.state){case"idle":return Y.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 Y.jsxDEV("p",{className:"muted",children:["Last run judged ",u,i,d,f," for ",Y.jsxDEV("span",{className:"num",children:ca(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"cancelled":return Y.jsxDEV("p",{className:"muted",children:["Last run cancelled after ",u,i,"; spent ",Y.jsxDEV("span",{className:"num",children:ca(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this);case"failed":return Y.jsxDEV("p",{className:"muted",children:["Last run failed after ",u,i,": ",Y.jsxDEV("span",{className:"tone-bad",children:r.error??"unknown error"},void 0,!1,void 0,this),". Spent"," ",Y.jsxDEV("span",{className:"num",children:ca(r.cost)},void 0,!1,void 0,this),"."]},void 0,!0,void 0,this)}}function Fd(r){return`${r.modelClass}/${r.family??"unclassified"}`}function Si(r){return r.messages>0&&r.judged/r.messages<Pb}function I2(r){let u=2166136261;for(let i=0;i<r.length;i++)u^=r.charCodeAt(i),u=Math.imul(u,16777619);return u>>>0}function R2(r){let u=[...new Set(r.map(Fd))].sort(),i=new Set,d=new Map;for(let f of u){let b=I2(f)%Ha.length;for(let m=0;m<Ha.length&&i.has(b);m++)b=(b+1)%Ha.length;i.add(b),d.set(f,Ha[b])}return d}function M2(r,u){if(u==="angry")return`color-mix(in srgb, ${r} 55%, black)`;if(u==="other")return`color-mix(in srgb, ${r} 32%, transparent)`;return r}var A2=[{key:"angry",label:"Angry at assistant"},{key:"assistant",label:"At assistant, not angry"},{key:"other",label:"Annoyed at other targets"}];function D2(r,u){if(u==="angry")return r.angry;if(u==="assistant")return r.atAssistant-r.angry;return r.annoyed-r.atAssistant}function Hd(r,u){return u>0?r/u*100:0}function E2({models:r,stale:u}){let[i,d]=Ut.useState(null),[f,b]=rn(),[m,v]=Ut.useState(!1),[S,x]=Ut.useState(!1),h=Ut.useMemo(()=>R2(r),[r]),L=Ut.useMemo(()=>{let K=new Map;for(let ee of r)K.set(ee.modelClass,(K.get(ee.modelClass)??0)+ee.messages);return K},[r]),k=Ut.useMemo(()=>{let K=null,ee=-1;for(let[j,te]of L)if(te>ee)K=j,ee=te;return K??_d},[L]),w=i!==null&&(i===_d||L.has(i))?i:k,C=Ut.useMemo(()=>[{value:_d,label:"All",title:"Every model class"},...[...L].map(([K,ee])=>({value:K,label:K,title:`${B(ee)} messages`}))],[L]),A=Ut.useMemo(()=>w===_d?r:r.filter((K)=>K.modelClass===w),[r,w]),M=Ut.useMemo(()=>{let K=new Map;for(let ee of A){let j=Fd(ee),te=K.get(j);if(te){te.messages+=ee.messages;continue}let _=ee.family??"unclassified";K.set(j,{key:j,label:w===_d?`${ee.modelClass} · ${_}`:_,messages:ee.messages})}return[...K.values()]},[A,w]),N=Ut.useMemo(()=>A.filter((K)=>!f.has(Fd(K))),[A,f]),U=N.filter((K)=>K.messages<Dm).length,V=N.filter(Si).length,X=Ut.useMemo(()=>N.filter((K)=>(m||K.messages>=Dm)&&!(S&&Si(K))),[N,m,S]);if(r.length===0)return Y.jsxDEV(je,{index:2,title:"Frustration by model version",stale:u,children:Y.jsxDEV(Ct,{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 ie=X.some(Si);return Y.jsxDEV(Y.Fragment,{children:[Y.jsxDEV(je,{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:u,children:Y.jsxDEV("div",{className:"stack frustration-chart-body",children:[Y.jsxDEV("div",{className:"frustration-classes",children:Y.jsxDEV(Pa,{size:"sm","aria-label":"Model class",options:C,value:w,onChange:d},void 0,!1,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV("div",{className:"row frustration-filters",children:[Y.jsxDEV(Qa,{items:M.map((K)=>({key:K.key,label:K.label,color:h.get(K.key)??Ha[0],value:B(K.messages)})),hidden:f,onToggle:b},void 0,!1,void 0,this),Y.jsxDEV("span",{className:"frustration-spacer"},void 0,!1,void 0,this),Y.jsxDEV("label",{className:"check",title:`Models with fewer than ${Dm} messages have noisy rates`,children:[Y.jsxDEV("input",{type:"checkbox",checked:m,onChange:(K)=>v(K.target.checked)},void 0,!1,void 0,this),"Include < ",Dm," messages",U>0?` (${U})`:""]},void 0,!0,void 0,this),Y.jsxDEV("label",{className:"check",title:`Hide models with under ${Pb*100}% judged messages (rates from regex signals)`,children:[Y.jsxDEV("input",{type:"checkbox",checked:S,onChange:(K)=>x(K.target.checked)},void 0,!1,void 0,this),"Hide mostly regex",V>0?` (${V})`:""]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV(O2,{hasRegexRows:ie},void 0,!1,void 0,this),Y.jsxDEV(q2,{rows:X,familyColors:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Y.jsxDEV(B2,{rows:X,familyColors:h,stale:u},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function O2({hasRegexRows:r}){return Y.jsxDEV("div",{className:"legend frustration-key",children:[Y.jsxDEV("span",{className:"legend-item",children:[Y.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),Y.jsxDEV("span",{className:"legend-item",children:[Y.jsxDEV("span",{className:"swatch frustration-key-swatch","data-variant":"assistant"},void 0,!1,void 0,this),"At assistant"]},void 0,!0,void 0,this),Y.jsxDEV("span",{className:"legend-item",children:[Y.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),Y.jsxDEV("span",{className:"legend-item",children:[Y.jsxDEV("span",{className:"frustration-key-line"},void 0,!1,void 0,this),"At assistant trend"]},void 0,!0,void 0,this),Y.jsxDEV("span",{className:"legend-item frustration-key-wide",title:`Under ${Pb*100}% of these messages are judged; their rates come from regex signals`,children:[Y.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),Y.jsxDEV("span",{className:"legend-item dim",children:"Hue = model family"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function q2({rows:r,familyColors:u}){let i=Ut.useMemo(()=>{let d=new Map;r.forEach((b,m)=>{let v=Fd(b),S=Si(b),x=`${v}|${S?"regex":"judged"}`,h=d.get(x);if(h)h.slots.push(m);else d.set(x,{family:v,regex:S,slots:[m]})});let f=[];for(let b of A2)for(let[m,v]of d){let S=r.map(()=>null);for(let x of v.slots)S[x]=Hd(D2(r[x],b.key),r[x].messages);f.push({key:`${b.key}|${m}`,label:b.label,color:M2(u.get(v.family)??Ha[0],b.key),values:S,pattern:v.regex?"hatch":void 0})}return f.push({key:"trend",label:"At assistant (total)",color:"var(--ink-1)",values:r.map((b)=>Hd(b.atAssistant,b.messages)),kind:"line",tooltip:!1}),f},[r,u]);if(r.length===0)return Y.jsxDEV("div",{className:"frustration-chart-empty",children:Y.jsxDEV(Ct,{title:"No model versions match the filters"},void 0,!1,void 0,this)},void 0,!1,void 0,this);return Y.jsxDEV(wn,{slots:r.length,tickLabel:(d)=>r[d].label,series:i,height:340,format:(d)=>`${d}%`,formatTooltip:(d)=>`${d.toFixed(1)}%`,showTotal:!1,emptyLabel:"No frustrated messages for these models",tooltipExtra:(d)=>{let f=r[d];return Y.jsxDEV("div",{className:"frustration-tooltip-extra",children:[Y.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[Y.jsxDEV("span",{className:"chart-tooltip-label",children:"Annoyed, any target"},void 0,!1,void 0,this),Y.jsxDEV("span",{className:"chart-tooltip-value",children:Tn(f.annoyed,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Y.jsxDEV("div",{className:"micro dim",children:[B(f.messages)," messages · judged ",B(f.judged)," (",Tn(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 B2({rows:r,familyColors:u,stale:i}){let d=Ut.useMemo(()=>[{key:"model",header:"Model",sort:(f)=>f.label,render:(f)=>Y.jsxDEV("span",{className:"row",title:f.key,children:[Y.jsxDEV("span",{className:"swatch",style:{background:u.get(Fd(f))??Ha[0]}},void 0,!1,void 0,this),Y.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)=>Y.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)=>Y.jsxDEV("span",{className:"num",children:B(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)?Y.jsxDEV("span",{className:"row frustration-judged",title:"Mostly regex fallback: run the judge for accurate rates",children:[Y.jsxDEV(Bt,{tone:"warn",children:"regex"},void 0,!1,void 0,this),Y.jsxDEV("span",{className:"num dim",children:Tn(f.judged,f.messages)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):Y.jsxDEV("span",{className:"num",children:Tn(f.judged,f.messages)},void 0,!1,void 0,this)},{key:"annoyed",header:"Annoyed",align:"right",sort:(f)=>Hd(f.annoyed,f.messages),render:(f)=>Y.jsxDEV("span",{className:"num",title:`${B(f.annoyed)} messages`,children:Tn(f.annoyed,f.messages)},void 0,!1,void 0,this)},{key:"atAssistant",header:"At assistant",align:"right",sort:(f)=>Hd(f.atAssistant,f.messages),render:(f)=>Y.jsxDEV("span",{className:"num",title:`${B(f.atAssistant)} messages`,children:Tn(f.atAssistant,f.messages)},void 0,!1,void 0,this)},{key:"angry",header:"Angry",align:"right",sort:(f)=>Hd(f.angry,f.messages),render:(f)=>Y.jsxDEV("span",{className:f.angry>0?"num tone-bad":"num",title:`${B(f.angry)} messages`,children:Tn(f.angry,f.messages)},void 0,!1,void 0,this)}],[u]);return Y.jsxDEV(je,{index:3,title:"Model versions",description:"Rates are shares of user messages; rows follow the chart filters.",flush:!0,stale:i,children:Y.jsxDEV($t,{rows:r,rowKey:(f)=>f.key,columns:d,dense:!0,empty:Y.jsxDEV(Ct,{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 Gd=Z(ht(),1);var Dt=Z(se(),1),N2=86400000,U2={snapcompact:"Snapcompact"},z2=new Intl.DateTimeFormat(void 0,{month:"short",day:"numeric",timeZone:"UTC"});function Hw({active:r,range:u}){let[i,d]=Gd.useState(null),f=Ht(["gain",u,i],({signal:w})=>Vk(u,i,w),{enabled:r}),b=ua(u),m=f.data,v=Gd.useMemo(()=>{let w=(m?.timeSeries??[]).map((U)=>({...U,timestamp:Date.parse(`${U.date}T00:00:00Z`)})),C=Po(u,w.map((U)=>U.timestamp),N2),A=Sa(w,C,(U)=>U.snapcompact),M=0,N=A.map((U)=>M+=U);return{buckets:C,daily:A,cumulative:N}},[m,u]),S=Gd.useMemo(()=>{if(!m)return[];let w=m.overall.savedTokens;return Object.keys(m.bySource).map((C)=>({...m.bySource[C],source:C,share:w>0?m.bySource[C].savedTokens/w:0}))},[m]),x=m?.projects??[],h=i!==null&&!x.includes(i)?[i,...x]:x,L=i?` for ${i}`:"",k=[{key:"daily",label:"Saved per day",color:"var(--chart-primary)",values:v.daily},{key:"cumulative",label:"Cumulative",color:"var(--chart-secondary)",values:v.cumulative,kind:"line",axis:"right"}];return Dt.jsxDEV("div",{className:"page",children:[Dt.jsxDEV(na,{title:"Gain",description:`Tokens snapcompact kept out of context${L} in ${b.windowLabel}.`,actions:h.length>0&&Dt.jsxDEV("select",{className:"input","aria-label":"Project",value:i??"",onChange:(w)=>d(w.target.value||null),style:{maxWidth:320},children:[Dt.jsxDEV("option",{value:"",children:"All projects"},void 0,!1,void 0,this),h.map((w)=>Dt.jsxDEV("option",{value:w,children:w},w,!1,void 0,this))]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Dt.jsxDEV(Fe,{query:f,skeleton:Dt.jsxDEV(Nt,{height:96},void 0,!1,void 0,this),isEmpty:(w)=>w.overall.hits===0&&w.timeSeries.length===0,empty:Dt.jsxDEV(je,{children:Dt.jsxDEV(Ct,{title:`No savings recorded${L} in ${b.windowLabel}`,hint:u==="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:w})=>Dt.jsxDEV(Dt.Fragment,{children:[Dt.jsxDEV("div",{"data-stale":f.stale,children:Dt.jsxDEV(la,{min:180,children:[Dt.jsxDEV(ue,{label:"Saved tokens",value:Re(w.savedTokens),hint:B(w.savedTokens),spark:v.daily},void 0,!1,void 0,this),Dt.jsxDEV(ue,{label:"Saved bytes",value:Ib(w.savedBytes)},void 0,!1,void 0,this),Dt.jsxDEV(ue,{label:"Reduction",title:"Saved bytes ÷ original bytes, when the original size is known",value:w.reductionPercent!==null?He(w.reductionPercent):"–",hint:w.reductionPercent===null?"original size not recorded":void 0},void 0,!1,void 0,this),Dt.jsxDEV(ue,{label:"Hits",value:B(w.hits)},void 0,!1,void 0,this),Dt.jsxDEV(ue,{label:"Saved per hit",value:w.hits>0?Re(w.savedTokens/w.hits):"–",hint:"tokens"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Dt.jsxDEV(je,{index:1,title:"Savings over time",description:"Tokens saved per UTC day, with the running total",actions:Dt.jsxDEV(Qa,{items:k.map((C)=>({key:C.key,label:C.label,color:C.color}))},void 0,!1,void 0,this),stale:f.stale,children:Dt.jsxDEV(wn,{slots:v.buckets.length,tickLabel:(C)=>z2.format(v.buckets[C]),series:k,height:260,formatTooltip:B,formatRight:Re},void 0,!1,void 0,this)},void 0,!1,void 0,this),Dt.jsxDEV(je,{index:2,title:"By source",description:"Savings per subsystem",flush:!0,stale:f.stale,children:Dt.jsxDEV($t,{rows:S,rowKey:(C)=>C.source,columns:P2},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 P2=[{key:"source",header:"Source",sort:(r)=>r.source,render:(r)=>Dt.jsxDEV("span",{className:"cell-primary",children:U2[r.source]},void 0,!1,void 0,this)},{key:"tokens",header:"Saved tokens",align:"right",sort:(r)=>r.savedTokens,render:(r)=>Dt.jsxDEV("span",{title:B(r.savedTokens),children:Dt.jsxDEV(fa,{value:r.share,max:1,display:Re(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)=>Dt.jsxDEV("span",{className:"num muted",children:He(r.share)},void 0,!1,void 0,this)},{key:"bytes",header:"Saved bytes",align:"right",sort:(r)=>r.savedBytes,render:(r)=>Dt.jsxDEV("span",{className:"num",children:Ib(r.savedBytes)},void 0,!1,void 0,this)},{key:"hits",header:"Hits",align:"right",sort:(r)=>r.hits,render:(r)=>Dt.jsxDEV("span",{className:"num",children:B(r.hits)},void 0,!1,void 0,this)},{key:"reduction",header:"Reduction",align:"right",sort:(r)=>r.reductionPercent??-1,render:(r)=>Dt.jsxDEV("span",{className:"num",children:r.reductionPercent!==null?He(r.reductionPercent):"–"},void 0,!1,void 0,this)}];var xi=Z(ht(),1);var xe=Z(se(),1),_2=[{value:"share",label:"Share"},{value:"requests",label:"Requests"}],H2=6;function Gw({active:r,range:u}){let i=Ht(["models",u],({signal:A})=>qk(u,A),{enabled:r}),d=ua(u),[f,b]=xi.useState("share"),[m,v]=rn(),[S,x]=xi.useState(null),h=xi.useMemo(()=>i.data?F2(i.data,u):null,[i.data,u]),L=j2(d.bucketMs),k=xi.useMemo(()=>h?V2(h,S,L):[],[h,S,L]),w=(A)=>A.byModel.length===0,C=xe.jsxDEV(Ct,{title:"No model usage in this range",hint:"Pick a wider range in the top bar."},void 0,!1,void 0,this);return xe.jsxDEV("div",{className:"page",children:[xe.jsxDEV(na,{title:"Models",description:`Which models did the work in ${d.windowLabel}, and how fast they answered.`},void 0,!1,void 0,this),xe.jsxDEV(Fe,{query:i,skeleton:xe.jsxDEV(Oa,{height:112,style:{borderRadius:12}},void 0,!1,void 0,this),isEmpty:w,empty:C,children:()=>h&&xe.jsxDEV("div",{"data-stale":i.stale,children:xe.jsxDEV(la,{min:200,children:[xe.jsxDEV(ue,{label:"Models used",value:B(h.models.length),hint:`across ${B(h.providerCount)} provider${h.providerCount===1?"":"s"}`},void 0,!1,void 0,this),xe.jsxDEV(ue,{label:"Most used",title:h.top?`${h.top.model} (${h.top.provider})`:void 0,value:h.top?h.top.model:"–",hint:h.top?`${He(h.top.totalRequests/Math.max(1,h.totalRequests))} of requests · ${h.top.provider}`:void 0},void 0,!1,void 0,this),xe.jsxDEV(ue,{label:"Requests",value:B(h.totalRequests),hint:`${B(h.failedRequests)} failed`,spark:h.requestTotals},void 0,!1,void 0,this),xe.jsxDEV(ue,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:_t(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${B(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),xe.jsxDEV(je,{index:1,title:"Request share",description:f==="share"?`Each model's share of requests per ${L}`:`Requests per ${L}, stacked by model`,actions:xe.jsxDEV(Pa,{size:"sm",options:_2,value:f,onChange:b,"aria-label":"Share chart mode"},void 0,!1,void 0,this),stale:i.stale,children:xe.jsxDEV(Fe,{query:i,skeleton:xe.jsxDEV(Nt,{height:260},void 0,!1,void 0,this),isEmpty:w,empty:C,children:()=>h&&xe.jsxDEV("div",{className:"stack",style:{gap:12},children:[xe.jsxDEV(jl,{buckets:h.buckets,bucketMs:d.bucketMs,series:f==="share"?h.shareSeries:h.countSeries,hidden:m,height:260,yMax:f==="share"?1:void 0,format:f==="share"?(A)=>He(A,0):Re,formatTooltip:f==="share"?(A)=>He(A):B,showTotal:f==="requests"},void 0,!1,void 0,this),xe.jsxDEV(Qa,{items:h.countSeries.map((A)=>({key:A.key,label:A.label,color:A.color,value:He(Fw(A.values)/Math.max(1,Fw(h.requestTotals)))})),hidden:m,onToggle:v},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),xe.jsxDEV(je,{index:2,title:"All models",description:"Click a row for latency and throughput over time",stale:i.stale,flush:!0,children:xe.jsxDEV(Fe,{query:i,skeleton:xe.jsxDEV(ia,{rows:8},void 0,!1,void 0,this),isEmpty:w,empty:C,children:()=>h&&xe.jsxDEV($t,{rows:h.models,rowKey:(A)=>ba(A.model,A.provider),columns:k,initialSort:{key:"requests",dir:"desc"},limit:25,onRowClick:(A)=>{let M=ba(A.model,A.provider);x((N)=>N===M?null:M)},selectedKey:S,expanded:(A)=>{let M=ba(A.model,A.provider);return M===S?xe.jsxDEV($2,{model:A,color:h.swatches.get(M)??"var(--chart-primary)",points:h.performance.get(M)??[],bucketMs:d.bucketMs,bucketWord:L},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 F2(r,u){let i=r.byModel,d=Am(i),f=G2(i),b=Po(u,r.modelSeries.map((M)=>M.timestamp)),m=Sa(r.modelSeries,b,(M)=>M.requests),v={buckets:b,key:(M)=>ba(M.model,M.provider),label:(M)=>f.get(M)??M,value:(M)=>M.requests,colors:d},S=hl(r.modelSeries,{...v,limit:H2}).map((M)=>({...M,values:M.values.map((N)=>N||null)})),x=S.map((M)=>({...M,values:M.values.map((N,U)=>N===null?null:N/m[U])})),h=new Map(hl(r.modelSeries,v).map((M)=>[M.key,M.values])),L,k=0,w=0,C=0,A=0;for(let M of i){if(!L||M.totalRequests>L.totalRequests)L=M;k+=M.totalRequests,w+=M.failedRequests,C+=M.totalCost,A+=M.unpricedRequests}return{models:i,top:L,swatches:new Map(S.filter((M)=>M.key!=="__other__").map((M)=>[M.key,M.color])),labels:f,providerCount:new Set(i.map((M)=>M.provider)).size,totalRequests:k,failedRequests:w,totalCost:C,unpricedRequests:A,maxRequests:L?.totalRequests??0,buckets:b,requestTotals:m,countSeries:S,shareSeries:x,trends:h,performance:Aw(r.modelPerformanceSeries)}}function G2(r){let u=new Map;for(let i of r)u.set(i.model,(u.get(i.model)??0)+1);return new Map(r.map((i)=>[ba(i.model,i.provider),(u.get(i.model)??0)>1?`${i.model} · ${i.provider}`:i.model]))}function V2(r,u,i){return[{key:"expand",header:"",width:28,render:(d)=>xe.jsxDEV("span",{className:"models-chevron","data-open":ba(d.model,d.provider)===u,children:xe.jsxDEV(xn,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"model",header:"Model",sort:(d)=>d.model,render:(d)=>xe.jsxDEV(_a,{lead:xe.jsxDEV(Ln,{color:r.swatches.get(ba(d.model,d.provider))??to},void 0,!1,void 0,this),primary:xe.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this),secondary:d.provider},void 0,!1,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(d)=>d.totalRequests,render:(d)=>xe.jsxDEV(fa,{value:d.totalRequests,max:r.maxRequests,display:B(d.totalRequests),color:r.swatches.get(ba(d.model,d.provider))??to},void 0,!1,void 0,this)},{key:"cost",header:"Cost",title:"API-equivalent estimate at public rates",align:"right",sort:(d)=>d.totalCost,render:(d)=>xe.jsxDEV("span",{className:"num",children:_t(d.totalCost,d.unpricedRequests)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",title:"Uncached input + cache reads + cache writes + output",align:"right",sort:(d)=>Wr(d),render:(d)=>{let f=Wr(d);return xe.jsxDEV("span",{className:"num",title:B(f),children:Re(f)},void 0,!1,void 0,this)}},{key:"cache",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(d)=>d.cacheRate,render:(d)=>xe.jsxDEV("span",{className:"num",children:He(d.cacheRate)},void 0,!1,void 0,this)},{key:"errors",header:"Errors",align:"right",sort:(d)=>d.errorRate,render:(d)=>d.failedRequests===0?xe.jsxDEV("span",{className:"num dim",children:"0%"},void 0,!1,void 0,this):xe.jsxDEV("span",{title:`${B(d.failedRequests)} failed`,children:xe.jsxDEV(Bt,{tone:il(d.errorRate),mono:!0,children:eo(d.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:(d)=>d.avgTokensPerSecond??-1,render:(d)=>xe.jsxDEV("span",{className:"num",children:dl(d.avgTokensPerSecond)},void 0,!1,void 0,this)},{key:"ttft",header:"TTFT",title:"Average time to first token",align:"right",sort:(d)=>d.avgTtft??-1,render:(d)=>xe.jsxDEV("span",{className:"num",children:Rt(d.avgTtft)},void 0,!1,void 0,this)},{key:"trend",header:"Trend",title:`Requests per ${i}`,width:112,render:(d)=>{let f=ba(d.model,d.provider),b=r.trends.get(f);return b?xe.jsxDEV(gi,{values:b.map((m)=>m??0),color:r.swatches.get(f)??to,width:96,height:22},void 0,!1,void 0,this):xe.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}}]}function $2({model:r,color:u,points:i,bucketMs:d,bucketWord:f}){let[b,m]=rn(),v=[{key:"tps",label:"Tokens/s",color:u,kind:i.length>1?"line":"bars",values:i.map((S)=>S.avgTokensPerSecond)},{key:"ttft",label:"TTFT",color:to,kind:i.length>1?"line":"bars",axis:"right",dashed:!0,values:i.map((S)=>S.avgTtftSeconds)}];return xe.jsxDEV("div",{className:"models-detail",children:[xe.jsxDEV("div",{className:"models-detail-facts",children:[xe.jsxDEV("div",{children:[xe.jsxDEV("div",{className:"section-label",children:"Efficiency"},void 0,!1,void 0,this),xe.jsxDEV(_o,{items:[{key:"err",label:"Error rate",value:xe.jsxDEV("span",{className:`tone-${il(r.errorRate)}`,children:[eo(r.errorRate)," ",xe.jsxDEV("span",{className:"dim",children:["(",B(r.failedRequests)," failed)"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)},{key:"cache",label:"Cache rate",value:He(r.cacheRate)},{key:"savings",label:"Cache savings",value:xe.jsxDEV("span",{className:r.cacheSavings<0?"tone-bad":void 0,children:He(r.cacheSavings)},void 0,!1,void 0,this)},{key:"premium",label:"Premium requests",value:B(Math.round(r.totalPremiumRequests*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),xe.jsxDEV("div",{children:[xe.jsxDEV("div",{className:"section-label",children:"Latency"},void 0,!1,void 0,this),xe.jsxDEV(_o,{items:[{key:"dur",label:"Avg duration",value:Rt(r.avgDuration)},{key:"ttft",label:"Avg TTFT",value:Rt(r.avgTtft)},{key:"tps",label:"Tokens/s",value:dl(r.avgTokensPerSecond)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),xe.jsxDEV("div",{children:[xe.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),xe.jsxDEV(_o,{items:[{key:"in",label:"Uncached input",value:Re(r.totalInputTokens)},{key:"cr",label:"Cache read",value:Re(r.totalCacheReadTokens)},{key:"cw",label:"Cache write",value:Re(r.totalCacheWriteTokens)},{key:"out",label:"Output",value:Re(r.totalOutputTokens)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),xe.jsxDEV("div",{className:"micro dim",children:["First seen ",da(r.firstTimestamp)," · last seen"," ",da(r.lastTimestamp)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),xe.jsxDEV("div",{className:"models-detail-chart",children:[xe.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[xe.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:["Performance per active ",f]},void 0,!0,void 0,this),xe.jsxDEV(Qa,{items:v.map((S)=>({key:S.key,label:S.label,color:S.color})),hidden:b,onToggle:m},void 0,!1,void 0,this)]},void 0,!0,void 0,this),i.length===0?xe.jsxDEV(Ct,{title:"No performance samples",hint:"Timing is recorded for streamed responses."},void 0,!1,void 0,this):xe.jsxDEV(jl,{buckets:i.map((S)=>S.timestamp),bucketMs:d,series:v,hidden:b,stacked:!1,height:240,format:Re,formatTooltip:(S)=>`${dl(S)} tok/s`,formatRight:(S)=>`${Number(S.toFixed(2))}s`,tooltipExtra:(S)=>xe.jsxDEV("div",{className:"chart-tooltip-row chart-tooltip-total",children:[xe.jsxDEV("span",{className:"chart-tooltip-label",children:"Requests"},void 0,!1,void 0,this),xe.jsxDEV("span",{className:"chart-tooltip-value",children:B(i[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 j2(r){if(r<3600000)return"5 minutes";if(r<86400000)return"hour";return"day"}function Fw(r){let u=0;for(let i of r)u+=i??0;return u}var Em=Z(ht(),1);var Te=Z(se(),1),X2=[{value:"requests",label:"Requests"},{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost"}],Vw={main:"Main agent",subagent:"Subagents",advisor:"Advisor"},$w={main:"var(--chart-primary)",subagent:"var(--chart-secondary)",advisor:"#9d7bff"},jw=[{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 Xw({active:r,range:u,onRequestClick:i}){let d=Ht(["overview",u],({signal:h})=>Ok(u,h),{enabled:r}),f=Ht(["recent-requests"],({signal:h})=>ym(12,h),{enabled:r}),[b,m]=Em.useState("requests"),v=ua(u),S=Em.useMemo(()=>{let h=d.data?.timeSeries??[],L=Po(u,h.map((k)=>k.timestamp));return{buckets:L,requests:Sa(h,L,(k)=>k.requests-k.errors),errors:Sa(h,L,(k)=>k.errors),tokens:Sa(h,L,(k)=>k.tokens),cost:Sa(h,L,(k)=>k.cost),all:Sa(h,L,(k)=>k.requests)}},[d.data,u]),x=b==="requests"?[{key:"ok",label:"Succeeded",color:"var(--chart-primary)",values:S.requests},{key:"err",label:"Failed",color:"var(--bad)",values:S.errors}]:b==="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 Te.jsxDEV("div",{className:"page",children:[Te.jsxDEV(na,{title:"Overview",description:`Everything omp did across your sessions in ${v.windowLabel}.`},void 0,!1,void 0,this),Te.jsxDEV(Fe,{query:d,skeleton:Te.jsxDEV(Nt,{height:112},void 0,!1,void 0,this),children:({overall:h})=>Te.jsxDEV("div",{"data-stale":d.stale,className:"stack",style:{gap:16},children:[Te.jsxDEV(la,{min:190,children:[Te.jsxDEV(ue,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:_t(h.totalCost,h.unpricedRequests),hint:h.unpricedRequests>0?`${B(h.unpricedRequests)} unpriced`:void 0,spark:S.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),Te.jsxDEV(ue,{label:"Requests",value:B(h.totalRequests),hint:`${B(h.failedRequests)} failed`,spark:S.all},void 0,!1,void 0,this),Te.jsxDEV(ue,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Re(Wr(h)),hint:`${Re(h.totalOutputTokens)} output`,spark:S.tokens},void 0,!1,void 0,this),Te.jsxDEV(ue,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",value:He(h.cacheRate),hint:`${He(h.cacheSavings)} saved`},void 0,!1,void 0,this),Te.jsxDEV(ue,{label:"Error rate",value:eo(h.errorRate),hint:`${B(h.successfulRequests)} succeeded`,spark:S.errors,sparkColor:"var(--bad)"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV(la,{min:140,children:[Te.jsxDEV(ue,{size:"sm",label:"Uncached input",value:Re(h.totalInputTokens)},void 0,!1,void 0,this),Te.jsxDEV(ue,{size:"sm",label:"Cache read",value:Re(h.totalCacheReadTokens)},void 0,!1,void 0,this),Te.jsxDEV(ue,{size:"sm",label:"Cache write",value:Re(h.totalCacheWriteTokens)},void 0,!1,void 0,this),Te.jsxDEV(ue,{size:"sm",label:"Output",value:Re(h.totalOutputTokens)},void 0,!1,void 0,this),Te.jsxDEV(ue,{size:"sm",label:"Premium requests",value:B(Math.round(h.totalPremiumRequests*100)/100)},void 0,!1,void 0,this),Te.jsxDEV(ue,{size:"sm",label:"Tokens/s",value:dl(h.avgTokensPerSecond)},void 0,!1,void 0,this),Te.jsxDEV(ue,{size:"sm",label:"Avg latency",value:Rt(h.avgDuration)},void 0,!1,void 0,this),Te.jsxDEV(ue,{size:"sm",label:"Avg TTFT",value:Rt(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),Te.jsxDEV("div",{className:"grid grid-main-side",children:[Te.jsxDEV(je,{index:1,title:"Activity",description:`Per ${v.bucketMs<3600000?"5 minutes":v.bucketMs<86400000?"hour":"day"}`,actions:Te.jsxDEV(Pa,{size:"sm",options:X2,value:b,onChange:m},void 0,!1,void 0,this),stale:d.stale,children:Te.jsxDEV(Fe,{query:d,skeleton:Te.jsxDEV(Nt,{height:260},void 0,!1,void 0,this),children:()=>Te.jsxDEV(jl,{buckets:S.buckets,bucketMs:v.bucketMs,series:x,height:260,format:b==="cost"?(h)=>_t(h,0):Re},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Te.jsxDEV(je,{index:2,title:"Token mix",description:"Where conversation tokens went",stale:d.stale,children:Te.jsxDEV(Fe,{query:d,skeleton:Te.jsxDEV(Nt,{height:260},void 0,!1,void 0,this),children:({overall:h,byAgentType:L})=>{let k={input:h.totalInputTokens,cacheRead:h.totalCacheReadTokens,cacheWrite:h.totalCacheWriteTokens,output:h.totalOutputTokens},w=Wr(h),C=Rw(L);return Te.jsxDEV("div",{className:"stack",style:{gap:18},children:[Te.jsxDEV("div",{className:"stack",style:{gap:10},children:[Te.jsxDEV(Zr,{segments:jw.map((A)=>({key:A.key,label:A.label,value:k[A.key],color:A.color}))},void 0,!1,void 0,this),Te.jsxDEV(Qa,{items:jw.map((A)=>({key:A.key,label:A.label,color:A.color,value:w>0?He(k[A.key]/w,0):"–"}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("div",{className:"stack",style:{gap:10},children:[Te.jsxDEV("div",{className:"section-label",style:{marginBottom:0},children:"By agent"},void 0,!1,void 0,this),Te.jsxDEV(Zr,{segments:C.segments.map((A)=>({key:A.agentType,label:Vw[A.agentType],value:A.tokens,color:$w[A.agentType]}))},void 0,!1,void 0,this),C.segments.map((A)=>Te.jsxDEV("div",{className:"row",style:{justifyContent:"space-between"},children:[Te.jsxDEV("span",{className:"row",children:[Te.jsxDEV("span",{className:"swatch",style:{background:$w[A.agentType]}},void 0,!1,void 0,this),Vw[A.agentType],Te.jsxDEV("span",{className:"dim num",children:[B(A.requests)," req"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),Te.jsxDEV("span",{className:"row",children:[Te.jsxDEV("span",{className:"dim num",children:Re(A.tokens)},void 0,!1,void 0,this),Te.jsxDEV("span",{className:"num",style:{minWidth:48,textAlign:"right"},children:He(A.share)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},A.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),Te.jsxDEV(je,{index:3,title:Te.jsxDEV(Te.Fragment,{children:[Te.jsxDEV(ul,{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:Te.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:`#/requests?range=${u}`,children:["All requests ",Te.jsxDEV(pd,{size:13},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,children:Te.jsxDEV(Fe,{query:f,skeleton:Te.jsxDEV(ia,{rows:8},void 0,!1,void 0,this),children:(h)=>Te.jsxDEV($t,{rows:h,rowKey:(L)=>L.id??`${L.sessionFile}:${L.entryId}`,onRowClick:(L)=>L.id!==void 0&&i(L.id),columns:Y2,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 Y2=[{key:"model",header:"Model",render:(r)=>Te.jsxDEV(_a,{primary:r.model,secondary:r.provider},void 0,!1,void 0,this)},{key:"time",header:"When",render:(r)=>Te.jsxDEV("span",{className:"muted",children:da(r.timestamp)},void 0,!1,void 0,this)},{key:"tokens",header:"Tokens",align:"right",render:(r)=>Te.jsxDEV("span",{className:"num",children:B(r.usage.totalTokens)},void 0,!1,void 0,this)},{key:"cost",header:"Cost",align:"right",render:(r)=>Te.jsxDEV("span",{className:"num",children:Qr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",render:(r)=>Te.jsxDEV("span",{className:"num",children:Rt(r.duration)},void 0,!1,void 0,this)},{key:"status",header:"Status",align:"right",render:(r)=>r.errorMessage?Te.jsxDEV(Bt,{tone:"bad",children:"Failed"},void 0,!1,void 0,this):Te.jsxDEV(Bt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}];var In=Z(ht(),1);var Ge=Z(se(),1),Q2=100,Yw=8;function Qw({active:r,range:u}){let i=Ht(["projects",u],({signal:A})=>Gk(u,A),{enabled:r}),[d,f]=In.useState(""),[b,m]=In.useState(!0),v=In.useDeferredValue(d.trim().toLowerCase()),S=ua(u),x=In.useMemo(()=>Dw(i.data??[]),[i.data]),h=In.useMemo(()=>b?x.rows.filter((A)=>!A.temporary):x.rows,[x,b]),L=In.useMemo(()=>v?h.filter((A)=>A.folder.toLowerCase().includes(v)):h,[h,v]),k=In.useMemo(()=>({cost:[...h].sort((A,M)=>M.totalCost-A.totalCost).slice(0,Yw),requests:[...h].sort((A,M)=>M.totalRequests-A.totalRequests).slice(0,Yw)}),[h]),w=Ge.jsxDEV(Ct,{title:x.rows.length===0?"No project folders in this range":"Only temporary folders in this range"},void 0,!1,void 0,this),C=In.useMemo(()=>Z2(x.maxRequests,x.maxCost),[x]);return Ge.jsxDEV("div",{className:"page",children:[Ge.jsxDEV(na,{title:"Projects",description:`Usage by session folder in ${S.windowLabel}.`},void 0,!1,void 0,this),Ge.jsxDEV(Fe,{query:i,skeleton:Ge.jsxDEV(Nt,{height:96},void 0,!1,void 0,this),children:()=>Ge.jsxDEV("div",{"data-stale":i.stale,children:Ge.jsxDEV(la,{min:180,children:[Ge.jsxDEV(ue,{label:"Folders",value:B(x.rows.length),hint:x.temporaryCount>0?`${B(x.temporaryCount)} temporary`:void 0},void 0,!1,void 0,this),Ge.jsxDEV(ue,{label:"Requests",value:B(x.totalRequests),hint:`${B(x.failedRequests)} failed`},void 0,!1,void 0,this),Ge.jsxDEV(ue,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:_t(x.totalCost,x.unpricedRequests),hint:x.unpricedRequests>0?`${B(x.unpricedRequests)} unpriced`:void 0},void 0,!1,void 0,this),Ge.jsxDEV(ue,{label:"Conversation tokens",title:"Uncached input + cache reads + cache writes + output",value:Re(x.conversationTokens)},void 0,!1,void 0,this),Ge.jsxDEV(ue,{label:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads), across every folder",value:He(x.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),Ge.jsxDEV("div",{className:"grid grid-2",children:[Ge.jsxDEV(je,{index:1,title:"Top by cost",description:"Share of API-equivalent cost",stale:i.stale,children:Ge.jsxDEV(Fe,{query:i,skeleton:Ge.jsxDEV(Nt,{height:236},void 0,!1,void 0,this),isEmpty:()=>k.cost.length===0,empty:w,children:()=>Ge.jsxDEV(Bd,{items:k.cost.map((A)=>({key:A.folder,label:Ge.jsxDEV("span",{className:"mono",children:fl(A.folder)},void 0,!1,void 0,this),value:A.totalCost,display:`${_t(A.totalCost,A.unpricedRequests)} · ${He(A.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),Ge.jsxDEV(je,{index:2,title:"Top by requests",description:"Share of all requests",stale:i.stale,children:Ge.jsxDEV(Fe,{query:i,skeleton:Ge.jsxDEV(Nt,{height:236},void 0,!1,void 0,this),isEmpty:()=>k.requests.length===0,empty:w,children:()=>Ge.jsxDEV(Bd,{items:k.requests.map((A)=>({key:A.folder,label:Ge.jsxDEV("span",{className:"mono",children:fl(A.folder)},void 0,!1,void 0,this),value:A.totalRequests,display:`${B(A.totalRequests)} · ${He(A.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),Ge.jsxDEV(je,{index:3,title:"Folders",description:i.data?L.length===x.rows.length?`${B(x.rows.length)} folders`:`${B(L.length)} of ${B(x.rows.length)} folders`:void 0,actions:Ge.jsxDEV(Ge.Fragment,{children:[x.temporaryCount>0&&Ge.jsxDEV("label",{className:"check",title:"Session folders under /tmp or /var/folders",children:[Ge.jsxDEV("input",{type:"checkbox",checked:b,onChange:(A)=>m(A.target.checked)},void 0,!1,void 0,this),"Hide temporary (",B(x.temporaryCount),")"]},void 0,!0,void 0,this),Ge.jsxDEV(cl,{value:d,onChange:f,placeholder:"Filter folders…",width:240},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:i.stale,children:Ge.jsxDEV(Fe,{query:i,skeleton:Ge.jsxDEV(ia,{rows:10},void 0,!1,void 0,this),children:()=>Ge.jsxDEV($t,{rows:L,rowKey:(A)=>A.folder,columns:C,initialSort:{key:"cost",dir:"desc"},limit:Q2,dense:!0,empty:Ge.jsxDEV(Ct,{title:x.rows.length===0?"No project folders in this range":"No folders match",hint:x.rows.length===0?"Try a longer range.":b&&x.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 Z2(r,u){return[{key:"folder",header:"Folder",sort:(i)=>i.folder,render:(i)=>Ge.jsxDEV("span",{className:"row projects-folder",title:i.folder||"(root)",children:[Ge.jsxDEV("span",{className:"mono truncate",children:fl(i.folder)},void 0,!1,void 0,this),i.temporary&&Ge.jsxDEV(Bt,{children:"temp"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"requests",header:"Requests",align:"right",sort:(i)=>i.totalRequests,render:(i)=>Ge.jsxDEV("span",{title:`${He(i.requestShare)} of all requests`,children:Ge.jsxDEV(fa,{value:i.totalRequests,max:r,display:B(i.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:(i)=>i.totalCost,render:(i)=>Ge.jsxDEV("span",{title:`${He(i.costShare)} of all cost`,children:Ge.jsxDEV(fa,{value:i.totalCost,max:u,display:_t(i.totalCost,i.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:(i)=>i.conversationTokens,render:(i)=>Ge.jsxDEV("span",{className:"num",title:B(i.conversationTokens),children:Re(i.conversationTokens)},void 0,!1,void 0,this)},{key:"cacheRate",header:"Cache rate",title:"Cache reads ÷ (uncached input + cache reads)",align:"right",sort:(i)=>i.cacheRate,render:(i)=>Ge.jsxDEV("span",{className:"num",children:He(i.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:(i)=>i.cacheSavings,render:(i)=>Ge.jsxDEV("span",{className:`num ${i.cacheSavings<0?"tone-bad":"muted"}`,children:He(i.cacheSavings)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(i)=>i.errorRate,render:(i)=>Ge.jsxDEV("span",{title:`${B(i.failedRequests)} failed`,children:Ge.jsxDEV(Bt,{tone:i.failedRequests>0?il(i.errorRate):"neutral",mono:!0,children:eo(i.errorRate)},void 0,!1,void 0,this)},void 0,!1,void 0,this)},{key:"duration",header:"Avg duration",align:"right",sort:(i)=>i.avgDuration??-1,render:(i)=>Ge.jsxDEV("span",{className:"num",children:Rt(i.avgDuration)},void 0,!1,void 0,this)},{key:"last",header:"Last active",align:"right",sort:(i)=>i.lastTimestamp,render:(i)=>Ge.jsxDEV("span",{className:"dim",children:da(i.lastTimestamp)},void 0,!1,void 0,this)}]}var fo=Z(ht(),1);var J=Z(se(),1),W2=[{value:"tokens",label:"Tokens"},{value:"cost",label:"Cost",title:"API-equivalent estimate"},{value:"requests",label:"Requests"}],Zw=6,Ww=[{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)"}],Kw="Usage snapshots accumulate whenever usage limits are fetched (TUI footer, /usage, omp usage).";function Jw({active:r,range:u}){let i=Ht(["providers",u],({signal:U})=>jk(u,U),{enabled:r}),[d,f]=fo.useState("tokens"),[b,m]=rn(),v=ua(u),S=Ht(["provider-windows",u],({signal:U})=>Lb(u,null,U),{enabled:r}),[x,h]=fo.useState(null),L=K2(S.data?.windowInsights??[],x),k=L?.provider??null,w=Ht(["provider-windows",u,k],({signal:U})=>Lb(u,k,U),{enabled:r&&k!==null}),C=fo.useMemo(()=>{let U=i.data?.providers??[],V=i.data?.series??[],X=Nd(U.map((j)=>({key:j.provider,weight:j.totalTokens}))),ie=Po(u,V.map((j)=>j.timestamp)),K={requests:0,failed:0,tokens:0,cost:0,unpriced:0};for(let j of U)K.requests+=j.totalRequests,K.failed+=j.failedRequests,K.tokens+=j.totalTokens,K.cost+=j.totalCost,K.unpriced+=j.unpricedRequests;let ee=(j)=>hl(V,{buckets:ie,key:(te)=>te.provider,value:j,limit:Zw,colors:X}).map((te)=>({...te,values:te.values.map((_)=>_||null)}));return{colors:X,buckets:ie,totals:K,burn:{tokens:ee((j)=>j.totalTokens),cost:ee((j)=>j.cost),requests:ee((j)=>j.requests)},spark:{tokens:Sa(V,ie,(j)=>j.totalTokens),cost:Sa(V,ie,(j)=>j.cost),requests:Sa(V,ie,(j)=>j.requests)},topProvider:U.reduce((j,te)=>j===null||te.totalTokens>j.totalTokens?te:j,null)}},[i.data,u]),A=C.burn[d],M=d==="cost"?(U)=>ca(U):Re,N=C.totals;return J.jsxDEV("div",{className:"page",children:[J.jsxDEV(na,{title:"Providers",description:`Burn, reliability and subscription headroom per provider over ${v.windowLabel}.`},void 0,!1,void 0,this),J.jsxDEV(Fe,{query:i,skeleton:J.jsxDEV(Nt,{height:112},void 0,!1,void 0,this),children:({providers:U})=>J.jsxDEV("div",{"data-stale":i.stale,children:J.jsxDEV(la,{min:190,children:[J.jsxDEV(ue,{label:"Providers",value:B(U.length),hint:C.topProvider?`Most tokens: ${C.topProvider.provider}`:void 0},void 0,!1,void 0,this),J.jsxDEV(ue,{label:"Requests",value:B(N.requests),hint:`${B(N.failed)} failed`,spark:C.spark.requests},void 0,!1,void 0,this),J.jsxDEV(ue,{label:"Tokens",title:"Uncached input + cache reads + cache writes + output",value:Re(N.tokens),spark:C.spark.tokens},void 0,!1,void 0,this),J.jsxDEV(ue,{label:"API-equivalent cost",title:"What this usage would cost at public API rates",value:_t(N.cost,N.unpriced),hint:N.unpriced>0?`${B(N.unpriced)} unpriced`:void 0,spark:C.spark.cost,sparkColor:"var(--chart-secondary)"},void 0,!1,void 0,this),J.jsxDEV(ue,{label:"Error rate",value:eo(N.requests>0?N.failed/N.requests:0),hint:`${B(N.requests-N.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(je,{index:1,title:"Provider totals",description:N.unpriced>0?`Cost is an API-equivalent estimate and excludes ${B(N.unpriced)} unpriced subscription request${N.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:i.stale,children:J.jsxDEV(Fe,{query:i,skeleton:J.jsxDEV(ia,{rows:6},void 0,!1,void 0,this),children:({providers:U})=>J.jsxDEV(J2,{providers:U,colors:C.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(je,{index:2,title:"Burn by provider",description:d==="cost"&&N.unpriced>0?`API-equivalent estimate per ${v.bucketMs<86400000?"hour":"day"}; excludes unpriced subscription requests`:`Per ${v.bucketMs<3600000?"5 minutes":v.bucketMs<86400000?"hour":"day"}, top ${Zw} providers stacked`,actions:J.jsxDEV(Pa,{size:"sm",options:W2,value:d,onChange:f},void 0,!1,void 0,this),stale:i.stale,children:J.jsxDEV(Fe,{query:i,skeleton:J.jsxDEV(Nt,{height:260},void 0,!1,void 0,this),children:()=>J.jsxDEV("div",{className:"stack",style:{gap:12},children:[J.jsxDEV(jl,{buckets:C.buckets,bucketMs:v.bucketMs,series:A,hidden:b,height:260,format:M,formatTooltip:d==="cost"?(U)=>ca(U):B,emptyLabel:"No provider activity in this range"},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:A.map((U)=>({key:U.key,label:U.label,color:U.color,value:M(U.values.reduce((V,X)=>V+(X??0),0))})),hidden:b,onToggle:m},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(Fe,{query:i,skeleton:J.jsxDEV(Nt,{height:320},void 0,!1,void 0,this),children:({hourly:U,providers:V})=>J.jsxDEV(tD,{hourly:U,providers:V,stale:i.stale},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV(je,{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(Fe,{query:S,skeleton:J.jsxDEV(ia,{rows:6},void 0,!1,void 0,this),children:(U)=>J.jsxDEV(aD,{insights:U.windowInsights,selected:L,onSelect:h},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),J.jsxDEV(sD,{insights:S.data?.windowInsights??null,accounts:w,selected:L,onSelect:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}function K2(r,u){if(u&&r.some((d)=>d.provider===u.provider&&d.windowKey===u.windowKey))return u;let i=u&&r.find((d)=>d.provider===u.provider)||r.reduce((d,f)=>d===void 0||f.fractionConsumed>d.fractionConsumed?f:d,void 0);return i?{provider:i.provider,windowKey:i.windowKey}:null}function J2({providers:r,colors:u}){let[i,d]=fo.useState(null),f=fo.useMemo(()=>{let b=0,m=0,v=0;for(let S of r)b=Math.max(b,S.totalRequests),m=Math.max(m,S.totalTokens),v+=S.totalTokens;return[{key:"provider",header:"Provider",sort:(S)=>S.provider,render:(S)=>J.jsxDEV("span",{className:"row",style:{gap:8},children:[J.jsxDEV(Ln,{color:u.get(S.provider)??to},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(fa,{value:S.totalRequests,max:b,display:B(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 x=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:B(S.failedRequests)},void 0,!1,void 0,this),J.jsxDEV(Bt,{tone:S.failedRequests>0?il(x):"neutral",mono:!0,children:eo(x)},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:B(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(fa,{value:S.totalTokens,max:m,display:Re(S.totalTokens),color:u.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:He(v>0?S.totalTokens/v: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?`${B(S.unpricedRequests)} unpriced`:void 0,children:_t(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:dl(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:B(Math.round(S.totalPremiumRequests*100)/100)},void 0,!1,void 0,this)}]},[r,u]);return J.jsxDEV($t,{rows:r,rowKey:(b)=>b.provider,columns:f,initialSort:{key:"tokens",dir:"desc"},limit:12,selectedKey:i,onRowClick:(b)=>d((m)=>m===b.provider?null:b.provider),expanded:(b)=>b.provider===i?J.jsxDEV(eD,{provider:b},void 0,!1,void 0,this):null,empty:J.jsxDEV(Ct,{title:"No requests in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function eD({provider:r}){let u={input:r.totalInputTokens,cacheRead:r.totalCacheReadTokens,cacheWrite:r.totalCacheWriteTokens,output:r.totalOutputTokens};return J.jsxDEV("div",{className:"providers-mix",children:[J.jsxDEV(Zr,{segments:Ww.map((i)=>({key:i.key,label:i.label,value:u[i.key],color:i.color}))},void 0,!1,void 0,this),J.jsxDEV(Qa,{items:Ww.map((i)=>({key:i.key,label:i.label,color:i.color,value:`${Re(u[i.key])} · ${r.totalTokens>0?He(u[i.key]/r.totalTokens,0):"–"}`}))},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Vd="";function tD({hourly:r,providers:u,stale:i}){let[d,f]=fo.useState(Vd),b=d===Vd||u.some((S)=>S.provider===d)?d:Vd,m=fo.useMemo(()=>{let S=Array.from({length:24},()=>0),x=Array.from({length:24},()=>0),h=Array.from({length:24},()=>0);for(let C of r){if(b!==Vd&&C.provider!==b)continue;S[C.hour]+=C.totalTokens,x[C.hour]+=C.outputTokens,h[C.hour]+=C.requests}let L=0;for(let C=1;C<24;C++)if(S[C]>S[L])L=C;let k=S[L]>0;return{series:[{key:"tokens",label:"Tokens",color:"var(--chart-primary)",values:S.map((C,A)=>k&&A===L?null:C)},{key:"peak",label:"Tokens (peak hour)",color:"var(--chart-secondary)",values:S.map((C,A)=>k&&A===L?C:null)}],output:x,requests:h,peak:L,hasData:k}},[r,b]),v=(S)=>`${String(S).padStart(2,"0")}:00`;return J.jsxDEV(je,{index:3,title:"Peak burn hours",description:m.hasData?`Tokens by local hour of day; peak at ${v(m.peak)}`:"Tokens by local hour of day",actions:J.jsxDEV("select",{className:"input providers-select",value:b,onChange:(S)=>f(S.target.value),"aria-label":"Provider",children:[J.jsxDEV("option",{value:Vd,children:"All providers"},void 0,!1,void 0,this),u.map((S)=>J.jsxDEV("option",{value:S.provider,children:S.provider},S.provider,!1,void 0,this))]},void 0,!0,void 0,this),stale:i,children:J.jsxDEV(wn,{slots:24,tickLabel:(S)=>String(S).padStart(2,"0"),tooltipTitle:(S)=>`${v(S)}–${v((S+1)%24)}`,series:m.series,height:260,showTotal:!1,formatTooltip:B,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:B(m.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:B(m.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 aD({insights:r,selected:u,onSelect:i}){return J.jsxDEV($t,{rows:r,rowKey:(d)=>`${d.provider}::${d.windowKey}`,columns:oD,initialSort:{key:"consumed",dir:"desc"},limit:12,selectedKey:u?`${u.provider}::${u.windowKey}`:null,onRowClick:(d)=>i({provider:d.provider,windowKey:d.windowKey}),empty:J.jsxDEV(Ct,{title:"No usage snapshots in this range",hint:Kw},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var oD=[{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:B(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:B(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:Re(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 u=r.accounts>0?r.peakConcurrentFraction/r.accounts:0;return J.jsxDEV(fa,{value:r.peakConcurrentFraction,max:r.accounts,display:He(r.peakConcurrentFraction,0),color:u>=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(Bt,{tone:"warn",mono:!0,children:[B(r.idealAccounts)," · have ",B(r.accounts)]},void 0,!0,void 0,this):J.jsxDEV("span",{className:"num",children:B(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(Bt,{tone:"warn",mono:!0,children:[B(r.exhaustedEvents)," exhausted"]},void 0,!0,void 0,this):J.jsxDEV("span",{className:"num dim",children:"0"},void 0,!1,void 0,this)}],Om=60000,Ql=60*Om,qm=24*Ql,nD=[5*Om,15*Om,30*Om,Ql,2*Ql,3*Ql,6*Ql,12*Ql,qm],lD=240,rD=6*Ql;function sD({insights:r,accounts:u,selected:i,onSelect:d}){let[f,b]=rn(),m=fo.useMemo(()=>[...new Set((r??[]).map((C)=>C.provider))],[r]),v=fo.useMemo(()=>(r??[]).filter((C)=>C.provider===i?.provider).map((C)=>({key:C.windowKey,label:C.windowLabel})),[r,i?.provider]),S=fo.useMemo(()=>(u.data?.usageSeries??[]).filter((C)=>C.provider===i?.provider),[u.data,i?.provider]),x=S.length===0&&(u.loading||u.stale),h=fo.useMemo(()=>{let C=new Map;for(let M of S){let N=C.get(M.accountLabel)??[];if(!N.includes(M.accountKey))N.push(M.accountKey);C.set(M.accountLabel,N)}let A=new Map;for(let[M,N]of C)N.sort(),N.forEach((U,V)=>A.set(U,N.length>1?`${M} #${V+1}`:M));return A},[S]),L=fo.useMemo(()=>uD(S.filter((C)=>C.windowKey===i?.windowKey),h),[S,h,i?.windowKey]),k=fo.useMemo(()=>{let C=new Map(L.series.map((A)=>[A.key,A.color]));return S.map((A)=>{let M=null,N=null;for(let X of A.points){if(X.usedFraction===null)continue;if(N=Math.max(N??0,X.usedFraction),!M||X.timestamp>=M.timestamp)M={fraction:X.usedFraction,exhausted:X.exhausted,timestamp:X.timestamp}}let U=A.windowKey===i?.windowKey?C.get(A.accountKey)??null:null,V=h.get(A.accountKey)??A.accountLabel;return{series:A,name:V,color:U,latest:M,peak:N,samples:A.points.length}}).sort((A,M)=>Number(M.color!==null)-Number(A.color!==null)||A.series.windowLabel.localeCompare(M.series.windowLabel)||(M.latest?.fraction??-1)-(A.latest?.fraction??-1))},[S,h,L.series,i?.windowKey]),w=v.find((C)=>C.key===i?.windowKey)?.label;return J.jsxDEV(je,{index:5,title:"Window utilization",description:L.buckets.length>0?`${w??"Window"} used fraction per account, ${rl(new Date(L.first),"MMM d HH:mm")} – ${rl(new Date(L.last),"MMM d HH:mm")}`:"Recorded limit utilization per account",actions:i&&J.jsxDEV("div",{className:"row",style:{gap:6},children:[J.jsxDEV("select",{className:"input providers-select",value:i.provider,onChange:(C)=>{let A=C.target.value,M=r?.find((N)=>N.provider===A);if(M)d({provider:A,windowKey:M.windowKey})},"aria-label":"Provider",children:m.map((C)=>J.jsxDEV("option",{value:C,children:C},C,!1,void 0,this))},void 0,!1,void 0,this),J.jsxDEV("select",{className:"input providers-select",value:i.windowKey,onChange:(C)=>d({provider:i.provider,windowKey:C.target.value}),"aria-label":"Window",children:v.map((C)=>J.jsxDEV("option",{value:C.key,children:C.label},C.key,!1,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),stale:u.stale,children:r===null?J.jsxDEV(Nt,{height:260},void 0,!1,void 0,this):i===null?J.jsxDEV(Ct,{title:"No usage snapshots in this range",hint:Kw},void 0,!1,void 0,this):J.jsxDEV(Fe,{query:u,skeleton:J.jsxDEV(Nt,{height:260},void 0,!1,void 0,this),children:()=>x?J.jsxDEV(Nt,{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(wn,{slots:L.buckets.length,tickLabel:(C)=>gm(L.buckets[C],L.last-L.first>qm?qm:L.bucketMs),tooltipTitle:(C)=>hm(L.buckets[C],Ql),series:L.series,hidden:f,kind:"line",stacked:!1,height:260,yMax:Math.max(1,L.max),format:(C)=>He(C,0),formatTooltip:(C)=>He(C,1),references:[{value:1,label:"100%"}],emptyLabel:"No utilization readings for this window",tooltipExtra:(C)=>{let A=L.exhausted[C];return A.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:A.join(", ")},void 0,!1,void 0,this)]},void 0,!0,void 0,this):null}},void 0,!1,void 0,this),L.series.length>1&&J.jsxDEV(Qa,{items:L.series.map((C)=>({key:C.key,label:C.label,color:C.color})),hidden:f,onToggle:b},void 0,!1,void 0,this)]},void 0,!0,void 0,this),J.jsxDEV("div",{className:"providers-accounts",children:J.jsxDEV($t,{rows:k,rowKey:(C)=>`${C.series.windowKey}::${C.series.accountKey}`,columns:cD,limit:16,onRowClick:(C)=>d({provider:C.series.provider,windowKey:C.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 uD(r,u){let{POSITIVE_INFINITY:i,NEGATIVE_INFINITY:d}=Number;for(let w of r)for(let C of w.points){if(C.timestamp<i)i=C.timestamp;if(C.timestamp>d)d=C.timestamp}if(!(d>=i))return{buckets:[],bucketMs:Ql,first:0,last:0,max:0,series:[],exhausted:[]};let f=d-i,b=nD.find((w)=>f/w<lD)??qm,m=Po("all",[i],b,d),v=(w)=>Math.floor((w-m[0])/b),S=m.map(()=>[]),x=0,h=(w)=>u.get(w.accountKey)??w.accountLabel,k=[...r].sort((w,C)=>h(w).localeCompare(h(C))).map((w,C)=>{let A=m.map(()=>null),M=m.map(()=>0);for(let V of w.points){let X=v(V.timestamp);if(X<0||X>=m.length)continue;if(V.exhausted&&!S[X].includes(h(w)))S[X].push(h(w));if(V.usedFraction===null||V.timestamp<M[X])continue;A[X]=V.usedFraction,M[X]=V.timestamp,x=Math.max(x,V.usedFraction)}let N=null,U=0;for(let V=0;V<m.length;V++)if(A[V]!==null)N=A[V],U=M[V];else if(N!==null&&m[V]-U<=rD)A[V]=N;return{key:w.accountKey,label:h(w),color:Ha[C%Ha.length],values:A}});return{buckets:m,bucketMs:b,first:i,last:d,max:x,series:k,exhausted:S}}function iD(r){if(!r)return J.jsxDEV("span",{className:"dim",children:"No reading"},void 0,!1,void 0,this);if(r.exhausted)return J.jsxDEV(Bt,{tone:"bad",children:"Exhausted"},void 0,!1,void 0,this);if(r.fraction>=0.8)return J.jsxDEV(Bt,{tone:"warn",children:"High"},void 0,!1,void 0,this);return J.jsxDEV(Bt,{tone:"ok",children:"OK"},void 0,!1,void 0,this)}var cD=[{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(Ln,{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(fa,{value:r.latest.fraction,max:1,display:He(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)=>iD(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?"–":He(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:B(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?da(r.latest.timestamp):"–"},void 0,!1,void 0,this)}];var au=Z(ht(),1);var at=Z(se(),1),Bm={ok:{label:"OK",tone:"ok"},aborted:{label:"Aborted",tone:"warn"},failed:{label:"Failed",tone:"bad"}};function eT({id:r,onClose:u}){let i=Ht(["request",r],({signal:b})=>Uk(r??0,b),{enabled:r!==null}),d=i.stale?null:i.data,f=d?Bm[Xl(d)]:null;return at.jsxDEV(xm,{open:r!==null,onClose:u,width:620,title:d?at.jsxDEV("span",{className:"mono",children:d.model},void 0,!1,void 0,this):"Request",subtitle:d?at.jsxDEV(at.Fragment,{children:[d.provider," ·"," ",at.jsxDEV("span",{title:ln(d.timestamp),children:da(d.timestamp)},void 0,!1,void 0,this)]},void 0,!0,void 0,this):r!==null?at.jsxDEV("span",{className:"mono",children:["#",r]},void 0,!0,void 0,this):void 0,actions:d&&f?at.jsxDEV("div",{className:"row",style:{gap:6},children:[at.jsxDEV("a",{className:"btn","data-size":"sm","data-variant":"ghost",href:Rm({...qd(window.location.hash),section:"traces",session:d.sessionFile}),onClick:u,title:"Open this request's session in the trace view",children:[at.jsxDEV(Sd,{size:13},void 0,!1,void 0,this)," Trace"]},void 0,!0,void 0,this),at.jsxDEV(Bt,{tone:f.tone,children:f.label},void 0,!1,void 0,this)]},void 0,!0,void 0,this):void 0,children:d?at.jsxDEV(dD,{details:d,aborted:Xl(d)==="aborted"},void 0,!1,void 0,this):i.error?at.jsxDEV(bi,{error:i.error,onRetry:i.refetch},void 0,!1,void 0,this):at.jsxDEV("div",{className:"stack",style:{gap:12},children:[at.jsxDEV(Oa,{height:56},void 0,!1,void 0,this),at.jsxDEV(Oa,{height:120},void 0,!1,void 0,this),at.jsxDEV(Oa,{height:120},void 0,!1,void 0,this),at.jsxDEV(Oa,{height:220},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this)}function dD({details:r,aborted:u}){let{usage:i}=r,d=r.duration!==null&&r.duration>0&&i.output>0?i.output*1000/r.duration:null,{messages:f,output:b,...m}=r;return at.jsxDEV(at.Fragment,{children:[r.errorMessage&&at.jsxDEV("section",{className:"request-drawer-error","data-tone":u?"warn":"bad",role:"note",children:[at.jsxDEV("div",{className:"request-drawer-error-label",children:u?"Aborted":"Error"},void 0,!1,void 0,this),at.jsxDEV("pre",{className:"request-drawer-error-text",children:r.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),at.jsxDEV("section",{children:[at.jsxDEV("div",{className:"section-label",children:"Timing"},void 0,!1,void 0,this),at.jsxDEV(_o,{items:[{key:"at",label:"Started",value:ln(r.timestamp)},{key:"duration",label:"Duration",value:Rt(r.duration)},{key:"ttft",label:"Time to first token",value:Rt(r.ttft)},{key:"tps",label:"Output tokens/s",value:dl(d)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),at.jsxDEV("section",{children:[at.jsxDEV("div",{className:"section-label",children:"Tokens"},void 0,!1,void 0,this),at.jsxDEV(_o,{items:[{key:"input",label:"Uncached input",value:B(i.input)},{key:"cacheRead",label:"Cache read",value:B(i.cacheRead)},{key:"cacheWrite",label:"Cache write",value:B(i.cacheWrite)},{key:"output",label:"Output",value:B(i.output)},{key:"total",label:"Total",value:B(i.totalTokens)},{key:"premium",label:"Premium requests",value:B(Math.round((i.premiumRequests??0)*100)/100)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),at.jsxDEV("section",{children:[at.jsxDEV("div",{className:"section-label",children:"API-equivalent cost"},void 0,!1,void 0,this),at.jsxDEV(_o,{items:[{key:"total",label:"Total",value:Qr(r,4)},{key:"input",label:"Input",value:ca(i.cost.input,4)},{key:"cacheRead",label:"Cache read",value:ca(i.cost.cacheRead,4)},{key:"cacheWrite",label:"Cache write",value:ca(i.cost.cacheWrite,4)},{key:"output",label:"Output",value:ca(i.cost.output,4)}]},void 0,!1,void 0,this)]},void 0,!0,void 0,this),at.jsxDEV("section",{children:[at.jsxDEV("div",{className:"section-label",children:"Identity"},void 0,!1,void 0,this),at.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:at.jsxDEV("span",{title:r.folder,children:fl(r.folder)},void 0,!1,void 0,this)}]},void 0,!1,void 0,this),at.jsxDEV("div",{className:"request-drawer-file",children:[at.jsxDEV("span",{className:"kv-key",children:"Session file"},void 0,!1,void 0,this),at.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),b!=null&&at.jsxDEV(pi,{data:b,title:"Output message"},void 0,!1,void 0,this),at.jsxDEV(pi,{data:f,title:"Session entry",initialCollapsed:!0},void 0,!1,void 0,this),at.jsxDEV(pi,{data:m,title:"Stats row",initialCollapsed:!0},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var We=Z(se(),1),_b=[500,2000,1e4];function tT({active:r,range:u,onRequestClick:i}){let[d,f]=au.useState(0),b=_b[d],m=Ht(["requests-log",b],({signal:X})=>ym(b,X),{enabled:r}),[v,S]=au.useState(""),[x,h]=au.useState("all"),L=ua(u),k=au.useMemo(()=>{let X=m.data??[],ie=L.spanMs===null?null:Date.now()-L.spanMs,K=ie===null?X:X.filter((te)=>te.timestamp>=ie),ee=!m.stale&&(X.length<b||ie!==null&&K.length<X.length),j={all:K.length,ok:0,aborted:0,failed:0};for(let te of K)j[Xl(te)]++;return{loaded:X.length,inRange:K,complete:ee,counts:j,summary:Ow(K)}},[m.data,m.stale,b,L.spanMs]),w=au.useMemo(()=>{let X=v.trim().toLowerCase();return k.inRange.filter((ie)=>(x==="all"||Xl(ie)===x)&&(X===""||ie.model.toLowerCase().includes(X)||ie.provider.toLowerCase().includes(X)||ie.folder.toLowerCase().includes(X)))},[k.inRange,v,x]),{summary:C,counts:A,complete:M}=k,N=d+1<_b.length?_b[d+1]:null,U=N!==null?We.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",disabled:m.refreshing,onClick:()=>f(d+1),children:m.refreshing&&m.stale?"Loading…":`Load latest ${B(N)}`},void 0,!1,void 0,this):void 0,V=["all","ok","aborted","failed"].map((X)=>({value:X,label:We.jsxDEV(We.Fragment,{children:[X==="all"?"All":Bm[X].label," ",We.jsxDEV("span",{className:"dim num",children:Re(A[X])},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}));return We.jsxDEV("div",{className:"page",children:[We.jsxDEV(na,{title:"Requests",description:`Every model call omp made in ${L.windowLabel}, newest first. Open a row for its full payload.`},void 0,!1,void 0,this),We.jsxDEV(Fe,{query:m,skeleton:We.jsxDEV(Oa,{height:96,style:{borderRadius:12}},void 0,!1,void 0,this),children:()=>We.jsxDEV("div",{"data-stale":m.stale,children:We.jsxDEV(la,{min:160,children:[We.jsxDEV(ue,{label:"Requests",value:B(C.requests),hint:C.oldest===null?`none in ${L.windowLabel}`:`since ${da(C.oldest)}`},void 0,!1,void 0,this),We.jsxDEV(ue,{label:"Failed",value:B(C.failed),hint:`${C.requests>0?eo(C.failed/C.requests):"–"} · ${B(C.aborted)} aborted`},void 0,!1,void 0,this),We.jsxDEV(ue,{label:"Tokens",title:"Total tokens across these requests",value:Re(C.tokens)},void 0,!1,void 0,this),We.jsxDEV(ue,{label:"API-equivalent cost",title:"What these requests would cost at public API rates",value:_t(C.cost,C.unpriced),hint:C.unpriced>0?`${B(C.unpriced)} unpriced`:void 0},void 0,!1,void 0,this),We.jsxDEV(ue,{label:"Median duration",value:Rt(C.medianDuration),hint:`p95 ${Rt(C.p95Duration)}`},void 0,!1,void 0,this),We.jsxDEV(ue,{label:"Median TTFT",title:"Time to first token",value:Rt(C.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),We.jsxDEV(je,{index:1,title:"Request log",description:m.data===null?"Loading the latest requests…":M?`${B(w.length)} of ${B(C.requests)} requests in ${L.windowLabel}`:`${B(w.length)} of the latest ${B(C.requests)} requests`,actions:We.jsxDEV(We.Fragment,{children:[We.jsxDEV(cl,{value:v,onChange:S,placeholder:"Model, provider or project"},void 0,!1,void 0,this),We.jsxDEV(Pa,{size:"sm","aria-label":"Status",options:V,value:x,onChange:h},void 0,!1,void 0,this)]},void 0,!0,void 0,this),flush:!0,stale:m.stale,footer:m.data!==null&&!M?We.jsxDEV(We.Fragment,{children:[We.jsxDEV("span",{children:["Showing the latest ",B(k.loaded)," requests, back to"," ",C.oldest===null?"–":ln(C.oldest),". Older requests in"," ",L.windowLabel," are not loaded."]},void 0,!0,void 0,this),U]},void 0,!0,void 0,this):void 0,children:We.jsxDEV(Fe,{query:m,skeleton:We.jsxDEV(ia,{rows:12},void 0,!1,void 0,this),children:()=>We.jsxDEV($t,{rows:w,rowKey:(X)=>X.id??`${X.sessionFile}:${X.entryId}`,onRowClick:(X)=>X.id!==void 0&&i(X.id),columns:fD,initialSort:{key:"time",dir:"desc"},limit:100,dense:!0,empty:We.jsxDEV(Ct,{title:C.requests===0?`No requests in ${L.windowLabel}`:"No requests match",hint:C.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 fD=[{key:"model",header:"Model",sort:(r)=>r.model,render:(r)=>We.jsxDEV(_a,{primary:We.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)=>We.jsxDEV("span",{className:"muted",title:ln(r.timestamp),children:da(r.timestamp)},void 0,!1,void 0,this)},{key:"project",header:"Project",sort:(r)=>r.folder,render:(r)=>We.jsxDEV("span",{className:"mono muted truncate",title:r.folder,style:{display:"block",maxWidth:180},children:fl(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)=>We.jsxDEV("span",{className:"num",children:Re(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)=>We.jsxDEV("span",{className:"num",title:`Cache write: ${B(r.usage.cacheWrite)}`,children:Re(r.usage.cacheRead)},void 0,!1,void 0,this)},{key:"output",header:"Output",align:"right",sort:(r)=>r.usage.output,render:(r)=>We.jsxDEV("span",{className:"num",children:Re(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)=>We.jsxDEV("span",{className:"num",children:Qr(r,4)},void 0,!1,void 0,this)},{key:"duration",header:"Duration",align:"right",sort:(r)=>r.duration??-1,render:(r)=>We.jsxDEV("span",{className:"num",children:Rt(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)=>We.jsxDEV("span",{className:"num muted",children:Rt(r.ttft)},void 0,!1,void 0,this)},{key:"status",header:"Status",sort:(r)=>Xl(r),render:(r)=>{let u=Bm[Xl(r)];return We.jsxDEV("span",{title:r.errorMessage??void 0,children:We.jsxDEV(_a,{lead:We.jsxDEV(ul,{tone:u.tone},void 0,!1,void 0,this),primary:u.label,secondary:We.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 nu=Z(ht(),1);var he=Z(se(),1),pD=[{value:"calls",label:"Calls"},{value:"errors",label:"Errors"}],aT=6,ou="Tokens and API-equivalent cost of each invoking turn, split evenly across that turn's tool calls",Hb=he.jsxDEV(Ct,{title:"No tool calls in this range"},void 0,!1,void 0,this);function oT({active:r,range:u}){let i=Ht(["tools",u],({signal:C})=>$k(u,C),{enabled:r}),[d,f]=nu.useState("calls"),[b,m]=rn(),[v,S]=nu.useState(null),x=ua(u),h=nu.useMemo(()=>mD(i.data,u),[i.data,u]),L=v!==null&&h.toolNames.includes(v)?v:null,k=d==="calls"?h.callSeries:h.errorSeries,w=(C)=>C.byTool.length===0;return he.jsxDEV("div",{className:"page",children:[he.jsxDEV(na,{title:"Tools",description:`Which tools omp called in ${x.windowLabel}, how often they failed, and what they cost.`},void 0,!1,void 0,this),he.jsxDEV(Fe,{query:i,skeleton:he.jsxDEV(Nt,{height:112},void 0,!1,void 0,this),children:()=>{let C=h.totals;return he.jsxDEV("div",{"data-stale":i.stale,className:"stack",style:{gap:16},children:[he.jsxDEV(la,{min:190,children:[he.jsxDEV(ue,{label:"Tool calls",value:B(C.calls),hint:`${B(C.errors)} failed`,spark:h.totalCalls},void 0,!1,void 0,this),he.jsxDEV(ue,{label:"Distinct tools",value:B(C.tools),hint:h.rows[0]?`Most used: ${h.rows[0].tool}`:void 0},void 0,!1,void 0,this),he.jsxDEV(ue,{label:"Error rate",title:"Tool results that came back flagged as errors",value:eo(C.calls>0?C.errors/C.calls:0),hint:`${B(C.calls-C.errors)} succeeded`,spark:h.totalErrors,sparkColor:"var(--bad)"},void 0,!1,void 0,this),he.jsxDEV(ue,{label:"Attributed tokens",title:ou,value:Re(Math.round(C.tokens)),hint:`${Re(Math.round(C.output))} output`},void 0,!1,void 0,this),he.jsxDEV(ue,{label:"Attributed cost",title:`${ou}; API-equivalent estimate`,value:_t(C.cost,C.unpriced),hint:C.unpriced>0?`${B(Math.round(C.unpriced))} unpriced requests`:"API-equivalent"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),he.jsxDEV(la,{min:150,children:[he.jsxDEV(ue,{size:"sm",label:"Result text",title:"Characters of tool-result text fed back into context",value:`${Re(C.resultChars)} chars`},void 0,!1,void 0,this),he.jsxDEV(ue,{size:"sm",label:"Call arguments",title:"Characters of serialized tool-call arguments",value:`${Re(C.argsChars)} chars`},void 0,!1,void 0,this),he.jsxDEV(ue,{size:"sm",label:"Avg result per call",value:`${Re(C.calls>0?Math.round(C.resultChars/C.calls):0)} chars`},void 0,!1,void 0,this),he.jsxDEV(ue,{size:"sm",label:"Avg arguments per call",value:`${Re(C.calls>0?Math.round(C.argsChars/C.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),he.jsxDEV(je,{index:1,title:d==="calls"?"Calls over time":"Errors over time",description:`Per ${x.bucketMs<3600000?"5 minutes":x.bucketMs<86400000?"hour":"day"}, top ${aT} tools stacked`,actions:he.jsxDEV(Pa,{size:"sm",options:pD,value:d,onChange:f},void 0,!1,void 0,this),stale:i.stale,children:he.jsxDEV(Fe,{query:i,skeleton:he.jsxDEV(Nt,{height:260},void 0,!1,void 0,this),isEmpty:w,empty:Hb,children:()=>he.jsxDEV("div",{className:"stack",style:{gap:12},children:[he.jsxDEV(jl,{buckets:h.buckets,bucketMs:x.bucketMs,series:k,hidden:b,height:260,formatTooltip:B,emptyLabel:d==="errors"?"No tool errors in this range":void 0},void 0,!1,void 0,this),he.jsxDEV(Qa,{items:k.map((C)=>({key:C.key,label:C.label,color:C.color,value:Re(C.values.reduce((A,M)=>A+(M??0),0))})),hidden:b,onToggle:m},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(je,{index:2,title:"By tool",description:`${ou}. Select a tool to break it down by model.`,flush:!0,stale:i.stale,children:he.jsxDEV(Fe,{query:i,skeleton:he.jsxDEV(ia,{rows:8},void 0,!1,void 0,this),isEmpty:w,empty:Hb,children:()=>he.jsxDEV($t,{rows:h.rows,rowKey:(C)=>C.tool,columns:h.toolColumns,initialSort:{key:"calls",dir:"desc"},limit:20,selectedKey:L,onRowClick:(C)=>S((A)=>A===C.tool?null:C.tool),dense:!0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),he.jsxDEV(je,{index:3,title:"By tool and model",description:"Which models call which tools, and how often those calls fail",flush:!0,stale:i.stale,actions:he.jsxDEV("div",{className:"row",style:{gap:6},children:[he.jsxDEV("select",{className:"input tools-filter",value:L??"",onChange:(C)=>S(C.target.value||null),"aria-label":"Filter by tool",children:[he.jsxDEV("option",{value:"",children:"All tools"},void 0,!1,void 0,this),h.toolNames.map((C)=>he.jsxDEV("option",{value:C,children:C},C,!1,void 0,this))]},void 0,!0,void 0,this),L!==null&&he.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:he.jsxDEV(on,{size:13},void 0,!1,void 0,this)},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:he.jsxDEV(Fe,{query:i,skeleton:he.jsxDEV(ia,{rows:8},void 0,!1,void 0,this),isEmpty:w,empty:Hb,children:(C)=>he.jsxDEV(gD,{rows:C.byToolModel,tool:L,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 mD(r,u){let i=r?.byTool??[],d=r?.series??[],f=Ew(i).sort((w,C)=>C.calls-w.calls),b=Nd(i.map((w)=>({key:w.tool,weight:w.calls}))),m=Po(u,d.map((w)=>w.timestamp)),v={calls:0,errors:0,tools:i.length,tokens:0,output:0,cost:0,unpriced:0,resultChars:0,argsChars:0};for(let w of i)v.calls+=w.calls,v.errors+=w.errors,v.tokens+=w.totalTokensShare,v.output+=w.outputTokensShare,v.cost+=w.costShare,v.unpriced+=w.unpricedRequestsShare,v.resultChars+=w.resultChars,v.argsChars+=w.argsChars;let[S,x]=[(w)=>w.calls,(w)=>w.errors].map((w)=>hl(d,{buckets:m,key:(C)=>C.tool,value:w,limit:aT,colors:b}).map((C)=>({...C,values:C.values.map((A)=>A||null)}))),h=new Map(hl(d,{buckets:m,key:(w)=>w.tool,value:(w)=>w.calls}).map((w)=>[w.key,w.values])),L=f[0]?.calls??0,k=hD(L,b,h);return{rows:f,colors:b,buckets:m,totals:v,callSeries:S,errorSeries:x,totalCalls:Sa(d,m,(w)=>w.calls),totalErrors:Sa(d,m,(w)=>w.errors),toolNames:f.map((w)=>w.tool).sort((w,C)=>w.localeCompare(C)),toolColumns:k}}function hD(r,u,i){return[{key:"tool",header:"Tool",sort:(d)=>d.tool,render:(d)=>he.jsxDEV("span",{className:"row",style:{gap:8},children:[he.jsxDEV(Ln,{color:u.get(d.tool)??to},void 0,!1,void 0,this),he.jsxDEV("span",{className:"mono truncate tools-name",title:d.tool,children:d.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:(d)=>{let f=i.get(d.tool);return f&&f.length>1?he.jsxDEV(gi,{values:f,width:80,height:20,color:u.get(d.tool)??to},void 0,!1,void 0,this):he.jsxDEV("span",{className:"dim",children:"–"},void 0,!1,void 0,this)}},{key:"calls",header:"Calls",align:"right",sort:(d)=>d.calls,render:(d)=>he.jsxDEV(fa,{value:d.calls,max:r,display:he.jsxDEV("span",{title:`${He(d.callFraction)} of all tool calls`,children:[B(d.calls),he.jsxDEV("span",{className:"dim tools-share",children:He(d.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:(d)=>d.errorRate,render:(d)=>he.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[he.jsxDEV("span",{className:"num dim",children:B(d.errors)},void 0,!1,void 0,this),he.jsxDEV(Bt,{tone:d.errors>0?il(d.errorRate):"neutral",mono:!0,children:eo(d.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:(d)=>d.argsChars,render:(d)=>he.jsxDEV("span",{className:"num",children:Re(d.argsChars)},void 0,!1,void 0,this)},{key:"result",header:"Result",title:"Characters of tool-result text fed back into context",align:"right",sort:(d)=>d.resultChars,render:(d)=>he.jsxDEV("span",{className:"num",children:Re(d.resultChars)},void 0,!1,void 0,this)},{key:"avgResult",header:"Result / call",title:"Mean tool-result characters per call",align:"right",sort:(d)=>d.avgResultChars,render:(d)=>he.jsxDEV("span",{className:"num muted",children:Re(Math.round(d.avgResultChars))},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:ou,align:"right",sort:(d)=>d.totalTokensShare,render:(d)=>he.jsxDEV("span",{className:"num",title:`${He(d.tokenFraction)} of attributed tokens`,children:[Re(Math.round(d.totalTokensShare)),he.jsxDEV("span",{className:"dim tools-share",children:He(d.tokenFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"cost",header:"Attr. cost",title:`${ou}; API-equivalent estimate`,align:"right",sort:(d)=>d.costShare,render:(d)=>he.jsxDEV("span",{className:"num",title:`${He(d.costFraction)} of attributed cost`,children:[_t(d.costShare,d.unpricedRequestsShare),he.jsxDEV("span",{className:"dim tools-share",children:He(d.costFraction,0)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(d)=>d.lastUsed,render:(d)=>he.jsxDEV("span",{className:"muted",children:da(d.lastUsed)},void 0,!1,void 0,this)}]}function gD({rows:r,tool:u,colors:i}){let d=nu.useMemo(()=>(u===null?r:r.filter((b)=>b.tool===u)).map((b)=>({...b,errorRate:b.calls>0?b.errors/b.calls:0})),[r,u]),f=nu.useMemo(()=>{let b=d.reduce((m,v)=>Math.max(m,v.calls),0);return[{key:"tool",header:"Tool",sort:(m)=>m.tool,render:(m)=>he.jsxDEV("span",{className:"row",style:{gap:8},children:[he.jsxDEV(Ln,{color:i.get(m.tool)??to},void 0,!1,void 0,this),he.jsxDEV("span",{className:"mono truncate tools-name",title:m.tool,children:m.tool},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"model",header:"Model",sort:(m)=>m.model,render:(m)=>he.jsxDEV(_a,{primary:he.jsxDEV("span",{className:"mono",children:m.model||"(unknown)"},void 0,!1,void 0,this),secondary:m.provider},void 0,!1,void 0,this)},{key:"calls",header:"Calls",align:"right",sort:(m)=>m.calls,render:(m)=>he.jsxDEV(fa,{value:m.calls,max:b,display:B(m.calls)},void 0,!1,void 0,this)},{key:"errorRate",header:"Errors",align:"right",sort:(m)=>m.errorRate,render:(m)=>he.jsxDEV("span",{className:"row",style:{gap:8,justifyContent:"flex-end"},children:[he.jsxDEV("span",{className:"num dim",children:B(m.errors)},void 0,!1,void 0,this),he.jsxDEV(Bt,{tone:m.errors>0?il(m.errorRate):"neutral",mono:!0,children:eo(m.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:(m)=>m.resultChars,render:(m)=>he.jsxDEV("span",{className:"num",children:Re(m.resultChars)},void 0,!1,void 0,this)},{key:"tokens",header:"Attr. tokens",title:ou,align:"right",sort:(m)=>m.totalTokensShare,render:(m)=>he.jsxDEV("span",{className:"num",children:Re(Math.round(m.totalTokensShare))},void 0,!1,void 0,this)},{key:"cost",header:"Attr. cost",title:`${ou}; API-equivalent estimate`,align:"right",sort:(m)=>m.costShare,render:(m)=>he.jsxDEV("span",{className:"num",children:_t(m.costShare,m.unpricedRequestsShare)},void 0,!1,void 0,this)},{key:"lastUsed",header:"Last used",align:"right",sort:(m)=>m.lastUsed,render:(m)=>he.jsxDEV("span",{className:"muted",children:da(m.lastUsed)},void 0,!1,void 0,this)}]},[d,i]);return he.jsxDEV($t,{rows:d,rowKey:(b)=>`${b.tool}::${b.model}::${b.provider}`,columns:f,initialSort:{key:"calls",dir:"desc"},limit:25,dense:!0,empty:he.jsxDEV(Ct,{title:u?`No calls to ${u} in this range`:"No tool calls in this range"},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ii=Z(ht(),1);var At=Z(ht(),1);var gl=Z(se(),1);function nT({toolStats:r,index:u}){if(r.length===0)return null;let i=Math.max(...r.map((f)=>f.totalMs)),d=[{key:"tool",header:"Tool",render:(f)=>gl.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)=>gl.jsxDEV("span",{className:"num",children:B(f.calls)},void 0,!1,void 0,this),sort:(f)=>f.calls},{key:"errors",header:"Errors",align:"right",render:(f)=>f.errors>0?gl.jsxDEV(Bt,{tone:"bad",children:[B(f.errors)," failed"]},void 0,!0,void 0,this):gl.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)=>gl.jsxDEV(fa,{value:f.totalMs,max:i,display:Rt(f.totalMs),color:"var(--warn)"},void 0,!1,void 0,this),sort:(f)=>f.totalMs},{key:"avg",header:"Avg",align:"right",render:(f)=>gl.jsxDEV("span",{className:"num",children:Rt(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)=>gl.jsxDEV("span",{className:"num",children:Rt(f.maxMs)},void 0,!1,void 0,this),sort:(f)=>f.maxMs}];return gl.jsxDEV(je,{title:"Tool aggregates",description:`${r.length} tools, by total time`,flush:!0,index:u,children:gl.jsxDEV($t,{columns:d,rows:r,rowKey:(f)=>f.tool,dense:!0,limit:12},void 0,!1,void 0,this)},void 0,!1,void 0,this)}var Ho=Z(ht(),1);var Li=Z(ht(),1);var lu={turn:"--ink-2",model:"--chart-primary",tool:"--warn",subagent:"--chart-secondary",background:"--ink-4"};function yD(){let r=getComputedStyle(document.documentElement),u=(i,d)=>r.getPropertyValue(i).trim()||d;return{category:{turn:u(lu.turn,"#a0a0a8"),model:u(lu.model,"#5ad8e6"),tool:u(lu.tool,"#f5a524"),subagent:u(lu.subagent,"#ed4abf"),background:u(lu.background,"#46464c")},error:u("--bad","#ff6166"),errorSoft:u("--bad-soft","rgba(255, 97, 102, 0.13)"),marker:u("--ink-1","#ededef"),turnBand:u("--hover","rgba(255, 255, 255, 0.035)"),grid:u("--chart-grid","rgba(255, 255, 255, 0.055)"),tick:u("--chart-axis","#5c5c64"),spanText:u("--ink-inverse","#0a0a0b"),selection:u("--focus","#5ad8e6"),brush:u("--selected","rgba(255, 255, 255, 0.075)"),fontSans:u("--font-sans","system-ui, sans-serif"),fontMono:u("--font-mono","ui-monospace, monospace")}}function Ci(){let r=fw(),[u,i]=Li.useState(0);return Li.useEffect(()=>{let d=new MutationObserver(()=>i((f)=>f+1));return d.observe(document.documentElement,{attributes:!0,attributeFilter:["data-theme"]}),()=>d.disconnect()},[]),Li.useMemo(yD,[r,u])}var sT=Z(se(),1),Kr=44,$d=["turn","model","tool","subagent"],lT=6,ki=10;function bD(r,u,i,d){let f=devicePixelRatio,b=Math.floor(i*f),m=Math.floor(Kr*f),v,S;if(typeof OffscreenCanvas>"u"){let C=document.createElement("canvas");C.width=b,C.height=m,v=C,S=C.getContext("2d")}else{let C=new OffscreenCanvas(b,m);v=C,S=C.getContext("2d")}if(!S)return v;S.setTransform(f,0,0,f,0,0);let[x,h]=u.domain,L=Math.max(h-x,0.000000001),k=$d.map(()=>new Float32Array(i));for(let C of r)for(let A of C.spans){let M=$d.indexOf(A.kind);if(M===-1)continue;let N=k[M],U=Math.max(0,Math.floor((u.toU(A.start)-x)/L*i)),V=Math.min(i-1,Math.ceil((u.toU(A.end)-x)/L*i));for(let X=U;X<=V;X++)N[X]=Math.min(1,N[X]+0.34)}let w=Kr/$d.length;for(let C=0;C<$d.length;C++){let A=k[C];S.fillStyle=d.category[$d[C]];for(let M=0;M<i;M++){if(A[M]<=0)continue;S.globalAlpha=0.25+A[M]*0.75,S.fillRect(M,C*w+1,1,w-2)}S.globalAlpha=1}return v}function rT({tracks:r,scale:u,viewport:i,onViewportChange:d}){let f=Ci(),b=Ho.useRef(null),[m,v]=Ho.useState(800),S=Ho.useRef(null);Ho.useEffect(()=>{let U=b.current;if(!U)return;let V=new ResizeObserver((X)=>{v(Math.max(100,Math.floor(X[0].contentRect.width)))});return V.observe(U),()=>V.disconnect()},[]);let[x,h]=u.domain,L=Math.max(h-x,0.000000001),k=Ho.useCallback((U)=>(U-x)/L*m,[x,L,m]),w=Ho.useCallback((U)=>x+U/Math.max(m,1)*L,[x,L,m]),C=Ho.useMemo(()=>bD(r,u,m,f),[r,u,m,f]);Ho.useEffect(()=>{let U=b.current;if(!U)return;let V=U.getContext("2d");if(!V)return;let X=devicePixelRatio;V.setTransform(1,0,0,1,0,0),V.clearRect(0,0,U.width,U.height),V.drawImage(C,0,0),V.setTransform(X,0,0,X,0,0);let ie=k(i.u0),K=k(i.u1);V.fillStyle=f.brush,V.fillRect(ie,0,K-ie,Kr),V.strokeStyle=f.selection,V.strokeRect(ie+0.5,0.5,K-ie-1,Kr-1),V.fillStyle=f.selection,V.fillRect(ie,0,2,Kr),V.fillRect(K-2,0,2,Kr)},[C,i,f,k]);let A=(U)=>{let V=U.currentTarget.getBoundingClientRect(),X=U.clientX-V.left,ie=k(i.u0),K=k(i.u1),ee;if(Math.abs(X-ie)<=lT)ee="left";else if(Math.abs(X-K)<=lT)ee="right";else if(X>ie&&X<K)ee="move";else{ee="create";let j=w(X);d(jd({u0:j,u1:j+ki},x,h))}S.current={mode:ee,startX:X,startViewport:i},U.currentTarget.setPointerCapture(U.pointerId)},M=(U)=>{let V=S.current;if(!V)return;let X=U.currentTarget.getBoundingClientRect(),ie=U.clientX-X.left,K=w(ie)-w(V.startX),{u0:ee,u1:j}=V.startViewport;if(V.mode==="move")d(jd({u0:ee+K,u1:j+K},x,h));else if(V.mode==="left")d(jd({u0:Math.min(ee+K,j-ki),u1:j},x,h));else if(V.mode==="right")d(jd({u0:ee,u1:Math.max(j+K,ee+ki)},x,h));else{let te=w(V.startX),_=w(ie);d(jd({u0:Math.min(te,_),u1:Math.max(te,_,Math.min(te,_)+ki)},x,h))}},N=()=>{S.current=null};return sT.jsxDEV("canvas",{ref:b,width:Math.floor(m*devicePixelRatio),height:Math.floor(Kr*devicePixelRatio),className:"traces-minimap",style:{height:Kr},role:"slider","aria-label":"Timeline overview brush","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":Math.round((i.u0-x)/L*100),tabIndex:-1,onPointerDown:A,onPointerMove:M,onPointerUp:N},void 0,!1,void 0,this)}function jd(r,u,i){let d=Math.max(ki,r.u1-r.u0);d=Math.min(d,i-u||ki);let f=r.u0;if(f<u)f=u;if(f+d>i)f=i-d;return{u0:f,u1:f+d}}var yl=Z(ht(),1);var ot=Z(se(),1);function vD(r){let u=[];if(typeof r==="string"){if(r.trim())u.push({kind:"text",text:r});return u}if(!Array.isArray(r))return u;for(let i of r){if(!i||typeof i!=="object"||!("type"in i))continue;if((i.type==="text"||i.type==="thinking")&&"text"in i&&typeof i.text==="string")u.push({kind:String(i.type),text:i.text})}return u}function uT({span:r,track:u,onClose:i,onOpenChildTrack:d}){let[f,b]=yl.useState(null),[m,v]=yl.useState(!1),[S,x]=yl.useState(null),[h,L]=yl.useState(!1),k=yl.useRef(0);if(yl.useEffect(()=>{if(b(null),x(null),L(!1),v(!1),!r||!u||!r.entryId)return;v(!0);let U=new AbortController;return Qk(u.file,r.entryId,U.signal).then((V)=>{if(!U.signal.aborted)b(V.entry)}).catch((V)=>{if(U.signal.aborted)return;x(V instanceof Error?V:Error(String(V)))}).finally(()=>{if(!U.signal.aborted)v(!1)}),()=>U.abort()},[r,u]),yl.useEffect(()=>()=>window.clearTimeout(k.current),[]),!r)return null;let w=async()=>{try{await navigator.clipboard.writeText(JSON.stringify(f??r,null,2)),L(!0),window.clearTimeout(k.current),k.current=window.setTimeout(()=>L(!1),1500)}catch{}},A=(f&&typeof f==="object"?f:{}).message,M=A?.usage,N=[{key:"duration",label:"Duration",value:ot.jsxDEV("span",{className:"num",children:[Rt(r.end-r.start),r.unterminated&&ot.jsxDEV("span",{className:"muted",children:" · unterminated"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},{key:"start",label:"Start",value:ot.jsxDEV("span",{className:"num",children:new Date(r.start).toLocaleTimeString()},void 0,!1,void 0,this)},{key:"track",label:"Track",value:ot.jsxDEV("span",{className:"mono",children:u?.label??"-"},void 0,!1,void 0,this)}];if(r.kind==="model"){if(N.push({key:"tokens",label:"Tokens",value:ot.jsxDEV("span",{className:"num",children:B(r.tokens??0)},void 0,!1,void 0,this)},{key:"cost",label:"Cost",value:ot.jsxDEV("span",{className:"num",children:["$",(r.cost??0).toFixed(4)]},void 0,!0,void 0,this)},{key:"ttft",label:"TTFT",value:ot.jsxDEV("span",{className:"num",children:Rt(r.ttft??null)},void 0,!1,void 0,this)},{key:"model",label:"Model",value:ot.jsxDEV("span",{className:"mono",children:A?.model??r.model??"-"},void 0,!1,void 0,this)}),M)N.push({key:"split",label:"Input / output / cached",value:ot.jsxDEV("span",{className:"num",children:[B(M.input??0)," / ",B(M.output??0)," /"," ",B(M.cacheRead??0)]},void 0,!0,void 0,this)});if(A?.provider)N.push({key:"provider",label:"Provider",value:ot.jsxDEV("span",{className:"mono",children:A.provider},void 0,!1,void 0,this)});if(A?.stopReason)N.push({key:"stop",label:"Stop reason",value:ot.jsxDEV("span",{className:"mono",children:A.stopReason},void 0,!1,void 0,this)})}return ot.jsxDEV(xm,{open:!0,onClose:i,title:r.label,subtitle:ot.jsxDEV("span",{className:"row",style:{gap:6},children:ot.jsxDEV(Bt,{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:ot.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:w,"aria-label":"Copy raw JSON",title:"Copy raw JSON",children:h?ot.jsxDEV($s,{size:15},void 0,!1,void 0,this):ot.jsxDEV(Xs,{size:15},void 0,!1,void 0,this)},void 0,!1,void 0,this),children:ot.jsxDEV("div",{className:"stack traces-drawer",children:[ot.jsxDEV(_o,{items:N},void 0,!1,void 0,this),A?.errorMessage&&ot.jsxDEV("div",{className:"stack",style:{gap:6},children:[ot.jsxDEV("div",{className:"section-label tone-bad",children:"Error message"},void 0,!1,void 0,this),ot.jsxDEV("pre",{className:"code-block traces-pre",children:A.errorMessage},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.kind==="subagent"&&ot.jsxDEV("div",{className:"stack",style:{gap:8},children:[r.detail&&ot.jsxDEV(ot.Fragment,{children:[ot.jsxDEV("div",{className:"section-label",children:"Task"},void 0,!1,void 0,this),ot.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),r.childTrackId&&d&&ot.jsxDEV("div",{children:ot.jsxDEV("button",{type:"button",className:"btn","data-size":"sm",onClick:()=>d(r.childTrackId??""),children:["Open child track ",ot.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&&ot.jsxDEV("div",{className:"stack",style:{gap:6},children:[ot.jsxDEV("div",{className:"section-label",children:"Args"},void 0,!1,void 0,this),ot.jsxDEV("pre",{className:"code-block traces-pre",children:r.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this),m&&ot.jsxDEV("div",{className:"stack",children:[ot.jsxDEV(Oa,{height:80},void 0,!1,void 0,this),ot.jsxDEV(Oa,{height:160},void 0,!1,void 0,this)]},void 0,!0,void 0,this),S&&ot.jsxDEV(bi,{error:`Failed to load entry: ${S.message}`},void 0,!1,void 0,this),!m&&f!==null&&vD(A?.content).map((U,V)=>ot.jsxDEV("div",{className:"stack",style:{gap:6},children:[ot.jsxDEV("div",{className:"section-label",children:U.kind==="thinking"?"Thinking":"Text"},void 0,!1,void 0,this),ot.jsxDEV("pre",{className:"code-block traces-pre","data-scroll":"true",children:U.text},void 0,!1,void 0,this)]},`${U.kind}-${V}`,!0,void 0,this)),!m&&f!==null&&ot.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 Rn=Z(se(),1);function iT({summary:r}){let u=(i)=>r.wallMs>0?`${He(i/r.wallMs)} of wall`:void 0;return Rn.jsxDEV(la,{min:112,children:[Rn.jsxDEV(ue,{size:"sm",label:"Wall time",value:Ws(r.wallMs)},void 0,!1,void 0,this),Rn.jsxDEV(ue,{size:"sm",label:"Model time",value:Ws(r.modelMs),hint:u(r.modelMs)},void 0,!1,void 0,this),Rn.jsxDEV(ue,{size:"sm",label:"Tool time",value:Ws(r.toolMs),hint:u(r.toolMs)},void 0,!1,void 0,this),Rn.jsxDEV(ue,{size:"sm",label:"Idle",value:Ws(r.idleMs),hint:u(r.idleMs)},void 0,!1,void 0,this),Rn.jsxDEV(ue,{size:"sm",label:"Turns",value:B(r.turns)},void 0,!1,void 0,this),Rn.jsxDEV(ue,{size:"sm",label:"Requests",value:B(r.requests),hint:`${B(r.toolCalls)} tool calls`},void 0,!1,void 0,this),Rn.jsxDEV(ue,{size:"sm",label:"Agents",value:B(r.subagents)},void 0,!1,void 0,this),Rn.jsxDEV(ue,{size:"sm",label:"Tokens",value:Re(r.totalTokens)},void 0,!1,void 0,this),Rn.jsxDEV(ue,{size:"sm",label:"Cost",value:_t(r.costTotal,r.unpricedRequests)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Et=Z(ht(),1),gT=Z(sd(),1);function Nm(r,u){let i=r.length,d=[u[0],u[i-1]],f=(b,m)=>{let v=0,S=i-1;while(v<S){let x=v+S+1>>1;if(b[x]<=m)v=x;else S=x-1}return Math.min(v,i-2)};return{toU(b){if(b<=r[0])return u[0];if(b>=r[i-1])return u[i-1];let m=f(r,b),v=r[m+1]-r[m];if(v<=0)return u[m];return u[m]+(b-r[m])/v*(u[m+1]-u[m])},toT(b){if(b<=u[0])return r[0];if(b>=u[i-1])return r[i-1];let m=f(u,b),v=u[m+1]-u[m];if(v<=0)return r[m];return r[m]+(b-u[m])/v*(r[m+1]-r[m])},domain:d,gaps:[]}}function SD(r){let u=[];for(let i of r)for(let d of i.spans)u.push([d.start,d.end]);return u.sort((i,d)=>i[0]-d[0]),u}function xD(r){let{POSITIVE_INFINITY:u,NEGATIVE_INFINITY:i}=Number;for(let d of r)for(let f of d.spans){if(f.start<u)u=f.start;if(f.end>i)i=f.end}if(!Number.isFinite(u))return[0,1];return[u,Math.max(i,u+1)]}function cT(r,u,i){let d=[...new Set(r.filter((v)=>v>=u&&v<=i))].sort((v,S)=>v-S);if(d[0]!==u)d.unshift(u);if(d[d.length-1]!==i)d.push(i);if(d.length<2)return Nm([u,i],[u,i]);let b=(i-u)/(d.length-1),m=d.map((v,S)=>u+S*b);return Nm(d,m)}function LD(r,u,i){let d=SD(r),f=[];for(let[h,L]of d){let k=h-2000,w=L+2000,C=f[f.length-1];if(C&&k<=C[1]){if(w>C[1])C[1]=w}else f.push([k,w])}if(f.length===0)f.push([u,i]);f[0][0]=Math.max(f[0][0],u),f[f.length-1][1]=Math.min(Math.max(f[f.length-1][1],f[f.length-1][0]),i);let b=[],m=[],v=[],S=f[0][0];for(let h=0;h<f.length;h++){let[L,k]=f[h];if(h===0)b.push(L),m.push(S);else{let w=f[h-1][1],C=L-w;if(C>30000)S+=8000,v.push({t0:w,t1:L,uMid:S-4000});else S+=C;b.push(L),m.push(S)}S+=Math.max(0,k-L),b.push(k),m.push(S)}return{...Nm(b,m),gaps:v}}function dT(r,u,i){let[d,f]=xD(r);if(u==="turns"){let m=(r.find((v)=>v.id==="main")?.spans??[]).filter((v)=>v.kind==="turn").map((v)=>v.start);return cT(m,d,f)}if(u==="calls"){let b=[];for(let m of r)for(let v of m.spans)if(v.kind==="model"||v.kind==="tool"||v.kind==="background")b.push(v.start,v.end);return cT(b,d,f)}if(i)return LD(r,d,f);return Nm([d,f],[d,f])}var CD=90;function kD(r){let u=10**Math.floor(Math.log10(Math.max(r,1)));for(let i of[1,2,5,10])if(u*i>=r)return u*i;return u*10}function wD(r){let u=new Date(r),i=String(u.getHours()).padStart(2,"0"),d=String(u.getMinutes()).padStart(2,"0"),f=String(u.getSeconds()).padStart(2,"0");return`${i}:${d}:${f}`}function wi(r){let u=r<0?"-":"+",i=Math.abs(r),d=Math.floor(i/3600000),f=Math.floor(i%3600000/60000),b=Math.floor(i%60000/1000),m=Math.floor(i%1000),v=i%1000!==0,S=`${String(f).padStart(2,"0")}:${String(b).padStart(2,"0")}${v?".":""}${v?String(m).padStart(3,"0"):""}`;return d>0?`${u}${d}:${S}`:`${u}${S}`}function fT(r,u,i,d){let f=i-u;if(f<=0||d<=0)return[];let b=[],m=r.domain[0],v=kD(f*CD/d),S=m+Math.ceil((u-m)/v)*v,x=0;for(let h=S;h<=i&&x<200;h+=v,x++){let L=r.toT(h),k=Math.round((h-m)/v)%5===0;b.push({u:h,label:k?wD(L):wi(h-m),major:k})}return b}var It=Z(se(),1),Zl=28,$b=22,xo=18,pT=3,TD=14,mT=200,Fb=10,yT=2,ID=4,RD=56,Um=3,Vb=0.3,MD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tools"},{kind:"subagent",label:"Agents"},{kind:"background",label:"Bg"}];function AD(r,u){let i=new Map(r.map((S)=>[S.id,S])),d=new Set;for(let S of r)if(S.parentId)d.add(S.parentId);let f=(S)=>{let x=S.parentId;while(x){if(u.has(x))return!0;x=i.get(x)?.parentId??null}return!1},b=[],m=[],v=Zl+6;for(let S of r){if(f(S))continue;let x=S.id==="main"?0:S.id.split("/").length,h={turn:[],model:[],tool:[],subagent:[],background:[]};for(let k of S.spans)h[k.kind].push(k);let L={track:S,depth:x,hasChildren:d.has(S.id),headerY:v,lanes:[],turnSpans:h.turn,y0:v,y1:v};v+=$b;for(let{kind:k,label:w}of MD){let C=h[k],A=k==="turn"||k==="model"||k==="tool";if(C.length===0&&!(S.id==="main"&&A))continue;let M={track:S,kind:k,label:w,y:v,spans:C};L.lanes.push(M),m.push(M),v+=xo+pT}L.y1=v-pT,b.push(L),v+=TD}return{blocks:b,lanes:m,totalHeight:Math.max(v,Zl+48)}}function DD(r,u){return r.lanes.map((i)=>{let d=i.spans.length,f=new Float64Array(d),b=new Float64Array(d),m=new Float64Array(d),v=Number.NEGATIVE_INFINITY;for(let S=0;S<d;S++){let x=i.spans[S];f[S]=u.toU(x.start),b[S]=u.toU(x.end),v=Math.max(v,b[S]),m[S]=v}return{startU:f,endU:b,maxEndU:m}})}function ED(r,u){let i=0,d=r.length;while(i<d){let f=i+d>>>1;if(r[f]<u)i=f+1;else d=f}return i}function OD(r,u){if(r===null||u===null)return r===u;if(r.kind==="span")return u.kind==="span"&&r.span===u.span;return u.kind==="marker"&&r.marker===u.marker}function bT({tracks:r,scale:u,viewport:i,onViewportChange:d,selected:f,onSelect:b,matchIds:m,collapsed:v,onToggleCollapse:S,traceStart:x}){let h=Ci(),L=Et.useRef(null),k=Et.useRef(null),w=Et.useRef(null),[C,A]=Et.useState(800),[M,N]=Et.useState(null),U=Et.useRef(null);U.current=M;let V=Et.useRef({clientX:0,clientY:0}),X=Et.useRef([]),ie=Et.useRef(null),K=Et.useRef(null),ee=Et.useRef(i);ee.current=i;let j=Et.useMemo(()=>AD(r,v),[r,v]),te=Et.useMemo(()=>DD(j,u),[j,u]);Et.useEffect(()=>{let ae=L.current;if(!ae)return;let ye=new ResizeObserver((F)=>{let Pe=Math.max(100,Math.floor(F[0].contentRect.width-mT));A(Pe)});return ye.observe(ae),()=>ye.disconnect()},[]);let _=Et.useCallback((ae,ye)=>{let[F,Pe]=u.domain,Ye=Math.max(Fb,ye-ae);Ye=Math.min(Ye,Pe-F||Fb);let Ue=ae;if(Ue<F)Ue=F;if(Ue+Ye>Pe)Ue=Pe-Ye;return{u0:Ue,u1:Ue+Ye}},[u]),ce=Et.useCallback((ae)=>{ee.current=ae,d(ae)},[d]),ve=Et.useCallback((ae,ye)=>{let F=C,{u0:Pe,u1:Ye}=ee.current,Ue=Ye-Pe,ct=ye===null?0.5:Math.min(1,Math.max(0,ye/F)),Je=Pe+Ue*ct,dt=Ue*ae;ce(_(Je-dt*ct,Je+dt*(1-ct)))},[C,ce,_]),Le=Et.useCallback((ae)=>{let{u0:ye,u1:F}=ee.current;ce(_(ye+ae,F+ae))},[ce,_]),Be=Et.useCallback((ae)=>{let ye=u.toU(ae.start),F=u.toU(ae.end),Pe=Math.max((F-ye)*0.1,Fb/2);ce(_(ye-Pe,F+Pe))},[u,ce,_]);Et.useEffect(()=>{let ae=k.current;if(!ae)return;let ye=(F)=>{F.preventDefault();let Pe=ae.getBoundingClientRect(),Ye=F.clientX-Pe.left;K.current=Ye,N(null);let Ue=ae.clientWidth||1,ct=()=>ee.current.u1-ee.current.u0;if(F.shiftKey){let Je=Math.abs(F.deltaY)>=Math.abs(F.deltaX)?F.deltaY:F.deltaX;Le(Je/Ue*ct());return}if(F.deltaX!==0)Le(F.deltaX/Ue*ct());if(F.deltaY!==0)ve(1.0015**F.deltaY,Ye)};return ae.addEventListener("wheel",ye,{passive:!1}),()=>ae.removeEventListener("wheel",ye)},[ve,Le]);let oe=Et.useCallback((ae,ye)=>{let F=k.current;if(!F)return null;let Pe=F.getBoundingClientRect(),Ye=ae-Pe.left,Ue=ye-Pe.top,ct=X.current;for(let Je=ct.length-1;Je>=0;Je--){let dt=ct[Je];if(Ye>=dt.x&&Ye<=dt.x+dt.w&&Ue>=dt.y&&Ue<=dt.y+dt.h)return dt}return null},[]),pe=Et.useCallback(()=>{let ae=w.current;if(!ae)return;let{clientX:ye,clientY:F}=V.current,Pe=Math.min(ye+14,window.innerWidth-320),Ye=F+16>window.innerHeight-140?F-120:F+16;ae.style.transform=`translate(${Pe}px, ${Ye}px)`},[]),ke=(ae)=>{ae.currentTarget.setPointerCapture(ae.pointerId),ie.current={pointerId:ae.pointerId,lastX:ae.clientX,moved:!1},ae.currentTarget.focus()},Xe=(ae)=>{let ye=ae.currentTarget.getBoundingClientRect();K.current=ae.clientX-ye.left;let F=ie.current;if(F&&F.pointerId===ae.pointerId){let Ye=ae.clientX-F.lastX;if(Math.abs(Ye)>0){if(Math.abs(Ye)>2)F.moved=!0;F.lastX=ae.clientX;let Ue=ee.current.u1-ee.current.u0;Le(-Ye/(C||1)*Ue)}N(null);return}V.current={clientX:ae.clientX,clientY:ae.clientY};let Pe=oe(ae.clientX,ae.clientY);if(OD(Pe,U.current))pe();else N(Pe)},vt=(ae)=>{let ye=ie.current;if(ie.current=null,ye?.moved)return;let F=oe(ae.clientX,ae.clientY);if(F?.kind==="span")b(F.span.id);else b(null)},W=(ae)=>{let ye=oe(ae.clientX,ae.clientY);if(ye?.kind==="span")Be(ye.span)},Ne=Et.useCallback((ae)=>{let ye=f?.span.id;if(!ye)return;for(let F of j.lanes){let Pe=F.spans.findIndex((ct)=>ct.id===ye);if(Pe===-1)continue;let Ye=F.spans[Pe+ae];if(!Ye)return;b(Ye.id);let Ue=u.toU(Ye.start);if(Ue<i.u0||Ue>i.u1){let ct=i.u1-i.u0;d(_(Ue-ct/2,Ue+ct/2))}return}},[f,j,b,u,i,d,_]),Lt=(ae)=>{let ye=i.u1-i.u0;switch(ae.key){case"w":case"W":ve(0.7692307692307692,K.current);break;case"s":case"S":ve(1.3,K.current);break;case"a":case"A":Le(-ye*0.2);break;case"d":case"D":Le(ye*0.2);break;case"0":d({u0:u.domain[0],u1:u.domain[1]});break;case"f":case"F":if(f)Be(f.span);break;case"Escape":b(null);break;case",":Ne(-1);break;case".":Ne(1);break;default:return}ae.preventDefault()};Et.useEffect(()=>{k.current?.focus({preventScroll:!0})},[]),Et.useEffect(()=>{let ae=k.current;if(!ae)return;let ye=requestAnimationFrame(()=>{X.current=qD(ae,j,te,u,i,h,C,m)});return()=>cancelAnimationFrame(ye)},[j,te,u,i,h,C,m]);let ut=M?.kind==="span"?hT(M,j,u,i,C):null,it=f?hT(f,j,u,i,C):null;Et.useLayoutEffect(()=>{if(M)pe()},[M,pe]);let Me=M?BD(M,x,w):null,ge=Math.floor(C*devicePixelRatio),G=Math.floor(j.totalHeight*devicePixelRatio),Ie={width:C,height:j.totalHeight};return It.jsxDEV("div",{ref:L,className:"traces-timeline",children:[It.jsxDEV("div",{style:{width:mT,flexShrink:0,position:"relative",height:j.totalHeight},children:j.blocks.map((ae)=>It.jsxDEV("div",{children:[It.jsxDEV("div",{style:{position:"absolute",top:ae.headerY,left:4+ae.depth*14,right:8,height:$b,display:"flex",alignItems:"center",gap:5,minWidth:0},children:[ae.hasChildren?It.jsxDEV("button",{type:"button",onClick:()=>S(ae.track.id),"aria-label":v.has(ae.track.id)?`Expand ${ae.track.label}`:`Collapse ${ae.track.label}`,className:"traces-chevron",children:v.has(ae.track.id)?It.jsxDEV(xn,{size:12},void 0,!1,void 0,this):It.jsxDEV(js,{size:12},void 0,!1,void 0,this)},void 0,!1,void 0,this):It.jsxDEV("span",{style:{width:12,flexShrink:0}},void 0,!1,void 0,this),It.jsxDEV("span",{className:"traces-gutter-track truncate",style:{minWidth:0},children:ae.track.label},void 0,!1,void 0,this),ae.track.model&&It.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((ye)=>It.jsxDEV("div",{className:"traces-gutter-lane",style:{top:ye.y,left:20+ae.depth*14,lineHeight:`${xo}px`},children:ye.label},`${ye.track.id}:${ye.kind}`,!1,void 0,this))]},ae.track.id,!0,void 0,this))},void 0,!1,void 0,this),It.jsxDEV("div",{className:"traces-canvas-stack",style:Ie,children:[It.jsxDEV("canvas",{ref:k,className:"traces-canvas",width:ge,height:G,style:Ie,tabIndex:0,role:"application","aria-label":"Trace timeline. W and S zoom, A and D pan, 0 fits all, F focuses the selection.",onPointerDown:ke,onPointerMove:Xe,onPointerUp:vt,onPointerLeave:()=>{K.current=null,N(null)},onDoubleClick:W,onKeyDown:Lt},void 0,!1,void 0,this),ut&&M?.kind==="span"&&It.jsxDEV("div",{className:"traces-canvas-hover","aria-hidden":"true",style:{left:ut.x,top:ut.y,width:ut.w,height:xo,borderRadius:Um,opacity:m===null||m.has(M.span.id)?1:Vb}},void 0,!1,void 0,this),it&&f&&It.jsxDEV("div",{className:"traces-canvas-selection","aria-hidden":"true",style:{left:it.x-1,top:it.y-1,width:it.w+2,height:xo+2,borderRadius:Um,borderColor:h.selection,opacity:m===null||m.has(f.span.id)?1:Vb}},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Me&&gT.createPortal(Me,document.body)]},void 0,!0,void 0,this)}function Gb(r,u,i,d,f){if(r.beginPath(),d>=Um*2+1)r.roundRect(u,i,d,f,Um);else r.rect(u,i,d,f)}function qD(r,u,i,d,f,b,m,v){let S=[],x=r.getContext("2d");if(!x)return S;let h=u.totalHeight,L=devicePixelRatio;x.setTransform(L,0,0,L,0,0),x.clearRect(0,0,m,h);let{u0:k,u1:w}=f,C=Math.max(w-k,0.000000001),A=(M)=>(M-k)/C*m;for(let M of u.blocks){let N=M.turnSpans;for(let U=0;U<N.length;U++){let V=A(d.toU(N[U].start)),X=U+1<N.length?A(d.toU(N[U+1].start)):m;if(X<0||V>m)continue;if(U%2===1)x.fillStyle=b.turnBand,x.fillRect(Math.max(0,V),M.y0,Math.min(m,X)-Math.max(0,V),M.y1-M.y0);if(V>=0&&V<=m)x.strokeStyle=b.grid,x.beginPath(),x.moveTo(Math.round(V)+0.5,M.y0),x.lineTo(Math.round(V)+0.5,M.y1),x.stroke()}}x.font=`9px ${b.fontMono}`;for(let M of d.gaps){let N=A(M.uMid);if(N<-24||N>m+24)continue;x.save(),x.strokeStyle=b.grid,x.setLineDash([2,4]),x.beginPath(),x.moveTo(N,Zl),x.lineTo(N,h),x.stroke(),x.restore(),x.fillStyle=b.tick,x.textAlign="center",x.fillText(`⋯ ${Rt(M.t1-M.t0)}`,N,Zl-4),x.textAlign="left"}for(let M of fT(d,k,w,m)){let N=Math.round(A(M.u))+0.5;if(x.strokeStyle=b.grid,x.beginPath(),M.major)x.moveTo(N,4),x.lineTo(N,h);else x.moveTo(N,Zl-8),x.lineTo(N,Zl);if(x.stroke(),x.fillStyle=b.tick,M.major)x.fillText(M.label,N+4,11);else x.globalAlpha=0.75,x.fillText(M.label,N+3,Zl-10),x.globalAlpha=1}x.strokeStyle=b.grid,x.beginPath(),x.moveTo(0,Zl+0.5),x.lineTo(m,Zl+0.5),x.stroke(),x.font=`10px ${b.fontSans}`;for(let M=0;M<u.lanes.length;M++){let N=u.lanes[M],{startU:U,endU:V,maxEndU:X}=i[M],ie=N.kind==="turn";for(let K=ED(X,k);K<N.spans.length;K++){let ee=U[K];if(ee>w)break;let j=V[K];if(j<k)continue;let te=N.spans[K],_=A(ee),ce=Math.max(yT,A(j)-_),ve=N.y,Le=v===null||v.has(te.id)?1:Vb,Be=b.category[te.kind];if(x.globalAlpha=Le,ie)x.fillStyle=Be,x.globalAlpha=Le*0.23,Gb(x,_,ve,ce,xo),x.fill(),x.globalAlpha=Le,x.fillStyle=Be,x.fillRect(_,ve,2,xo);else x.fillStyle=Be,Gb(x,_,ve,ce,xo),x.fill();if(te.isError)x.fillStyle=b.errorSoft,Gb(x,_,ve,ce,xo),x.fill(),x.fillStyle=b.error,x.fillRect(_,ve,2,xo);if(te.kind==="model"&&typeof te.ttft==="number"&&te.ttft>0&&ce>20){let pe=A(d.toU(te.start+te.ttft));if(pe>_+1&&pe<_+ce-1)x.fillStyle="rgba(0,0,0,0.5)",x.fillRect(pe,ve+3,1,xo-6)}if(te.unterminated)x.save(),x.strokeStyle=b.tick,x.setLineDash([2,2]),x.beginPath(),x.moveTo(_+ce-0.5,ve),x.lineTo(_+ce-0.5,ve+xo),x.stroke(),x.restore();if(ce>RD)x.save(),x.beginPath(),x.rect(_+3,ve,ce-6,xo),x.clip(),x.fillStyle=ie?b.tick:b.spanText,x.fillText(te.label,_+5,ve+xo-5),x.restore();x.globalAlpha=1;let oe=Math.max(ce,ID);S.push({kind:"span",x:_-(oe-ce)/2,y:ve,w:oe,h:xo,span:te,track:N.track})}}for(let M of u.blocks)for(let N of M.track.markers){let U=A(d.toU(N.time));if(U<-6||U>m+6)continue;let V=M.headerY+$b/2;x.fillStyle=b.marker,x.beginPath(),x.moveTo(U,V-4),x.lineTo(U+4,V),x.lineTo(U,V+4),x.lineTo(U-4,V),x.closePath(),x.fill(),S.push({kind:"marker",x:U-5,y:V-5,w:10,h:10,marker:N,track:M.track})}return S}function hT({span:r,track:u},i,d,f,b){let{u0:m,u1:v}=f,S=d.toU(r.start),x=d.toU(r.end);if(S>v||x<m)return null;let h=i.lanes.find((C)=>C.track===u&&C.kind===r.kind);if(!h)return null;let L=Math.max(v-m,0.000000001),k=(S-m)/L*b,w=(x-m)/L*b;return{x:k,y:h.y,w:Math.max(yT,w-k)}}function BD(r,u,i){let d={left:0,top:0};if(r.kind==="marker"){let{marker:b}=r;return It.jsxDEV("div",{ref:i,className:"traces-tooltip",style:d,children:[It.jsxDEV("div",{className:"traces-tooltip-title",children:b.label},void 0,!1,void 0,this),It.jsxDEV("div",{className:"muted num",children:[new Date(b.time).toLocaleTimeString()," (",wi(b.time-u),")"]},void 0,!0,void 0,this)]},void 0,!0,void 0,this)}let{span:f}=r;return It.jsxDEV("div",{ref:i,className:"traces-tooltip",style:d,children:[It.jsxDEV("div",{className:"traces-tooltip-title truncate",children:f.label},void 0,!1,void 0,this),It.jsxDEV("div",{className:"muted num",children:[Rt(f.end-f.start)," · ",new Date(f.start).toLocaleTimeString()," (",wi(f.start-u),")",f.unterminated?" · unterminated":""]},void 0,!0,void 0,this),f.kind==="model"&&It.jsxDEV("div",{className:"muted num",children:[f.tokens!==void 0&&It.jsxDEV(It.Fragment,{children:[B(f.tokens)," tok"]},void 0,!0,void 0,this),f.cost!==void 0&&It.jsxDEV(It.Fragment,{children:[" · $",f.cost.toFixed(4)]},void 0,!0,void 0,this),f.ttft!==void 0&&It.jsxDEV(It.Fragment,{children:[" · TTFT ",Rt(f.ttft)]},void 0,!0,void 0,this),f.isError&&It.jsxDEV(It.Fragment,{children:" · error"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),f.kind==="subagent"&&f.model&&It.jsxDEV("div",{className:"muted num",children:f.model},void 0,!1,void 0,this),f.detail&&It.jsxDEV("div",{className:"traces-tooltip-detail",children:f.detail},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Mn=Z(ht(),1);var Fa=Z(se(),1),Ti=28,vT=20,ND=340;function UD(r){let u=[];for(let i of r){let d=i.id==="main"?0:i.id.split("/").length;for(let f of i.spans)u.push({key:f.id,time:f.start,span:f,track:i,depth:d});for(let f=0;f<i.markers.length;f++){let b=i.markers[f];u.push({key:`${i.id}:marker:${f}`,time:b.time,marker:b,track:i,depth:d})}}return u.sort((i,d)=>i.time-d.time),u}var ST=Mn.memo(function({tracks:u,selection:i,onSelect:d,search:f,matchIds:b,traceStart:m}){let v=Ci(),S=Mn.useRef(null),[x,h]=Mn.useState(0),L=Mn.useMemo(()=>UD(u),[u]),k=Mn.useMemo(()=>{if(!b)return L;let M=f.trim().toLowerCase();return L.filter((N)=>N.span?b.has(N.span.id):(N.marker?.label??"").toLowerCase().includes(M))},[L,f,b]);Mn.useEffect(()=>{if(!i)return;let M=S.current;if(!M)return;let N=k.findIndex((V)=>V.span?.id===i);if(N===-1)return;let U=N*Ti;if(U<M.scrollTop||U+Ti>M.scrollTop+M.clientHeight)M.scrollTop=Math.max(0,U-M.clientHeight/2)},[i,k]);let w=Math.max(0,Math.floor(x/Ti)-vT),C=Math.min(k.length,Math.ceil((x+ND)/Ti)+vT),A=k.slice(w,C);return Fa.jsxDEV("div",{ref:S,onScroll:(M)=>h(M.currentTarget.scrollTop),className:"traces-list",children:[Fa.jsxDEV("div",{style:{height:k.length*Ti,position:"relative"},children:Fa.jsxDEV("div",{style:{position:"absolute",top:w*Ti,left:0,right:0},children:A.map((M)=>{let N=M.span,U=N!==void 0&&N.id===i,V=M.span?v.category[M.span.kind]:v.marker,X=M.span?.label??M.marker?.label??"",ie=M.span?.detail,K=M.span?Rt(M.span.end-M.span.start):"",ee=M.span?.kind??M.marker?.kind??"",j=Fa.jsxDEV(Fa.Fragment,{children:[Fa.jsxDEV("span",{className:"traces-kind",style:{"--traces-kind-color":V},children:ee},void 0,!1,void 0,this),M.depth>0&&Fa.jsxDEV("span",{className:"traces-row-track mono truncate",title:M.track.label,children:M.track.id},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-label truncate",children:X},void 0,!1,void 0,this),ie&&Fa.jsxDEV("span",{className:"traces-row-detail truncate",children:ie},void 0,!1,void 0,this),Fa.jsxDEV("span",{className:"traces-row-meta num",children:[M.span?.isError&&Fa.jsxDEV("span",{className:"tone-bad",children:"error"},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:K},void 0,!1,void 0,this),Fa.jsxDEV("span",{children:wi(M.time-m)},void 0,!1,void 0,this)]},void 0,!0,void 0,this)]},void 0,!0,void 0,this),te={paddingLeft:12+M.depth*12};return N?Fa.jsxDEV("button",{type:"button",onClick:()=>d(N.id),className:"traces-row","data-selected":U?"true":"false",style:te,children:j},M.key,!1,void 0,this):Fa.jsxDEV("div",{className:"traces-row","data-static":"true",style:te,children:j},M.key,!1,void 0,this)})},void 0,!1,void 0,this)},void 0,!1,void 0,this),k.length===0&&Fa.jsxDEV(Ct,{title:"No matching events"},void 0,!1,void 0,this)]},void 0,!0,void 0,this)});var Ke=Z(se(),1),zD=[{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"}],PD=[{kind:"turn",label:"Input"},{kind:"model",label:"Model"},{kind:"tool",label:"Tool"},{kind:"subagent",label:"Agent"},{kind:"background",label:"Background"}];function xT({file:r,active:u,onBack:i}){let d=Ht(["trace",r],({signal:Me},ge)=>Yk(r,Me,ge),{pollMs:15000,enabled:u}),f=d.stale?null:d.data,[b,m]=At.useState("time"),[v,S]=At.useState(!0),[x,h]=At.useState(null),[L,k]=At.useState(!1),[w,C]=At.useState(""),[A,M]=At.useState(0),[N,U]=At.useState(new Set),[V,X]=At.useState(null),ie=At.useMemo(()=>f?.tracks??[],[f]),K=At.useMemo(()=>dT(ie,b,v),[ie,b,v]),ee=At.useRef(K),j=At.useRef(null);At.useEffect(()=>{if(!f)return;if(j.current===f.file)return;j.current=f.file,h(null),C(""),X(null);let Me=new Set;for(let ge of f.tracks)if((ge.id==="main"?0:ge.id.split("/").length)>=1)Me.add(ge.id);U(Me)},[f]),At.useEffect(()=>{let Me=ee.current;ee.current=K,X((ge)=>{if(!ge)return ge;let G=Me.toT(ge.u0),Ie=Me.toT(ge.u1),ae=K.toU(G),ye=K.toU(Ie);return ye-ae>0?{u0:ae,u1:ye}:null})},[K]);let te=At.useMemo(()=>V??{u0:K.domain[0],u1:K.domain[1]},[V,K]),_=At.useMemo(()=>{let Me=[];for(let ge of ie)for(let G of ge.spans)Me.push({span:G,track:ge});return Me.sort((ge,G)=>ge.span.start-G.span.start),Me},[ie]),ce=At.useMemo(()=>{let Me=w.trim().toLowerCase();if(!Me)return[];return _.filter(({span:ge})=>`${ge.label} ${ge.detail??""}`.toLowerCase().includes(Me))},[_,w]),ve=At.useMemo(()=>w.trim()?new Set(ce.map(({span:Me})=>Me.id)):null,[ce,w]),Le=At.useCallback((Me)=>{let ge=K.toU(Me.start),G=K.toU(Me.end);X((Ie)=>{let ae=Ie??{u0:K.domain[0],u1:K.domain[1]};if(ge>=ae.u0&&G<=ae.u1)return Ie;let ye=ae.u1-ae.u0,F=(ge+G)/2,[Pe,Ye]=K.domain,Ue=F-ye/2;if(Ue<Pe)Ue=Pe;if(Ue+ye>Ye)Ue=Math.max(Pe,Ye-ye);return{u0:Ue,u1:Ue+ye}})},[K]),Be=At.useCallback((Me)=>{h(Me);let ge=_.find(({span:G})=>G.id===Me);if(ge)Le(ge.span)},[_,Le]),oe=At.useCallback((Me)=>{h(Me),k(Me!==null)},[]),pe=At.useCallback((Me)=>{if(ce.length===0)return;let ge=((A+Me)%ce.length+ce.length)%ce.length;M(ge),Be(ce[ge].span.id)},[ce,A,Be]),ke=At.useCallback((Me)=>{U((ge)=>{let G=new Set(ge);if(G.has(Me))G.delete(Me);else G.add(Me);return G})},[]),Xe=At.useMemo(()=>{if(!x)return null;return _.find(({span:Me})=>Me.id===x)??null},[x,_]),vt=At.useCallback((Me)=>{let ge=ie.find((Ie)=>Ie.id===Me),G=ge?.spans[0];if(U((Ie)=>{let ae=new Set(Ie),ye=ge;while(ye?.parentId)ae.delete(ye.parentId),ye=ie.find((F)=>F.id===ye?.parentId);return ae}),G)Be(G.id)},[ie,Be]),W=At.useCallback((Me)=>{if(!Me){U(new Set);return}let ge=new Set;for(let G of ie)if(G.id!=="main")ge.add(G.id);U(ge)},[ie]),Ne=At.useCallback((Me)=>{Be(Me),k(!0)},[Be]),Lt=At.useCallback(()=>k(!1),[]),ut=f?.startedAt??0,it={...d,data:f};return Ke.jsxDEV("div",{className:"stack traces-view",children:[Ke.jsxDEV("div",{children:Ke.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:i,children:[Ke.jsxDEV(fd,{size:14,"aria-hidden":"true"},void 0,!1,void 0,this),"Sessions"]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV(na,{title:Ke.jsxDEV("span",{className:"traces-title truncate",children:f?.title??r.split("/").pop()},void 0,!1,void 0,this),description:f?.cwd?Ke.jsxDEV("span",{className:"mono",children:f.cwd},void 0,!1,void 0,this):void 0,actions:Ke.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-icon":"true",onClick:d.refetch,"aria-label":"Refresh trace",title:"Refresh trace",children:Ke.jsxDEV($r,{size:14,className:d.refreshing?"traces-spin":void 0},void 0,!1,void 0,this)},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV(Fe,{query:it,skeleton:Ke.jsxDEV(Nt,{height:420},void 0,!1,void 0,this),children:(Me)=>Ke.jsxDEV(Ke.Fragment,{children:[Ke.jsxDEV(iT,{summary:Me.summary},void 0,!1,void 0,this),Ke.jsxDEV(je,{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:Ke.jsxDEV(Ke.Fragment,{children:[Ke.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>W(!1),children:"Expand all"},void 0,!1,void 0,this),Ke.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm",onClick:()=>W(!0),children:"Collapse all"},void 0,!1,void 0,this)]},void 0,!0,void 0,this),children:Ke.jsxDEV("div",{className:"stack",children:[Ke.jsxDEV("div",{className:"traces-toolbar",children:[Ke.jsxDEV(Pa,{options:zD,value:b,onChange:m,size:"sm","aria-label":"Axis mode"},void 0,!1,void 0,this),b==="time"&&Ke.jsxDEV("label",{className:"traces-check",children:[Ke.jsxDEV("input",{type:"checkbox",checked:v,onChange:(ge)=>S(ge.target.checked)},void 0,!1,void 0,this),"Compress idle"]},void 0,!0,void 0,this),Ke.jsxDEV("div",{className:"traces-search",children:[Ke.jsxDEV(cl,{value:w,onChange:(ge)=>{C(ge),M(0)},placeholder:"Search spans…",width:200},void 0,!1,void 0,this),w.trim()&&Ke.jsxDEV(Ke.Fragment,{children:[Ke.jsxDEV("span",{className:"num muted traces-match-count",children:ce.length===0?"0":`${A%Math.max(ce.length,1)+1}/${ce.length}`},void 0,!1,void 0,this),Ke.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>pe(-1),"aria-label":"Previous match",disabled:ce.length===0,children:Ke.jsxDEV(gd,{size:14},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV("button",{type:"button",className:"btn","data-variant":"ghost","data-size":"sm","data-icon":"true",onClick:()=>pe(1),"aria-label":"Next match",disabled:ce.length===0,children:Ke.jsxDEV(xn,{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),Ke.jsxDEV("div",{className:"traces-legend",children:PD.map((ge)=>Ke.jsxDEV("span",{className:"traces-legend-item",children:[Ke.jsxDEV("span",{className:"swatch",style:{background:`var(${lu[ge.kind]})`}},void 0,!1,void 0,this),ge.label]},ge.kind,!0,void 0,this))},void 0,!1,void 0,this)]},void 0,!0,void 0,this),Ke.jsxDEV(rT,{tracks:ie,scale:K,viewport:te,onViewportChange:X},void 0,!1,void 0,this),Ke.jsxDEV(bT,{tracks:ie,scale:K,viewport:te,onViewportChange:X,selected:Xe,onSelect:oe,matchIds:ve,collapsed:N,onToggleCollapse:ke,traceStart:ut},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV(je,{index:2,title:"Transcript",description:"Every span and marker in order; click to inspect",flush:!0,children:Ke.jsxDEV(ST,{tracks:ie,selection:x,onSelect:Ne,search:w,matchIds:ve,traceStart:ut},void 0,!1,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV(nT,{toolStats:Me.summary.toolStats,index:3},void 0,!1,void 0,this)]},void 0,!0,void 0,this)},void 0,!1,void 0,this),Ke.jsxDEV(uT,{span:L?Xe?.span??null:null,track:Xe?.track??null,onClose:Lt,onOpenChildTrack:vt},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var Jt=Z(se(),1),LT=200;function _D({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 CT({active:r,session:u,onOpenSession:i}){let[d,f]=Ii.useState(""),b=Ht(["sessions",LT],({signal:h})=>Xk(LT,void 0,h),{pollMs:30000,enabled:r&&u===null}),m=Ii.useMemo(()=>{let h=b.data??[],L=d.trim().toLowerCase();if(!L)return h;return h.filter((k)=>(k.title??"").toLowerCase().includes(L)||k.folder.toLowerCase().includes(L)||k.models.some((w)=>w.toLowerCase().includes(L)))},[b.data,d]),v=Ii.useMemo(()=>Math.max(0,...m.map((h)=>h.costTotal)),[m]),S=Ii.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(_D,{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:da(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:B(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:B(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:B(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:Re(h.totalTokens)},void 0,!1,void 0,this),sort:(h)=>h.totalTokens},{key:"cost",header:"Cost",align:"right",width:150,render:(h)=>Jt.jsxDEV(fa,{value:h.costTotal,max:v,display:_t(h.costTotal,h.unpricedRequests)},void 0,!1,void 0,this),sort:(h)=>h.costTotal}],[v]);if(u!==null)return Jt.jsxDEV(xT,{file:u,active:r,onBack:()=>i(null)},void 0,!1,void 0,this);let x=b.data?.length??0;return Jt.jsxDEV("div",{className:"stack traces-page",children:[Jt.jsxDEV(na,{title:"Traces",description:"Recent sessions with subagent activity folded in. Open one to inspect its timeline."},void 0,!1,void 0,this),Jt.jsxDEV(je,{title:"Sessions",description:b.data?d.trim()?`${B(m.length)} of ${B(x)} most recent`:`${B(x)} most recent`:void 0,actions:Jt.jsxDEV(cl,{value:d,onChange:f,placeholder:"Filter by title, project, model…",width:260},void 0,!1,void 0,this),flush:!0,index:0,stale:b.stale,children:Jt.jsxDEV(Fe,{query:b,skeleton:Jt.jsxDEV(ia,{rows:10},void 0,!1,void 0,this),isEmpty:(h)=>h.length===0,empty:Jt.jsxDEV(Ct,{title:"No sessions found",hint:"Run a sync to index recent activity."},void 0,!1,void 0,this),children:()=>Jt.jsxDEV($t,{columns:S,rows:m,rowKey:(h)=>h.file,onRowClick:(h)=>i(h.file),initialSort:{key:"started",dir:"desc"},limit:50,empty:Jt.jsxDEV(Ct,{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 Ra=Z(se(),1);function jb(){return Ra.jsxDEV(tw,{children:Ra.jsxDEV(HD,{},void 0,!1,void 0,this)},void 0,!1,void 0,this)}function HD(){let{section:r,setSection:u,range:i,setRange:d,session:f,setSession:b}=yw(),[m,v]=Ri.useState(null),S=Ri.useCallback(()=>v(null),[]),x=Ri.useRef(new Set);x.current.add(r);let h=(L)=>{let k=L===r;switch(L){case"overview":return Ra.jsxDEV(Xw,{active:k,range:i,onRequestClick:v},void 0,!1,void 0,this);case"requests":return Ra.jsxDEV(tT,{active:k,range:i,onRequestClick:v},void 0,!1,void 0,this);case"errors":return Ra.jsxDEV(Uw,{active:k,range:i,onRequestClick:v},void 0,!1,void 0,this);case"traces":return Ra.jsxDEV(CT,{active:k,session:f,onOpenSession:b},void 0,!1,void 0,this);case"models":return Ra.jsxDEV(Gw,{active:k,range:i},void 0,!1,void 0,this);case"providers":return Ra.jsxDEV(Jw,{active:k,range:i},void 0,!1,void 0,this);case"costs":return Ra.jsxDEV(Bw,{active:k,range:i},void 0,!1,void 0,this);case"tools":return Ra.jsxDEV(oT,{active:k,range:i},void 0,!1,void 0,this);case"frustration":return Ra.jsxDEV(Pw,{active:k,range:i},void 0,!1,void 0,this);case"projects":return Ra.jsxDEV(Qw,{active:k,range:i},void 0,!1,void 0,this);case"gain":return Ra.jsxDEV(Hw,{active:k,range:i},void 0,!1,void 0,this)}};return Ra.jsxDEV(Ra.Fragment,{children:[Ra.jsxDEV(gw,{section:r,onSectionChange:u,range:i,onRangeChange:d,children:[...x.current].map((L)=>Ra.jsxDEV("div",{hidden:L!==r,children:h(L)},L,!1,void 0,this))},void 0,!1,void 0,this),Ra.jsxDEV(eT,{id:m,onClose:S},void 0,!1,void 0,this)]},void 0,!0,void 0,this)}var TT=Z(se(),1),wT=document.getElementById("root");if(!wT)throw Error("missing #root");kT.createRoot(wT).render(TT.jsxDEV(jb,{},void 0,!1,void 0,this));
|