PageSourceSearch

https://metastatus.com/assets/index-DOLHsQIH.js

js metastatus.com collected 2026-10-02 04:05:47 UTC 618,553 bytes, 147 lines download raw bytes

vendor: 4,498 bytes, lines 1-17
1(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const l of document.querySelectorAll('link[rel="modulepreload"]'))s(l);new MutationObserver(l=>{for(const r of l)if(r.type==="childList")for(const c of r.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function i(l){const r={};return l.integrity&&(r.integrity=l.integrity),l.referrerPolicy&&(r.referrerPolicy=l.referrerPolicy),l.crossOrigin==="use-credentials"?r.credentials="include":l.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(l){if(l.ep)return;l.ep=!0;const r=i(l);fetch(l.href,r)}})();function Ab(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var dd={exports:{}},Ml={};/**
2 * @license React
3 * react-jsx-runtime.production.js
4 *
5 * Copyright (c) Meta Platforms, Inc. and affiliates.
6 *
7 * This source code is licensed under the MIT license found in the
8 * LICENSE file in the root directory of this source tree.
9 */var Xx;function YS(){if(Xx)return Ml;Xx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function i(s,l,r){var c=null;if(r!==void 0&&(c=""+r),l.key!==void 0&&(c=""+l.key),"key"in l){r={};for(var f in l)f!=="key"&&(r[f]=l[f])}else r=l;return l=r.ref,{$$typeof:e,type:s,key:c,ref:l!==void 0?l:null,props:r}}return Ml.Fragment=t,Ml.jsx=i,Ml.jsxs=i,Ml}var Kx;function GS(){return Kx||(Kx=1,dd.exports=YS()),dd.exports}var b=GS(),hd={exports:{}},vt={};/**
10 * @license React
11 * react.production.js
12 *
13 * Copyright (c) Meta Platforms, Inc. and affiliates.
14 *
15 * This source code is licensed under the MIT license found in the
16 * LICENSE file in the root directory of this source tree.
17 */var Zx;function WS(){if(Zx)return vt;Zx=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),l=Symbol.for("react.profiler"),r=Symbol.for("react.consumer"),c=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),d=Symbol.for("react.suspense"),h=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),x=Symbol.iterator;function y(O){return O===null||typeof O!="object"?null:(O=x&&O[x]||O["@@iterator"],typeof O=="function"?O:null)}var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,S={};function T(O,X,it){this.props=O,this.context=X,this.refs=S,this.updater=it||v}T.prototype.isReactComponent={},T.prototype.setState=function(O,X){if(typeof O!="object"&&typeof O!="function"&&O!=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,O,X,"setState")},T.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};function w(){}w.prototype=T.prototype;function M(O,X,it){this.props=O,this.context=X,this.refs=S,this.updater=it||v}var D=M.prototype=new w;D.constructor=M,_(D,T.prototype),D.isPureReactComponent=!0;var N=Array.isArray,j={H:null,A:null,T:null,S:null,V:null},P=Object.prototype.hasOwnProperty;function I(O,X,it,st,at,pt){return it=pt.ref,{$$typeof:e,type:O,key:X,ref:it!==void 0?it:null,props:pt}}function q(O,X){return I(O.type,X,void 0,void 0,void 0,O.props)}function Y(O){return typeof O=="object"&&O!==null&&O.$$typeof===e}function K(O){var X={"=":"=0",":":"=2"};return"$"+O.replace(/[=:]/g,function(it){return X[it]})}var et=/\/+/g;function nt(O,X){return typeof O=="object"&&O!==null&&O.key!=null?K(""+O.key):X.toString(36)}function ut(){}function G(O){switch(O.status){case"fulfilled":return O.value;case"rejected":throw O.reason;default:switch(typeof O.status=="string"?O.then(ut,ut):(O.status="pending",O.then(function(X){O.status==="pending"&&(O.status="fulfilled",O.value=X)},function(X){O.status==="pending"&&(O.status="rejected",O.reason=X)})),O.status){case"fulfilled":return O.value;case"rejected":throw O.reason}}throw O}function z(O,X,it,st,at){var pt=typeof O;(pt==="undefined"||pt==="boolean")&&(O=null);var ot=!1;if(O===null)ot=!0;else switch(pt){case"bigint":case"string":case"number":ot=!0;break;case"object":switch(O.$$typeof){case e:case t:ot=!0;break;case p:return ot=O._init,z(ot(O._payload),X,it,st,at)}}if(ot)return at=at(O),ot=st===""?"."+nt(O,0):st,N(at)?(it="",ot!=null&&(it=ot.replace(et,"$&/")+"/"),z(at,X,it,"",function(ii){return ii}
vendor: 5,212 bytes, line 17
17)):at!=null&&(Y(at)&&(at=q(at,it+(at.key==null||O&&O.key===at.key?"":(""+at.key).replace(et,"$&/")+"/")+ot)),X.push(at)),1;ot=0;var he=st===""?".":st+":";if(N(O))for(var Pt=0;Pt<O.length;Pt++)st=O[Pt],pt=he+nt(st,Pt),ot+=z(st,X,it,pt,at);else if(Pt=y(O),typeof Pt=="function")for(O=Pt.call(O),Pt=0;!(st=O.next()).done;)st=st.value,pt=he+nt(st,Pt++),ot+=z(st,X,it,pt,at);else if(pt==="object"){if(typeof O.then=="function")return z(G(O),X,it,st,at);throw X=String(O),Error("Objects are not valid as a React child (found: "+(X==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":X)+"). If you meant to render a collection of children, use an array instead.")}return ot}function C(O,X,it){if(O==null)return O;var st=[],at=0;return z(O,st,"","",function(pt){return X.call(it,pt,at++)}),st}function $(O){if(O._status===-1){var X=O._result;X=X(),X.then(function(it){(O._status===0||O._status===-1)&&(O._status=1,O._result=it)},function(it){(O._status===0||O._status===-1)&&(O._status=2,O._result=it)}),O._status===-1&&(O._status=0,O._result=X)}if(O._status===1)return O._result.default;throw O._result}var W=typeof reportError=="function"?reportError:function(O){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var X=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof O=="object"&&O!==null&&typeof O.message=="string"?String(O.message):String(O),error:O});if(!window.dispatchEvent(X))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",O);return}console.error(O)};function Q(){}return vt.Children={map:C,forEach:function(O,X,it){C(O,function(){X.apply(this,arguments)},it)},count:function(O){var X=0;return C(O,function(){X++}),X},toArray:function(O){return C(O,function(X){return X})||[]},only:function(O){if(!Y(O))throw Error("React.Children.only expected to receive a single React element child.");return O}},vt.Component=T,vt.Fragment=i,vt.Profiler=l,vt.PureComponent=M,vt.StrictMode=s,vt.Suspense=d,vt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=j,vt.__COMPILER_RUNTIME={__proto__:null,c:function(O){return j.H.useMemoCache(O)}},vt.cache=function(O){return function(){return O.apply(null,arguments)}},vt.cloneElement=function(O,X,it){if(O==null)throw Error("The argument must be a React element, but you passed "+O+".");var st=_({},O.props),at=O.key,pt=void 0;if(X!=null)for(ot in X.ref!==void 0&&(pt=void 0),X.key!==void 0&&(at=""+X.key),X)!P.call(X,ot)||ot==="key"||ot==="__self"||ot==="__source"||ot==="ref"&&X.ref===void 0||(st[ot]=X[ot]);var ot=arguments.length-2;if(ot===1)st.children=it;else if(1<ot){for(var he=Array(ot),Pt=0;Pt<ot;Pt++)he[Pt]=arguments[Pt+2];st.children=he}return I(O.type,at,void 0,void 0,pt,st)},vt.createContext=function(O){return O={$$typeof:c,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null},O.Provider=O,O.Consumer={$$typeof:r,_context:O},O},vt.createElement=function(O,X,it){var st,at={},pt=null;if(X!=null)for(st in X.key!==void 0&&(pt=""+X.key),X)P.call(X,st)&&st!=="key"&&st!=="__self"&&st!=="__source"&&(at[st]=X[st]);var ot=arguments.length-2;if(ot===1)at.children=it;else if(1<ot){for(var he=Array(ot),Pt=0;Pt<ot;Pt++)he[Pt]=arguments[Pt+2];at.children=he}if(O&&O.defaultProps)for(st in ot=O.defaultProps,ot)at[st]===void 0&&(at[st]=ot[st]);return I(O,pt,void 0,void 0,null,at)},vt.createRef=function(){return{current:null}},vt.forwardRef=function(O){return{$$typeof:f,render:O}},vt.isValidElement=Y,vt.lazy=function(O){return{$$typeof:p,_payload:{_status:-1,_result:O},_init:$}},vt.memo=function(O,X){return{$$typeof:h,type:O,compare:X===void 0?null:X}},vt.startTransition=function(O){var X=j.T,it={};j.T=it;try{var st=O(),at=j.S;at!==null&&at(it,st),typeof st=="object"&&st!==null&&typeof st.then=="function"&&st.then(Q,W)}catch(pt){W(pt)}finally{j.T=X}},vt.unstable_useCacheRefresh=function(){return j.H.useCacheRefresh()},vt.use=function(O){return j.H.use(O)},vt.useActionState=function(O,X,it){return j.H.useActionState(O,X,it)},vt.useCallback=function(O,X){return j.H.useCallback(O,X)},vt.useContext=function(O){return j.H.useContext(O)},vt.useDebugValue=function(){},vt.useDeferredValue=function(O,X){return j.H.useDeferredValue(O,X)},vt.useEffect=function(O,X,it){var st=j.H;if(typeof it=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return st.useEffect(O,X)},vt.useId=function(){return j.H.useId()},vt.useImperativeHandle=function(O,X,it){return j.H.useImperativeHandle(O,X,it)},vt.useInsertionEffect=function(O,X){return j.H.useInsertionEffect(O,X)},vt.useLayoutEffect=function(O,X){return j.H.useLayoutEffect(O,X)},vt.useMemo=function(O,X){return j.H.useMemo(O,X)},vt.useOptimistic=function(O,X){return j.H.useOptimistic(O,X)},vt.useReducer=function(O,X,it){return j.H.useReducer(O,X,it)},vt.useRef=function(O){return j.H.useRef(O)},vt.useState=function(O){return j.H.useState(O)},vt.useSyncExternalStore=function(O,X,it){return j.H.useSyncExternalStore(O,X,it)},vt.useTransition=function(){return j.H.useTransition()},vt.version="19.1.1",vt}var Qx;function vh(){return Qx||(Qx=1,hd.exports=WS()),hd.exports}var A=vh();const _h=Ab(A);var gd={exports:{}},Cl={}
vendor: 5,408 bytes, lines 17-33
17,pd={exports:{}},md={};/**
18 * @license React
19 * scheduler.production.js
20 *
21 * Copyright (c) Meta Platforms, Inc. and affiliates.
22 *
23 * This source code is licensed under the MIT license found in the
24 * LICENSE file in the root directory of this source tree.
25 */var Jx;function XS(){return Jx||(Jx=1,function(e){function t(C,$){var W=C.length;C.push($);t:for(;0<W;){var Q=W-1>>>1,O=C[Q];if(0<l(O,$))C[Q]=$,C[W]=O,W=Q;else break t}}function i(C){return C.length===0?null:C[0]}function s(C){if(C.length===0)return null;var $=C[0],W=C.pop();if(W!==$){C[0]=W;t:for(var Q=0,O=C.length,X=O>>>1;Q<X;){var it=2*(Q+1)-1,st=C[it],at=it+1,pt=C[at];if(0>l(st,W))at<O&&0>l(pt,st)?(C[Q]=pt,C[at]=W,Q=at):(C[Q]=st,C[it]=W,Q=it);else if(at<O&&0>l(pt,W))C[Q]=pt,C[at]=W,Q=at;else break t}}return $}function l(C,$){var W=C.sortIndex-$.sortIndex;return W!==0?W:C.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var r=performance;e.unstable_now=function(){return r.now()}}else{var c=Date,f=c.now();e.unstable_now=function(){return c.now()-f}}var d=[],h=[],p=1,x=null,y=3,v=!1,_=!1,S=!1,T=!1,w=typeof setTimeout=="function"?setTimeout:null,M=typeof clearTimeout=="function"?clearTimeout:null,D=typeof setImmediate<"u"?setImmediate:null;function N(C){for(var $=i(h);$!==null;){if($.callback===null)s(h);else if($.startTime<=C)s(h),$.sortIndex=$.expirationTime,t(d,$);else break;$=i(h)}}function j(C){if(S=!1,N(C),!_)if(i(d)!==null)_=!0,P||(P=!0,nt());else{var $=i(h);$!==null&&z(j,$.startTime-C)}}var P=!1,I=-1,q=5,Y=-1;function K(){return T?!0:!(e.unstable_now()-Y<q)}function et(){if(T=!1,P){var C=e.unstable_now();Y=C;var $=!0;try{t:{_=!1,S&&(S=!1,M(I),I=-1),v=!0;var W=y;try{e:{for(N(C),x=i(d);x!==null&&!(x.expirationTime>C&&K());){var Q=x.callback;if(typeof Q=="function"){x.callback=null,y=x.priorityLevel;var O=Q(x.expirationTime<=C);if(C=e.unstable_now(),typeof O=="function"){x.callback=O,N(C),$=!0;break e}x===i(d)&&s(d),N(C)}else s(d);x=i(d)}if(x!==null)$=!0;else{var X=i(h);X!==null&&z(j,X.startTime-C),$=!1}}break t}finally{x=null,y=W,v=!1}$=void 0}}finally{$?nt():P=!1}}}var nt;if(typeof D=="function")nt=function(){D(et)};else if(typeof MessageChannel<"u"){var ut=new MessageChannel,G=ut.port2;ut.port1.onmessage=et,nt=function(){G.postMessage(null)}}else nt=function(){w(et,0)};function z(C,$){I=w(function(){C(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(C){C.callback=null},e.unstable_forceFrameRate=function(C){0>C||125<C?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):q=0<C?Math.floor(1e3/C):5},e.unstable_getCurrentPriorityLevel=function(){return y},e.unstable_next=function(C){switch(y){case 1:case 2:case 3:var $=3;break;default:$=y}var W=y;y=$;try{return C()}finally{y=W}},e.unstable_requestPaint=function(){T=!0},e.unstable_runWithPriority=function(C,$){switch(C){case 1:case 2:case 3:case 4:case 5:break;default:C=3}var W=y;y=C;try{return $()}finally{y=W}},e.unstable_scheduleCallback=function(C,$,W){var Q=e.unstable_now();switch(typeof W=="object"&&W!==null?(W=W.delay,W=typeof W=="number"&&0<W?Q+W:Q):W=Q,C){case 1:var O=-1;break;case 2:O=250;break;case 5:O=1073741823;break;case 4:O=1e4;break;default:O=5e3}return O=W+O,C={id:p++,callback:$,priorityLevel:C,startTime:W,expirationTime:O,sortIndex:-1},W>Q?(C.sortIndex=W,t(h,C),i(d)===null&&C===i(h)&&(S?(M(I),I=-1):S=!0,z(j,W-Q))):(C.sortIndex=O,t(d,C),_||v||(_=!0,P||(P=!0,nt()))),C},e.unstable_shouldYield=K,e.unstable_wrapCallback=function(C){var $=y;return function(){var W=y;y=$;try{return C.apply(this,arguments)}finally{y=W}}}}(md)),md}var ty;function KS(){return ty||(ty=1,pd.exports=XS()),pd.exports}var xd={exports:{}},Te={};/**
26 * @license React
27 * react-dom.production.js
28 *
29 * Copyright (c) Meta Platforms, Inc. and affiliates.
30 *
31 * This source code is licensed under the MIT license found in the
32 * LICENSE file in the root directory of this source tree.
33 */var ey;function ZS(){if(ey)return Te;ey=1;var e=vh();function t(d){var h="https://react.dev/errors/"+d;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var p=2;p<arguments.length;p++)h+="&args[]="+encodeURIComponent(arguments[p])}return"Minified React error #"+d+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function i(){}var s={d:{f:i,r:function(){throw Error(t(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},l=Symbol.for("react.portal");function r(d,h,p){var x=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:l,key:x==null?null:""+x,children:d,containerInfo:h,implementation:p}}var c=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function f(d,h){if(d==="font")return"";if(typeof h=="string")return h==="use-credentials"?h:""}return Te.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,Te.createPortal=function(d,h){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!h||h.nodeType!==1&&h.nodeType!==9&&h.nodeType!==11)throw Error(t(299));return r(d,h,null,p)},Te.flushSync=function(d){var h=c.T,p=s.p;try{if(c.T=null,s.p=2,d)return d()}finally{c.T=h,s.p=p,s.d.f()}}
vendor: 20,523 bytes, lines 33-48
33,Te.preconnect=function(d,h){typeof d=="string"&&(h?(h=h.crossOrigin,h=typeof h=="string"?h==="use-credentials"?h:"":void 0):h=null,s.d.C(d,h))},Te.prefetchDNS=function(d){typeof d=="string"&&s.d.D(d)},Te.preinit=function(d,h){if(typeof d=="string"&&h&&typeof h.as=="string"){var p=h.as,x=f(p,h.crossOrigin),y=typeof h.integrity=="string"?h.integrity:void 0,v=typeof h.fetchPriority=="string"?h.fetchPriority:void 0;p==="style"?s.d.S(d,typeof h.precedence=="string"?h.precedence:void 0,{crossOrigin:x,integrity:y,fetchPriority:v}):p==="script"&&s.d.X(d,{crossOrigin:x,integrity:y,fetchPriority:v,nonce:typeof h.nonce=="string"?h.nonce:void 0})}},Te.preinitModule=function(d,h){if(typeof d=="string")if(typeof h=="object"&&h!==null){if(h.as==null||h.as==="script"){var p=f(h.as,h.crossOrigin);s.d.M(d,{crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0})}}else h==null&&s.d.M(d)},Te.preload=function(d,h){if(typeof d=="string"&&typeof h=="object"&&h!==null&&typeof h.as=="string"){var p=h.as,x=f(p,h.crossOrigin);s.d.L(d,p,{crossOrigin:x,integrity:typeof h.integrity=="string"?h.integrity:void 0,nonce:typeof h.nonce=="string"?h.nonce:void 0,type:typeof h.type=="string"?h.type:void 0,fetchPriority:typeof h.fetchPriority=="string"?h.fetchPriority:void 0,referrerPolicy:typeof h.referrerPolicy=="string"?h.referrerPolicy:void 0,imageSrcSet:typeof h.imageSrcSet=="string"?h.imageSrcSet:void 0,imageSizes:typeof h.imageSizes=="string"?h.imageSizes:void 0,media:typeof h.media=="string"?h.media:void 0})}},Te.preloadModule=function(d,h){if(typeof d=="string")if(h){var p=f(h.as,h.crossOrigin);s.d.m(d,{as:typeof h.as=="string"&&h.as!=="script"?h.as:void 0,crossOrigin:p,integrity:typeof h.integrity=="string"?h.integrity:void 0})}else s.d.m(d)},Te.requestFormReset=function(d){s.d.r(d)},Te.unstable_batchedUpdates=function(d,h){return d(h)},Te.useFormState=function(d,h,p){return c.H.useFormState(d,h,p)},Te.useFormStatus=function(){return c.H.useHostTransitionStatus()},Te.version="19.1.1",Te}var ny;function Mb(){if(ny)return xd.exports;ny=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),xd.exports=ZS(),xd.exports}/**
34 * @license React
35 * react-dom-client.production.js
36 *
37 * Copyright (c) Meta Platforms, Inc. and affiliates.
38 *
39 * This source code is licensed under the MIT license found in the
40 * LICENSE file in the root directory of this source tree.
41 */var iy;function QS(){if(iy)return Cl;iy=1;var e=KS(),t=vh(),i=Mb();function s(n){var a="https://react.dev/errors/"+n;if(1<arguments.length){a+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)a+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+n+"; visit "+a+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function l(n){return!(!n||n.nodeType!==1&&n.nodeType!==9&&n.nodeType!==11)}function r(n){var a=n,o=n;if(n.alternate)for(;a.return;)a=a.return;else{n=a;do a=n,(a.flags&4098)!==0&&(o=a.return),n=a.return;while(n)}return a.tag===3?o:null}function c(n){if(n.tag===13){var a=n.memoizedState;if(a===null&&(n=n.alternate,n!==null&&(a=n.memoizedState)),a!==null)return a.dehydrated}return null}function f(n){if(r(n)!==n)throw Error(s(188))}function d(n){var a=n.alternate;if(!a){if(a=r(n),a===null)throw Error(s(188));return a!==n?null:n}for(var o=n,u=a;;){var g=o.return;if(g===null)break;var m=g.alternate;if(m===null){if(u=g.return,u!==null){o=u;continue}break}if(g.child===m.child){for(m=g.child;m;){if(m===o)return f(g),n;if(m===u)return f(g),a;m=m.sibling}throw Error(s(188))}if(o.return!==u.return)o=g,u=m;else{for(var k=!1,E=g.child;E;){if(E===o){k=!0,o=g,u=m;break}if(E===u){k=!0,u=g,o=m;break}E=E.sibling}if(!k){for(E=m.child;E;){if(E===o){k=!0,o=m,u=g;break}if(E===u){k=!0,u=m,o=g;break}E=E.sibling}if(!k)throw Error(s(189))}}if(o.alternate!==u)throw Error(s(190))}if(o.tag!==3)throw Error(s(188));return o.stateNode.current===o?n:a}function h(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n;for(n=n.child;n!==null;){if(a=h(n),a!==null)return a;n=n.sibling}return null}var p=Object.assign,x=Symbol.for("react.element"),y=Symbol.for("react.transitional.element"),v=Symbol.for("react.portal"),_=Symbol.for("react.fragment"),S=Symbol.for("react.strict_mode"),T=Symbol.for("react.profiler"),w=Symbol.for("react.provider"),M=Symbol.for("react.consumer"),D=Symbol.for("react.context"),N=Symbol.for("react.forward_ref"),j=Symbol.for("react.suspense"),P=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),q=Symbol.for("react.lazy"),Y=Symbol.for("react.activity"),K=Symbol.for("react.memo_cache_sentinel"),et=Symbol.iterator;function nt(n){return n===null||typeof n!="object"?null:(n=et&&n[et]||n["@@iterator"],typeof n=="function"?n:null)}var ut=Symbol.for("react.client.reference");function G(n){if(n==null)return null;if(typeof n=="function")return n.$$typeof===ut?null:n.displayName||n.name||null;if(typeof n=="string")return n;switch(n){case _:return"Fragment";case T:return"Profiler";case S:return"StrictMode";case j:return"Suspense";case P:return"SuspenseList";case Y:return"Activity"}if(typeof n=="object")switch(n.$$typeof){case v:return"Portal";case D:return(n.displayName||"Context")+".Provider";case M:return(n._context.displayName||"Context")+".Consumer";case N:var a=n.render;return n=n.displayName,n||(n=a.displayName||a.name||"",n=n!==""?"ForwardRef("+n+")":"ForwardRef"),n;case I:return a=n.displayName||null,a!==null?a:G(n.type)||"Memo";case q:a=n._payload,n=n._init;try{return G(n(a))}catch{}}return null}var z=Array.isArray,C=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,$=i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,W={pending:!1,data:null,method:null,action:null},Q=[],O=-1;function X(n){return{current:n}}function it(n){0>O||(n.current=Q[O],Q[O]=null,O--)}function st(n,a){O++,Q[O]=n.current,n.current=a}var at=X(null),pt=X(null),ot=X(null),he=X(null);function Pt(n,a){switch(st(ot,a),st(pt,n),st(at,null),a.nodeType){case 9:case 11:n=(n=a.documentElement)&&(n=n.namespaceURI)?Sx(n):0;break;default:if(n=a.tagName,a=a.namespaceURI)a=Sx(a),n=Tx(a,n);else switch(n){case"svg":n=1;break;case"math":n=2;break;default:n=0}}it(at),st(at,n)}function ii(){it(at),it(pt),it(ot)}function Kc(n){n.memoizedState!==null&&st(he,n);var a=at.current,o=Tx(a,n.type);a!==o&&(st(pt,n),st(at,o))}function mo(n){pt.current===n&&(it(at),it(pt)),he.current===n&&(it(he),Sl._currentValue=W)}var Zc=Object.prototype.hasOwnProperty,Qc=e.unstable_scheduleCallback,Jc=e.unstable_cancelCallback,T_=e.unstable_shouldYield,E_=e.unstable_requestPaint,dn=e.unstable_now,w_=e.unstable_getCurrentPriorityLevel,ig=e.unstable_ImmediatePriority,sg=e.unstable_UserBlockingPriority,xo=e.unstable_NormalPriority,A_=e.unstable_LowPriority,ag=e.unstable_IdlePriority,M_=e.log,C_=e.unstable_setDisableYieldValue,Oa=null,Pe=null;function si(n){if(typeof M_=="function"&&C_(n),Pe&&typeof Pe.setStrictMode=="function")try{Pe.setStrictMode(Oa,n)}catch{}}var He=Math.clz32?Math.clz32:R_,D_=Math.log,O_=Math.LN2;function R_(n){return n>>>=0,n===0?32:31-(D_(n)/O_|0)|0}var yo=256,bo=4194304;function Bi(n){var a=n&42;if(a!==0)return a;switch(n&-n){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:case 262144:case 524288:case 1048576:case 2097152:return n&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return n&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return n}}function vo(n,a,o){var u=n.pendingLanes;if(u===0)return 0;var g=0,m=n.suspendedLanes,k=n.pingedLanes;n=n.warmLanes;var E=u&134217727;return E!==0?(u=E&~m,u!==0?g=Bi(u):(k&=E,k!==0?g=Bi(k):o||(o=E&~n,o!==0&&(g=Bi(o))))):(E=u&~m,E!==0?g=Bi(E):k!==0?g=Bi(k):o||(o=u&~n,o!==0&&(g=Bi(o)))),g===0?0:a!==0&&a!==g&&(a&m)===0&&(m=g&-g,o=a&-a,m>=o||m===32&&(o&4194048)!==0)?a:g}function Ra(n,a){return(n.pendingLanes&~(n.suspendedLanes&~n.pingedLanes)&a)===0}function j_(n,a){switch(n){case 1:case 2:case 4:case 8:case 64:return a+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 a+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function lg(){var n=yo;return yo<<=1,(yo&4194048)===0&&(yo=256),n}function og(){var n=bo;return bo<<=1,(bo&62914560)===0&&(bo=4194304),n}function tu(n){for(var a=[],o=0;31>o;o++)a.push(n);return a}function ja(n,a){n.pendingLanes|=a,a!==268435456&&(n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0)}function N_(n,a,o,u,g,m){var k=n.pendingLanes;n.pendingLanes=o,n.suspendedLanes=0,n.pingedLanes=0,n.warmLanes=0,n.expiredLanes&=o,n.entangledLanes&=o,n.errorRecoveryDisabledLanes&=o,n.shellSuspendCounter=0;var E=n.entanglements,R=n.expirationTimes,F=n.hiddenUpdates;for(o=k&~o;0<o;){var Z=31-He(o),tt=1<<Z;E[Z]=0,R[Z]=-1;var U=F[Z];if(U!==null)for(F[Z]=null,Z=0;Z<U.length;Z++){var V=U[Z];V!==null&&(V.lane&=-536870913)}o&=~tt}u!==0&&rg(n,u,0),m!==0&&g===0&&n.tag!==0&&(n.suspendedLanes|=m&~(k&~a))}function rg(n,a,o){n.pendingLanes|=a,n.suspendedLanes&=~a;var u=31-He(a);n.entangledLanes|=a,n.entanglements[u]=n.entanglements[u]|1073741824|o&4194090}function cg(n,a){var o=n.entangledLanes|=a;for(n=n.entanglements;o;){var u=31-He(o),g=1<<u;g&a|n[u]&a&&(n[u]|=a),o&=~g}}function eu(n){switch(n){case 2:n=1;break;case 8:n=4;break;case 32:n=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:n=128;break;case 268435456:n=134217728;break;default:n=0}return n}function nu(n){return n&=-n,2<n?8<n?(n&134217727)!==0?32:268435456:8:2}function ug(){var n=$.p;return n!==0?n:(n=window.event,n===void 0?32:Ux(n.type))}function $_(n,a){var o=$.p;try{return $.p=n,a()}finally{$.p=o}}var ai=Math.random().toString(36).slice(2),ke="__reactFiber$"+ai,Re="__reactProps$"+ai,_s="__reactContainer$"+ai,iu="__reactEvents$"+ai,L_="__reactListeners$"+ai,z_="__reactHandles$"+ai,fg="__reactResources$"+ai,Na="__reactMarker$"+ai;function su(n){delete n[ke],delete n[Re],delete n[iu],delete n[L_],delete n[z_]}function ks(n){var a=n[ke];if(a)return a;for(var o=n.parentNode;o;){if(a=o[_s]||o[ke]){if(o=a.alternate,a.child!==null||o!==null&&o.child!==null)for(n=Mx(n);n!==null;){if(o=n[ke])return o;n=Mx(n)}return a}n=o,o=n.parentNode}return null}function Ss(n){if(n=n[ke]||n[_s]){var a=n.tag;if(a===5||a===6||a===13||a===26||a===27||a===3)return n}return null}function $a(n){var a=n.tag;if(a===5||a===26||a===27||a===6)return n.stateNode;throw Error(s(33))}function Ts(n){var a=n[fg];return a||(a=n[fg]={hoistableStyles:new Map,hoistableScripts:new Map}),a}function ge(n){n[Na]=!0}var dg=new Set,hg={};function Pi(n,a){Es(n,a),Es(n+"Capture",a)}function Es(n,a){for(hg[n]=a,n=0;n<a.length;n++)dg.add(a[n])}var B_=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]*$"),gg={},pg={};function P_(n){return Zc.call(pg,n)?!0:Zc.call(gg,n)?!1:B_.test(n)?pg[n]=!0:(gg[n]=!0,!1)}function _o(n,a,o){if(P_(a))if(o===null)n.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":n.removeAttribute(a);return;case"boolean":var u=a.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){n.removeAttribute(a);return}}n.setAttribute(a,""+o)}}function ko(n,a,o){if(o===null)n.removeAttribute(a);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(a);return}n.setAttribute(a,""+o)}}function En(n,a,o,u){if(u===null)n.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":n.removeAttribute(o);return}n.setAttributeNS(a,o,""+u)}}var au,mg;function ws(n){if(au===void 0)try{throw Error()}catch(o){var a=o.stack.trim().match(/\n( *(at )?)/);au=a&&a[1]||"",mg=-1<o.stack.indexOf(`
42    at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return`
43`+au+n+mg}var lu=!1;function ou(n,a){if(!n||lu)return"";lu=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(a){var tt=function(){throw Error()};if(Object.defineProperty(tt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(tt,[])}catch(V){var U=V}Reflect.construct(n,[],tt)}else{try{tt.call()}catch(V){U=V}n.call(tt.prototype)}}else{try{throw Error()}catch(V){U=V}(tt=n())&&typeof tt.catch=="function"&&tt.catch(function(){})}}catch(V){if(V&&U&&typeof V.stack=="string")return[V.stack,U.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var g=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");g&&g.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var m=u.DetermineComponentFrameRoot(),k=m[0],E=m[1];if(k&&E){var R=k.split(`
44`),F=E.split(`
45`);for(g=u=0;u<R.length&&!R[u].includes("DetermineComponentFrameRoot");)u++;for(;g<F.length&&!F[g].includes("DetermineComponentFrameRoot");)g++;if(u===R.length||g===F.length)for(u=R.length-1,g=F.length-1;1<=u&&0<=g&&R[u]!==F[g];)g--;for(;1<=u&&0<=g;u--,g--)if(R[u]!==F[g]){if(u!==1||g!==1)do if(u--,g--,0>g||R[u]!==F[g]){var Z=`
46`+R[u].replace(" at new "," at ");return n.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",n.displayName)),Z}while(1<=u&&0<=g);break}}}finally{lu=!1,Error.prepareStackTrace=o}return(o=n?n.displayName||n.name:"")?ws(o):""}function H_(n){switch(n.tag){case 26:case 27:case 5:return ws(n.type);case 16:return ws("Lazy");case 13:return ws("Suspense");case 19:return ws("SuspenseList");case 0:case 15:return ou(n.type,!1);case 11:return ou(n.type.render,!1);case 1:return ou(n.type,!0);case 31:return ws("Activity");default:return""}}function xg(n){try{var a="";do a+=H_(n),n=n.return;while(n);return a}catch(o){return`
47Error generating stack: `+o.message+`
48`+o.stack}}function Xe(n){switch(typeof n){case"bigint":case"boolean":case"number":case"string":case"undefined":return n;case"object":return n;default:return""}}function yg(n){var a=n.type;return(n=n.nodeName)&&n.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function F_(n){var a=yg(n)?"checked":"value",o=Object.getOwnPropertyDescriptor(n.constructor.prototype,a),u=""+n[a];if(!n.hasOwnProperty(a)&&typeof o<"u"&&typeof o.get=="function"&&typeof o.set=="function"){var g=o.get,m=o.set;return Object.defineProperty(n,a,{configurable:!0,get:function(){return g.call(this)},set:function(k){u=""+k,m.call(this,k)}}),Object.defineProperty(n,a,{enumerable:o.enumerable}),{getValue:function(){return u},setValue:function(k){u=""+k},stopTracking:function(){n._valueTracker=null,delete n[a]}}}}function So(n){n._valueTracker||(n._valueTracker=F_(n))}function bg(n){if(!n)return!1;var a=n._valueTracker;if(!a)return!0;var o=a.getValue(),u="";return n&&(u=yg(n)?n.checked?"true":"false":n.value),n=u,n!==o?(a.setValue(n),!0):!1}function To(n){if(n=n||(typeof document<"u"?document:void 0),typeof n>"u")return null;try{return n.activeElement||n.body}catch{return n.body}}var I_=/[\n"\\]/g;function Ke(n){return n.replace(I_,function(a){return"\\"+a.charCodeAt(0).toString(16)+" "})}function ru(n,a,o,u,g,m,k,E){n.name="",k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"?n.type=k:n.removeAttribute("type"),a!=null?k==="number"?(a===0&&n.value===""||n.value!=a)&&(n.value=""+Xe(a)):n.value!==""+Xe(a)&&(n.value=""+Xe(a)):k!=="submit"&&k!=="reset"||n.removeAttribute("value"),a!=null?cu(n,k,Xe(a)):o!=null?cu(n,k,Xe(o)):u!=null&&n.removeAttribute("value"),g==null&&m!=null&&(n.defaultChecked=!!m),g!=null&&(n.checked=g&&typeof g!="function"&&typeof g!="symbol"),E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?n.name=""+Xe(E):n.removeAttribute("name")}function vg(n,a,o,u,g,m,k,E){if(m!=null&&typeof m!="function"&&typeof m!="symbol"&&typeof m!="boolean"&&(n.type=m),a!=null||o!=null){if(!(m!=="submit"&&m!=="reset"||a!=null))return;o=o!=null?""+Xe(o):"",a=a!=null?""+Xe(a):o,E||a===n.value||(n.value=a),n.defaultValue=a}u=u??g,u=typeof u!="function"&&typeof u!="symbol"&&!!u,n.checked=E?n.checked:!!u,n.defaultChecked=!!u,k!=null&&typeof k!="function"&&typeof k!="symbol"&&typeof k!="boolean"&&(n.name=k)}function cu(n,a,o){a==="number"&&To(n.ownerDocument)===n||n.defaultValue===""+o||(n.defaultValue=""+o)}function As(n,a,o,u){if(n=n.options,a){a={};for(var g=0;g<o.length;g++)a["$"+o[g]]=!0;for(o=0;o<n.length;o++)g=a.hasOwnProperty("$"+n[o].value),n[o].selected!==g&&(n[o].selected=g),g&&u&&(n[o].defaultSelected=!0)}else{for(o=""+Xe(o),a=null,g=0;g<n.length;g++){if(n[g].value===o){n[g].selected=!0,u&&(n[g].defaultSelected=!0);return}a!==null||n[g].disabled||(a=n[g])}a!==null&&(a.selected=!0)}}function _g(n,a,o){if(a!=null&&(a=""+Xe(a),a!==n.value&&(n.value=a),o==null)){n.defaultValue!==a&&(n.defaultValue=a);return}n.defaultValue=o!=null?""+Xe(o):""}function kg(n,a,o,u){if(a==null){if(u!=null){if(o!=null)throw Error(s(92));if(z(u)){if(1<u.length)throw Error(s(93));u=u[0]}o=u}o==null&&(o=""),a=o}o=Xe(a),n.defaultValue=o,u=n.textContent,u===o&&u!==""&&u!==null&&(n.value=u)}function Ms(n,a){if(a){var o=n.firstChild;if(o&&o===n.lastChild&&o.nodeType===3){o.nodeValue=a;return}}n.textContent=a}var U_=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function Sg(n,a,o){var u=a.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?n.setProperty(a,""):a==="float"?n.cssFloat="":n[a]="":u?n.setProperty(a,o):typeof o!="number"||o===0||U_.has(a)?a==="float"?n.cssFloat=o:n[a]=(""+o).trim():n[a]=o+"px"}function Tg(n,a,o){if(a!=null&&typeof a!="object")throw Error(s(62));if(n=n.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||a!=null&&a.hasOwnProperty(u)||(u.indexOf("--")===0?n.setProperty(u,""):u==="float"?n.cssFloat="":n[u]="");for(var g in a)u=a[g],a.hasOwnProperty(g)&&o[g]!==u&&Sg(n,g,u)}else for(var m in a)a.hasOwnProperty(m)&&Sg(n,m,a[m])}function uu(n){if(n.indexOf("-")===-1)return!1;switch(n){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var q_=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"],["colorRen
48dering","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"]]),V_=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Eo(n){return V_.test(""+n)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":n}var fu=null;function du(n){return n=n.target||n.srcElement||window,n.correspondingUseElement&&(n=n.correspondingUseElement),n.nodeType===3?n.parentNode:n}var Cs=null,Ds=null;function Eg(n){var a=Ss(n);if(a&&(n=a.stateNode)){var o=n[Re]||null;t:switch(n=a.stateNode,a.type){case"input":if(ru(n,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),a=o.name,o.type==="radio"&&a!=null){for(o=n;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+Ke(""+a)+'"][type="radio"]'),a=0;a<o.length;a++){var u=o[a];if(u!==n&&u.form===n.form){var g=u[Re]||null;if(!g)throw Error(s(90));ru(u,g.value,g.defaultValue,g.defaultValue,g.checked,g.defaultChecked,g.type,g.name)}}for(a=0;a<o.length;a++)u=o[a],u.form===n.form&&bg(u)}break t;case"textarea":_g(n,o.value,o.defaultValue);break t;case"select":a=o.value,a!=null&&As(n,!!o.multiple,a,!1)}}}var hu=!1;function wg(n,a,o){if(hu)return n(a,o);hu=!0;try{var u=n(a);return u}finally{if(hu=!1,(Cs!==null||Ds!==null)&&(ur(),Cs&&(a=Cs,n=Ds,Ds=Cs=null,Eg(a),n)))for(a=0;a<n.length;a++)Eg(n[a])}}function La(n,a){var o=n.stateNode;if(o===null)return null;var u=o[Re]||null;if(u===null)return null;o=u[a];t:switch(a){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(n=n.type,u=!(n==="button"||n==="input"||n==="select"||n==="textarea")),n=!u;break t;default:n=!1}if(n)return null;if(o&&typeof o!="function")throw Error(s(231,a,typeof o));return o}var wn=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gu=!1;if(wn)try{var za={};Object.defineProperty(za,"passive",{get:function(){gu=!0}}),window.addEventListener("test",za,za),window.removeEventListener("test",za,za)}catch{gu=!1}var li=null,pu=null,wo=null;function Ag(){if(wo)return wo;var n,a=pu,o=a.length,u,g="value"in li?li.value:li.textContent,m=g.length;for(n=0;n<o&&a[n]===g[n];n++);var k=o-n;for(u=1;u<=k&&a[o-u]===g[m-u];u++);return wo=g.slice(n,1<u?1-u:void 0)}function Ao(n){var a=n.keyCode;return"charCode"in n?(n=n.charCode,n===0&&a===13&&(n=13)):n=a,n===10&&(n=13),32<=n||n===13?n:0}function Mo(){return!0}function Mg(){return!1}function je(n){function a(o,u,g,m,k){this._reactName=o,this._targetInst=g,this.type=u,this.nativeEvent=m,this.target=k,this.currentTarget=null;for(var E in n)n.hasOwnProperty(E)&&(o=n[E],this[E]=o?o(m):m[E]);return this.isDefaultPrevented=(m.defaultPrevented!=null?m.defaultPrevented:m.returnValue===!1)?Mo:Mg,this.isPropagationStopped=Mg,this}return p(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=Mo)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Mo)},persist:function(){},isPersistent:Mo}),a}var Hi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(n){return n.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Co=je(Hi),Ba=p({},Hi,{view:0,detail:0}),Y_=je(Ba),mu,xu,Pa,Do=p({},Ba,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bu,button:0,buttons:0,relatedTarget:function(n){return n.relatedTarget===void 0?n.fromElement===n.srcElement?n.toElement:n.fromElement:n.relatedTarget},movementX:function(n){return"movementX"in n?n.movementX:(n!==Pa&&(Pa&&n.type==="mousemove"?(mu=n.screenX-Pa.screenX,xu=n.screenY-Pa.screenY):xu=mu=0,Pa=n),mu)},movementY:function(n){return"movementY"in n?n.movementY:xu}}),Cg=je(Do),G_=p({},Do,{dataTransfer:0}),W_=je(G_),X_=p({},Ba,{relatedTarget:0}),yu=je(X_),K_=p({},Hi,{animationName:0,elapsedTime:0,pseudoElement:0}),Z_=je(K_),Q_=p({},Hi,{clipboardData:function(n){return"clipboardData"in n?n.clipboardData:window.clipboardData}}),J_=je(Q_),tk=p({},Hi,{data:0}),Dg=je(tk),ek={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},nk={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"},ik={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function sk(n){var a=this.nativeEvent;return a.getModifierState?a.getModifierState(n):(n=ik[n])?!!a[n]:!1}function bu(){return sk}var ak=p({},Ba,{key:function(n){if(n.key){var a=ek[n.key]||n.key;if(a!=="Unidentified")return a}
vendor: 4,492 bytes, line 48
48return n.type==="keypress"?(n=Ao(n),n===13?"Enter":String.fromCharCode(n)):n.type==="keydown"||n.type==="keyup"?nk[n.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bu,charCode:function(n){return n.type==="keypress"?Ao(n):0},keyCode:function(n){return n.type==="keydown"||n.type==="keyup"?n.keyCode:0},which:function(n){return n.type==="keypress"?Ao(n):n.type==="keydown"||n.type==="keyup"?n.keyCode:0}}),lk=je(ak),ok=p({},Do,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Og=je(ok),rk=p({},Ba,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bu}),ck=je(rk),uk=p({},Hi,{propertyName:0,elapsedTime:0,pseudoElement:0}),fk=je(uk),dk=p({},Do,{deltaX:function(n){return"deltaX"in n?n.deltaX:"wheelDeltaX"in n?-n.wheelDeltaX:0},deltaY:function(n){return"deltaY"in n?n.deltaY:"wheelDeltaY"in n?-n.wheelDeltaY:"wheelDelta"in n?-n.wheelDelta:0},deltaZ:0,deltaMode:0}),hk=je(dk),gk=p({},Hi,{newState:0,oldState:0}),pk=je(gk),mk=[9,13,27,32],vu=wn&&"CompositionEvent"in window,Ha=null;wn&&"documentMode"in document&&(Ha=document.documentMode);var xk=wn&&"TextEvent"in window&&!Ha,Rg=wn&&(!vu||Ha&&8<Ha&&11>=Ha),jg=" ",Ng=!1;function $g(n,a){switch(n){case"keyup":return mk.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Lg(n){return n=n.detail,typeof n=="object"&&"data"in n?n.data:null}var Os=!1;function yk(n,a){switch(n){case"compositionend":return Lg(a);case"keypress":return a.which!==32?null:(Ng=!0,jg);case"textInput":return n=a.data,n===jg&&Ng?null:n;default:return null}}function bk(n,a){if(Os)return n==="compositionend"||!vu&&$g(n,a)?(n=Ag(),wo=pu=li=null,Os=!1,n):null;switch(n){case"paste":return null;case"keypress":if(!(a.ctrlKey||a.altKey||a.metaKey)||a.ctrlKey&&a.altKey){if(a.char&&1<a.char.length)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return Rg&&a.locale!=="ko"?null:a.data;default:return null}}var vk={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function zg(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a==="input"?!!vk[n.type]:a==="textarea"}function Bg(n,a,o,u){Cs?Ds?Ds.push(u):Ds=[u]:Cs=u,a=mr(a,"onChange"),0<a.length&&(o=new Co("onChange","change",null,o,u),n.push({event:o,listeners:a}))}var Fa=null,Ia=null;function _k(n){yx(n,0)}function Oo(n){var a=$a(n);if(bg(a))return n}function Pg(n,a){if(n==="change")return a}var Hg=!1;if(wn){var _u;if(wn){var ku="oninput"in document;if(!ku){var Fg=document.createElement("div");Fg.setAttribute("oninput","return;"),ku=typeof Fg.oninput=="function"}_u=ku}else _u=!1;Hg=_u&&(!document.documentMode||9<document.documentMode)}function Ig(){Fa&&(Fa.detachEvent("onpropertychange",Ug),Ia=Fa=null)}function Ug(n){if(n.propertyName==="value"&&Oo(Ia)){var a=[];Bg(a,Ia,n,du(n)),wg(_k,a)}}function kk(n,a,o){n==="focusin"?(Ig(),Fa=a,Ia=o,Fa.attachEvent("onpropertychange",Ug)):n==="focusout"&&Ig()}function Sk(n){if(n==="selectionchange"||n==="keyup"||n==="keydown")return Oo(Ia)}function Tk(n,a){if(n==="click")return Oo(a)}function Ek(n,a){if(n==="input"||n==="change")return Oo(a)}function wk(n,a){return n===a&&(n!==0||1/n===1/a)||n!==n&&a!==a}var Fe=typeof Object.is=="function"?Object.is:wk;function Ua(n,a){if(Fe(n,a))return!0;if(typeof n!="object"||n===null||typeof a!="object"||a===null)return!1;var o=Object.keys(n),u=Object.keys(a);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var g=o[u];if(!Zc.call(a,g)||!Fe(n[g],a[g]))return!1}return!0}function qg(n){for(;n&&n.firstChild;)n=n.firstChild;return n}function Vg(n,a){var o=qg(n);n=0;for(var u;o;){if(o.nodeType===3){if(u=n+o.textContent.length,n<=a&&u>=a)return{node:o,offset:a-n};n=u}t:{for(;o;){if(o.nextSibling){o=o.nextSibling;break t}o=o.parentNode}o=void 0}o=qg(o)}}function Yg(n,a){return n&&a?n===a?!0:n&&n.nodeType===3?!1:a&&a.nodeType===3?Yg(n,a.parentNode):"contains"in n?n.contains(a):n.compareDocumentPosition?!!(n.compareDocumentPosition(a)&16):!1:!1}function Gg(n){n=n!=null&&n.ownerDocument!=null&&n.ownerDocument.defaultView!=null?n.ownerDocument.defaultView:window;for(var a=To(n.document);a instanceof n.HTMLIFrameElement;){try{var o=typeof a.contentWindow.location.href=="string"}catch{o=!1}
vendor: 9,553 bytes, line 48
48if(o)n=a.contentWindow;else break;a=To(n.document)}return a}function Su(n){var a=n&&n.nodeName&&n.nodeName.toLowerCase();return a&&(a==="input"&&(n.type==="text"||n.type==="search"||n.type==="tel"||n.type==="url"||n.type==="password")||a==="textarea"||n.contentEditable==="true")}var Ak=wn&&"documentMode"in document&&11>=document.documentMode,Rs=null,Tu=null,qa=null,Eu=!1;function Wg(n,a,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Eu||Rs==null||Rs!==To(u)||(u=Rs,"selectionStart"in u&&Su(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),qa&&Ua(qa,u)||(qa=u,u=mr(Tu,"onSelect"),0<u.length&&(a=new Co("onSelect","select",null,a,o),n.push({event:a,listeners:u}),a.target=Rs)))}function Fi(n,a){var o={};return o[n.toLowerCase()]=a.toLowerCase(),o["Webkit"+n]="webkit"+a,o["Moz"+n]="moz"+a,o}var js={animationend:Fi("Animation","AnimationEnd"),animationiteration:Fi("Animation","AnimationIteration"),animationstart:Fi("Animation","AnimationStart"),transitionrun:Fi("Transition","TransitionRun"),transitionstart:Fi("Transition","TransitionStart"),transitioncancel:Fi("Transition","TransitionCancel"),transitionend:Fi("Transition","TransitionEnd")},wu={},Xg={};wn&&(Xg=document.createElement("div").style,"AnimationEvent"in window||(delete js.animationend.animation,delete js.animationiteration.animation,delete js.animationstart.animation),"TransitionEvent"in window||delete js.transitionend.transition);function Ii(n){if(wu[n])return wu[n];if(!js[n])return n;var a=js[n],o;for(o in a)if(a.hasOwnProperty(o)&&o in Xg)return wu[n]=a[o];return n}var Kg=Ii("animationend"),Zg=Ii("animationiteration"),Qg=Ii("animationstart"),Mk=Ii("transitionrun"),Ck=Ii("transitionstart"),Dk=Ii("transitioncancel"),Jg=Ii("transitionend"),tp=new Map,Au="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(" ");Au.push("scrollEnd");function ln(n,a){tp.set(n,a),Pi(a,[n])}var ep=new WeakMap;function Ze(n,a){if(typeof n=="object"&&n!==null){var o=ep.get(n);return o!==void 0?o:(a={value:n,source:a,stack:xg(a)},ep.set(n,a),a)}return{value:n,source:a,stack:xg(a)}}var Qe=[],Ns=0,Mu=0;function Ro(){for(var n=Ns,a=Mu=Ns=0;a<n;){var o=Qe[a];Qe[a++]=null;var u=Qe[a];Qe[a++]=null;var g=Qe[a];Qe[a++]=null;var m=Qe[a];if(Qe[a++]=null,u!==null&&g!==null){var k=u.pending;k===null?g.next=g:(g.next=k.next,k.next=g),u.pending=g}m!==0&&np(o,g,m)}}function jo(n,a,o,u){Qe[Ns++]=n,Qe[Ns++]=a,Qe[Ns++]=o,Qe[Ns++]=u,Mu|=u,n.lanes|=u,n=n.alternate,n!==null&&(n.lanes|=u)}function Cu(n,a,o,u){return jo(n,a,o,u),No(n)}function $s(n,a){return jo(n,null,null,a),No(n)}function np(n,a,o){n.lanes|=o;var u=n.alternate;u!==null&&(u.lanes|=o);for(var g=!1,m=n.return;m!==null;)m.childLanes|=o,u=m.alternate,u!==null&&(u.childLanes|=o),m.tag===22&&(n=m.stateNode,n===null||n._visibility&1||(g=!0)),n=m,m=m.return;return n.tag===3?(m=n.stateNode,g&&a!==null&&(g=31-He(o),n=m.hiddenUpdates,u=n[g],u===null?n[g]=[a]:u.push(a),a.lane=o|536870912),m):null}function No(n){if(50<pl)throw pl=0,Lf=null,Error(s(185));for(var a=n.return;a!==null;)n=a,a=n.return;return n.tag===3?n.stateNode:null}var Ls={};function Ok(n,a,o,u){this.tag=n,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=a,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ie(n,a,o,u){return new Ok(n,a,o,u)}function Du(n){return n=n.prototype,!(!n||!n.isReactComponent)}function An(n,a){var o=n.alternate;return o===null?(o=Ie(n.tag,a,n.key,n.mode),o.elementType=n.elementType,o.type=n.type,o.stateNode=n.stateNode,o.alternate=n,n.alternate=o):(o.pendingProps=a,o.type=n.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=n.flags&65011712,o.childLanes=n.childLanes,o.lanes=n.lanes,o.child=n.child,o.memoizedProps=n.memoizedProps,o.memoizedState=n.memoizedState,o.updateQueue=n.updateQueue,a=n.dependencies,o.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext},o.sibling=n.sibling,o.index=n.index,o.ref=n.ref,o.refCleanup=n.refCleanup,o}function ip(n,a){n.flags&=65011714;var o=n.alternate;return o===null?(n.childLanes=0,n.lanes=a,n.child=null,n.subtreeFlags=0,n.memoizedProps=null,n.memoizedState=null,n.updateQueue=null,n.dependencies=null,n.stateNode=null):(n.childLanes=o.childLanes,n.lanes=o.lanes,n.child=o.child,n.subtreeFlags=0,n.deletions=null,n.memoizedProps=o.memoizedProps,n.memoizedState=o.memoizedState,n.updateQueue=o.updateQueue,n.type=o.type,a=o.dependencies,n.dependencies=a===null?null:{lanes:a.lanes,firstContext:a.firstContext}),n}function $o(n,a,o,u,g,m){var k=0;if(u=n,typeof n=="function")Du(n)&&(k=1);else if(typeof n=="string")k=jS(n,o,at.current)?26:n==="html"||n==="head"||n==="body"?27:5;else t:switch(n){case Y:return n=Ie(31,o,a,g),n.elementType=Y,n.lanes=m,n;case _:return Ui(o.children,g,m,a);case S:k=8,g|=24;break;case T:return n=Ie(12,o,a,g|2),n.elementType=T,n.lanes=m,n;case j:return n=Ie(13,o,a,g),n.elementType=j,n.lanes=m,n;case P:return n=Ie(19,o,a,g),n.elementType=P,n.lanes=m,n;default:if(typeof n=="object"&&n!==null)switch(n.$$typeof){case w:case D:k=10;break t;case M:k=9;break t;case N:k=11;break t;case I:k=14;break t;case q:k=16,u=null;break t}k=29,o=Error(s(130,n===null?"null":typeof n,"")),u=null}return a=Ie(k,o,a,g),a.elementType=n,a.type=u,a.lanes=m,a}function Ui(n,a,o,u){return n=Ie(7,n,u,a),n.lanes=o,n}function Ou(n,a,o){return n=Ie(6,n,null,a),n.lanes=o,n}function Ru(n,a,o){return a=Ie(4,n.children!==null?n.children:[],n.key,a),a.lanes=o,a.stateNode={containerInfo:n.containerInfo,pendingChildren:null,implementation:n.implementation},a}var zs=[],Bs=0,Lo=null,zo=0,Je=[],tn=0,qi=null,Mn=1,Cn="";function Vi(n,a){zs[Bs++]=zo,zs[Bs++]=Lo,Lo=n,zo=a}function sp(n,a,o){Je[tn++]=Mn,Je[tn++]=Cn,Je[tn++]=qi,qi=n;var u=Mn;n=Cn;var g=32-He(u)-1;u&=~(1<<g),o+=1;var m=32-He(a)+g;if(30<m){var k=g-g%5;m=(u&(1<<k)-1).toString(32),u>>=k,g-=k,Mn=1<<32-He(a)+g|o<<g|u,Cn=m+n}else Mn=1<<m|o<<g|u,Cn=n}function ju(n){n.return!==null&&(Vi(n,1),sp(n,1,0))}function Nu(n){for(;n===Lo;)Lo=zs[--Bs],zs[Bs]=null,zo=zs[--Bs],zs[Bs]=null;for(;n===qi;)qi=Je[--tn],Je[tn]=null,Cn=Je[--tn],Je[tn]=null,Mn=Je[--tn],Je[tn]=null}var Oe=null,Zt=null,Rt=!1,Yi=null,hn=!1,$u=Error(s(519));function Gi(n){var a=Error(s(418,""));throw Ga(Ze(a,n)),$u}function ap(n){var a=n.stateNode,o=n.type,u=n.memoizedProps;switch(a[ke]=n,a[Re]=u,o){case"dialog":Tt("cancel",a),Tt("close",a);break;case"iframe":case"object":case"embed":Tt("load",a);break;case"video":case"audio":for(o=0;o<xl.length;o++)Tt(xl[o],a);break;case"source":Tt("error",a);break;case"img":case"image":case"link":Tt("error",a),Tt("load",a);break;case"details":Tt("toggle",a);break;case"input":Tt("invalid",a),vg(a,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0),So(a);break;case"select":Tt("invalid",a);break;case"textarea":Tt("invalid",a),kg(a,u.value,u.defaultValue,u.children),So(a)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||a.textContent===""+o||u.suppressHydrationWarning===!0||kx(a.textContent,o)?(u.popover!=null&&(Tt("beforetoggle",a),Tt("toggle",a)),u.onScroll!=null&&Tt("scroll",a),u.onScrollEnd!=null&&Tt("scrollend",a),u.onClick!=null&&(a.onclick=xr),a=!0):a=!1,a||Gi(n)}function lp(n){for(Oe=n.return;Oe;)switch(Oe.tag){case 5:case 13:hn=!1;return;case 27:case 3:hn=!0;return;default:Oe=Oe.return}}function Va(n){if(n!==Oe)return!1;if(!Rt)return lp(n),Rt=!0,!1;var a=n.tag,o;if((o=a!==3&&a!==27)&&((o=a===5)&&(o=n.type,o=!(o!=="form"&&o!=="button")||Qf(n.type,n.memoizedProps)),o=!o),o&&Zt&&Gi(n),lp(n),a===13){if(n=n.memoizedState,n=n!==null?n.dehydrated:null,!n)throw Error(s(317));t:{for(n=n.nextSibling,a=0;n;){if(n.nodeType===8)if(o=n.data,o==="/$"){if(a===0){Zt=rn(n.nextSibling);break t}a--}else o!=="$"&&o!=="$!"&&o!=="$?"||a++;n=n.nextSibling}Zt=null}}else a===27?(a=Zt,ki(n.type)?(n=nd,nd=null,Zt=n):Zt=a):Zt=Oe?rn(n.stateNode.nextSibling):null;return!0}function Ya(){Zt=Oe=null,Rt=!1}function op(){var n=Yi;return n!==null&&(Le===null?Le=n:Le.push.apply(Le,n),Yi=null),n}function Ga(n){Yi===null?Yi=[n]:Yi.push(n)}var Lu=X(null),Wi=null,Dn=null;function oi(n,a,o){st(Lu,a._currentValue),a._currentValue=o}function On(n){n._currentValue=Lu.current,it(Lu)}function zu(n,a,o){for(;n!==null;){var u=n.alternate;if((n.childLanes&a)!==a?(n.childLanes|=a,u!==null&&(u.childLanes|=a)):u!==null&&(u.childLanes&a)!==a&&(u.childLanes|=a),n===o)break;n=n.return}}function Bu(n,a,o,u){var g=n.child;for(g!==null&&(g.return=n);g!==null;){var m=g.dependencies;if(m!==null){var k=g.child;m=m.firstContext;t:for(;m!==null;){var E=m;m=g;for(var R=0;R<a.length;R++)if(E.context===a[R]){m.lanes|=o,E=m.alternate,E!==null&&(E.lanes|=o),zu
vendor: 1,614 bytes, line 48
48(m.return,o,n),u||(k=null);break t}m=E.next}}else if(g.tag===18){if(k=g.return,k===null)throw Error(s(341));k.lanes|=o,m=k.alternate,m!==null&&(m.lanes|=o),zu(k,o,n),k=null}else k=g.child;if(k!==null)k.return=g;else for(k=g;k!==null;){if(k===n){k=null;break}if(g=k.sibling,g!==null){g.return=k.return,k=g;break}k=k.return}g=k}}function Wa(n,a,o,u){n=null;for(var g=a,m=!1;g!==null;){if(!m){if((g.flags&524288)!==0)m=!0;else if((g.flags&262144)!==0)break}if(g.tag===10){var k=g.alternate;if(k===null)throw Error(s(387));if(k=k.memoizedProps,k!==null){var E=g.type;Fe(g.pendingProps.value,k.value)||(n!==null?n.push(E):n=[E])}}else if(g===he.current){if(k=g.alternate,k===null)throw Error(s(387));k.memoizedState.memoizedState!==g.memoizedState.memoizedState&&(n!==null?n.push(Sl):n=[Sl])}g=g.return}n!==null&&Bu(a,n,o,u),a.flags|=262144}function Bo(n){for(n=n.firstContext;n!==null;){if(!Fe(n.context._currentValue,n.memoizedValue))return!0;n=n.next}return!1}function Xi(n){Wi=n,Dn=null,n=n.dependencies,n!==null&&(n.firstContext=null)}function Se(n){return rp(Wi,n)}function Po(n,a){return Wi===null&&Xi(n),rp(n,a)}function rp(n,a){var o=a._currentValue;if(a={context:a,memoizedValue:o,next:null},Dn===null){if(n===null)throw Error(s(308));Dn=a,n.dependencies={lanes:0,firstContext:a},n.flags|=524288}else Dn=Dn.next=a;return o}var Rk=typeof AbortController<"u"?AbortController:function(){var n=[],a=this.signal={aborted:!1,addEventListener:function(o,u){n.push(u)}};this.abort=function(){a.aborted=!0,n.forEach(function(o){return o()})}},jk=e.unstable_scheduleCallback,Nk=e.unstable_NormalPriority,re={$$typeof:D,
vendor: 126,377 bytes, lines 48-49
48Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Pu(){return{controller:new Rk,data:new Map,refCount:0}}function Xa(n){n.refCount--,n.refCount===0&&jk(Nk,function(){n.controller.abort()})}var Ka=null,Hu=0,Ps=0,Hs=null;function $k(n,a){if(Ka===null){var o=Ka=[];Hu=0,Ps=Uf(),Hs={status:"pending",value:void 0,then:function(u){o.push(u)}}}return Hu++,a.then(cp,cp),a}function cp(){if(--Hu===0&&Ka!==null){Hs!==null&&(Hs.status="fulfilled");var n=Ka;Ka=null,Ps=0,Hs=null;for(var a=0;a<n.length;a++)(0,n[a])()}}function Lk(n,a){var o=[],u={status:"pending",value:null,reason:null,then:function(g){o.push(g)}};return n.then(function(){u.status="fulfilled",u.value=a;for(var g=0;g<o.length;g++)(0,o[g])(a)},function(g){for(u.status="rejected",u.reason=g,g=0;g<o.length;g++)(0,o[g])(void 0)}),u}var up=C.S;C.S=function(n,a){typeof a=="object"&&a!==null&&typeof a.then=="function"&&$k(n,a),up!==null&&up(n,a)};var Ki=X(null);function Fu(){var n=Ki.current;return n!==null?n:Ut.pooledCache}function Ho(n,a){a===null?st(Ki,Ki.current):st(Ki,a.pool)}function fp(){var n=Fu();return n===null?null:{parent:re._currentValue,pool:n}}var Za=Error(s(460)),dp=Error(s(474)),Fo=Error(s(542)),Iu={then:function(){}};function hp(n){return n=n.status,n==="fulfilled"||n==="rejected"}function Io(){}function gp(n,a,o){switch(o=n[o],o===void 0?n.push(a):o!==a&&(a.then(Io,Io),a=o),a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,mp(n),n;default:if(typeof a.status=="string")a.then(Io,Io);else{if(n=Ut,n!==null&&100<n.shellSuspendCounter)throw Error(s(482));n=a,n.status="pending",n.then(function(u){if(a.status==="pending"){var g=a;g.status="fulfilled",g.value=u}},function(u){if(a.status==="pending"){var g=a;g.status="rejected",g.reason=u}})}switch(a.status){case"fulfilled":return a.value;case"rejected":throw n=a.reason,mp(n),n}throw Qa=a,Za}}var Qa=null;function pp(){if(Qa===null)throw Error(s(459));var n=Qa;return Qa=null,n}function mp(n){if(n===Za||n===Fo)throw Error(s(483))}var ri=!1;function Uu(n){n.updateQueue={baseState:n.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qu(n,a){n=n.updateQueue,a.updateQueue===n&&(a.updateQueue={baseState:n.baseState,firstBaseUpdate:n.firstBaseUpdate,lastBaseUpdate:n.lastBaseUpdate,shared:n.shared,callbacks:null})}function ci(n){return{lane:n,tag:0,payload:null,callback:null,next:null}}function ui(n,a,o){var u=n.updateQueue;if(u===null)return null;if(u=u.shared,(jt&2)!==0){var g=u.pending;return g===null?a.next=a:(a.next=g.next,g.next=a),u.pending=a,a=No(n),np(n,null,o),a}return jo(n,u,a,o),No(n)}function Ja(n,a,o){if(a=a.updateQueue,a!==null&&(a=a.shared,(o&4194048)!==0)){var u=a.lanes;u&=n.pendingLanes,o|=u,a.lanes=o,cg(n,o)}}function Vu(n,a){var o=n.updateQueue,u=n.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var g=null,m=null;if(o=o.firstBaseUpdate,o!==null){do{var k={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};m===null?g=m=k:m=m.next=k,o=o.next}while(o!==null);m===null?g=m=a:m=m.next=a}else g=m=a;o={baseState:u.baseState,firstBaseUpdate:g,lastBaseUpdate:m,shared:u.shared,callbacks:u.callbacks},n.updateQueue=o;return}n=o.lastBaseUpdate,n===null?o.firstBaseUpdate=a:n.next=a,o.lastBaseUpdate=a}var Yu=!1;function tl(){if(Yu){var n=Hs;if(n!==null)throw n}}function el(n,a,o,u){Yu=!1;var g=n.updateQueue;ri=!1;var m=g.firstBaseUpdate,k=g.lastBaseUpdate,E=g.shared.pending;if(E!==null){g.shared.pending=null;var R=E,F=R.next;R.next=null,k===null?m=F:k.next=F,k=R;var Z=n.alternate;Z!==null&&(Z=Z.updateQueue,E=Z.lastBaseUpdate,E!==k&&(E===null?Z.firstBaseUpdate=F:E.next=F,Z.lastBaseUpdate=R))}if(m!==null){var tt=g.baseState;k=0,Z=F=R=null,E=m;do{var U=E.lane&-536870913,V=U!==E.lane;if(V?(Mt&U)===U:(u&U)===U){U!==0&&U===Ps&&(Yu=!0),Z!==null&&(Z=Z.next={lane:0,tag:E.tag,payload:E.payload,callback:null,next:null});t:{var gt=n,ft=E;U=a;var Bt=o;switch(ft.tag){case 1:if(gt=ft.payload,typeof gt=="function"){tt=gt.call(Bt,tt,U);break t}tt=gt;break t;case 3:gt.flags=gt.flags&-65537|128;case 0:if(gt=ft.payload,U=typeof gt=="function"?gt.call(Bt,tt,U):gt,U==null)break t;tt=p({},tt,U);break t;case 2:ri=!0}}U=E.callback,U!==null&&(n.flags|=64,V&&(n.flags|=8192),V=g.callbacks,V===null?g.callbacks=[U]:V.push(U))}else V={lane:U,tag:E.tag,payload:E.payload,callback:E.callback,next:null},Z===null?(F=Z=V,R=tt):Z=Z.next=V,k|=U;if(E=E.next,E===null){if(E=g.shared.pending,E===null)break;V=E,E=V.next,V.next=null,g.lastBaseUpdate=V,g.shared.pending=null}}while(!0);Z===null&&(R=tt),g.baseState=R,g.firstBaseUpdate=F,g.lastBaseUpdate=Z,m===null&&(g.shared.lanes=0),yi|=k,n.lanes=k,n.memoizedState=tt}}function xp(n,a){if(typeof n!="function")throw Error(s(191,n));n.call(a)}function yp(n,a){var o=n.callbacks;if(o!==null)for(n.callbacks=null,n=0;n<o.length;n++)xp(o[n],a)}var Fs=X(null),Uo=X(0);function bp(n,a){n=Bn,st(Uo,n),st(Fs,a),Bn=n|a.baseLanes}function Gu(){st(Uo,Bn),st(Fs,Fs.current)}function Wu(){Bn=Uo.current,it(Fs),it(Uo)}var fi=0,_t=null,Lt=null,se=null,qo=!1,Is=!1,Zi=!1,Vo=0,nl=0,Us=null,zk=0;function ee(){throw Error(s(321))}function Xu(n,a){if(a===null)return!1;for(var o=0;o<a.length&&o<n.length;o++)if(!Fe(n[o],a[o]))return!1;return!0}function Ku(n,a,o,u,g,m){return fi=m,_t=a,a.memoizedState=null,a.updateQueue=null,a.lanes=0,C.H=n===null||n.memoizedState===null?nm:im,Zi=!1,m=o(u,g),Zi=!1,Is&&(m=_p(a,o,u,g)),vp(n),m}function vp(n){C.H=Zo;var a=Lt!==null&&Lt.next!==null;if(fi=0,se=Lt=_t=null,qo=!1,nl=0,Us=null,a)throw Error(s(300));n===null||pe||(n=n.dependencies,n!==null&&Bo(n)&&(pe=!0))}function _p(n,a,o,u){_t=n;var g=0;do{if(Is&&(Us=null),nl=0,Is=!1,25<=g)throw Error(s(301));if(g+=1,se=Lt=null,n.updateQueue!=null){var m=n.updateQueue;m.lastEffect=null,m.events=null,m.stores=null,m.memoCache!=null&&(m.memoCache.index=0)}C.H=qk,m=a(o,u)}while(Is);return m}function Bk(){var n=C.H,a=n.useState()[0];return a=typeof a.then=="function"?il(a):a,n=n.useState()[0],(Lt!==null?Lt.memoizedState:null)!==n&&(_t.flags|=1024),a}function Zu(){var n=Vo!==0;return Vo=0,n}function Qu(n,a,o){a.updateQueue=n.updateQueue,a.flags&=-2053,n.lanes&=~o}function Ju(n){if(qo){for(n=n.memoizedState;n!==null;){var a=n.queue;a!==null&&(a.pending=null),n=n.next}qo=!1}fi=0,se=Lt=_t=null,Is=!1,nl=Vo=0,Us=null}function Ne(){var n={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return se===null?_t.memoizedState=se=n:se=se.next=n,se}function ae(){if(Lt===null){var n=_t.alternate;n=n!==null?n.memoizedState:null}else n=Lt.next;var a=se===null?_t.memoizedState:se.next;if(a!==null)se=a,Lt=n;else{if(n===null)throw _t.alternate===null?Error(s(467)):Error(s(310));Lt=n,n={memoizedState:Lt.memoizedState,baseState:Lt.baseState,baseQueue:Lt.baseQueue,queue:Lt.queue,next:null},se===null?_t.memoizedState=se=n:se=se.next=n}return se}function tf(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function il(n){var a=nl;return nl+=1,Us===null&&(Us=[]),n=gp(Us,n,a),a=_t,(se===null?a.memoizedState:se.next)===null&&(a=a.alternate,C.H=a===null||a.memoizedState===null?nm:im),n}function Yo(n){if(n!==null&&typeof n=="object"){if(typeof n.then=="function")return il(n);if(n.$$typeof===D)return Se(n)}throw Error(s(438,String(n)))}function ef(n){var a=null,o=_t.updateQueue;if(o!==null&&(a=o.memoCache),a==null){var u=_t.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(a={data:u.data.map(function(g){return g.slice()}),index:0})))}if(a==null&&(a={data:[],index:0}),o===null&&(o=tf(),_t.updateQueue=o),o.memoCache=a,o=a.data[a.index],o===void 0)for(o=a.data[a.index]=Array(n),u=0;u<n;u++)o[u]=K;return a.index++,o}function Rn(n,a){return typeof a=="function"?a(n):a}function Go(n){var a=ae();return nf(a,Lt,n)}function nf(n,a,o){var u=n.queue;if(u===null)throw Error(s(311));u.lastRenderedReducer=o;var g=n.baseQueue,m=u.pending;if(m!==null){if(g!==null){var k=g.next;g.next=m.next,m.next=k}a.baseQueue=g=m,u.pending=null}if(m=n.baseState,g===null)n.memoizedState=m;else{a=g.next;var E=k=null,R=null,F=a,Z=!1;do{var tt=F.lane&-536870913;if(tt!==F.lane?(Mt&tt)===tt:(fi&tt)===tt){var U=F.revertLane;if(U===0)R!==null&&(R=R.next={lane:0,revertLane:0,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null}),tt===Ps&&(Z=!0);else if((fi&U)===U){F=F.next,U===Ps&&(Z=!0);continue}else tt={lane:0,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},R===null?(E=R=tt,k=m):R=R.next=tt,_t.lanes|=U,yi|=U;tt=F.action,Zi&&o(m,tt),m=F.hasEagerState?F.eagerState:o(m,tt)}else U={lane:tt,revertLane:F.revertLane,action:F.action,hasEagerState:F.hasEagerState,eagerState:F.eagerState,next:null},R===null?(E=R=U,k=m):R=R.next=U,_t.lanes|=tt,yi|=tt;F=F.next}while(F!==null&&F!==a);if(R===null?k=m:R.next=E,!Fe(m,n.memoizedState)&&(pe=!0,Z&&(o=Hs,o!==null)))throw o;n.memoizedState=m,n.baseState=k,n.baseQueue=R,u.lastRenderedState=m}return g===null&&(u.lanes=0),[n.memoizedState,u.dispatch]}function sf(n){var a=ae(),o=a.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=n;var u=o.dispatch,g=o.pending,m=a.memoizedState;if(g!==null){o.pending=null;var k=g=g.next;do m=n(m,k.action),k=k.next;while(k!==g);Fe(m,a.memoizedState)||(pe=!0),a.memoizedState=m,a.baseQueue===null&&(a.baseState=m),o.lastRenderedState=m}return[m,u]}function kp(n,a,o){var u=_t,g=ae(),m=Rt;if(m){if(o===void 0)throw Error(s(407));o=o()}else o=a();var k=!Fe((Lt||g).memoizedState,o);k&&(g.memoizedState=o,pe=!0),g=g.queue;var E=Ep.bind(null,u,g,n);if(sl(2048,8,E,[n]),g.getSnapshot!==a||k||se!==null&&se.memoizedState.tag&1){if(u.flags|=2048,qs(9,Wo(),Tp.bind(null,u,g,o,a),null),Ut===null)throw Error(s(349));m||(fi&124)!==0||Sp(u,a,o)}return o}function Sp(n,a,o){n.flags|=16384,n={getSnapshot:a,value:o},a=_t.updateQueue,a===null?(a=tf(),_t.updateQueue=a,a.stores=[n]):(o=a.stores,o===null?a.stores=[n]:o.push(n))}function Tp(n,a,o,u){a.value=o,a.getSnapshot=u,wp(a)&&Ap(n)}function Ep(n,a,o){return o(function(){wp(a)&&Ap(n)})}function wp(n){var a=n.getSnapshot;n=n.value;try{var o=a();return!Fe(n,o)}catch{return!0}}function Ap(n){var a=$s(n,2);a!==null&&Ge(a,n,2)}function af(n){var a=Ne();if(typeof n=="function"){var o=n;if(n=o(),Zi){si(!0);try{o()}finally{si(!1)}}}return a.memoizedState=a.baseState=n,a.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:n},a}function Mp(n,a,o,u){return n.baseState=o,nf(n,Lt,typeof u=="function"?u:Rn)}function Pk(n,a,o,u,g){if(Ko(n))throw Error(s(485));if(n=a.action,n!==null){var m={payload:g,action:n,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(k){m.listeners.push(k)}};C.T!==null?o(!0):m.isTransition=!1,u(m),o=a.pending,o===null?(m.next=a.pending=m,Cp(a,m)):(m.next=o.next,a.pending=o.next=m)}}function Cp(n,a){var o=a.action,u=a.payload,g=n.state;if(a.isTransition){var m=C.T,k={};C.T=k;try{var E=o(g,u),R=C.S;R!==null&&R(k,E),Dp(n,a,E)}catch(F){lf(n,a,F)}finally{C.T=m}}else try{m=o(g,u),Dp(n,a,m)}catch(F){lf(n,a,F)}}function Dp(n,a,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){Op(n,a,u)},function(u){return lf(n,a,u)}):Op(n,a,o)}function Op(n,a,o){a.status="fulfilled",a.value=o,Rp(a),n.state=o,a=n.pending,a!==null&&(o=a.next,o===a?n.pending=null:(o=o.next,a.next=o,Cp(n,o)))}function lf(n,a,o){var u=n.pending;if(n.pending=null,u!==null){u=u.next;do a.status="rejected",a.reason=o,Rp(a),a=a.next;while(a!==u)}n.action=null}function Rp(n){n=n.listeners;for(var a=0;a<n.length;a++)(0,n[a])()}function jp(n,a){return a}function Np(n,a){if(Rt){var o=Ut.formState;if(o!==null){t:{var u=_t;if(Rt){if(Zt){e:{for(var g=Zt,m=hn;g.nodeType!==8;){if(!m){g=null;break e}if(g=rn(g.nextSibling),g===null){g=null;break e}}m=g.data,g=m==="F!"||m==="F"?g:null}if(g){Zt=rn(g.nextSibling),u=g.data==="F!";break t}}Gi(u)}u=!1}u&&(a=o[0])}}return o=Ne(),o.memoizedState=o.baseState=a,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jp,lastRenderedState:a},o.queue=u,o=Jp.bind(null,_t,u),u.dispatch=o,u=af(!1),m=ff.bind(null,_t,!1,u.queue),u=Ne(),g={state:a,dispatch:null,action:n,pending:null},u.queue=g,o=Pk.bind(null,_t,g,m,o),g.dispatch=o,u.memoizedState=n,[a,o,!1]}function $p(n){var a=ae();return Lp(a,Lt,n)}function Lp(n,a,o){if(a=nf(n,a,jp)[0],n=Go(Rn)[0],typeof a=="object"&&a!==null&&typeof a.then=="function")try{var u=il(a)}catch(k){throw k===Za?Fo:k}else u=a;a=ae();var g=a.queue,m=g.dispatch;return o!==a.memoizedState&&(_t.flags|=2048,qs(9,Wo(),Hk.bind(null,g,o),null)),[u,m,n]}function Hk(n,a){n.action=a}function zp(n){var a=ae(),o=Lt;if(o!==null)return Lp(a,o,n);ae(),a=a.memoizedState,o=ae();var u=o.queue.dispatch;return o.memoizedState=n,[a,u,!1]}function qs(n,a,o,u){return n={tag:n,create:o,deps:u,inst:a,next:null},a=_t.updateQueue,a===null&&(a=tf(),_t.updateQueue=a),o=a.lastEffect,o===null?a.lastEffect=n.next=n:(u=o.next,o.next=n,n.next=u,a.lastEffect=n),n}function Wo(){return{destroy:void 0,resource:void 0}}function Bp(){return ae().memoizedState}function Xo(n,a,o,u){var g=Ne();u=u===void 0?null:u,_t.flags|=n,g.memoizedState=qs(1|a,Wo(),o,u)}function sl(n,a,o,u){var g=ae();u=u===void 0?null:u;var m=g.memoizedState.inst;Lt!==null&&u!==null&&Xu(u,Lt.memoizedState.deps)?g.memoizedState=qs(a,m,o,u):(_t.flags|=n,g.memoizedState=qs(1|a,m,o,u))}function Pp(n,a){Xo(8390656,8,n,a)}function Hp(n,a){sl(2048,8,n,a)}function Fp(n,a){return sl(4,2,n,a)}function Ip(n,a){return sl(4,4,n,a)}function Up(n,a){if(typeof a=="function"){n=n();var o=a(n);return function(){typeof o=="function"?o():a(null)}}if(a!=null)return n=n(),a.current=n,function(){a.current=null}}function qp(n,a,o){o=o!=null?o.concat([n]):null,sl(4,4,Up.bind(null,a,n),o)}function of(){}function Vp(n,a){var o=ae();a=a===void 0?null:a;var u=o.memoizedState;return a!==null&&Xu(a,u[1])?u[0]:(o.memoizedState=[n,a],n)}function Yp(n,a){var o=ae();a=a===void 0?null:a;var u=o.memoizedState;if(a!==null&&Xu(a,u[1]))return u[0];if(u=n(),Zi){si(!0);try{n()}finally{si(!1)}}return o.memoizedState=[u,a],u}function rf(n,a,o){return o===void 0||(fi&1073741824)!==0?n.memoizedState=a:(n.memoizedState=o,n=Xm(),_t.lanes|=n,yi|=n,o)}function Gp(n,a,o,u){return Fe(o,a)?o:Fs.current!==null?(n=rf(n,o,u),Fe(n,a)||(pe=!0),n):(fi&42)===0?(pe=!0,n.memoizedState=o):(n=Xm(),_t.lanes|=n,yi|=n,a)}function Wp(n,a,o,u,g){var m=$.p;$.p=m!==0&&8>m?m:8;var k=C.T,E={};C.T=E,ff(n,!1,a,o);try{var R=g(),F=C.S;if(F!==null&&F(E,R),R!==null&&typeof R=="object"&&typeof R.then=="function"){var Z=Lk(R,u);al(n,a,Z,Ye(n))}else al(n,a,u,Ye(n))}catch(tt){al(n,a,{then:function(){},status:"rejected",reason:tt},Ye())}finally{$.p=m,C.T=k}}function Fk(){}function cf(n,a,o,u){if(n.tag!==5)throw Error(s(476));var g=Xp(n).queue;Wp(n,g,a,W,o===null?Fk:function(){return Kp(n),o(u)})}function Xp(n){var a=n.memoizedState;if(a!==null)return a;a={memoizedState:W,baseState:W,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:W},next:null};var o={};return a.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Rn,lastRenderedState:o},next:null},n.memoizedState=a,n=n.alternate,n!==null&&(n.memoizedState=a),a}function Kp(n){var a=Xp(n).next.queue;al(n,a,{},Ye())}function uf(){return Se(Sl)}function Zp(){return ae().memoizedState}function Qp(){return ae().memoizedState}function Ik(n){for(var a=n.return;a!==null;){switch(a.tag){case 24:case 3:var o=Ye();n=ci(o);var u=ui(a,n,o);u!==null&&(Ge(u,a,o),Ja(u,a,o)),a={cache:Pu()},n.payload=a;return}a=a.return}}function Uk(n,a,o){var u=Ye();o={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null},Ko(n)?tm(a,o):(o=Cu(n,a,o,u),o!==null&&(Ge(o,n,u),em(o,a,u)))}function Jp(n,a,o){var u=Ye();al(n,a,o,u)}function al(n,a,o,u){var g={lane:u,revertLane:0,action:o,hasEagerState:!1,eagerState:null,next:null};if(Ko(n))tm(a,g);else{var m=n.alternate;if(n.lanes===0&&(m===null||m.lanes===0)&&(m=a.lastRenderedReducer,m!==null))try{var k=a.lastRenderedState,E=m(k,o);if(g.hasEagerState=!0,g.eagerState=E,Fe(E,k))return jo(n,a,g,0),Ut===null&&Ro(),!1}catch{}finally{}if(o=Cu(n,a,g,u),o!==null)return Ge(o,n,u),em(o,a,u),!0}return!1}function ff(n,a,o,u){if(u={lane:2,revertLane:Uf(),action:u,hasEagerState:!1,eagerState:null,next:null},Ko(n)){if(a)throw Error(s(479))}else a=Cu(n,o,u,2),a!==null&&Ge(a,n,2)}function Ko(n){var a=n.alternate;return n===_t||a!==null&&a===_t}function tm(n,a){Is=qo=!0;var o=n.pending;o===null?a.next=a:(a.next=o.next,o.next=a),n.pending=a}function em(n,a,o){if((o&4194048)!==0){var u=a.lanes;u&=n.pendingLanes,o|=u,a.lanes=o,cg(n,o)}}var Zo={readContext:Se,use:Yo,useCallback:ee,useContext:ee,useEffect:ee,useImperativeHandle:ee,useLayoutEffect:ee,useInsertionEffect:ee,useMemo:ee,useReducer:ee,useRef:ee,useState:ee,useDebugValue:ee,useDeferredValue:ee,useTransition:ee,useSyncExternalStore:ee,useId:ee,useHostTransitionStatus:ee,useFormState:ee,useActionState:ee,useOptimistic:ee,useMemoCache:ee,useCacheRefresh:ee},nm={readContext:Se,use:Yo,useCallback:function(n,a){return Ne().memoizedState=[n,a===void 0?null:a],n},useContext:Se,useEffect:Pp,useImperativeHandle:function(n,a,o){o=o!=null?o.concat([n]):null,Xo(4194308,4,Up.bind(null,a,n),o)},useLayoutEffect:function(n,a){return Xo(4194308,4,n,a)},useInsertionEffect:function(n,a){Xo(4,2,n,a)},useMemo:function(n,a){var o=Ne();a=a===void 0?null:a;var u=n();if(Zi){si(!0);try{n()}finally{si(!1)}}return o.memoizedState=[u,a],u},useReducer:function(n,a,o){var u=Ne();if(o!==void 0){var g=o(a);if(Zi){si(!0);try{o(a)}finally{si(!1)}}}else g=a;return u.memoizedState=u.baseState=g,n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:n,lastRenderedState:g},u.queue=n,n=n.dispatch=Uk.bind(null,_t,n),[u.memoizedState,n]},useRef:function(n){var a=Ne();return n={current:n},a.memoizedState=n},useState:function(n){n=af(n);var a=n.queue,o=Jp.bind(null,_t,a);return a.dispatch=o,[n.memoizedState,o]},useDebugValue:of,useDeferredValue:function(n,a){var o=Ne();return rf(o,n,a)},useTransition:function(){var n=af(!1);return n=Wp.bind(null,_t,n.queue,!0,!1),Ne().memoizedState=n,[!1,n]},useSyncExternalStore:function(n,a,o){var u=_t,g=Ne();if(Rt){if(o===void 0)throw Error(s(407));o=o()}else{if(o=a(),Ut===null)throw Error(s(349));(Mt&124)!==0||Sp(u,a,o)}g.memoizedState=o;var m={value:o,getSnapshot:a};return g.queue=m,Pp(Ep.bind(null,u,m,n),[n]),u.flags|=2048,qs(9,Wo(),Tp.bind(null,u,m,o,a),null),o},useId:function(){var n=Ne(),a=Ut.identifierPrefix;if(Rt){var o=Cn,u=Mn;o=(u&~(1<<32-He(u)-1)).toString(32)+o,a="«"+a+"R"+o,o=Vo++,0<o&&(a+="H"+o.toString(32)),a+="»"}else o=zk++,a="«"+a+"r"+o.toString(32)+"»";return n.memoizedState=a},useHostTransitionStatus:uf,useFormState:Np,useActionState:Np,useOptimistic:function(n){var a=Ne();a.memoizedState=a.baseState=n;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return a.queue=o,a=ff.bind(null,_t,!0,o),o.dispatch=a,[n,a]},useMemoCache:ef,useCacheRefresh:function(){return Ne().memoizedState=Ik.bind(null,_t)}},im={readContext:Se,use:Yo,useCallback:Vp,useContext:Se,useEffect:Hp,useImperativeHandle:qp,useInsertionEffect:Fp,useLayoutEffect:Ip,useMemo:Yp,useReducer:Go,useRef:Bp,useState:function(){return Go(Rn)},useDebugValue:of,useDeferredValue:function(n,a){var o=ae();return Gp(o,Lt.memoizedState,n,a)},useTransition:function(){var n=Go(Rn)[0],a=ae().memoizedState;return[typeof n=="boolean"?n:il(n),a]},useSyncExternalStore:kp,useId:Zp,useHostTransitionStatus:uf,useFormState:$p,useActionState:$p,useOptimistic:function(n,a){var o=ae();return Mp(o,Lt,n,a)},useMemoCache:ef,useCacheRefresh:Qp},qk={readContext:Se,use:Yo,useCallback:Vp,useContext:Se,useEffect:Hp,useImperativeHandle:qp,useInsertionEffect:Fp,useLayoutEffect:Ip,useMemo:Yp,useReducer:sf,useRef:Bp,useState:function(){return sf(Rn)},useDebugValue:of,useDeferredValue:function(n,a){var o=ae();return Lt===null?rf(o,n,a):Gp(o,Lt.memoizedState,n,a)},useTransition:function(){var n=sf(Rn)[0],a=ae().memoizedState;return[typeof n=="boolean"?n:il(n),a]},useSyncExternalStore:kp,useId:Zp,useHostTransitionStatus:uf,useFormState:zp,useActionState:zp,useOptimistic:function(n,a){var o=ae();return Lt!==null?Mp(o,Lt,n,a):(o.baseState=n,[n,o.queue.dispatch])},useMemoCache:ef,useCacheRefresh:Qp},Vs=null,ll=0;function Qo(n){var a=ll;return ll+=1,Vs===null&&(Vs=[]),gp(Vs,n,a)}function ol(n,a){a=a.props.ref,n.ref=a!==void 0?a:null}function Jo(n,a){throw a.$$typeof===x?Error(s(525)):(n=Object.prototype.toString.call(a),Error(s(31,n==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":n)))}function sm(n){var a=n._init;return a(n._payload)}function am(n){function a(B,L){if(n){var H=B.deletions;H===null?(B.deletions=[L],B.flags|=16):H.push(L)}}function o(B,L){if(!n)return null;for(;L!==null;)a(B,L),L=L.sibling;return null}function u(B){for(var L=new Map;B!==null;)B.key!==null?L.set(B.key,B):L.set(B.index,B),B=B.sibling;return L}function g(B,L){return B=An(B,L),B.index=0,B.sibling=null,B}function m(B,L,H){return B.index=H,n?(H=B.alternate,H!==null?(H=H.index,H<L?(B.flags|=67108866,L):H):(B.flags|=67108866,L)):(B.flags|=1048576,L)}function k(B){return n&&B.alternate===null&&(B.flags|=67108866),B}function E(B,L,H,J){return L===null||L.tag!==6?(L=Ou(H,B.mode,J),L.return=B,L):(L=g(L,H),L.return=B,L)}function R(B,L,H,J){var rt=H.type;return rt===_?Z(B,L,H.props.children,J,H.key):L!==null&&(L.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===q&&sm(rt)===L.type)?(L=g(L,H.props),ol(L,H),L.return=B,L):(L=$o(H.type,H.key,H.props,null,B.mode,J),ol(L,H),L.return=B,L)}function F(B,L,H,J){return L===null||L.tag!==4||L.stateNode.containerInfo!==H.containerInfo||L.stateNode.implementation!==H.implementation?(L=Ru(H,B.mode,J),L.return=B,L):(L=g(L,H.children||[]),L.return=B,L)}function Z(B,L,H,J,rt){return L===null||L.tag!==7?(L=Ui(H,B.mode,J,rt),L.return=B,L):(L=g(L,H),L.return=B,L)}function tt(B,L,H){if(typeof L=="string"&&L!==""||typeof L=="number"||typeof L=="bigint")return L=Ou(""+L,B.mode,H),L.return=B,L;if(typeof L=="object"&&L!==null){switch(L.$$typeof){case y:return H=$o(L.type,L.key,L.props,null,B.mode,H),ol(H,L),H.return=B,H;case v:return L=Ru(L,B.mode,H),L.return=B,L;case q:var J=L._init;return L=J(L._payload),tt(B,L,H)}if(z(L)||nt(L))return L=Ui(L,B.mode,H,null),L.return=B,L;if(typeof L.then=="function")return tt(B,Qo(L),H);if(L.$$typeof===D)return tt(B,Po(B,L),H);Jo(B,L)}return null}function U(B,L,H,J){var rt=L!==null?L.key:null;if(typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint")return rt!==null?null:E(B,L,""+H,J);if(typeof H=="object"&&H!==null){switch(H.$$typeof){case y:return H.key===rt?R(B,L,H,J):null;case v:return H.key===rt?F(B,L,H,J):null;case q:return rt=H._init,H=rt(H._payload),U(B,L,H,J)}if(z(H)||nt(H))return rt!==null?null:Z(B,L,H,J,null);if(typeof H.then=="function")return U(B,L,Qo(H),J);if(H.$$typeof===D)return U(B,L,Po(B,H),J);Jo(B,H)}return null}function V(B,L,H,J,rt){if(typeof J=="string"&&J!==""||typeof J=="number"||typeof J=="bigint")return B=B.get(H)||null,E(L,B,""+J,rt);if(typeof J=="object"&&J!==null){switch(J.$$typeof){case y:return B=B.get(J.key===null?H:J.key)||null,R(L,B,J,rt);case v:return B=B.get(J.key===null?H:J.key)||null,F(L,B,J,rt);case q:var kt=J._init;return J=kt(J._payload),V(B,L,H,J,rt)}if(z(J)||nt(J))return B=B.get(H)||null,Z(L,B,J,rt,null);if(typeof J.then=="function")return V(B,L,H,Qo(J),rt);if(J.$$typeof===D)return V(B,L,H,Po(L,J),rt);Jo(L,J)}return null}function gt(B,L,H,J){for(var rt=null,kt=null,ct=L,dt=L=0,xe=null;ct!==null&&dt<H.length;dt++){ct.index>dt?(xe=ct,ct=null):xe=ct.sibling;var Dt=U(B,ct,H[dt],J);if(Dt===null){ct===null&&(ct=xe);break}n&&ct&&Dt.alternate===null&&a(B,ct),L=m(Dt,L,dt),kt===null?rt=Dt:kt.sibling=Dt,kt=Dt,ct=xe}if(dt===H.length)return o(B,ct),Rt&&Vi(B,dt),rt;if(ct===null){for(;dt<H.length;dt++)ct=tt(B,H[dt],J),ct!==null&&(L=m(ct,L,dt),kt===null?rt=ct:kt.sibling=ct,kt=ct);return Rt&&Vi(B,dt),rt}for(ct=u(ct);dt<H.length;dt++)xe=V(ct,B,dt,H[dt],J),xe!==null&&(n&&xe.alternate!==null&&ct.delete(xe.key===null?dt:xe.key),L=m(xe,L,dt),kt===null?rt=xe:kt.sibling=xe,kt=xe);return n&&ct.forEach(function(Ai){return a(B,Ai)}),Rt&&Vi(B,dt),rt}function ft(B,L,H,J){if(H==null)throw Error(s(151));for(var rt=null,kt=null,ct=L,dt=L=0,xe=null,Dt=H.next();ct!==null&&!Dt.done;dt++,Dt=H.next()){ct.index>dt?(xe=ct,ct=null):xe=ct.sibling;var Ai=U(B,ct,Dt.value,J);if(Ai===null){ct===null&&(ct=xe);break}n&&ct&&Ai.alternate===null&&a(B,ct),L=m(Ai,L,dt),kt===null?rt=Ai:kt.sibling=Ai,kt=Ai,ct=xe}if(Dt.done)return o(B,ct),Rt&&Vi(B,dt),rt;if(ct===null){for(;!Dt.done;dt++,Dt=H.next())Dt=tt(B,Dt.value,J),Dt!==null&&(L=m(Dt,L,dt),kt===null?rt=Dt:kt.sibling=Dt,kt=Dt);return Rt&&Vi(B,dt),rt}for(ct=u(ct);!Dt.done;dt++,Dt=H.next())Dt=V(ct,B,dt,Dt.value,J),Dt!==null&&(n&&Dt.alternate!==null&&ct.delete(Dt.key===null?dt:Dt.key),L=m(Dt,L,dt),kt===null?rt=Dt:kt.sibling=Dt,kt=Dt);return n&&ct.forEach(function(VS){return a(B,VS)}),Rt&&Vi(B,dt),rt}function Bt(B,L,H,J){if(typeof H=="object"&&H!==null&&H.type===_&&H.key===null&&(H=H.props.children),typeof H=="object"&&H!==null){switch(H.$$typeof){case y:t:{for(var rt=H.key;L!==null;){if(L.key===rt){if(rt=H.type,rt===_){if(L.tag===7){o(B,L.sibling),J=g(L,H.props.children),J.return=B,B=J;break t}}else if(L.elementType===rt||typeof rt=="object"&&rt!==null&&rt.$$typeof===q&&sm(rt)===L.type){o(B,L.sibling),J=g(L,H.props),ol(J,H),J.return=B,B=J;break t}o(B,L);break}else a(B,L);L=L.sibling}H.type===_?(J=Ui(H.props.children,B.mode,J,H.key),J.return=B,B=J):(J=$o(H.type,H.key,H.props,null,B.mode,J),ol(J,H),J.return=B,B=J)}return k(B);case v:t:{for(rt=H.key;L!==null;){if(L.key===rt)if(L.tag===4&&L.stateNode.containerInfo===H.containerInfo&&L.stateNode.implementation===H.implementation){o(B,L.sibling),J=g(L,H.children||[]),J.return=B,B=J;break t}else{o(B,L);break}else a(B,L);L=L.sibling}J=Ru(H,B.mode,J),J.return=B,B=J}return k(B);case q:return rt=H._init,H=rt(H._payload),Bt(B,L,H,J)}if(z(H))return gt(B,L,H,J);if(nt(H)){if(rt=nt(H),typeof rt!="function")throw Error(s(150));return H=rt.call(H),ft(B,L,H,J)}if(typeof H.then=="function")return Bt(B,L,Qo(H),J);if(H.$$typeof===D)return Bt(B,L,Po(B,H),J);Jo(B,H)}return typeof H=="string"&&H!==""||typeof H=="number"||typeof H=="bigint"?(H=""+H,L!==null&&L.tag===6?(o(B,L.sibling),J=g(L,H),J.return=B,B=J):(o(B,L),J=Ou(H,B.mode,J),J.return=B,B=J),k(B)):o(B,L)}return function(B,L,H,J){try{ll=0;var rt=Bt(B,L,H,J);return Vs=null,rt}catch(ct){if(ct===Za||ct===Fo)throw ct;var kt=Ie(29,ct,null,B.mode);return kt.lanes=J,kt.return=B,kt}finally{}}}var Ys=am(!0),lm=am(!1),en=X(null),gn=null;function di(n){var a=n.alternate;st(ce,ce.current&1),st(en,n),gn===null&&(a===null||Fs.current!==null||a.memoizedState!==null)&&(gn=n)}function om(n){if(n.tag===22){if(st(ce,ce.current),st(en,n),gn===null){var a=n.alternate;a!==null&&a.memoizedState!==null&&(gn=n)}}else hi()}function hi(){st(ce,ce.current),st(en,en.current)}function jn(n){it(en),gn===n&&(gn=null),it(ce)}var ce=X(0);function tr(n){for(var a=n;a!==null;){if(a.tag===13){var o=a.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||o.data==="$?"||ed(o)))return a}else if(a.tag===19&&a.memoizedProps.revealOrder!==void 0){if((a.flags&128)!==0)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}function df(n,a,o,u){a=n.memoizedState,o=o(u,a),o=o==null?a:p({},a,o),n.memoizedState=o,n.lanes===0&&(n.updateQueue.baseState=o)}var hf={enqueueSetState:function(n,a,o){n=n._reactInternals;var u=Ye(),g=ci(u);g.payload=a,o!=null&&(g.callback=o),a=ui(n,g,u),a!==null&&(Ge(a,n,u),Ja(a,n,u))},enqueueReplaceState:function(n,a,o){n=n._reactInternals;var u=Ye(),g=ci(u);g.tag=1,g.payload=a,o!=null&&(g.callback=o),a=ui(n,g,u),a!==null&&(Ge(a,n,u),Ja(a,n,u))},enqueueForceUpdate:function(n,a){n=n._reactInternals;var o=Ye(),u=ci(o);u.tag=2,a!=null&&(u.callback=a),a=ui(n,u,o),a!==null&&(Ge(a,n,o),Ja(a,n,o))}};function rm(n,a,o,u,g,m,k){return n=n.stateNode,typeof n.shouldComponentUpdate=="function"?n.shouldComponentUpdate(u,m,k):a.prototype&&a.prototype.isPureReactComponent?!Ua(o,u)||!Ua(g,m):!0}function cm(n,a,o,u){n=a.state,typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(o,u),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(o,u),a.state!==n&&hf.enqueueReplaceState(a,a.state,null)}function Qi(n,a){var o=a;if("ref"in a){o={};for(var u in a)u!=="ref"&&(o[u]=a[u])}if(n=n.defaultProps){o===a&&(o=p({},o));for(var g in n)o[g]===void 0&&(o[g]=n[g])}return o}var er=typeof reportError=="function"?reportError:function(n){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var a=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof n=="object"&&n!==null&&typeof n.message=="string"?String(n.message):String(n),error:n});if(!window.dispatchEvent(a))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",n);return}console.error(n)};function um(n){er(n)}function fm(n){console.error(n)}function dm(n){er(n)}function nr(n,a){try{var o=n.onUncaughtError;o(a.value,{componentStack:a.stack})}catch(u){setTimeout(function(){throw u})}}function hm(n,a,o){try{var u=n.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:a.tag===1?a.stateNode:null})}catch(g){setTimeout(function(){throw g})}}function gf(n,a,o){return o=ci(o),o.tag=3,o.payload={element:null},o.callback=function(){nr(n,a)},o}function gm(n){return n=ci(n),n.tag=3,n}function pm(n,a,o,u){var g=o.type.getDerivedStateFromError;if(typeof g=="function"){var m=u.value;n.payload=function(){return g(m)},n.callback=function(){hm(a,o,u)}}var k=o.stateNode;k!==null&&typeof k.componentDidCatch=="function"&&(n.callback=function(){hm(a,o,u),typeof g!="function"&&(bi===null?bi=new Set([this]):bi.add(this));var E=u.stack;this.componentDidCatch(u.value,{componentStack:E!==null?E:""})})}function Vk(n,a,o,u,g){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(a=o.alternate,a!==null&&Wa(a,o,g,!0),o=en.current,o!==null){switch(o.tag){case 13:return gn===null?Bf():o.alternate===null&&Qt===0&&(Qt=3),o.flags&=-257,o.flags|=65536,o.lanes=g,u===Iu?o.flags|=16384:(a=o.updateQueue,a===null?o.updateQueue=new Set([u]):a.add(u),Hf(n,u,g)),!1;case 22:return o.flags|=65536,u===Iu?o.flags|=16384:(a=o.updateQueue,a===null?(a={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=a):(o=a.retryQueue,o===null?a.retryQueue=new Set([u]):o.add(u)),Hf(n,u,g)),!1}throw Error(s(435,o.tag))}return Hf(n,u,g),Bf(),!1}if(Rt)return a=en.current,a!==null?((a.flags&65536)===0&&(a.flags|=256),a.flags|=65536,a.lanes=g,u!==$u&&(n=Error(s(422),{cause:u}),Ga(Ze(n,o)))):(u!==$u&&(a=Error(s(423),{cause:u}),Ga(Ze(a,o))),n=n.current.alternate,n.flags|=65536,g&=-g,n.lanes|=g,u=Ze(u,o),g=gf(n.stateNode,u,g),Vu(n,g),Qt!==4&&(Qt=2)),!1;var m=Error(s(520),{cause:u});if(m=Ze(m,o),gl===null?gl=[m]:gl.push(m),Qt!==4&&(Qt=2),a===null)return!0;u=Ze(u,o),o=a;do{switch(o.tag){case 3:return o.flags|=65536,n=g&-g,o.lanes|=n,n=gf(o.stateNode,u,n),Vu(o,n),!1;case 1:if(a=o.type,m=o.stateNode,(o.flags&128)===0&&(typeof a.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(bi===null||!bi.has(m))))return o.flags|=65536,g&=-g,o.lanes|=g,g=gm(g),pm(g,n,o,u),Vu(o,g),!1}o=o.return}while(o!==null);return!1}var mm=Error(s(461)),pe=!1;function be(n,a,o,u){a.child=n===null?lm(a,null,o,u):Ys(a,n.child,o,u)}function xm(n,a,o,u,g){o=o.render;var m=a.ref;if("ref"in u){var k={};for(var E in u)E!=="ref"&&(k[E]=u[E])}else k=u;return Xi(a),u=Ku(n,a,o,k,m,g),E=Zu(),n!==null&&!pe?(Qu(n,a,g),Nn(n,a,g)):(Rt&&E&&ju(a),a.flags|=1,be(n,a,u,g),a.child)}function ym(n,a,o,u,g){if(n===null){var m=o.type;return typeof m=="function"&&!Du(m)&&m.defaultProps===void 0&&o.compare===null?(a.tag=15,a.type=m,bm(n,a,m,u,g)):(n=$o(o.type,null,u,a,a.mode,g),n.ref=a.ref,n.return=a,a.child=n)}if(m=n.child,!kf(n,g)){var k=m.memoizedProps;if(o=o.compare,o=o!==null?o:Ua,o(k,u)&&n.ref===a.ref)return Nn(n,a,g)}return a.flags|=1,n=An(m,u),n.ref=a.ref,n.return=a,a.child=n}function bm(n,a,o,u,g){if(n!==null){var m=n.memoizedProps;if(Ua(m,u)&&n.ref===a.ref)if(pe=!1,a.pendingProps=u=m,kf(n,g))(n.flags&131072)!==0&&(pe=!0);else return a.lanes=n.lanes,Nn(n,a,g)}return pf(n,a,o,u,g)}function vm(n,a,o){var u=a.pendingProps,g=u.children,m=n!==null?n.memoizedState:null;if(u.mode==="hidden"){if((a.flags&128)!==0){if(u=m!==null?m.baseLanes|o:o,n!==null){for(g=a.child=n.child,m=0;g!==null;)m=m|g.lanes|g.childLanes,g=g.sibling;a.childLanes=m&~u}else a.childLanes=0,a.child=null;return _m(n,a,u,o)}if((o&536870912)!==0)a.memoizedState={baseLanes:0,cachePool:null},n!==null&&Ho(a,m!==null?m.cachePool:null),m!==null?bp(a,m):Gu(),om(a);else return a.lanes=a.childLanes=536870912,_m(n,a,m!==null?m.baseLanes|o:o,o)}else m!==null?(Ho(a,m.cachePool),bp(a,m),hi(),a.memoizedState=null):(n!==null&&Ho(a,null),Gu(),hi());return be(n,a,g,o),a.child}function _m(n,a,o,u){var g=Fu();return g=g===null?null:{parent:re._currentValue,pool:g},a.memoizedState={baseLanes:o,cachePool:g},n!==null&&Ho(a,null),Gu(),om(a),n!==null&&Wa(n,a,u,!0),null}function ir(n,a){var o=a.ref;if(o===null)n!==null&&n.ref!==null&&(a.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(s(284));(n===null||n.ref!==o)&&(a.flags|=4194816)}}function pf(n,a,o,u,g){return Xi(a),o=Ku(n,a,o,u,void 0,g),u=Zu(),n!==null&&!pe?(Qu(n,a,g),Nn(n,a,g)):(Rt&&u&&ju(a),a.flags|=1,be(n,a,o,g),a.child)}function km(n,a,o,u,g,m){return Xi(a),a.updateQueue=null,o=_p(a,u,o,g),vp(n),u=Zu(),n!==null&&!pe?(Qu(n,a,m),Nn(n,a,m)):(Rt&&u&&ju(a),a.flags|=1,be(n,a,o,m),a.child)}function Sm(n,a,o,u,g){if(Xi(a),a.stateNode===null){var m=Ls,k=o.contextType;typeof k=="object"&&k!==null&&(m=Se(k)),m=new o(u,m),a.memoizedState=m.state!==null&&m.state!==void 0?m.state:null,m.updater=hf,a.stateNode=m,m._reactInternals=a,m=a.stateNode,m.props=u,m.state=a.memoizedState,m.refs={},Uu(a),k=o.contextType,m.context=typeof k=="object"&&k!==null?Se(k):Ls,m.state=a.memoizedState,k=o.getDerivedStateFromProps,typeof k=="function"&&(df(a,o,k,u),m.state=a.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof m.getSnapshotBeforeUpdate=="function"||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(k=m.state,typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount(),k!==m.state&&hf.enqueueReplaceState(m,m.state,null),el(a,u,m,g),tl(),m.state=a.memoizedState),typeof m.componentDidMount=="function"&&(a.flags|=4194308),u=!0}else if(n===null){m=a.stateNode;var E=a.memoizedProps,R=Qi(o,E);m.props=R;var F=m.context,Z=o.contextType;k=Ls,typeof Z=="object"&&Z!==null&&(k=Se(Z));var tt=o.getDerivedStateFromProps;Z=typeof tt=="function"||typeof m.getSnapshotBeforeUpdate=="function",E=a.pendingProps!==E,Z||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(E||F!==k)&&cm(a,m,u,k),ri=!1;var U=a.memoizedState;m.state=U,el(a,u,m,g),tl(),F=a.memoizedState,E||U!==F||ri?(typeof tt=="function"&&(df(a,o,tt,u),F=a.memoizedState),(R=ri||rm(a,o,R,u,U,F,k))?(Z||typeof m.UNSAFE_componentWillMount!="function"&&typeof m.componentWillMount!="function"||(typeof m.componentWillMount=="function"&&m.componentWillMount(),typeof m.UNSAFE_componentWillMount=="function"&&m.UNSAFE_componentWillMount()),typeof m.componentDidMount=="function"&&(a.flags|=4194308)):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),a.memoizedProps=u,a.memoizedState=F),m.props=u,m.state=F,m.context=k,u=R):(typeof m.componentDidMount=="function"&&(a.flags|=4194308),u=!1)}else{m=a.stateNode,qu(n,a),k=a.memoizedProps,Z=Qi(o,k),m.props=Z,tt=a.pendingProps,U=m.context,F=o.contextType,R=Ls,typeof F=="object"&&F!==null&&(R=Se(F)),E=o.getDerivedStateFromProps,(F=typeof E=="function"||typeof m.getSnapshotBeforeUpdate=="function")||typeof m.UNSAFE_componentWillReceiveProps!="function"&&typeof m.componentWillReceiveProps!="function"||(k!==tt||U!==R)&&cm(a,m,u,R),ri=!1,U=a.memoizedState,m.state=U,el(a,u,m,g),tl();var V=a.memoizedState;k!==tt||U!==V||ri||n!==null&&n.dependencies!==null&&Bo(n.dependencies)?(typeof E=="function"&&(df(a,o,E,u),V=a.memoizedState),(Z=ri||rm(a,o,Z,u,U,V,R)||n!==null&&n.dependencies!==null&&Bo(n.dependencies))?(F||typeof m.UNSAFE_componentWillUpdate!="function"&&typeof m.componentWillUpdate!="function"||(typeof m.componentWillUpdate=="function"&&m.componentWillUpdate(u,V,R),typeof m.UNSAFE_componentWillUpdate=="function"&&m.UNSAFE_componentWillUpdate(u,V,R)),typeof m.componentDidUpdate=="function"&&(a.flags|=4),typeof m.getSnapshotBeforeUpdate=="function"&&(a.flags|=1024)):(typeof m.componentDidUpdate!="function"||k===n.memoizedProps&&U===n.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||k===n.memoizedProps&&U===n.memoizedState||(a.flags|=1024),a.memoizedProps=u,a.memoizedState=V),m.props=u,m.state=V,m.context=R,u=Z):(typeof m.componentDidUpdate!="function"||k===n.memoizedProps&&U===n.memoizedState||(a.flags|=4),typeof m.getSnapshotBeforeUpdate!="function"||k===n.memoizedProps&&U===n.memoizedState||(a.flags|=1024),u=!1)}return m=u,ir(n,a),u=(a.flags&128)!==0,m||u?(m=a.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:m.render(),a.flags|=1,n!==null&&u?(a.child=Ys(a,n.child,null,g),a.child=Ys(a,null,o,g)):be(n,a,o,g),a.memoizedState=m.state,n=a.child):n=Nn(n,a,g),n}function Tm(n,a,o,u){return Ya(),a.flags|=256,be(n,a,o,u),a.child}var mf={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function xf(n){return{baseLanes:n,cachePool:fp()}}function yf(n,a,o){return n=n!==null?n.childLanes&~o:0,a&&(n|=nn),n}function Em(n,a,o){var u=a.pendingProps,g=!1,m=(a.flags&128)!==0,k;if((k=m)||(k=n!==null&&n.memoizedState===null?!1:(ce.current&2)!==0),k&&(g=!0,a.flags&=-129),k=(a.flags&32)!==0,a.flags&=-33,n===null){if(Rt){if(g?di(a):hi(),Rt){var E=Zt,R;if(R=E){t:{for(R=E,E=hn;R.nodeType!==8;){if(!E){E=null;break t}if(R=rn(R.nextSibling),R===null){E=null;break t}}E=R}E!==null?(a.memoizedState={dehydrated:E,treeContext:qi!==null?{id:Mn,overflow:Cn}:null,retryLane:536870912,hydrationErrors:null},R=Ie(18,null,null,0),R.stateNode=E,R.return=a,a.child=R,Oe=a,Zt=null,R=!0):R=!1}R||Gi(a)}if(E=a.memoizedState,E!==null&&(E=E.dehydrated,E!==null))return ed(E)?a.lanes=32:a.lanes=536870912,null;jn(a)}return E=u.children,u=u.fallback,g?(hi(),g=a.mode,E=sr({mode:"hidden",children:E},g),u=Ui(u,g,o,null),E.return=a,u.return=a,E.sibling=u,a.child=E,g=a.child,g.memoizedState=xf(o),g.childLanes=yf(n,k,o),a.memoizedState=mf,u):(di(a),bf(a,E))}if(R=n.memoizedState,R!==null&&(E=R.dehydrated,E!==null)){if(m)a.flags&256?(di(a),a.flags&=-257,a=vf(n,a,o)):a.memoizedState!==null?(hi(),a.child=n.child,a.flags|=128,a=null):(hi(),g=u.fallback,E=a.mode,u=sr({mode:"visible",children:u.children},E),g=Ui(g,E,o,null),g.flags|=2,u.return=a,g.return=a,u.sibling=g,a.child=u,Ys(a,n.child,null,o),u=a.child,u.memoizedState=xf(o),u.childLanes=yf(n,k,o),a.memoizedState=mf,a=g);else if(di(a),ed(E)){if(k=E.nextSibling&&E.nextSibling.dataset,k)var F=k.dgst;k=F,u=Error(s(419)),u.stack="",u.digest=k,Ga({value:u,source:null,stack:null}),a=vf(n,a,o)}else if(pe||Wa(n,a,o,!1),k=(o&n.childLanes)!==0,pe||k){if(k=Ut,k!==null&&(u=o&-o,u=(u&42)!==0?1:eu(u),u=(u&(k.suspendedLanes|o))!==0?0:u,u!==0&&u!==R.retryLane))throw R.retryLane=u,$s(n,u),Ge(k,n,u),mm;E.data==="$?"||Bf(),a=vf(n,a,o)}else E.data==="$?"?(a.flags|=192,a.child=n.child,a=null):(n=R.treeContext,Zt=rn(E.nextSibling),Oe=a,Rt=!0,Yi=null,hn=!1,n!==null&&(Je[tn++]=Mn,Je[tn++]=Cn,Je[tn++]=qi,Mn=n.id,Cn=n.overflow,qi=a),a=bf(a,u.children),a.flags|=4096);return a}return g?(hi(),g=u.fallback,E=a.mode,R=n.child,F=R.sibling,u=An(R,{mode:"hidden",children:u.children}),u.subtreeFlags=R.subtreeFlags&65011712,F!==null?g=An(F,g):(g=Ui(g,E,o,null),g.flags|=2),g.return=a,u.return=a,u.sibling=g,a.child=u,u=g,g=a.child,E=n.child.memoizedState,E===null?E=xf(o):(R=E.cachePool,R!==null?(F=re._currentValue,R=R.parent!==F?{parent:F,pool:F}:R):R=fp(),E={baseLanes:E.baseLanes|o,cachePool:R}),g.memoizedState=E,g.childLanes=yf(n,k,o),a.memoizedState=mf,u):(di(a),o=n.child,n=o.sibling,o=An(o,{mode:"visible",children:u.children}),o.return=a,o.sibling=null,n!==null&&(k=a.deletions,k===null?(a.deletions=[n],a.flags|=16):k.push(n)),a.child=o,a.memoizedState=null,o)}function bf(n,a){return a=sr({mode:"visible",children:a},n.mode),a.return=n,n.child=a}function sr(n,a){return n=Ie(22,n,null,a),n.lanes=0,n.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},n}function vf(n,a,o){return Ys(a,n.child,null,o),n=bf(a,a.pendingProps.children),n.flags|=2,a.memoizedState=null,n}function wm(n,a,o){n.lanes|=a;var u=n.alternate;u!==null&&(u.lanes|=a),zu(n.return,a,o)}function _f(n,a,o,u,g){var m=n.memoizedState;m===null?n.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:g}:(m.isBackwards=a,m.rendering=null,m.renderingStartTime=0,m.last=u,m.tail=o,m.tailMode=g)}function Am(n,a,o){var u=a.pendingProps,g=u.revealOrder,m=u.tail;if(be(n,a,u.children,o),u=ce.current,(u&2)!==0)u=u&1|2,a.flags|=128;else{if(n!==null&&(n.flags&128)!==0)t:for(n=a.child;n!==null;){if(n.tag===13)n.memoizedState!==null&&wm(n,o,a);else if(n.tag===19)wm(n,o,a);else if(n.child!==null){n.child.return=n,n=n.child;continue}if(n===a)break t;for(;n.sibling===null;){if(n.return===null||n.return===a)break t;n=n.return}n.sibling.return=n.return,n=n.sibling}u&=1}switch(st(ce,u),g){case"forwards":for(o=a.child,g=null;o!==null;)n=o.alternate,n!==null&&tr(n)===null&&(g=o),o=o.sibling;o=g,o===null?(g=a.child,a.child=null):(g=o.sibling,o.sibling=null),_f(a,!1,g,o,m);break;case"backwards":for(o=null,g=a.child,a.child=null;g!==null;){if(n=g.alternate,n!==null&&tr(n)===null){a.child=g;break}n=g.sibling,g.sibling=o,o=g,g=n}_f(a,!0,o,null,m);break;case"together":_f(a,!1,null,null,void 0);break;default:a.memoizedState=null}return a.child}function Nn(n,a,o){if(n!==null&&(a.dependencies=n.dependencies),yi|=a.lanes,(o&a.childLanes)===0)if(n!==null){if(Wa(n,a,o,!1),(o&a.childLanes)===0)return null}else return null;if(n!==null&&a.child!==n.child)throw Error(s(153));if(a.child!==null){for(n=a.child,o=An(n,n.pendingProps),a.child=o,o.return=a;n.sibling!==null;)n=n.sibling,o=o.sibling=An(n,n.pendingProps),o.return=a;o.sibling=null}return a.child}function kf(n,a){return(n.lanes&a)!==0?!0:(n=n.dependencies,!!(n!==null&&Bo(n)))}function Yk(n,a,o){switch(a.tag){case 3:Pt(a,a.stateNode.containerInfo),oi(a,re,n.memoizedState.cache),Ya();break;case 27:case 5:Kc(a);break;case 4:Pt(a,a.stateNode.containerInfo);break;case 10:oi(a,a.type,a.memoizedProps.value);break;case 13:var u=a.memoizedState;if(u!==null)return u.dehydrated!==null?(di(a),a.flags|=128,null):(o&a.child.childLanes)!==0?Em(n,a,o):(di(a),n=Nn(n,a,o),n!==null?n.sibling:null);di(a);break;case 19:var g=(n.flags&128)!==0;if(u=(o&a.childLanes)!==0,u||(Wa(n,a,o,!1),u=(o&a.childLanes)!==0),g){if(u)return Am(n,a,o);a.flags|=128}if(g=a.memoizedState,g!==null&&(g.rendering=null,g.tail=null,g.lastEffect=null),st(ce,ce.current),u)break;return null;case 22:case 23:return a.lanes=0,vm(n,a,o);case 24:oi(a,re,n.memoizedState.cache)}return Nn(n,a,o)}function Mm(n,a,o){if(n!==null)if(n.memoizedProps!==a.pendingProps)pe=!0;else{if(!kf(n,o)&&(a.flags&128)===0)return pe=!1,Yk(n,a,o);pe=(n.flags&131072)!==0}else pe=!1,Rt&&(a.flags&1048576)!==0&&sp(a,zo,a.index);switch(a.lanes=0,a.tag){case 16:t:{n=a.pendingProps;var u=a.elementType,g=u._init;if(u=g(u._payload),a.type=u,typeof u=="function")Du(u)?(n=Qi(u,n),a.tag=1,a=Sm(null,a,u,n,o)):(a.tag=0,a=pf(null,a,u,n,o));else{if(u!=null){if(g=u.$$typeof,g===N){a.tag=11,a=xm(null,a,u,n,o);break t}else if(g===I){a.tag=14,a=ym(null,a,u,n,o);break t}}throw a=G(u)||u,Error(s(306,a,""))}}return a;case 0:return pf(n,a,a.type,a.pendingProps,o);case 1:return u=a.type,g=Qi(u,a.pendingProps),Sm(n,a,u,g,o);case 3:t:{if(Pt(a,a.stateNode.containerInfo),n===null)throw Error(s(387));u=a.pendingProps;var m=a.memoizedState;g=m.element,qu(n,a),el(a,u,null,o);var k=a.memoizedState;if(u=k.cache,oi(a,re,u),u!==m.cache&&Bu(a,[re],o,!0),tl(),u=k.element,m.isDehydrated)if(m={element:u,isDehydrated:!1,cache:k.cache},a.updateQueue.baseState=m,a.memoizedState=m,a.flags&256){a=Tm(n,a,u,o);break t}else if(u!==g){g=Ze(Error(s(424)),a),Ga(g),a=Tm(n,a,u,o);break t}else{switch(n=a.stateNode.containerInfo,n.nodeType){case 9:n=n.body;break;default:n=n.nodeName==="HTML"?n.ownerDocument.body:n}for(Zt=rn(n.firstChild),Oe=a,Rt=!0,Yi=null,hn=!0,o=lm(a,null,u,o),a.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Ya(),u===g){a=Nn(n,a,o);break t}be(n,a,u,o)}a=a.child}return a;case 26:return ir(n,a),n===null?(o=Rx(a.type,null,a.pendingProps,null))?a.memoizedState=o:Rt||(o=a.type,n=a.pendingProps,u=yr(ot.current).createElement(o),u[ke]=a,u[Re]=n,_e(u,o,n),ge(u),a.stateNode=u):a.memoizedState=Rx(a.type,n.memoizedProps,a.pendingProps,n.memoizedState),null;case 27:return Kc(a),n===null&&Rt&&(u=a.stateNode=Cx(a.type,a.pendingProps,ot.current),Oe=a,hn=!0,g=Zt,ki(a.type)?(nd=g,Zt=rn(u.firstChild)):Zt=g),be(n,a,a.pendingProps.children,o),ir(n,a),n===null&&(a.flags|=4194304),a.child;case 5:return n===null&&Rt&&((g=u=Zt)&&(u=vS(u,a.type,a.pendingProps,hn),u!==null?(a.stateNode=u,Oe=a,Zt=rn(u.firstChild),hn=!1,g=!0):g=!1),g||Gi(a)),Kc(a),g=a.type,m=a.pendingProps,k=n!==null?n.memoizedProps:null,u=m.children,Qf(g,m)?u=null:k!==null&&Qf(g,k)&&(a.flags|=32),a.memoizedState!==null&&(g=Ku(n,a,Bk,null,null,o),Sl._currentValue=g),ir(n,a),be(n,a,u,o),a.child;case 6:return n===null&&Rt&&((n=o=Zt)&&(o=_S(o,a.pendingProps,hn),o!==null?(a.stateNode=o,Oe=a,Zt=null,n=!0):n=!1),n||Gi(a)),null;case 13:return Em(n,a,o);case 4:return Pt(a,a.stateNode.containerInfo),u=a.pendingProps,n===null?a.child=Ys(a,null,u,o):be(n,a,u,o),a.child;case 11:return xm(n,a,a.type,a.pendingProps,o);case 7:return be(n,a,a.pendingProps,o),a.child;case 8:return be(n,a,a.pendingProps.children,o),a.child;case 12:return be(n,a,a.pendingProps.children,o),a.child;case 10:return u=a.pendingProps,oi(a,a.type,u.value),be(n,a,u.children,o),a.child;case 9:return g=a.type._context,u=a.pendingProps.children,Xi(a),g=Se(g),u=u(g),a.flags|=1,be(n,a,u,o),a.child;case 14:return ym(n,a,a.type,a.pendingProps,o);case 15:return bm(n,a,a.type,a.pendingProps,o);case 19:return Am(n,a,o);case 31:return u=a.pendingProps,o=a.mode,u={mode:u.mode,children:u.children},n===null?(o=sr(u,o),o.ref=a.ref,a.child=o,o.return=a,a=o):(o=An(n.child,u),o.ref=a.ref,a.child=o,o.return=a,a=o),a;case 22:return vm(n,a,o);case 24:return Xi(a),u=Se(re),n===null?(g=Fu(),g===null&&(g=Ut,m=Pu(),g.pooledCache=m,m.refCount++,m!==null&&(g.pooledCacheLanes|=o),g=m),a.memoizedState={parent:u,cache:g},Uu(a),oi(a,re,g)):((n.lanes&o)!==0&&(qu(n,a),el(a,null,null,o),tl()),g=n.memoizedState,m=a.memoizedState,g.parent!==u?(g={parent:u,cache:u},a.memoizedState=g,a.lanes===0&&(a.memoizedState=a.updateQueue.baseState=g),oi(a,re,u)):(u=m.cache,oi(a,re,u),u!==g.cache&&Bu(a,[re],o,!0))),be(n,a,a.pendingProps.children,o),a.child;case 29:throw a.pendingProps}throw Error(s(156,a.tag))}function $n(n){n.flags|=4}function Cm(n,a){if(a.type!=="stylesheet"||(a.state.loading&4)!==0)n.flags&=-16777217;else if(n.flags|=16777216,!zx(a)){if(a=en.current,a!==null&&((Mt&4194048)===Mt?gn!==null:(Mt&62914560)!==Mt&&(Mt&536870912)===0||a!==gn))throw Qa=Iu,dp;n.flags|=8192}}function ar(n,a){a!==null&&(n.flags|=4),n.flags&16384&&(a=n.tag!==22?og():536870912,n.lanes|=a,Ks|=a)}function rl(n,a){if(!Rt)switch(n.tailMode){case"hidden":a=n.tail;for(var o=null;a!==null;)a.alternate!==null&&(o=a),a=a.sibling;o===null?n.tail=null:o.sibling=null;break;case"collapsed":o=n.tail;for(var u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?a||n.tail===null?n.tail=null:n.tail.sibling=null:u.sibling=null}}function Kt(n){var a=n.alternate!==null&&n.alternate.child===n.child,o=0,u=0;if(a)for(var g=n.child;g!==null;)o|=g.lanes|g.childLanes,u|=g.subtreeFlags&65011712,u|=g.flags&65011712,g.return=n,g=g.sibling;else for(g=n.child;g!==null;)o|=g.lanes|g.childLanes,u|=g.subtreeFlags,u|=g.flags,g.return=n,g=g.sibling;return n.subtreeFlags|=u,n.childLanes=o,a}function Gk(n,a,o){var u=a.pendingProps;switch(Nu(a),a.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Kt(a),null;case 1:return Kt(a),null;case 3:return o=a.stateNode,u=null,n!==null&&(u=n.memoizedState.cache),a.memoizedState.cache!==u&&(a.flags|=2048),On(re),ii(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(n===null||n.child===null)&&(Va(a)?$n(a):n===null||n.memoizedState.isDehydrated&&(a.flags&256)===0||(a.flags|=1024,op())),Kt(a),null;case 26:return o=a.memoizedState,n===null?($n(a),o!==null?(Kt(a),Cm(a,o)):(Kt(a),a.flags&=-16777217)):o?o!==n.memoizedState?($n(a),Kt(a),Cm(a,o)):(Kt(a),a.flags&=-16777217):(n.memoizedProps!==u&&$n(a),Kt(a),a.flags&=-16777217),null;case 27:mo(a),o=ot.current;var g=a.type;if(n!==null&&a.stateNode!=null)n.memoizedProps!==u&&$n(a);else{if(!u){if(a.stateNode===null)throw Error(s(166));return Kt(a),null}n=at.current,Va(a)?ap(a):(n=Cx(g,u,o),a.stateNode=n,$n(a))}return Kt(a),null;case 5:if(mo(a),o=a.type,n!==null&&a.stateNode!=null)n.memoizedProps!==u&&$n(a);else{if(!u){if(a.stateNode===null)throw Error(s(166));return Kt(a),null}if(n=at.current,Va(a))ap(a);else{switch(g=yr(ot.current),n){case 1:n=g.createElementNS("http://www.w3.org/2000/svg",o);break;case 2:n=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;default:switch(o){case"svg":n=g.createElementNS("http://www.w3.org/2000/svg",o);break;case"math":n=g.createElementNS("http://www.w3.org/1998/Math/MathML",o);break;case"script":n=g.createElement("div"),n.innerHTML="<script><\/script>",n=n.removeChild(n.firstChild);break;case"select":n=typeof u.is=="string"?g.createElement("select",{is:u.is}):g.createElement("select"),u.multiple?n.multiple=!0:u.size&&(n.size=u.size);break;default:n=typeof u.is=="string"?g.createElement(o,{is:u.is}):g.createElement(o)}}n[ke]=a,n[Re]=u;t:for(g=a.child;g!==null;){if(g.tag===5||g.tag===6)n.appendChild(g.stateNode);else if(g.tag!==4&&g.tag!==27&&g.child!==null){g.child.return=g,g=g.child;continue}if(g===a)break t;for(;g.sibling===null;){if(g.return===null||g.return===a)break t;g=g.return}g.sibling.return=g.return,g=g.sibling}a.stateNode=n;t:switch(_e(n,o,u),o){case"button":case"input":case"select":case"textarea":n=!!u.autoFocus;break t;case"img":n=!0;break t;default:n=!1}n&&$n(a)}}return Kt(a),a.flags&=-16777217,null;case 6:if(n&&a.stateNode!=null)n.memoizedProps!==u&&$n(a);else{if(typeof u!="string"&&a.stateNode===null)throw Error(s(166));if(n=ot.current,Va(a)){if(n=a.stateNode,o=a.memoizedProps,u=null,g=Oe,g!==null)switch(g.tag){case 27:case 5:u=g.memoizedProps}n[ke]=a,n=!!(n.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||kx(n.nodeValue,o)),n||Gi(a)}else n=yr(n).createTextNode(u),n[ke]=a,a.stateNode=n}return Kt(a),null;case 13:if(u=a.memoizedState,n===null||n.memoizedState!==null&&n.memoizedState.dehydrated!==null){if(g=Va(a),u!==null&&u.dehydrated!==null){if(n===null){if(!g)throw Error(s(318));if(g=a.memoizedState,g=g!==null?g.dehydrated:null,!g)throw Error(s(317));g[ke]=a}else Ya(),(a.flags&128)===0&&(a.memoizedState=null),a.flags|=4;Kt(a),g=!1}else g=op(),n!==null&&n.memoizedState!==null&&(n.memoizedState.hydrationErrors=g),g=!0;if(!g)return a.flags&256?(jn(a),a):(jn(a),null)}if(jn(a),(a.flags&128)!==0)return a.lanes=o,a;if(o=u!==null,n=n!==null&&n.memoizedState!==null,o){u=a.child,g=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(g=u.alternate.memoizedState.cachePool.pool);var m=null;u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(m=u.memoizedState.cachePool.pool),m!==g&&(u.flags|=2048)}return o!==n&&o&&(a.child.flags|=8192),ar(a,a.updateQueue),Kt(a),null;case 4:return ii(),n===null&&Gf(a.stateNode.containerInfo),Kt(a),null;case 10:return On(a.type),Kt(a),null;case 19:if(it(ce),g=a.memoizedState,g===null)return Kt(a),null;if(u=(a.flags&128)!==0,m=g.rendering,m===null)if(u)rl(g,!1);else{if(Qt!==0||n!==null&&(n.flags&128)!==0)for(n=a.child;n!==null;){if(m=tr(n),m!==null){for(a.flags|=128,rl(g,!1),n=m.updateQueue,a.updateQueue=n,ar(a,n),a.subtreeFlags=0,n=o,o=a.child;o!==null;)ip(o,n),o=o.sibling;return st(ce,ce.current&1|2),a.child}n=n.sibling}g.tail!==null&&dn()>rr&&(a.flags|=128,u=!0,rl(g,!1),a.lanes=4194304)}else{if(!u)if(n=tr(m),n!==null){if(a.flags|=128,u=!0,n=n.updateQueue,a.updateQueue=n,ar(a,n),rl(g,!0),g.tail===null&&g.tailMode==="hidden"&&!m.alternate&&!Rt)return Kt(a),null}else 2*dn()-g.renderingStartTime>rr&&o!==536870912&&(a.flags|=128,u=!0,rl(g,!1),a.lanes=4194304);g.isBackwards?(m.sibling=a.child,a.child=m):(n=g.last,n!==null?n.sibling=m:a.child=m,g.last=m)}return g.tail!==null?(a=g.tail,g.rendering=a,g.tail=a.sibling,g.renderingStartTime=dn(),a.sibling=null,n=ce.current,st(ce,u?n&1|2:n&1),a):(Kt(a),null);case 22:case 23:return jn(a),Wu(),u=a.memoizedState!==null,n!==null?n.memoizedState!==null!==u&&(a.flags|=8192):u&&(a.flags|=8192),u?(o&536870912)!==0&&(a.flags&128)===0&&(Kt(a),a.subtreeFlags&6&&(a.flags|=8192)):Kt(a),o=a.updateQueue,o!==null&&ar(a,o.retryQueue),o=null,n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),u=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(u=a.memoizedState.cachePool.pool),u!==o&&(a.flags|=2048),n!==null&&it(Ki),null;case 24:return o=null,n!==null&&(o=n.memoizedState.cache),a.memoizedState.cache!==o&&(a.flags|=2048),On(re),Kt(a),null;case 25:return null;case 30:return null}throw Error(s(156,a.tag))}function Wk(n,a){switch(Nu(a),a.tag){case 1:return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 3:return On(re),ii(),n=a.flags,(n&65536)!==0&&(n&128)===0?(a.flags=n&-65537|128,a):null;case 26:case 27:case 5:return mo(a),null;case 13:if(jn(a),n=a.memoizedState,n!==null&&n.dehydrated!==null){if(a.alternate===null)throw Error(s(340));Ya()}return n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 19:return it(ce),null;case 4:return ii(),null;case 10:return On(a.type),null;case 22:case 23:return jn(a),Wu(),n!==null&&it(Ki),n=a.flags,n&65536?(a.flags=n&-65537|128,a):null;case 24:return On(re),null;case 25:return null;default:return null}}function Dm(n,a){switch(Nu(a),a.tag){case 3:On(re),ii();break;case 26:case 27:case 5:mo(a);break;case 4:ii();break;case 13:jn(a);break;case 19:it(ce);break;case 10:On(a.type);break;case 22:case 23:jn(a),Wu(),n!==null&&it(Ki);break;case 24:On(re)}}function cl(n,a){try{var o=a.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var g=u.next;o=g;do{if((o.tag&n)===n){u=void 0;var m=o.create,k=o.inst;u=m(),k.destroy=u}o=o.next}while(o!==g)}}catch(E){Ht(a,a.return,E)}}function gi(n,a,o){try{var u=a.updateQueue,g=u!==null?u.lastEffect:null;if(g!==null){var m=g.next;u=m;do{if((u.tag&n)===n){var k=u.inst,E=k.destroy;if(E!==void 0){k.destroy=void 0,g=a;var R=o,F=E;try{F()}catch(Z){Ht(g,R,Z)}}}u=u.next}while(u!==m)}}catch(Z){Ht(a,a.return,Z)}}function Om(n){var a=n.updateQueue;if(a!==null){var o=n.stateNode;try{yp(a,o)}catch(u){Ht(n,n.return,u)}}}function Rm(n,a,o){o.props=Qi(n.type,n.memoizedProps),o.state=n.memoizedState;try{o.componentWillUnmount()}catch(u){Ht(n,a,u)}}function ul(n,a){try{var o=n.ref;if(o!==null){switch(n.tag){case 26:case 27:case 5:var u=n.stateNode;break;case 30:u=n.stateNode;break;default:u=n.stateNode}typeof o=="function"?n.refCleanup=o(u):o.current=u}}catch(g){Ht(n,a,g)}}function pn(n,a){var o=n.ref,u=n.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(g){Ht(n,a,g)}finally{n.refCleanup=null,n=n.alternate,n!=null&&(n.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(g){Ht(n,a,g)}else o.current=null}function jm(n){var a=n.type,o=n.memoizedProps,u=n.stateNode;try{t:switch(a){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break t;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(g){Ht(n,n.return,g)}}function Sf(n,a,o){try{var u=n.stateNode;pS(u,n.type,o,a),u[Re]=a}catch(g){Ht(n,n.return,g)}}function Nm(n){return n.tag===5||n.tag===3||n.tag===26||n.tag===27&&ki(n.type)||n.tag===4}function Tf(n){t:for(;;){for(;n.sibling===null;){if(n.return===null||Nm(n.return))return null;n=n.return}for(n.sibling.return=n.return,n=n.sibling;n.tag!==5&&n.tag!==6&&n.tag!==18;){if(n.tag===27&&ki(n.type)||n.flags&2||n.child===null||n.tag===4)continue t;n.child.return=n,n=n.child}if(!(n.flags&2))return n.stateNode}}function Ef(n,a,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,a?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(n,a):(a=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,a.appendChild(n),o=o._reactRootContainer,o!=null||a.onclick!==null||(a.onclick=xr));else if(u!==4&&(u===27&&ki(n.type)&&(o=n.stateNode,a=null),n=n.child,n!==null))for(Ef(n,a,o),n=n.sibling;n!==null;)Ef(n,a,o),n=n.sibling}function lr(n,a,o){var u=n.tag;if(u===5||u===6)n=n.stateNode,a?o.insertBefore(n,a):o.appendChild(n);else if(u!==4&&(u===27&&ki(n.type)&&(o=n.stateNode),n=n.child,n!==null))for(lr(n,a,o),n=n.sibling;n!==null;)lr(n,a,o),n=n.sibling}function $m(n){var a=n.stateNode,o=n.memoizedProps;try{for(var u=n.type,g=a.attributes;g.length;)a.removeAttributeNode(g[0]);_e(a,u,o),a[ke]=n,a[Re]=o}catch(m){Ht(n,n.return,m)}}var Ln=!1,ne=!1,wf=!1,Lm=typeof WeakSet=="function"?WeakSet:Set,me=null;function Xk(n,a){if(n=n.containerInfo,Kf=Tr,n=Gg(n),Su(n)){if("selectionStart"in n)var o={start:n.selectionStart,end:n.selectionEnd};else t:{o=(o=n.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var g=u.anchorOffset,m=u.focusNode;u=u.focusOffset;try{o.nodeType,m.nodeType}catch{o=null;break t}var k=0,E=-1,R=-1,F=0,Z=0,tt=n,U=null;e:for(;;){for(var V;tt!==o||g!==0&&tt.nodeType!==3||(E=k+g),tt!==m||u!==0&&tt.nodeType!==3||(R=k+u),tt.nodeType===3&&(k+=tt.nodeValue.length),(V=tt.firstChild)!==null;)U=tt,tt=V;for(;;){if(tt===n)break e;if(U===o&&++F===g&&(E=k),U===m&&++Z===u&&(R=k),(V=tt.nextSibling)!==null)break;tt=U,U=tt.parentNode}tt=V}o=E===-1||R===-1?null:{start:E,end:R}}else o=null}o=o||{start:0,end:0}}else o=null;for(Zf={focusedElem:n,selectionRange:o},Tr=!1,me=a;me!==null;)if(a=me,n=a.child,(a.subtreeFlags&1024)!==0&&n!==null)n.return=a,me=n;else for(;me!==null;){switch(a=me,m=a.alternate,n=a.flags,a.tag){case 0:break;case 11:case 15:break;case 1:if((n&1024)!==0&&m!==null){n=void 0,o=a,g=m.memoizedProps,m=m.memoizedState,u=o.stateNode;try{var gt=Qi(o.type,g,o.elementType===o.type);n=u.getSnapshotBeforeUpdate(gt,m),u.__reactInternalSnapshotBeforeUpdate=n}catch(ft){Ht(o,o.return,ft)}}break;case 3:if((n&1024)!==0){if(n=a.stateNode.containerInfo,o=n.nodeType,o===9)td(n);else if(o===1)switch(n.nodeName){case"HEAD":case"HTML":case"BODY":td(n);break;default:n.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((n&1024)!==0)throw Error(s(163))}if(n=a.sibling,n!==null){n.return=a.return,me=n;break}me=a.return}}function zm(n,a,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:pi(n,o),u&4&&cl(5,o);break;case 1:if(pi(n,o),u&4)if(n=o.stateNode,a===null)try{n.componentDidMount()}catch(k){Ht(o,o.return,k)}else{var g=Qi(o.type,a.memoizedProps);a=a.memoizedState;try{n.componentDidUpdate(g,a,n.__reactInternalSnapshotBeforeUpdate)}catch(k){Ht(o,o.return,k)}}u&64&&Om(o),u&512&&ul(o,o.return);break;case 3:if(pi(n,o),u&64&&(n=o.updateQueue,n!==null)){if(a=null,o.child!==null)switch(o.child.tag){case 27:case 5:a=o.child.stateNode;break;case 1:a=o.child.stateNode}try{yp(n,a)}catch(k){Ht(o,o.return,k)}}break;case 27:a===null&&u&4&&$m(o);case 26:case 5:pi(n,o),a===null&&u&4&&jm(o),u&512&&ul(o,o.return);break;case 12:pi(n,o);break;case 13:pi(n,o),u&4&&Hm(n,o),u&64&&(n=o.memoizedState,n!==null&&(n=n.dehydrated,n!==null&&(o=sS.bind(null,o),kS(n,o))));break;case 22:if(u=o.memoizedState!==null||Ln,!u){a=a!==null&&a.memoizedState!==null||ne,g=Ln;var m=ne;Ln=u,(ne=a)&&!m?mi(n,o,(o.subtreeFlags&8772)!==0):pi(n,o),Ln=g,ne=m}break;case 30:break;default:pi(n,o)}}function Bm(n){var a=n.alternate;a!==null&&(n.alternate=null,Bm(a)),n.child=null,n.deletions=null,n.sibling=null,n.tag===5&&(a=n.stateNode,a!==null&&su(a)),n.stateNode=null,n.return=null,n.dependencies=null,n.memoizedProps=null,n.memoizedState=null,n.pendingProps=null,n.stateNode=null,n.updateQueue=null}var Gt=null,$e=!1;function zn(n,a,o){for(o=o.child;o!==null;)Pm(n,a,o),o=o.sibling}function Pm(n,a,o){if(Pe&&typeof Pe.onCommitFiberUnmount=="function")try{Pe.onCommitFiberUnmount(Oa,o)}catch{}switch(o.tag){case 26:ne||pn(o,a),zn(n,a,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:ne||pn(o,a);var u=Gt,g=$e;ki(o.type)&&(Gt=o.stateNode,$e=!1),zn(n,a,o),bl(o.stateNode),Gt=u,$e=g;break;case 5:ne||pn(o,a);case 6:if(u=Gt,g=$e,Gt=null,zn(n,a,o),Gt=u,$e=g,Gt!==null)if($e)try{(Gt.nodeType===9?Gt.body:Gt.nodeName==="HTML"?Gt.ownerDocument.body:Gt).removeChild(o.stateNode)}catch(m){Ht(o,a,m)}else try{Gt.removeChild(o.stateNode)}catch(m){Ht(o,a,m)}break;case 18:Gt!==null&&($e?(n=Gt,Ax(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,o.stateNode),Al(n)):Ax(Gt,o.stateNode));break;case 4:u=Gt,g=$e,Gt=o.stateNode.containerInfo,$e=!0,zn(n,a,o),Gt=u,$e=g;break;case 0:case 11:case 14:case 15:ne||gi(2,o,a),ne||gi(4,o,a),zn(n,a,o);break;case 1:ne||(pn(o,a),u=o.stateNode,typeof u.componentWillUnmount=="function"&&Rm(o,a,u)),zn(n,a,o);break;case 21:zn(n,a,o);break;case 22:ne=(u=ne)||o.memoizedState!==null,zn(n,a,o),ne=u;break;default:zn(n,a,o)}}function Hm(n,a){if(a.memoizedState===null&&(n=a.alternate,n!==null&&(n=n.memoizedState,n!==null&&(n=n.dehydrated,n!==null))))try{Al(n)}catch(o){Ht(a,a.return,o)}}function Kk(n){switch(n.tag){case 13:case 19:var a=n.stateNode;return a===null&&(a=n.stateNode=new Lm),a;case 22:return n=n.stateNode,a=n._retryCache,a===null&&(a=n._retryCache=new Lm),a;default:throw Error(s(435,n.tag))}}function Af(n,a){var o=Kk(n);a.forEach(function(u){var g=aS.bind(null,n,u);o.has(u)||(o.add(u),u.then(g,g))})}function Ue(n,a){var o=a.deletions;if(o!==null)for(var u=0;u<o.length;u++){var g=o[u],m=n,k=a,E=k;t:for(;E!==null;){switch(E.tag){case 27:if(ki(E.type)){Gt=E.stateNode,$e=!1;break t}break;case 5:Gt=E.stateNode,$e=!1;break t;case 3:case 4:Gt=E.stateNode.containerInfo,$e=!0;break t}E=E.return}if(Gt===null)throw Error(s(160));Pm(m,k,g),Gt=null,$e=!1,m=g.alternate,m!==null&&(m.return=null),g.return=null}if(a.subtreeFlags&13878)for(a=a.child;a!==null;)Fm(a,n),a=a.sibling}var on=null;function Fm(n,a){var o=n.alternate,u=n.flags;switch(n.tag){case 0:case 11:case 14:case 15:Ue(a,n),qe(n),u&4&&(gi(3,n,n.return),cl(3,n),gi(5,n,n.return));break;case 1:Ue(a,n),qe(n),u&512&&(ne||o===null||pn(o,o.return)),u&64&&Ln&&(n=n.updateQueue,n!==null&&(u=n.callbacks,u!==null&&(o=n.shared.hiddenCallbacks,n.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var g=on;if(Ue(a,n),qe(n),u&512&&(ne||o===null||pn(o,o.return)),u&4){var m=o!==null?o.memoizedState:null;if(u=n.memoizedState,o===null)if(u===null)if(n.stateNode===null){t:{u=n.type,o=n.memoizedProps,g=g.ownerDocument||g;e:switch(u){case"title":m=g.getElementsByTagName("title")[0],(!m||m[Na]||m[ke]||m.namespaceURI==="http://www.w3.org/2000/svg"||m.hasAttribute("itemprop"))&&(m=g.createElement(u),g.head.insertBefore(m,g.querySelector("head > title"))),_e(m,u,o),m[ke]=n,ge(m),u=m;break t;case"link":var k=$x("link","href",g).get(u+(o.href||""));if(k){for(var E=0;E<k.length;E++)if(m=k[E],m.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&m.getAttribute("rel")===(o.rel==null?null:o.rel)&&m.getAttribute("title")===(o.title==null?null:o.title)&&m.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){k.splice(E,1);break e}}m=g.createElement(u),_e(m,u,o),g.head.appendChild(m);break;case"meta":if(k=$x("meta","content",g).get(u+(o.content||""))){for(E=0;E<k.length;E++)if(m=k[E],m.getAttribute("content")===(o.content==null?null:""+o.content)&&m.getAttribute("name")===(o.name==null?null:o.name)&&m.getAttribute("property")===(o.property==null?null:o.property)&&m.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&m.getAttribute("charset")===(o.charSet==null?null:o.charSet)){k.splice(E,1);break e}}m=g.createElement(u),_e(m,u,o),g.head.appendChild(m);break;default:throw Error(s(468,u))}m[ke]=n,ge(m),u=m}n.stateNode=u}else Lx(g,n.type,n.stateNode);else n.stateNode=Nx(g,u,n.memoizedProps);else m!==u?(m===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):m.count--,u===null?Lx(g,n.type,n.stateNode):Nx(g,u,n.memoizedProps)):u===null&&n.stateNode!==null&&Sf(n,n.memoizedProps,o.memoizedProps)}break;case 27:Ue(a,n),qe(n),u&512&&(ne||o===null||pn(o,o.return)),o!==null&&u&4&&Sf(n,n.memoizedProps,o.memoizedProps);break;case 5:if(Ue(a,n),qe(n),u&512&&(ne||o===null||pn(o,o.return)),n.flags&32){g=n.stateNode;try{Ms(g,"")}catch(V){Ht(n,n.return,V)}}u&4&&n.stateNode!=null&&(g=n.memoizedProps,Sf(n,g,o!==null?o.memoizedProps:g)),u&1024&&(wf=!0);break;case 6:if(Ue(a,n),qe(n),u&4){if(n.stateNode===null)throw Error(s(162));u=n.memoizedProps,o=n.stateNode;try{o.nodeValue=u}catch(V){Ht(n,n.return,V)}}break;case 3:if(_r=null,g=on,on=br(a.containerInfo),Ue(a,n),on=g,qe(n),u&4&&o!==null&&o.memoizedState.isDehydrated)try{Al(a.containerInfo)}catch(V){Ht(n,n.return,V)}wf&&(wf=!1,Im(n));break;case 4:u=on,on=br(n.stateNode.containerInfo),Ue(a,n),qe(n),on=u;break;case 12:Ue(a,n),qe(n);break;case 13:Ue(a,n),qe(n),n.child.flags&8192&&n.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(jf=dn()),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Af(n,u)));break;case 22:g=n.memoizedState!==null;var R=o!==null&&o.memoizedState!==null,F=Ln,Z=ne;if(Ln=F||g,ne=Z||R,Ue(a,n),ne=Z,Ln=F,qe(n),u&8192)t:for(a=n.stateNode,a._visibility=g?a._visibility&-2:a._visibility|1,g&&(o===null||R||Ln||ne||Ji(n)),o=null,a=n;;){if(a.tag===5||a.tag===26){if(o===null){R=o=a;try{if(m=R.stateNode,g)k=m.style,typeof k.setProperty=="function"?k.setProperty("display","none","important"):k.display="none";else{E=R.stateNode;var tt=R.memoizedProps.style,U=tt!=null&&tt.hasOwnProperty("display")?tt.display:null;E.style.display=U==null||typeof U=="boolean"?"":(""+U).trim()}}catch(V){Ht(R,R.return,V)}}}else if(a.tag===6){if(o===null){R=a;try{R.stateNode.nodeValue=g?"":R.memoizedProps}catch(V){Ht(R,R.return,V)}}}else if((a.tag!==22&&a.tag!==23||a.memoizedState===null||a===n)&&a.child!==null){a.child.return=a,a=a.child;continue}if(a===n)break t;for(;a.sibling===null;){if(a.return===null||a.return===n)break t;o===a&&(o=null),a=a.return}o===a&&(o=null),a.sibling.return=a.return,a=a.sibling}u&4&&(u=n.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,Af(n,o))));break;case 19:Ue(a,n),qe(n),u&4&&(u=n.updateQueue,u!==null&&(n.updateQueue=null,Af(n,u)));break;case 30:break;case 21:break;default:Ue(a,n),qe(n)}}function qe(n){var a=n.flags;if(a&2){try{for(var o,u=n.return;u!==null;){if(Nm(u)){o=u;break}u=u.return}if(o==null)throw Error(s(160));switch(o.tag){case 27:var g=o.stateNode,m=Tf(n);lr(n,m,g);break;case 5:var k=o.stateNode;o.flags&32&&(Ms(k,""),o.flags&=-33);var E=Tf(n);lr(n,E,k);break;case 3:case 4:var R=o.stateNode.containerInfo,F=Tf(n);Ef(n,F,R);break;default:throw Error(s(161))}}catch(Z){Ht(n,n.return,Z)}n.flags&=-3}a&4096&&(n.flags&=-4097)}function Im(n){if(n.subtreeFlags&1024)for(n=n.child;n!==null;){var a=n;Im(a),a.tag===5&&a.flags&1024&&a.stateNode.reset(),n=n.sibling}}function pi(n,a){if(a.subtreeFlags&8772)for(a=a.child;a!==null;)zm(n,a.alternate,a),a=a.sibling}function Ji(n){for(n=n.child;n!==null;){var a=n;switch(a.tag){case 0:case 11:case 14:case 15:gi(4,a,a.return),Ji(a);break;case 1:pn(a,a.return);var o=a.stateNode;typeof o.componentWillUnmount=="function"&&Rm(a,a.return,o),Ji(a);break;case 27:bl(a.stateNode);case 26:case 5:pn(a,a.return),Ji(a);break;case 22:a.memoizedState===null&&Ji(a);break;case 30:Ji(a);break;default:Ji(a)}n=n.sibling}}function mi(n,a,o){for(o=o&&(a.subtreeFlags&8772)!==0,a=a.child;a!==null;){var u=a.alternate,g=n,m=a,k=m.flags;switch(m.tag){case 0:case 11:case 15:mi(g,m,o),cl(4,m);break;case 1:if(mi(g,m,o),u=m,g=u.stateNode,typeof g.componentDidMount=="function")try{g.componentDidMount()}catch(F){Ht(u,u.return,F)}if(u=m,g=u.updateQueue,g!==null){var E=u.stateNode;try{var R=g.shared.hiddenCallbacks;if(R!==null)for(g.shared.hiddenCallbacks=null,g=0;g<R.length;g++)xp(R[g],E)}catch(F){Ht(u,u.return,F)}}o&&k&64&&Om(m),ul(m,m.return);break;case 27:$m(m);case 26:case 5:mi(g,m,o),o&&u===null&&k&4&&jm(m),ul(m,m.return);break;case 12:mi(g,m,o);break;case 13:mi(g,m,o),o&&k&4&&Hm(g,m);break;case 22:m.memoizedState===null&&mi(g,m,o),ul(m,m.return);break;case 30:break;default:mi(g,m,o)}a=a.sibling}}function Mf(n,a){var o=null;n!==null&&n.memoizedState!==null&&n.memoizedState.cachePool!==null&&(o=n.memoizedState.cachePool.pool),n=null,a.memoizedState!==null&&a.memoizedState.cachePool!==null&&(n=a.memoizedState.cachePool.pool),n!==o&&(n!=null&&n.refCount++,o!=null&&Xa(o))}function Cf(n,a){n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Xa(n))}function mn(n,a,o,u){if(a.subtreeFlags&10256)for(a=a.child;a!==null;)Um(n,a,o,u),a=a.sibling}function Um(n,a,o,u){var g=a.flags;switch(a.tag){case 0:case 11:case 15:mn(n,a,o,u),g&2048&&cl(9,a);break;case 1:mn(n,a,o,u);break;case 3:mn(n,a,o,u),g&2048&&(n=null,a.alternate!==null&&(n=a.alternate.memoizedState.cache),a=a.memoizedState.cache,a!==n&&(a.refCount++,n!=null&&Xa(n)));break;case 12:if(g&2048){mn(n,a,o,u),n=a.stateNode;try{var m=a.memoizedProps,k=m.id,E=m.onPostCommit;typeof E=="function"&&E(k,a.alternate===null?"mount":"update",n.passiveEffectDuration,-0)}catch(R){Ht(a,a.return,R)}}else mn(n,a,o,u);break;case 13:mn(n,a,o,u);break;case 23:break;case 22:m=a.stateNode,k=a.alternate,a.memoizedState!==null?m._visibility&2?mn(n,a,o,u):fl(n,a):m._visibility&2?mn(n,a,o,u):(m._visibility|=2,Gs(n,a,o,u,(a.subtreeFlags&10256)!==0)),g&2048&&Mf(k,a);break;case 24:mn(n,a,o,u),g&2048&&Cf(a.alternate,a);break;default:mn(n,a,o,u)}}function Gs(n,a,o,u,g){for(g=g&&(a.subtreeFlags&10256)!==0,a=a.child;a!==null;){var m=n,k=a,E=o,R=u,F=k.flags;switch(k.tag){case 0:case 11:case 15:Gs(m,k,E,R,g),cl(8,k);break;case 23:break;case 22:var Z=k.stateNode;k.memoizedState!==null?Z._visibility&2?Gs(m,k,E,R,g):fl(m,k):(Z._visibility|=2,Gs(m,k,E,R,g)),g&&F&2048&&Mf(k.alternate,k);break;case 24:Gs(m,k,E,R,g),g&&F&2048&&Cf(k.alternate,k);break;default:Gs(m,k,E,R,g)}a=a.sibling}}function fl(n,a){if(a.subtreeFlags&10256)for(a=a.child;a!==null;){var o=n,u=a,g=u.flags;switch(u.tag){case 22:fl(o,u),g&2048&&Mf(u.alternate,u);break;case 24:fl(o,u),g&2048&&Cf(u.alternate,u);break;default:fl(o,u)}a=a.sibling}}var dl=8192;function Ws(n){if(n.subtreeFlags&dl)for(n=n.child;n!==null;)qm(n),n=n.sibling}function qm(n){switch(n.tag){case 26:Ws(n),n.flags&dl&&n.memoizedState!==null&&$S(on,n.memoizedState,n.memoizedProps);break;case 5:Ws(n);break;case 3:case 4:var a=on;on=br(n.stateNode.containerInfo),Ws(n),on=a;break;case 22:n.memoizedState===null&&(a=n.alternate,a!==null&&a.memoizedState!==null?(a=dl,dl=16777216,Ws(n),dl=a):Ws(n));break;default:Ws(n)}}function Vm(n){var a=n.alternate;if(a!==null&&(n=a.child,n!==null)){a.child=null;do a=n.sibling,n.sibling=null,n=a;while(n!==null)}}function hl(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];me=u,Gm(u,n)}Vm(n)}if(n.subtreeFlags&10256)for(n=n.child;n!==null;)Ym(n),n=n.sibling}function Ym(n){switch(n.tag){case 0:case 11:case 15:hl(n),n.flags&2048&&gi(9,n,n.return);break;case 3:hl(n);break;case 12:hl(n);break;case 22:var a=n.stateNode;n.memoizedState!==null&&a._visibility&2&&(n.return===null||n.return.tag!==13)?(a._visibility&=-3,or(n)):hl(n);break;default:hl(n)}}function or(n){var a=n.deletions;if((n.flags&16)!==0){if(a!==null)for(var o=0;o<a.length;o++){var u=a[o];me=u,Gm(u,n)}Vm(n)}for(n=n.child;n!==null;){switch(a=n,a.tag){case 0:case 11:case 15:gi(8,a,a.return),or(a);break;case 22:o=a.stateNode,o._visibility&2&&(o._visibility&=-3,or(a));break;default:or(a)}n=n.sibling}}function Gm(n,a){for(;me!==null;){var o=me;switch(o.tag){case 0:case 11:case 15:gi(8,o,a);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:Xa(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,me=u;else t:for(o=n;me!==null;){u=me;var g=u.sibling,m=u.return;if(Bm(u),u===o){me=null;break t}if(g!==null){g.return=m,me=g;break t}me=m}}}var Zk={getCacheForType:function(n){var a=Se(re),o=a.data.get(n);return o===void 0&&(o=n(),a.data.set(n,o)),o}},Qk=typeof WeakMap=="function"?WeakMap:Map,jt=0,Ut=null,St=null,Mt=0,Nt=0,Ve=null,xi=!1,Xs=!1,Df=!1,Bn=0,Qt=0,yi=0,ts=0,Of=0,nn=0,Ks=0,gl=null,Le=null,Rf=!1,jf=0,rr=1/0,cr=null,bi=null,ve=0,vi=null,Zs=null,Qs=0,Nf=0,$f=null,Wm=null,pl=0,Lf=null;function Ye(){if((jt&2)!==0&&Mt!==0)return Mt&-Mt;if(C.T!==null){var n=Ps;return n!==0?n:Uf()}return ug()}function Xm(){nn===0&&(nn=(Mt&536870912)===0||Rt?lg():536870912);var n=en.current;return n!==null&&(n.flags|=32),nn}function Ge(n,a,o){(n===Ut&&(Nt===2||Nt===9)||n.cancelPendingCommit!==null)&&(Js(n,0),_i(n,Mt,nn,!1)),ja(n,o),((jt&2)===0||n!==Ut)&&(n===Ut&&((jt&2)===0&&(ts|=o),Qt===4&&_i(n,Mt,nn,!1)),xn(n))}function Km(n,a,o){if((jt&6)!==0)throw Error(s(327));var u=!o&&(a&124)===0&&(a&n.expiredLanes)===0||Ra(n,a),g=u?eS(n,a):Pf(n,a,!0),m=u;do{if(g===0){Xs&&!u&&_i(n,a,0,!1);break}else{if(o=n.current.alternate,m&&!Jk(o)){g=Pf(n,a,!1),m=!1;continue}if(g===2){if(m=a,n.errorRecoveryDisabledLanes&m)var k=0;else k=n.pendingLanes&-536870913,k=k!==0?k:k&536870912?536870912:0;if(k!==0){a=k;t:{var E=n;g=gl;var R=E.current.memoizedState.isDehydrated;if(R&&(Js(E,k).flags|=256),k=Pf(E,k,!1),k!==2){if(Df&&!R){E.errorRecoveryDisabledLanes|=m,ts|=m,g=4;break t}m=Le,Le=g,m!==null&&(Le===null?Le=m:Le.push.apply(Le,m))}g=k}if(m=!1,g!==2)continue}}if(g===1){Js(n,0),_i(n,a,0,!0);break}t:{switch(u=n,m=g,m){case 0:case 1:throw Error(s(345));case 4:if((a&4194048)!==a)break;case 6:_i(u,a,nn,!xi);break t;case 2:Le=null;break;case 3:case 5:break;default:throw Error(s(329))}if((a&62914560)===a&&(g=jf+300-dn(),10<g)){if(_i(u,a,nn,!xi),vo(u,0,!0)!==0)break t;u.timeoutHandle=Ex(Zm.bind(null,u,o,Le,cr,Rf,a,nn,ts,Ks,xi,m,2,-0,0),g);break t}Zm(u,o,Le,cr,Rf,a,nn,ts,Ks,xi,m,0,-0,0)}}break}while(!0);xn(n)}function Zm(n,a,o,u,g,m,k,E,R,F,Z,tt,U,V){if(n.timeoutHandle=-1,tt=a.subtreeFlags,(tt&8192||(tt&16785408)===16785408)&&(kl={stylesheets:null,count:0,unsuspend:NS},qm(a),tt=LS(),tt!==null)){n.cancelPendingCommit=tt(sx.bind(null,n,a,m,o,u,g,k,E,R,Z,1,U,V)),_i(n,m,k,!F);return}sx(n,a,m,o,u,g,k,E,R)}function Jk(n){for(var a=n;;){var o=a.tag;if((o===0||o===11||o===15)&&a.flags&16384&&(o=a.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var u=0;u<o.length;u++){var g=o[u],m=g.getSnapshot;g=g.value;try{if(!Fe(m(),g))return!1}catch{return!1}}if(o=a.child,a.subtreeFlags&16384&&o!==null)o.return=a,a=o;else{if(a===n)break;for(;a.sibling===null;){if(a.return===null||a.return===n)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}}return!0}function _i(n,a,o,u){a&=~Of,a&=~ts,n.suspendedLanes|=a,n.pingedLanes&=~a,u&&(n.warmLanes|=a),u=n.expirationTimes;for(var g=a;0<g;){var m=31-He(g),k=1<<m;u[m]=-1,g&=~k}o!==0&&rg(n,o,a)}function ur(){return(jt&6)===0?(ml(0),!1):!0}function zf(){if(St!==null){if(Nt===0)var n=St.return;else n=St,Dn=Wi=null,Ju(n),Vs=null,ll=0,n=St;for(;n!==null;)Dm(n.alternate,n),n=n.return;St=null}}function Js(n,a){var o=n.timeoutHandle;o!==-1&&(n.timeoutHandle=-1,xS(o)),o=n.cancelPendingCommit,o!==null&&(n.cancelPendingCommit=null,o()),zf(),Ut=n,St=o=An(n.current,null),Mt=a,Nt=0,Ve=null,xi=!1,Xs=Ra(n,a),Df=!1,Ks=nn=Of=ts=yi=Qt=0,Le=gl=null,Rf=!1,(a&8)!==0&&(a|=a&32);var u=n.entangledLanes;if(u!==0)for(n=n.entanglements,u&=a;0<u;){var g=31-He(u),m=1<<g;a|=n[g],u&=~m}return Bn=a,Ro(),o}function Qm(n,a){_t=null,C.H=Zo,a===Za||a===Fo?(a=pp(),Nt=3):a===dp?(a=pp(),Nt=4):Nt=a===mm?8:a!==null&&typeof a=="object"&&typeof a.then=="function"?6:1,Ve=a,St===null&&(Qt=1,nr(n,Ze(a,n.current)))}function Jm(){var n=C.H;return C.H=Zo,n===null?Zo:n}function tx(){var n=C.A;return C.A=Zk,n}function Bf(){Qt=4,xi||(Mt&4194048)!==Mt&&en.current!==null||(Xs=!0),(yi&134217727)===0&&(ts&134217727)===0||Ut===null||_i(Ut,Mt,nn,!1)}function Pf(n,a,o){var u=jt;jt|=2;var g=Jm(),m=tx();(Ut!==n||Mt!==a)&&(cr=null,Js(n,a)),a=!1;var k=Qt;t:do try{if(Nt!==0&&St!==null){var E=St,R=Ve;switch(Nt){case 8:zf(),k=6;break t;case 3:case 2:case 9:case 6:en.current===null&&(a=!0);var F=Nt;if(Nt=0,Ve=null,ta(n,E,R,F),o&&Xs){k=0;break t}break;default:F=Nt,Nt=0,Ve=null,ta(n,E,R,F)}}tS(),k=Qt;break}catch(Z){Qm(n,Z)}while(!0);return a&&n.shellSuspendCounter++,Dn=Wi=null,jt=u,C.H=g,C.A=m,St===null&&(Ut=null,Mt=0,Ro()),k}function tS(){for(;St!==null;)ex(St)}function eS(n,a){var o=jt;jt|=2;var u=Jm(),g=tx();Ut!==n||Mt!==a?(cr=null,rr=dn()+500,Js(n,a)):Xs=Ra(n,a);t:do try{if(Nt!==0&&St!==null){a=St;var m=Ve;e:switch(Nt){case 1:Nt=0,Ve=null,ta(n,a,m,1);break;case 2:case 9:if(hp(m)){Nt=0,Ve=null,nx(a);break}a=function(){Nt!==2&&Nt!==9||Ut!==n||(Nt=7),xn(n)},m.then(a,a);break t;case 3:Nt=7;break t;case 4:Nt=5;break t;case 7:hp(m)?(Nt=0,Ve=null,nx(a)):(Nt=0,Ve=null,ta(n,a,m,7));break;case 5:var k=null;switch(St.tag){case 26:k=St.memoizedState;case 5:case 27:var E=St;if(!k||zx(k)){Nt=0,Ve=null;var R=E.sibling;if(R!==null)St=R;else{var F=E.return;F!==null?(St=F,fr(F)):St=null}break e}}Nt=0,Ve=null,ta(n,a,m,5);break;case 6:Nt=0,Ve=null,ta(n,a,m,6);break;case 8:zf(),Qt=6;break t;default:throw Error(s(462))}}nS();break}catch(Z){Qm(n,Z)}while(!0);return Dn=Wi=null,C.H=u,C.A=g,jt=o,St!==null?0:(Ut=null,Mt=0,Ro(),Qt)}function nS(){for(;St!==null&&!T_();)ex(St)}function ex(n){var a=Mm(n.alternate,n,Bn);n.memoizedProps=n.pendingProps,a===null?fr(n):St=a}function nx(n){var a=n,o=a.alternate;switch(a.tag){case 15:case 0:a=km(o,a,a.pendingProps,a.type,void 0,Mt);break;case 11:a=km(o,a,a.pendingProps,a.type.render,a.ref,Mt);break;case 5:Ju(a);default:Dm(o,a),a=St=ip(a,Bn),a=Mm(o,a,Bn)}n.memoizedProps=n.pendingProps,a===null?fr(n):St=a}function ta(n,a,o,u){Dn=Wi=null,Ju(a),Vs=null,ll=0;var g=a.return;try{if(Vk(n,g,a,o,Mt)){Qt=1,nr(n,Ze(o,n.current)),St=null;return}}catch(m){if(g!==null)throw St=g,m;Qt=1,nr(n,Ze(o,n.current)),St=null;return}a.flags&32768?(Rt||u===1?n=!0:Xs||(Mt&536870912)!==0?n=!1:(xi=n=!0,(u===2||u===9||u===3||u===6)&&(u=en.current,u!==null&&u.tag===13&&(u.flags|=16384))),ix(a,n)):fr(a)}function fr(n){var a=n;do{if((a.flags&32768)!==0){ix(a,xi);return}n=a.return;var o=Gk(a.alternate,a,Bn);if(o!==null){St=o;return}if(a=a.sibling,a!==null){St=a;return}St=a=n}while(a!==null);Qt===0&&(Qt=5)}function ix(n,a){do{var o=Wk(n.alternate,n);if(o!==null){o.flags&=32767,St=o;return}if(o=n.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!a&&(n=n.sibling,n!==null)){St=n;return}St=n=o}while(n!==null);Qt=6,St=null}function sx(n,a,o,u,g,m,k,E,R){n.cancelPendingCommit=null;do dr();while(ve!==0);if((jt&6)!==0)throw Error(s(327));if(a!==null){if(a===n.current)throw Error(s(177));if(m=a.lanes|a.childLanes,m|=Mu,N_(n,o,m,k,E,R),n===Ut&&(St=Ut=null,Mt=0),Zs=a,vi=n,Qs=o,Nf=m,$f=g,Wm=u,(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?(n.callbackNode=null,n.callbackPriority=0,lS(xo,function(){return cx(),null})):(n.callbackNode=null,n.callbackPriority=0),u=(a.flags&13878)!==0,(a.subtreeFlags&13878)!==0||u){u=C.T,C.T=null,g=$.p,$.p=2,k=jt,jt|=4;try{Xk(n,a,o)}finally{jt=k,$.p=g,C.T=u}}ve=1,ax(),lx(),ox()}}function ax(){if(ve===1){ve=0;var n=vi,a=Zs,o=(a.flags&13878)!==0;if((a.subtreeFlags&13878)!==0||o){o=C.T,C.T=null;var u=$.p;$.p=2;var g=jt;jt|=4;try{Fm(a,n);var m=Zf,k=Gg(n.containerInfo),E=m.focusedElem,R=m.selectionRange;if(k!==E&&E&&E.ownerDocument&&Yg(E.ownerDocument.documentElement,E)){if(R!==null&&Su(E)){var F=R.start,Z=R.end;if(Z===void 0&&(Z=F),"selectionStart"in E)E.selectionStart=F,E.selectionEnd=Math.min(Z,E.value.length);else{var tt=E.ownerDocument||document,U=tt&&tt.defaultView||window;if(U.getSelection){var V=U.getSelection(),gt=E.textContent.length,ft=Math.min(R.start,gt),Bt=R.end===void 0?ft:Math.min(R.end,gt);!V.extend&&ft>Bt&&(k=Bt,Bt=ft,ft=k);var B=Vg(E,ft),L=Vg(E,Bt);if(B&&L&&(V.rangeCount!==1||V.anchorNode!==B.node||V.anchorOffset!==B.offset||V.focusNode!==L.node||V.focusOffset!==L.offset)){var H=tt.createRange();H.setStart(B.node,B.offset),V.removeAllRanges(),ft>Bt?(V.addRange(H),V.extend(L.node,L.offset)):(H.setEnd(L.node,L.offset),V.addRange(H))}}}}for(tt=[],V=E;V=V.parentNode;)V.nodeType===1&&tt.push({element:V,left:V.scrollLeft,top:V.scrollTop});for(typeof E.focus=="function"&&E.focus(),E=0;E<tt.length;E++){var J=tt[E];J.element.scrollLeft=J.left,J.element.scrollTop=J.top}}Tr=!!Kf,Zf=Kf=null}finally{jt=g,$.p=u,C.T=o}}n.current=a,ve=2}}function lx(){if(ve===2){ve=0;var n=vi,a=Zs,o=(a.flags&8772)!==0;if((a.subtreeFlags&8772)!==0||o){o=C.T,C.T=null;var u=$.p;$.p=2;var g=jt;jt|=4;try{zm(n,a.alternate,a)}finally{jt=g,$.p=u,C.T=o}}ve=3}}function ox(){if(ve===4||ve===3){ve=0,E_();var n=vi,a=Zs,o=Qs,u=Wm;(a.subtreeFlags&10256)!==0||(a.flags&10256)!==0?ve=5:(ve=0,Zs=vi=null,rx(n,n.pendingLanes));var g=n.pendingLanes;if(g===0&&(bi=null),nu(o),a=a.stateNode,Pe&&typeof Pe.onCommitFiberRoot=="function")try{Pe.onCommitFiberRoot(Oa,a,void 0,(a.current.flags&128)===128)}catch{}if(u!==null){a=C.T,g=$.p,$.p=2,C.T=null;try{for(var m=n.onRecoverableError,k=0;k<u.length;k++){var E=u[k];m(E.value,{componentStack:E.stack})}}finally{C.T=a,$.p=g}}(Qs&3)!==0&&dr(),xn(n),g=n.pendingLanes,(o&4194090)!==0&&(g&42)!==0?n===Lf?pl++:(pl=0,Lf=n):pl=0,ml(0)}}function rx(n,a){(n.pooledCacheLanes&=a)===0&&(a=n.pooledCache,a!=null&&(n.pooledCache=null,Xa(a)))}function dr(n){return ax(),lx(),ox(),cx()}function cx(){if(ve!==5)return!1;var n=vi,a=Nf;Nf=0;var o=nu(Qs),u=C.T,g=$.p;try{$.p=32>o?32:o,C.T=null,o=$f,$f=null;var m=vi,k=Qs;if(ve=0,Zs=vi=null,Qs=0,(jt&6)!==0)throw Error(s(331));var E=jt;if(jt|=4,Ym(m.current),Um(m,m.current,k,o),jt=E,ml(0,!1),Pe&&typeof Pe.onPostCommitFiberRoot=="function")try{Pe.onPostCommitFiberRoot(Oa,m)}catch{}return!0}finally{$.p=g,C.T=u,rx(n,a)}}function ux(n,a,o){a=Ze(o,a),a=gf(n.stateNode,a,2),n=ui(n,a,2),n!==null&&(ja(n,2),xn(n))}function Ht(n,a,o){if(n.tag===3)ux(n,n,o);else for(;a!==null;){if(a.tag===3){ux(a,n,o);break}else if(a.tag===1){var u=a.stateNode;if(typeof a.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(bi===null||!bi.has(u))){n=Ze(o,n),o=gm(2),u=ui(a,o,2),u!==null&&(pm(o,u,a,n),ja(u,2),xn(u));break}}a=a.return}}function Hf(n,a,o){var u=n.pingCache;if(u===null){u=n.pingCache=new Qk;var g=new Set;u.set(a,g)}else g=u.get(a),g===void 0&&(g=new Set,u.set(a,g));g.has(o)||(Df=!0,g.add(o),n=iS.bind(null,n,a,o),a.then(n,n))}function iS(n,a,o){var u=n.pingCache;u!==null&&u.delete(a),n.pingedLanes|=n.suspendedLanes&o,n.warmLanes&=~o,Ut===n&&(Mt&o)===o&&(Qt===4||Qt===3&&(Mt&62914560)===Mt&&300>dn()-jf?(jt&2)===0&&Js(n,0):Of|=o,Ks===Mt&&(Ks=0)),xn(n)}function fx(n,a){a===0&&(a=og()),n=$s(n,a),n!==null&&(ja(n,a),xn(n))}function sS(n){var a=n.memoizedState,o=0;a!==null&&(o=a.retryLane),fx(n,o)}function aS(n,a){var o=0;switch(n.tag){case 13:var u=n.stateNode,g=n.memoizedState;g!==null&&(o=g.retryLane);break;case 19:u=n.stateNode;break;case 22:u=n.stateNode._retryCache;break;default:throw Error(s(314))}u!==null&&u.delete(a),fx(n,o)}function lS(n,a){return Qc(n,a)}var hr=null,ea=null,Ff=!1,gr=!1,If=!1,es=0;function xn(n){n!==ea&&n.next===null&&(ea===null?hr=ea=n:ea=ea.next=n),gr=!0,Ff||(Ff=!0,rS())}function ml(n,a){if(!If&&gr){If=!0;do for(var o=!1,u=hr;u!==null;){if(n!==0){var g=u.pendingLanes;if(g===0)var m=0;else{var k=u.suspendedLanes,E=u.pingedLanes;m=(1<<31-He(42|n)+1)-1,m&=g&~(k&~E),m=m&201326741?m&201326741|1:m?m|2:0}m!==0&&(o=!0,px(u,m))}else m=Mt,m=vo(u,u===Ut?m:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(m&3)===0||Ra(u,m)||(o=!0,px(u,m));u=u.next}while(o);If=!1}}function oS(){dx()}function dx(){gr=Ff=!1;var n=0;es!==0&&(mS()&&(n=es),es=0);for(var a=dn(),o=null,u=hr;u!==null;){var g=u.next,m=hx(u,a);m===0?(u.next=null,o===null?hr=g:o.next=g,g===null&&(ea=o)):(o=u,(n!==0||(m&3)!==0)&&(gr=!0)),u=g}ml(n)}function hx(n,a){for(var o=n.suspendedLanes,u=n.pingedLanes,g=n.expirationTimes,m=n.pendingLanes&-62914561;0<m;){var k=31-He(m),E=1<<k,R=g[k];R===-1?((E&o)===0||(E&u)!==0)&&(g[k]=j_(E,a)):R<=a&&(n.expiredLanes|=E),m&=~E}if(a=Ut,o=Mt,o=vo(n,n===a?o:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u=n.callbackNode,o===0||n===a&&(Nt===2||Nt===9)||n.cancelPendingCommit!==null)return u!==null&&u!==null&&Jc(u),n.callbackNode=null,n.callbackPriority=0;if((o&3)===0||Ra(n,o)){if(a=o&-o,a===n.callbackPriority)return a;switch(u!==null&&Jc(u),nu(o)){case 2:case 8:o=sg;break;case 32:o=xo;break;case 268435456:o=ag;break;default:o=xo}return u=gx.bind(null,n),o=Qc(o,u),n.callbackPriority=a,n.callbackNode=o,a}return u!==null&&u!==null&&Jc(u),n.callbackPriority=2,n.callbackNode=null,2}function gx(n,a){if(ve!==0&&ve!==5)return n.callbackNode=null,n.callbackPriority=0,null;var o=n.callbackNode;if(dr()&&n.callbackNode!==o)return null;var u=Mt;return u=vo(n,n===Ut?u:0,n.cancelPendingCommit!==null||n.timeoutHandle!==-1),u===0?null:(Km(n,u,a),hx(n,dn()),n.callbackNode!=null&&n.callbackNode===o?gx.bind(null,n):null)}function px(n,a){if(dr())return null;Km(n,a,!0)}function rS(){yS(function(){(jt&6)!==0?Qc(ig,oS):dx()})}function Uf(){return es===0&&(es=lg()),es}function mx(n){return n==null||typeof n=="symbol"||typeof n=="boolean"?null:typeof n=="function"?n:Eo(""+n)}function xx(n,a){var o=a.ownerDocument.createElement("input");return o.name=a.name,o.value=a.value,n.id&&o.setAttribute("form",n.id),a.parentNode.insertBefore(o,a),n=new FormData(n),o.parentNode.removeChild(o),n}function cS(n,a,o,u,g){if(a==="submit"&&o&&o.stateNode===g){var m=mx((g[Re]||null).action),k=u.submitter;k&&(a=(a=k[Re]||null)?mx(a.formAction):k.getAttribute("formAction"),a!==null&&(m=a,k=null));var E=new Co("action","action",null,u,g);n.push({event:E,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(es!==0){var R=k?xx(g,k):new FormData(g);cf(o,{pending:!0,data:R,method:g.method,action:m},null,R)}}else typeof m=="function"&&(E.preventDefault(),R=k?xx(g,k):new FormData(g),cf(o,{pending:!0,data:R,method:g.method,action:m},m,R))},currentTarget:g}]})}}for(var qf=0;qf<Au.length;qf++){var Vf=Au[qf],uS=Vf.toLowerCase(),fS=Vf[0].toUpperCase()+Vf.slice(1);ln(uS,"on"+fS)}ln(Kg,"onAnimationEnd"),ln(Zg,"onAnimationIteration"),ln(Qg,"onAnimationStart"),ln("dblclick","onDoubleClick"),ln("focusin","onFocus"),ln("focusout","onBlur"),ln(Mk,"onTransitionRun"),ln(Ck,"onTransitionStart"),ln(Dk,"onTransitionCancel"),ln(Jg,"onTransitionEnd"),Es("onMouseEnter",["mouseout","mouseover"]),Es("onMouseLeave",["mouseout","mouseover"]),Es("onPointerEnter",["pointerout","pointerover"]),Es("onPointerLeave",["pointerout","pointerover"]),Pi("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Pi("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Pi("onBeforeInput",["compositionend","keypress","textInput","paste"]),Pi("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Pi("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Pi("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var xl="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(" "),dS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(xl));function yx(n,a){a=(a&4)!==0;for(var o=0;o<n.length;o++){var u=n[o],g=u.event;u=u.listeners;t:{var m=void 0;if(a)for(var k=u.length-1;0<=k;k--){var E=u[k],R=E.instance,F=E.currentTarget;if(E=E.listener,R!==m&&g.isPropagationStopped())break t;m=E,g.currentTarget=F;try{m(g)}catch(Z){er(Z)}g.currentTarget=null,m=R}else for(k=0;k<u.length;k++){if(E=u[k],R=E.instance,F=E.currentTarget,E=E.listener,R!==m&&g.isPropagationStopped())break t;m=E,g.currentTarget=F;try{m(g)}catch(Z){er(Z)}g.currentTarget=null,m=R}}}}function Tt(n,a){var o=a[iu];o===void 0&&(o=a[iu]=new Set);var u=n+"__bubble";o.has(u)||(bx(a,n,2,!1),o.add(u))}function Yf(n,a,o){var u=0;a&&(u|=4),bx(o,n,u,a)}var pr="_reactListening"+Math.random().toString(36).slice(2);function Gf(n){if(!n[pr]){n[pr]=!0,dg.forEach(function(o){o!=="selectionchange"&&(dS.has(o)||Yf(o,!1,n),Yf(o,!0,n))});var a=n.nodeType===9?n:n.ownerDocument;a===null||a[pr]||(a[pr]=!0,Yf("selectionchange",!1,a))}}function bx(n,a,o,u){switch(Ux(a)){case 2:var g=PS;break;case 8:g=HS;break;default:g=od}o=g.bind(null,a,o,n),g=void 0,!gu||a!=="touchstart"&&a!=="touchmove"&&a!=="wheel"||(g=!0),u?g!==void 0?n.addEventListener(a,o,{capture:!0,passive:g}):n.addEventListener(a,o,!0):g!==void 0?n.addEventListener(a,o,{passive:g}):n.addEventListener(a,o,!1)}function Wf(n,a,o,u,g){var m=u;if((a&1)===0&&(a&2)===0&&u!==null)t:for(;;){if(u===null)return;var k=u.tag;if(k===3||k===4){var E=u.stateNode.containerInfo;if(E===g)break;if(k===4)for(k=u.return;k!==null;){var R=k.tag;if((R===3||R===4)&&k.stateNode.containerInfo===g)return;k=k.return}for(;E!==null;){if(k=ks(E),k===null)return;if(R=k.tag,R===5||R===6||R===26||R===27){u=m=k;continue t}E=E.parentNode}}u=u.return}wg(function(){var F=m,Z=du(o),tt=[];t:{var U=tp.get(n);if(U!==void 0){var V=Co,gt=n;switch(n){case"keypress":if(Ao(o)===0)break t;case"keydown":case"keyup":V=lk;break;case"focusin":gt="focus",V=yu;break;case"focusout":gt="blur",V=yu;break;case"beforeblur":case"afterblur":V=yu;break;case"click":if(o.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":V=Cg;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":V=W_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":V=ck;break;case Kg:case Zg:case Qg:V=Z_;break;case Jg:V=fk;break;case"scroll":case"scrollend":V=Y_;break;case"wheel":V=hk;break;case"copy":case"cut":case"paste":V=J_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":V=Og;break;case"toggle":case"beforetoggle":V=pk}var ft=(a&4)!==0,Bt=!ft&&(n==="scroll"||n==="scrollend"),B=ft?U!==null?U+"Capture":null:U;ft=[];for(var L=F,H;L!==null;){var J=L;if(H=J.stateNode,J=J.tag,J!==5&&J!==26&&J!==27||H===null||B===null||(J=La(L,B),J!=null&&ft.push(yl(L,J,H))),Bt)break;L=L.return}0<ft.length&&(U=new V(U,gt,null,o,Z),tt.push({event:U,listeners:ft}))}}if((a&7)===0){t:{if(U=n==="mouseover"||n==="pointerover",V=n==="mouseout"||n==="pointerout",U&&o!==fu&&(gt=o.relatedTarget||o.fromElement)&&(ks(gt)||gt[_s]))break t;if((V||U)&&(U=Z.window===Z?Z:(U=Z.ownerDocument)?U.defaultView||U.parentWindow:window,V?(gt=o.relatedTarget||o.toElement,V=F,gt=gt?ks(gt):null,gt!==null&&(Bt=r(gt),ft=gt.tag,gt!==Bt||ft!==5&&ft!==27&&ft!==6)&&(gt=null)):(V=null,gt=F),V!==gt)){if(ft=Cg,J="onMouseLeave",B="onMouseEnter",L="mouse",(n==="pointerout"||n==="pointerover")&&(ft=Og,J="onPointerLeave",B="onPointerEnter",L="pointer"),Bt=V==null?U:$a(V),H=gt==null?U:$a(gt),U=new ft(J,L+"leave",V,o,Z),U.target=Bt,U.relatedTarget=H,J=null,ks(Z)===F&&(ft=new ft(B,L+"enter",gt,o,Z),ft.target=H,ft.relatedTarget=Bt,J=ft),Bt=J,V&&gt)e:{for(ft=V,B=gt,L=0,H=ft;H;H=na(H))L++;for(H=0,J=B;J;J=na(J))H++;for(;0<L-H;)ft=na(ft),L--;for(;0<H-L;)B=na(B),H--;for(;L--;){if(ft===B||B!==null&&ft===B.alternate)break e;ft=na(ft),B=na(B)}ft=null}else ft=null;V!==null&&vx(tt,U,V,ft,!1),gt!==null&&Bt!==null&&vx(tt,Bt,gt,ft,!0)}}t:{if(U=F?$a(F):window,V=U.nodeName&&U.nodeName.toLowerCase(),V==="select"||V==="input"&&U.type==="file")var rt=Pg;else if(zg(U))if(Hg)rt=Ek;else{rt=Sk;var kt=kk}else V=U.nodeName,!V||V.toLowerCase()!=="input"||U.type!=="checkbox"&&U.type!=="radio"?F&&uu(F.elementType)&&(rt=Pg):rt=Tk;if(rt&&(rt=rt(n,F))){Bg(tt,rt,o,Z);break t}kt&&kt(n,U,F),n==="focusout"&&F&&U.type==="number"&&F.memoizedProps.value!=null&&cu(U,"number",U.value)}switch(kt=F?$a(F):window,n){case"focusin":(zg(kt)||kt.contentEditable==="true")&&(Rs=kt,Tu=F,qa=null);break;case"focusout":qa=Tu=Rs=null;break;case"mousedown":Eu=!0;break;case"contextmenu":case"mouseup":case"dragend":Eu=!1,Wg(tt,o,Z);break;case"selectionchange":if(Ak)break;case"keydown":case"keyup":Wg(tt,o,Z)}var ct;if(vu)t:{switch(n){case"compositionstart":var dt="onCompositionStart";break t;case"compositionend":dt="onCompositionEnd";break t;case"compositionupdate":dt="onCompositionUpdate";break t}dt=void 0}else Os?$g(n,o)&&(dt="onCompositionEnd"):n==="keydown"&&o.keyCode===229&&(dt="onCompositionStart");dt&&(Rg&&o.locale!=="ko"&&(Os||dt!=="onCompositionStart"?dt==="onCompositionEnd"&&Os&&(ct=Ag()):(li=Z,pu="value"in li?li.value:li.textContent,Os=!0)),kt=mr(F,dt),0<kt.length&&(dt=new Dg(dt,n,null,o,Z),tt.push({event:dt,listeners:kt}),ct?dt.data=ct:(ct=Lg(o),ct!==null&&(dt.data=ct)))),(ct=xk?yk(n,o):bk(n,o))&&(dt=mr(F,"onBeforeInput"),0<dt.length&&(kt=new Dg("onBeforeInput","beforeinput",null,o,Z),tt.push({event:kt,listeners:dt}),kt.data=ct)),cS(tt,n,F,o,Z)}yx(tt,a)})}function yl(n,a,o){return{instance:n,listener:a,currentTarget:o}}function mr(n,a){for(var o=a+"Capture",u=[];n!==null;){var g=n,m=g.stateNode;if(g=g.tag,g!==5&&g!==26&&g!==27||m===null||(g=La(n,o),g!=null&&u.unshift(yl(n,g,m)),g=La(n,a),g!=null&&u.push(yl(n,g,m))),n.tag===3)return u;n=n.return}return[]}function na(n){if(n===null)return null;do n=n.return;while(n&&n.tag!==5&&n.tag!==27);return n||null}function vx(n,a,o,u,g){for(var m=a._reactName,k=[];o!==null&&o!==u;){var E=o,R=E.alternate,F=E.stateNode;if(E=E.tag,R!==null&&R===u)break;E!==5&&E!==26&&E!==27||F===null||(R=F,g?(F=La(o,m),F!=null&&k.unshift(yl(o,F,R))):g||(F=La(o,m),F!=null&&k.push(yl(o,F,R)))),o=o.return}k.length!==0&&n.push({event:a,listeners:k})}var hS=/\r\n?/g,gS=/\u0000|\uFFFD/g;function _x(n){return(typeof n=="string"?n:""+n).replace(hS,`
49`).replace(gS,"")}function kx(n,a){return a=_x(a),_x(n)===a}function xr(){}function zt(n,a,o,u,g,m){switch(o){case"children":typeof u=="string"?a==="body"||a==="textarea"&&u===""||Ms(n,u):(typeof u=="number"||typeof u=="bigint")&&a!=="body"&&Ms(n,""+u);break;case"className":ko(n,"class",u);break;case"tabIndex":ko(n,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ko(n,o,u);break;case"style":Tg(n,u,m);break;case"data":if(a!=="object"){ko(n,"data",u);break}case"src":case"href":if(u===""&&(a!=="a"||o!=="href")){n.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(o);break}u=Eo(""+u),n.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="function"){n.setAttribute(o,"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 m=="function"&&(o==="formAction"?(a!=="input"&&zt(n,a,"name",g.name,g,null),zt(n,a,"formEncType",g.formEncType,g,null),zt(n,a,"formMethod",g.formMethod,g,null),zt(n,a,"formTarget",g.formTarget,g,null)):(zt(n,a,"encType",g.encType,g,null),zt(n,a,"method",g.method,g,null),zt(n,a,"target",g.target,g,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){n.removeAttribute(o);break}u=Eo(""+u),n.setAttribute(o,u);break;case"onClick":u!=null&&(n.onclick=xr);break;case"onScroll":u!=null&&Tt("scroll",n);break;case"onScrollEnd":u!=null&&Tt("scrollend",n);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(o=u.__html,o!=null){if(g.children!=null)throw Error(s(60));n.innerHTML=o}}break;case"multiple":n.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":n.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){n.removeAttribute("xlink:href");break}o=Eo(""+u),n.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,""+u):n.removeAttribute(o);break;case"inert":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":u&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,""):n.removeAttribute(o);break;case"capture":case"download":u===!0?n.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?n.setAttribute(o,u):n.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?n.setAttribute(o,u):n.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?n.removeAttribute(o):n.setAttribute(o,u);break;case"popover":Tt("beforetoggle",n),Tt("toggle",n),_o(n,"popover",u);break;case"xlinkActuate":En(n,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":En(n,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":En(n,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":En(n,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":En(n,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":En(n,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":En(n,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":En(n,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":En(n,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":_o(n,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=q_.get(o)||o,_o(n,o,u))}}function Xf(n,a,o,u,g,m){switch(o){case"style":Tg(n,u,m);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(o=u.__html,o!=null){if(g.children!=null)throw Error(s(60));n.innerHTML=o}}break;case"children":typeof u=="string"?Ms(n,u):(typeof u=="number"||typeof u=="bigint")&&Ms(n,""+u);break;case"onScroll":u!=null&&Tt("scroll",n);break;case"onScrollEnd":u!=null&&Tt("scrollend",n);break;case"onClick":u!=null&&(n.onclick=xr);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!hg.hasOwnProperty(o))t:{if(o[0]==="o"&&o[1]==="n"&&(g=o.endsWith("Capture"),a=o.slice(2,g?o.length-7:void 0),m=n[Re]||null,m=m!=null?m[o]:null,typeof m=="function"&&n.removeEventListener(a,m,g),typeof u=="function")){typeof m!="function"&&m!==null&&(o in n?n[o]=null:n.hasAttribute(o)&&n.removeAttribute(o)),n.addEventListener(a,u,g);break t}o in n?n[o]=u:u===!0?n.setAttribute(o,""):_o(n,o,u)}}}function _e(n,a,o){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Tt("error",n),Tt("load",n);var u=!1,g=!1,m;for(m in o)if(o.hasOwnProperty(m)){var k=o[m];if(k!=null)switch(m){case"src":u=!0;break;case"srcSet":g=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:zt(n,a,m,k,o,null)}}g&&zt(n,a,"srcSet",o.srcSet,o,null),u&&zt(n,a,"src",o.src,o,null);return;case"input":Tt("invalid",n);var E=m=k=g=null,R=null,F=null;for(u in o)if(o.hasOwnProperty(u)){var Z=o[u];if(Z!=null)switch(u){case"name":g=Z;break;case"type":k=Z;break;case"checked":R=Z;break;case"defaultChecked":F=Z;break;case"value":m=Z;break;case"defaultValue":E=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(s(137,a));break;default:zt(n,a,u,Z,o,null)}}vg(n,m,E,R,F,k,g,!1),So(n);return;case"select":Tt("invalid",n),u=k=m=null;for(g in o)if(o.hasOwnProperty(g)&&(E=o[g],E!=null))switch(g){case"value":m=E;break;case"defaultValue":k=E;break;case"multiple":u=E;default:zt(n,a,g,E,o,null)}a=m,o=k,n.multiple=!!u,a!=null?As(n,!!u,a,!1):o!=null&&As(n,!!u,o,!0);return;case"textarea":Tt("invalid",n),m=g=u=null;for(k in o)if(o.hasOwnProperty(k)&&(E=o[k],E!=null))switch(k){case"value":u=E;break;case"defaultValue":g=E;break;case"children":m=E;break;case"dangerouslySetInnerHTML":if(E!=null)throw Error(s(91));break;default:zt(n,a,k,E,o,null)}kg(n,u,g,m),So(n);return;case"option":for(R in o)if(o.hasOwnProperty(R)&&(u=o[R],u!=null))switch(R){case"selected":n.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:zt(n,a,R,u,o,null)}return;case"dialog":Tt("beforetoggle",n),Tt("toggle",n),Tt("cancel",n),Tt("close",n);break;case"iframe":case"object":Tt("load",n);break;case"video":case"audio":for(u=0;u<xl.length;u++)Tt(xl[u],n);break;case"image":Tt("error",n),Tt("load",n);break;case"details":Tt("toggle",n);break;case"embed":case"source":case"link":Tt("error",n),Tt("load",n);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(F in o)if(o.hasOwnProperty(F)&&(u=o[F],u!=null))switch(F){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,a));default:zt(n,a,F,u,o,null)}return;default:if(uu(a)){for(Z in o)o.hasOwnProperty(Z)&&(u=o[Z],u!==void 0&&Xf(n,a,Z,u,o,void 0));return}}for(E in o)o.hasOwnProperty(E)&&(u=o[E],u!=null&&zt(n,a,E,u,o,null))}function pS(n,a,o,u){switch(a){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var g=null,m=null,k=null,E=null,R=null,F=null,Z=null;for(V in o){var tt=o[V];if(o.hasOwnProperty(V)&&tt!=null)switch(V){case"checked":break;case"value":break;case"defaultValue":R=tt;default:u.hasOwnProperty(V)||zt(n,a,V,null,u,tt)}}for(var U in u){var V=u[U];if(tt=o[U],u.hasOwnProperty(U)&&(V!=null||tt!=null))switch(U){case"type":m=V;break;case"name":g=V;break;case"checked":F=V;break;case"defaultChecked":Z=V;break;case"value":k=V;break;case"defaultValue":E=V;break;case"children":case"dangerouslySetInnerHTML":if(V!=null)throw Error(s(137,a));break;default:V!==tt&&zt(n,a,U,V,u,tt)}}ru(n,k,E,R,F,Z,m,g);return;case"select":V=k=E=U=null;for(m in o)if(R=o[m],o.hasOwnProperty(m)&&R!=null)switch(m){case"value":break;case"multiple":V=R;default:u.hasOwnProperty(m)||zt(n,a,m,null,u,R)}for(g in u)if(m=u[g],R=o[g],u.hasOwnProperty(g)&&(m!=null||R!=null))switch(g){case"value":U=m;break;case"defaultValue":E=m;break;case"multiple":k=m;default:m!==R&&zt(n,a,g,m,u,R)}a=E,o=k,u=V,U!=null?As(n,!!o,U,!1):!!u!=!!o&&(a!=null?As(n,!!o,a,!0):As(n,!!o,o?[]:"",!1));return;case"textarea":V=U=null;for(E in o)if(g=o[E],o.hasOwnProperty(E)&&g!=null&&!u.hasOwnProperty(E))switch(E){case"value":break;case"children":break;default:zt(n,a,E,null,u,g)}for(k in u)if(g=u[k],m=o[k],u.hasOwnProperty(k)&&(g!=null||m!=null))switch(k){case"value":U=g;break;case"defaultValue":V=g;break;case"children":break;case"dangerouslySetInnerHTML":if(g!=null)throw Error(s(91));break;default:g!==m&&zt(n,a,k,g,u,m)}_g(n,U,V);return;case"option":for(var gt in o)if(U=o[gt],o.hasOwnProperty(gt)&&U!=null&&!u.hasOwnProperty(gt))switch(gt){case"selected":n.selected=!1;break;default:zt(n,a,gt,null,u,U)}for(R in u)if(U=u[R],V=o[R],u.hasOwnProperty(R)&&U!==V&&(U!=null||V!=null))switch(R){case"selected":n.selected=U&&typeof U!="function"&&typeof U!="symbol";break;default:zt(n,a,R,U,u,V)}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 ft in o)U=o[ft],o.hasOwnProperty(ft)&&U!=null&&!u.hasOwnProperty(ft)&&zt(n,a,ft,null,u,U);for(F in u)if(U=u[F],V=o[F],u.hasOwnProperty(F)&&U!==V&&(U!=null||V!=null))switch(F){case"children":case"dangerouslySetInnerHTML":if(U!=null)throw Error(s(137,a));break;default:zt(n,a,F,U,u,V)}return;default:if(uu(a)){for(var Bt in o)U=o[Bt],o.hasOwnProperty(Bt)&&U!==void 0&&!u.hasOwnProperty(Bt)&&Xf(n,a,Bt,void 0,u,U);for(Z in u)U=u[Z],V=o[Z],!u.hasOwnProperty(Z)||U===V||U===void 0&&V===void 0||Xf(n,a,Z,U,u,V);return}}for(var B in o)U=o[B],o.hasOwnProperty(B)&&U!=null&&!u.hasOwnProperty(B)&&zt(n,a,B,null,u,U);for(tt in u)U=u[tt],V=o[tt],!u.hasOwnProperty(tt)||U===V||U==null&&V==null||zt(n,a,tt,U,u,V)}var Kf=null,Zf=null;function yr(n){return n.nodeType===9?n:n.ownerDocument}function Sx(n){switch(n){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Tx(n,a){if(n===0)switch(a){case"svg":return 1;case"math":return 2;default:return 0}return n===1&&a==="foreignObject"?0:n}function Qf(n,a){return n==="textarea"||n==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.children=="bigint"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}var Jf=null;function mS(){var n=window.event;return n&&n.type==="popstate"?n===Jf?!1:(Jf=n,!0):(Jf=null,!1)}var Ex=typeof setTimeout=="function"?setTimeout:void 0,xS=typeof clearTimeout=="function"?clearTimeout:void 0,wx=typeof Promise=="function"?Promise:void 0,yS=typeof queueMicrotask=="function"?queueMicrotask:typeof wx<"u"?function(n){return wx.resolve(null).then(n).catch(bS)}:Ex;function bS(n){setTimeout(function(){throw n})}function ki(n){return n==="head"}function Ax(n,a){var o=a,u=0,g=0;do{var m=o.nextSibling;if(n.removeChild(o),m&&m.nodeType===8)if(o=m.data,o==="/$"){if(0<u&&8>u){o=u;var k=n.ownerDocument;if(o&1&&bl(k.documentElement),o&2&&bl(k.body),o&4)for(o=k.head,bl(o),k=o.firstChild;k;){var E=k.nextSibling,R=k.nodeName;k[Na]||R==="SCRIPT"||R==="STYLE"||R==="LINK"&&k.rel.toLowerCase()==="stylesheet"||o.removeChild(k),k=E}}if(g===0){n.removeChild(m),Al(a);return}g--}else o==="$"||o==="$?"||o==="$!"?g++:u=o.charCodeAt(0)-48;else u=0;o=m}while(o);Al(a)}function td(n){var a=n.firstChild;for(a&&a.nodeType===10&&(a=a.nextSibling);a;){var o=a;switch(a=a.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":td(o),su(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}n.removeChild(o)}}function vS(n,a,o,u){for(;n.nodeType===1;){var g=o;if(n.nodeName.toLowerCase()!==a.toLowerCase()){if(!u&&(n.nodeName!=="INPUT"||n.type!=="hidden"))break}else if(u){if(!n[Na])switch(a){case"meta":if(!n.hasAttribute("itemprop"))break;return n;case"link":if(m=n.getAttribute("rel"),m==="stylesheet"&&n.hasAttribute("data-precedence"))break;if(m!==g.rel||n.getAttribute("href")!==(g.href==null||g.href===""?null:g.href)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin)||n.getAttribute("title")!==(g.title==null?null:g.title))break;return n;case"style":if(n.hasAttribute("data-precedence"))break;return n;case"script":if(m=n.getAttribute("src"),(m!==(g.src==null?null:g.src)||n.getAttribute("type")!==(g.type==null?null:g.type)||n.getAttribute("crossorigin")!==(g.crossOrigin==null?null:g.crossOrigin))&&m&&n.hasAttribute("async")&&!n.hasAttribute("itemprop"))break;return n;default:return n}}else if(a==="input"&&n.type==="hidden"){var m=g.name==null?null:""+g.name;if(g.type==="hidden"&&n.getAttribute("name")===m)return n}else return n;if(n=rn(n.nextSibling),n===null)break}return null}function _S(n,a,o){if(a==="")return null;for(;n.nodeType!==3;)if((n.nodeType!==1||n.nodeName!=="INPUT"||n.type!=="hidden")&&!o||(n=rn(n.nextSibling),n===null))return null;return n}function ed(n){return n.data==="$!"||n.data==="$?"&&n.ownerDocument.readyState==="complete"}function kS(n,a){var o=n.ownerDocument;if(n.data!=="$?"||o.readyState==="complete")a();else{var u=function(){a(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),n._reactRetry=u}}function rn(n){for(;n!=null;n=n.nextSibling){var a=n.nodeType;if(a===1||a===3)break;if(a===8){if(a=n.data,a==="$"||a==="$!"||a==="$?"||a==="F!"||a==="F")break;if(a==="/$")return null}}return n}var nd=null;function Mx(n){n=n.previousSibling;for(var a=0;n;){if(n.nodeType===8){var o=n.data;if(o==="$"||o==="$!"||o==="$?"){if(a===0)return n;a--}else o==="/$"&&a++}n=n.previousSibling}return null}function Cx(n,a,o){switch(a=yr(o),n){case"html":if(n=a.documentElement,!n)throw Error(s(452));return n;case"head":if(n=a.head,!n)throw Error(s(453));return n;case"body":if(n=a.body,!n)throw Error(s(454));return n;default:throw Error(s(451))}}function bl(n){for(var a=n.attributes;a.length;)n.removeAttributeNode(a[0]);su(n)}var sn=new Map,Dx=new Set;function br(n){return typeof n.getRootNode=="function"?n.getRootNode():n.nodeType===9?n:n.ownerDocument}var Pn=$.d;$.d={f:SS,r:TS,D:ES,C:wS,L:AS,m:MS,X:DS,S:CS,M:OS};function SS(){var n=Pn.f(),a=ur();return n||a}function TS(n){var a=Ss(n);a!==null&&a.tag===5&&a.type==="form"?Kp(a):Pn.r(n)}var ia=typeof document>"u"?null:document;function Ox(n,a,o){var u=ia;if(u&&typeof a=="string"&&a){var g=Ke(a);g='link[rel="'+n+'"][href="'+g+'"]',typeof o=="string"&&(g+='[crossorigin="'+o+'"]'),Dx.has(g)||(Dx.add(g),n={rel:n,crossOrigin:o,href:a},u.querySelector(g)===null&&(a=u.createElement("link"),_e(a,"link",n),ge(a),u.head.appendChild(a)))}}function ES(n){Pn.D(n),Ox("dns-prefetch",n,null)}function wS(n,a){Pn.C(n,a),Ox("preconnect",n,a)}function AS(n,a,o){Pn.L(n,a,o);var u=ia;if(u&&n&&a){var g='link[rel="preload"][as="'+Ke(a)+'"]';a==="image"&&o&&o.imageSrcSet?(g+='[imagesrcset="'+Ke(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(g+='[imagesizes="'+Ke(o.imageSizes)+'"]')):g+='[href="'+Ke(n)+'"]';var m=g;switch(a){case"style":m=sa(n);break;case"script":m=aa(n)}sn.has(m)||(n=p({rel:"preload",href:a==="image"&&o&&o.imageSrcSet?void 0:n,as:a},o),sn.set(m,n),u.querySelector(g)!==null||a==="style"&&u.querySelector(vl(m))||a==="script"&&u.querySelector(_l(m))||(a=u.createElement("link"),_e(a,"link",n),ge(a),u.head.appendChild(a)))}}function MS(n,a){Pn.m(n,a);var o=ia;if(o&&n){var u=a&&typeof a.as=="string"?a.as:"script",g='link[rel="modulepreload"][as="'+Ke(u)+'"][href="'+Ke(n)+'"]',m=g;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":m=aa(n)}if(!sn.has(m)&&(n=p({rel:"modulepreload",href:n},a),sn.set(m,n),o.querySelector(g)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(_l(m)))return}u=o.createElement("link"),_e(u,"link",n),ge(u),o.head.appendChild(u)}}}function CS(n,a,o){Pn.S(n,a,o);var u=ia;if(u&&n){var g=Ts(u).hoistableStyles,m=sa(n);a=a||"default";var k=g.get(m);if(!k){var E={loading:0,preload:null};if(k=u.querySelector(vl(m)))E.loading=5;else{n=p({rel:"stylesheet",href:n,"data-precedence":a},o),(o=sn.get(m))&&id(n,o);var R=k=u.createElement("link");ge(R),_e(R,"link",n),R._p=new Promise(function(F,Z){R.onload=F,R.onerror=Z}),R.addEventListener("load",function(){E.loading|=1}),R.addEventListener("error",function(){E.loading|=2}),E.loading|=4,vr(k,a,u)}k={type:"stylesheet",instance:k,count:1,state:E},g.set(m,k)}}}function DS(n,a){Pn.X(n,a);var o=ia;if(o&&n){var u=Ts(o).hoistableScripts,g=aa(n),m=u.get(g);m||(m=o.querySelector(_l(g)),m||(n=p({src:n,async:!0},a),(a=sn.get(g))&&sd(n,a),m=o.createElement("script"),ge(m),_e(m,"link",n),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(g,m))}}function OS(n,a){Pn.M(n,a);var o=ia;if(o&&n){var u=Ts(o).hoistableScripts,g=aa(n),m=u.get(g);m||(m=o.querySelector(_l(g)),m||(n=p({src:n,async:!0,type:"module"},a),(a=sn.get(g))&&sd(n,a),m=o.createElement("script"),ge(m),_e(m,"link",n),o.head.appendChild(m)),m={type:"script",instance:m,count:1,state:null},u.set(g,m))}}function Rx(n,a,o,u){var g=(g=ot.current)?br(g):null;if(!g)throw Error(s(446));switch(n){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(a=sa(o.href),o=Ts(g).hoistableStyles,u=o.get(a),u||(u={type:"style",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){n=sa(o.href);var m=Ts(g).hoistableStyles,k=m.get(n);if(k||(g=g.ownerDocument||g,k={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},m.set(n,k),(m=g.querySelector(vl(n)))&&!m._p&&(k.instance=m,k.state.loading=5),sn.has(n)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},sn.set(n,o),m||RS(g,n,o,k.state))),a&&u===null)throw Error(s(528,""));return k}if(a&&u!==null)throw Error(s(529,""));return null;case"script":return a=o.async,o=o.src,typeof o=="string"&&a&&typeof a!="function"&&typeof a!="symbol"?(a=aa(o),o=Ts(g).hoistableScripts,u=o.get(a),u||(u={type:"script",instance:null,count:0,state:null},o.set(a,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,n))}}function sa(n){return'href="'+Ke(n)+'"'}function vl(n){return'link[rel="stylesheet"]['+n+"]"}function jx(n){return p({},n,{"data-precedence":n.precedence,precedence:null})}function RS(n,a,o,u){n.querySelector('link[rel="preload"][as="style"]['+a+"]")?u.loading=1:(a=n.createElement("link"),u.preload=a,a.addEventListener("load",function(){return u.loading|=1}),a.addEventListener("error",function(){return u.loading|=2}),_e(a,"link",o),ge(a),n.head.appendChild(a))}function aa(n){return'[src="'+Ke(n)+'"]'}function _l(n){return"script[async]"+n}function Nx(n,a,o){if(a.count++,a.instance===null)switch(a.type){case"style":var u=n.querySelector('style[data-href~="'+Ke(o.href)+'"]');if(u)return a.instance=u,ge(u),u;var g=p({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(n.ownerDocument||n).createElement("style"),ge(u),_e(u,"style",g),vr(u,o.precedence,n),a.instance=u;case"stylesheet":g=sa(o.href);var m=n.querySelector(vl(g));if(m)return a.state.loading|=4,a.instance=m,ge(m),m;u=jx(o),(g=sn.get(g))&&id(u,g),m=(n.ownerDocument||n).createElement("link"),ge(m);var k=m;return k._p=new Promise(function(E,R){k.onload=E,k.onerror=R}),_e(m,"link",u),a.state.loading|=4,vr(m,o.precedence,n),a.instance=m;case"script":return m=aa(o.src),(g=n.querySelector(_l(m)))?(a.instance=g,ge(g),g):(u=o,(g=sn.get(m))&&(u=p({},o),sd(u,g)),n=n.ownerDocument||n,g=n.createElement("script"),ge(g),_e(g,"link",u),n.head.appendChild(g),a.instance=g);case"void":return null;default:throw Error(s(443,a.type))}else a.type==="stylesheet"&&(a.state.loading&4)===0&&(u=a.instance,a.state.loading|=4,vr(u,o.precedence,n));return a.instance}function vr(n,a,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),g=u.length?u[u.length-1]:null,m=g,k=0;k<u.length;k++){var E=u[k];if(E.dataset.precedence===a)m=E;else if(m!==g)break}m?m.parentNode.insertBefore(n,m.nextSibling):(a=o.nodeType===9?o.head:o,a.insertBefore(n,a.firstChild))}function id(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.title==null&&(n.title=a.title)}function sd(n,a){n.crossOrigin==null&&(n.crossOrigin=a.crossOrigin),n.referrerPolicy==null&&(n.referrerPolicy=a.referrerPolicy),n.integrity==null&&(n.integrity=a.integrity)}var _r=null;function $x(n,a,o){if(_r===null){var u=new Map,g=_r=new Map;g.set(o,u)}else g=_r,u=g.get(o),u||(u=new Map,g.set(o,u));if(u.has(n))return u;for(u.set(n,null),o=o.getElementsByTagName(n),g=0;g<o.length;g++){var m=o[g];if(!(m[Na]||m[ke]||n==="link"&&m.getAttribute("rel")==="stylesheet")&&m.namespaceURI!=="http://www.w3.org/2000/svg"){var k=m.getAttribute(a)||"";k=n+k;var E=u.get(k);E?E.push(m):u.set(k,[m])}}return u}function Lx(n,a,o){n=n.ownerDocument||n,n.head.insertBefore(o,a==="title"?n.querySelector("head > title"):null)}function jS(n,a,o){if(o===1||a.itemProp!=null)return!1;switch(n){case"meta":case"title":return!0;case"style":if(typeof a.precedence!="string"||typeof a.href!="string"||a.href==="")break;return!0;case"link":if(typeof a.rel!="string"||typeof a.href!="string"||a.href===""||a.onLoad||a.onError)break;switch(a.rel){case"stylesheet":return n=a.disabled,typeof a.precedence=="string"&&n==null;default:return!0}case"script":if(a.async&&typeof a.async!="function"&&typeof a.async!="symbol"&&!a.onLoad&&!a.onError&&a.src&&typeof a.src=="string")return!0}return!1}function zx(n){return!(n.type==="stylesheet"&&(n.state.loading&3)===0)}var kl=null;function NS(){}function $S(n,a,o){if(kl===null)throw Error(s(475));var u=kl;if(a.type==="stylesheet"&&(typeof o.media!="string"||matchMedia(o.media).matches!==!1)&&(a.state.loading&4)===0){if(a.instance===null){var g=sa(o.href),m=n.querySelector(vl(g));if(m){n=m._p,n!==null&&typeof n=="object"&&typeof n.then=="function"&&(u.count++,u=kr.bind(u),n.then(u,u)),a.state.loading|=4,a.instance=m,ge(m);return}m=n.ownerDocument||n,o=jx(o),(g=sn.get(g))&&id(o,g),m=m.createElement("link"),ge(m);var k=m;k._p=new Promise(function(E,R){k.onload=E,k.onerror=R}),_e(m,"link",o),a.instance=m}u.stylesheets===null&&(u.stylesheets=new Map),u.stylesheets.set(a,n),(n=a.state.preload)&&(a.state.loading&3)===0&&(u.count++,a=kr.bind(u),n.addEventListener("load",a),n.addEventListener("error",a))}}function LS(){if(kl===null)throw Error(s(475));var n=kl;return n.stylesheets&&n.count===0&&ad(n,n.stylesheets),0<n.count?function(a){var o=setTimeout(function(){if(n.stylesheets&&ad(n,n.stylesheets),n.unsuspend){var u=n.unsuspend;n.unsuspend=null,u()}},6e4);return n.unsuspend=a,function(){n.unsuspend=null,clearTimeout(o)}}:null}function kr(){if(this.count--,this.count===0){if(this.stylesheets)ad(this,this.stylesheets);else if(this.unsuspend){var n=this.unsuspend;this.unsuspend=null,n()}}}var Sr=null;function ad(n,a){n.stylesheets=null,n.unsuspend!==null&&(n.count++,Sr=new Map,a.forEach(zS,n),Sr=null,kr.call(n))}function zS(n,a){if(!(a.state.loading&4)){var o=Sr.get(n);if(o)var u=o.get(null);else{o=new Map,Sr.set(n,o);for(var g=n.querySelectorAll("link[data-precedence],style[data-precedence]"),m=0;m<g.length;m++){var k=g[m];(k.nodeName==="LINK"||k.getAttribute("media")!=="not all")&&(o.set(k.dataset.precedence,k),u=k)}u&&o.set(null,u)}g=a.instance,k=g.getAttribute("data-precedence"),m=o.get(k)||u,m===u&&o.set(null,g),o.set(k,g),this.count++,u=kr.bind(this),g.addEventListener("load",u),g.addEventListener("error",u),m?m.parentNode.insertBefore(g,m.nextSibling):(n=n.nodeType===9?n.head:n,n.insertBefore(g,n.firstChild)),a.state.loading|=4}}var Sl={$$typeof:D,Provider:null,Consumer:null,_currentValue:W,_currentValue2:W,_threadCount:0};function BS(n,a,o,u,g,m,k,E){this.tag=1,this.containerInfo=n,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=tu(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=tu(0),this.hiddenUpdates=tu(null),this.identifierPrefix=u,this.onUncaughtError=g,this.onCaughtError=m,this.onRecoverableError=k,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=E,this.incompleteTransitions=new Map}function Bx(n,a,o,u,g,m,k,E,R,F,Z,tt){return n=new BS(n,a,o,k,E,R,F,tt),a=1,m===!0&&(a|=24),m=Ie(3,null,null,a),n.current=m,m.stateNode=n,a=Pu(),a.refCount++,n.pooledCache=a,a.refCount++,m.memoizedState={element:u,isDehydrated:o,cache:a},Uu(m),n}function Px(n){return n?(n=Ls,n):Ls}function Hx(n,a,o,u,g,m){g=Px(g),u.context===null?u.context=g:u.pendingContext=g,u=ci(a),u.payload={element:o},m=m===void 0?null:m,m!==null&&(u.callback=m),o=ui(n,u,a),o!==null&&(Ge(o,n,a),Ja(o,n,a))}function Fx(n,a){if(n=n.memoizedState,n!==null&&n.dehydrated!==null){var o=n.retryLane;n.retryLane=o!==0&&o<a?o:a}}function ld(n,a){Fx(n,a),(n=n.alternate)&&Fx(n,a)}function Ix(n){if(n.tag===13){var a=$s(n,67108864);a!==null&&Ge(a,n,67108864),ld(n,67108864)}}var Tr=!0;function PS(n,a,o,u){var g=C.T;C.T=null;var m=$.p;try{$.p=2,od(n,a,o,u)}finally{$.p=m,C.T=g}}function HS(n,a,o,u){var g=C.T;C.T=null;var m=$.p;try{$.p=8,od(n,a,o,u)}finally{$.p=m,C.T=g}}function od(n,a,o,u){if(Tr){var g=rd(u);if(g===null)Wf(n,a,u,Er,o),qx(n,u);else if(IS(g,n,a,o,u))u.stopPropagation();else if(qx(n,u),a&4&&-1<FS.indexOf(n)){for(;g!==null;){var m=Ss(g);if(m!==null)switch(m.tag){case 3:if(m=m.stateNode,m.current.memoizedState.isDehydrated){var k=Bi(m.pendingLanes);if(k!==0){var E=m;for(E.pendingLanes|=2,E.entangledLanes|=2;k;){var R=1<<31-He(k);E.entanglements[1]|=R,k&=~R}xn(m),(jt&6)===0&&(rr=dn()+500,ml(0))}}break;case 13:E=$s(m,2),E!==null&&Ge(E,m,2),ur(),ld(m,2)}if(m=rd(u),m===null&&Wf(n,a,u,Er,o),m===g)break;g=m}g!==null&&u.stopPropagation()}else Wf(n,a,u,null,o)}}function rd(n){return n=du(n),cd(n)}var Er=null;function cd(n){if(Er=null,n=ks(n),n!==null){var a=r(n);if(a===null)n=null;else{var o=a.tag;if(o===13){if(n=c(a),n!==null)return n;n=null}else if(o===3){if(a.stateNode.current.memoizedState.isDehydrated)return a.tag===3?a.stateNode.containerInfo:null;n=null}else a!==n&&(n=null)}}return Er=n,null}function Ux(n){switch(n){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 2;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 8;case"message":switch(w_()){case ig:return 2;case sg:return 8;case xo:case A_:return 32;case ag:return 268435456;default:return 32}default:return 32}}var ud=!1,Si=null,Ti=null,Ei=null,Tl=new Map,El=new Map,wi=[],FS="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function qx(n,a){switch(n){case"focusin":case"focusout":Si=null;break;case"dragenter":case"dragleave":Ti=null;break;case"mouseover":case"mouseout":Ei=null;break;case"pointerover":case"pointerout":Tl.delete(a.pointerId);break;case"gotpointercapture":case"lostpointercapture":El.delete(a.pointerId)}}function wl(n,a,o,u,g,m){return n===null||n.nativeEvent!==m?(n={blockedOn:a,domEventName:o,eventSystemFlags:u,nativeEvent:m,targetContainers:[g]},a!==null&&(a=Ss(a),a!==null&&Ix(a)),n):(n.eventSystemFlags|=u,a=n.targetContainers,g!==null&&a.indexOf(g)===-1&&a.push(g),n)}function IS(n,a,o,u,g){switch(a){case"focusin":return Si=wl(Si,n,a,o,u,g),!0;case"dragenter":return Ti=wl(Ti,n,a,o,u,g),!0;case"mouseover":return Ei=wl(Ei,n,a,o,u,g),!0;case"pointerover":var m=g.pointerId;return Tl.set(m,wl(Tl.get(m)||null,n,a,o,u,g)),!0;case"gotpointercapture":return m=g.pointerId,El.set(m,wl(El.get(m)||null,n,a,o,u,g)),!0}return!1}function Vx(n){var a=ks(n.target);if(a!==null){var o=r(a);if(o!==null){if(a=o.tag,a===13){if(a=c(o),a!==null){n.blockedOn=a,$_(n.priority,function(){if(o.tag===13){var u=Ye();u=eu(u);var g=$s(o,u);g!==null&&Ge(g,o,u),ld(o,u)}});return}}else if(a===3&&o.stateNode.current.memoizedState.isDehydrated){n.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}n.blockedOn=null}function wr(n){if(n.blockedOn!==null)return!1;for(var a=n.targetContainers;0<a.length;){var o=rd(n.nativeEvent);if(o===null){o=n.nativeEvent;var u=new o.constructor(o.type,o);fu=u,o.target.dispatchEvent(u),fu=null}else return a=Ss(o),a!==null&&Ix(a),n.blockedOn=o,!1;a.shift()}return!0}function Yx(n,a,o){wr(n)&&o.delete(a)}function US(){ud=!1,Si!==null&&wr(Si)&&(Si=null),Ti!==null&&wr(Ti)&&(Ti=null),Ei!==null&&wr(Ei)&&(Ei=null),Tl.forEach(Yx),El.forEach(Yx)}function Ar(n,a){n.blockedOn===a&&(n.blockedOn=null,ud||(ud=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,US)))}var Mr=null;function Gx(n){Mr!==n&&(Mr=n,e.unstable_scheduleCallback(e.unstable_NormalPriority,function(){Mr===n&&(Mr=null);for(var a=0;a<n.length;a+=3){var o=n[a],u=n[a+1],g=n[a+2];if(typeof u!="function"){if(cd(u||o)===null)continue;break}var m=Ss(o);m!==null&&(n.splice(a,3),a-=3,cf(m,{pending:!0,data:g,method:o.method,action:u},u,g))}}))}function Al(n){function a(R){return Ar(R,n)}Si!==null&&Ar(Si,n),Ti!==null&&Ar(Ti,n),Ei!==null&&Ar(Ei,n),Tl.forEach(a),El.forEach(a);for(var o=0;o<wi.length;o++){var u=wi[o];u.blockedOn===n&&(u.blockedOn=null)}for(;0<wi.length&&(o=wi[0],o.blockedOn===null);)Vx(o),o.blockedOn===null&&wi.shift();if(o=(n.ownerDocument||n).$$reactFormReplay,o!=null)for(u=0;
49u<o.length;u+=3){var g=o[u],m=o[u+1],k=g[Re]||null;if(typeof m=="function")k||Gx(o);else if(k){var E=null;if(m&&m.hasAttribute("formAction")){if(g=m,k=m[Re]||null)E=k.formAction;else if(cd(g)!==null)continue}else E=k.action;typeof E=="function"?o[u+1]=E:(o.splice(u,3),u-=3),Gx(o)}}}function fd(n){this._internalRoot=n}Cr.prototype.render=fd.prototype.render=function(n){var a=this._internalRoot;if(a===null)throw Error(s(409));var o=a.current,u=Ye();Hx(o,u,n,a,null,null)},Cr.prototype.unmount=fd.prototype.unmount=function(){var n=this._internalRoot;if(n!==null){this._internalRoot=null;var a=n.containerInfo;Hx(n.current,2,null,n,null,null),ur(),a[_s]=null}};function Cr(n){this._internalRoot=n}Cr.prototype.unstable_scheduleHydration=function(n){if(n){var a=ug();n={blockedOn:null,target:n,priority:a};for(var o=0;o<wi.length&&a!==0&&a<wi[o].priority;o++);wi.splice(o,0,n),o===0&&Vx(n)}};var Wx=t.version;if(Wx!=="19.1.1")throw Error(s(527,Wx,"19.1.1"));$.findDOMNode=function(n){var a=n._reactInternals;if(a===void 0)throw typeof n.render=="function"?Error(s(188)):(n=Object.keys(n).join(","),Error(s(268,n)));return n=d(a),n=n!==null?h(n):null,n=n===null?null:n.stateNode,n};var qS={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:C,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Dr=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Dr.isDisabled&&Dr.supportsFiber)try{Oa=Dr.inject(qS),Pe=Dr}catch{}}return Cl.createRoot=function(n,a){if(!l(n))throw Error(s(299));var o=!1,u="",g=um,m=fm,k=dm,E=null;return a!=null&&(a.unstable_strictMode===!0&&(o=!0),a.identifierPrefix!==void 0&&(u=a.identifierPrefix),a.onUncaughtError!==void 0&&(g=a.onUncaughtError),a.onCaughtError!==void 0&&(m=a.onCaughtError),a.onRecoverableError!==void 0&&(k=a.onRecoverableError),a.unstable_transitionCallbacks!==void 0&&(E=a.unstable_transitionCallbacks)),a=Bx(n,1,!1,null,null,o,u,g,m,k,E,null),n[_s]=a.current,Gf(n),new fd(a)},Cl.hydrateRoot=function(n,a,o){if(!l(n))throw Error(s(299));var u=!1,g="",m=um,k=fm,E=dm,R=null,F=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(g=o.identifierPrefix),o.onUncaughtError!==void 0&&(m=o.onUncaughtError),o.onCaughtError!==void 0&&(k=o.onCaughtError),o.onRecoverableError!==void 0&&(E=o.onRecoverableError),o.unstable_transitionCallbacks!==void 0&&(R=o.unstable_transitionCallbacks),o.formState!==void 0&&(F=o.formState)),a=Bx(n,1,!0,a,o??null,u,g,m,k,E,R,F),a.context=Px(null),o=a.current,u=Ye(),u=eu(u),g=ci(u),g.callback=null,ui(o,g,u),o=u,a.current.lanes=o,ja(a,o),xn(a),n[_s]=a.current,Gf(n),new Cr(a)},Cl.version="19.1.1",Cl}var sy;function JS(){if(sy)return gd.exports;sy=1;function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}return e(),gd.exports=QS(),gd.exports}var t2=JS();/**
50 * react-router v7.8.0
51 *
52 * Copyright (c) Remix Software Inc.
53 *
54 * This source code is licensed under the MIT license found in the
55 * LICENSE.md file in the root directory of this source tree.
56 *
57 * @license MIT
58 */var ay="popstate";function e2(e={}){function t(s,l){let{pathname:r,search:c,hash:f}=s.location;return th("",{pathname:r,search:c,hash:f},l.state&&l.state.usr||null,l.state&&l.state.key||"default")}function i(s,l){return typeof l=="string"?l:Ql(l)}return i2(t,i,null,e)}function fe(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function kn(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function n2(){return Math.random().toString(36).substring(2,10)}function ly(e,t){return{usr:e.state,key:e.key,idx:t}}function th(e,t,i=null,s){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?ro(t):t,state:i,key:t&&t.key||s||n2()}}function Ql({pathname:e="/",search:t="",hash:i=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function ro(e){let t={};if(e){let i=e.indexOf("#");i>=0&&(t.hash=e.substring(i),e=e.substring(0,i));let s=e.indexOf("?");s>=0&&(t.search=e.substring(s),e=e.substring(0,s)),e&&(t.pathname=e)}return t}function i2(e,t,i,s={}){let{window:l=document.defaultView,v5Compat:r=!1}=s,c=l.history,f="POP",d=null,h=p();h==null&&(h=0,c.replaceState({...c.state,idx:h},""));function p(){return(c.state||{idx:null}).idx}function x(){f="POP";let T=p(),w=T==null?null:T-h;h=T,d&&d({action:f,location:S.location,delta:w})}function y(T,w){f="PUSH";let M=th(S.location,T,w);h=p()+1;let D=ly(M,h),N=S.createHref(M);try{c.pushState(D,"",N)}catch(j){if(j instanceof DOMException&&j.name==="DataCloneError")throw j;l.location.assign(N)}r&&d&&d({action:f,location:S.location,delta:1})}function v(T,w){f="REPLACE";let M=th(S.location,T,w);h=p();let D=ly(M,h),N=S.createHref(M);c.replaceState(D,"",N),r&&d&&d({action:f,location:S.location,delta:0})}function _(T){return s2(T)}let S={get action(){return f},get location(){return e(l,c)},listen(T){if(d)throw new Error("A history only accepts one active listener");return l.addEventListener(ay,x),d=T,()=>{l.removeEventListener(ay,x),d=null}},createHref(T){return t(l,T)},createURL:_,encodeLocation(T){let w=_(T);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:y,replace:v,go(T){return c.go(T)}};return S}function s2(e,t=!1){let i="http://localhost";
58typeof window<"u"&&(i=window.location.origin!=="null"?window.location.origin:window.location.href),fe(i,"No window.location.(origin|href) available to create URL");let s=typeof e=="string"?e:Ql(e);return s=s.replace(/ $/,"%20"),!t&&s.startsWith("//")&&(s=i+s),new URL(s,i)}function Cb(e,t,i="/"){return a2(e,t,i,!1)}function a2(e,t,i,s){let l=typeof t=="string"?ro(t):t,r=Jn(l.pathname||"/",i);if(r==null)return null;let c=Db(e);l2(c);let f=null;for(let d=0;f==null&&d<c.length;++d){let h=x2(r);f=p2(c[d],h,s)}return f}function Db(e,t=[],i=[],s=""){let l=(r,c,f)=>{let d={relativePath:f===void 0?r.path||"":f,caseSensitive:r.caseSensitive===!0,childrenIndex:c,route:r};d.relativePath.startsWith("/")&&(fe(d.relativePath.startsWith(s),`Absolute route path "${d.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(s.length));let h=Kn([s,d.relativePath]),p=i.concat(d);r.children&&r.children.length>0&&(fe(r.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${h}".`),Db(r.children,t,p,h)),!(r.path==null&&!r.index)&&t.push({path:h,score:h2(h,r.index),routesMeta:p})};return e.forEach((r,c)=>{if(r.path===""||!r.path?.includes("?"))l(r,c);else for(let f of Ob(r.path))l(r,c,f)}),t}function Ob(e){let t=e.split("/");if(t.length===0)return[];let[i,...s]=t,l=i.endsWith("?"),r=i.replace(/\?$/,"");if(s.length===0)return l?[r,""]:[r];let c=Ob(s.join("/")),f=[];return f.push(...c.map(d=>d===""?r:[r,d].join("/"))),l&&f.push(...c),f.map(d=>e.startsWith("/")&&d===""?"/":d)}function l2(e){e.sort((t,i)=>t.score!==i.score?i.score-t.score:g2(t.routesMeta.map(s=>s.childrenIndex),i.routesMeta.map(s=>s.childrenIndex)))}var o2=/^:[\w-]+$/,r2=3,c2=2,u2=1,f2=10,d2=-2,oy=e=>e==="*";function h2(e,t){let i=e.split("/"),s=i.length;return i.some(oy)&&(s+=d2),t&&(s+=c2),i.filter(l=>!oy(l)).reduce((l,r)=>l+(o2.test(r)?r2:r===""?u2:f2),s)}function g2(e,t){return e.length===t.length&&e.slice(0,-1).every((s,l)=>s===t[l])?e[e.length-1]-t[t.length-1]:0}function p2(e,t,i=!1){let{routesMeta:s}=e,l={},r="/",c=[];for(let f=0;f<s.length;++f){let d=s[f],h=f===s.length-1,p=r==="/"?t:t.slice(r.length)||"/",x=dc({path:d.relativePath,caseSensitive:d.caseSensitive,end:h},p),y=d.route;if(!x&&h&&i&&!s[s.length-1].route.index&&(x=dc({path:d.relativePath,caseSensitive:d.caseSensitive,end:!1},p)),!x)return null;
58Object.assign(l,x.params),c.push({params:l,pathname:Kn([r,x.pathname]),pathnameBase:_2(Kn([r,x.pathnameBase])),route:y}),x.pathnameBase!=="/"&&(r=Kn([r,x.pathnameBase]))}return c}function dc(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[i,s]=m2(e.path,e.caseSensitive,e.end),l=t.match(i);if(!l)return null;let r=l[0],c=r.replace(/(.)\/+$/,"$1"),f=l.slice(1);return{params:s.reduce((h,{paramName:p,isOptional:x},y)=>{if(p==="*"){let _=f[y]||"";c=r.slice(0,r.length-_.length).replace(/(.)\/+$/,"$1")}const v=f[y];return x&&!v?h[p]=void 0:h[p]=(v||"").replace(/%2F/g,"/"),h},{}),pathname:r,pathnameBase:c,pattern:e}}function m2(e,t=!1,i=!0){kn(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let s=[],l="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(c,f,d)=>(s.push({paramName:f,isOptional:d!=null}),d?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(s.push({paramName:"*"}),l+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):i?l+="\\/*$":e!==""&&e!=="/"&&(l+="(?:(?=\\/|$))"),[new RegExp(l,t?void 0:"i"),s]}function x2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return kn(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Jn(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let i=t.endsWith("/")?t.length-1:t.length,s=e.charAt(i);return s&&s!=="/"?null:e.slice(i)||"/"}function y2(e,t="/"){let{pathname:i,search:s="",hash:l=""}=typeof e=="string"?ro(e):e;return{pathname:i?i.startsWith("/")?i:b2(i,t):t,search:k2(s),hash:S2(l)}}function b2(e,t){let i=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(l=>{l===".."?i.length>1&&i.pop():l!=="."&&i.push(l)}),i.length>1?i.join("/"):"/"}function yd(e,t,i,s){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(s)}].  Please separate it out to the \`to.${i}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function v2(e){return e.filter((t,i)=>i===0||t.route.path&&t.route.path.length>0)}function Rb(e){let t=v2(e);return t.map((i,s)=>s===t.length-1?i.pathname:i.pathnameBase)}function jb(e,t,i,s=!1){let l;typeof e=="string"?l=ro(e):(l={...e},fe(!l.pathname||!l.pathname.includes("?"),yd("?","pathname","search",l)),fe(!l.pathname||!l.pathname.includes("#"),yd("#","pathname","hash",l)),fe(!l.search||!l.search.includes("#"),yd("#","search","hash",l)));let r=e===""||l.pathname==="",c=r?"/":l.pathname,f;if(c==null)f=i;else{let x=t.length-1;if(!s&&c.startsWith("..")){let y=c.split("/");for(;y[0]==="..";)y.shift(),x-=1;l.pathname=y.join("/")}f=x>=0?t[x]:"/"}let d=y2(l,f),h=c&&c!=="/"&&c.endsWith("/"),p=(r||c===".")&&i.endsWith("/");return!d.pathname.endsWith("/")&&(h||p)&&(d.pathname+="/"),d}var Kn=e=>e.join("/").replace(/\/\/+/g,"/"),_2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),k2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,S2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function T2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}var Nb=["POST","PUT","PATCH","DELETE"];new Set(Nb);var E2=["GET",...Nb];new Set(E2);var Aa=A.createContext(null);Aa.displayName="DataRouter";var Cc=A.createContext(null);Cc.displayName="DataRouterState";A.createContext(!1);var $b=A.createContext({isTransitioning:!1});$b.displayName="ViewTransition";var w2=A.createContext(new Map);w2.displayName="Fetchers";var A2=A.createContext(null);A2.displayName="Await";var Sn=A.createContext(null);Sn.displayName="Navigation";var Dc=A.createContext(null);Dc.displayName="Location";var ei=A.createContext({outlet:null,matches:[],isDataRoute:!1});ei.displayName="Route";var kh=A.createContext(null);kh.displayName="RouteError";function M2(e,{relative:t}={}){fe(co(),"useHref() may be used only in the context of a <Router> component.");let{basename:i,navigator:s}=A.useContext(Sn),{hash:l,pathname:r,search:c}=uo(e,{relative:t}),f=r;return i!=="/"&&(f=r==="/"?i:Kn([i,r])),s.createHref({pathname:f,search:c,hash:l})}function co(){return A.useContext(Dc)!=null}function Tn(){return fe(co(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(Dc).location}var Lb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function zb(e){A.useContext(Sn).static||A.useLayoutEffect(e)}function C2(){let{isDataRoute:e}=A.useContext(ei);return e?I2():D2()}
58function D2(){fe(co(),"useNavigate() may be used only in the context of a <Router> component.");let e=A.useContext(Aa),{basename:t,navigator:i}=A.useContext(Sn),{matches:s}=A.useContext(ei),{pathname:l}=Tn(),r=JSON.stringify(Rb(s)),c=A.useRef(!1);return zb(()=>{c.current=!0}),A.useCallback((d,h={})=>{if(kn(c.current,Lb),!c.current)return;if(typeof d=="number"){i.go(d);return}let p=jb(d,JSON.parse(r),l,h.relative==="path");e==null&&t!=="/"&&(p.pathname=p.pathname==="/"?t:Kn([t,p.pathname])),(h.replace?i.replace:i.push)(p,h.state,h)},[t,i,r,l,e])}A.createContext(null);function uo(e,{relative:t}={}){let{matches:i}=A.useContext(ei),{pathname:s}=Tn(),l=JSON.stringify(Rb(i));return A.useMemo(()=>jb(e,JSON.parse(l),s,t==="path"),[e,l,s,t])}function O2(e,t){return Bb(e)}function Bb(e,t,i,s){fe(co(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=A.useContext(Sn),{matches:r}=A.useContext(ei),c=r[r.length-1],f=c?c.params:{},d=c?c.pathname:"/",h=c?c.pathnameBase:"/",p=c&&c.route;{let w=p&&p.path||"";Pb(d,!p||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${d}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
59
60Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let x=Tn(),y;y=x;let v=y.pathname||"/",_=v;if(h!=="/"){let w=h.replace(/^\//,"").split("/");_="/"+v.replace(/^\//,"").split("/").slice(w.length).join("/")}let S=Cb(e,{pathname:_});return kn(p||S!=null,`No routes matched location "${y.pathname}${y.search}${y.hash}" `),kn(S==null||S[S.length-1].route.element!==void 0||S[S.length-1].route.Component!==void 0||S[S.length-1].route.lazy!==void 0,`Matched leaf route at location "${y.pathname}${y.search}${y.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),L2(S&&S.map(w=>Object.assign({},w,{params:Object.assign({},f,w.params),pathname:Kn([h,l.encodeLocation?l.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?h:Kn([h,l.encodeLocation?l.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),r,i,s)}function R2(){let e=F2(),t=T2(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),i=e instanceof Error?e.stack:null,s="rgba(200,200,200, 0.5)",l={padding:"0.5rem",backgroundColor:s},r={padding:"2px 4px",backgroundColor:s},c=null;return console.error("Error handled by React Router default ErrorBoundary:",e),c=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:r},"ErrorBoundary")," or"," ",A.createElement("code",{style:r},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),i?A.createElement("pre",{style:l},i):null,c)}var j2=A.createElement(R2,null),N2=class extends A.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error!==void 0?A.createElement(ei.Provider,{value:this.props.routeContext},A.createElement(kh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function $2({routeContext:e,match:t,children:i}){let s=A.useContext(Aa);return s&&s.static&&s.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=t.route.id),A.createElement(ei.Provider,{value:e},i)}function L2(e,t=[],i=null,s=null){if(e==null){if(!i)return null;if(i.errors)e=i.matches;else if(t.length===0&&!i.initialized&&i.matches.length>0)e=i.matches;else return null}let l=e,r=i?.errors;if(r!=null){let d=l.findIndex(h=>h.route.id&&r?.[h.route.id]!==void 0);fe(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(r).join(",")}`),l=l.slice(0,Math.min(l.length,d+1))}let c=!1,f=-1;if(i)for(let d=0;d<l.length;d++){let h=l[d];if((h.route.HydrateFallback||h.route.hydrateFallbackElement)&&(f=d),h.route.id){let{loaderData:p,errors:x}
60=i,y=h.route.loader&&!p.hasOwnProperty(h.route.id)&&(!x||x[h.route.id]===void 0);if(h.route.lazy||y){c=!0,f>=0?l=l.slice(0,f+1):l=[l[0]];break}}}return l.reduceRight((d,h,p)=>{let x,y=!1,v=null,_=null;i&&(x=r&&h.route.id?r[h.route.id]:void 0,v=h.route.errorElement||j2,c&&(f<0&&p===0?(Pb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),y=!0,_=null):f===p&&(y=!0,_=h.route.hydrateFallbackElement||null)));let S=t.concat(l.slice(0,p+1)),T=()=>{let w;return x?w=v:y?w=_:h.route.Component?w=A.createElement(h.route.Component,null):h.route.element?w=h.route.element:w=d,A.createElement($2,{match:h,routeContext:{outlet:d,matches:S,isDataRoute:i!=null},children:w})};return i&&(h.route.ErrorBoundary||h.route.errorElement||p===0)?A.createElement(N2,{location:i.location,revalidation:i.revalidation,component:v,error:x,children:T(),routeContext:{outlet:null,matches:S,isDataRoute:!0}}):T()},null)}function Sh(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function z2(e){let t=A.useContext(Aa);return fe(t,Sh(e)),t}function B2(e){let t=A.useContext(Cc);return fe(t,Sh(e)),t}function P2(e){let t=A.useContext(ei);return fe(t,Sh(e)),t}function Th(e){let t=P2(e),i=t.matches[t.matches.length-1];return fe(i.route.id,`${e} can only be used on routes that contain a unique "id"`),i.route.id}function H2(){return Th("useRouteId")}function F2(){let e=A.useContext(kh),t=B2("useRouteError"),i=Th("useRouteError");return e!==void 0?e:t.errors?.[i]}function I2(){let{router:e}=z2("useNavigate"),t=Th("useNavigate"),i=A.useRef(!1);return zb(()=>{i.current=!0}),A.useCallback(async(l,r={})=>{kn(i.current,Lb),i.current&&(typeof l=="number"?e.navigate(l):await e.navigate(l,{fromRouteId:t,...r}))},[e,t])}var ry={};function Pb(e,t,i){!t&&!ry[e]&&(ry[e]=!0,kn(!1,i))}A.memo(U2);function U2({routes:e,future:t,state:i}){return Bb(e,void 0,i,t)}function q2({basename:e="/",children:t=null,location:i,navigationType:s="POP",navigator:l,static:r=!1}){fe(!co(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let c=e.replace(/^\/*/,"/"),f=A.useMemo(()=>({basename:c,navigator:l,static:r,future:{}}),[c,l,r]);typeof i=="string"&&(i=ro(i));let{pathname:d="/",search:h="",hash:p="",state:x=null,key:y="default"}=i,v=A.useMemo(()=>{let _=Jn(d,c);return _==null?null:{location:{pathname:_,search:h,hash:p,state:x,key:y},navigationType:s}},[c,d,h,p,x,y,s]);return kn(v!=null,`<Router basename="${c}"> is not able to match the URL "${d}${h}${p}" because it does not start with the basename, so the <Router> won't render anything.`),v==null?null:A.createElement(Sn.Provider,{value:f},A.createElement(Dc.Provider,{children:t,value:v}))}var lc="get",oc="application/x-www-form-urlencoded";function Oc(e){return e!=null&&typeof e.tagName=="string"}function V2(e){return Oc(e)&&e.tagName.toLowerCase()==="button"}function Y2(e){return Oc(e)&&e.tagName.toLowerCase()==="form"}function G2(e){return Oc(e)&&e.tagName.toLowerCase()==="input"}function W2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function X2(e,t){return e.button===0&&(!t||t==="_self")&&!W2(e)}var Or=null;function K2(){if(Or===null)try{new FormData(document.createElement("form"),0),Or=!1}catch{Or=!0}return Or}var Z2=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function bd(e){return e!=null&&!Z2.has(e)?(kn(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${oc}"`),null):e}function Q2(e,t){let i,s,l,r,c;if(Y2(e)){let f=e.getAttribute("action");s=f?Jn(f,t):null,i=e.getAttribute("method")||lc,l=bd(e.getAttribute("enctype"))||oc,r=new FormData(e)}else if(V2(e)||G2(e)&&(e.type==="submit"||e.type==="image")){let f=e.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let d=e.getAttribute("formaction")||f.getAttribute("action");if(s=d?Jn(d,t):null,i=e.getAttribute("formmethod")||f.getAttribute("method")||lc,l=bd(e.getAttribute("formenctype"))||bd(f.getAttribute("enctype"))||oc,r=new FormData(f,e),!K2()){let{name:h,type:p,value:x}=e;if(p==="image"){let y=h?`${h}.`:"";r.append(`${y}x`,"0"),r.append(`${y}y`,"0")}else h&&r.append(h,x)}}else{if(Oc(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');
60i=lc,s=null,l=oc,c=e}return r&&l==="text/plain"&&(c=r,r=void 0),{action:s,method:i.toLowerCase(),encType:l,formData:r,body:c}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function Eh(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function J2(e,t,i){let s=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return s.pathname==="/"?s.pathname=`_root.${i}`:t&&Jn(s.pathname,t)==="/"?s.pathname=`${t.replace(/\/$/,"")}/_root.${i}`:s.pathname=`${s.pathname.replace(/\/$/,"")}.${i}`,s}async function tT(e,t){if(e.id in t)return t[e.id];try{let i=await import(e.module);return t[e.id]=i,i}catch(i){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(i),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function eT(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function nT(e,t,i){let s=await Promise.all(e.map(async l=>{let r=t.routes[l.route.id];if(r){let c=await tT(r,i);return c.links?c.links():[]}return[]}));return lT(s.flat(1).filter(eT).filter(l=>l.rel==="stylesheet"||l.rel==="preload").map(l=>l.rel==="stylesheet"?{...l,rel:"prefetch",as:"style"}:{...l,rel:"prefetch"}))}function cy(e,t,i,s,l,r){let c=(d,h)=>i[h]?d.route.id!==i[h].route.id:!0,f=(d,h)=>i[h].pathname!==d.pathname||i[h].route.path?.endsWith("*")&&i[h].params["*"]!==d.params["*"];return r==="assets"?t.filter((d,h)=>c(d,h)||f(d,h)):r==="data"?t.filter((d,h)=>{let p=s.routes[d.route.id];if(!p||!p.hasLoader)return!1;if(c(d,h)||f(d,h))return!0;if(d.route.shouldRevalidate){let x=d.route.shouldRevalidate({currentUrl:new URL(l.pathname+l.search+l.hash,window.origin),currentParams:i[0]?.params||{},nextUrl:new URL(e,window.origin),nextParams:d.params,defaultShouldRevalidate:!0});if(typeof x=="boolean")return x}return!0}):[]}function iT(e,t,{includeHydrateFallback:i}={}){return sT(e.map(s=>{let l=t.routes[s.route.id];if(!l)return[];let r=[l.module];return l.clientActionModule&&(r=r.concat(l.clientActionModule)),l.clientLoaderModule&&(r=r.concat(l.clientLoaderModule)),i&&l.hydrateFallbackModule&&(r=r.concat(l.hydrateFallbackModule)),l.imports&&(r=r.concat(l.imports)),r}).flat(1))}function sT(e){return[...new Set(e)]}function aT(e){let t={},i=Object.keys(e).sort();for(let s of i)t[s]=e[s];return t}function lT(e,t){let i=new Set;return new Set(t),e.reduce((s,l)=>{let r=JSON.stringify(aT(l));return i.has(r)||(i.add(r),s.push({key:r,link:l})),s},[])}function Hb(){let e=A.useContext(Aa);return Eh(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function oT(){let e=A.useContext(Cc);return Eh(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var wh=A.createContext(void 0);wh.displayName="FrameworkContext";function Fb(){let e=A.useContext(wh);return Eh(e,"You must render this element inside a <HydratedRouter> element"),e}function rT(e,t){let i=A.useContext(wh),[s,l]=A.useState(!1),[r,c]=A.useState(!1),{onFocus:f,onBlur:d,onMouseEnter:h,onMouseLeave:p,onTouchStart:x}=t,y=A.useRef(null);A.useEffect(()=>{if(e==="render"&&c(!0),e==="viewport"){let S=w=>{w.forEach(M=>{c(M.isIntersecting)})},T=new IntersectionObserver(S,{threshold:.5});return y.current&&T.observe(y.current),()=>{T.disconnect()}}},[e]),A.useEffect(()=>{if(s){let S=setTimeout(()=>{c(!0)},100);return()=>{clearTimeout(S)}}},[s]);let v=()=>{l(!0)},_=()=>{l(!1),c(!1)};return i?e!=="intent"?[r,y,{}]:[r,y,{onFocus:Dl(f,v),onBlur:Dl(d,_),onMouseEnter:Dl(h,v),onMouseLeave:Dl(p,_),onTouchStart:Dl(x,v)}]:[!1,y,{}]}function Dl(e,t){return i=>{e&&e(i),i.defaultPrevented||t(i)}}function cT({page:e,...t}){let{router:i}=Hb(),s=A.useMemo(()=>Cb(i.routes,e,i.basename),[i.routes,e,i.basename]);return s?A.createElement(fT,{page:e,matches:s,...t}):null}function uT(e){let{manifest:t,routeModules:i}=Fb(),[s,l]=A.useState([]);return A.useEffect(()=>{let r=!1;return nT(e,t,i).then(c=>{r||l(c)}),()=>{r=!0}},[e,t,i]),s}function fT({page:e,matches:t,...i}){let s=Tn(),{manifest:l,routeModules:r}=Fb(),{basename:c}=Hb(),{loaderData:f,matches:d}=oT(),h=A.useMemo(()=>cy(e,t,d,l,s,"data"),[e,t,d,l,s]),p=A.useMemo(()=>cy(e,t,d,l,s,"assets"),[e,t,d,l,s]),x=A.useMemo(()=>
60{if(e===s.pathname+s.search+s.hash)return[];let _=new Set,S=!1;if(t.forEach(w=>{let M=l.routes[w.route.id];!M||!M.hasLoader||(!h.some(D=>D.route.id===w.route.id)&&w.route.id in f&&r[w.route.id]?.shouldRevalidate||M.hasClientLoader?S=!0:_.add(w.route.id))}),_.size===0)return[];let T=J2(e,c,"data");return S&&_.size>0&&T.searchParams.set("_routes",t.filter(w=>_.has(w.route.id)).map(w=>w.route.id).join(",")),[T.pathname+T.search]},[c,f,s,l,h,t,e,r]),y=A.useMemo(()=>iT(p,l),[p,l]),v=uT(p);return A.createElement(A.Fragment,null,x.map(_=>A.createElement("link",{key:_,rel:"prefetch",as:"fetch",href:_,...i})),y.map(_=>A.createElement("link",{key:_,rel:"modulepreload",href:_,...i})),v.map(({key:_,link:S})=>A.createElement("link",{key:_,nonce:i.nonce,...S})))}function dT(...e){return t=>{e.forEach(i=>{typeof i=="function"?i(t):i!=null&&(i.current=t)})}}var Ib=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Ib&&(window.__reactRouterVersion="7.8.0")}catch{}function hT({basename:e,children:t,window:i}){let s=A.useRef();s.current==null&&(s.current=e2({window:i,v5Compat:!0}));let l=s.current,[r,c]=A.useState({action:l.action,location:l.location}),f=A.useCallback(d=>{A.startTransition(()=>c(d))},[c]);return A.useLayoutEffect(()=>l.listen(f),[l,f]),A.createElement(q2,{basename:e,children:t,location:r.location,navigationType:r.action,navigator:l})}var Ub=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Rc=A.forwardRef(function({onClick:t,discover:i="render",prefetch:s="none",relative:l,reloadDocument:r,replace:c,state:f,target:d,to:h,preventScrollReset:p,viewTransition:x,...y},v){let{basename:_}=A.useContext(Sn),S=typeof h=="string"&&Ub.test(h),T,w=!1;if(typeof h=="string"&&S&&(T=h,Ib))try{let Y=new URL(window.location.href),K=h.startsWith("//")?new URL(Y.protocol+h):new URL(h),et=Jn(K.pathname,_);K.origin===Y.origin&&et!=null?h=et+K.search+K.hash:w=!0}catch{kn(!1,`<Link to="${h}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let M=M2(h,{relative:l}),[D,N,j]=rT(s,y),P=xT(h,{replace:c,state:f,target:d,preventScrollReset:p,relative:l,viewTransition:x});function I(Y){t&&t(Y),Y.defaultPrevented||P(Y)}let q=A.createElement("a",{...y,...j,href:T||M,onClick:w||r?t:I,ref:dT(v,N),target:d,"data-discover":!S&&i==="render"?"true":void 0});return D&&!S?A.createElement(A.Fragment,null,q,A.createElement(cT,{page:M})):q});Rc.displayName="Link";var gT=A.forwardRef(function({"aria-current":t="page",caseSensitive:i=!1,className:s="",end:l=!1,style:r,to:c,viewTransition:f,children:d,...h},p){let x=uo(c,{relative:h.relative}),y=Tn(),v=A.useContext(Cc),{navigator:_,basename:S}=A.useContext(Sn),T=v!=null&&kT(x)&&f===!0,w=_.encodeLocation?_.encodeLocation(x).pathname:x.pathname,M=y.pathname,D=v&&v.navigation&&v.navigation.location?v.navigation.location.pathname:null;i||(M=M.toLowerCase(),D=D?D.toLowerCase():null,w=w.toLowerCase()),D&&S&&(D=Jn(D,S)||D);const N=w!=="/"&&w.endsWith("/")?w.length-1:w.length;let j=M===w||!l&&M.startsWith(w)&&M.charAt(N)==="/",P=D!=null&&(D===w||!l&&D.startsWith(w)&&D.charAt(w.length)==="/"),I={isActive:j,isPending:P,isTransitioning:T},q=j?t:void 0,Y;typeof s=="function"?Y=s(I):Y=[s,j?"active":null,P?"pending":null,T?"transitioning":null].filter(Boolean).join(" ");let K=typeof r=="function"?r(I):r;return A.createElement(Rc,{...h,"aria-current":q,className:Y,ref:p,style:K,to:c,viewTransition:f},typeof d=="function"?d(I):d)});gT.displayName="NavLink";var pT=A.forwardRef(({discover:e="render",fetcherKey:t,navigate:i,reloadDocument:s,replace:l,state:r,method:c=lc,action:f,onSubmit:d,relative:h,preventScrollReset:p,viewTransition:x,...y},v)=>{let _=vT(),S=_T(f,{relative:h}),T=c.toLowerCase()==="get"?"get":"post",w=typeof f=="string"&&Ub.test(f),M=D=>{if(d&&d(D),D.defaultPrevented)return;D.preventDefault();let N=D.nativeEvent.submitter,j=N?.getAttribute("formmethod")||c;_(N||D.currentTarget,{fetcherKey:t,method:j,navigate:i,replace:l,state:r,relative:h,preventScrollReset:p,viewTransition:x})};return A.createElement("form",{ref:v,method:T,action:S,onSubmit:s?d:M,...y,"data-discover":!w&&e==="render"?"true":void 0})});pT.displayName="Form";function mT(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function qb(e){let t=A.useContext(Aa);return fe(t,mT(e)),t}function xT(e,{target:t,replace:i,state:s,preventScrollReset:l,relative:r,viewTransition:c}={}){let f=C2(),d=Tn(),h=uo(e,{relative:r});return A.useCallback(p=>{if(X2(p,t)){p.preventDefault();
60let x=i!==void 0?i:Ql(d)===Ql(h);f(e,{replace:x,state:s,preventScrollReset:l,relative:r,viewTransition:c})}},[d,f,h,i,s,t,e,l,r,c])}var yT=0,bT=()=>`__${String(++yT)}__`;function vT(){let{router:e}=qb("useSubmit"),{basename:t}=A.useContext(Sn),i=H2();return A.useCallback(async(s,l={})=>{let{action:r,method:c,encType:f,formData:d,body:h}=Q2(s,t);if(l.navigate===!1){let p=l.fetcherKey||bT();await e.fetch(p,i,l.action||r,{preventScrollReset:l.preventScrollReset,formData:d,body:h,formMethod:l.method||c,formEncType:l.encType||f,flushSync:l.flushSync})}else await e.navigate(l.action||r,{preventScrollReset:l.preventScrollReset,formData:d,body:h,formMethod:l.method||c,formEncType:l.encType||f,replace:l.replace,state:l.state,fromRouteId:i,flushSync:l.flushSync,viewTransition:l.viewTransition})},[e,t,i])}function _T(e,{relative:t}={}){let{basename:i}=A.useContext(Sn),s=A.useContext(ei);fe(s,"useFormAction must be used inside a RouteContext");let[l]=s.matches.slice(-1),r={...uo(e||".",{relative:t})},c=Tn();if(e==null){r.search=c.search;
60let f=new URLSearchParams(r.search),d=f.getAll("index");if(d.some(p=>p==="")){f.delete("index"),d.filter(x=>x).forEach(x=>f.append("index",x));let p=f.toString();r.search=p?`?${p}`:""}}return(!e||e===".")&&l.route.index&&(r.search=r.search?r.search.replace(/^\?/,"?index&"):"?index"),i!=="/"&&(r.pathname=r.pathname==="/"?i:Kn([i,r.pathname])),Ql(r)}function kT(e,{relative:t}={}){let i=A.useContext($b);fe(i!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=qb("useViewTransitionState"),l=uo(e,{relative:t});if(!i.isTransitioning)return!1;let r=Jn(i.currentLocation.pathname,s)||i.currentLocation.pathname,c=Jn(i.nextLocation.pathname,s)||i.nextLocation.pathname;return dc(l.pathname,c)!=null||dc(l.pathname,r)!=null}var Vb=Mb(),vd={},_d={},kd={},uy;function ST(){return uy||(uy=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=function(){for(var l=arguments.length,r=new Array(l),c=0;c<l;c++)r[c]=arguments[c];if(typeof window<"u"){var f;typeof window.gtag>"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(f=window).gtag.apply(f,r)}},i=t;e.default=i}(kd)),kd}var Sd={},fy;function TT(){return fy||(fy=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function i(f){return f.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(d,h,p){return h>0&&h+d.length!==p.length&&d.search(t)>-1&&p.charAt(h-2)!==":"&&(p.charAt(h+d.length)!=="-"||p.charAt(h-1)==="-")&&p.charAt(h-1).search(/[^\s-]/)<0?d.toLowerCase():d.substr(1).search(/[A-Z]|\../)>-1?d:d.charAt(0).toUpperCase()+d.substr(1)})}function s(f){return typeof f=="string"&&f.indexOf("@")!==-1}var l="REDACTED (Potential Email Address)";function r(f){return s(f)?(console.warn("This arg looks like an email address, redacting."),l):f}function c(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",d=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,h=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,p=f||"";return d&&(p=i(f)),h&&(p=r(p)),p}}(Sd)),Sd}var dy;function ET(){return dy||(dy=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=c(ST()),i=c(TT()),s=["eventCategory","eventAction","eventLabel","eventValue","hitType"],l=["title","location"],r=["page","hitType"];function c(G){return G&&G.__esModule?G:{default:G}}function f(G,z){if(G==null)return{};var C=d(G,z),$,W;if(Object.getOwnPropertySymbols){var Q=Object.getOwnPropertySymbols(G);for(W=0;W<Q.length;W++)$=Q[W],!(z.indexOf($)>=0)&&Object.prototype.propertyIsEnumerable.call(G,$)&&(C[$]=G[$])}return C}function d(G,z){if(G==null)return{};var C={},$=Object.keys(G),W,Q;for(Q=0;Q<$.length;Q++)W=$[Q],!(z.indexOf(W)>=0)&&(C[W]=G[W]);return C}function h(G){"@babel/helpers - typeof";return h=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(z){return typeof z}:function(z){return z&&typeof Symbol=="function"&&z.constructor===Symbol&&z!==Symbol.prototype?"symbol":typeof z},h(G)}function p(G){return v(G)||y(G)||M(G)||x()}function x(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
61In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(G){if(typeof Symbol<"u"&&G[Symbol.iterator]!=null||G["@@iterator"]!=null)return Array.from(G)}function v(G){if(Array.isArray(G))return D(G)}function _(G,z){var C=Object.keys(G);if(Object.getOwnPropertySymbols){var $=Object.getOwnPropertySymbols(G);z&&($=$.filter(function(W){return Object.getOwnPropertyDescriptor(G,W).enumerable})),C.push.apply(C,$)}return C}function S(G){for(var z=1;z<arguments.length;z++){var C=arguments[z]!=null?arguments[z]:{};z%2?_(Object(C),!0).forEach(function($){Y(G,$,C[$])}):Object.getOwnPropertyDescriptors?Object.defineProperties(G,Object.getOwnPropertyDescriptors(C)):_(Object(C)).forEach(function($){Object.defineProperty(G,$,Object.getOwnPropertyDescriptor(C,$))})}return G}function T(G,z){return j(G)||N(G,z)||M(G,z)||w()}
61function w(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
62In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function M(G,z){if(G){if(typeof G=="string")return D(G,z);var C=Object.prototype.toString.call(G).slice(8,-1);if(C==="Object"&&G.constructor&&(C=G.constructor.name),C==="Map"||C==="Set")return Array.from(G);if(C==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(C))return D(G,z)}}function D(G,z){(z==null||z>G.length)&&(z=G.length);for(var C=0,$=new Array(z);C<z;C++)$[C]=G[C];return $}function N(G,z){var C=G==null?null:typeof Symbol<"u"&&G[Symbol.iterator]||G["@@iterator"];if(C!=null){var $,W,Q,O,X=[],it=!0,st=!1;try{if(Q=(C=C.call(G)).next,z!==0)for(;!(it=($=Q.call(C)).done)&&(X.push($.value),X.length!==z);it=!0);}catch(at){st=!0,W=at}finally{try{if(!it&&C.return!=null&&(O=C.return(),Object(O)!==O))return}finally{if(st)throw W}}return X}}function j(G){if(Array.isArray(G))return G}function P(G,z){if(!(G instanceof z))throw new TypeError("Cannot call a class as a function")}function I(G,z){for(var C=0;C<z.length;C++){var $=z[C];$.enumerable=$.enumerable||!1,$.configurable=!0,"value"in $&&($.writable=!0),Object.defineProperty(G,K($.key),$)}}function q(G,z,C){return z&&I(G.prototype,z),Object.defineProperty(G,"prototype",{writable:!1}),G}function Y(G,z,C){return z=K(z),z in G?Object.defineProperty(G,z,{value:C,enumerable:!0,configurable:!0,writable:!0}):G[z]=C,G}function K(G){var z=et(G,"string");return h(z)==="symbol"?z:String(z)}function et(G,z){if(h(G)!=="object"||G===null)return G;var C=G[Symbol.toPrimitive];if(C!==void 0){var $=C.call(G,z);if(h($)!=="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(z==="string"?String:Number)(G)}var nt=function(){function G(){var z=this;P(this,G),Y(this,"reset",function(){z.isInitialized=!1,z._testMode=!1,z._currentMeasurementId,z._hasLoadedGA=!1,z._isQueuing=!1,z._queueGtag=[]}),Y(this,"_gtag",function(){for(var C=arguments.length,$=new Array(C),W=0;W<C;W++)$[W]=arguments[W];z._testMode||z._isQueuing?z._queueGtag.push($):t.default.apply(void 0,$)}),Y(this,"_loadGA",function(C,$){var W=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!z._hasLoadedGA){var Q=document.createElement("script");Q.async=!0,Q.src="".concat(W,"?id=").concat(C),$&&Q.setAttribute("nonce",$),document.body.appendChild(Q),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},z._hasLoadedGA=!0}}),Y(this,"_toGtagOptions",function(C){if(C){var $={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},W=Object.entries(C).reduce(function(Q,O){var X=T(O,2),it=X[0],st=X[1];return $[it]?Q[$[it]]=st:Q[it]=st,Q},{});return W}}),Y(this,"initialize",function(C){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!C)throw new Error("Require GA_MEASUREMENT_ID");var W=typeof C=="string"?[{trackingId:C}]:C;z._currentMeasurementId=W[0].trackingId;var Q=$.gaOptions,O=$.gtagOptions,X=$.nonce,it=$.testMode,st=it===void 0?!1:it,at=$.gtagUrl;if(z._testMode=st,st||z._loadGA(z._currentMeasurementId,X,at),z.isInitialized||(z._gtag("js",new Date),W.forEach(function(he){var Pt=S(S(S({},z._toGtagOptions(S(S({},Q),he.gaOptions))),O),he.gtagOptions);Object.keys(Pt).length?z._gtag("config",he.trackingId,Pt):z._gtag("config",he.trackingId)})),z.isInitialized=!0,!st){var pt=p(z._queueGtag);for(z._queueGtag=[],z._isQueuing=!1;pt.length;){var ot=pt.shift();z._gtag.apply(z,p(ot)),ot[0]==="get"&&(z._isQueuing=!0)}}}),Y(this,"set",function(C){if(!C){console.warn("`fieldsObject` is required in .set()");return}if(h(C)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}
62Object.keys(C).length===0&&console.warn("empty `fieldsObject` given to .set()"),z._gaCommand("set",C)}),Y(this,"_gaCommandSendEvent",function(C,$,W,Q,O){z._gtag("event",$,S(S({event_category:C,event_label:W,value:Q},O&&{non_interaction:O.nonInteraction}),z._toGtagOptions(O)))}),Y(this,"_gaCommandSendEventParameters",function(){for(var C=arguments.length,$=new Array(C),W=0;W<C;W++)$[W]=arguments[W];if(typeof $[0]=="string")z._gaCommandSendEvent.apply(z,p($.slice(1)));else{var Q=$[0],O=Q.eventCategory,X=Q.eventAction,it=Q.eventLabel,st=Q.eventValue;Q.hitType;var at=f(Q,s);z._gaCommandSendEvent(O,X,it,st,at)}}),Y(this,"_gaCommandSendTiming",function(C,$,W,Q){z._gtag("event","timing_complete",{name:$,value:W,event_category:C,event_label:Q})}),Y(this,"_gaCommandSendPageview",function(C,$){if($&&Object.keys($).length){var W=z._toGtagOptions($),Q=W.title,O=W.location,X=f(W,l);z._gtag("event","page_view",S(S(S(S({},C&&{page_path:C}),Q&&{page_title:Q}),O&&{page_location:O}),X))}else C?z._gtag("event","page_view",{page_path:C}):z._gtag("event","page_view")}),Y(this,"_gaCommandSendPageviewParameters",function(){for(var C=arguments.length,$=new Array(C),W=0;W<C;W++)$[W]=arguments[W];if(typeof $[0]=="string")z._gaCommandSendPageview.apply(z,p($.slice(1)));else{var Q=$[0],O=Q.page;Q.hitType;var X=f(Q,r);z._gaCommandSendPageview(O,X)}}),Y(this,"_gaCommandSend",function(){for(var C=arguments.length,$=new Array(C),W=0;W<C;W++)$[W]=arguments[W];var Q=typeof $[0]=="string"?$[0]:$[0].hitType;switch(Q){case"event":z._gaCommandSendEventParameters.apply(z,$);break;case"pageview":z._gaCommandSendPageviewParameters.apply(z,$);break;case"timing":z._gaCommandSendTiming.apply(z,p($.slice(1)));break;case"screenview":case"transaction":case"item":case"social":case"exception":console.warn("Unsupported send command: ".concat(Q));break;default:console.warn("Send command doesn't exist: ".concat(Q))}}),Y(this,"_gaCommandSet",function(){for(var C=arguments.length,$=new Array(C),W=0;W<C;W++)$[W]=arguments[W];typeof $[0]=="string"&&($[0]=Y({},$[0],$[1])),z._gtag("set",z._toGtagOptions($[0]))}),Y(this,"_gaCommand",function(C){for(var $=arguments.length,W=new Array($>1?$-1:0),Q=1;Q<$;Q++)W[Q-1]=arguments[Q];switch(C){case"send":z._gaCommandSend.apply(z,W);break;case"set":z._gaCommandSet.apply(z,W);break;default:console.warn("Command doesn't exist: ".concat(C))}}),Y(this,"ga",function(){for(var C=arguments.length,$=new Array(C),W=0;W<C;W++)$[W]=arguments[W];if(typeof $[0]=="string")z._gaCommand.apply(z,$);else{var Q=$[0];z._gtag("get",z._currentMeasurementId,"client_id",function(O){z._isQueuing=!1;var X=z._queueGtag;for(Q({get:function(at){return at==="clientId"?O:at==="trackingId"?z._currentMeasurementId:at==="apiVersion"?"1":void 0}});X.length;){var it=X.shift();z._gtag.apply(z,p(it))}}),z._isQueuing=!0}return z.ga}),Y(this,"event",function(C,$){if(typeof C=="string")z._gtag("event",C,z._toGtagOptions($));else{var W=C.action,Q=C.category,O=C.label,X=C.value,it=C.nonInteraction,st=C.transport;if(!Q||!W){console.warn("args.category AND args.action are required in event()");return}var at={hitType:"event",eventCategory:(0,i.default)(Q),eventAction:(0,i.default)(W)};O&&(at.eventLabel=(0,i.default)(O)),typeof X<"u"&&(typeof X!="number"?console.warn("Expected `args.value` arg to be a Number."):at.eventValue=X),typeof it<"u"&&(typeof it!="boolean"?console.warn("`args.nonInteraction` must be a boolean."):at.nonInteraction=it),typeof st<"u"&&(typeof st!="string"?console.warn("`args.transport` must be a string."):(["beacon","xhr","image"].indexOf(st)===-1&&console.warn("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),at.transport=st)),z._gaCommand("send",at)}}),Y(this,"send",function(C){z._gaCommand("send",C)}),this.reset()}return q(G,[{key:"gtag",value:function(){this._gtag.apply(this,arguments)}}]),G}();e.GA4=nt;var ut=new nt;e.default=ut}(_d)),_d}var hy;function wT(){return hy||(hy=1,function(e){function t(f){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},t(f)}
62Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.ReactGAImplementation=void 0;var i=l(ET());function s(f){if(typeof WeakMap!="function")return null;var d=new WeakMap,h=new WeakMap;return(s=function(x){return x?h:d})(f)}function l(f,d){if(f&&f.__esModule)return f;if(f===null||t(f)!=="object"&&typeof f!="function")return{default:f};var h=s(d);if(h&&h.has(f))return h.get(f);var p={},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var y in f)if(y!=="default"&&Object.prototype.hasOwnProperty.call(f,y)){var v=x?Object.getOwnPropertyDescriptor(f,y):null;v&&(v.get||v.set)?Object.defineProperty(p,y,v):p[y]=f[y]}return p.default=f,h&&h.set(f,p),p}var r=i.GA4;e.ReactGAImplementation=r;var c=i.default;e.default=c}(vd)),vd}var AT=wT();const Ah=Ab(AT),hc=typeof window<"u"?A.useLayoutEffect:A.useEffect;var Ol={},gy;function MT(){if(gy)return Ol;gy=1,Object.defineProperty(Ol,"__esModule",{value:!0}),Ol.styleq=void 0;var e=new WeakMap,t="$$css";function i(l){var r,c,f;return l!=null&&(r=l.disableCache===!0,c=l.disableMix===!0,f=l.transform),function(){for(var h=[],p="",x=null,y="",v=r?null:e,_=new Array(arguments.length),S=0;S<arguments.length;S++)_[S]=arguments[S];for(;_.length>0;){var T=_.pop();if(!(T==null||T===!1)){if(Array.isArray(T)){for(var w=0;w<T.length;w++)_.push(T[w]);continue}var M=f!=null?f(T):T;if(M.$$css!=null){var D="";if(v!=null&&v.has(M)){var N=v.get(M);N!=null&&(D=N[0],y=N[2],h.push.apply(h,N[1]),v=N[3])}else{var j=[];for(var P in M){var I=M[P];if(P===t){var q=M[P];q!==!0&&(y=y?q+"; "+y:q);continue}typeof I=="string"||I===null?h.includes(P)||(h.push(P),v!=null&&j.push(P),typeof I=="string"&&(D+=D?" "+I:I)):console.error("styleq: ".concat(P," typeof ").concat(String(I),' is not "string" or "null".'))}if(v!=null){var Y=new WeakMap;v.set(M,[D,j,y,Y]),v=Y}}D&&(p=p?D+" "+p:D)}else if(c)x==null&&(x={}),x=Object.assign({},M,x);else{var K=null;for(var et in M){var nt=M[et];nt!==void 0&&(h.includes(et)||(nt!=null&&(x==null&&(x={}),K==null&&(K={}),K[et]=nt),h.push(et),v=null))}K!=null&&(x=Object.assign(K,x))}}}var ut=[p,x,y];return ut}}var s=Ol.styleq=i();return s.factory=i,Ol}var CT=MT();function ht(...e){const[t,i,s]=CT.styleq(e),l={};return t!=null&&t!==""&&(l.className=t),i!=null&&Object.keys(i).length>0&&(l.style=i),s!=null&&s!==""&&(l["data-style-src"]=s),l}const DT={"--color-accent":"light-dark(#0064E0, #2694FE)","--color-accent-muted":"light-dark(#0082FB33, #0082FB3F)","--color-on-accent":"light-dark(#FFFFFF, #FFFFFF)","--color-neutral":"light-dark(rgba(5, 54, 89, 0.1), rgba(223, 226, 229, 0.2))","--color-background-surface":"light-dark(#FFFFFF, #1F1F22)","--color-background-body":"light-dark(#F1F4F7, #111112)","--color-overlay":"light-dark(#01122866, #11111299)","--color-overlay-hover":"light-dark(#0536590C, #FFFFFF0C)","--color-overlay-pressed":"light-dark(#05365919, #FFFFFF19)","--color-background-muted":"light-dark(#0536590C, #1111127F)","--color-text-primary":"light-dark(#0A1317, #DFE2E5)","--color-text-secondary":"light-dark(#4E606F, #AAAFB5)","--color-text-disabled":"light-dark(#A4B0BC, #6F747C)","--color-text-accent":"light-dark(#0064E0, #3E9EFB)","--color-on-dark":"light-dark(#FFFFFF, #FFFFFF)","--color-on-light":"light-dark(#000000, #000000)","--color-icon-accent":"light-dark(#0064E0, #2694FE)","--color-icon-primary":"light-dark(#0A1317, #DFE2E5)","--color-icon-secondary":"light-dark(#4E606F, #AAAFB5)","--color-icon-disabled":"light-dark(#A4B0BC, #6F747C)","--color-background-card":"light-dark(#FFFFFF, #1F1F22)","--color-background-popover":"light-dark(#FFFFFF, #28292C)","--color-background-inverted":"light-dark(#0A1317, #FFFFFF)","--color-background-error-inverted":"light-dark(#AA071E, #E3193B)","--color-success":"light-dark(#0D8626, #0D8626)","--color-success-muted":"light-dark(#0B991F33, #0B991F3F)","--color-on-success":"light-dark(#FFFFFF, #FFFFFF)","--color-error":"light-dark(#E3193B, #F5394F)","--color-error-muted":"light-dark(#E3193B33, #F5394F3F)","--color-on-error":"light-dark(#FFFFFF, #FFFFFF)","--color-warning":"light-dark(#E9AF08, #F2C00B)","--color-warning-muted":"light-dark(#E2A40033, #E2A4003F)","--color-on-warning":"light-dark(#0A1317, #0A1317)","--color-border":"light-dark(#05365919, #F2F4F619)","--color-border-emphasized":"light-dark(#CCD3DB, #494D53)","--color-skeleton":"light-dark(#CCD3DB, #5A5E66)","--color-track":"light-dark(#CCD3DB, #5A5E66)","--color-shadow":"light-dark(rgba(5, 54, 89, 0.1
62), rgba(0, 0, 0, 0.3))","--color-tint-hover":"light-dark(black, white)","--color-background-blue":"light-dark(#0171E333, #0171E333)","--color-border-blue":"light-dark(#0064E0, #2694FE)","--color-icon-blue":"light-dark(#0064E0, #2694FE)","--color-text-blue":"light-dark(#042F97, #AFD7FF)","--color-background-cyan":"light-dark(#03A7D733, #03A7D733)","--color-border-cyan":"light-dark(#089DD0, #0171A4)","--color-icon-cyan":"light-dark(#00ACC1, #26C6DA)","--color-text-cyan":"light-dark(#014975, #A1EEF9)","--color-background-gray":"light-dark(#0A131733, #666A724C)","--color-border-gray":"light-dark(#647685, #748695)","--color-icon-gray":"light-dark(#4E606F, #AAAFB5)","--color-text-gray":"light-dark(#0A1317, #E7EAED)","--color-background-green":"light-dark(#24BB5E33, #24BB5E33)","--color-border-green":"light-dark(#0D8626, #0B991F)","--color-icon-green":"light-dark(#0D8626, #26A756)","--color-text-green":"light-dark(#09441F, #A5F690)","--color-background-orange":"light-dark(#F2790233, #F2790233)","--color-border-orange":"light-dark(#EB6E00, #B34A01)","--color-icon-orange":"light-dark(#E9690B, #FB8C00)","--color-text-orange":"light-dark(#6B2203, #FDB876)","--color-background-pink":"light-dark(#E638B333, #E638B333)","--color-border-pink":"light-dark(#F351C0, #C02294)","--color-icon-pink":"light-dark(#C2185B, #EC407A)","--color-text-pink":"light-dark(#650053, #FEADE3)","--color-background-purple":"light-dark(#7952FF33, #7952FF33)","--color-border-purple":"light-dark(#9081FF, #7340FE)","--color-icon-purple":"light-dark(#5B08D8, #7952FF)","--color-text-purple":"light-dark(#3E0697, #B3B0FE)","--color-background-red":"light-dark(#E3193B33, #E3193B33)","--color-border-red":"light-dark(#E3193B, #F5394F)","--color-icon-red":"light-dark(#D31130, #E3193B)","--color-text-red":"light-dark(#7B0210, #FFB2B8)","--color-background-teal":"light-dark(#0DB7AF33, #0DB7AF33)","--color-border-teal":"light-dark(#08A3A3, #08767D)","--color-icon-teal":"light-dark(#009688, #26A69A)","--color-text-teal":"light-dark(#083943, #40DCCD)","--color-background-yellow":"light-dark(#E2A40033, #E2A40033)","--color-border-yellow":"light-dark(#C58600, #B47700)","--color-icon-yellow":"light-dark(#FBC02D, #FFEE58)","--color-text-yellow":"light-dark(#753F07, #FBCE03)"},OT={"--spacing-0":"0px","--spacing-0-5":"2px","--spacing-1":"4px","--spacing-1-5":"6px","--spacing-2":"8px","--spacing-3":"12px","--spacing-4":"16px","--spacing-5":"20px","--spacing-6":"24px","--spacing-7":"28px","--spacing-8":"32px","--spacing-9":"36px","--spacing-10":"40px","--spacing-11":"44px","--spacing-12":"48px"},RT={"--spacing-2":"var(--spacing-2)"},jT={"--size-element-sm":"28px","--size-element-md":"32px","--size-element-lg":"36px"},NT={"--radius-none":"0px","--radius-inner":"4px","--radius-element":"8px","--radius-container":"12px","--radius-page":"28px","--radius-chat":"28px","--radius-full":"9999px"},$T={"--shadow-low":"0px 1px 1px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 2px 8px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2))","--shadow-med":"0px 1px 2px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 2px 12px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2))","--shadow-high":"0px 2px 2px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.2)), 0px 8px 24px light-dark(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.3))","--shadow-inset-hover":"inset 0px 0px 0px 2px light-dark(rgba(5, 54, 89, 0.15), rgba(223, 226, 229, 0.2))","--shadow-inset-selected":"inset 0px 0px 0px 2px rgba(1, 113, 227, 0.5)","--shadow-inset-success":"inset 0px 0px 0px 2px rgba(38, 167, 86, 0.3)","--shadow-inset-warning":"inset 0px 0px 0px 2px rgba(226, 164, 0, 0.3)","--shadow-inset-error":"inset 0px 0px 0px 2px rgba(227, 25, 59, 0.3)"},LT={"--duration-fast-min":"130ms","--duration-fast":"175ms","--duration-fast-max":"230ms","--duration-medium-min":"310ms","--duration-medium":"410ms","--duration-medium-max":"550ms","--duration-slow-min":"730ms","--duration-slow":"975ms","--duration-slow-max":"1300ms"},zT={"--ease-standard":"cubic-bezier(0.24, 1, 0.4, 1)"},BT={"--transition-fast":"0.15s ease","--transition-normal":"0.2s ease"},PT={"--font-family-body":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif',"--font-family-code":'"SF Mono", Monaco, Consolas, monospace',"--font-family-heading":'-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif'},HT={"--font-size-4xs":"0.375rem","--font-size-3xs":"0.4375rem","--font-size-2xs":"0.5rem","--font-size-xs":"0.625rem","--font-size-sm":"0.75rem","--font-size-base":"0.875rem","--font-size-lg":"1.0625rem","--font-size-xl":"1.25rem","--font-size-2xl":"1.5rem","--font-size-3xl":"1.8125rem","--font-size-4xl":"2.1875rem","--font-size-5xl":"2.625rem"},FT={"--font-weight-normal":"400","--font-weight-medium":"500","--font-weight-semibold":"600","--font-weight-bold":"700"},IT={"--text-heading-1-size":"var(--font-size-2xl)","--text-heading-1-weight":"var(--font-weight-semibold)","--text-heading-1-leading":"1.3333","--text-heading-2-size":"var(--font-size-xl)","--text-heading-2-weight":"var(--font-weight-semibold)","--text-heading-2-leading":"1.4","--text-heading-3-size":"var(--font-size-lg)","--text-heading-3-weight":"var(--font-weight-semibold)","--text-heading-3-leading":"1.4118","--text-heading-4-size":"var(--font-size-base)","--text-heading-4-we
62ight":"var(--font-weight-semibold)","--text-heading-4-leading":"1.4286","--text-heading-5-size":"var(--font-size-sm)","--text-heading-5-weight":"var(--font-weight-semibold)","--text-heading-5-leading":"1.6667","--text-heading-6-size":"var(--font-size-xs)","--text-heading-6-weight":"var(--font-weight-semibold)","--text-heading-6-leading":"1.6","--text-body-size":"var(--font-size-base)","--text-body-weight":"var(--font-weight-normal)","--text-body-leading":"1.4286","--text-large-size":"var(--font-size-lg)","--text-large-weight":"var(--font-weight-semibold)","--text-large-leading":"1.4118","--text-label-size":"var(--font-size-base)","--text-label-weight":"var(--font-weight-medium)","--text-label-leading":"1.4286","--text-code-size":"var(--font-size-base)","--text-code-weight":"var(--font-weight-normal)","--text-code-leading":"1.4286","--text-supporting-size":"var(--font-size-sm)","--text-supporting-weight":"var(--font-weight-normal)","--text-supporting-leading":"1.6667","--text-display-1-size":"var(--font-size-5xl)","--text-display-1-weight":"var(--font-weight-normal)","--text-display-1-leading":"1.2381","--text-display-2-size":"var(--font-size-4xl)","--text-display-2-weight":"var(--font-weight-normal)","--text-display-2-leading":"1.2571","--text-display-3-size":"var(--font-size-3xl)","--text-display-3-weight":"var(--font-weight-normal)","--text-display-3-leading":"1.2414"},le={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.5,strokeLinecap:"round",strokeLinejoin:"round",width:"1em",height:"1em","aria-hidden":!0},la={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"1em",height:"1em","aria-hidden":!0},UT={close:b.jsx("svg",{...le,children:b.jsx("path",{d:"M6 6l12 12M6 18L18 6"})}),chevronDown:b.jsx("svg",{...le,children:b.jsx("path",{d:"M6 9l6 6 6-6"})}),chevronLeft:b.jsx("svg",{...le,children:b.jsx("path",{d:"M15 6l-6 6 6 6"})}),chevronRight:b.jsx("svg",{...le,children:b.jsx("path",{d:"M9 6l6 6-6 6"})}),check:b.jsx("svg",{...le,children:b.jsx("path",{d:"M5 13l4 4L19 7"})}),success:b.jsx("svg",{...la,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 100 18 9 9 0 000-18zm4.06 6.56a.75.75 0 00-1.12-1l-3.94 4.4-1.94-1.94a.75.75 0 00-1.06 1.06l2.5 2.5a.75.75 0 001.09-.03l4.47-5z"})}),error:b.jsx("svg",{...la,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 100 18 9 9 0 000-18zm-2.47 5.47a.75.75 0 00-1.06 1.06L10.94 12l-2.47 2.47a.75.75 0 101.06 1.06L12 13.06l2.47 2.47a.75.75 0 101.06-1.06L13.06 12l2.47-2.47a.75.75 0 00-1.06-1.06L12 10.94l-2.47-2.47z"})}),warning:b.jsx("svg",{...la,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.29 3.86L2.07 19.05A2 2 
620 003.78 22h16.44a2 2 0 001.71-2.95L13.71 3.86a2 2 0 00-3.42 0zM12 9a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0112 9zm0 9a1 1 0 100-2 1 1 0 000 2z"})}),info:b.jsx("svg",{...la,children:b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3a9 9 0 100 18 9 9 0 000-18zm0 4a1 1 0 100 2 1 1 0 000-2zm-.75 3.75a.75.75 0 011.5 0v5.5a.75.75 0 01-1.5 0v-5.5z"})}),calendar:b.jsxs("svg",{...le,children:[b.jsx("rect",{x:"3",y:"4",width:"18",height:"18",rx:"2"}),b.jsx("path",{d:"M16 2v4M8 2v4M3 10h18"})]}),clock:b.jsxs("svg",{...le,children:[b.jsx("circle",{cx:"12",cy:"12",r:"9"}),b.jsx("path",{d:"M12 7v5l3 3"})]}),externalLink:b.jsxs("svg",{...le,children:[b.jsx("path",{d:"M18 13v6a2 2 0 01-2 2H5a2 2 0 01-2-2V8a2 2 0 012-2h6"}),b.jsx("path",{d:"M15 3h6v6"}),b.jsx("path",{d:"M10 14L21 3"})]}),menu:b.jsx("svg",{...le,strokeWidth:2,children:b.jsx("path",{d:"M4 6h16M4 12h16M4 18h16"})}),moreHorizontal:b.jsxs("svg",{...la,children:[b.jsx("circle",{cx:"5",cy:"12",r:"1.5"}),b.jsx("circle",{cx:"12",cy:"12",r:"1.5"}),b.jsx("circle",{cx:"19",cy:"12",r:"1.5"})]}),search:b.jsxs("svg",{...le,children:[b.jsx("circle",{cx:"11",cy:"11",r:"8"}),b.jsx("path",{d:"M21 21l-4.35-4.35"})]}),arrowUp:b.jsx("svg",{...le,children:b.jsx("path",{d:"M12 19V5m0 0l-7 7m7-7l7 7"})}),arrowDown:b.jsx("svg",{...le,children:b.jsx("path",{d:"M12 5v14m0 0l7-7m-7 7l-7-7"})}),arrowsUpDown:b.jsx("svg",{...le,children:b.jsx("path",{d:"M3 7.5L7.5 3m0 0L12 7.5M7.5 3v13.5m13.5 0L16.5 21m0 0L12 16.5m4.5 4.5V7.5"})}),funnel:b.jsx("svg",{...le,children:b.jsx("path",{d:"M12 3c2.755 0 5.455.232 8.083.678.533.09.917.556.917 1.096v1.044a2.25 2.25 0 01-.659 1.591l-5.432 5.432a2.25 2.25 0 00-.659 1.591v2.927a2.25 2.25 0 01-1.244 2.013L9.75 21v-6.568a2.25 2.25 0 00-.659-1.591L3.659 7.409A2.25 2.25 0 013 5.818V4.774c0-.54.384-1.006.917-1.096A48.32 48.32 
620 0112 3z"})}),eyeSlash:b.jsx("svg",{...le,children:b.jsx("path",{d:"M3.98 8.223A10.477 10.477 0 001.934 12c1.292 4.338 5.31 7.5 10.066 7.5.993 0 1.953-.138 2.863-.395M6.228 6.228A10.45 10.45 0 0112 4.5c4.756 0 8.773 3.162 10.065 7.498a10.523 10.523 0 01-4.293 5.774M6.228 6.228L3 3m3.228 3.228l3.65 3.65m7.894 7.894L21 21m-3.228-3.228l-3.65-3.65m0 0a3 3 0 10-4.243-4.243m4.242 4.242L9.88 9.88"})}),viewColumns:b.jsx("svg",{...le,children:b.jsx("path",{d:"M9 4.5v15m6-15v15m-10.875 0h15.75c.621 0 1.125-.504 1.125-1.125V5.625c0-.621-.504-1.125-1.125-1.125H4.125C3.504 4.5 3 5.004 3 5.625v12.75c0 .621.504 1.125 1.125 1.125z"})}),copy:b.jsxs("svg",{...le,children:[b.jsx("path",{d:"M8 4v12a2 2 0 002 2h8a2 2 0 002-2V7.242a2 2 0 00-.602-1.43L16.083 2.57A2 2 0 0014.685 2H10a2 2 0 00-2 2z"}),b.jsx("path",{d:"M16 18v2a2 2 0 01-2 2H6a2 2 0 01-2-2V9a2 2 0 012-2h2"})]}),checkDouble:b.jsxs("svg",{...le,children:[b.jsx("path",{d:"M2 13l4 4L14 7"}),b.jsx("path",{d:"M9 13l4 4L21 7"})]}),wrench:b.jsx("svg",{...le,children:b.jsx("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})}),stop:b.jsx("svg",{...la,children:b.jsx("rect",{x:"6",y:"6",width:"12",height:"12",rx:"2"})}),microphone:b.jsxs("svg",{...le,children:[b.jsx("path",{d:"M12 2a3 3 0 00-3 3v6a3 3 0 006 0V5a3 3 0 00-3-3z"}),b.jsx("path",{d:"M19 10v1a7 7 0 01-14 0v-1"}),b.jsx("path",{d:"M12 18v4m-4 0h8"})]})};let eh={};function qT(e){eh={...eh,...e}}function Bl(e){return eh[e]??UT[e]}const VT={"color-scheme":"dark","--color-text-primary":"var(--color-on-dark)","--color-icon-primary":"var(--color-on-dark)","--color-accent":"var(--color-on-dark)"},YT={"color-scheme":"light","--color-text-primary":"var(--color-on-light)","--color-icon-primary":"var(--color-on-light)","--color-accent":"var(--color-on-light)"};function GT(e){return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function py(e,t){const s={...e==="dark"?VT:YT};if(t?.tokens)for(const[l,r]of Object.entries(t.tokens))r!==void 0&&(s[l]=GT(r));return{tokens:s,components:t?.components}}const Td={[-5]:"--font-size-4xs",[-4]:"--font-size-3xs",[-3]:"--font-size-2xs",[-2]:"--font-size-xs",[-1]:"--font-size-sm",0:"--font-size-base",1:"--font-size-lg",2:"--font-size-xl",3:"--font-size-2xl",4:"--font-size-3xl",5:"--font-size-4xl",6:"--font-size-5xl"},WT={1:3,2:2,3:1,4:0,5:-1,6:-2},XT={body:0,large:1,label:0,code:0,supporting:-1,"display-1":6,"display-2":5,"display-3":4},KT={1:"var(--font-weight-semibold)",2:"var(--font-weight-semibold)",3:"var(--font-weight-semibold)",4:"var(--font-weight-semibold)",5:"var(--font-weight-semibold)",6:"var(--font-weight-semibold)"},ZT={body:"var(--font-weight-normal)",large:"var(--font-weight-semibold)",label:"var(--font-weight-medium)",code:"var(--font-weight-normal)",supporting:"var(--font-weight-normal)","display-1":"var(--font-weight-normal)","display-2":"var(--font-weight-normal)","display-3":"var(--font-weight-normal)"};function Ed(e,t,i){return Math.round(e*Math.pow(t,i))}function QT(e){return`${Math.round(e/16*1e4)/1e4}rem`}function JT(e){return e<20?1.5:e<32?1.4:1.25}function my(e){const t=JT(e),i=e*t,s=Math.max(Math.round(i/4)*4,Math.ceil((e+4)/4)*4);return Math.round(s/e*1e4)/1e4}function tE(e){const{base:t,ratio:i,weights:s}=e,l={},r={...KT,...s?.heading},c={...ZT,...s?.text};for(let f=-5;f<=6;f++){const d=Ed(t,i,f);l[Td[f]]=QT(d)}for(const[f,d]of Object.entries(WT)){const h=Number(f),p=Ed(t,i,d),x=my(p);l[`--text-heading-${h}-size`]=`var(${Td[d]})`,l[`--text-heading-${h}-weight`]=r[h],l[`--text-heading-${h}-leading`]=`${x}`}for(const[f,d]of Object.entries(XT)){const h=Ed(t,i,d),p=my(h);l[`--text-${f}-size`]=`var(${Td[d]})`,l[`--text-${f}-weight`]=c[f],l[`--text-${f}-leading`]=`${p}`}return l}const eE={body:"var(--font-family-body)",large:"var(--font-family-body)",label:"var(--font-family-body)",code:"var(--font-family-code)",supporting:"var(--font-family-body)","display-1":"var(--font-family-heading)","display-2":"var(--font-family-heading)","display-3":"var(--font-family-heading)"};function nE(e){const t={},i={};for(const l of[1,2,3,4,5,6])i[`level:${l}`]={fontFamily:"var(--font-family-heading)",fontSize:`var(--text-heading-${l}-size)`,fontWeight:`var(--text-heading-${l}-weight)`,lineHeight:`var(--text-heading-${l}-leading)`};t.heading=i;const s={};for(const l of["body","large","label","code","supporting","display-1","display-2","display-3"])s[`type:${l}`]={fontFamily:eE[l],fontSize:`var(--text-${l}-size)`,lineHeight:`var(--text-${l}-leading)`};return t.text=s,t}function Hn(e){return Math.round(e/5)*5}function iE(e){const{fast:t,medium:i,slow:s,ratio:l,easing:r}=e,c={"--duration-fast-min":`${Hn(t*l)}ms`,"--duration-fast":`${Hn(t)}ms`,"--duration-fast-max":`${Hn(t/l)}ms`,"--duration-medium-min":`${Hn(i*l)}ms`,"--duration-medium":`${Hn(i)}ms`,"--duration-medium-max":`${Hn(i/l)}ms`};return s!=null&&(c["--duration-slow-min"]=`${Hn(s*l)}ms`,c["--duration-slow"]=`${Hn(s)}ms`,c["--duration-slow-max"]=`${Hn(s/l)}ms`),r&&(c["--ease-standard"]=r),c}function sE(e){const{base:t,multiplier:i}=e;return{"--radius-none":"0px","--radius-inner":`${Math.round(t*1*i)}px`,"--radius-element":`${Math.round(t*2*i)}px`,"--radius-container":`${Math.round(t*3*i)}px`,"--radius-page":`${Math.round(t*7*i)}px`,"--radius-chat":`${Math.round(t*7*i)}px`,"--radius-full":"9999px"}}function xa(e){const t=e/255;return t<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}
62function rc(e){const t=e<=.0031308?e*12.92:1.055*Math.pow(e,.4166666666666667)-.055;return Math.round(Math.min(255,Math.max(0,t*255)))}function aE(e,t,i){return[.4124564*e+.3575761*t+.1804375*i,.2126729*e+.7151522*t+.072175*i,.0193339*e+.119192*t+.9503041*i]}function lE(e,t,i){return[3.2404542*e-1.5371385*t-.4985314*i,-.969266*e+1.8760108*t+.041556*i,.0556434*e-.2040259*t+1.0572252*i]}const ya=[.95047,1,1.08883];function wd(e){const t=.20689655172413793;return e>t*t*t?Math.cbrt(e):e/(3*t*t)+4/29}function cc(e){const t=.20689655172413793;return e>t?e*e*e:3*t*t*(e-4/29)}function oE(e,t,i){const s=wd(e/ya[0]),l=wd(t/ya[1]),r=wd(i/ya[2]);return[116*l-16,500*(s-l),200*(l-r)]}function rE(e,t,i){const s=(e+16)/116,l=t/500+s,r=s-i/200;return[cc(l)*ya[0],cc(s)*ya[1],cc(r)*ya[2]]}function cE(e){return cc((e+16)/116)}function uE(e){const t=e.replace("#",""),i=t.length===3?t[0]+t[0]+t[1]+t[1]+t[2]+t[2]:t.slice(0,6),s=parseInt(i,16);return[s>>16&255,s>>8&255,s&255]}function Yb(e,t,i){return"#"+[e,t,i].map(s=>s.toString(16).padStart(2,"0")).join("").toUpperCase()}function fE(e){const[t,i,s]=uE(e),l=xa(t),r=xa(i),c=xa(s),[f,d,h]=aE(l,r,c),[p,x,y]=oE(f,d,h);let _=Math.atan2(y,x)*180/Math.PI;_<0&&(_+=360);const S=Math.sqrt(x*x+y*y);return{hue:_,chroma:S,tone:Math.max(0,Math.min(100,p))}}function dE(e){const{hue:t,chroma:i,tone:s}=e;if(s<=0)return"#000000";if(s>=100)return"#FFFFFF";if(i<.5){const f=hE(s);return Yb(f,f,f)}let l=0,r=i,c="#000000";for(let f=0;f<16;f++){const d=(l+r)/2,h=gE(t,d,s);h!==null?(c=h,l=d):r=d}return c}function hE(e){const t=cE(e);return rc(t)}function gE(e,t,i){const s=e*Math.PI/180,l=Math.cos(s)*t,r=Math.sin(s)*t,c=i,[f,d,h]=rE(c,l,r),[p,x,y]=lE(f,d,h),v=rc(p),_=rc(x),S=rc(y),T=xa(v),w=xa(_),M=xa(S),D=.02;return Math.abs(T-p)>D||Math.abs(w-x)>D||Math.abs(M-y)>D||v<0||v>255||_<0||_>255||S<0||S>255?null:Yb(v,_,S)}const pE=[0,5,10,20,30,40,50,60,70,80,90,95,99,100];function Ad(e,t){const i={};for(const s of pE)i[s]=dE({hue:e,chroma:t,tone:s});return i}function Ee(e,t){const i=Math.round(t*255).toString(16).padStart(2,"0").toUpperCase();return e+i}const mE={warm:7,cool:5,neutral:3},xE={warm:10,cool:8,neutral:6};function Ft(e,t){return`light-dark(${e}, ${t})`}function yE(e){const{accent:t,neutralStyle:i="cool",contrast:s="standard"}=e,l=fE(t),r=l.hue,c=Math.max(l.chroma,48),f=mE[i]??5,d=xE[i]??8,h=Ad(r,c),p=Ad(r,f),x=Ad(r,d),y=s==="high",v=y?0:10,_=y?99:90,S=y?20:30,T=y?80:70;return{"--color-accent":Ft(h[40],h[80]),"--color-accent-muted":Ft(Ee(h[40],.2),Ee(h[80],.25)),"--color-on-accent":Ft(h[100],h[20]),"--color-neutral":Ft(Ee(p[10],.1),Ee(p[90],.2)),"--color-background-surface":Ft(p[99],p[10]),"--color-background-body":Ft(p[95],p[5]),"--color-overlay":Ft(Ee(p[10],.4),Ee(p[10],.6)),"--color-overlay-hover":Ft(Ee(p[10],.05),Ee(p[100],.05)),"--color-overlay-pressed":Ft(Ee(p[10],.1),Ee(p[100],.1)),"--color-background-muted":Ft(Ee(p[10],.05),Ee(p[10],.5)),"--color-text-primary":Ft(p[v],p[_]),"--color-text-secondary":Ft(x[S],x[T]),"--color-text-disabled":Ft(x[60],x[40]),"--color-text-accent":Ft(h[30],h[80]),"--color-icon-accent":Ft(h[40],h[80]),"--color-icon-primary":Ft(p[v],p[_]),"--color-icon-secondary":Ft(x[S],x[T]),"--color-icon-disabled":Ft(x[60],x[40]),"--color-background-card":Ft(p[99],p[10]),"--color-background-popover":Ft(p[99],p[20]),"--color-background-inverted":Ft(p[10],p[99]),"--color-border":Ft(Ee(p[10],.1),Ee(p[95],.1)),"--color-border-emphasized":Ft(x[70],x[30]),"--color-skeleton":Ft(x[70],x[30]),"--color-track":Ft(x[70],x[30]),"--color-shadow":Ft(Ee(p[0],.1),Ee(p[0],.3)),"--color-tint-hover":Ft("black","white")}}const bE={"--color-syntax-keyword":"var(--color-text-accent)","--color-syntax-string":"var(--color-text-green)","--color-syntax-comment":"var(--color-text-secondary)","--color-syntax-number":"var(--color-text-orange)","--color-syntax-function":"var(--color-text-blue)","--color-syntax-type":"var(--color-text-purple)","--color-syntax-variable":"var(--color-text-primary)","--color-syntax-operator":"var(--color-text-cyan)","--color-syntax-constant":"var(--color-text-orange)","--color-syntax-tag":"var(--color-text-red)","--color-syntax-attribute":"var(--color-text-teal)","--color-syntax-property":"var(--color-text-cyan)","--color-syntax-punctuation":"var(--color-text-disabled)","--color-syntax-background":"var(--color-background-muted)"},vE={"--color-data-categorical-blue":"light-dark(#0171E3, #0171E3)","--color-data-categorical-orange":"light-dark(#EB6E00, #EB6E00)","--color-data-categorical-purple":"light-dark(#6B1EFD, #6B1EFD)","--color-data-categorical-green":"light-dark(#0B991F, #0B991F)","--color-data-categorical-pink":"light-dark(#F351C0, #F351C0)","--color-data-categorical-cyan":"light-dark(#0171A4, #0171A4)","--color-data-categorical-red":"light-dark(#F5394F, #F5394F)","--color-data-categorical-teal":"light-dark(#08A3A3, #08A3A3)","--color-data-categorical-brown":"light-dark(#965E03, #965E03)","--color-data-categorical-indigo":"light-dark(#6F8AFF, #6F8AFF)","--color-data-neutral":"light-dark(#8494A3, #8C939B)","--color-data-blue-5":"light-dark(#02165E, #02165E)","--color-data-blue-4":"light-dark(#004CBC, #004CBC)","--color-data-blue-3":"light-dark(#2694FE, #2694FE)","--color-data-blue-2":"light-dark(#78BEFF, #78BEFF)","--color-data-blue-1":"light-dark(#DBECFF, #DBECFF)","--color-data-shamrock-5":"light-dark(#0B603D, #0B603D)","--color-data-shamrock-4":"light-dark(#138546, #138546)","--color-data-shamrock-3":"light-dark(#24BB5E, #24BB5E)","--color-data-shamrock-2":"light-dark(#8EF7AA, #8EF7AA)","--color-data-shamrock-1":"light-dark(#D6FEE4, #D6FEE4)","--color-data-orange-5":"light-dark(#A13F04, #A13F04)","--color-data-orange-4":"light-dark(#D66100, #D66100)","--color-data-orange-3":"light-dark(#FD9537, #FD9537)","--color-data-orange-2":"light-dark(#FDB876, #FDB876)","--color-data-orange-1":"light-dark(#FFE6CF, #FFE6CF)","--color-data-pink-5":"light-dark(#8E1073, #8E1073)","--color-data-pink-4":"light-dark(#D123A1, #D123A1)","--color-data-pink-3":"light-dark(#F989D3, #F989D3)","--color-data-pink-2":"light-dark(#FEADE3, #FEADE3)","--color-data-pink-1":"light-dark(#FCE3F4, #FCE3F4)","--color-data-purple-5":"light-dark(#3E0697, #3E0697)","--color-data-purple-4":"light-dark(#6B1EFD, #6B1EFD)","--color-data-purple-3":"light-dark(#9081FF, #9081FF)","--color-data-purple-2":"light-dark(#B3B0FE, #B3B0FE)","--color-data-purple-1":"light-dark(#E8E8FB, #E8E8FB)","--color-data-red-5":"light-dark(#9D0519, #9D0519)","--color-data-red-4":"light-dark(#D31130, #D31130)","--color-data-red-3":"light-dark(#FB7D87, #FB7D87)","--color-data-red-2":"light-dark(#FFB2B8, #FFB2B8)","--color-data-red-1":"light-dark(#FEE4E6, #FEE4E6)","--color-data-teal-5":"light-dark(#08767D, #08767D)","--color-data-teal-4":"light-dark(#0C9293, #0C9293)","--color-data-teal-3":"light-dark(#0DB7AF, #0DB7AF)","--color-data-teal-2":"light-dark(#6CE6D8, #6CE6D8)","--color-data-teal-1":"light-dark(#D7FCF8, #D7FCF8)","--color-data-yellow-5":"light-dark(#8A5001, #8A5001)","--color-data-yellow-4":"light-dark(#D69804, #D69804)","--color-data-yellow-3":"light-dark(#FBCE03, #FBCE03)","--color-data-yellow-2":"light-dark(#FCEC85, #FCEC85)","--color-data-yellow-1":"light-dark(#FDF6BA, #FDF6BA)","--color-data-gray-5":"light-dark(#25363F, #333338)","--color-data-gray-4":"light-dark(#5D6C7B, #666A72)","--color-data-gray-3":"light-dark(#AFB9C4, #B2B8BE)","--color-data-gray-2":"light-dark(#CCD3DB, #D0D3D6)","--color-data-gray-1":"light-dark(#F1F4F7, #F2F4F6)"},_E={...bE,...vE};function Gb(e){return e==="base"?"":e.split("+").map(t=>{const[i,s]=t.split(":");return s===void 0?`.${i}`:/^\d/.test(s)?`.${i}-${s}`:`.${s}`}).join("")}const kE={banner:[{property:"borderRadius",vars:["--_banner-radius"]}],button:[{property:"borderRadius",vars:["--_button-radius"]}],card:[{property:"borderRadius",vars:["--_card-radius"]},{property:"padding",expand:"container"}],chat:[{property:"borderRadius",vars:["--_chat-composer-radius"]}
62,{property:"padding",vars:["--_chat-composer-padding"]}],dialog:[{property:"borderRadius",vars:["--_dialog-radius"]},{property:"padding",expand:"container"}],"dropdown-menu":[{property:"borderRadius",vars:["--_dropdown-menu-radius"]},{property:"padding",vars:["--_dropdown-menu-padding"]}],field:[{property:"borderRadius",vars:["--_field-radius"]}],hovercard:[{property:"borderRadius",vars:["--_hovercard-radius"]}],popover:[{property:"borderRadius",vars:["--_popover-radius"]}],section:[{property:"padding",expand:"container"}],"segmented-control":[{property:"borderRadius",vars:["--_segmented-control-radius"]},{property:"padding",vars:["--_segmented-control-padding"]}]};function xy(e,t){const i=kE[e];return i?i.filter(s=>s.property===t):[]}const Wb="xds",Mh="astryx",Xb=Mh,Kb=Wb,jc=Mh,Nc=Wb,SE=Mh;function TE(e){return`${Xb}-${e}`}function EE(e){return`${Kb}-${e}`}function bn(e){return`data-${jc}-${e}`}function gc(e){return`data-${Nc}-${e}`}function wE(e){return`--${SE}-${e}`}function Zb(e){return`[data-${jc}-theme="${e}"], [data-${Nc}-theme="${e}"]`}const Qb=`[data-${jc}-theme], [data-${Nc}-theme]`;function yy(e){return`[data-${jc}-media="${e}"], [data-${Nc}-media="${e}"]`}function Vl(e,t){return`.${Xb}-${e}${t}, .${Kb}-${e}${t}`}function Jb(e,t){const i=[];let s=0,l=0;for(let r=0;r<e.length;r++){const c=e[r];c==="("?s++:c===")"?s=Math.max(0,s-1):c===","&&s===0&&(i.push(e.slice(l,r).trim()),l=r+1)}return i.push(e.slice(l).trim()),i.map(r=>`${r}${t}`).join(", ")}function pc(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const Rr=new Set(["padding","paddingBlock","paddingInline","paddingBlockStart","paddingBlockEnd","paddingInlineStart","paddingInlineEnd"]);function AE(e){const t={};for(const[i,s]of e)switch(i){case"padding":{const l=s.trim().split(/\s+/);l.length===1?(t.blockStart=l[0],t.blockEnd=l[0],t.inline=l[0]):l.length===2?(t.blockStart=l[0],t.blockEnd=l[0],t.inline=l[1]):l.length>=3&&(t.blockStart=l[0],t.inline=l[1],t.blockEnd=l[2]);break}case"paddingBlock":{const l=s.trim().split(/\s+/);t.blockStart=l[0],t.blockEnd=l[1]??l[0];break}case"paddingInline":{const l=s.trim().split(/\s+/);l.length===1?t.inline=l[0]:(t.inlineStart=l[0],t.inlineEnd=l[1]);break}case"paddingBlockStart":t.blockStart=s;break;case"paddingBlockEnd":t.blockEnd=s;break;case"paddingInlineStart":t.inlineStart=s;break;case"paddingInlineEnd":t.inlineEnd=s;break}return t}function ME(e,t){const i=wE(`${e}-padding`),s=[],l=t.inlineStart??t.inline,r=t.inlineEnd??t.inline;return l!=null&&r!=null&&l===r&&t.blockStart!=null&&t.blockEnd!=null&&l===t.blockStart&&t.blockStart===t.blockEnd?(s.push([i,l??""]),s):(t.inlineStart!=null||t.inlineEnd!=null?(l!=null&&s.push([`${i}-inline-start`,l]),r!=null&&s.push([`${i}-inline-end`,r])):t.inline!=null&&s.push([`${i}-inline`,t.inline]),t.blockStart!=null&&s.push([`${i}-block-start`,t.blockStart]),t.blockEnd!=null&&s.push([`${i}-block-end`,t.blockEnd]),s)}function CE(e){const t=[],i=e.tokens,s=r=>i[r]||`var(${r})`,l=Object.entries(i);if(l.length>0){const r=l.map(([c,f])=>`    ${c}: ${f};`).join(`
63`);t.push(`  :scope {
64${r}
65  }`)}return e.components&&DE(e.components,t),OE(s,t),RE(e.components||{},t),t}function DE(e,t){for(const[i,s]of Object.entries(e))for(const[l,r]of Object.entries(s)){const c=Object.entries(r);if(c.length===0)continue;const f=Gb(l),d=Vl(i,f),h=[],p=[];for(const[_,S]of c)_.startsWith(":")&&typeof S=="object"?p.push([_,S]):h.push([_,S]);let x=h;const y=[];let v=!1;for(const[_,S]of h){const T=xy(i,_),w=Rr.has(_)&&_!=="padding"?xy(i,"padding"):[];for(const M of[...T,...w])if(M.expand==="container"&&Rr.has(_)&&(v=!0),M.vars)for(const D of M.vars)y.push([D,S])}if(v){const _=h.filter(([M])=>Rr.has(M)),S=h.filter(([M])=>!Rr.has(M)),T=AE(_),w=ME(i,T);x=[...S,...w]}if(y.length>0&&(x=[...x,...y]),x.length>0){const _=x.map(([S,T])=>`    ${pc(S)}: ${T};`).join(`
66`);t.push(`  ${d} {
67${_}
68  }`)}for(const[_,S]of p){const T=Object.entries(S);if(T.length>0){const w=T.map(([M,D])=>`    ${pc(M)}: ${D};`).join(`
69`);t.push(`  ${Jb(d,_)} {
70${w}
71  }`)}}}}function OE(e,t){t.push(`  :where(h1, h2, h3, h4, h5, h6) {
72    font-family: var(--font-family-heading);
73    color: var(--color-text-primary);
74  }`);for(let i=1;i<=6;i++)t.push(`  :where(h${i}) {
75    font-size: ${e(`--text-heading-${i}-size`)};
76    font-weight: ${e(`--text-heading-${i}-weight`)};
77    line-height: ${e(`--text-heading-${i}-leading`)};
78  }`);t.push(`  :where(p) {
79    font-family: var(--font-family-body);
80    font-size: ${e("--text-body-size")};
81    font-weight: ${e("--text-body-weight")};
82    line-height: ${e("--text-body-leading")};
83    color: var(--color-text-primary);
84  }`),t.push(`  :where(small) {
85    font-size: ${e("--text-supporting-size")};
86    font-weight: ${e("--text-supporting-weight")};
87    line-height: ${e("--text-supporting-leading")};
88    color: var(--color-text-secondary);
89  }`),t.push(`  :where(code, pre) {
90    font-family: var(--font-family-code);
91    font-size: ${e("--text-code-size")};
92    line-height: ${e("--text-code-leading")};
93  }`),t.push(`  :where(hr) {
94    border: none;
95    border-top: 1px solid var(--color-border);
96  }`)}function RE(e,t){const i={primary:"var(--color-text-primary)",secondary:"var(--color-text-secondary)",disabled:"var(--color-text-disabled)",placeholder:"var(--color-text-secondary)",active:"var(--color-accent)"},s="text"in e,l="heading"in e,r="link"in e;if(s||l||r)for(const[c,f]of Object.entries(i))s&&t.push(`  ${Vl("text",`.${c}`)} { color: ${f}; }`),l&&t.push(`  ${Vl("heading",`.${c}`)} { color: ${f}; }`),r&&t.push(`  ${Vl("link",`.${c}`)} { color: ${f}; }`)}function jE(e){const t=CE(e),i=[],s=[];for(const l of t)l.trimStart().startsWith(":where(")?i.push(l):s.push(l);return{component:s,prose:i}}function NE(e){const t=[],i=Zb(e.name);for(const l of["dark","light"]){const r=l==="dark"?e.__onDark:e.__onLight;if(!r)continue;const c=Object.entries(r.tokens);if(c.length>0){const f=c.map(([d,h])=>`    ${d}: ${h};`).join(`
97`);t.push(`  ${yy(l)} {
98${f}
99  }`)}if(r.components)for(const[f,d]of Object.entries(r.components))for(const[h,p]of Object.entries(d)){const x=Object.entries(p);if(x.length===0)continue;const y=Gb(h),v=`:is(${yy(l)}) :is(${Vl(f,y)})`,_=[],S=[];for(const[T,w]of x)T.startsWith(":")&&typeof w=="object"?S.push([T,w]):_.push([T,w]);if(_.length>0){const T=_.map(([w,M])=>`    ${pc(w)}: ${M};`).join(`
100`);t.push(`  ${v} {
101${T}
102  }`)}for(const[T,w]of S){const M=Object.entries(w);if(M.length>0){const D=M.map(([N,j])=>`    ${pc(N)}: ${j};`).join(`
103`);t.push(`  ${Jb(v,T)} {
104${D}
105  }`)}}}}if(t.length===0)return"";const s=t.join(`
106
107`);return`@scope (${i}) to (${Qb}) {
108${s}
109}`}function $E(e){const{component:t,prose:i}=jE(e),s=Zb(e.name),l=Qb;let r="";if(i.length>0){const d=i.join(`
110
111`);r=`@scope (${s}) to (${l}) {
112${d}
113}`}let c="";if(t.length>0){const d=t.join(`
114
115`);c=`@scope (${s}) to (${l}) {
116${d}
117}`}const f=NE(e);return f&&(c=c?`${c}
118
119${f}`:f),{prose:r,component:c}}const t1={...DT,...OT,...jT,...NT,...$T,...LT,...zT,...BT,...PT,...HT,...FT,...IT,..._E};function LE(e){return Array.isArray(e)?`light-dark(${e[0]}, ${e[1]})`:e}function by(e,t){if(!e&&!t)return;if(!e)return t;if(!t)return e;const i={};for(const[s,l]of Object.entries(e))i[s]={...l};for(const[s,l]of Object.entries(t))if(!i[s])i[s]={...l};else for(const[r,c]of Object.entries(l))i[s][r]={...i[s][r],...c};return i}function jr(e){return{normal:"var(--font-weight-normal)",medium:"var(--font-weight-medium)",semibold:"var(--font-weight-semibold)",bold:"var(--font-weight-bold)"}[e]??e}function Md(e,t){if(!e)return;const i=e.includes(" ")?`"${e}"`:e;return t?`${i}, ${t}`:i}function zE(e){const t={},i=e.extends;if(i)for(const[h,p]of Object.entries(i.tokens))t[h]=p;const s=e.typography;let l;if(s?.scale){const h={},p=s.heading;if(p?.weights)for(const[v,_]of Object.entries(p.weights))_&&(h[Number(v)]=jr(_));const x=p?.weight?jr(p.weight):void 0;if(x)for(let v=1;v<=6;v++)v in h||(h[v]=x);const y={};s.body?.weight&&(y.body=jr(s.body.weight)),s.code?.weight&&(y.code=jr(s.code.weight)),l={base:s.scale.base,ratio:s.scale.ratio,weights:{...Object.keys(h).length>0?{heading:h}:{},...Object.keys(y).length>0?{text:y}:{}}}}if(e.color){const h=yE(e.color);for(const[p,x]of Object.entries(h))t[p]=x}if(l){const h=tE(l);for(const[p,x]of Object.entries(h))t[p]=x}
119if(e.radius){const h=sE(e.radius);for(const[p,x]of Object.entries(h))t[p]=x}if(e.motion){const h=iE(e.motion);for(const[p,x]of Object.entries(h))t[p]=x}if(s){const h=Md(s.body?.family,s.body?.fallbacks),p=Md(s.heading?.family,s.heading?.fallbacks)??h,x=Md(s.code?.family,s.code?.fallbacks);h&&(t["--font-family-body"]=h),p&&(t["--font-family-heading"]=p),x&&(t["--font-family-code"]=x)}if(e.syntax){const h=e.syntax.tokens,p="--color-syntax-";for(const[x,y]of Object.entries(h))t[p+x]=y}if(e.tokens)for(const[h,p]of Object.entries(e.tokens))p!==void 0&&(t[h]=LE(p));let r=e.components;if(l){const h=nE();r=by(h,e.components)}i?.components&&(r=by(i.components,r));const c=py("dark",e.onDark),f=py("light",e.onLight),d=e.icons&&i?.icons?{...i.icons,...e.icons}:e.icons??i?.icons;return{name:e.name,tokens:t,components:r,icons:d,__inputTokens:e.tokens,__onDark:c,__onLight:f}}function BE(e){return`var(${e})`}Object.fromEntries(Object.keys(t1).map(e=>[e,BE(e)]));function PE(e){let t=0,i=null,s=!1;for(let l=0;l<e.length;l++){const r=e[l];if(i!==null){s?s=!1:r==="\\"?s=!0:r===i&&(i=null);continue}if(r==='"'||r==="'"){i=r;continue}if(r==="("){t++;continue}if(r===")"){t=Math.max(0,t-1);continue}if(r===","&&t===0)return[e.slice(0,l).trim(),e.slice(l+1).trim()]}return null}function HE(e){const t=e.trim(),i="light-dark(";if(!t.startsWith(i)||!t.endsWith(")"))return null;const s=t.slice(i.length,-1);return PE(s)}function Cd(e,t){if(Array.isArray(e))return t==="dark"?e[1]:e[0];const i=HE(e);return i!==null?t==="dark"?i[1]:i[0]:e}function FE(e,t){const{mode:i}=t,s={};for(const[l,r]of Object.entries(t1))s[l]=Cd(r,i);if(e==null)return s;for(const[l,r]of Object.entries(e.tokens))s[l]=Cd(r,i);if(e.__inputTokens)for(const[l,r]of Object.entries(e.__inputTokens))r!==void 0&&(s[l]=Cd(r,i));return s}function e1(e,t=!1){const i=A.useCallback(r=>{const c=window.matchMedia(e);return c.addEventListener("change",r),()=>c.removeEventListener("change",r)},[e]),s=A.useCallback(()=>window.matchMedia(e).matches,[e]),l=A.useCallback(()=>t,[t]);return A.useSyncExternalStore(i,s,l)}const Ch=A.createContext(null);Ch.displayName="ThemeContext";function IE(){const e=A.use(Ch),t=e1("(prefers-color-scheme: dark)"),i=e?.mode??"system",s=e?.theme??null,l=i==="system"?t?"dark":"light":i,r=A.useMemo(()=>FE(s,{mode:l}),[s,l]),c=f=>r[f]??"";return{name:s?.name??"default",mode:l,token:c,tokens:r}}const Nr={base:{k1xSpc:"xjp7ctv",kMwMTN:"x1tgivj0",kMv6JI:"x9ynric",$$css:!0},light:{kQNsl9:"x19aimcq",$$css:!0},dark:{kQNsl9:"xntwwlm",$$css:!0},system:{kQNsl9:"x108lcm5",$$css:!0}},nh=_h.createContext(!1);nh.displayName="ThemeNestingContext";const Dd=new Set,vy=new Set;function UE(e){const t=A.useId();A.useInsertionEffect(()=>{if(e.__built)return;const i=`astryx-theme-${e.name}`;if(Dd.has(i))return;vy.has(e.name)||(vy.add(e.name),console.warn(`[XDS] Theme "${e.name}" is using runtime style injection. For better performance, use the pre-built theme:
120
121  import {${e.name}Theme} from '@xds/theme-${e.name}/built';
122  import '@xds/theme-${e.name}/theme.css';
123
124For custom themes, run \`npx xds theme build <file>\` to generate the built artifacts.`));const{prose:s,component:l}=$E(e);if(!(!s&&!l)){if(s){const r=document.createElement("style");r.setAttribute(gc("theme-prose"),e.name),r.setAttribute(bn("theme-prose"),e.name),r.setAttribute(bn("id"),t),r.textContent=`@layer reset {
125${s}
126}`,document.head.appendChild(r)}if(l){const r=document.createElement("style");r.setAttribute(gc("theme"),e.name),r.setAttribute(bn("theme"),e.name),r.setAttribute(bn("id"),t),r.textContent=`@layer xds-theme {
127${l}
128}`,document.head.appendChild(r)}return Dd.add(i),()=>{const r=document.querySelector(`style[${bn("theme-prose")}="${e.name}"][${bn("id")}="${t}"]`),c=document.querySelector(`style[${bn("theme")}="${e.name}"][${bn("id")}="${t}"]`);r?.remove(),c?.remove(),Dd.delete(i)}}},[e,t])}function qE(e,t,i){hc(()=>{if(!e&&!(typeof document>"u"))return t==="light"||t==="dark"?document.documentElement.setAttribute("data-theme",t):document.documentElement.removeAttribute("data-theme"),document.documentElement.setAttribute(bn("theme"),i),document.documentElement.setAttribute(gc("theme"),i),()=>{document.documentElement.removeAttribute("data-theme"),document.documentElement.removeAttribute(bn("theme")),document.documentElement.removeAttribute(gc("theme"))}},[e,t,i])}function n1({theme:e,mode:t="system",children:i}){const s=A.use(nh);UE(e),qE(s,t,e.name);const l=t==="dark"?Nr.dark:t==="light"?Nr.light:Nr.system,r=e.icons;r!=null&&qT(r);const c=A.useMemo(()=>({theme:e,mode:t}),[e,t]);return b.jsx(Ch,{value:c,children:b.jsx(nh,{value:!0,children:b.jsx("div",{...ht(Nr.base,l),"data-xds-theme":e.name,"data-theme":t==="system"?void 0:t,children:i})})})}n1.displayName="Theme";const VE={center:{kGNEyG:"x6s0dn4",$$css:!0},end:{kGNEyG:"xuk3077",$$css:!0},start:{kGNEyG:"x1cy8zhl",$$css:!0},stretch:{kGNEyG:"x1qjc9v5",$$css:!0}},YE={start:{kjj79g:"x1nhvcw1",$$css:!0},center:{kjj79g:"xl56j7k",$$css:!0},end:{kjj79g:"x13a6bvl",$$css:!0},between:{kjj79g:"x1qughib",$$css:!0},around:{kjj79g:"x1l1ennw",$$css:!0},evenly:{kjj79g:"xaw8158",$$css:!0}},GE={horizontal:{kXwgrk:"x1q0g3np",$$css:!0},vertical:{kXwgrk:"xdt5ytf",$$css:!0}},WE={nowrap:{kwnvtZ:"xozqiw3",$$css:!0},wrap:{kwnvtZ:"x1a02dak",$$css:!0},"wrap-reverse":{kwnvtZ:"x8hhl5t",$$css:!0}},XE={stack:{k1xSpc:"x78zum5",$$css:!0}}
128,KE={0:{k1C7PZ:"x1o57wo1",khm7nJ:"x6yxi7o",$$css:!0},1:{k1C7PZ:"x1lfs0n9",khm7nJ:"x1ngg2t4",$$css:!0},2:{k1C7PZ:"xak3so",khm7nJ:"x1x7z4sm",$$css:!0},3:{k1C7PZ:"xewh9hi",khm7nJ:"x4olc9o",$$css:!0},4:{k1C7PZ:"xty4p9g",khm7nJ:"xtx9w7w",$$css:!0},5:{k1C7PZ:"x1eqhezk",khm7nJ:"x1iu6piu",$$css:!0},6:{k1C7PZ:"x3qlgwd",khm7nJ:"xczp1bk",$$css:!0},8:{k1C7PZ:"xicv188",khm7nJ:"xgx0vcf",$$css:!0},10:{k1C7PZ:"x1p37tyl",khm7nJ:"x1xpicb7",$$css:!0},"0.5":{k1C7PZ:"x1kihgfc",khm7nJ:"x1tw44j4",$$css:!0},"1.5":{k1C7PZ:"x1thn6ci",khm7nJ:"xhq53yo",$$css:!0}};function ZE({crossAlign:e,direction:t,gap:i,mainAlign:s,wrap:l}){return[XE.stack,GE[t],i!=null&&KE[i],e!=null&&VE[e],s!=null&&YE[s],l!=null&&WE[l]]}function $r(e,t){const i={...e,...t},s=[e.className,t.className].filter(Boolean).join(" ");s?i.className=s:delete i.className;const l=t.style&&e.style?{...e.style,...t.style}:t.style||e.style;return l?i.style=l:delete i.style,i}function bt(e,t,i,s){if(typeof e=="string"){const f=e,d=t??{className:""},h=i;let p=d.className?`${f} ${d.className}`:f;h&&(p=`${p} ${h}`);const x=s&&d.style?{...d.style,...s}:s||d.style;return{...d,className:p,style:x}}let c=$r(e,typeof t=="string"?{className:t}:t??{});return typeof i=="string"?c=$r(c,{className:i}):i!=null&&(c=$r(c,{style:i})),s!=null&&(c=$r(c,{style:s})),c}function _a(...e){return t=>{const i=[];for(const s of e)if(typeof s=="function"){const l=s(t);typeof l=="function"&&i.push(l)}else s!=null&&(s.current=t);if(i.length>0)return()=>{for(const s of i)s()}}}let ds=null;const mc=new Map;function QE(){return ds||(ds=new ResizeObserver(e=>{for(const t of e){const i=mc.get(t.target);i&&i(t)}})),ds}function JE(e,t){mc.set(e,t),QE().observe(e),t({target:e})}function tw(e){mc.delete(e),ds&&(ds.unobserve(e),mc.size===0&&(ds.disconnect(),ds=null))}function ew(e){return`data-${e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`}function nw(e,t){return/^\d/.test(t)?`${e}-${t}`:t}function iw(e,t){const i=[TE(e),EE(e)];if(t)for(const[s,l]of Object.entries(t))l!=null&&i.push(nw(s,String(l)));return i.join(" ")}function sw(e){const t={};if(e)for(const[i,s]of Object.entries(e))s!=null&&(t[ew(i)]=String(s));return t}function yt(e,t){return{className:iw(e,t),...sw(t)}}const aw={0:"spacing0",.5:"spacing0_5",1:"spacing1",1.5:"spacing1_5",2:"spacing2",3:"spacing3",4:"spacing4",5:"spacing5",6:"spacing6",8:"spacing8",10:"spacing10"},lw={0:{kZCmMZ:"x18gyask",kwRFfy:"x1s0aq8i",kLKAdn:"x1ydh6w3",kGO01o:"x1l20ajd",$$css:!0},1:{kZCmMZ:"x1vsv5vr",kwRFfy:"x1nryj5t",kLKAdn:"xfsso4q",kGO01o:"xy143xn",$$css:!0},2:{kZCmMZ:"x12gdq22",kwRFfy:"x1djylfy",kLKAdn:"x1xye8es",kGO01o:"x1wesfrj",$$css:!0},3:{kZCmMZ:"x126nfab",kwRFfy:"x1t818jl",kLKAdn:"x1vlblms",kGO01o:"xvmdzux",$$css:!0},4:{kZCmMZ:"x1rey3nv",kwRFfy:"xnjyzlh",kLKAdn:"x1oa1p4a",kGO01o:"x1awphl8",$$css:!0},5:{kZCmMZ:"x1blguxw",kwRFfy:"xdbrk9v",kLKAdn:"xx7rijo",kGO01o:"x1hk98q",$$css:!0},6:{kZCmMZ:"x31w388",kwRFfy:"x1we12cn",kLKAdn:"x1adxfkp",kGO01o:"xjpqqx5",$$css:!0},8:{kZCmMZ:"x1j3hnjz",kwRFfy:"x1q91b2g",kLKAdn:"xoxd1wu",kGO01o:"x2oz4g1",$$css:!0},10:{kZCmMZ:"xqp078j",kwRFfy:"x160ivqr",kLKAdn:"xk6660b",kGO01o:"x2izi54",$$css:!0},"0.5":{kZCmMZ:"x138rykx",kwRFfy:"x1le3yxw",kLKAdn:"xbx876j",kGO01o:"xij103a",$$css:!0},"1.5":{kZCmMZ:"xfti1ec",kwRFfy:"x17hk9do",kLKAdn:"x1kwdpsa",kGO01o:"x1opdxmq",$$css:!0}},ow={0:{"--container-padding-inline-start":"x1gu2k80","--container-padding-inline-end":"x91ghl5",$$css:!0},1:{"--container-padding-inline-start":"x1cvlban","--container-padding-inline-end":"x2oyxnl",$$css:!0},2:{"--container-padding-inline-start":"x1xlrr2o","--container-padding-inline-end":"xcas3b9",$$css:!0},3:{"--container-padding-inline-start":"xfdwxua","--container-padding-inline-end":"xu0ipoa",$$css:!0},4:{"--container-padding-inline-start":"x1dlhslv","--container-padding-inline-end":"xs0pscg",$$css:!0},5:{"--container-padding-inline-start":"x1s81nki","--container-padding-inline-end":"xgkj7vj",$$css:!0},6:{"--container-padding-inline-start":"x1ep0dkj","--container-padding-inline-end":"x94cj42",$$css:!0},8:{"--container-padding-inline-start":"xw1diwv","--container-padding-inline-end":"x1b9k1pi",$$css:!0},10:{"--container-padding-inline-start":"xserb3f","--container-padding-inline-end":"xx5lg5w",$$css:!0},"0.5":{"--container-padding-inline-start":"x14ws0sr","--container-padding-inline-end":"x1wz3t3y",$$css:!0},"1.5":{"--container-padding-inline-start":"x176g23i","--container-padding-inline-end":"xntetml",$$css:!0}},rw={0:{"--container-padding-block-start":"x1i3qcxz",$$css:!0},1:{"--container-padding-block-start":"xnsckjb",$$css:!0},2:{"--container-padding-block-start":"xa8b4fq",$$css:!0},3:{"--container-padding-block-start":"x11k4f5r",$$css:!0},4:{"--container-padding-block-start":"xm01sq8",$$css:!0},5:{"--container-padding-block-start":"xp8wdkl",$$css:!0},6:{"--container-padding-block-start":"x1hmud4d",$$css:!0},8:{"--container-padding-block-start":"xfv60at",$$css:!0},10:{"--container-padding-block-start":"x17h9kl7",$$css:!0},"0.5":{"--container-padding-block-start":"xvdf9ev",$$css:!0},"1.5":{"--container-padding-block-start":"x1kbx601",$$css:!0}},cw={0:{"--container-padding-block-end":"xkunwnr",$$css:!0},1:{"--container-padding-block-end":"x57a7ii",$$css:!0},2:{"--container-padding-block-end":"x1lsgcmx",$$css:!0},3:{"--container-padding-block-end":"x1q3ppug",$$css:!0},4:{"--container-padding-block-end":"x4hfsld",$$css:!0},5:{"--container-padding-block-end":"xbib2ws",$$css:!0},6:{"--container-padding-block-end":"x1q8d17g",$$css:!0},8:{"--container-padding-block-end":"x8lgq76",$$css:!0},10:{"--container-padding-block-end":"x15vxphk",$$css:!0},"0.5":{"--container-padding-block-end":"x1cao3zv",$$css:!0},"1.5":{"--container-padding-block-end":"xv53x8y",$$css:!0}},Od={base:{keoZOQ:"xdj266r",k1K539:"xat24cr",keTefX:"x1lziwak",k71WvV:"x14z9mp",kLKAdn:"xexx8yu",kGO01o:"x18d9i69",kZCmMZ:"x1c1uobl",kwRFfy:"xyri2b",kMzoRj:"xc342km",ksu8eU:"xng3xce",kVQacm:"x1rea2x4",kMv6JI:"x9ynric",kWkggS:"xjbqb8w",$$css:!0},fixed:{kVAEAm:"xixxii4",$$css:!0}};function uw(e="above",t="center"){const s={above:"top",below:"bottom",start:"left",end:"right"}[e];return e==="above"||e==="below"?t==="start"?`${s} span-right`:t==="end"?`${s} span-left`:s:t==="start"?`${s} span-bottom`:t==="end"?`${s} span-top`:`${s} center`}function Dh(e){const{mode:t,onShow:i,onHide:s,lightDismiss:l=!1}=e,r=A.useId(),c=`--astryx-layer-${r.replace(/:/g,"")}`,[f,d]=A.useState(!1),h=A.useRef(null),p=A.useRef(null),x=A.useRef(!1),y=A.useCallback(()=>{h.current&&!x.current&&(h.current.showPopover(),x.current=!0,d(!0),i?.())},[i]),v=A.useCallback(()=>{x.current&&(h.current?.hidePopover(),x.current=!1,d(!1),s?.())},[s]),_=t==="context"?D=>{p.current&&(p.current.style.anchorName=""),D&&(D.style.anchorName=c),p.current=D}:void 0,S=A.useCallback(D=>{D.newState==="closed"&&x.current&&(x.current=!1,d(!1),s?.())},[s]),T=A.useCallback(D=>{h.current=D,D&&D.addEventListener("toggle",S)},[S]),w=A.useCallback((D,N)=>{const{placement:j="above",alignment:P="center",xstyle:I,className:q,style:Y}=N||{},K={positionAnchor:c,positionArea:uw(j,P),positionTryFallbacks:"flip-block, flip-inline, flip-block flip-inline"},et=ht(Od.base,I),nt=q?`${q} ${et.className??""}`:et.className;return b.jsx("div",{ref:T,id:r,popover:l?"auto":"manual",className:nt,style:{...et.style,...K,...Y},children:D})},[c,r,l,T]),M=A.useCallback((D,N)=>{const{x:j,y:P,xstyle:I,className:q,style:Y}=N,K={top:P,left:j},et=ht(Od.base,Od.fixed,I),nt=q?`${q} ${et.className??""}`:et.className;return b.jsx("div",{ref:T,id:r,popover:l?"auto":"manual",className:nt,style:{...et.style,...K,...Y},children:D})},[T,r,l]);return t==="context"?{ref:_,anchorId:c,show:y,hide:v,isOpen:f,id:r,render:w}:{ref:void 0,show:y,hide:v,isOpen:f,id:r,render:M}}const i1={below:{kKVMdj:"xl1vlw0",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},above:{kKVMdj:"x3psbcj",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},end:{kKVMdj:"x1i331go",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0},start:{kKVMdj:"xck01x9",k44tkh:"x9uej1z",kyAemX:"x128ha8g",kWV6AL:"xskzprw",$$css:!0}},Rd={container:{kWkggS:"x19aspcf",kMwMTN:"xrkvqaz",kaIpWk:"x1hviunn",kMv6JI:"x9ynric",kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0},marginBlock:{keoZOQ:"xcsaf9d",k1K539:"x14cgwvg",keTefX:"x1lziwak",k71WvV:"x14z9mp",$$css:!0},marginInline:{keoZOQ:"xdj266r",k1K539:"xat24cr",keTefX:"x11g1kdw",k71WvV:"xnur1sd",$$css:!0}};function fw(e){return e.hasAttribute("tabindex")?e.tabIndex>=0:["A","BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)?!e.disabled:!!e.isContentEditable}function dw(e={}){const{placement:t="above",alignment:i="center",delay:s=200,hideDelay:l=0,focusTrigger:r="auto",isEnabled:c=!0,isOpen:f,isDefaultOpen:d=!1,onShow:h,onHide:p}=e,x=t==="above"||t==="below"?Rd.marginBlock:Rd.marginInline,y=Dh({mode:"context",onShow:h,onHide:p}),v=A.useMemo(()=>[Rd.container,x],[x]),_=A.useRef(null),S=A.useRef(null),T=A.useRef(null),w=A.useCallback(()=>{_.current&&(clearTimeout(_.current),_.current=null),S.current&&(clearTimeout(S.current),S.current=null)},[]),M=A.useCallback(()=>{!c||f===!1||(w(),_.current=setTimeout(()=>{y.show()},s))},[c,f,w,y,s]),D=A.useCallback(()=>{f!==!0&&(w(),l>0?S.current=setTimeout(()=>{y.hide()},l):y.hide())},[f,w,y,l]),N=A.useCallback(()=>{typeof window<"u"&&typeof window.matchMedia=="function"&&window.matchMedia("(hover: none)").matches||M()},[M]),j=A.useCallback(()=>{D()},[D]),P=A.useCallback(et=>{!c||!et.target.matches(":focus-visible")||(w(),y.show())},[c,w,y]),I=A.useCallback(()=>{D()},[D]),q=A.useCallback(et=>{T.current&&(T.current.removeEventListener("mouseenter",N),T.current.removeEventListener("mouseleave",j),T.current.removeEventListener("focusin",P),T.current.removeEventListener("focusout",I)),et&&(et.addEventListener("mouseenter",N),et.addEventListener("mouseleave",j),(r==="always"||r==="auto"&&fw(et))&&(et.addEventListener("focusin",P),et.addEventListener("focusout",I))),T.current=et},[r,N,j,P,I]),Y=A.useCallback(et=>{y.ref(et),q(et)},[y,q]);A.useEffect(()=>()=>{w()},[w]),A.useEffect(()=>{d&&y.show()},[]),A.useEffect(()=>{f!==void 0&&(f?(w(),y.show()):(w(),y.hide()))},[f,w,y]);const K=A.useCallback((et,nt)=>{const ut=nt?.placement??t,G={placement:ut,alignment:nt?.alignment??i,xstyle:[v,i1[ut]],className:yt("tooltip").className};return y.render(b.jsx("div",{className:"xfsso4q xy143xn x12gdq22 x1djylfy xw5ewwj x13faqbe",children:et}),G)},[y,t,i,v]);return{ref:Y,positionRef:y.ref,interactionRef:q,anchorId:y.anchorId,describedBy:y.id,renderTooltip:K}}function hw(e){return typeof e=="string"||typeof e=="number"}function _y(...e){const t=e.filter(Boolean);return t.length>0?t.join(" "):void 0}function fo({children:e,anchorRef:t,content:i,placement:s="above",alignment:l="center",delay:r=200,hideDelay:c=0,focusTrigger:f="auto",isEnabled:d=!0,onOpenChange:h,hasHoverIndication:p="auto",isOpen:x,isDefaultOpen:y}){const v=A.useRef(null),_=e!=null?hw(e):!1,S=p===!0||p==="auto"&&_,T=A.useCallback(()=>{h?.(!0)}
128,[h]),w=A.useCallback(()=>{h?.(!1)},[h]),M=dw({placement:s,alignment:l,delay:r,hideDelay:c,focusTrigger:f,isEnabled:d,isOpen:x,isDefaultOpen:y,onShow:T,onHide:w});return hc(()=>{if(!t)return;const D=t.current;if(!D)return;M.ref(D);const N=D.getAttribute("aria-describedby");return D.setAttribute("aria-describedby",_y(N,M.describedBy)??""),()=>{M.ref(null),N?D.setAttribute("aria-describedby",N):D.removeAttribute("aria-describedby")}},[t,M.ref,M.describedBy]),hc(()=>{if(t||_)return;const D=v.current;if(!D)return;const N=D.firstElementChild;if(!N)return;M.ref(N);const j=N.getAttribute("aria-describedby");return N.setAttribute("aria-describedby",_y(j,M.describedBy)??""),()=>{M.ref(null),j?N.setAttribute("aria-describedby",j):N.removeAttribute("aria-describedby")}},[t,_,M.ref,M.describedBy]),t&&e==null?b.jsx(b.Fragment,{children:M.renderTooltip(i)}):_?b.jsxs(b.Fragment,{children:[b.jsx("span",{ref:M.ref,tabIndex:0,"aria-describedby":M.describedBy,...{0:{className:"xt0psk2"},1:{className:"xt0psk2 xujl8zx xev0dqp xycaml9 xrys4gj"}}[!!S<<0],children:e}),M.renderTooltip(i)]}):b.jsxs(b.Fragment,{children:[b.jsx("div",{ref:v,className:"xjp7ctv",children:e}),M.renderTooltip(i)]})}fo.displayName="Tooltip";const s1=Object.freeze(Object.defineProperty({__proto__:null,Tooltip:fo},Symbol.toStringTag,{value:"Module"})),gw="modulepreload",pw=function(e){return"/"+e},ky={},a1=function(t,i,s){let l=Promise.resolve();if(i&&i.length>0){let h=function(p){return Promise.all(p.map(x=>Promise.resolve(x).then(y=>({status:"fulfilled",value:y}),y=>({status:"rejected",reason:y}))))};var c=h;document.getElementsByTagName("link");const f=document.querySelector("meta[property=csp-nonce]"),d=f?.nonce||f?.getAttribute("nonce");l=h(i.map(p=>{if(p=pw(p),p in ky)return;ky[p]=!0;const x=p.endsWith(".css"),y=x?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${p}"]${y}`))return;const v=document.createElement("link");if(v.rel=x?"stylesheet":gw,x||(v.as="script"),v.crossOrigin="",v.href=p,d&&v.setAttribute("nonce",d),document.head.appendChild(v),x)return new Promise((_,S)=>{v.addEventListener("load",_),v.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${p}`)))})}))}function r(f){const d=new Event("vite:preloadError",{cancelable:!0});if(d.payload=f,window.dispatchEvent(d),!d.defaultPrevented)throw f}return l.then(f=>{for(const d of f||[])d.status==="rejected"&&r(d.reason);return t().catch(r)})},l1={primary:{kMwMTN:"x1tgivj0",$$css:!0},secondary:{kMwMTN:"xv1l7n4",$$css:!0},disabled:{kMwMTN:"xnbbluu",$$css:!0},placeholder:{kMwMTN:"xv1l7n4",$$css:!0},active:{kMwMTN:"xqwr325",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0}},mw={normal:{k63SB2:"x1sodnla",$$css:!0},medium:{k63SB2:"x1e4wzip",$$css:!0},semibold:{k63SB2:"x2mo6ok",$$css:!0},bold:{k63SB2:"x1lvx875",$$css:!0}},o1={body:{k63SB2:"xxovm9e",$$css:!0},large:{k63SB2:"x149oux8",$$css:!0},label:{k63SB2:"xmhvcl5",$$css:!0},code:{k63SB2:"xx3eeay",$$css:!0},supporting:{k63SB2:"xv8on6e",$$css:!0},"display-1":{k63SB2:"x1txul5o",$$css:!0},"display-2":{k63SB2:"x1y36c3f",$$css:!0},"display-3":{k63SB2:"x1on40hk",$$css:!0},inherit:{k63SB2:"x1pd3egz",$$css:!0}},Oh={body:{kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0},large:{kGuDYH:"x18juvz8",kLWn49:"xf74fhv",$$css:!0},label:{kGuDYH:"xcr08ib",kLWn49:"x1kq96og",$$css:!0},code:{kGuDYH:"xp03k98",kLWn49:"x17iicif",kMv6JI:"x9m5x89",$$css:!0},supporting:{kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",$$css:!0},"display-1":{kGuDYH:"xsub3ws",kLWn49:"x112ttwr",$$css:!0},"display-2":{kGuDYH:"x1yego12",kLWn49:"xh0iwvy",$$css:!0},"display-3":{kGuDYH:"xlgnzhf",kLWn49:"x1ujwuaq",$$css:!0},inherit:{kGuDYH:"x1qlqyl8",kLWn49:"x15bjb6t",$$css:!0}},xw={1:{kGuDYH:"xcg7oai",kLWn49:"xfmsba7",k63SB2:"x1v68xuy",$$css:!0},2:{kGuDYH:"x1xvnhcw",kLWn49:"x1cpk1wn",k63SB2:"x12yy4cs",$$css:!0},3:{kGuDYH:"xii13ha",kLWn49:"xwjzt0u",k63SB2:"x1jcxfy8",$$css:!0},4:{kGuDYH:"x8tkxat",kLWn49:"xqerer",k63SB2:"x2hcmsi",$$css:!0},5:{kGuDYH:"xsgqta0",kLWn49:"xo3gurs",k63SB2:"xno150v",$$css:!0},6:{kGuDYH:"xw5ohdf",kLWn49:"xeixjfn",k63SB2:"x1pw4frv",$$css:!0}},r1={inline:{k1xSpc:"xt0psk2",$$css:!0},block:{k1xSpc:"x1lliihq",$$css:!0}},xc={singleLine:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",k1xSpc:"x1lliihq",$$css:!0},multiLine:{kVQacm:"xb3r6kr",k1xSpc:"x104kibb",kgKLqz:"x1ua5tub",$$css:!0}},c1={"break-word":{kTgw9:"x1lldw8n",kHjlTd:"x1mzt3pk",$$css:!0},"break-all":{kTgw9:"x1yn0g08",$$css:!0}},u1={wrap:{kN2L0X:"xk4td0m",$$css:!0},nowrap:{kN2L0X:"xebhuq6",$$css:!0},balance:{kN2L0X:"x1w2vvpw",$$css:!0},pretty:{kN2L0X:"x1fzhlzt",$$css:!0}},f1={enabled:{kxwWH2:"x1b2iylo",kzeHkT:"xwgcxoh",k1xSpc:"x1lliihq",$$css:!0}},d1={strikethrough:{kybGjl:"xmqliwb",$$css:!0}},yw={enabled:{kcqcaj:"xss6m8b",$$css:!0}},h1={start:{k9WMMc:"x1yc453h",$$css:!0},center:{k9WMMc:"x2b8uid",$$css:!0},end:{k9WMMc:"xp4054r",$$css:!0}},g1={content:{ks0D6T:"xw5ewwj",kTgw9:"x13faqbe",$$css:!0}};function p1(e){const{maxLines:t}=e,[i,s]=A.useState(!1),[l,r]=A.useState(""),c=A.useRef(null),f=A.useCallback(h=>{if(t===0){s(!1);return}if(r(h.textContent??""),t===1)s(h.scrollWidth>h.offsetWidth);else{let p=h.scrollHeight;try{const x=document.createRange();x.selectNodeContents(h),p=x.getBoundingClientRect().height,x.detach()}catch{}s(p>h.offsetHeight)}},[t]);return{ref:A.useCallback(h=>{c.current&&tw(c.current),c.current=h,h&&t>0?typeof ResizeObserver<"u"?JE(h,()=>{f(h)}):f(h):(s(!1),r(""))},[t,f]),isTruncated:i,fullText:l}}const bw=A.lazy(async()=>a1(()=>Promise.resolve().then(()=>s1),[]).then(e=>({default:e.Tooltip}))),vw={body:"primary",large:"primary",label:"primary",supporting:"secondary",code:"primary","display-1":"primary","display-2":"primary","display-3":"primary",inherit:"inherit"};function _w(e){return e in Oh?e:"body"}
128function Yt({type:e="body",size:t,color:i,weight:s,display:l="inline",maxLines:r=0,hasTruncateTooltip:c=!0,wordBreak:f,textWrap:d,justify:h="start",hasCapsize:p=!1,hasStrikethrough:x=!1,hasTabularNumbers:y=!1,xstyle:v,className:_,style:S,as:T="span",children:w,ref:M,...D}){const N=i??vw[e]??"primary",j=_w(e),P=f??(r===1?"break-all":"break-word"),I=r>0||p?"block":l,q=p1({maxLines:r}),Y=typeof c=="string"?c:"above",K=r>0&&c!==!1&&q.isTruncated,et=A.useRef(null),nt=r>1?{WebkitLineClamp:r}:void 0;return b.jsxs(b.Fragment,{children:[b.jsx(T,{ref:_a(M,q.ref,et),...bt(yt("text",{type:e,color:N}),ht(l1[N],Oh[j],o1[j],s&&mw[s],r===1?xc.singleLine:r>1?xc.multiLine:r1[I],r>0&&c1[P],d&&u1[d],h!=="start"&&h1[h],p&&f1.enabled,x&&d1.strikethrough,y&&yw.enabled,v),_,{...S,...nt}),title:K?q.fullText:void 0,...D,children:w}),K&&b.jsx(A.Suspense,{fallback:null,children:b.jsx(bw,{anchorRef:et,content:b.jsx("span",{...ht(g1.content),children:q.fullText}),placement:Y})})]})}Yt.displayName="Text";const kw=.75,Sy=1.5,Ty={sm:{diameter:10,border:2},md:{diameter:14,border:3},lg:{diameter:18,border:3},xl:{diameter:28,border:4}},Ey={wrapper:{k1xSpc:"x3nfvp2",kXwgrk:"xdt5ytf",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",$$css:!0},spinner:{k1xSpc:"xwz0xwf",kgQiWS:"x1ku5rj1",kVQacm:"xb3r6kr",kXLuUW:"xxymvpz",$$css:!0}};function m1({size:e="md",shade:t="default",label:i,xstyle:s,className:l,style:r,"aria-label":c,"data-testid":f,ref:d,...h}){const p=A.useRef(null),{tokens:x}=IE();A.useEffect(()=>{const M=p.current;if(M==null)return;const D=M.getContext("2d");if(!D)return;const{border:N,diameter:j}=Ty[e],P=window.devicePixelRatio||1,I=t==="inherit"?getComputedStyle(M).color:null,q=t==="inherit"?I:t==="onMedia"?x["--color-on-dark"]:t==="subtle"?x["--color-text-secondary"]:x["--color-accent"],Y=t==="inherit"?I:t==="onMedia"?`${x["--color-on-dark"]}4D`:x["--color-track"],K=j+N*2,et=Math.round(K*P),nt=et+et%2,ut=nt/K,G=j/2*ut,z=N*ut;M.height=M.width=nt,M.style.width=M.style.height=K+"px",D.lineCap="round",D.lineWidth=z;const C=nt/2;D.beginPath(),D.arc(C,C,G,0,2*Math.PI),D.strokeStyle=Y,t==="inherit"&&(D.globalAlpha=.3),D.stroke(),D.globalAlpha=1,D.beginPath(),D.arc(C,C,G,Sy*Math.PI,(Sy+kw)%2*Math.PI),D.strokeStyle=q,D.stroke()},[t,e,x]);const{border:y,diameter:v}=Ty[e],_=v+y*2,S=i!=null,T=c??(typeof i=="string"?i:void 0)??"Loading",w=b.jsx("span",{ref:S?void 0:d,role:"status","aria-label":T,"data-testid":S?void 0:f,...S?{}:h,...bt(S?"":yt("spinner",{size:e,shade:t}),ht(Ey.spinner,!S&&s),S?void 0:l,{...S?{}:r,width:_,height:_}),children:b.jsx("canvas",{ref:p,className:"xlp1x4z x1lliihq x14qxm4i xa4qsjk x1ka1v4i x1esw782"})});return S?b.jsxs("div",{ref:d,"data-testid":f,...h,...bt(yt("spinner",{size:e,shade:t}),ht(Ey.wrapper,s),l,r),children:[w,typeof i=="string"?b.jsx(Yt,{type:"body",weight:"bold",children:i}):i]}):w}m1.displayName="Spinner";const Sw="data-astryx-edge-comp",Tw={keTefX:"x1kftj4p",k71WvV:"x92e2el",$$css:!0},Ew={inset:e=>[Tw,{"--x-126w13d":(t=>typeof t=="number"?t+"px":t??void 0)(`calc(-1 * ${e})`),"--x-4drmnv":(t=>typeof t=="number"?t+"px":t??void 0)(`calc(-1 * ${e})`)}]},Rh=A.createContext(null);Rh.displayName="SizeContext";function ww(e,t="md"){const i=A.use(Rh);return e??i??t}Rh.Provider;const x1=A.createContext(null);x1.displayName="ButtonGroupContext";function Aw(){return A.use(x1)}const y1=A.createContext(null);y1.displayName="LinkContext";function Mw(e){function t({href:i,ref:s,...l}){return A.createElement(e,{ref:s,href:i,to:i,...l})}return t.displayName=`LinkWithTo(${typeof e=="string"?e:e.displayName||e.name||"Component"})`,t}function $c(e){const t=A.use(y1),i=e??t?.component??"a";return A.useMemo(()=>i==="a"?"a":Mw(i),[i])}const ns={base:{kVAEAm:"x1n2onr6",k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kOIVth:"x1txdalj",k8WAf4:"xce4md1",kg3NbH:"xrrkdod",kMzoRj:"xc342km",ksu8eU:"xng3xce",kaIpWk:"x1jxw6zd",kMv6JI:"xjb2p0i",kGuDYH:"xcr08ib",kLWn49:"x1kq96og",k63SB2:"x1e4wzip",khDVqt:"xuxw1ft",kkrTdU:"x1ypdohk",k1ekBW:"xrafxwg",kIyJzY:"xuedmi6 x12w9bfk",kAMwcw:"xlr8y92",$$css:!0},pressable:{k3aq6I:"x3oybdh xk4oym4",$$css:!0},disabled:{kkrTdU:"x1h6gzvc",kSiTet:"xbyyjgo",kKwaWg:"x18o3ruo",k3aq6I:"x1c071of x1pdlv7q",$$css:!0},ariaDisabled:{kKwaWg:"x18o3ruo x8o3jvd xuqm82a",$$css:!0},iconOnly:{"--button-icon-only-aspect":"x1v15ycx",kOBAk4:"xioom0i",kg3NbH:"xnjsko4",k8WAf4:"xt970qd",$$css:!0},iconWrapper:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",$$css:!0},link:{kybGjl:"x1hl2dhg",$$css:!0}},Cw={sm:{kZKoxP:"x6k0iem",$$css:!0},md:{kZKoxP:"x1ueg155",$$css:!0},lg:{kZKoxP:"xssyfek",$$css:!0}},Dw={sm:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",kGuDYH:"x1j61zf2",$$css:!0},md:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",kGuDYH:"x1j61zf2",$$css:!0},lg:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",kGuDYH:"xwsyq91",$$css:!0}},Ow={primary:{kWkggS:"x1ewilqj",kMwMTN:"x17wrial",kKwaWg:"x1ilzqfv xq8i9tn",kI3sdo:"x17nn4n9","--button-focus-offset":"xkzo27j",kInvED:"x1wfwxd8 x13aywxo",$$css:!0},secondary:{kWkggS:"x17x4s8c",kMwMTN:"x1tgivj0",kKwaWg:"x1ilzqfv xq8i9tn",kI3sdo:"x17nn4n9","--button-focus-offset":"xkzo27j",kInvED:"x1wfwxd8 x13aywxo",$$css:!0},ghost:{kWkggS:"xjbqb8w",kMwMTN:"x1tgivj0",kKwaWg:"x1ilzqfv xq8i9tn",kI3sdo:"x17nn4n9","--button-focus-offset":"xkzo27j",kInvED:"x1wfwxd8 x13aywxo",$$css:!0},destructive:{kWkggS:"x1pjz0fi",kMwMTN:"x1m024r3",kKwaWg:"x1ilzqfv xq8i9tn",kI3sdo:"x1p73he7","--button-focus-offset":"xkzo27j",kInvED:"x1wfwxd8 x13aywxo",$$css:!0}},Lr={horizontal:{krdFHd:"x15mokao x8eehn2",kVL7Gh:"xbiv7yw x1xrp5p4",kfmiAY:"x1ga7v0g x11xp8u1",kT0f0o:"x16uus16 x747jw7",k2ei4v:"xgbv0en x1pjv70x",kVhnKS:"x1t7ytsu xyf0ibl",kGJrpR:"x1j92z86",$$css:!0},vertical:{krdFHd:"x15mokao x8eehn2",kfmiAY:"x1ga7v0g x2qxyot",kVL7Gh:"xbiv7yw x1yp72r9",kT0f0o:"x16uus16 x747jw7",kEafiO:"x11xkdxz x1g31smg",kPef9Z:"x13fuv20 x1d9v4yf",kLZC3w:"x1pc3f07",$$css:!0},onSolidHorizontal:{kGJrpR:"xrvmtm5",$$css:!0},onSolidVertical:{kLZC3w:"x11npmm7",$$css:!0}};function ms({label:e,variant:t="secondary",size:i,type:s="button",isDisabled:l=!1,isLoading:r=!1,clickAction:c,icon:f,isIconOnly:d=!1,children:h,endContent:p,tooltip:x,href:y,as:v,target:_,rel:S,xstyle:T,className:w,style:M,ref:D,...N}){const j=ww(i,"md"),P=Aw(),[I,q]=A.useTransition(),Y=A.useRef(!1),K=r||I,et=P?.isDisabled??!1,nt=l||et||K,ut=$c(v),G=y!=null&&!nt,z=x!=null&&nt,C=ot=>{if(nt||Y.current){ot.preventDefault();return}N.onClick?.(ot),c&&!ot.defaultPrevented&&(Y.current=!0,q(async()=>{try{await c(ot)}finally{Y.current=!1}}))},$=z?ot=>{ot.key==="Enter"||ot.key===" "?ot.preventDefault():N.onKeyDown?.(ot)}:void 0,Q=t==="ghost"?{[Sw]:""}:null,O=ht(ns.base,Cw[j],Ow[t],d&&ns.iconOnly,nt&&ns.disabled,z&&ns.ariaDisabled,G&&ns.link,!P&&ns.pressable,P&&(P.orientation==="horizontal"?Lr.horizontal:Lr.vertical),P&&(t==="primary"||t==="destructive")&&(P.orientation==="horizontal"?Lr.onSolidHorizontal:Lr.onSolidVertical),T),X=bt(yt("button",{variant:t,size:j}),O,w,M),it=b.jsxs(b.Fragment,{children:[K&&b.jsx("span",{className:"x10l6tqk x13vifvy xu96u03 x3m8u43 x1ey2m1c xrvj5dj x1ku5rj1","aria-hidden":"true",children:b.jsx(m1,{size:"sm",shade:"inherit"})}),b.jsxs("span",{...{0:{className:"xjp7ctv"},1:{className:"xjp7ctv x19co3pv"}}[!!K<<0],"aria-hidden":K||void 0,children:[f&&b.jsx("span",{...ht(ns.iconWrapper,Dw[j]),children:f}),d?null:b.jsx("span",{className:"xb3r6kr xlyipyv xeuugli",children:h??e}),!d&&p&&b.jsx("span",{className:"x3nfvp2 x6s0dn4 x1heor9g",children:p})]}),b.jsx("span",{className:"x10l6tqk x1i1rx1s xjm9jq1 x1717udv xkdpibf xb3r6kr xzpqnlu xuxw1ft xc342km",role:"status","aria-live":"polite",children:K?"Loa
128ding":""})]}),at=d&&e!==""||K&&!d||h!=null&&h!==e?{"aria-label":e}:null;let pt;return G?pt=b.jsx(ut,{ref:D,href:y,target:_,rel:S,...X,...N,...at,...Q,onClick:C,children:it}):pt=b.jsx("button",{ref:D,type:s,disabled:z?void 0:nt,...X,...N,...at,...Q,"aria-busy":K||void 0,"aria-disabled":z||void 0,onClick:C,...$?{onKeyDown:$}:null,children:it}),x?b.jsx(fo,{content:x,placement:"above",children:pt}):pt}ms.displayName="Button";const b1={root:{kmuXW:"x2lah0s",$$css:!0},span:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",kmuXW:"x2lah0s",$$css:!0}},v1={primary:{kMwMTN:"xtbr613",$$css:!0},secondary:{kMwMTN:"xv9yike",$$css:!0},tertiary:{kMwMTN:"xv9yike",$$css:!0},disabled:{kMwMTN:"xqa6c3m",$$css:!0},accent:{kMwMTN:"xqwr325",$$css:!0},success:{kMwMTN:"xtjic6",$$css:!0},error:{kMwMTN:"xjt36v0",$$css:!0},warning:{kMwMTN:"xs3pv69",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0},blue:{kMwMTN:"x1fns2mt",$$css:!0},red:{kMwMTN:"xeffzf7",$$css:!0},green:{kMwMTN:"xmxeech",$$css:!0},gray:{kMwMTN:"x1eyinzz",$$css:!0},cyan:{kMwMTN:"x157w0xa",$$css:!0},teal:{kMwMTN:"x1f3zxcb",$$css:!0},yellow:{kMwMTN:"x1g6zdft",$$css:!0},orange:{kMwMTN:"xxu74a4",$$css:!0},pink:{kMwMTN:"x1kxxfg5",$$css:!0},purple:{kMwMTN:"xzdw94u",$$css:!0}},Rw={xsm:{kzqmXN:"xsmyaan",kZKoxP:"x1kpxq89",$$css:!0},sm:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",$$css:!0},md:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",$$css:!0},lg:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",$$css:!0}},jw={xsm:{kzqmXN:"xsmyaan",kZKoxP:"x1kpxq89",kGuDYH:"xfifm61",$$css:!0},sm:{kzqmXN:"x1kky2od",kZKoxP:"xlup9mm",kGuDYH:"x1j61zf2",$$css:!0},md:{kzqmXN:"xw4jnvo",kZKoxP:"x1qx5ct2",kGuDYH:"xwsyq91",$$css:!0},lg:{kzqmXN:"xvy4d1p",kZKoxP:"xxk0z11",kGuDYH:"x1pvqxga",$$css:!0}};function oe({icon:e,color:t="inherit",size:i="md",ref:s,...l}){if(typeof e=="string")return b.jsx(Nw,{name:e,color:t,size:i,spanProps:l});const r=e;return b.jsx(r,{ref:s,"aria-hidden":"true",...bt(yt("icon",{size:i,color:t}),ht(b1.root,v1[t],Rw[i])),...l})}oe.displayName="Icon";function Nw({name:e,color:t,size:i,spanProps:s}){const l=Bl(e);return l==null?null:b.jsx("span",{...s,...bt(yt("icon",{size:i,color:t}),ht(b1.span,v1[t],jw[i])),"aria-hidden":"true",children:l})}const $w={isMobile:!1,isMobileNavOpen:!1,toggleMobileNav:()=>{},openMobileNav:()=>{},closeMobileNav:()=>{},isMobileNavEnabled:!1,hasAutoToggle:!0},_1=A.createContext($w);_1.displayName="AppShellMobileContext";function jh(){return A.use(_1)}function k1({ref:e,children:t,label:i="Open navigation","data-testid":s,xstyle:l,className:r,style:c}){const{isMobile:f,isMobileNavEnabled:d,toggleMobileNav:h}=jh();return!f||!d?null:b.jsx(ms,{ref:e,variant:"ghost",label:i,icon:t??b.jsx(oe,{icon:"menu",color:"inherit"}),onClick:h,"data-testid":s??"mobile-nav-toggle",xstyle:l,className:r,style:c,isIconOnly:!0})}k1.displayName="MobileNavToggle";const S1=A.createContext("default");S1.displayName="TopNavRenderContext";function Lw(){return A.use(S1)}const T1=A.createContext(null);T1.displayName="TopNavMobileContentContext";function zw(){return A.use(T1)}const Bw={info:"info",warning:"warning",error:"error",success:"success"},Pw={info:"status",warning:"alert",error:"alert",success:"status"},Hw={info:"accent",warning:"warning",error:"error",success:"success"},oa={root:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kMv6JI:"xjb2p0i",$$css:!0},header:{k1xSpc:"x78zum5",kGNEyG:"x1cy8zhl",kOIVth:"x1txdalj",k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",$$css:!0},headerCardStandalone:{kaIpWk:"x1hviunn",$$css:!0},headerCardWithContent:{kIxVMA:"x14k9mlb",ksF3WI:"xn9rnvb",kqGeR4:"xfrllxf",kYm2EN:"xjppbhk",$$css:!0},headerCentered:{kGNEyG:"x6s0dn4",$$css:!0},endArea:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",kmuXW:"x2lah0s",keTefX:"xvc5jky",kqGvvJ:"x81ka23",$$css:!0}},Fw={info:{kWkggS:"xgcxg3y",$$css:!0},warning:{kWkggS:"x24i8r5",$$css:!0},error:{kWkggS:"x1pritpl",$$css:!0},success:{kWkggS:"xu13z74",$$css:!0}};function E1({status:e,title:t,description:i,icon:s,isDismissable:l=!1,onDismiss:r,endContent:c,container:f="card",defaultIsExpanded:d=!1,children:h,xstyle:p,className:x,style:y,ref:v,..._}){const[S,T]=A.useState(!1),[w,M]=A.useState(d),D=Bw[e],N=Pw[e],j=Hw[e],P=h!=null;if(S)return null;const I=()=>{T(!0),r?.()},q=()=>{M(G=>!G)},Y=c!=null||l||P,K=c!=null||l,et=i==null&&K,nt=P&&w,ut=f==="card";
128return b.jsxs("div",{ref:v,role:N,...bt(ht(oa.root,p),x,y),..._,children:[b.jsxs("div",{...bt(yt("banner",{container:f,status:e}),ht(oa.header,et&&oa.headerCentered,Fw[e],ut&&(nt?oa.headerCardWithContent:oa.headerCardStandalone))),children:[b.jsx("div",{...bt(yt("banner-icon",{status:e}),{className:"x78zum5 x6s0dn4 x2lah0s"}),"aria-hidden":"true",children:s??b.jsx(oe,{icon:D,size:"md",color:j})}),b.jsxs("div",{className:"x78zum5 xdt5ytf xxhr3t x98rzlu xeuugli",children:[b.jsx("p",{className:"x1ghz6dp xjb2p0i xcr08ib x2mo6ok x1kq96og x1tgivj0",children:t}),i!=null&&b.jsx("p",{className:"x1ghz6dp xjb2p0i x141an7d x1sodnla x1ltkj2j xv1l7n4",children:i})]}),Y&&b.jsxs("div",{...ht(oa.endArea,Ew.inset(RT["--spacing-2"])),children:[c,P&&b.jsx(ms,{variant:"ghost",size:"sm",label:w?"Collapse":"Expand",tooltip:w?"Collapse":"Expand",icon:b.jsx("span",{...{0:{className:"x3nfvp2 x11xpdln xuedmi6 xlr8y92"},1:{className:"x3nfvp2 x11xpdln xuedmi6 xlr8y92 x19jd1h0"}}[!!w<<0],children:b.jsx(oe,{icon:"chevronDown",size:"sm",color:"inherit"})}),onClick:q,"aria-expanded":w,isIconOnly:!0}),l&&b.jsx(ms,{variant:"ghost",size:"sm",label:"Dismiss",tooltip:"Dismiss",icon:b.jsx(oe,{icon:"close",size:"sm",color:"inherit"}),onClick:I,isIconOnly:!0})]})]}),nt&&b.jsx("div",{...bt(yt("banner-content",{container:f,status:e}),{0:{className:"x1de1mus x8o8v82 x1pzlopt x1i535u5 x1pcaw5z x92x3c3 x19ypqd9 x32b0ac x1q0q8m5 x1utcnwd xtgwc6q xw8gpjh"},1:{className:"x1de1mus x8o8v82 x1pzlopt x1i535u5 x1pcaw5z x92x3c3 x19ypqd9 x32b0ac x1q0q8m5 x1utcnwd xtgwc6q xw8gpjh xv76oww x1padx2d"}}[!!ut<<0]),children:h})]})}E1.displayName="Banner";const Nh=A.createContext({variant:"default",separator:"/"});Nh.displayName="BreadcrumbContext";const Iw={root:{k1xSpc:"x1lliihq",$$css:!0}};function $h({children:e,separator:t="/",variant:i="default",xstyle:s,className:l,style:r,label:c="Breadcrumb",ref:f,...d}){const h=A.useMemo(()=>({variant:i,separator:t}),[i,t]);return b.jsx(Nh,{value:h,children:b.jsx("nav",{ref:f,"aria-label":c,...bt(yt("breadcrumbs",{variant:i}),ht(Iw.root,s),l,r),...d,children:b.jsx("ol",{className:"x78zum5 x6s0dn4 x1a02dak xe8uvvx x1ghz6dp x1717udv xzye2dw",children:e})})})}$h.displayName="Breadcrumbs";const ra={root:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"xzye2dw",kogj98:"x1ghz6dp","--separator-display":"xkce8z9 x1ibt0lz",$$css:!0},defaultSize:{kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0},supportingSize:{kGuDYH:"x141an7d",kLWn49:"x1ltkj2j",$$css:!0}};function ba({ref:e,as:t,children:i,href:s,onClick:l,isCurrent:r,startIcon:c,xstyle:f,className:d,style:h,"data-testid":p}){const x=A.use(Nh),y=$c(t),v=x.variant==="supporting",_=A.useRef(null),S=r===!0,T=r==null;A.useEffect(()=>{if(!T)return;const M=_.current;if(!M)return;const D=M.parentElement;if(!D)return;const N=Array.from(D.children),j=N.length>0&&N[N.length-1]===M,P=D.querySelector('[aria-current="page"]');return j&&!P&&M.setAttribute("aria-current","page"),()=>{M.removeAttribute("aria-current")}});const w=b.jsxs(b.Fragment,{children:[c&&b.jsx("span",{className:"x78zum5 x6s0dn4 x2lah0s",children:c}),i]});return S?b.jsxs("li",{ref:_a(e,_),...bt(yt("breadcrumb-item"),ht(ra.root,v?ra.supportingSize:ra.defaultSize,f),d,h),"data-testid":p,children:[b.jsx("span",{"aria-hidden":"true",className:"x11ke7fs x6s0dn4 xv1l7n4 xu0wf1k x87ps6o",children:x.separator}),b.jsx("span",{...{0:{className:"x78zum5 x6s0dn4 xzye2dw x1pd3egz x1tgivj0"},1:{className:"x78zum5 x6s0dn4 xzye2dw x1pd3egz xv1l7n4"}}[!!v<<0],"aria-current":"page",children:w})]}):b.jsxs("li",{ref:_a(e,_),...bt(yt("breadcrumb-item"),ht(ra.root,v?ra.supportingSize:ra.defaultSize,f),d,h),"data-testid":p,children:[b.jsx("span",{"aria-hidden":"true",className:"x11ke7fs x6s0dn4 xv1l7n4 xu0wf1k x87ps6o",children:x.separator}),s!=null?b.jsx(y,{href:s,onClick:l,...{0:{className:"x78zum5 x6s0dn4 xzye2dw xu0wf1k x1hl2dhg x4ohgrr x1ypdohk xv1l7n4"},1:{className:"x78zum5 x6s0dn4 xzye2dw xu0wf1k x1hl2dhg x4ohgrr x1ypdohk xv1l7n4"}}[!!v<<0],children:w}):l!=null?b.jsx("button",{type:"button",onClick:l,...{0:{className:"x78zum5 x6s0dn4 xzye2dw xu0wf1k x1hl2dhg x4ohgrr x1ypdohk x1717udv x1ghz6dp xln7xf2 xv1l7n4"},1:{className:"x78zum5 x6s0dn4 xzye2dw xu0wf1k x1hl2dhg x4ohgrr x1ypdohk x1717udv x1ghz6dp xln7xf2 xv1l7n4"}}[!!v<<0],children:w}):b.jsx("span",{...{0:{className:"x78zum5 x6s0dn4 xzye2dw x1pd3egz x1tgivj0"},1:{className:"x78zum5 x6s0dn4 xzye2dw x1pd3egz xv1l7n4"}}[!!v<<0],children:w})]})}ba.displayName="BreadcrumbItem";function Uw(e={}){const{itemSelector:t='[role="menuitem"]',wrap:i=!0,onEscape:s,orientation:l="vertical"}=e,r=A.useRef(null),c=A.useCallback(()=>r.current?Array.from(r.current.querySelectorAll(t)):[],[t]),f=A.useCallback(()=>{const y=c(),v=document.activeElement;return y.findIndex(_=>_===v||_.contains(v))},[c]),d=A.useCallback(y=>{const v=c();if(v.length===0)return;const _=Math.max(0,Math.min(y,v.length-1));v[_]?.focus()},[c]),h=A.useCallback(()=>
128{c()[0]?.focus()},[c]),p=A.useCallback(()=>{const y=c();y[y.length-1]?.focus()},[c]),x=A.useCallback(y=>{const v=f(),_=c();let S=!0;const T=l==="horizontal"?"ArrowRight":"ArrowDown",w=l==="horizontal"?"ArrowLeft":"ArrowUp";switch(y.key){case T:{v===-1?_[0]?.focus():v<_.length-1?_[v+1]?.focus():i&&_[0]?.focus();break}case w:{v===-1?_[_.length-1]?.focus():v>0?_[v-1]?.focus():i&&_[_.length-1]?.focus();break}case"Home":h();break;case"End":p();break;case"Escape":s?.();break;default:S=!1}S&&y.preventDefault()},[f,c,i,l,h,p,s]);return{listRef:r,handleKeyDown:x,focusItem:d,focusFirst:h,focusLast:p}}const wy={container:{kB7OPa:"x9f619",kZCmMZ:"x1c35znw",kwRFfy:"x64h4k7",kLKAdn:"x14m0hsi",kGO01o:"xc1wllq",$$css:!0}},qw={containerPaddingInlineStart:{"--container-padding-inline-start":"x57kmtc",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"x82j3if",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"xql609l",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"xgytdgc",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x1ttknaf",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"x157fxbq",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"xtkfv1",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"xud27no",$$css:!0}},Vw={containerPaddingInlineStart:{"--container-padding-inline-start":"x1tq27sy",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"x1jwv46a",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"x1ssg4ko",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"x17fxftp",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x1xxacy6",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"x1cqt3fu",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"x6jfk3i",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"xuhqqgo",$$css:!0}},Yw={containerPaddingInlineStart:{"--container-padding-inline-start":"xznk6j1",$$css:!0},containerPaddingInlineEnd:{"--container-padding-inline-end":"x1t93mp1",$$css:!0},containerPaddingBlockStart:{"--container-padding-block-start":"x1p4a0an",$$css:!0},containerPaddingBlockEnd:{"--container-padding-block-end":"xtus18",$$css:!0},layoutPaddingOuterX:{"--layout-padding-outer-x":"x3tame4",$$css:!0},layoutPaddingOuterY:{"--layout-padding-outer-y":"x1qj6s08",$$css:!0},layoutPaddingInnerX:{"--layout-padding-inner-x":"x1y78w7l",$$css:!0},layoutPaddingInnerY:{"--layout-padding-inner-y":"x1idsit8",$$css:!0}},Gw={card:qw,section:Vw,dialog:Yw},Ww={spacing0:{"--container-padding-inline-start":"x1gu2k80",$$css:!0},spacing0_5:{"--container-padding-inline-start":"x14ws0sr",$$css:!0},spacing1:{"--container-padding-inline-start":"x1cvlban",$$css:!0},spacing1_5:{"--container-padding-inline-start":"x176g23i",$$css:!0},spacing2:{"--container-padding-inline-start":"x1xlrr2o",$$css:!0},spacing3:{"--container-padding-inline-start":"xfdwxua",$$css:!0},spacing4:{"--container-padding-inline-start":"x1dlhslv",$$css:!0},spacing5:{"--container-padding-inline-start":"x1s81nki",$$css:!0},spacing6:{"--container-padding-inline-start":"x1ep0dkj",$$css:!0},spacing7:{"--container-padding-inline-start":"x157xojc",$$css:!0},spacing8:{"--container-padding-inline-start":"xw1diwv",$$css:!0},spacing9:{"--container-padding-inline-start":"xraca2a",$$css:!0},spacing10:{"--container-padding-inline-start":"xserb3f",$$css:!0},spacing11:{"--container-padding-inline-start":"xziclwo",$$css:!0},spacing12:{"--container-padding-inline-start":"x1iiwihq",$$css:!0}},Xw={spacing0:{"--container-padding-inline-end":"x91ghl5",$$css:!0},spacing0_5:{"--container-padding-inline-end":"x1wz3t3y",$$css:!0},spacing1:{"--container-padding-inline-end":"x2oyxnl",$$css:!0},spacing1_5:{"--container-padding-inline-end":"xntetml",$$css:!0},spacing2:{"--container-padding-inline-end":"xcas3b9",$$css:!0},spacing3:{"--container-padding-inline-end":"xu0ipoa",$$css:!0},spacing4:{"--container-padding-inline-end":"xs0pscg",$$css:!0},spacing5:{"--container-padding-inline-end":"xgkj7vj",$$css:!0},spacing6:{"--container-padding-inline-end":"x94cj42",$$css:!0},spacing7:{"--container-padding-inline-end":"x11tj35w",$$css:!0},spacing8:{"--container-padding-inline-end":"x1b9k1pi",$$css:!0},spacing9:{"--container-padding-inline-end":"x19w02kr",$$css:!0},spacing10:{"--container-padding-inline-end":"xx5lg5w",$$css:!0},spacing11:{"--container-padding-inline-end":"x1nmgbqg",$$css:!0},spacing12:{"--container-padding-inline-end":"x1wsfsk2",$$css:!0}},Kw={spacing0:{"--container-padding-block-start":"x1i3qcxz",$$css:!0},spacing0_5:{"--container-padding-block-start":"xvdf9ev",$$css:!0},spacing1:{"--container-padding-block-start":"xnsckjb",$$css:!0},spacing1_5:{"--container-padding-block-start":"x1kbx601",$$css:!0},spacing2:{"--container-padding-block-start":"xa8b4fq",$$css:!0},spacing3:{"--container-padding-block-start":"x11k4f5r",$$css:!0},spacing4:{"--container-padding-block-start":"xm01sq8",$$css:!0},spacing5:{"--container-padding-block-start":"xp8wdkl",$$css:!0},spacing6:{"--container-padding-block-start":"x1hmud4d",$$css:!0},spacing7:{"--container-padding-block-start":"x1c00sag",$$css:!0},spacing8:{"--container-padding-block-start":"xfv60at",$$css:!0},spacing9:{"--container-padding-block-start":"x14fzdu7",$$css:!0},spacing10:{"--container-padding-block-start":"x17h9kl7",$$css:!0},spacing11:{"--container-padding-block-start":"x1rdjxae",$$css:!0},spacing12:{"--container-padding-block-start":"xecwdl6",$$css:!0}},Zw={spacing0:{"--container-padding-block-end":"xkunwnr",$$css:!0},spacing0_5:{"--container-padding-block-end":"x1cao3zv",$$css:!0},spacing1:{"--container-padding-block-end":"x57a7ii",$$css:!0},spacing1_5:{"--container-padding-block-end":"xv53x8y",$$css:!0},spacing2:{"--container-padding-block-end":"x1lsgcmx",$$css:!0},spacing3:{"--container-padding-block-end":"x1q3ppug",$$css:!0},spacing4:{"--container-padding-block-end":"x4hfsld",$$css:!0},spacing5:{"--container-padding-block-end":"xbib2ws",$$css:!0},spacing6:{"--container-padding-block-end":"x1q8d17g",$$css:!0},spacing7:{"--container-padding-block-end":"x1yqogew",$$css:!0},spacing8:{"--container-padding-block-end":"x8lgq76",$$css:!0},spacing9:{"--container-padding-block-end":"x1f7f9rt",$$css:!0},spacing10:{"--container-padding-block-end":"x15vxphk",$$css:!0},spacing11:{"--container-padding-block-end":"x4bg2x9",$$css:!0},spacing12:{"--container-padding-block-end":"x186mjxr",$$css:!0}},Qw={spacing0:{"--layout-padding-outer-x":"xswhm3q",$$css:!0},spacing0_5:{"--layout-padding-outer-x":"xihiwg7",$$css:!0},spacing1:{"--layout-padding-outer-x":"xc96xmq",$$css:!0},spacing1_5:{"--layout-padding-outer-x":"x1u93lgd",$$css:!0},spacing2:{"--layout-padding-outer-x":"x15dxnc0",$$css:!0},spacing3:{"--layout-padding-outer-x":"xadgj3j",$$css:!0},spacing4:{"--layout-padding-outer-x":"x1v56qcf",$$css:!0},spacing5:{"--layout-padding-outer-x":"x1nzs0gl",$$css:!0},spacing6:{"--layout-padding-outer-x":"x1c3n52a",$$css:!0},spacing7:{"--layout-padding-outer-x":"x1gfiokx",$$css:!0},spacing8:{"--layout-padding-outer-x":"x1t3kfz",$$css:!0},spacing9:{"--layout-padding-outer-x":"xzr4qsh",$$css:!0},spacing10:{"--layout-padding-outer-x":"x1jdf5a4",$$css:!0},spacing11:{"--layout-padding-outer-x":"x1hct0t0",$$css:!0},spacing12:{"--layout-padding-outer-x":"x11cyqoe",$$css:!0}},Jw={spacing0:{"--layout-padding-outer-y":"x1mzf5mb",$$css:!0},spacing0_5:{"--layout-padding-outer-y":"x1vj96e0",$$css:!0},spacing1:{"--layout-padding-outer-y":"x1gpfxoh",$$css:!0},spacing1_5:{"--layout-padding-outer-y":"xd3dqby",$$css:!0},spacing2:{"--layout-padding-outer-y":"x10pz7y9",$$css:!0},spacing3:{"--layout-padding-outer-y":"x1p6yq3h",$$css:!0},spacing4:{"--layout-padding-outer-y":"xx738ci",$$css:!0},spacing5:{"--layout-padding-outer-y":"x6yxws5",$$css:!0},spacing6:{"--layout-padding-outer-y":"x180vrwl",$$css:!0},spacing7:{"--layout-padding-outer-y":"x1q6rme1",$$css:!0},spacing8:{"--layout-padding-outer-y":"xid7e43",$$css:!0},spacing9:{"--layout-padding-outer-y":"x1t5kicu",$$css:!0},spacing10:{"--layout-padding-outer-y":"x26l4wa",$$css:!0},spacing11:{"--layout-padding-outer-y":"x10zktp0",$$css:!0},spacing12:{"--layout-padding-outer-y":"x1yz3n6a",$$css:!0}},tA={spacing0:{"--layout-padding-inner-x":"xj1bl4l",$$css:!0},spacing0_5:{"--layout-padding-inner-x":"xlriy2h",$$css:!0},spacing1:{"--layout-padding-inner-x":"x6uuyak",$$css:!0},spacing1_5:{"--layout-padding-inner-x":"xd38f90",$$css:!0},spacing2:{"--layout-padding-inner-x":"xxqksqd",$$css:!0},spacing3:{"--layout-padding-inner-x":"x1fyui2f",$$css:!0},spacing4:{"--layout-padding-inner-x":"x1i2ajwi",$$css:!0},spacing5:{"--layout-padding-inner-x":"x1tac27u",$$css:!0},spacing6:{"--layout-padding-inner-x":"x1ntgf3t",$$css:!0},spacing7:{"--layout-padding-inner-x":"xhjd9tl",$$css:!0},spacing8:{"--layout-padding-inner-x":"xn7c84u",$$css:!0},spacing9:{"--layout-padding-inner-x":"xeqkbsz",$$css:!0},spacing10:{"--layout-padding-inner-x":"x1vf4qco",$$css:!0},spacing11:{"--layout-padding-inner-x":"xsmamsf",$$css:!0},spacing12:{"--layout-padding-inner-x":"x2xk2xj",$$css:!0}},eA={spacing0:{"--layout-padding-inner-y":"xwuefyo",$$css:!0},spacing0_5:{"--layout-padding-inner-y":"x180h0y5",$$css:!0},spacing1:{"--layout-padding-inner-y":"xmpug6m",$$css:!0},spacing1_5:{"--layout-padding-inner-y":"x1g8jpzm",$$css:!0},spacing2:{"--layout-padding-inner-y":"x1lksgje",$$css:!0},spacing3:{"--layout-padding-inner-y":"x4j7gld",$$css:!0},spacing4:{"--layout-padding-inner-y":"x1s3ehtl",$$css:!0},spacing5:{"--layout-padding-inner-y":"x1rj5eim",$$css:!0},spacing6:{"--layout-padding-inner-y":"x1ftgg6u",$$css:!0},spacing7:{"--layout-padding-inner-y":"x1ho74vh",$$css:!0},spacing8:{"--layout-padding-inner-y":"xm2cs6f",$$css:!0},spacing9:{"--layout-padding-inner-y":"x1vsq92b",$$css:!0},spacing10:{"--layout-padding-inner-y":"x18gbwmk",$$css:!0},spacing11:{"--layout-padding-inner-y":"x14zymzj",$$css:!0},spacing12:{"--layout-padding-inner-y":"xzfpkx9",$$css:!0}},nA={containerMaxHeight:e=>[{"--container-max-height":e!=null?"x18nyedi":e,$$css:!0},{"--x---container-max-height":e??void 0}]};function iA({padding:e="spacing4",paddingOuterX:t,paddingOuterY:i,paddingInnerX:s,paddingInnerY:l,useThemeDefault:r,maxHeight:c}){const f=t??e,d=i??e,h=s??e,p=l??e,x=c?nA.containerMaxHeight(c):null;if(r){const y=Gw[r];return[wy.container,y.containerPaddingInlineStart,y.containerPaddingInlineEnd,y.containerPaddingBlockStart,y.containerPaddingBlockEnd,y.layoutPaddingOuterX,y.layoutPaddingOuterY,y.layoutPaddingInnerX,y.layoutPaddingInnerY,x]}return[wy.container,Ww[f],Xw[f],Kw[d],Zw[d],Qw[f],Jw[d],tA[h],eA[p],x]}const jd={card:{"--_card-radius":"x2kkz0m",kaIpWk:"x153u1i6",kVQacm:"x7giv3",kMzoRj:"x1litavf",ksu8eU:"x1y0btm7",kVAM5u:"x9r1u3d",$$css:!0},withBorder:{kVAM5u:"xvy26l8",$$css:!0},scrollable:{kVQacm:"xysyzu8",$$css:!0}},sA={default:{kWkggS:"x1de1mus",$$css:!0},transparent:{kWkggS:"xjbqb8w",$$css:!0},muted:{kWkggS:"xwmxj5m",$$css:!0},blue:{kWkggS:"x1o0wnni",$$css:!0},cyan:{kWkggS:"x1rgj867",$$css:!0},gray:{kWkggS:"xspzpui",$$css:!0},green:{kWkggS:"x1sqjeoo",$$css:!0},orange:{kWkggS:"x1e9xt6e",$$css:!0},pink:{kWkggS:"xnpoty2",$$css:!0},purple:{kWkggS:"x16i6n6f",$$css:!0},red:{kWkggS:"x1cibrc5",$$css:!0},teal:{kWkggS:"x1jtji5o",$$css:!0},yellow:{kWkggS:"x1bo7t0x",$$css:!0}},aA={sizing:(e,t,i,s)=>[{kzqmXN:e!=null?"x5lhr3w":e,kZKoxP:t!=null?"x16ye13r":t,ks0D6T:i!=null?"xf68679"
128:i,kAzted:s!=null?"x82snj4":s,$$css:!0},{"--x-width":(l=>typeof l=="number"?l+"px":l??void 0)(e),"--x-height":(l=>typeof l=="number"?l+"px":l??void 0)(t),"--x-maxWidth":(l=>typeof l=="number"?l+"px":l??void 0)(i),"--x-minHeight":(l=>typeof l=="number"?l+"px":l??void 0)(s)}]};function Ma({width:e,height:t,maxWidth:i,minHeight:s,children:l,padding:r,variant:c="default",xstyle:f,className:d,style:h,ref:p,...x}){const y=t!=null&&t!=="auto",v=r==null,_=r??4,S=aw[_];return b.jsx("div",{ref:p,...bt(yt("card",{variant:c}),ht(jd.card,sA[c],c==="default"&&jd.withBorder,y&&jd.scrollable,aA.sizing(e??null,t??null,i??null,s??null),...iA(v?{useThemeDefault:"card"}:{paddingInnerX:S,paddingInnerY:S,paddingOuterX:S,paddingOuterY:S}),!v&&_!==4&&lw[_],!v&&_!==4&&ow[_],!v&&_!==4&&rw[_],!v&&_!==4&&cw[_],f),d,h),...x,children:l})}Ma.displayName="Card";const lA='button:not([disabled]), [href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"]):not([disabled])';function Lh(e){return Array.from(e.querySelectorAll(lA))}function w1(e){try{e.focus()}catch{}return document.activeElement===e}function Ay(e){const t=Lh(e);for(const i of t)if(w1(i))return!0;return!1}function oA(e){const t=Lh(e);for(let i=t.length-1;i>=0;i--)if(w1(t[i]))return!0;return!1}function rA(e){const{isActive:t,onEscape:i}=e,s=A.useRef(null),l=A.useRef(null),r=A.useRef(!1),c=A.useCallback(()=>{s.current&&Ay(s.current)},[]);return A.useEffect(()=>{if(!t)return;const f=d=>{const h=s.current;if(!h)return;const p=d.target;h.contains(p)?l.current=p:r.current&&(Ay(h),l.current===document.activeElement&&oA(h),l.current=document.activeElement),r.current=!1};return document.addEventListener("focus",f,!0),()=>{document.removeEventListener("focus",f,!0)}},[t]),A.useEffect(()=>{if(!t)return;const f=d=>{const h=s.current;if(h){if(d.key==="Escape"&&i){d.preventDefault(),i();return}if(d.key==="Tab"){r.current=!0;const p=Lh(h);if(p.length===0)return;const x=p[0],y=p[p.length-1];d.shiftKey?document.activeElement===x&&(d.preventDefault(),y.focus()):document.activeElement===y&&(d.preventDefault(),x.focus())}}};return document.addEventListener("keydown",f),()=>{document.removeEventListener("keydown",f)}},[t,i]),{containerRef:s,focusFirst:c}}const My={surface:{kWkggS:"x1prclbq",kaIpWk:"x1hviunn",kGVxlE:"x1i5ehqx",$$css:!0},contentWrapper:{kVAEAm:"x1n2onr6",$$css:!0}};function cA(e={}){const{onShow:t,onHide:i,xstyle:s,hasLightDismiss:l=!0,hasAutoFocus:r=!0,hasSurface:c=!0,hasCloseButton:f=!0,closeButtonLabel:d="Close popover",dialogLabel:h}=e,p=A.useRef(null),x=A.useRef(!1),y=Dh({mode:"context",lightDismiss:l,onShow:t,onHide:i}),{containerRef:v,focusFirst:_}=rA({isActive:y.isOpen,onEscape:y.hide});A.useEffect(()=>{y.isOpen&&r&&!x.current&&requestAnimationFrame(()=>{_()}),y.isOpen||(x.current=!1)},[y.isOpen,r,_]);const S=A.useCallback(N=>{p.current=N,y.ref(N)},[y]),T=A.useCallback(N=>{x.current=N?.skipAutoFocus??!1,y.show()},[y]),w=A.useCallback(()=>{y.isOpen?y.hide():T()},[y,T]),M={"aria-haspopup":"dialog","aria-expanded":y.isOpen,"aria-controls":y.id},D=A.useCallback((N,j)=>y.render(b.jsxs("div",{ref:v,role:"dialog","aria-modal":"true","aria-label":h,...ht(My.contentWrapper,c&&My.surface,s),children:[N,f&&b.jsx("div",{className:"x10l6tqk x1ey2m1c x1nrll8i x31h1t8 x1vjfegm x1i1rx1s x10okhzq xjm9jq1 x132qfvm xb3r6kr x1dordxg x1hyvwdk x10wafsz x47corl xbt4iw xexx8yu x1kw28su",children:b.jsx(ms,{variant:"secondary",label:d,onClick:y.hide})})]}),{...j,xstyle:j?.xstyle}),[y,f,c,d,v,h,s]);return{triggerRef:S,contentRef:v,anchorId:y.anchorId,show:T,hide:y.hide,toggle:w,isOpen:y.isOpen,id:y.id,render:D,triggerProps:M}}const A1=A.createContext(null);A1.displayName="InteractiveRoleContext";function uA(){return A.use(A1)}const Nd={container:{kWkggS:"x10xzikg","--_hovercard-radius":"xqwz7mz",kaIpWk:"x7a53xk",kGVxlE:"x14hfi27",$$css:!0},marginBlock:{keoZOQ:"xcsaf9d",k1K539:"x14cgwvg",keTefX:"x1lziwak",k71WvV:"x14z9mp",$$css:!0},marginInline:{keoZOQ:"xdj266r",k1K539:"xat24cr",keTefX:"x11g1kdw",k71WvV:"xnur1sd",$$css:!0}};function fA(e){return e.hasAttribute("tabindex")?e.tabIndex>=0:["A","BUTTON","INPUT","SELECT","TEXTAREA"].includes(e.tagName)?!e.disabled:!!e.isContentEditable}function dA(e={}){const{placement:t="above",alignment:i="center",delay:s=300,hideDelay:l=200,focusTrigger:r="auto",isEnabled:c=!0,isOpen:f,isDefaultOpen:d=!1,onShow:h,onHide:p}=e,x=t==="above"||t==="below"?Nd.marginBlock:Nd.marginInline,y=Dh({mode:"context",onShow:h,onHide:p}),v=A.useMemo(()=>[Nd.container,x],[x]),_=A.useRef(null),S=A.useRef(null),T=A.useRef(null),w=A.useRef(!1),M=A.useRef(!1),D=A.useCallback(()=>{_.current&&(clearTimeout(_.current),_.current=null),S.current&&(clearTimeout(S.current),S.current=null)},[]),N=A.useCallback(()=>{!c||f===!1||(D(),_.current=setTimeout(()=>{y.show()},s))},[c,f,D,y,s]),j=A.useCallback(()=>{f!==!0&&(D(),S.current=setTimeout(()=>{w.current||y.hide()},l))},[f,D,y,l]),P=A.useCallback(()=>{N()},[N]),I=A.useCallback(()=>{j()},[j]),q=A.useCallback(()=>
128{if(c){if(M.current){M.current=!1;return}D(),y.show()}},[c,D,y]),Y=A.useCallback(G=>{const z=G.relatedTarget;document.getElementById(y.id)?.contains(z)||j()},[y.id,j]),K=A.useCallback(G=>{G.key==="Escape"&&(G.stopPropagation(),D(),y.hide())},[D,y]),et=A.useCallback(G=>{T.current&&(T.current.removeEventListener("mouseenter",P),T.current.removeEventListener("mouseleave",I),T.current.removeEventListener("focusin",q),T.current.removeEventListener("focusout",Y),T.current.removeEventListener("keydown",K)),G&&(G.addEventListener("mouseenter",P),G.addEventListener("mouseleave",I),(r==="always"||r==="auto"&&fA(G))&&(G.addEventListener("focusin",q),G.addEventListener("focusout",Y)),G.addEventListener("keydown",K)),T.current=G},[r,P,I,q,Y,K]),nt=A.useCallback(G=>{y.ref(G),et(G)},[y,et]);A.useEffect(()=>()=>{D()},[D]),A.useEffect(()=>{d&&y.show()},[]),A.useEffect(()=>{f!==void 0&&(f?(D(),y.show()):(D(),y.hide()))},[f,D,y]);const ut=A.useCallback((G,z)=>{const C=z?.placement??t,$={placement:C,alignment:z?.alignment??i,xstyle:[v,i1[C]]};return y.render(b.jsx("div",{...bt(yt("hovercard"),{className:"x1vlblms xvmdzux x126nfab x1t818jl"}),onMouseEnter:()=>{w.current=!0,D()},onMouseLeave:()=>{w.current=!1,j()},onKeyDown:W=>{W.key==="Escape"&&(W.stopPropagation(),M.current=!0,D(),y.hide(),T.current?.focus())},onBlur:W=>{const Q=W.relatedTarget;W.currentTarget.contains(Q)||T.current?.contains(Q)||j()},children:G}),$)},[y,t,i,D,j,v]);return{ref:nt,positionRef:y.ref,interactionRef:et,anchorId:y.anchorId,describedBy:y.id,renderHoverCard:ut,show:y.show,hide:y.hide}}function hA(e){return typeof e=="string"||typeof e=="number"}function gA(...e){const t=e.filter(Boolean);return t.length>0?t.join(" "):void 0}function M1({children:e,content:t,placement:i="above",alignment:s="center",delay:l=300,hideDelay:r=200,focusTrigger:c="auto",isEnabled:f=!0,onOpenChange:d,hasHoverIndication:h="auto",isOpen:p,isDefaultOpen:x,xstyle:y,className:v,style:_}){const S=A.useRef(null),T=hA(e),w=h===!0||h==="auto"&&T,M=A.useCallback(()=>{d?.(!0)},[d]),D=A.useCallback(()=>{d?.(!1)},[d]),N=dA({placement:i,alignment:s,delay:l,hideDelay:r,focusTrigger:c,isEnabled:f,isOpen:p,isDefaultOpen:x,onShow:M,onHide:D});hc(()=>{if(T)return;const P=S.current;if(!P)return;const I=P.firstElementChild;if(!I)return;N.ref(I);const q=I.getAttribute("aria-describedby");return I.setAttribute("aria-describedby",gA(q,N.describedBy)??""),()=>{N.ref(null),q?I.setAttribute("aria-describedby",q):I.removeAttribute("aria-describedby")}},[T,N.ref,N.describedBy]);const j=typeof document<"u"?Vb.createPortal(N.renderHoverCard(t,{xstyle:y,className:v,style:_}),document.body):null;return T?b.jsxs(b.Fragment,{children:[b.jsx("span",{ref:N.ref,tabIndex:0,"aria-describedby":N.describedBy,...{0:{className:"xt0psk2"},1:{className:"xt0psk2 xujl8zx xev0dqp xycaml9 x11b3rvo"}}[!!w<<0],children:e}),j]}):b.jsxs(b.Fragment,{children:[b.jsx("span",{ref:S,className:"xjp7ctv",children:e}),j]})}M1.displayName="HoverCard";function pA({href:e,onClick:t,isDisabled:i=!1}){const s=uA();return e!=null&&!i?"link":t!=null?"button":s??"inert"}const zr={base:{k1xSpc:"x78zum5",$$css:!0},inline:{k1xSpc:"x3nfvp2",$$css:!0},alignItemsCenter:{kGNEyG:"x6s0dn4",$$css:!0},justifyContentCenter:{kjj79g:"xl56j7k",$$css:!0}},mA={sizing:(e,t)=>[{kzqmXN:e!=null?"x5lhr3w":e,kZKoxP:t!=null?"x16ye13r":t,$$css:!0},{"--x-width":(i=>typeof i=="number"?i+"px":i??void 0)(e),"--x-height":(i=>typeof i=="number"?i+"px":i??void 0)(t)}]};function C1({axis:e="both",width:t,height:i,isInline:s=!1,children:l,xstyle:r,className:c,style:f,ref:d,...h}){const p=bt(yt("center",{axis:e}),ht(s?zr.inline:zr.base,(e==="both"||e==="vertical")&&zr.alignItemsCenter,(e==="both"||e==="horizontal")&&zr.justifyContentCenter,mA.sizing(t??null,i??null),r),c,f);return b.jsx("div",{ref:d,...p,...h,children:l})}C1.displayName="Center";const xA=A.lazy(async()=>a1(()=>Promise.resolve().then(()=>s1),void 0).then(e=>({default:e.Tooltip}))),yA={1:"h1",2:"h2",3:"h3",4:"h4",5:"h5",6:"h6"};function ho({level:e,type:t,accessibilityLevel:i,color:s="primary",display:l="block",maxLines:r=0,hasTruncateTooltip:c=!0,wordBreak:f,textWrap:d,justify:h="start",hasCapsize:p=!1,hasStrikethrough:x=!1,xstyle:y,className:v,style:_,children:S,ref:T,...w}){const M=yA[e],D=i&&i!==e?{"aria-level":i}:{},N=f??(r===1?"break-all":"break-word"),j=r>0||p?"block":l,P=p1({maxLines:r}),I=typeof c=="string"?c:"above",q=r>
1280&&c!==!1&&P.isTruncated,Y=A.useRef(null),K=r>1?{WebkitLineClamp:r}:void 0;return b.jsxs(b.Fragment,{children:[b.jsx(M,{ref:_a(T,P.ref,Y),...bt(yt("heading",{level:e,color:s,...t&&{type:t}}),ht(l1[s],t?Oh[t]:xw[e],t&&o1[t],r===1?xc.singleLine:r>1?xc.multiLine:r1[j],r>0&&c1[N],d&&u1[d],h!=="start"&&h1[h],p&&f1.enabled,x&&d1.strikethrough,y),v,{..._,...K}),title:q?P.fullText:void 0,...D,...w,children:S}),q&&b.jsx(A.Suspense,{fallback:null,children:b.jsx(xA,{anchorRef:Y,content:b.jsx("span",{...ht(g1.content),children:P.fullText}),placement:I})})]})}ho.displayName="Heading";function zh({direction:e="vertical",hAlign:t,vAlign:i,justify:s,align:l,gap:r,width:c,height:f,wrap:d,as:h="div",xstyle:p,className:x,style:y,children:v,ref:_,...S}){const T=t??(e==="horizontal"?s:l),w=i??(e==="horizontal"?l:s),N=ht(...ZE({direction:e,crossAlign:e==="horizontal"?w:T,mainAlign:e==="horizontal"?T:w,gap:r,wrap:d}),p),j={...c!=null&&{width:typeof c=="number"?`${c}px`:c},...f!=null&&{height:typeof f=="number"?`${f}px`:f}};return A.createElement(h,{ref:_,...bt(yt("stack",{direction:e,gap:r,wrap:d}),N,x,{...y,...j}),...S},v)}zh.displayName="Stack";function Ce({ref:e,justify:t,align:i,hAlign:s,vAlign:l,...r}){return b.jsx(zh,{...r,direction:"horizontal",hAlign:s??t,vAlign:l??i,ref:e})}Ce.displayName="HStack";function de({ref:e,justify:t,align:i,hAlign:s,vAlign:l,...r}){return b.jsx(zh,{...r,direction:"vertical",hAlign:s??i,vAlign:l??t,ref:e})}de.displayName="VStack";const Cy={horizontal:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kzqmXN:"xh8yej3",$$css:!0},vertical:{k1xSpc:"x3nfvp2",kXwgrk:"xdt5ytf",kGNEyG:"x6s0dn4",kZKoxP:"x5yr21d",$$css:!0}},ca={horizontalLine:{kZKoxP:"xsyqizj",kzQI83:"x1iyjqo2",kmuXW:"xs83m0k",$$css:!0},verticalLine:{kzqmXN:"xjk4fl7",kzQI83:"x1iyjqo2",kmuXW:"xs83m0k",$$css:!0},subtle:{kWkggS:"x1m4xfpy",$$css:!0},strong:{kWkggS:"x7njt3n",$$css:!0}},Dy={horizontal:{keTefX:"xojxgvx",k71WvV:"x1fcf3bl",kzqmXN:"xx6qvi6",$$css:!0},vertical:{keoZOQ:"x1sa9bsh",k1K539:"x6h7pi7",kZKoxP:"x12qplqi",$$css:!0}};function Ca({orientation:e="horizontal",label:t,variant:i="subtle",isFullBleed:s=!1,xstyle:l,className:r,style:c,ref:f,...d}){const h=e==="horizontal";return b.jsxs("div",{ref:f,role:"separator","aria-orientation":e,...bt(yt("divider",{variant:i,orientation:e}),ht(h?Cy.horizontal:Cy.vertical,s&&(h?Dy.horizontal:Dy.vertical),l),r,c),...d,children:[b.jsx("div",{...ht(h?ca.horizontalLine:ca.verticalLine,ca[i])}),t&&b.jsx("div",{...{0:{className:"x2lah0s xrrkdod x141an7d x1ltkj2j xv1l7n4"},1:{className:"x2lah0s x141an7d x1ltkj2j xv1l7n4 xnjsko4 x8o8v82"}}[!h<<0],children:t}),t&&b.jsx("div",{...ht(h?ca.horizontalLine:ca.verticalLine,ca[i])})]})}Ca.displayName="Divider";const bA=["noopener","noreferrer"];function vA(e,t){if(e!=="_blank")return{target:e,rel:t};const i=t?.split(/\s+/).filter(Boolean)??[];for(const s of bA)i.includes(s)||i.push(s);return{target:e,rel:i.join(" ")}}const ih=120;function _A(e){let t=0,i=0;const s=[];for(const f of e){const d=f.width;if(d?.type==="pixel")i+=d.value;else{const h=d?.value??1,p=d!=null?d.minWidth??ih:0;t+=h,s.push({key:f.key,proportion:h,minWidth:p})}}let l=0;if(t>0)for(const f of s){const d=f.minWidth*t/f.proportion;d>l&&(l=d)}const r=i+l,c=new Map;for(const f of e){const d=f.width,h={};if(d?.type==="pixel")h.width=`${d.value}px`,h.minWidth=`${d.value}px`;else{const p=d?.value??1;if(t>0&&(h.width=`${p/t*100}%`),d!=null){const x=d.minWidth??ih;h.minWidth=`${x}px`}}c.set(f.key,{style:h})}return{columns:c,tableMinWidth:r}}function D1(e=1,t){return{type:"proportional",value:e,minWidth:t?.minWidth??ih}}function Oy(e){return e.length===0?e:e.charAt(0).toUpperCase()+e.slice(1)}function kA(e,t){const i=e[t];return i==null?"":i instanceof Date?i.toISOString():typeof i=="string"||typeof i=="number"||typeof i=="boolean"||typeof i=="bigint"?String(i):""}function SA(e){return e==null?0:typeof e=="string"?e.length:typeof e=="number"||typeof e=="boolean"?String(e).length:0}function TA(e){if(e==null||typeof e!="string"&&typeof e!="number"&&typeof e!="boolean")return 0;const t=String(e);let i=0,s=0;for(let l=0;l<=t.length;l++)l===t.length||t[l]===" "||t[l]==="	"||t[l]===`
129`?(s>i&&(i=s),s=0):s++;return i}const EA=60,wA=8;function AA(e){if(e.length===0)return[];const t=e[0],i=Object.keys(t),s=e.slice(0,Math.min(5,e.length));return i.map(r=>{const c=Oy(r).length;let f=c,d=c;for(const h of s){const p=SA(h[r]);p>f&&(f=p);const x=TA(h[r]);x>d&&(d=x)}return{key:r,headerLen:c,maxContentLen:f,maxWordLen:d}}).map(r=>{const c=r.maxContentLen<=6?1:r.maxContentLen<=15?2:3,f=Math.max(Math.max(r.headerLen,r.maxWordLen)*wA,EA);return{key:r.key,header:Oy(r.key),width:D1(c,{minWidth:f})}})}const Ry={xd8i27l:"xd8i27l",$$css:!0}
129,O1={cell:{kVQacm:"xb3r6kr",kg5iWk:"xlyipyv",khDVqt:"xuxw1ft",ks0D6T:"x1m189uc",$$css:!0}},MA={cell:{kVQacm:"xb3r6kr",kHjlTd:"x1mzt3pk",kTgw9:"x13faqbe",ks0D6T:"x1m189uc",$$css:!0}},R1={compact:{kZCmMZ:"x5uh4xs",kwRFfy:"xbg7gas",$$css:!0},balanced:{kZCmMZ:"x9bi00s",kwRFfy:"xpilulx",$$css:!0},spacious:{kZCmMZ:"x18c6q21",kwRFfy:"x1wzlfcn",$$css:!0}},Lc=A.createContext(null);Lc.displayName="TableContext";const CA={row:{kWkggS:"x1dnou9g",$$css:!0}},DA={row:{kWkggS:"xe9uy6x",k1ekBW:"x15406qy",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0}},OA={row:{kWkggS:"x1dnou9g xe9uy6x",k1ekBW:"x15406qy",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",$$css:!0}};function j1({children:e,xstyle:t,ref:i,...s}){const l=A.use(Lc);if(!l)return b.jsx("tr",{ref:i,...s,...bt(yt("table-row"),ht(Ry,t)),children:e});const r=[];return l.isStriped&&l.hasHover?r.push(OA.row):l.isStriped?r.push(CA.row):l.hasHover&&r.push(DA.row),l.dividers==="rows"||l.dividers,t&&r.push(...t),b.jsx("tr",{ref:i,...s,...bt(yt("table-row"),ht(Ry,...r)),children:e})}j1.displayName="TableRow";function RA(e,t,i){const s=[];return(e.dividers==="rows"||e.dividers==="grid")&&s.push(t),(e.dividers==="columns"||e.dividers==="grid")&&s.push(i),s}function N1(e,t){return t?Array.isArray(t)?[...e,...t]:[...e,t]:e}function $1(){return A.use(Lc)}const jA={compact:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},balanced:{k8WAf4:"xce4md1",kg3NbH:"xrrkdod",kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0},spacious:{k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",kGuDYH:"xjm74w1",kB7OPa:"x9f619",$$css:!0}},NA={cell:{kt9PQ7:"x92x3c3 x1b9ddya",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0}},$A={cell:{kWqL5O:"x1pcaw5z x1lpyac",kSWEuD:"x32b0ac",k26BEO:"xtgwc6q",$$css:!0}},LA={middle:{kXLuUW:"xxymvpz",$$css:!0},top:{kXLuUW:"x16dsc37",$$css:!0},bottom:{kXLuUW:"x3ajldb",$$css:!0}};function L1({children:e,xstyle:t,ref:i,className:s,style:l,...r}){const c=$1();if(!c)return b.jsx("td",{ref:i,...r,...bt(yt("table-cell"),ht(t),s,l),children:e});const f=[jA[c.density],c.textOverflow==="truncate"?O1.cell:MA.cell,R1[c.density],LA[c.verticalAlign],...RA(c,NA.cell,$A.cell)];return b.jsx("td",{ref:i,...r,...bt(yt("table-cell"),ht(...N1(f,t)),s,l),children:e})}L1.displayName="TableCell";const zA={compact:{k8WAf4:"xu0wf1k",kg3NbH:"xf314gf",kGuDYH:"xcr08ib",kB7OPa:"x9f619",$$css:!0},balanced:{k8WAf4:"xce4md1",kg3NbH:"xrrkdod",kGuDYH:"xcr08ib",kB7OPa:"x9f619",$$css:!0},spacious:{k8WAf4:"x8o8v82",kg3NbH:"x1pzlopt",kGuDYH:"xcr08ib",kB7OPa:"x9f619",$$css:!0}},BA={cell:{k63SB2:"x2mo6ok",kMwMTN:"xv1l7n4",k9WMMc:"x1yc453h",$$css:!0}},PA={cell:{kt9PQ7:"x92x3c3",kfdmCh:"x1q0q8m5",kL6WhQ:"xw8gpjh",$$css:!0}},HA={cell:{kWqL5O:"x1pcaw5z x1lpyac",kSWEuD:"x32b0ac",k26BEO:"xtgwc6q",$$css:!0}};function z1({children:e,xstyle:t,ref:i,className:s,style:l,...r}){const c=$1();if(!c)return b.jsx("th",{ref:i,...r,...bt(yt("table-header-cell"),ht(t),s,l),children:e});const f=[BA.cell,zA[c.density],PA.cell,O1.cell,R1[c.density]];return(c.dividers==="columns"||c.dividers==="grid")&&f.push(HA.cell),b.jsx("th",{ref:i,...r,...bt(yt("table-header-cell"),ht(...N1(f,t)),s,l),children:e})}z1.displayName="TableHeaderCell";function B1({ref:e,children:t,xstyle:i}){return b.jsx("thead",{ref:e,...bt(yt("table-header"),ht(i)),children:t})}B1.displayName="TableHeader";function P1({ref:e,children:t,xstyle:i}){return b.jsx("tbody",{ref:e,...bt(yt("table-body"),ht(i)),children:t})}P1.displayName="TableBody";const jy={container:{k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kGNEyG:"x6s0dn4",kjj79g:"xl56j7k",k9WMMc:"x2b8uid",kOIVth:"x18g69wz",k8WAf4:"xmfvnks",kg3NbH:"xm7rs69",$$css:!0},containerCompact:{kOIVth:"x1txdalj",k8WAf4:"x1na6nto",kg3NbH:"x1pzlopt",$$css:!0}};function zc({title:e,description:t,icon:i,actions:s,headingLevel:l=3,isCompact:r=!1,xstyle:c,className:f,style:d,ref:h,...p}){const x=`h${l}`;return b.jsxs("div",{ref:h,role:"status",...bt(yt("empty-state",{variant:r?"compact":null}),ht(jy.container,r&&jy.containerCompact,c),f,d),...p,children:[i!=null&&b.jsx("div",{"aria-hidden":"true",children:i}),b.jsxs("div",{className:"x78zum5 xdt5ytf x6s0dn4 xxc7z9f",children:[A.createElement(x,{0:{className:"x1ghz6dp xjb2p0i x18juvz8 x2mo6ok xf74fhv x1tgivj0"},1:{className:"x1ghz6dp xjb2p0i x2mo6ok xf74fhv x1tgivj0 xcr08ib"}}[!!r<<0],e),t!=null&&b.jsx("p",{...{0:{className:"x1ghz6dp xjb2p0i xjm74w1 x1sodnla xw6l6zx xv1l7n4"},1:{className:"x1ghz6dp xjb2p0i x1sodnla xw6l6zx xv1l7n4 x141an7d"}}[!!r<<0],children:t})]}),s!=null&&b.jsx("div",{...{0:{className:"x78zum5 x1q0g3np x6s0dn4 x1txdalj xcsaf9d"},1:{className:"x78zum5 x6s0dn4 x1txdalj xcsaf9d xdt5ytf"}}[!!r<<0],children:s})]})}zc.displayName="EmptyState";const $d={table:{kzqmXN:"xh8yej3",kLvRdT:"x1mwwwfo",kheTzg:"x1gukg7c",kPzzVL:"x140o2bo",$$css:!0},tableAutoLayout:{kPzzVL:"x1drmoe9",$$css:!0}};function ma(e,t,i,...s){return e.reduce((l,r,c)=>{const f=t(r);if(!f)return l;try{return f(l,...s)}catch(d){return console.error(`[Table] Plugin at index ${c} threw in transform:`,d),l}},i)}const FA=[];function IA(e,t){if(e===t)return!0;
129if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}function UA({item:e,rowIndex:t,rowKey:i,columns:s,plugins:l,textOverflow:r,RowComponent:c,CellComponent:f}){const d=s.map(p=>{const x={};p.align&&(x.style={textAlign:p.align});const y=ma(l,T=>T.transformBodyCell,{htmlProps:x,styles:[]},p,e),v=!p.renderCell,_=v?kA(e,p.key):p.renderCell?.(e)??null;let S;return v&&r==="truncate"&&typeof _=="string"&&_.length>0?S=b.jsx(Yt,{type:"body",maxLines:1,children:_}):S=_,b.jsx(f,{...y.htmlProps,xstyle:y.styles,children:S},p.key)}),h=ma(l,p=>p.transformBodyRow,{htmlProps:{},styles:[],children:b.jsx(b.Fragment,{children:d})},e,t);return b.jsx(c,{ref:h.ref,...h.htmlProps,xstyle:h.styles,children:h.children},i)}function qA(e,t){if(e.rowKey!==t.rowKey||e.rowIndex!==t.rowIndex||e.columns!==t.columns||e.plugins!==t.plugins||e.textOverflow!==t.textOverflow||e.RowComponent!==t.RowComponent||e.CellComponent!==t.CellComponent)return!1;if(e.item===t.item)return!0;const i=e.item,s=t.item,l=Object.keys(s);for(const r of l)if(i[r]!==s[r])return!1;return!0}const VA=A.memo(UA,qA);function YA({data:e,columns:t,idKey:i,plugins:s,children:l,tableProps:r,textOverflow:c="wrap",scrollWrapper:f,emptyState:d,ref:h}){const p=s??FA,x=j1,y=L1,v=z1,_=t??(e?AA(e):[]),S=ma(p,K=>K.transformColumns,_),T=A.useRef(S);IA(T.current,S)||(T.current=S);const w=T.current,M=_A(w),D=ma(p,K=>K.transformTable,{htmlProps:{...r},styles:l?[$d.table,$d.tableAutoLayout]:[$d.table]}),N=w.map(K=>{const et=K.header??K.key,nt={"data-column-key":K.key};K.align&&(nt.style={textAlign:K.align});const ut=ma(p,at=>at.transformHeaderCell,{htmlProps:nt,styles:[],content:et},K),G=M.columns.get(K.key)?.style??{},z=ut.htmlProps.style,C={...ut.htmlProps,style:z?{...G,...z}:G},$=ut.content??et,W=typeof $=="string"&&$.length>0?{title:$}:{},{before:Q,after:O,overlay:X,below:it}=ut,st=Q!=null||O!=null||X!=null||it!=null;return b.jsx(v,{...C,...W,xstyle:ut.styles,children:st?b.jsxs(b.Fragment,{children:[Q,O!=null?b.jsxs("div",{className:"x3nfvp2 x6s0dn4 xzye2dw xeuugli",children:[$,O]}):$,X,it]}):$},K.key)}),j=ma(p,K=>K.transformHeaderRow,{htmlProps:{},styles:[],children:b.jsx(b.Fragment,{children:N})}),P=e!=null&&e.length>0,I=w.length>0,q={...D.htmlProps.style,minWidth:M.tableMinWidth>0?`${M.tableMinWidth}px`:void 0};let Y=b.jsx("table",{ref:h,...D.htmlProps,...bt(yt("base-table"),ht(...D.styles),D.htmlProps.className),style:q,children:l||b.jsxs(b.Fragment,{children:[I&&b.jsx(B1,{children:b.jsx(x,{...j.htmlProps,xstyle:j.styles,children:j.children})}),b.jsx(P1,{children:P?e.map((K,et)=>{const nt=i==null?et:typeof i=="function"?i(K):String(K[i]);return b.jsx(VA,{item:K,rowIndex:et,rowKey:nt,columns:w,plugins:p,textOverflow:c,RowComponent:x,CellComponent:y},nt)}):e!=null&&d!==!1&&b.jsx("tr",{children:b.jsx("td",{colSpan:w.length,children:d??b.jsx(zc,{title:"No data",isCompact:!0})})})})]})});f&&(Y=b.jsx(f,{children:Y}));for(let K=p.length-1;K>=0;K--){const et=p[K];if(et.transformTableContext)try{Y=et.transformTableContext(Y)}catch(nt){console.error("[Table] Plugin threw in transformTableContext:",nt)}}return Y}const H1=YA;H1.displayName="BaseTable";const F1=["columnSettings","sort","selection","pagination"],Ny=new Map(F1.map((e,t)=>[e,t]));function GA(e){const t=F1.length;return e.sort(([i],[s])=>{const l=Ny.get(i)??t,r=Ny.get(s)??t;return l-r})}const Br=new Set(["transformColumns","transformTable","transformHeaderRow","transformHeaderCell","transformBodyRow","transformBodyCell","transformTableContext"]);function WA(e,t){const i=Object.keys(t);for(const l of i)Br.has(l)||console.warn(`[Table] Plugin "${e}" has unknown key "${l}". Valid keys: ${[...Br].join(", ")}. This key will be ignored.`);for(const l of i)if(Br.has(l)){const r=t[l];r!=null&&typeof r!="function"&&console.warn(`[Table] Plugin "${e}" has non-function value for "${l}" (got ${typeof r}). Transform will be skipped.`)}i.some(l=>Br.has(l)&&typeof t[l]=="function")||console.warn(`[Table] Plugin "${e}" has no transform methods. It will be included in the pipeline but won't do anything.`)}function XA(e,t){const i=A.useRef(null);if(i.current!=null){const r=i.current;if(r.basePlugins===e&&r.userPlugins===t)return r.result;if(r.basePlugins===e&&KA(r.userPlugins,t))return r.userPlugins=t,r.result}const s=t?GA(Object.entries(t)).map(([,r])=>r):[],l=[...e,...s];if(t)for(const[r,c]of Object.entries(t))WA(r,c);return i.current={basePlugins:e,userPlugins:t,result:l},l}function KA(e,t){if(e===t)return!0;
129if(e==null||t==null)return!1;const i=Object.keys(e),s=Object.keys(t);if(i.length!==s.length)return!1;for(const l of i)if(e[l]!==t[l])return!1;return!0}const ZA={base:{kMv6JI:"xjb2p0i",kMwMTN:"x1tgivj0",$$css:!0}};function QA({children:e}){return b.jsx("div",{...bt(yt("table-scroll-wrapper"),{className:"xw2csxc x5lxg6s xojxgvx x1fcf3bl xx6qvi6 xkibk3 xlayyun"}),children:e})}function JA(){return{transformTable(e){const t=e.htmlProps.className??"",i=yt("table").className;return{...e,htmlProps:{...e.htmlProps,className:t?`${t} ${i}`:i},styles:[...e.styles,ZA.base]}}}}function tM({density:e="balanced",dividers:t="rows",isStriped:i=!1,hasHover:s=!1,verticalAlign:l="middle",textOverflow:r="wrap",plugins:c,columns:f,data:d,ref:h,...p}){const x=A.useMemo(()=>JA(),[]),y=A.useMemo(()=>[x],[x]),v=XA(y,c),_=A.useMemo(()=>({density:e,dividers:t,isStriped:i,hasHover:s,verticalAlign:l,textOverflow:r}),[e,t,i,s,l,r]);return b.jsx(Lc,{value:_,children:b.jsx(H1,{ref:h,data:d,columns:f,plugins:v,textOverflow:r,scrollWrapper:QA,...p})})}const I1=tM;I1.displayName="Table";const Fn={base:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",kOIVth:"x1lsbc85",kMv6JI:"xjb2p0i",kGuDYH:"x1qlqyl8",kLWn49:"x15bjb6t",k63SB2:"x1pd3egz",kybGjl:"x1hl2dhg x4ohgrr",kkrTdU:"x1ypdohk",k1ekBW:"x1mpt4pi",kIyJzY:"xuedmi6",kAMwcw:"xlr8y92",kI3sdo:"x17nn4n9",kInvED:"x1wfwxd8 x7s97pk",$$css:!0},buttonReset:{kWkggS:"xjbqb8w",ksu8eU:"xng3xce",kmVPX3:"x1717udv",kfzvcC:"x67bb7w",kVAEAm:"x1n2onr6",$$css:!0},hasUnderline:{kybGjl:"x1bvjpef",$$css:!0},disabled:{kkrTdU:"x1h6gzvc",kSiTet:"xbyyjgo",kfzvcC:"x47corl",$$css:!0},standalone:{kGuDYH:"xjm74w1",kLWn49:"xw6l6zx",$$css:!0}},$y={primary:{kMwMTN:"x1tgivj0",$$css:!0},secondary:{kMwMTN:"xv1l7n4",$$css:!0},disabled:{kMwMTN:"xnbbluu",$$css:!0},placeholder:{kMwMTN:"xv1l7n4",$$css:!0},active:{kMwMTN:"xjse4m1",$$css:!0},inherit:{kMwMTN:"x1heor9g",$$css:!0}};function us({as:e,label:t,href:i,hasUnderline:s=!1,isDisabled:l=!1,isExternalLink:r=!1,target:c,onClick:f,tooltip:d,isStandalone:h=!1,type:p="body",size:x,weight:y,color:v="active",display:_="inline",maxLines:S=0,children:T,rel:w,xstyle:M,className:D,style:N,ref:j,...P}){const I=$c(e),q=pA({href:i,onClick:f,isDisabled:l}),{target:Y,rel:K}=vA(r?"_blank":c,w),et=q==="button"||q==="inert"&&i==null,nt=b.jsxs(b.Fragment,{children:[b.jsx(Yt,{type:p,size:x,weight:y,color:v,display:_,maxLines:S,children:T}),r&&!et&&b.jsx(oe,{icon:"externalLink",size:"xsm",color:"inherit"})]});let ut;return et?ut=b.jsx("button",{ref:j,type:"button",onClick:f,"aria-label":t||void 0,"aria-disabled":l||void 0,tabIndex:l?-1:void 0,disabled:l,...bt(yt("link",{color:v}),ht(Fn.base,Fn.buttonReset,$y[v],s&&Fn.hasUnderline,h&&Fn.standalone,l&&Fn.disabled,M),D,N),...P,children:nt}):ut=b.jsx(I,{ref:j,href:i,target:Y,rel:K,onClick:f,"aria-label":t||void 0,"aria-disabled":l||void 0,tabIndex:l?-1:void 0,...bt(yt("link",{color:v}),ht(Fn.base,$y[v],s&&Fn.hasUnderline,h&&Fn.standalone,l&&Fn.disabled,M),D,N),...P,children:nt}),d?b.jsx(fo,{content:d,placement:"above",children:ut}):ut}us.displayName="Link";const sh=A.createContext(null);sh.displayName="NavHeadingCloseContext";const eM=A.createContext(null);eM.displayName="NavHeadingMenuContext";const nM=1e3,iM=100,Ly={root:{kWkggS:"xprdx6m x1r1p5j5",kSiTet:"xvpkmg4",$$css:!0},animate:{kILWW9:"xpz12be",k44tkh:"xqgcaz",ko0y90:"xa4qsjk",kKVMdj:"xeuoslp",kyAemX:"x193epu2",$$css:!0}},sM={0:{kaIpWk:"xwksslw",$$css:!0},1:{kaIpWk:"xx3sua9",$$css:!0},2:{kaIpWk:"xh6dtrn",$$css:!0},3:{kaIpWk:"x1hviunn",$$css:!0},4:{kaIpWk:"x1hviunn",$$css:!0},none:{kaIpWk:"x2u8bby",$$css:!0},rounded:{kaIpWk:"xjspbzw",$$css:!0}},aM={kKxzle:"xvo38ju",$$css:!0},zy={animationDelay:e=>[aM,{"--x-animationDelay":(t=>typeof t=="number"?t+"ms":t??void 0)(`${nM+iM*e}ms`)}],dimensions:(e,t)=>[{kzqmXN:(typeof e=="number"?`${e}px`:e)!=null?"x5lhr3w":typeof e=="number"?`${e}px`:e,kZKoxP:(typeof t=="number"?`${t}px`:t)!=null?"x16ye13r":typeof t=="number"?`${t}px`:t,$$css:!0},{"--x-width":(i=>typeof i=="number"?i+"px":i??void 0)(typeof e=="number"?`${e}px`:e),"--x-height":(i=>typeof i=="number"?i+"px":i??void 0)(typeof t=="number"?`${t}px`:t)}]};
129function yc({width:e="100%",height:t="100%",radius:i=3,index:s=0,"data-testid":l,xstyle:r,className:c,style:f,ref:d,...h}){return b.jsx("div",{ref:d,"data-testid":l,...bt(yt("skeleton"),ht(Ly.root,Ly.animate,sM[i],zy.dimensions(e,t),zy.animationDelay(s),r),c,f),...h})}yc.displayName="Skeleton";const Pl=A.createContext("start");Pl.displayName="TopNavSlotContext";const In={dialog:{kVAEAm:"xixxii4",kogj98:"x1ghz6dp",kmVPX3:"x1717udv",ks0D6T:"x1x1rfll",kskxy:"x7ab17h",kpwlN0:"x10a8y8t",kzqmXN:"xn9wirt",kZKoxP:"xtdtrs8",kWkggS:"xjbqb8w",kVQacm:"xb3r6kr",kZeWKH:"xish69e",kFalU9:"x5ve5x3",kI3sdo:"x1a2a7pz",k1xSpc:"x1s85apg",$$css:!0},open:{k1xSpc:"x78zum5",$$css:!0},backdrop:{kGyWv1:"xnixb3f",kba3nw:"x1abwkk1",k5sjJv:"xph5o2a",kND0Po:"x167zut7",k9an0g:"xft5bk6",kb4ib:"x15h3t91",kA5Tbj:"x1viac0w",$$css:!0},backdropOpen:{k5sjJv:"xb3n6bw",$$css:!0},drawer:{kVAEAm:"x10l6tqk",k87sOh:"x13vifvy",krVfgx:"x1ey2m1c",k1xSpc:"x78zum5",kXwgrk:"xdt5ytf",kWkggS:"x10xzikg",kB7OPa:"x9f619",kVQacm:"xb3r6kr",k1ekBW:"x11xpdln",kIyJzY:"x80gvsz",kAMwcw:"xlr8y92",kI3sdo:"x1a2a7pz",k6CgDc:"xzg1mie",$$css:!0},drawerStart:{kLqNvP:"x1o0tod",ke9TFa:"xw8tdv1",k8ry5P:"x18b5jzi",kBCPoo:"x1gejf6u",k3aq6I:"x5i6ehr xttggg",$$css:!0},drawerStartOpen:{k3aq6I:"xbryuvx",$$css:!0},drawerEnd:{kt4wiu:"xtijo5x",k2ei4v:"xgbv0en",kVhnKS:"x1t7ytsu",kGJrpR:"x1j92z86",k3aq6I:"xumwmo6 x1df3fe5",$$css:!0},drawerEndOpen:{k3aq6I:"xbryuvx",$$css:!0}},lM={kzqmXN:"xn9wirt",ks0D6T:"xf68679",$$css:!0},oM={width:e=>[lM,{"--x-maxWidth":(t=>typeof t=="number"?t+"px":t??void 0)(`${e}px`)}]};function U1({isOpen:e,onOpenChange:t,children:i,header:s,width:l=320,side:r="auto",label:c,"data-testid":f,xstyle:d,className:h,style:p,ref:x}){const y=jh(),v=e??y.isMobileNavOpen,_=A.useMemo(()=>t??(P=>{P?y.openMobileNav():y.closeMobileNav()}),[t,y]),S=A.useRef(null),T=A.useRef(null),[w,M]=A.useState(r==="auto"?"end":r);A.useEffect(()=>{const P=S.current;if(P){if(T.current&&(clearTimeout(T.current),T.current=null),v){if(r==="auto"){const I=document.activeElement;if(I&&I!==document.body){const q=I.getBoundingClientRect(),Y=q.left+q.width/2;M(Y<window.innerWidth/2?"start":"end")}}else M(r);P.open||P.showModal(),document.documentElement.style.overflow="clip"}else if(P.open){document.documentElement.style.overflow="";const I=window.matchMedia("(prefers-reduced-motion: reduce)").matches?10:250;T.current=setTimeout(()=>{P.close()},I)}return()=>{T.current&&clearTimeout(T.current),document.documentElement.style.overflow=""}}},[v,r]);const D=A.useCallback(P=>{P.preventDefault(),_(!1)},[_]),N=A.useCallback(P=>{P.target===P.currentTarget&&_(!1)},[_]),j=w==="start";return b.jsx("dialog",{ref:_a(x,S),"data-testid":f,"aria-label":c??(typeof s=="string"?s:"Navigation"),onClick:N,onCancel:D,...bt(yt("mobile-nav",{side:w}),ht(In.dialog,v&&In.open,In.backdrop,v&&In.backdropOpen,d)),children:b.jsxs("div",{tabIndex:-1,...ht(In.drawer,oM.width(l),j&&In.drawerStart,j&&v&&In.drawerStartOpen,!j&&In.drawerEnd,!j&&v&&In.drawerEndOpen),children:[b.jsxs("div",{...{0:{className:"x78zum5 x6s0dn4 x1qughib x1k15mir xf314gf x2lah0s x92x3c3 x1q0q8m5 xw8gpjh"},1:{className:"x78zum5 x6s0dn4 x1k15mir xf314gf x2lah0s x92x3c3 x1q0q8m5 xw8gpjh x13a6bvl"}}[!s<<0],children:[typeof s=="string"?b.jsx("span",{className:"x11g1kdw",children:b.jsx(ho,{level:2,children:s})}):s??null,b.jsx(ms,{variant:"ghost",label:"Close navigation",icon:b.jsx(oe,{icon:"close",color:"inherit"}),onClick:()=>_(!1),isIconOnly:!0})]}),b.jsx("div",{className:"x98rzlu x1odjw0f x6ikm8r xish69e xx69xxh xf314gf xce4md1",children:i})]})})}U1.displayName="MobileNav";const Pr={base:{kGNEyG:"x6s0dn4",kzqmXN:"xh8yej3",kmVPX3:"xlsj2fj",kB7OPa:"x9f619",$$css:!0},baseFlex:{k1xSpc:"x78zum5",$$css:!0},baseGrid:{k1xSpc:"xrvj5dj",kumcoG:"x134kloy",$$css:!0},mobileBar:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kzqmXN:"xh8yej3",kmVPX3:"xlsj2fj",kB7OPa:"x9f619",$$css:!0}};function q1({heading:e,startContent:t,children:i,centerContent:s,endContent:l,label:r,xstyle:c,className:f,style:d,ref:h,...p}){const x=Lw(),y=zw(),{hasAutoToggle:v}=jh(),_=t??i,S=s!=null,T=_!=null||s!=null,w=T||y!=null;return x==="mobile-bar"?b.jsxs("nav",{ref:h,role:"navigation","aria-label":r,...bt(yt("top-nav",{mode:"mobile-bar"}),ht(Pr.mobileBar,c),f,d),...p,children:[e&&b.jsx("div",{className:"x78zum5 x6s0dn4 x2lah0s",children:e}),b.jsxs("div",{className:"x78zum5 x6s0dn4 xzye2dw xvc5jky",children:[l,w&&v&&b.jsx(k1,{})]})]}):x==="drawer"?!T&&!y?null:b.jsxs(U1,{header:e,children:[T&&b.jsxs("div",{className:"x78zum5 xdt5ytf x1lsbc85",children:[_,s]}),T&&y&&b.jsx("div",{className:"x1g06x3t",children:b.jsx(Ca,{})}),y&&b.jsx("div",{children:y})]}):b.jsxs("nav",{ref:h,role:"navigation","aria-label":r,...bt(yt("top-nav"),ht(Pr.base,S?Pr.baseGrid:Pr.baseFlex,c),f,d),...p,children:[b.jsxs("div",{className:"x78zum5 x6s0dn4 x18g69wz x845mor xeuugli",children:[e&&b.jsx("div",{className:"x78zum5 x6s0dn4 x2lah0s",children:e}),_&&b.jsx(Pl,{value:"start",children:b.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw",children:_})})]}),S&&b.jsx(Pl,{value:"center",children:b.jsx("div",{className:"x78zum5 x6s0dn4 xl56j7k xzye2dw",children:s})}),S?b.jsx("div",{className:"x78zum5 x6s0dn4 x13a6bvl xzye2dw",children:b.jsx(Pl,{value:"end",children:l})}):l&&b.jsx("div",{className:"x78zum5 x6s0dn4 xzye2dw x2lah0s xvc5jky",children:b.jsx(Pl,{value:"end",children:l})})]})}q1.displayName="TopNav";function rM(e){const{show:t,hide:i,isOpen:s,isEnabled:l,showDelay:r=150,hideDelay:c=200}=e,f=e1("(hover: hover)"),d=A.useRef(null),h=A.useRef(null),p=A.useRef(null),x=A.useRef(!1),y=A.useRef(!1),v=A.useRef(s);v.current&&!s&&(x.current=!1),v.current=s;const _=A.useCallback(()=>{d.current&&(clearTimeout(d.current),d.current=null),h.current&&(clearTimeout(h.current),h.current=null)},[]),{listRef:S,handleKeyDown:T,focusFirst:w}=Uw({onEscape:()=>{_(),i()}});A.useEffect(()=>()=>_(),[_]);const M=A.useCallback(()=>{_(),s?(y.current=!0,i()):(y.current=!1,t(),requestAnimationFrame(()=>w()))},[s,_,t,i,w]),D=A.useCallback(()=>
129{if(f){if(y.current){y.current=!1;return}x.current=!0,_(),r>0?d.current=setTimeout(()=>{t({skipAutoFocus:!0})},r):t({skipAutoFocus:!0})}},[f,_,t,r]),N=A.useCallback(()=>{x.current&&(_(),h.current=setTimeout(()=>{i()},c))},[_,i,c]),j=A.useCallback(()=>{_()},[_]),P=A.useCallback(K=>{p.current=K},[]),I=A.useCallback(()=>{},[]),q=A.useCallback(K=>{},[]),Y=A.useCallback(K=>{},[]);return l?{triggerProps:{onClick:M,onMouseEnter:D,onMouseLeave:N},contentProps:{onMouseEnter:j,onMouseLeave:N,onKeyDown:T},menuRef:S,focusFirst:w,setTriggerEl:P}:{triggerProps:{onClick:I,onMouseEnter:I,onMouseLeave:I},contentProps:{onMouseEnter:I,onMouseLeave:I,onKeyDown:Y},menuRef:S,focusFirst:w,setTriggerEl:q}}const cn={root:{k1xSpc:"x78zum5",kGNEyG:"x6s0dn4",kOIVth:"x1txdalj",kAzted:"xkoleio",kZCmMZ:"x12gdq22 x1betex2",kwRFfy:"x1djylfy",k8WAf4:"xt970qd",kB7OPa:"x9f619",kybGjl:"x1hl2dhg",kMwMTN:"x1tgivj0",kkrTdU:"xt0e3qv",$$css:!0},menuTrigger:{kkrTdU:"x1ypdohk",kaIpWk:"xh6dtrn",kMzoRj:"xc342km",ksu8eU:"xng3xce",kWkggS:"xjbqb8w",kMv6JI:"xjb2p0i",kGuDYH:"x1qlqyl8",k63SB2:"x1sodnla",k9WMMc:"x1yc453h",$$css:!0},popoverOverlap:{k7Eaqz:"x8wyhu6",keoZOQ:"xvyqdj1",keTefX:"x1qfufaz",$$css:!0}};function V1({as:e,logo:t,heading:i,headingHref:s,href:l,superheading:r,superheadingHref:c,subheading:f,subheadingHref:d,headerEndContent:h,menu:p,xstyle:x,className:y,style:v,"data-testid":_,ref:S,...T}){const w=$c(e),M=s??l,D=A.useRef(null),N=cA({dialogLabel:"Navigation menu",hasCloseButton:!1}),j=A.useMemo(()=>({closeMenu:N.hide}),[N.hide]),{triggerProps:P,contentProps:I,menuRef:q,setTriggerEl:Y}=rM({show:N.show,hide:N.hide,isOpen:N.isOpen,isEnabled:!!p,showDelay:0}),K=_a(D,Y,S,p?N.triggerRef:void 0),et=!!p,nt=!!(M||c||d),ut=!!p&&!nt,G=!!M&&!p&&!c&&!d,z=Q=>b.jsxs("span",{className:"x78zum5 xdt5ytf xeuugli",children:[r&&(nt&&c&&p?b.jsx(us,{href:c,onClick:O=>O.stopPropagation(),color:"secondary",size:"xsm",children:r}):b.jsx("span",{className:"x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft",children:r})),b.jsxs("span",{className:"x78zum5 x6s0dn4 xzye2dw",children:[nt&&M&&p?b.jsx(w,{href:M,onClick:O=>O.stopPropagation(),className:"x18juvz8 x2mo6ok xf74fhv x1hl2dhg x1heor9g xb3r6kr xlyipyv xuxw1ft",children:i}):b.jsx("span",{className:"x18juvz8 x2mo6ok xf74fhv x1tgivj0 x1hl2dhg xb3r6kr xlyipyv xuxw1ft",children:i}),Q]}),f&&(nt&&d&&p?b.jsx(us,{href:d,onClick:O=>O.stopPropagation(),color:"secondary",size:"xsm",children:f}):b.jsx("span",{className:"x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft",children:f}))]}),C=et&&b.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xl56j7k xy8csz5 ximsjs8 xv9yike",children:Bl("chevronDown")}),$=h&&b.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xvc5jky",children:h}),W=b.jsxs("button",{type:"button",className:"x78zum5 x6s0dn4 x1txdalj xh8yej3 xjbqb8w xjb2p0i x1qlqyl8 x1heor9g x1yc453h xkoleio x12gdq22 x1betex2 x1djylfy xt970qd xcsaf9d x1p37lm5 xhrcg97 x1ypdohk",onClick:P.onClick,children:[t&&b.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xl56j7k",children:t}),z(b.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xl56j7k xy8csz5 ximsjs8 xv9yike x19jd1h0",children:Bl("chevronDown")}))]});if(!i&&!p){const Q=M?w:"div";return b.jsx(Q,{ref:S,href:M,"data-testid":_,...bt(yt("top-nav-heading"),ht(cn.root,!!M&&cn.menuTrigger,x),y,v),...T,children:t&&b.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xl56j7k",children:t})})}return G&&M?b.jsxs(w,{ref:S,href:M,"data-testid":_,...bt(yt("top-nav-heading"),ht(cn.root,cn.menuTrigger,x),y,v),...T,children:[t&&b.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xl56j7k",children:t}),z(),$,C]}):ut?b.jsxs(b.Fragment,{children:[b.jsxs("div",{ref:K,"data-testid":_,...P,...bt(yt("top-nav-heading"),ht(cn.root,cn.menuTrigger,x),y,v),children:[t&&b.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xl56j7k",children:t}),z(b.jsx("button",{type:"button","aria-label":"Open menu",onClick:Q=>{Q.stopPropagation(),P.onClick()},...N.triggerProps,className:"x2lah0s x78zum5 x6s0dn4 xl56j7k xy8csz5 ximsjs8 xv9yike x1ypdohk xh6dtrn xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x1sodnla x1yc453h xe9uy6x",children:Bl("chevronDown")})),$]}),N.render(b.jsxs("div",{ref:q,role:"menu",className:"x9epnlk xb3r6kr",...I,children:[W,b.jsx(sh,{value:j,children:p})]}),{placement:"below",alignment:"start",xstyle:cn.popoverOverlap})]}):p&&nt?b.jsxs(b.Fragment,{children:[b.jsxs("div",{ref:K,"data-testid":_,...P,...bt(yt("top-nav-heading"),ht(cn.root,x),y,v),children:[t&&(M?b.jsx(w,{href:M,onClick:Q=>Q.stopPropagation(),className:"x2lah0s x78zum5 x6s0dn4 xl56j7k",children:t}):b.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xl56j7k",children:t})),z(et?b.jsx("button",{type:"button","aria-label":"Open menu",onClick:Q=>{Q.stopPropagation(),P.onClick()},...N.triggerProps,className:"x2lah0s x78zum5 x6s0dn4 xl56j7k xy8csz5 ximsjs8 xv9yike x1ypdohk xh6dtrn xc342km xng3xce xjbqb8w xjb2p0i x1qlqyl8 x1sodnla x1yc453h xe9uy6x",children:Bl("chevronDown")}):void 0),$]}),N.render(b.jsxs("div",{ref:q,role:"menu",className:"x9epnlk xb3r6kr",...I,children:[W,b.jsx(sh,{value:j,children:p})]}),{placement:"below",alignment:"start",xstyle:cn.popoverOverlap})]}):nt&&!G?b.jsxs("div",{ref:S,"data-testid":_,...bt(yt("top-nav-heading"),ht(cn.root,x),y,v),...T,children:[t&&(M?b.jsx(w,{href:M,className:"x2lah0s x78zum5 x6s0dn4 xl56j7k",children:t}):b.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xl56j7k",children:t})),b.jsxs("span",{className:"x78zum5 xdt5ytf xeuugli",children:[r&&(c?b.jsx(us,{href:c,color:"secondary",size:"xsm",children:r}
129):b.jsx("span",{className:"x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft",children:r})),M?b.jsx(us,{href:M,color:"primary",weight:"semibold",children:i}):b.jsx("span",{className:"x18juvz8 x2mo6ok xf74fhv x1tgivj0 x1hl2dhg xb3r6kr xlyipyv xuxw1ft",children:i}),f&&(d?b.jsx(us,{href:d,color:"secondary",size:"xsm",children:f}):b.jsx("span",{className:"x141an7d x1ltkj2j xv1l7n4 x1hl2dhg xb3r6kr xlyipyv xuxw1ft",children:f}))]}),$,C]}):b.jsxs("div",{ref:S,"data-testid":_,...bt(yt("top-nav-heading"),ht(cn.root,x),y,v),...T,children:[t&&b.jsx("span",{className:"x2lah0s x78zum5 x6s0dn4 xl56j7k",children:t}),z(),$,C]})}V1.displayName="TopNavHeading";const cM="https://astryx.atmeta.com/";function uM(){const e=new Date().getFullYear();return b.jsxs("footer",{children:[b.jsx(Ca,{}),b.jsxs("div",{className:"x6s0dn4 x40hh3e x78zum5 x1a02dak x1qughib xvueqy4 x1yjoq1l xr9q8rw x4l9tsp x3pnbk8",children:[b.jsx(us,{href:cM,isExternalLink:!0,type:"supporting",children:"Built using Astryx Design System"}),b.jsx(Yt,{color:"secondary",type:"supporting",children:`© Meta ${e}`})]})]})}var lt=(e=>(e.ADMIN_CENTER="admin-center",e.ADS_MANAGER="ads-manager",e.ADS_TRANSPARENCY="ads-transparency",e.AUDIENCE_NETWORK="audience-network",e.CATALOG="catalog",e.CTX="ctx",e.DATA_TRANSPARENCY="data-transparency",e.DEVICE_MANAGER="device-manager",e.FBS="fbs",e.FACEBOOK_LOGIN="facebook-login",e.FB_IG_SHOPS="fb-ig-shops",e.GRAPH_API="graph-api",e.IG_BOOST="ig-boost",e.IG_MESSAGING="ig-messenger",e.MARKETING_API="marketing-api",e.MESSENGER="messenger",e.WHATSAPP_BUSINESS_API="whatsapp-business-api",e.WORKPLACE="workplace",e.META="meta",e))(lt||{}),Hl=(e=>(e.ADS="Ads",e.BUSINESS_TOOLS="Business Tools",e.DEVELOPER_PLATFORM="Developer Platform",e.INFRASTRUCTURE="Infrastructure",e.TRANSPARENCY_TOOLS="Transparency Tools",e))(Hl||{});const Y1=!1,fM="metastatus.com",G1=`https://${fM}`,dM=[lt.WHATSAPP_BUSINESS_API,lt.MESSENGER,lt.IG_MESSAGING];function hM(e){return"/data"}function gM(){return typeof window<"u"&&new URLSearchParams(window.location.search).get("data_src")==="v2"?"/data_v2":hM()}const Ld=gM(),pM=90,mM={[lt.WORKPLACE]:"https://www.workplace.com/legal/FB_Work_Privacy"},xM=[lt.WORKPLACE,lt.META],W1=[...xM],yM={...Y1,[Hl.ADS]:[lt.ADS_MANAGER,lt.MARKETING_API,lt.CTX,lt.CATALOG,lt.AUDIENCE_NETWORK,lt.IG_BOOST,lt.FB_IG_SHOPS],[Hl.BUSINESS_TOOLS]:[lt.DEVICE_MANAGER,lt.FBS,lt.ADMIN_CENTER,lt.WORKPLACE],[Hl.DEVELOPER_PLATFORM]:[lt.FACEBOOK_LOGIN,lt.GRAPH_API,lt.IG_MESSAGING,lt.MESSENGER,lt.WHATSAPP_BUSINESS_API],[Hl.TRANSPARENCY_TOOLS]:[lt.ADS_TRANSPARENCY,lt.DATA_TRANSPARENCY]},X1=Object.values(lt).map(e=>({org:String(e),path:String(e)})).concat([{path:"adsmanager",org:lt.ADS_MANAGER},{path:"work-accounts",org:lt.ADMIN_CENTER}]).filter(e=>![...W1].includes(e.org)),bc={[lt.IG_MESSAGING]:"https://developers.facebook.com/docs/instagram-platform/support",[lt.MESSENGER]:"https://developers.facebook.com/docs/messenger-platform/support-resources",[lt.WHATSAPP_BUSINESS_API]:"https://developers.facebook.com/docs/whatsapp/support-api-status-page"},bM={[lt.IG_MESSAGING]:"Instagram Platform is considered available unless it has been unable to send or receive messages for at least 10 consecutive minutes.",[lt.MESSENGER]:"Messenger Platform is considered available unless it has been unable to send or receive messages for at least 10 consecutive minutes.",[lt.WHATSAPP_BUSINESS_API]:"WhatsApp Business Platform is considered available unless it has been unable to send or receive messages for at least 10 consecutive minutes."},K1={[lt.IG_MESSAGING]:"Latency measures how long it takes to send one-to-one inbound and outbound messages, starting when a message is received by the Instagram Platform and ending when it is ready for pickup by the business or the client.",[lt.MESSENGER]:"Latency measures how long it takes to send one-to-one inbound and outbound messages, starting when a message is received by the Messenger Platform and ending when it is ready for pickup by the business or the client.",[lt.WHATSAPP_BUSINESS_API]:"Latency measures how long it takes to send one-to-one inbound and outbound messages, starting when a message is received by the WhatsApp Business Platform and ending when it is ready for pickup by the business or the client."},Zn=Object.freeze({DARK_BLUE:"#6F88C6",LIGHT_BLUE:"#D4DEFC",DARK_GREEN:"#63BE09",DARK_YELLOW:"#FFBA00",DARK_RED:"#FA383E"}),Z1=.999,Q1=.99,vM="No known issues",_M="How we define availability",J1="How we define latency",ah="Learn more";class ka{static async getResponse(t,i,s={cache:"no-cache"}
129){const r=new URL(`${t}`,G1);return i&&(r.search=new URLSearchParams(i).toString()),fetch(r,s).then(c=>c.ok?c.json():c.json().then(f=>Promise.reject(new Error(f.message||f.Message))))}static async getOrgs(){return this.getResponse(`${Ld}/orgs.json`)}static async getActiveOutages(t){return this.getResponse(`${Ld}/outages/${t}.json`)}static async getHistoricalOutages(t){return this.getResponse(`${Ld}/outages/${t}.history.json`)}static async getOrg(t){return this.getOrgs().then(i=>{for(const s of i)if(s.id===t)return s;return Promise.reject(new Error(`Organization ${t}, does not exist.`))})}static async getS3MetricsData(t,i){return this.getResponse(`/metrics/${t}/${i}.json`).catch(s=>(console.warn(s.message),[]))}}var Ct=(e=>(e.UNKNOWN="Unknown",e.OPERATIONAL="No known issues",e.RESOLVED="Resolved",e.RECOVERING="Recovering from disruptions",e.SOME_DISRUPTIONS="Some disruptions",e.MAJOR_DISRUPTIONS="Major disruptions",e.LOW_DISRUPTIONS="Low disruptions",e.MEDIUM_DISRUPTIONS="Medium disruptions",e.HIGH_DISRUPTIONS="High disruptions",e))(Ct||{});const By=["Unknown","No known issues","Resolved","Recovering from disruptions","Some disruptions","Low disruptions","Medium disruptions","Major disruptions","High disruptions"];var pa=(e=>(e.CLOUD_API="cloud-api",e.PLATFORM_STATUS="platform-status",e.MMLITE_API="mmlite-api",e.DIRECT_SEND="direct-send",e))(pa||{}),wt=(e=>(e.DEFAULT="metrics",e.UPTIME_DAILY="uptime_daily",e.CLOUD_API_UPTIME_DAILY="cloudapi_uptime_daily",e.LATENCY_LAST_MONTH_P90="event_tagging_latency_last_month_p90_s3",e.LATENCY_LAST_MONTH_P99="event_tagging_latency_last_month_p99_s3",e.LATENCY_PAST_31_DAYS_P90="event_tagging_latency_last_31_days_p90_s3",e.LATENCY_PAST_31_DAYS_P99="event_tagging_latency_last_31_days_p99_s3",e.MMLITE_UPTIME_DAILY="mmlite_uptime_daily",e.MMLITE_LATENCY_LAST_MONTH_P90="mmlite_event_tagging_latency_last_month_p90_s3",e.MMLITE_LATENCY_LAST_MONTH_P99="mmlite_event_tagging_latency_last_month_p99_s3",e.MMLITE_LATENCY_PAST_31_DAYS_P90="mmlite_event_tagging_latency_last_31_days_p90_s3",e.MMLITE_LATENCY_PAST_31_DAYS_P99="mmlite_event_tagging_latency_last_31_days_p99_s3",e.DIRECT_SEND_UPTIME_DAILY="directsend_uptime_daily",e.DIRECT_SEND_LATENCY_LAST_MONTH_P90="directsend_latency_last_month_p90_s3",e.DIRECT_SEND_LATENCY_LAST_MONTH_P99="directsend_latency_last_month_p99_s3",e.RESPONSE_TIME="ResponseTime",e.ERROR_COUNT="ErrorCount",e.PLATFORM_WEBHOOK_DELAY="PlatformWebhookDelay",e))(wt||{});const Mi=Object.freeze({CLOUD_API:"Cloud API",PLATFORM_STATUS:"Platform Status",MMLITE_API:"Marketing Messages API for WhatsApp",DIRECT_SEND:"Direct Send API"}),Py=Object.freeze({[lt.IG_MESSAGING]:["uptime_daily","event_tagging_latency_last_month_p90_s3","event_tagging_latency_last_month_p99_s3","event_tagging_latency_last_31_days_p90_s3","event_tagging_latency_last_31_days_p99_s3"],[lt.MESSENGER]:["uptime_daily","event_tagging_latency_last_month_p90_s3","event_tagging_latency_last_month_p99_s3","event_tagging_latency_last_31_days_p90_s3","event_tagging_latency_last_31_days_p99_s3"],[lt.WHATSAPP_BUSINESS_API]:["cloudapi_uptime_daily","event_tagging_latency_last_month_p90_s3","event_tagging_latency_last_month_p99_s3","event_tagging_latency_last_31_days_p90_s3","event_tagging_latency_last_31_days_p99_s3","mmlite_uptime_daily","mmlite_event_tagging_latency_last_month_p90_s3","mmlite_event_tagging_latency_last_month_p99_s3","mmlite_event_tagging_latency_last_31_days_p90_s3","mmlite_event_tagging_latency_last_31_days_p99_s3","directsend_uptime_daily","directsend_latency_last_month_p90_s3","directsend_latency_last_month_p99_s3"]});function kM(e){return e in Py?Py[e]:[]}function tv(e,t){switch(e){case lt.WHATSAPP_BUSINESS_API:switch(t){case Mi.CLOUD_API:return"cloud-api";case Mi.MMLITE_API:return"mmlite-api";case Mi.DIRECT_SEND:return"direct-send";default:return null}case lt.MESSENGER:switch(t){case Mi.PLATFORM_STATUS:return"platform-status";default:return null}case lt.IG_MESSAGING:switch(t){case Mi.PLATFORM_STATUS:return"platform-status";default:return null}default:return null}}function SM(e,t){let i=!1;return e.dimensions&&e.dimensions.forEach(s=>{s.Name==="ServiceName"&&s.Value===t&&(i=!0)}),i}function TM(e,t,i){const s=tv(t,i);return e.filter(l=>SM(l,s))}function EM(e){return e.filter(t=>!t.dimensions||t.dimensions.length===0)}function wM(e,t){return By.indexOf(e)>By.indexOf(t)?e:t}function lh(e){return e.length?e.map(t=>t.status).reduce(wM):Ct.OPERATIONAL}var Qn=(e=>(e.LEFT="left",e.CENTER="center",e))(Qn||{}),It=(e=>(e.LINE="Line Chart",e.HISTORY_PANEL="History Panel",e.HEALTH_BAR="Health Bar Chart",e.LATENCY_SUMMARY_CARD="Latency Summary Card",e))(It||{}),mt=(e=>(e.MILLISECONDS="ms",e.PERCENT="%",e))(mt||{});
129function Jt(e,t,i=null,s=null){const l=e*100,r=Math.min(l,i||l).toFixed(2)+mt.PERCENT;switch(t){case mt.MILLISECONDS:return e.toLocaleString("en-US",{maximumFractionDigits:0})+mt.MILLISECONDS;case mt.PERCENT:return s&&r==="100.00%"?s:r;default:return""}}const AM={[lt.GRAPH_API]:{ResponseTime:{title:"Average API Response Time",metricKeys:[wt.RESPONSE_TIME],units:mt.MILLISECONDS,displayValueFn:e=>Jt(e,mt.MILLISECONDS),order:1,graphType:It.LINE},ErrorCount:{title:"Average API Error Rates",metricKeys:[wt.ERROR_COUNT],units:mt.PERCENT,displayValueFn:e=>Jt(e,mt.PERCENT),order:2,graphType:It.LINE},PlatformWebhookDelay:{title:"Average Webhook Delay Time",metricKeys:[wt.PLATFORM_WEBHOOK_DELAY],units:mt.MILLISECONDS,displayValueFn:e=>Jt(e,mt.MILLISECONDS),order:3,graphType:It.LINE}},[lt.MARKETING_API]:{ResponseTime:{title:"Average API Response Time",metricKeys:[wt.RESPONSE_TIME],units:mt.MILLISECONDS,displayValueFn:e=>Jt(e,mt.MILLISECONDS),order:1,graphType:It.LINE},ErrorCount:{title:"Average API Error Rates",metricKeys:[wt.ERROR_COUNT],units:mt.PERCENT,displayValueFn:e=>Jt(e,mt.PERCENT),order:2,graphType:It.LINE}}},MM={[lt.WHATSAPP_BUSINESS_API]:{[pa.CLOUD_API]:[{title:"Availability",metricKeys:[wt.CLOUD_API_UPTIME_DAILY],units:mt.PERCENT,displayValueFn:e=>Jt(e,mt.PERCENT,100,"100% No known issues"),order:1,graphType:It.HEALTH_BAR},{title:"Latency",metricKeys:[wt.LATENCY_PAST_31_DAYS_P90,wt.LATENCY_PAST_31_DAYS_P99],units:mt.MILLISECONDS,displayValueFn:e=>Jt(e,mt.MILLISECONDS),order:2,graphType:It.LATENCY_SUMMARY_CARD},{title:"Historical latency and availability",metricKeys:[wt.LATENCY_LAST_MONTH_P90,wt.LATENCY_LAST_MONTH_P99,wt.CLOUD_API_UPTIME_DAILY],units:mt.PERCENT,displayValueFn:e=>Jt(e,mt.PERCENT,100,"100% No known issues"),order:3,graphType:It.HISTORY_PANEL}],[pa.MMLITE_API]:[{title:"Availability",metricKeys:[wt.MMLITE_UPTIME_DAILY],units:mt.PERCENT,displayValueFn:e=>Jt(e,mt.PERCENT,100,"100% No known issues"),order:1,graphType:It.HEALTH_BAR},{title:"Latency",metricKeys:[wt.MMLITE_LATENCY_PAST_31_DAYS_P90,wt.MMLITE_LATENCY_PAST_31_DAYS_P99],units:mt.MILLISECONDS,displayValueFn:e=>Jt(e,mt.MILLISECONDS),order:2,graphType:It.LATENCY_SUMMARY_CARD},{title:"Historical latency and availability",metricKeys:[wt.MMLITE_LATENCY_LAST_MONTH_P90,wt.MMLITE_LATENCY_LAST_MONTH_P99,wt.MMLITE_UPTIME_DAILY],units:mt.PERCENT,displayValueFn:e=>Jt(e,mt.PERCENT,100,"100% No known issues"),order:3,graphType:It.HISTORY_PANEL}],[pa.DIRECT_SEND]:[{title:"Availability",metricKeys:[wt.DIRECT_SEND_UPTIME_DAILY],units:mt.PERCENT,displayValueFn:e=>Jt(e,mt.PERCENT,100,"100% No known issues"),order:1,graphType:It.HEALTH_BAR},{title:"Latency",metricKeys:[wt.DIRECT_SEND_LATENCY_LAST_MONTH_P90,wt.DIRECT_SEND_LATENCY_LAST_MONTH_P99],units:mt.MILLISECONDS,displayValueFn:e=>Jt(e,mt.MILLISECONDS),order:2,graphType:It.LATENCY_SUMMARY_CARD},{title:"Historical latency and availability",metricKeys:[wt.DIRECT_SEND_LATENCY_LAST_MONTH_P90,wt.DIRECT_SEND_LATENCY_LAST_MONTH_P99,wt.DIRECT_SEND_UPTIME_DAILY],units:mt.PERCENT,displayValueFn:e=>Jt(e,mt.PERCENT,100,"100% No known issues"),order:3,graphType:It.HISTORY_PANEL}]},[lt.MESSENGER]:{[pa.PLATFORM_STATUS]:[{title:"Availability",metricKeys:[wt.UPTIME_DAILY],units:mt.PERCENT,displayValueFn:e=>Jt(e,mt.PERCENT,100,"100% No known issues"),order:1,graphType:It.HEALTH_BAR},{title:"Latency",metricKeys:[wt.LATENCY_PAST_31_DAYS_P90,wt.LATENCY_PAST_31_DAYS_P99],units:mt.MILLISECONDS,displayValueFn:e=>Jt(e,mt.MILLISECONDS),order:2,graphType:It.LATENCY_SUMMARY_CARD},{title:"Historical latency and availability",metricKeys:[wt.LATENCY_LAST_MONTH_P90,wt.LATENCY_LAST_MONTH_P99,wt.UPTIME_DAILY],units:mt.PERCENT,displayValueFn:e=>Jt(e,mt.PERCENT,100,"100% No known issues"),order:3,graphType:It.HISTORY_PANEL}]},[lt.IG_MESSAGING]:{[pa.PLATFORM_STATUS]:[{title:"Availability",metricKeys:[wt.UPTIME_DAILY],units:mt.PERCENT,displayValueFn:e=>Jt(e,mt.PERCENT,100,"100% No known issues"),order:1,graphType:It.HEALTH_BAR},{title:"Latency",metricKeys:[wt.LATENCY_PAST_31_DAYS_P90,wt.LATENCY_PAST_31_DAYS_P99],units:mt.MILLISECONDS,displayValueFn:e=>Jt(e,mt.MILLISECONDS),order:2,graphType:It.LATENCY_SUMMARY_CARD},{title:"Historical latency and availability",metricKeys:[wt.LATENCY_LAST_MONTH_P90,wt.LATENCY_LAST_MONTH_P99,wt.UPTIME_DAILY],units:mt.PERCENT,displayValueFn:e=>Jt(e,mt.PERCENT,100,"100% No known issues"),order:3,graphType:It.HISTORY_PANEL}]}};function CM(e){return AM[e]??null}function ev(e,t){const i=MM[e],s=tv(e,t);return i&&s?i[s]:null}function Jl(e,t=!0){return e.sort((i,s)=>t?new Date(s.time).getTime()-new Date(i.time).getTime():new Date(i.time).getTime()-new Date(s.time).getTime()),e}async function DM(){return ka.getOrgs().then(e=>new Map(e.map(t=>[t.id,{...t,status:lh(t.services)}])))}async function OM(e){return nv([...e.values()].map(t=>t.services).flat())}async function RM(){return DM().then(e=>OM(e).then(t=>({lastUpdateTime:t,orgs:e})))}function nv(e){const t=e.filter(i=>i.status!==Ct.OPERATIONAL);return t.length===0?new Date:new Date(Jl(t)[0].time)}async function jM(e){const t=await ka.getOrg(e),i=await(t.feature_flags?.includes("metrics")?NM(e,t.services.map(l=>
129l.name)):[]);if(t.services.filter(l=>l.status!==Ct.OPERATIONAL).length===0)return{metrics:i,orgName:t.name,outages:[],services:t.services,status:lh(t.services),rss_file_paths:t.rss_file_paths};{const l=await ka.getActiveOutages(e).then(r=>[...Jl(r.filter(c=>c.status===Ct.RESOLVED)),...Jl(r.filter(c=>c.status!==Ct.RESOLVED))]).catch(r=>(console.error(r.message),[]));return{metrics:i,orgName:t.name,outages:l,services:t.services,status:lh(t.services),rss_file_paths:t.rss_file_paths}}}async function NM(e,t){if(dM.includes(e)){const i=[...new Set(t.map(l=>ev(e,l)).filter(l=>l!=null).flatMap(l=>l.flatMap(r=>r.metricKeys)))],s=kM(e).filter(l=>i.includes(l));return Promise.all(s.map(l=>ka.getS3MetricsData(e,l))).then(l=>l.flat())}return[]}function $M(e,t){return e.filter(i=>i.service_id===t)}async function LM(e){const t=await ka.getOrg(e),i=await ka.getHistoricalOutages(e),s=new Map;t.services.forEach(r=>s.set(r.id,r.name));let l=[];return Jl(i).forEach(r=>{const c=s.get(r.service_id);c!=null&&l.push({outage_id:r.id,service_name:c,timeStamp:new Date(r.time),posts:Jl(r.posts)})}),l=l.filter(r=>r.posts.length!==0),{archiveOutageToPosts:l,orgName:t.name}}const zM="_highlight_m7nbf_7",Hy={highlight:zM},iv=60*1e3;function BM(e){const[t,i]=A.useState(!0),[s,l]=A.useState({archiveOutageToPosts:[],orgName:""});return A.useEffect(()=>{(async()=>{i(!0),l(await LM(e)),i(!1)})()},[e]),{historyData:s,loading:t}}function PM(){const[e,t]=A.useState(!1),[i,s]=A.useState({lastUpdateTime:new Date,orgs:new Map});return A.useEffect(()=>{const l=async()=>{s(await RM())};(async()=>{t(!0),await l(),t(!1)})();const c=setInterval(async()=>{await l()},iv);return()=>clearInterval(c)},[]),{data:i,loading:e}}function HM(e){const[t,i]=A.useState(!1),[s,l]=A.useState({outages:[],services:[],status:Ct.OPERATIONAL,metrics:[],orgName:"",rss_file_paths:[]});return A.useEffect(()=>{const r=async()=>{l(await jM(e))};(async()=>{i(!0),await r(),i(!1)})();const f=setInterval(async()=>{await r()},iv);return()=>clearInterval(f)},[e]),{loading:t,orgViewData:s}}function sv(e){const t=Tn();A.useEffect(()=>{const i=t.hash;if(!i)return;const s=i.substring(1),l=setTimeout(()=>{const r=document.getElementById(s);if(!r)return;/^\d+$/.test(s)&&r.classList.add(Hy.highlight),r.scrollIntoView({behavior:"smooth",block:"center"})},550);return()=>{clearTimeout(l);const r=document.getElementById(s);r&&r.classList.remove(Hy.highlight)}},[e,t.hash,t.key])}function Bc(e){A.useEffect(()=>{document.title=e},[e])}function FM(e){const t=A.useRef(null);return A.useEffect(()=>{t.current=e}),t.current}var un=(e=>(e.LEFT="left",e.RIGHT="right",e.UP="up",e.DOWN="down",e))(un||{}),fs=(e=>(e.VIEW_HISTORY="view_history",e.BACK="back",e.LEARN_MORE="learn_more",e.RSS_FEED="rss_feed",e.PRIVACY_POLICY="privacy_policy",e))(fs||{}),$i=(e=>(e.ACCORDION="accordion",e.BREADCRUMB="breadcrumb",e.BUTTON="button",e))($i||{}),ti=(e=>(e.CLICK_BACK_TO_MAIN_VIEW="click_back_to_main_view",e.CLICK_BREADCRUMB="click_breadcrumb",e.CLICK_HISTORY="click_history",e.CLICK_LEARN_MORE="click_learn_more",e.CLICK_PRIVACY_POLICY="click_privacy_policy",e.CLICK_RSS="click_rss",e.CLICK_TO_ADS_MANGER="click_to_ads_manager",e.CLICK_TO_ADS_TRANSPARENCY="click_to_ads_transparency",e.CLICK_TO_AUDIENCE_NETWORK="click_to_audience_network",e.CLICK_TO_CATALOG="click_to_catalog",e.CLICK_TO_CTX="click_to_ctx",e.CLICK_TO_DATA_TRANSPARENCY="click_to_data_transparency",e.CLICK_TO_DEVICE_MANAGER="click_to_device_manager",e.CLICK_TO_GRAPH_API="click_to_graph_api",e.CLICK_TO_IG_BOOST="click_to_ig_boost",e.CLICK_TO_IG_MESSAGING="click_to_ig_messaging",e.CLICK_TO_MESSENGER="click_to_messenger",e.CLICK_TO_WHATSAPP_BUSINESS_API="click_to_whatsapp_business_api",e.CLICK_TO_FB_IG_SHOPS="click_to_fb_ig_shops",e.CLICK_TO_FACEBOOK_BUSINESS_SUITE="click_to_facebook_business_suite",e.CLICK_TO_ADMIN_CENTER="click_to_admin_center",e.CLICK_TO_FACEBOOK_LOGIN="click_to_facebook_login",e.CLICK_TO_MARKETING_API="click_to_marketing_api",e.CLICK_TO_META="click_to_meta",e.CLICK_TO_WORKPLACE="click_to_workplace",e.CLOSE_CONTENT="close_content",e.EXPAND_CONTENT="expand_content",e.UNRECOGNIZED="unrecognized",e))(ti||{});function bs(e,t){Ah.event({category:e,action:t})}function IM(e){switch(e){case fs.BACK:return"click_back_to_main_view";case fs.LEARN_MORE:return"click_learn_more";case fs.RSS_FEED:return"click_rss";case fs.VIEW_HISTORY:return"click_history";case fs.PRIVACY_POLICY:return"click_privacy_policy";default:return"unrecognized"}}function UM(e){switch(e){case lt.ADS_MANAGER:return"click_to_ads_manager";case lt.ADS_TRANSPARENCY:return"click_to_ads_transparency";
129case lt.AUDIENCE_NETWORK:return"click_to_audience_network";case lt.CATALOG:return"click_to_catalog";case lt.CTX:return"click_to_ctx";case lt.DATA_TRANSPARENCY:return"click_to_data_transparency";case lt.DEVICE_MANAGER:return"click_to_device_manager";case lt.GRAPH_API:return"click_to_graph_api";case lt.IG_BOOST:return"click_to_ig_boost";case lt.IG_MESSAGING:return"click_to_ig_messaging";case lt.MESSENGER:return"click_to_messenger";case lt.WHATSAPP_BUSINESS_API:return"click_to_whatsapp_business_api";case lt.FB_IG_SHOPS:return"click_to_fb_ig_shops";case lt.FBS:return"click_to_facebook_business_suite";case lt.ADMIN_CENTER:return"click_to_admin_center";case lt.FACEBOOK_LOGIN:return"click_to_facebook_login";case lt.MARKETING_API:return"click_to_marketing_api";case lt.META:return"click_to_meta";case lt.WORKPLACE:return"click_to_workplace";default:return"unrecognized"}}const av={breadcrumb:{ks0D6T:"xepxnk6",kqGvvJ:"xq6kz29",kUOVxO:"xvueqy4",k1xSpc:"x78zum5",kjj79g:"xl56j7k",$$css:!0}},qM="/assets/major_disruptions_illustration-1x-S3c9CDP6.png",Fy="/assets/major_disruptions_illustration-2x-DqHTnr5I.png",Iy="/assets/no_known_issues_illustration-1x-CZy6Dqed.png",Hr="/assets/no_known_issues_illustration-2x-Bm0kJs69.png",VM="/assets/recovering_illustration-1x-6HLublrO.png",Uy="/assets/recovering_illustration-2x-DVE4lfnL.png",YM="/assets/issues_resolved_illustration-1x-zUGdEBaD.png",qy="/assets/issues_resolved_illustration-2x-D-RqyD39.png",GM="/assets/some_disruptions_illustration-1x-DWnOUhdm.png",Vy="/assets/some_disruptions_illustration-2x-DAQB_6gt.png",WM=31536e3,XM=2592e3,KM=86400,ZM=3600,QM=60;function Pc(e){const t={year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"2-digit",timeZoneName:"short"};return e.toLocaleTimeString("en-US",t).replace(/,/g,"")}function JM(e){return e>Z1?Zn.DARK_GREEN:e>Q1?Zn.DARK_YELLOW:Zn.DARK_RED}function Yl(e,t={withYear:!0}){const i={year:void 0,month:"short",day:"numeric"};return t.withYear&&(i.year="numeric"),e.toLocaleDateString("en-US",i)}function lv(e){const t=new Date(e),i={month:"long",year:"numeric"};return t.toLocaleDateString([],i)}function Gl(e){const t=Math.abs(new Date().getTime()-new Date(e).getTime())/1e3;let i=t/WM;return i>2?Math.floor(i)+" years":(i=t/XM,i>2?Math.floor(i)+" months":(i=t/KM,i>1?Math.floor(i)+" days":(i=t/ZM,i>1?Math.floor(i)+" hours":(i=t/QM,i>1?Math.floor(i)+" minutes":Math.floor(t)+" seconds"))))}function ua(e){return e.map((t,i)=>i===0?t:`${t} ${i+1}x`).join(", ")}function tC(e){let t={src:"",srcSet:""};switch(e){case Ct.SOME_DISRUPTIONS:case Ct.LOW_DISRUPTIONS:case Ct.MEDIUM_DISRUPTIONS:t={src:Vy,srcSet:ua([GM,Vy])};break;case Ct.MAJOR_DISRUPTIONS:case Ct.HIGH_DISRUPTIONS:t={src:Fy,srcSet:ua([qM,Fy])};break;case Ct.RECOVERING:t={src:Uy,srcSet:ua([VM,Uy])};break;case Ct.RESOLVED:t={src:qy,srcSet:ua([YM,qy])};break;case Ct.UNKNOWN:t={src:Hr,srcSet:ua([Iy,Hr])};break;case Ct.OPERATIONAL:default:t={src:Hr,srcSet:ua([Iy,Hr])}}return t}function ov(e){const t=X1.find(({org:i})=>i===e);return t==null?"":t.path.startsWith("/")?t.path:`/${t.path}`}function eC(){return Object.fromEntries(Object.entries(yM).map(([e,t])=>[[e],t.filter(i=>!W1.includes(i))]))}function nC(e){return e.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-|-$/g,"")}function iC(e,t){switch(t){case lt.WHATSAPP_BUSINESS_API:switch(e){case Mi.CLOUD_API:return!0;default:return!1}case lt.MESSENGER:switch(e){case Mi.PLATFORM_STATUS:return!0;default:return!1}case lt.IG_MESSAGING:switch(e){case Mi.PLATFORM_STATUS:return!0;default:return!1}default:return!1}}function vc({href:e,...t}){return b.jsx(Rc,{to:e,...t})}function sC(e){return b.jsxs($h,{xstyle:av.breadcrumb,children:[b.jsx(ba,{as:vc,href:"/",onClick:()=>{bs($i.BREADCRUMB,ti.CLICK_BREADCRUMB)},children:"Home"}),b.jsx(ba,{as:vc,href:ov(e.org),children:e.orgName}),b.jsx(ba,{isCurrent:!0,children:"History"})]})}const aC="/assets/no-issues-history-DN2ZEbCy.svg";function lC(){return b.jsx(zc,{description:"No known issues resolved in the past 90 days.",icon:b.jsx("img",{alt:"",src:aC,className:"x1lliihq x123rqhf x1vjcqex xh8yej3"}),title:"No Known Issues"})}const Yy={event:{kLZC3w:"xb9moi8",kPef9Z:"x13fuv20",kEafiO:"xt8cgyo",kLKAdn:"x1y1aw1k",kzqmXN:"x65xoit",$$css:!0},mostRecent:{kPef9Z:"x1ejq31n",kLKAdn:"xyamay9",kzqmXN:"x65xoit",$$css:!0}};function oC(e){return b.jsx(de,{gap:2,children:e.posts.map((t,i)=>{const s=Pc(new Date(t.time));return b.jsxs(de,{gap:1,xstyle:i===0?Yy.mostRecent:Yy.event,children:[b.jsxs(Yt,{type:"supporting",weight:"bold",children:[s,": ",t.status]}),b.jsx(Yt,{color:"primary",type:"supporting",children:t.description})]},i)})})}function Bh(e){switch(e){case Ct.UNKNOWN:return{color:"disabled",icon:"info"};case Ct.SOME_DISRUPTIONS:case Ct.LOW_DISRUPTIONS:case Ct.RECOVERING:return{color:"warning",icon:"warning"};case Ct.MEDIUM_DISRUPTIONS:return{color:"orange",icon:"warning"};case Ct.MAJOR_DISRUPTIONS:case Ct.HIGH_DISRUPTIONS:return{color:"error",icon:"error"};default:return{color:"success",icon:"success"}}}function Ph(e){const{color:t,icon:i}=Bh(e.status);return b.jsxs(Ce,{align:"center",gap:2,children:[b.jsx(oe,{icon:i,color:t,size:"sm"}),b.jsx(Yt,{type:"supporting",color:"primary",children:e.status}),e.children]})}const Gy={rightContainer:{kOIVth:"x1v2ro7d",kVAEAm:"x1n2onr6",kY2c9j:"x1vjfegm",kfzvcC:"x47corl",$$css:!0},nameContainer:{kVAEAm:"x1n2onr6",kY2c9j:"x1vjfegm",kfzvcC:"x47corl",$$css:!0}};function rC(e){const{archiveOutageToPosts:t,hash:i,locationKey:s}=e,l=i.substring(1);return t.length===0?b.jsx(lC,{}):b.jsx(de,{gap:3,children:t.map((r,c)=>b.jsx(cC,{defaultExpanded:`${r.outage_id}`===l,locationKey:s,outage:r},c))})}function cC({defaultExpanded:e,locationKey:t,outage:i}){const[s,l]=A.useState(e);A.useEffect(()=>{l(e)},[e,t]);const r=()=>{bs($i.ACCORDION,s?ti.CLOSE_CONTENT:ti.EXPAND_CONTENT),l(h=>!h)},c=new Date(i.posts[0].time),f=new Date(i.posts[i.posts.length-1].time),d=f.getDate()!==c.getDate();return b.jsxs(Ma,{padding:0,id:`${i.outage_id}`,children:[b.jsxs("div",{className:"x78zum5 x6s0dn4 x1qughib xh8yej3 x1n2onr6 x1ypdohk x10dr8xq xaope02 xdz316r xj0et6e x1o9hk9w x15406qy xx6bhzk xwji4o3",children:[b.jsx("button",{"aria-expanded":s,"aria-label":`Toggle ${i.service_name} details`,onClick:r,type:"button",className:"x10l6tqk x10a8y8t xh8yej3 x1ghz6dp x1717udv x1ypdohk xjyslct"}),b.jsxs(de,{gap:1,xstyle:Gy.nameContainer,children:[b.jsxs(Yt,{weight:"bold",children:[Ct.RESOLVED,": ",i.service_name]}),b.jsx(Yt,{color:"secondary",type:"supporting",children:d?`${Yl(f)} - ${Yl(c)}`:Yl(c)})]}),b.jsxs(Ce,{align:"center",xstyle:Gy.rightContainer,children:[b.jsx("div",{className:"xefy
129azp",children:b.jsx(Ph,{status:Ct.RESOLVED})}),b.jsx("span",{...{0:{className:"x3nfvp2 xv9yike x11xpdln xx6bhzk xwji4o3"},1:{className:"x3nfvp2 xv9yike x11xpdln xx6bhzk xwji4o3 x19jd1h0"}}[!!s<<0],children:b.jsx(oe,{color:"secondary",icon:"chevronDown",size:"sm"})})]})]}),s&&b.jsx("div",{className:"x1y1aw1k xaope02 xsag5q8",children:b.jsx(oC,{posts:i.posts})})]})}function hs(e){const{buttonText:t,buttonType:i,icon:s,iconPosition:l,newTab:r,url:c}=e,f=IM(i);return b.jsx(ms,{as:vc,endContent:l==="right"?s:void 0,href:c,icon:l==="left"?s:void 0,label:t,onClick:()=>{bs($i.BUTTON,f)},target:r?"_blank":"_self",variant:"secondary"})}function Wy(e,t){return t.setDate(t.getDate()-e),t}function uC(){const e=Wy(pM,new Date),t=Wy(1,new Date);return b.jsxs(Ce,{align:"center",gap:3,justify:"between",wrap:"wrap",children:[b.jsxs(Yt,{color:"secondary",children:[Yl(e)," - ",Yl(t)]}),b.jsx(hs,{buttonText:"Back to Main View",buttonType:fs.BACK,icon:b.jsx(oe,{icon:"chevronLeft",size:"sm"}),iconPosition:"left",url:".."})]})}function rv({className:e,height:t="100%",width:i="100%"}){return b.jsx(yc,{className:e,height:t,radius:2,width:i})}function fC(){return b.jsx("div",{children:b.jsx(rv,{height:420})})}function Sa({children:e}){return b.jsx("div",{className:"xvueqy4 xflrilb x1yjoq1l x179ieps",children:e})}const dC={title:{ks0D6T:"xepxnk6",kqGvvJ:"xq6kz29",kUOVxO:"xvueqy4",kGuDYH:"x1evizpo",$$css:!0}};function cv(e){return b.jsx("div",{children:b.jsx(ho,{justify:"center",level:1,xstyle:dC.title,children:e.title})})}const hC="/assets/meta-logo-CcuC5rq9.svg";function Hc(e){const{lastUpdateTime:t}=e;return b.jsx(q1,{heading:b.jsx(V1,{headingHref:"/",logo:b.jsx("img",{alt:"Meta Status",src:hC,className:"x1lliihq x10wjd1d"})}),label:"Meta Status",endContent:t?b.jsx(Yt,{color:"secondary",type:"supporting",children:"Updated "+Pc(t)}):void 0})}const gC={content:{keoZOQ:"xqui205",$$css:!0}};function pC(e){const{org:t}=e,{historyData:i,loading:s}=BM(t),{archiveOutageToPosts:l,orgName:r}=i;Bc(`${r} Status`);const c=Tn();return sv(s),b.jsxs("div",{children:[b.jsx(Hc,{}),b.jsx(sC,{org:t,orgName:r}),b.jsx(cv,{title:`${r} History`}),b.jsx(Sa,{children:b.jsxs(de,{gap:6,xstyle:gC.content,children:[b.jsx(uC,{}),s?b.jsx(fC,{}):b.jsx(rC,{archiveOutageToPosts:l,hash:c.hash,locationKey:c.key})]})})]})}const mC="/assets/homeillustration-CmIssB0E.png",Xy={container:{$$css:!0},text:{kCS8Yb:"xdlyxmt x10rj6sv",$$css:!0}};function xC(e){const{lastUpdateTime:t}=e;return b.jsxs(Ma,{padding:0,variant:"transparent",xstyle:Xy.container,children:[b.jsx(Hc,{lastUpdateTime:t}),b.jsx("div",{className:"xvueqy4 xyzno7u x1axd487 x4l9tsp",children:b.jsxs(Ce,{align:"center",gap:4,wrap:"wrap",children:[b.jsxs(de,{gap:2,xstyle:Xy.text,children:[b.jsx(ho,{level:1,children:"Status and outages of Meta business products"}),b.jsx(Yt,{color:"secondary",type:"body",children:"Monitor and check the status of Meta business products like Ads Manager, Meta Business Suite & more. Check for product outages and downtimes in real time."})]}),b.jsx("div",{className:"xdlyxmt x10rj6sv x193iq5w",children:b.jsx("img",{alt:"",src:mC,className:"xt7dq6l x193iq5w"})})]})})]})}function yC(e){const{org:t,orgResult:i}=e,s=UM(t);return b.jsx(Rc,{to:ov(t),onClick:()=>bs($i.ACCORDION,s),className:"x1heor9g x1hl2dhg x1lliihq xqp6ajr x1hr3lfm xdz316r xj0et6e x1o9hk9w x15406qy xx6bhzk xwji4o3",children:b.jsxs(Ce,{align:"center",justify:"between",children:[b.jsx(Yt,{weight:"bold",children:i.name}),b.jsxs(Ce,{align:"center",gap:2,children:[b.jsx("div",{className:"xrostsh",children:b.jsx(Ph,{status:i.status})}),b.jsx(oe,{icon:"chevronRight",color:"secondary",size:"sm"})]})]})})}const Ky={group:{keoZOQ:"x1e1m7ul",$$css:!0},header:{kZCmMZ:"x1g0dm76",$$css:!0}};function bC(e){const t=e.groupHeader.replace(/\s/g,"").toLowerCase(),i=A.Children.toArray(e.children);return b.jsxs(de,{gap:3,id:t,xstyle:Ky.group,children:[b.jsx(ho,{level:2,xstyle:Ky.header,children:e.groupHeader}),b.jsx(Ma,{padding:0,children:b.jsx(de,{children:i.map((s,l)=>b.jsxs(A.Fragment,{children:[l>0&&b.jsx(Ca,{}),s]},l))})})]})}function vC(){return b.jsx(rv,{height:24,width:275})}const _C={row:{k8WAf4:"x1home7a",$$css:!0}},Zy=["65%","45%","58%","50%","70%","42%"];function kC(e){return b.jsx("div",{className:"xmkeg23 x1y0btm7 xzf3yi6 x1hviunn x1shk3sm xt970qd x1dlhslv xs0pscg xpz12be xqgcaz xa4qsjk xfa1sur x193epu2",children:b.jsx(de,{justify:"center",children:Array.from({length:e.count}).map((t,i)=>b.jsxs(A.Fragment,{children:[i>0&&b.jsx(Ca,{isFullBleed:!0}),b.jsx(SC,{index:i,width:Zy[i%Zy.length]})]},i))})})}function SC({index:e,width:t}){return b.jsxs(Ce,{align:"center",justify:"between",xstyle:_C.row,children:[b.jsx(yc,{height:24,index:e,radiu
129s:2,width:t}),b.jsx(yc,{height:24,index:e,radius:2,width:"20%"})]})}function uv(){return b.jsx(Sa,{children:b.jsxs(de,{gap:6,children:[b.jsx(vC,{}),b.jsx(kC,{count:6})]})})}const TC="Status and outages of Meta business products";function EC(){Bc(TC);const{loading:e,data:t}=PM(),{lastUpdateTime:i,orgs:s}=t,l=eC();return A.useEffect(()=>{const r=window.location.href;if(r.includes("#")){const c=`${r.substring(r.indexOf("#")+1)}`,f=document.getElementById(c);f&&f.scrollIntoView({behavior:"smooth"})}},[e]),b.jsxs("div",{children:[b.jsx(xC,{lastUpdateTime:i}),e?b.jsx(uv,{}):b.jsx(Sa,{children:b.jsx(de,{gap:4,children:Object.keys(l).map((r,c)=>b.jsx(bC,{groupHeader:r,children:l[r].map((f,d)=>{const h=s.get(f);return h&&b.jsx(yC,{org:f,orgResult:h},d)})},c))})})]})}function wC(e){return b.jsxs($h,{xstyle:av.breadcrumb,children:[b.jsx(ba,{as:vc,href:"/",onClick:()=>{bs($i.BREADCRUMB,ti.CLICK_BREADCRUMB)},children:"Home"}),b.jsx(ba,{isCurrent:!0,children:e.orgName})]})}const AC="_rectangle_pk5ns_7",MC="_circle_pk5ns_13",Qy={rectangle:AC,circle:MC};function CC(e){return e>Z1?Zn.DARK_GREEN:e>Q1?Zn.DARK_YELLOW:Zn.DARK_RED}function fv({value:e,type:t}){return b.jsx("div",{className:t==="circle"?Qy.circle:Qy.rectangle,style:{backgroundColor:CC(e)}})}function DC(e){return new Date(e).toLocaleDateString([],{month:"long",day:"2-digit",year:"numeric"})}function oh({timestamp:e,dateFormatOptions:t,minutes:i}){let s=null;return t==="full"?s=DC(e):t==="month_and_year"&&(s=lv(e)),b.jsxs(de,{children:[b.jsx(Yt,{type:"supporting",color:"primary",children:s}),b.jsxs(Ce,{align:"center",gap:2,children:[b.jsx(fv,{value:1-i/1440}),b.jsx(Yt,{type:"supporting",children:i===0?vM:"Down for "+i+(i<=1?" minute":" minutes")})]})]})}/*!
130 * @kurkle/color v0.3.4
131 * https://github.com/kurkle/color#readme
132 * (c) 2024 Jukka Kurkela
133 * Released under the MIT License
134 */function go(e){return e+.5|0}const Ci=(e,t,i)=>Math.max(Math.min(e,i),t);function Fl(e){return Ci(go(e*2.55),0,255)}function Ri(e){return Ci(go(e*255),0,255)}function Yn(e){return Ci(go(e/2.55)/100,0,1)}function Jy(e){return Ci(go(e*100),0,100)}const an={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},rh=[..."0123456789ABCDEF"],OC=e=>rh[e&15],RC=e=>rh[(e&240)>>4]+rh[e&15],Fr=e=>(e&240)>>4===(e&15),jC=e=>Fr(e.r)&&Fr(e.g)&&Fr(e.b)&&Fr(e.a);function NC(e){var t=e.length,i;return e[0]==="#"&&(t===4||t===5?i={r:255&an[e[1]]*17,g:255&an[e[2]]*17,b:255&an[e[3]]*17,a:t===5?an[e[4]]*17:255}:(t===7||t===9)&&(i={r:an[e[1]]<<4|an[e[2]],g:an[e[3]]<<4|an[e[4]],b:an[e[5]]<<4|an[e[6]],a:t===9?an[e[7]]<<4|an[e[8]]:255})),i}const $C=(e,t)=>e<255?t(e):"";function LC(e){var t=jC(e)?OC:RC;return e?"#"+t(e.r)+t(e.g)+t(e.b)+$C(e.a,t):void 0}const zC=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function dv(e,t,i){const s=t*Math.min(i,1-i),l=(r,c=(r+e/30)%12)=>i-s*Math.max(Math.min(c-3,9-c,1),-1);return[l(0),l(8),l(4)]}function BC(e,t,i){const s=(l,r=(l+e/60)%6)=>i-i*t*Math.max(Math.min(r,4-r,1),0);return[s(5),s(3),s(1)]}function PC(e,t,i){const s=dv(e,1,.5);let l;for(t+i>1&&(l=1/(t+i),t*=l,i*=l),l=0;l<3;l++)s[l]*=1-t-i,s[l]+=t;return s}function HC(e,t,i,s,l){return e===l?(t-i)/s+(t<i?6:0):t===l?(i-e)/s+2:(e-t)/s+4}function Hh(e){const i=e.r/255,s=e.g/255,l=e.b/255,r=Math.max(i,s,l),c=Math.min(i,s,l),f=(r+c)/2;let d,h,p;return r!==c&&(p=r-c,h=f>.5?p/(2-r-c):p/(r+c),d=HC(i,s,l,p,r),d=d*60+.5),[d|0,h||0,f]}function Fh(e,t,i,s){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,i,s)).map(Ri)}function Ih(e,t,i){return Fh(dv,e,t,i)}function FC(e,t,i){return Fh(PC,e,t,i)}function IC(e,t,i){return Fh(BC,e,t,i)}function hv(e){return(e%360+360)%360}function UC(e){const t=zC.exec(e);let i=255,s;if(!t)return;t[5]!==s&&(i=t[6]?Fl(+t[5]):Ri(+t[5]));const l=hv(+t[2]),r=+t[3]/100,c=+t[4]/100;return t[1]==="hwb"?s=FC(l,r,c):t[1]==="hsv"?s=IC(l,r,c):s=Ih(l,r,c),{r:s[0],g:s[1],b:s[2],a:i}}function qC(e,t){var i=Hh(e);i[0]=hv(i[0]+t),i=Ih(i),e.r=i[0],e.g=i[1],e.b=i[2]}function VC(e){if(!e)return;const t=Hh(e),i=t[0],s=Jy(t[1]),l=Jy(t[2]);return e.a<255?`hsla(${i}, ${s}%, ${l}%, ${Yn(e.a)})`:`hsl(${i}, ${s}%, ${l}%)`}const t0={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},e0={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",K
vendor: 5,185 bytes, lines 134-139
134ocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function YC(){const e={},t=Object.keys(e0),i=Object.keys(t0);let s,l,r,c,f;for(s=0;s<t.length;s++){for(c=f=t[s],l=0;l<i.length;l++)r=i[l],f=f.replace(r,t0[r]);r=parseInt(e0[c],16),e[f]=[r>>16&255,r>>8&255,r&255]}return e}let Ir;function GC(e){Ir||(Ir=YC(),Ir.transparent=[0,0,0,0]);const t=Ir[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const WC=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function XC(e){const t=WC.exec(e);let i=255,s,l,r;if(t){if(t[7]!==s){const c=+t[7];i=t[8]?Fl(c):Ci(c*255,0,255)}return s=+t[1],l=+t[3],r=+t[5],s=255&(t[2]?Fl(s):Ci(s,0,255)),l=255&(t[4]?Fl(l):Ci(l,0,255)),r=255&(t[6]?Fl(r):Ci(r,0,255)),{r:s,g:l,b:r,a:i}}}function KC(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Yn(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const zd=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,fa=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function ZC(e,t,i){const s=fa(Yn(e.r)),l=fa(Yn(e.g)),r=fa(Yn(e.b));return{r:Ri(zd(s+i*(fa(Yn(t.r))-s))),g:Ri(zd(l+i*(fa(Yn(t.g))-l))),b:Ri(zd(r+i*(fa(Yn(t.b))-r))),a:e.a+i*(t.a-e.a)}}function Ur(e,t,i){if(e){let s=Hh(e);s[t]=Math.max(0,Math.min(s[t]+s[t]*i,t===0?360:1)),s=Ih(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function gv(e,t){return e&&Object.assign(t||{},e)}function n0(e){var t={r:0,g:0,b:0,a:255};return Array.isArray(e)?e.length>=3&&(t={r:e[0],g:e[1],b:e[2],a:255},e.length>3&&(t.a=Ri(e[3]))):(t=gv(e,{r:0,g:0,b:0,a:1}),t.a=Ri(t.a)),t}function QC(e){return e.charAt(0)==="r"?XC(e):UC(e)}class to{constructor(t){if(t instanceof to)return t;const i=typeof t;let s;i==="object"?s=n0(t):i==="string"&&(s=NC(t)||GC(t)||QC(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=gv(this._rgb);return t&&(t.a=Yn(t.a)),t}set rgb(t){this._rgb=n0(t)}rgbString(){return this._valid?KC(this._rgb):void 0}hexString(){return this._valid?LC(this._rgb):void 0}hslString(){return this._valid?VC(this._rgb):void 0}mix(t,i){if(t){const s=this.rgb,l=t.rgb;let r;const c=i===r?.5:i,f=2*c-1,d=s.a-l.a,h=((f*d===-1?f:(f+d)/(1+f*d))+1)/2;r=1-h,s.r=255&h*s.r+r*l.r+.5,s.g=255&h*s.g+r*l.g+.5,s.b=255&h*s.b+r*l.b+.5,s.a=c*s.a+(1-c)*l.a,this.rgb=s}return this}interpolate(t,i){return t&&(this._rgb=ZC(this._rgb,t._rgb,i)),this}clone(){return new to(this.rgb)}alpha(t){return this._rgb.a=Ri(t),this}clearer(t){const i=this._rgb;return i.a*=1-t,this}greyscale(){const t=this._rgb,i=go(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=i,this}opaquer(t){const i=this._rgb;return i.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return Ur(this._rgb,2,t),this}darken(t){return Ur(this._rgb,2,-t),this}saturate(t){return Ur(this._rgb,1,t),this}desaturate(t){return Ur(this._rgb,1,-t),this}rotate(t){return qC(this._rgb,t),this}}/*!
135 * Chart.js v4.5.0
136 * https://www.chartjs.org
137 * (c) 2025 Chart.js Contributors
138 * Released under the MIT License
139 */function Un(){}const JC=(()=>{let e=0;return()=>e++})();function Et(e){return e==null}function Wt(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);
vendor: 4,347 bytes, line 139
139return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function At(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function te(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function We(e,t){return te(e)?e:t}function xt(e,t){return typeof e>"u"?t:e}const t3=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,pv=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function qt(e,t,i){if(e&&typeof e.call=="function")return e.apply(i,t)}function $t(e,t,i,s){let l,r,c;if(Wt(e))for(r=e.length,l=0;l<r;l++)t.call(i,e[l],l);else if(At(e))for(c=Object.keys(e),r=c.length,l=0;l<r;l++)t.call(i,e[c[l]],c[l])}function _c(e,t){let i,s,l,r;if(!e||!t||e.length!==t.length)return!1;for(i=0,s=e.length;i<s;++i)if(l=e[i],r=t[i],l.datasetIndex!==r.datasetIndex||l.index!==r.index)return!1;return!0}function kc(e){if(Wt(e))return e.map(kc);if(At(e)){const t=Object.create(null),i=Object.keys(e),s=i.length;let l=0;for(;l<s;++l)t[i[l]]=kc(e[i[l]]);return t}return e}function mv(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function e3(e,t,i,s){if(!mv(e))return;const l=t[e],r=i[e];At(l)&&At(r)?eo(l,r,s):t[e]=kc(r)}function eo(e,t,i){const s=Wt(t)?t:[t],l=s.length;if(!At(e))return e;i=i||{};const r=i.merger||e3;let c;for(let f=0;f<l;++f){if(c=s[f],!At(c))continue;const d=Object.keys(c);for(let h=0,p=d.length;h<p;++h)r(d[h],e,c,i)}return e}function Wl(e,t){return eo(e,t,{merger:n3})}function n3(e,t,i){if(!mv(e))return;const s=t[e],l=i[e];At(s)&&At(l)?Wl(s,l):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=kc(l))}const i0={"":e=>e,x:e=>e.x,y:e=>e.y};function i3(e){const t=e.split("."),i=[];let s="";for(const l of t)s+=l,s.endsWith("\\")?s=s.slice(0,-1)+".":(i.push(s),s="");return i}function s3(e){const t=i3(e);return i=>{for(const s of t){if(s==="")break;i=i&&i[s]}return i}}function ji(e,t){return(i0[t]||(i0[t]=s3(t)))(e)}function Uh(e){return e.charAt(0).toUpperCase()+e.slice(1)}const no=e=>typeof e<"u",Ni=e=>typeof e=="function",s0=(e,t)=>{if(e.size!==t.size)return!1;for(const i of e)if(!t.has(i))return!1;return!0};function a3(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const Ot=Math.PI,Vt=2*Ot,l3=Vt+Ot,Sc=Number.POSITIVE_INFINITY,o3=Ot/180,ie=Ot/2,is=Ot/4,a0=Ot*2/3,Di=Math.log10,_n=Math.sign;function Xl(e,t,i){return Math.abs(e-t)<i}function l0(e){const t=Math.round(e);e=Xl(e,t,e/1e3)?t:e;const i=Math.pow(10,Math.floor(Di(e))),s=e/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function r3(e){const t=[],i=Math.sqrt(e);let s;for(s=1;s<i;s++)e%s===0&&(t.push(s),t.push(e/s));return i===(i|0)&&t.push(i),t.sort((l,r)=>l-r).pop(),t}function c3(e){return typeof e=="symbol"||typeof e=="object"&&e!==null&&!(Symbol.toPrimitive in e||"toString"in e||"valueOf"in e)}function Ta(e){return!c3(e)&&!isNaN(parseFloat(e))&&isFinite(e)}function u3(e,t){const i=Math.round(e);return i-t<=e&&i+t>=e}function xv(e,t,i){let s,l,r;for(s=0,l=e.length;s<l;s++)r=e[s][i],isNaN(r)||(t.min=Math.min(t.min,r),t.max=Math.max(t.max,r))}function fn(e){return e*(Ot/180)}function qh(e){return e*(180/Ot)}function o0(e){if(!te(e))return;let t=1,i=0;for(;Math.round(e*t)/t!==e;)t*=10,i++;return i}function yv(e,t){const i=t.x-e.x,s=t.y-e.y,l=Math.sqrt(i*i+s*s);let r=Math.atan2(s,i);return r<-.5*Ot&&(r+=Vt),{angle:r,distance:l}}function ch(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function f3(e,t){return(e-t+l3)%Vt-Ot}function Ae(e){return(e%Vt+Vt)%Vt}function io(e,t,i,s){const l=Ae(e),r=Ae(t),c=Ae(i),f=Ae(r-l),d=Ae(c-l),h=Ae(l-r),p=Ae(l-c);return l===r||l===c||s&&r===c||f>d&&h<p}function ye(e,t,i){return Math.max(t,Math.min(i,e))}function d3(e){return ye(e,-32768,32767)}function Gn(e,t,i,s=1e-6){return e>=Math.min(t,i)-s&&e<=Math.max(t,i)+s}function Vh(e,t,i){i=i||(c=>e[c]<t);let s=e.length-1,l=0,r;for(;s-l>1;)r=l+s>>1,i(r)?l=r:s=r;return{lo:l,hi:s}}const Wn=(e,t,i,s)=>Vh(e,i,s?l=>{const r=e[l][t];return r<i||r===i&&e[l+1][t]===i}:l=>e[l][t]<i),h3=(e,t,i)=>Vh(e,i,s=>e[s][t]>=i);function g3(e,t,i){let s=0,l=e.length;for(;s<l&&e[s]<t;)s++;for(;l>s&&e[l-1]>i;)l--;return s>0||l<e.length?e.slice(s,l):e}const bv=["push","pop","shift","splice","unshift"];function p3(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),bv.forEach(i=>
vendor: 7,463 bytes, line 139
139{const s="_onData"+Uh(i),l=e[i];Object.defineProperty(e,i,{configurable:!0,enumerable:!1,value(...r){const c=l.apply(this,r);return e._chartjs.listeners.forEach(f=>{typeof f[s]=="function"&&f[s](...r)}),c}})})}function r0(e,t){const i=e._chartjs;if(!i)return;const s=i.listeners,l=s.indexOf(t);l!==-1&&s.splice(l,1),!(s.length>0)&&(bv.forEach(r=>{delete e[r]}),delete e._chartjs)}function vv(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const _v=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function kv(e,t){let i=[],s=!1;return function(...l){i=l,s||(s=!0,_v.call(window,()=>{s=!1,e.apply(t,i)}))}}function m3(e,t){let i;return function(...s){return t?(clearTimeout(i),i=setTimeout(e,t,s)):e.apply(this,s),t}}const Yh=e=>e==="start"?"left":e==="end"?"right":"center",we=(e,t,i)=>e==="start"?t:e==="end"?i:(t+i)/2,x3=(e,t,i,s)=>e===(s?"left":"right")?i:e==="center"?(t+i)/2:t;function Sv(e,t,i){const s=t.length;let l=0,r=s;if(e._sorted){const{iScale:c,vScale:f,_parsed:d}=e,h=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null,p=c.axis,{min:x,max:y,minDefined:v,maxDefined:_}=c.getUserBounds();if(v){if(l=Math.min(Wn(d,p,x).lo,i?s:Wn(t,p,c.getPixelForValue(x)).lo),h){const S=d.slice(0,l+1).reverse().findIndex(T=>!Et(T[f.axis]));l-=Math.max(0,S)}l=ye(l,0,s-1)}if(_){let S=Math.max(Wn(d,c.axis,y,!0).hi+1,i?0:Wn(t,p,c.getPixelForValue(y),!0).hi+1);if(h){const T=d.slice(S-1).findIndex(w=>!Et(w[f.axis]));S+=Math.max(0,T)}r=ye(S,l,s)-l}else r=s-l}return{start:l,count:r}}function Tv(e){const{xScale:t,yScale:i,_scaleRanges:s}=e,l={xmin:t.min,xmax:t.max,ymin:i.min,ymax:i.max};if(!s)return e._scaleRanges=l,!0;const r=s.xmin!==t.min||s.xmax!==t.max||s.ymin!==i.min||s.ymax!==i.max;return Object.assign(s,l),r}const qr=e=>e===0||e===1,c0=(e,t,i)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*Vt/i)),u0=(e,t,i)=>Math.pow(2,-10*e)*Math.sin((e-t)*Vt/i)+1,Kl={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>-e*(e-2),easeInOutQuad:e=>(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1),easeInCubic:e=>e*e*e,easeOutCubic:e=>(e-=1)*e*e+1,easeInOutCubic:e=>(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2),easeInQuart:e=>e*e*e*e,easeOutQuart:e=>-((e-=1)*e*e*e-1),easeInOutQuart:e=>(e/=.5)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2),easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>(e-=1)*e*e*e*e+1,easeInOutQuint:e=>(e/=.5)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2),easeInSine:e=>-Math.cos(e*ie)+1,easeOutSine:e=>Math.sin(e*ie),easeInOutSine:e=>-.5*(Math.cos(Ot*e)-1),easeInExpo:e=>e===0?0:Math.pow(2,10*(e-1)),easeOutExpo:e=>e===1?1:-Math.pow(2,-10*e)+1,easeInOutExpo:e=>qr(e)?e:e<.5?.5*Math.pow(2,10*(e*2-1)):.5*(-Math.pow(2,-10*(e*2-1))+2),easeInCirc:e=>e>=1?e:-(Math.sqrt(1-e*e)-1),easeOutCirc:e=>Math.sqrt(1-(e-=1)*e),easeInOutCirc:e=>(e/=.5)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1),easeInElastic:e=>qr(e)?e:c0(e,.075,.3),easeOutElastic:e=>qr(e)?e:u0(e,.075,.3),easeInOutElastic(e){return qr(e)?e:e<.5?.5*c0(e*2,.1125,.45):.5+.5*u0(e*2-1,.1125,.45)},easeInBack(e){return e*e*((1.70158+1)*e-1.70158)},easeOutBack(e){return(e-=1)*e*((1.70158+1)*e+1.70158)+1},easeInOutBack(e){let t=1.70158;return(e/=.5)<1?.5*(e*e*(((t*=1.525)+1)*e-t)):.5*((e-=2)*e*(((t*=1.525)+1)*e+t)+2)},easeInBounce:e=>1-Kl.easeOutBounce(1-e),easeOutBounce(e){return e<1/2.75?7.5625*e*e:e<2/2.75?7.5625*(e-=1.5/2.75)*e+.75:e<2.5/2.75?7.5625*(e-=2.25/2.75)*e+.9375:7.5625*(e-=2.625/2.75)*e+.984375},easeInOutBounce:e=>e<.5?Kl.easeInBounce(e*2)*.5:Kl.easeOutBounce(e*2-1)*.5+.5};function Gh(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function f0(e){return Gh(e)?e:new to(e)}function Bd(e){return Gh(e)?e:new to(e).saturate(.5).darken(.1).hexString()}const y3=["x","y","borderWidth","radius","tension"],b3=["color","borderColor","backgroundColor"];function v3(e){e.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),e.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),e.set("animations",{colors:{type:"color",properties:b3},numbers:{type:"number",properties:y3}}),e.describe("animations",{_fallback:"animation"}),e.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function _3(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const d0=new Map;function k3(e,t){t=t||{};const i=e+JSON.stringify(t);let s=d0.get(i);return s||(s=new Intl.NumberFormat(e,t),d0.set(i,s)),s}function po(e,t,i){return k3(t,i).format(e)}const Ev={values(e){return Wt(e)?e:""+e},numeric(e,t,i){if(e===0)return"0";const s=this.chart.options.locale;let l,r=e;if(i.length>1){const h=Math.max(Math.abs(i[0].value),Math.abs(i[i.length-1].value));(h<1e-4||h>1e15)&&(l="scientific"),r=S3(e,i)}const c=Di(Math.abs(r)),f=isNaN(c)?1:Math.max(Math.min(-1*Math.floor(c),20),0),d={notation:l,minimumFractionDigits:f,maximumFractionDigits:f};return Object.assign(d,this.options.ticks.format),po(e,s,d)},logarithmic(e,t,i){if(e===0)return"0";const s=i[t].significand||e/Math.pow(10,Math.floor(Di(e)));return[1,2,3,5,10,15].includes(s)||t>.8*i.length?Ev.numeric.call(this,e,t,i):""}};function S3(e,t){let i=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(i)>=1&&e!==Math.floor(e)&&(i=e-Math.floor(e)),i}var Fc={formatters:Ev};function T3(e){e.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,i)=>i.lineWidth,tickColor:(t,i)=>i.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Fc.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const xs=Object.create(null),uh=Object.create(null);function Zl(e,t){if(!t)return e;const i=t.split(".");for(let s=0,l=i.length;s<l;++s){const r=i[s];e=e[r]||(e[r]=Object.create(null))}return e}function Pd(e,t,i){return typeof t=="string"?eo(Zl(e,t),i):eo(Zl(e,""),t)}class E3{constructor(t,i){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=s=>s.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={}
vendor: 11,733 bytes, line 139
139,this.hoverBackgroundColor=(s,l)=>Bd(l.backgroundColor),this.hoverBorderColor=(s,l)=>Bd(l.borderColor),this.hoverColor=(s,l)=>Bd(l.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(i)}set(t,i){return Pd(this,t,i)}get(t){return Zl(this,t)}describe(t,i){return Pd(uh,t,i)}override(t,i){return Pd(xs,t,i)}route(t,i,s,l){const r=Zl(this,t),c=Zl(this,s),f="_"+i;Object.defineProperties(r,{[f]:{value:r[i],writable:!0},[i]:{enumerable:!0,get(){const d=this[f],h=c[l];return At(d)?Object.assign({},h,d):xt(d,h)},set(d){this[f]=d}}})}apply(t){t.forEach(i=>i(this))}}var Xt=new E3({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[v3,_3,T3]);function w3(e){return!e||Et(e.size)||Et(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Tc(e,t,i,s,l){let r=t[l];return r||(r=t[l]=e.measureText(l).width,i.push(l)),r>s&&(s=r),s}function A3(e,t,i,s){s=s||{};let l=s.data=s.data||{},r=s.garbageCollect=s.garbageCollect||[];s.font!==t&&(l=s.data={},r=s.garbageCollect=[],s.font=t),e.save(),e.font=t;let c=0;const f=i.length;let d,h,p,x,y;for(d=0;d<f;d++)if(x=i[d],x!=null&&!Wt(x))c=Tc(e,l,r,c,x);else if(Wt(x))for(h=0,p=x.length;h<p;h++)y=x[h],y!=null&&!Wt(y)&&(c=Tc(e,l,r,c,y));e.restore();const v=r.length/2;if(v>i.length){for(d=0;d<v;d++)delete l[r[d]];r.splice(0,v)}return c}function ss(e,t,i){const s=e.currentDevicePixelRatio,l=i!==0?Math.max(i/2,.5):0;return Math.round((t-l)*s)/s+l}function h0(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function fh(e,t,i,s){wv(e,t,i,s,null)}function wv(e,t,i,s,l){let r,c,f,d,h,p,x,y;const v=t.pointStyle,_=t.rotation,S=t.radius;let T=(_||0)*o3;if(v&&typeof v=="object"&&(r=v.toString(),r==="[object HTMLImageElement]"||r==="[object HTMLCanvasElement]")){e.save(),e.translate(i,s),e.rotate(T),e.drawImage(v,-v.width/2,-v.height/2,v.width,v.height),e.restore();return}if(!(isNaN(S)||S<=0)){switch(e.beginPath(),v){default:l?e.ellipse(i,s,l/2,S,0,0,Vt):e.arc(i,s,S,0,Vt),e.closePath();break;case"triangle":p=l?l/2:S,e.moveTo(i+Math.sin(T)*p,s-Math.cos(T)*S),T+=a0,e.lineTo(i+Math.sin(T)*p,s-Math.cos(T)*S),T+=a0,e.lineTo(i+Math.sin(T)*p,s-Math.cos(T)*S),e.closePath();break;case"rectRounded":h=S*.516,d=S-h,c=Math.cos(T+is)*d,x=Math.cos(T+is)*(l?l/2-h:d),f=Math.sin(T+is)*d,y=Math.sin(T+is)*(l?l/2-h:d),e.arc(i-x,s-f,h,T-Ot,T-ie),e.arc(i+y,s-c,h,T-ie,T),e.arc(i+x,s+f,h,T,T+ie),e.arc(i-y,s+c,h,T+ie,T+Ot),e.closePath();break;case"rect":if(!_){d=Math.SQRT1_2*S,p=l?l/2:d,e.rect(i-p,s-d,2*p,2*d);break}T+=is;case"rectRot":x=Math.cos(T)*(l?l/2:S),c=Math.cos(T)*S,f=Math.sin(T)*S,y=Math.sin(T)*(l?l/2:S),e.moveTo(i-x,s-f),e.lineTo(i+y,s-c),e.lineTo(i+x,s+f),e.lineTo(i-y,s+c),e.closePath();break;case"crossRot":T+=is;case"cross":x=Math.cos(T)*(l?l/2:S),c=Math.cos(T)*S,f=Math.sin(T)*S,y=Math.sin(T)*(l?l/2:S),e.moveTo(i-x,s-f),e.lineTo(i+x,s+f),e.moveTo(i+y,s-c),e.lineTo(i-y,s+c);break;case"star":x=Math.cos(T)*(l?l/2:S),c=Math.cos(T)*S,f=Math.sin(T)*S,y=Math.sin(T)*(l?l/2:S),e.moveTo(i-x,s-f),e.lineTo(i+x,s+f),e.moveTo(i+y,s-c),e.lineTo(i-y,s+c),T+=is,x=Math.cos(T)*(l?l/2:S),c=Math.cos(T)*S,f=Math.sin(T)*S,y=Math.sin(T)*(l?l/2:S),e.moveTo(i-x,s-f),e.lineTo(i+x,s+f),e.moveTo(i+y,s-c),e.lineTo(i-y,s+c);break;case"line":c=l?l/2:Math.cos(T)*S,f=Math.sin(T)*S,e.moveTo(i-c,s-f),e.lineTo(i+c,s+f);break;case"dash":e.moveTo(i,s),e.lineTo(i+Math.cos(T)*(l?l/2:S),s+Math.sin(T)*S);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Xn(e,t,i){return i=i||.5,!t||e&&e.x>t.left-i&&e.x<t.right+i&&e.y>t.top-i&&e.y<t.bottom+i}function Ic(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function Uc(e){e.restore()}function M3(e,t,i,s,l){if(!t)return e.lineTo(i.x,i.y);if(l==="middle"){const r=(t.x+i.x)/2;e.lineTo(r,t.y),e.lineTo(r,i.y)}else l==="after"!=!!s?e.lineTo(t.x,i.y):e.lineTo(i.x,t.y);e.lineTo(i.x,i.y)}function C3(e,t,i,s){if(!t)return e.lineTo(i.x,i.y);e.bezierCurveTo(s?t.cp1x:t.cp2x,s?t.cp1y:t.cp2y,s?i.cp2x:i.cp1x,s?i.cp2y:i.cp1y,i.x,i.y)}function D3(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),Et(t.rotation)||e.rotate(t.rotation),t.color&&(e.fillStyle=t.color),t.textAlign&&(e.textAlign=t.textAlign),t.textBaseline&&(e.textBaseline=t.textBaseline)}function O3(e,t,i,s,l){if(l.strikethrough||l.underline){const r=e.measureText(s),c=t-r.actualBoundingBoxLeft,f=t+r.actualBoundingBoxRight,d=i-r.actualBoundingBoxAscent,h=i+r.actualBoundingBoxDescent,p=l.strikethrough?(d+h)/2:h;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=l.decorationWidth||2,e.moveTo(c,p),e.lineTo(f,p),e.stroke()}}function R3(e,t){const i=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=i}function ys(e,t,i,s,l,r={}){const c=Wt(t)?t:[t],f=r.strokeWidth>0&&r.strokeColor!=="";let d,h;for(e.save(),e.font=l.string,D3(e,r),d=0;d<c.length;++d)h=c[d],r.backdrop&&R3(e,r.backdrop),f&&(r.strokeColor&&(e.strokeStyle=r.strokeColor),Et(r.strokeWidth)||(e.lineWidth=r.strokeWidth),e.strokeText(h,i,s,r.maxWidth)),e.fillText(h,i,s,r.maxWidth),O3(e,i,s,h,r),s+=Number(l.lineHeight);e.restore()}function so(e,t){const{x:i,y:s,w:l,h:r,radius:c}=t;e.arc(i+c.topLeft,s+c.topLeft,c.topLeft,1.5*Ot,Ot,!0),e.lineTo(i,s+r-c.bottomLeft),e.arc(i+c.bottomLeft,s+r-c.bottomLeft,c.bottomLeft,Ot,ie,!0),e.lineTo(i+l-c.bottomRight,s+r),e.arc(i+l-c.bottomRight,s+r-c.bottomRight,c.bottomRight,ie,0,!0),e.lineTo(i+l,s+c.topRight),e.arc(i+l-c.topRight,s+c.topRight,c.topRight,0,-ie,!0),e.lineTo(i+c.topLeft,s)}const j3=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,N3=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function $3(e,t){const i=(""+e).match(j3);if(!i||i[1]==="normal")return t*1.2;switch(e=+i[2],i[3]){case"px":return e;case"%":e/=100;break}return t*e}const L3=e=>+e||0;function Wh(e,t){const i={},s=At(t),l=s?Object.keys(t):t,r=At(e)?s?c=>xt(e[c],e[t[c]]):c=>e[c]:()=>e;for(const c of l)i[c]=L3(r(c));return i}function Av(e){return Wh(e,{top:"y",right:"x",bottom:"y",left:"x"})}function gs(e){return Wh(e,["topLeft","topRight","bottomLeft","bottomRight"])}function De(e){const t=Av(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function ue(e,t){e=e||{},t=t||Xt.font;let i=xt(e.size,t.size);typeof i=="string"&&(i=parseInt(i,10));let s=xt(e.style,t.style);s&&!(""+s).match(N3)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);const l={family:xt(e.family,t.family),lineHeight:$3(xt(e.lineHeight,t.lineHeight),i),size:i,style:s,weight:xt(e.weight,t.weight),string:""};return l.string=w3(l),l}function Il(e,t,i,s){let l,r,c;for(l=0,r=e.length;l<r;++l)if(c=e[l],c!==void 0&&c!==void 0)return c}function z3(e,t,i){const{min:s,max:l}=e,r=pv(t,(l-s)/2),c=(f,d)=>i&&f===0?0:f+d;return{min:c(s,-Math.abs(r)),max:c(l,r)}}function Li(e,t){return Object.assign(Object.create(e),t)}function Xh(e,t=[""],i,s,l=()=>e[0]){const r=i||e;typeof s>"u"&&(s=Ov("_fallback",e));const c={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:r,_fallback:s,_getTarget:l,override:f=>Xh([f,...e],t,r,s)};return new Proxy(c,{deleteProperty(f,d){return delete f[d],delete f._keys,delete e[0][d],!0},get(f,d){return Cv(f,d,()=>V3(d,t,e,f))},getOwnPropertyDescriptor(f,d){return Reflect.getOwnPropertyDescriptor(f._scopes[0],d)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(f,d){return p0(f).includes(d)},ownKeys(f){return p0(f)},set(f,d,h){const p=f._storage||(f._storage=l());return f[d]=p[d]=h,delete f._keys,!0}})}function Ea(e,t,i,s){const l={_cacheable:!1,_proxy:e,_context:t,_subProxy:i,_stack:new Set,_descriptors:Mv(e,s),setContext:r=>Ea(e,r,i,s),override:r=>Ea(e.override(r),t,i,s)};return new Proxy(l,{deleteProperty(r,c){return delete r[c],delete e[c],!0},get(r,c,f){return Cv(r,c,()=>P3(r,c,f))},getOwnPropertyDescriptor(r,c){return r._descriptors.allKeys?Reflect.has(e,c)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,c)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(r,c){return Reflect.has(e,c)},ownKeys(){return Reflect.ownKeys(e)},set(r,c,f){return e[c]=f,delete r[c],!0}})}function Mv(e,t={scriptable:!0,indexable:!0}){const{_scriptable:i=t.scriptable,_indexable:s=t.indexable,_allKeys:l=t.allKeys}=e;return{allKeys:l,scriptable:i,indexable:s,isScriptable:Ni(i)?i:()=>i,isIndexable:Ni(s)?s:()=>s}}const B3=(e,t)=>e?e+Uh(t):t,Kh=(e,t)=>At(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function Cv(e,t,i){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const s=i();return e[t]=s,s}function P3(e,t,i){const{_proxy:s,_context:l,_subProxy:r,_descriptors:c}=e;let f=s[t];return Ni(f)&&c.isScriptable(t)&&(f=H3(t,f,e,i)),Wt(f)&&f.length&&(f=F3(t,f,e,c.isIndexable)),Kh(t,f)&&(f=Ea(f,l,r&&r[t],c)),f}function H3(e,t,i,s){const{_proxy:l,_context:r,_subProxy:c,_stack:f}=i;if(f.has(e))throw new Error("Recursion detected: "+Array.from(f).join("->")+"->"+e);f.add(e);let d=t(r,c||s);return f.delete(e),Kh(e,d)&&(d=Zh(l._scopes,l,e,d)),d}function F3(e,t,i,s){const{_proxy:l,_context:r,_subProxy:c,_descriptors:f}=i;if(typeof r.index<"u"&&s(e))return t[r.index%t.length];if(At(t[0])){const d=t,h=l._scopes.filter(p=>p!==d);t=[];for(const p of d){const x=Zh(h,l,e,p);t.push(Ea(x,r,c&&c[e],f))}}return t}function Dv(e,t,i){return Ni(e)?e(t,i):e}const I3=(e,t)=>e===!0?t:typeof e=="string"?ji(t,e):void 0;function U3(e,t,i,s,l){for(const r of t){const c=I3(i,r);if(c){e.add(c);const f=Dv(c._fallback,i,l);if(typeof f<"u"&&f!==i&&f!==s)return f}else if(c===!1&&typeof s<"u"&&i!==s)return null}return!1}function Zh(e,t,i,s){const l=t._rootScopes,r=Dv(t._fallback,i,s),c=[...e,...l],f=new Set;f.add(s);let d=g0(f,c,i,r||i,s);return d===null||typeof r<"u"&&r!==i&&(d=g0(f,c,r,d,s),d===null)?!1:Xh(Array.from(f),[""],l,r,()=>q3(t,i,s))}function g0(e,t,i,s,l){for(;i;)i=U3(e,t,i,s,l);return i}function q3(e,t,i){const s=e._getTarget();t in s||(s[t]={});const l=s[t];return Wt(l)&&At(i)?i:l||{}}function V3(e,t,i,s){let l;for(const r of t)if(l=Ov(B3(r,e),i),typeof l<"u")return Kh(e,l)?Zh(i,s,e,l):l}function Ov(e,t){for(const i of t){if(!i)continue;const s=i[e];if(typeof s<"u")return s}}function p0(e){let t=e._keys;return t||(t=e._keys=Y3(e._scopes)),t}function Y3(e){const t=new Set;for(const i of e)for(const s of Object.keys(i).filter(l=>!l.startsWith("_")))t.add(s);return Array.from(t)}function Rv(e,t,i,s){const{iScale:l}=e,{key:r="r"}=this._parsing,c=new Array(s);let f,d,h,p;for(f=0,d=s;f<d;++f)h=f+i,p=t[h],c[f]={r:l.parse(ji(p,r),h)};return c}const G3=Number.EPSILON||1e-14,wa=(e,t)=>t<e.length&&!e[t].skip&&e[t],jv=e=>e==="x"?"y":"x";function W3(e,t,i,s){const l=e.skip?t:e,r=t,c=i.skip?t:i,f=ch(r,l),d=ch(c,r);let h=f/(f+d),p=d/(f+d);h=isNaN(h)?0:h,p=isNaN(p)?0:p;const x=s*h,y=s*p;return{previous:{x:r.x-x*(c.x-l.x),y:r.y-x*(c.y-l.y)},next:{x:r.x+y*(c.x-l.x),y:r.y+y*(c.y-l.y)}}}function X3(e,t,i){const s=e.length;let l,r,c,f,d,h=wa(e,0);for(let p=0;p<s-1;++p)if(d=h,h=wa(e,p+1),!(!d||!h)){if(Xl(t[p],0,G3)){i[p]=i[p+1]=0;continue}l=i[p]/t[p],r=i[p+1]/t[p],f=Math.pow(l,2)+Math.pow(r,2),!(f<=9)&&(c=3/Math.sqrt(f),i[p]=l*c*t[p],i[p+1]=r*c*t[p])}}function K3(e,t,i="x"){const s=jv(i),l=e.length;let r,c,f,d=wa(e,0);for(let h=0;h<l;++h){if(c=f,f=d,d=wa(e,h+1),!f)continue;const p=f[i],x=f[s];c&&(r=(p-c[i])/3,f[`cp1${i}`]=p-r,f[`cp1${s}`]=x-r*t[h]),d&&(r=(d[i]-p)/3,f[`cp2${i}`]=p+r,f[`cp2${s}
139`]=x+r*t[h])}}function Z3(e,t="x"){const i=jv(t),s=e.length,l=Array(s).fill(0),r=Array(s);let c,f,d,h=wa(e,0);for(c=0;c<s;++c)if(f=d,d=h,h=wa(e,c+1),!!d){if(h){const p=h[t]-d[t];l[c]=p!==0?(h[i]-d[i])/p:0}r[c]=f?h?_n(l[c-1])!==_n(l[c])?0:(l[c-1]+l[c])/2:l[c-1]:l[c]}X3(e,l,r),K3(e,r,t)}function Vr(e,t,i){return Math.max(Math.min(e,i),t)}function Q3(e,t){let i,s,l,r,c,f=Xn(e[0],t);for(i=0,s=e.length;i<s;++i)c=r,r=f,f=i<s-1&&Xn(e[i+1],t),r&&(l=e[i],c&&(l.cp1x=Vr(l.cp1x,t.left,t.right),l.cp1y=Vr(l.cp1y,t.top,t.bottom)),f&&(l.cp2x=Vr(l.cp2x,t.left,t.right),l.cp2y=Vr(l.cp2y,t.top,t.bottom)))}function J3(e,t,i,s,l){let r,c,f,d;if(t.spanGaps&&(e=e.filter(h=>!h.skip)),t.cubicInterpolationMode==="monotone")Z3(e,l);else{let h=s?e[e.length-1]:e[0];for(r=0,c=e.length;r<c;++r)f=e[r],d=W3(h,f,e[Math.min(r+1,c-(s?0:1))%c],t.tension),f.cp1x=d.previous.x,f.cp1y=d.previous.y,f.cp2x=d.next.x,f.cp2y=d.next.y,h=f}t.capBezierPoints&&Q3(e,i)}function Qh(){return typeof window<"u"&&typeof document<"u"}function Jh(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Ec(e,t,i){let s;return typeof e=="string"?(s=parseInt(e,10),e.indexOf("%")!==-1&&(s=s/100*t.parentNode[i])):s=e,s}const qc=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function tD(e,t){return qc(e).getPropertyValue(t)}const eD=["top","right","bottom","left"];function ps(e,t,i){const s={};i=i?"-"+i:"";for(let l=0;l<4;l++){const r=eD[l];s[r]=parseFloat(e[t+"-"+r+i])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}const nD=(e,t,i)=>(e>0||t>0)&&(!i||!i.shadowRoot);function iD(e,t){const i=e.touches,s=i&&i.length?i[0]:e,{offsetX:l,offsetY:r}=s;let c=!1,f,d;if(nD(l,r,e.target))f=l,d=r;else{const h=t.getBoundingClientRect();f=s.clientX-h.left,d=s.clientY-h.top,c=!0}return{x:f,y:d,box:c}}function rs(e,t){if("native"in e)return e;const{canvas:i,currentDevicePixelRatio:s}=t,l=qc(i),r=l.boxSizing==="border-box",c=ps(l,"padding"),f=ps(l,"border","width"),{x:d,y:h,box:p}=iD(e,i),x=c.left+(p&&f.left),y=c.top+(p&&f.top);let{width:v,height:_}=t;return r&&(v-=c.width+f.width,_-=c.height+f.height),{x:Math.round((d-x)/v*i.width/s),y:Math.round((h-y)/_*i.height/s)}}function sD(e,t,i){let s,l;if(t===void 0||i===void 0){const r=e&&Jh(e);if(!r)t=e.clientWidth,i=e.clientHeight;else{const c=r.getBoundingClientRect(),f=qc(r),d=ps(f,"border","width"),h=ps(f,"padding");t=c.width-h.width-d.width,i=c.height-h.height-d.height,s=Ec(f.maxWidth,r,"clientWidth"),l=Ec(f.maxHeight,r,"clientHeight")}}return{width:t,height:i,maxWidth:s||Sc,maxHeight:l||Sc}}const Yr=e=>Math.round(e*10)/10;function aD(e,t,i,s){const l=qc(e),r=ps(l,"margin"),c=Ec(l.maxWidth,e,"clientWidth")||Sc,f=Ec(l.maxHeight,e,"clientHeight")||Sc,d=sD(e,t,i);let{width:h,height:p}=d;if(l.boxSizing==="content-box"){const y=ps(l,"border","width"),v=ps(l,"padding");h-=v.width+y.width,p-=v.height+y.height}return h=Math.max(0,h-r.width),p=Math.max(0,s?h/s:p-r.height),h=Yr(Math.min(h,c,d.maxWidth)),p=Yr(Math.min(p,f,d.maxHeight)),h&&!p&&(p=Yr(h/2)),(t!==void 0||i!==void 0)&&s&&d.height&&p>d.height&&(p=d.height,h=Yr(Math.floor(p*s))),{width:h,height:p}}function m0(e,t,i){const s=t||1,l=Math.floor(e.height*s),r=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const c=e.canvas;return c.style&&(i||!c.style.height&&!c.style.width)&&(c.style.height=`${e.height}px`,c.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||c.height!==l||c.width!==r?(e.currentDevicePixelRatio=s,c.height=l,c.width=r,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}const lD=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Qh()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function x0(e,t){const i=tD(e,t),s=i&&i.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}function cs(e,t,i,s){return{x:e.x+i*(t.x-e.x),y:e.y+i*(t.y-e.y)}}function oD(e,t,i,s){return{x:e.x+i*(t.x-e.x),y:s==="middle"?i<.5?e.y:t.y:s==="after"?i<1?e.y:t.y:i>0?t.y:e.y}}function rD(e,t,i,s){const l={x:e.cp2x,y:e.cp2y},r={x:t.cp1x,y:t.cp1y},c=cs(e,l,i),f=cs(l,r,i),d=cs(r,t,i),h=cs(c,f,i),p=cs(f,d,i);return cs(h,p,i)}const cD=function(e,t){return{x(i){return e+e+t-i}
vendor: 29,884 bytes, lines 139-144
139,setWidth(i){t=i},textAlign(i){return i==="center"?i:i==="right"?"left":"right"},xPlus(i,s){return i-s},leftForLtr(i,s){return i-s}}},uD=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function va(e,t,i){return e?cD(t,i):uD()}function Nv(e,t){let i,s;(t==="ltr"||t==="rtl")&&(i=e.canvas.style,s=[i.getPropertyValue("direction"),i.getPropertyPriority("direction")],i.setProperty("direction",t,"important"),e.prevTextDirection=s)}function $v(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Lv(e){return e==="angle"?{between:io,compare:f3,normalize:Ae}:{between:Gn,compare:(t,i)=>t-i,normalize:t=>t}}function y0({start:e,end:t,count:i,loop:s,style:l}){return{start:e%i,end:t%i,loop:s&&(t-e+1)%i===0,style:l}}function fD(e,t,i){const{property:s,start:l,end:r}=i,{between:c,normalize:f}=Lv(s),d=t.length;let{start:h,end:p,loop:x}=e,y,v;if(x){for(h+=d,p+=d,y=0,v=d;y<v&&c(f(t[h%d][s]),l,r);++y)h--,p--;h%=d,p%=d}return p<h&&(p+=d),{start:h,end:p,loop:x,style:e.style}}function zv(e,t,i){if(!i)return[e];const{property:s,start:l,end:r}=i,c=t.length,{compare:f,between:d,normalize:h}=Lv(s),{start:p,end:x,loop:y,style:v}=fD(e,t,i),_=[];let S=!1,T=null,w,M,D;const N=()=>d(l,D,w)&&f(l,D)!==0,j=()=>f(r,w)===0||d(r,D,w),P=()=>S||N(),I=()=>!S||j();for(let q=p,Y=p;q<=x;++q)M=t[q%c],!M.skip&&(w=h(M[s]),w!==D&&(S=d(w,l,r),T===null&&P()&&(T=f(w,l)===0?q:Y),T!==null&&I()&&(_.push(y0({start:T,end:q,loop:y,count:c,style:v})),T=null),Y=q,D=w));return T!==null&&_.push(y0({start:T,end:x,loop:y,count:c,style:v})),_}function Bv(e,t){const i=[],s=e.segments;for(let l=0;l<s.length;l++){const r=zv(s[l],e.points,t);r.length&&i.push(...r)}return i}function dD(e,t,i,s){let l=0,r=t-1;if(i&&!s)for(;l<t&&!e[l].skip;)l++;for(;l<t&&e[l].skip;)l++;for(l%=t,i&&(r+=l);r>l&&e[r%t].skip;)r--;return r%=t,{start:l,end:r}}function hD(e,t,i,s){const l=e.length,r=[];let c=t,f=e[t],d;for(d=t+1;d<=i;++d){const h=e[d%l];h.skip||h.stop?f.skip||(s=!1,r.push({start:t%l,end:(d-1)%l,loop:s}),t=c=h.stop?d:null):(c=d,f.skip&&(t=d)),f=h}return c!==null&&r.push({start:t%l,end:c%l,loop:s}),r}function gD(e,t){const i=e.points,s=e.options.spanGaps,l=i.length;if(!l)return[];const r=!!e._loop,{start:c,end:f}=dD(i,l,r,s);if(s===!0)return b0(e,[{start:c,end:f,loop:r}],i,t);const d=f<c?f+l:f,h=!!e._fullLoop&&c===0&&f===l-1;return b0(e,hD(i,c,d,h),i,t)}function b0(e,t,i,s){return!s||!s.setContext||!i?t:pD(e,t,i,s)}function pD(e,t,i,s){const l=e._chart.getContext(),r=v0(e.options),{_datasetIndex:c,options:{spanGaps:f}}=e,d=i.length,h=[];let p=r,x=t[0].start,y=x;function v(_,S,T,w){const M=f?-1:1;if(_!==S){for(_+=d;i[_%d].skip;)_-=M;for(;i[S%d].skip;)S+=M;_%d!==S%d&&(h.push({start:_%d,end:S%d,loop:T,style:w}),p=w,x=S%d)}}for(const _ of t){x=f?x:_.start;let S=i[x%d],T;for(y=x+1;y<=_.end;y++){const w=i[y%d];T=v0(s.setContext(Li(l,{type:"segment",p0:S,p1:w,p0DataIndex:(y-1)%d,p1DataIndex:y%d,datasetIndex:c}))),mD(T,p)&&v(x,y-1,_.loop,p),S=w,p=T}x<y-1&&v(x,y-1,_.loop,p)}return h}function v0(e){return{backgroundColor:e.backgroundColor,borderCapStyle:e.borderCapStyle,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderJoinStyle:e.borderJoinStyle,borderWidth:e.borderWidth,borderColor:e.borderColor}}function mD(e,t){if(!t)return!1;const i=[],s=function(l,r){return Gh(r)?(i.includes(r)||i.push(r),i.indexOf(r)):r};return JSON.stringify(e,s)!==JSON.stringify(t,s)}function Gr(e,t,i){return e.options.clip?e[i]:t[i]}function xD(e,t){const{xScale:i,yScale:s}=e;return i&&s?{left:Gr(i,t,"left"),right:Gr(i,t,"right"),top:Gr(s,t,"top"),bottom:Gr(s,t,"bottom")}:t}function Pv(e,t){const i=t._clip;if(i.disabled)return!1;const s=xD(t,e.chartArea);return{left:i.left===!1?0:s.left-(i.left===!0?0:i.left),right:i.right===!1?e.width:s.right+(i.right===!0?0:i.right),top:i.top===!1?0:s.top-(i.top===!0?0:i.top),bottom:i.bottom===!1?e.height:s.bottom+(i.bottom===!0?0:i.bottom)}}/*!
140 * Chart.js v4.5.0
141 * https://www.chartjs.org
142 * (c) 2025 Chart.js Contributors
143 * Released under the MIT License
144 */class yD{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,i,s,l){const r=i.listeners[l],c=i.duration;r.forEach(f=>f({chart:t,initial:i.initial,numSteps:c,currentStep:Math.min(s-i.start,c)}))}_refresh(){this._request||(this._running=!0,this._request=_v.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let i=0;this._charts.forEach((s,l)=>{if(!s.running||!s.items.length)return;const r=s.items;let c=r.length-1,f=!1,d;for(;c>=0;--c)d=r[c],d._active?(d._total>s.duration&&(s.duration=d._total),d.tick(t),f=!0):(r[c]=r[r.length-1],r.pop());f&&(l.draw(),this._notify(l,s,t,"progress")),r.length||(s.running=!1,this._notify(l,s,t,"complete"),s.initial=!1),i+=r.length}),this._lastDate=t,i===0&&(this._running=!1)}_getAnims(t){const i=this._charts;let s=i.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},i.set(t,s)),s}listen(t,i,s){this._getAnims(t).listeners[i].push(s)}add(t,i){!i||!i.length||this._getAnims(t).items.push(...i)}has(t){return this._getAnims(t).items.length>0}start(t){const i=this._charts.get(t);i&&(i.running=!0,i.start=Date.now(),i.duration=i.items.reduce((s,l)=>Math.max(s,l._duration),0),this._refresh())}running(t){if(!this._running)return!1;const i=this._charts.get(t);return!(!i||!i.running||!i.items.length)}stop(t){const i=this._charts.get(t);if(!i||!i.items.length)return;const s=i.items;let l=s.length-1;for(;l>=0;--l)s[l].cancel();i.items=[],this._notify(t,i,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var qn=new yD;const _0="transparent",bD={boolean(e,t,i){return i>.5?t:e},color(e,t,i){const s=f0(e||_0),l=s.valid&&f0(t||_0);return l&&l.valid?l.mix(s,i).hexString():t},number(e,t,i){return e+(t-e)*i}};class vD{constructor(t,i,s,l){const r=i[s];l=Il([t.to,l,r,t.from]);const c=Il([t.from,r,l]);this._active=!0,this._fn=t.fn||bD[t.type||typeof c],this._easing=Kl[t.easing]||Kl.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=i,this._prop=s,this._from=c,this._to=l,this._promises=void 0}active(){return this._active}update(t,i,s){if(this._active){this._notify(!1);const l=this._target[this._prop],r=s-this._start,c=this._duration-r;this._start=s,this._duration=Math.floor(Math.max(c,t.duration)),this._total+=r,this._loop=!!t.loop,this._to=Il([t.to,i,l,t.from]),this._from=Il([t.from,l,i])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const i=t-this._start,s=this._duration,l=this._prop,r=this._from,c=this._loop,f=this._to;let d;if(this._active=r!==f&&(c||i<s),!this._active){this._target[l]=f,this._notify(!0);return}if(i<0){this._target[l]=r;return}d=i/s%2,d=c&&d>1?2-d:d,d=this._easing(Math.min(1,Math.max(0,d))),this._target[l]=this._fn(r,f,d)}wait(){const t=this._promises||(this._promises=[]);return new Promise((i,s)=>{t.push({res:i,rej:s})})}_notify(t){const i=t?"res":"rej",s=this._promises||[];for(let l=0;l<s.length;l++)s[l][i]()}}class Hv{constructor(t,i){this._chart=t,this._properties=new Map,this.configure(i)}configure(t){if(!At(t))return;const i=Object.keys(Xt.animation),s=this._properties;Object.getOwnPropertyNames(t).forEach(l=>{const r=t[l];if(!At(r))return;const c={};for(const f of i)c[f]=r[f];(Wt(r.properties)&&r.properties||[l]).forEach(f=>{(f===l||!s.has(f))&&s.set(f,c)})})}_animateOptions(t,i){const s=i.options,l=kD(t,s);if(!l)return[];const r=this._createAnimations(l,s);return s.$shared&&_D(t.options.$animations,s).then(()=>{t.options=s},()=>{}),r}_createAnimations(t,i){const s=this._properties,l=[],r=t.$animations||(t.$animations={}),c=Object.keys(i),f=Date.now();let d;for(d=c.length-1;d>=0;--d){const h=c[d];if(h.charAt(0)==="$")continue;if(h==="options"){l.push(...this._animateOptions(t,i));continue}const p=i[h];let x=r[h];const y=s.get(h);if(x)if(y&&x.active()){x.update(y,p,f);continue}else x.cancel();if(!y||!y.duration){t[h]=p;continue}r[h]=x=new vD(y,t,h,p),l.push(x)}return l}update(t,i){if(this._properties.size===0){Object.assign(t,i);return}const s=this._createAnimations(t,i);if(s.length)return qn.add(this._chart,s),!0}}function _D(e,t){const i=[],s=Object.keys(t);for(let l=0;l<s.length;l++){const r=e[s[l]];r&&r.active()&&i.push(r.wait())}return Promise.all(i)}function kD(e,t){if(!t)return;let i=e.options;if(!i){e.options=t;return}return i.$shared&&(e.options=i=Object.assign({},i,{$shared:!1,$animations:{}})),i}function k0(e,t){const i=e&&e.options||{},s=i.reverse,l=i.min===void 0?t:0,r=i.max===void 0?t:0;return{start:s?r:l,end:s?l:r}}function SD(e,t,i){if(i===!1)return!1;const s=k0(e,i),l=k0(t,i);return{top:l.end,right:s.end,bottom:l.start,left:s.start}}function TD(e){let t,i,s,l;return At(e)?(t=e.top,i=e.right,s=e.bottom,l=e.left):t=i=s=l=e,{top:t,right:i,bottom:s,left:l,disabled:e===!1}}function Fv(e,t){const i=[],s=e._getSortedDatasetMetas(t);let l,r;for(l=0,r=s.length;l<r;++l)i.push(s[l].index);return i}function S0(e,t,i,s={}){const l=e.keys,r=s.mode==="single";let c,f,d,h;if(t===null)return;let p=!1;for(c=0,f=l.length;c<f;++c){if(d=+l[c],d===i){if(p=!0,s.all)continue;break}h=e.values[d],te(h)&&(r||t===0||_n(t)===_n(h))&&(t+=h)}return!p&&!s.all?0:t}function ED(e,t){const{iScale:i,vScale:s}=t,l=i.axis==="x"?"x":"y",r=s.axis==="x"?"x":"y",c=Object.keys(e),f=new Array(c.length);let d,h,p;for(d=0,h=c.length;d<h;++d)p=c[d],f[d]={[l]:p,[r]:e[p]};return f}function Hd(e,t){const i=e&&e.options.stacked;return i||i===void 0&&t.stack!==void 0}function wD(e,t,i){return`${e.id}.${t.id}.${i.stack||i.type}`}function AD(e){const{min:t,max:i,minDefined:s,maxDefined:l}=e.getUserBounds();return{min:s?t:Number.NEGATIVE_INFINITY,max:l?i:Number.POSITIVE_INFINITY}}function MD(e,t,i){const s=e[t]||(e[t]={});return s[i]||(s[i]={})}function T0(e,t,i,s){for(const l of t.getMatchingVisibleMetas(s).reverse()){const r=e[l.index];if(i&&r>0||!i&&r<0)return l.index}return null}function E0(e,t){const{chart:i,_cachedMeta:s}=e,l=i._stacks||(i._stacks={}),{iScale:r,vScale:c,index:f}=s,d=r.axis,h=c.axis,p=wD(r,c,s),x=t.length;let y;for(let v=0;v<x;++v){const _=t[v],{[d]:S,[h]:T}=_,w=_._stacks||(_._stacks={});y=w[h]=MD(l,p,S),y[f]=T,y._top=T0(y,c,!0,s.type),y._bottom=T0(y,c,!1,s.type);const M=y._visualValues||(y._visualValues={});M[f]=T}}function Fd(e,t){const i=e.scales;return Object.keys(i).filter(s=>i[s].axis===t).shift()}function CD(e,t){return Li(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function DD(e,t,i){return Li(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:i,index:t,mode:"default",type:"data"})}function Rl(e,t){const i=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){t=t||e._parsed;for(const l of t){const r=l._stacks;if(!r||r[s]===void 0||r[s][i]===void 0)return;delete r[s][i],r[s]._visualValues!==void 0&&r[s]._visualValues[i]!==void 0&&delete r[s]._visualValues[i]}}}const Id=e=>e==="reset"||e==="none",w0=(e,t)=>t?e:Object.assign({},e),OD=(e,t,i)=>e&&!t.hidden&&t._stacked&&{keys:Fv(i,!0),values:null};class zi{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,i){this.chart=t,this._ctx=t.ctx,this.index=i,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Hd(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Rl(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,i=this._cachedMeta,s=this.getDataset(),l=(x,y,v,_)=>x==="x"?y:x==="r"?_:v,r=i.xAxisID=xt(s.xAxisID,Fd(t,"x")),c=i.yAxisID=xt(s.yAxisID,Fd(t,"y")),f=i.rAxisID=xt(s.rAxisID,Fd(t,"r")),d=i.indexAxis,h=i.iAxisID=l(d,r,c,f),p=i.vAxisID=l(d,c,r,f);i.xScale=this.getScaleForId(r),i.yScale=this.getScaleForId(c),i.rScale=this.getScaleForId(f),i.iScale=this.getScaleForId(h),i.vScale=this.getScaleForId(p)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const i=this._cachedMeta;return t===i.iScale?i.vScale:i.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&r0(this._data,this),t._stacked&&Rl(t)}_dataCheck(){const t=this.getDataset(),i=t.data||(t.data=[]),s=this._data;if(At(i)){const l=this._cachedMeta;this._data=ED(i,l)}else if(s!==i){if(s){r0(s,this);const l=this._cachedMeta;Rl(l),l._parsed=[]}i&&Object.isExtensible(i)&&p3(i,this),this._syncList=[],this._data=i}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const i=this._cachedMeta,s=this.getDataset();let l=!1;this._dataCheck();const r=i._stacked;i._stacked=Hd(i.vScale,i),i.stack!==s.stack&&(l=!0,Rl(i),i.stack=s.stack),this._resyncElements(t),(l||r!==i._stacked)&&(E0(this,i._parsed),i._stacked=Hd(i.vScale,i))}configure(){const t=this.chart.config,i=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),i,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,i){const{_cachedMeta:s,_data:l}=this,{iScale:r,_stacked:c}=s,f=r.axis;let d=t===0&&i===l.length?!0:s._sorted,h=t>0&&s._parsed[t-1],p,x,y;if(this._parsing===!1)s._parsed=l,s._sorted=!0,y=l;else{Wt(l[t])?y=this.parseArrayData(s,l,t,i):At(l[t])?y=this.parseObjectData(s,l,t,i):y=this.parsePrimitiveData(s,l,t,i);const v=()=>x[f]===null||h&&x[f]<h[f];for(p=0;p<i;++p)s._parsed[p+t]=x=y[p],d&&(v()&&(d=!1),h=x);s._sorted=d}c&&E0(this,y)}parsePrimitiveData(t,i,s,l){const{iScale:r,vScale:c}=t,f=r.axis,d=c.axis,h=r.getLabels(),p=r===c,x=new Array(l);let y,v,_;for(y=0,v=l;y<v;++y)_=y+s,x[y]={[f]:p||r.parse(h[_],_),[d]:c.parse(i[_],_)};return x}parseArrayData(t,i,s,l){const{xScale:r,yScale:c}=t,f=new Array(l);let d,h,p,x;for(d=0,h=l;d<h;++d)p=d+s,x=i[p],f[d]={x:r.parse(x[0],p),y:c.parse(x[1],p)};return f}parseObjectData(t,i,s,l){const{xScale:r,yScale:c}=t,{xAxisKey:f="x",yAxisKey:d="y"}=this._parsing,h=new Array(l);let p,x,y,v;for(p=0,x=l;p<x;++p)y=p+s,v=i[y],h[p]={x:r.parse(ji(v,f),y),y:c.parse(ji(v,d),y)};return h}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,i,s){const l=this.chart,r=this._cachedMeta,c=i[t.axis],f={keys:Fv(l,!0),values:i._stacks[t.axis]._visualValues};return S0(f,c,r.index,{mode:s})}updateRangeFromParsed(t,i,s,l){const r=s[i.axis];let c=r===null?NaN:r;const f=l&&s._stacks[i.axis];l&&f&&(l.values=f,c=S0(l,r,this._cachedMeta.index)),t.min=Math.min(t.min,c),t.max=Math.max(t.max,c)}getMinMax(t,i){const s=this._cachedMeta,l=s._parsed,r=s._sorted&&t===s.iScale,c=l.length,f=this._getOtherScale(t),d=OD(i,s,this.chart),h={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:p,max:x}=AD(f);let y,v;function _(){v=l[y];const S=v[f.axis];return!te(v[t.axis])||p>S||x<S}for(y=0;y<c&&!(!_()&&(this.updateRangeFromParsed(h,t,v,d),r));++y);if(r){for(y=c-1;y>=0;--y)if(!_()){this.updateRangeFromParsed(h,t,v,d);break}}return h}getAllParsedValues(t){const i=this._cachedMeta._parsed,s=[];let l,r,c;for(l=0,r=i.length;l<r;++l)c=i[l][t.axis],te(c)&&s.push(c);return s}getMaxOverflow(){return!1}getLabelAndValue(t){const i=this._cachedMeta,s=i.iScale,l=i.vScale,r=this.getParsed(t);return{label:s?""+s.getLabelForValue(r[s.axis]):"",value:l?""+l.getLabelForValue(r[l.axis]):""}}_update(t){const i=this._cachedMeta;this.update(t||"default"),i._clip=TD(xt(this.options.clip,SD(i.xScale,i.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,i=this.chart,s=this._cachedMeta,l=s.data||[],r=i.chartArea,c=[],f=this._drawStart||0,d=this._drawCount||l.length-f,h=this.options.drawActiveElementsOnTop;let p;for(s.dataset&&s.dataset.draw(t,r,f,d),p=f;p<f+d;++p){const x=l[p];x.hidden||(x.active&&h?c.push(x):x.draw(t,r))}for(p=0;p<c.length;++p)c[p].draw(t,r)}getStyle(t,i){const s=i?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(t||0,s)}getContext(t,i,s){const l=this.getDataset();let r;if(t>=0&&t<this._cachedMeta.data.length){const c=this._cachedMeta.data[t];r=c.$context||(c.$context=DD(this.getContext(),t,c)),r.parsed=this.getParsed(t),r.raw=l.data[t],r.index=r.dataIndex=t}else r=this.$context||(this.$context=CD(this.chart.getContext(),this.index)),r.dataset=l,r.index=r.datasetIndex=this.index;return r.active=!!i,r.mode=s,r}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,i){return this._resolveElementOptions(this.dataElementType.id,i,t)}_resolveElementOptions(t,i="default",s){const l=i==="active",r=this._cachedDataOpts,c=t+"-"+i,f=r[c],d=this.enableOptionSharing&&no(s);if(f)return w0(f,d);const h=this.chart.config,p=h.datasetElementScopeKeys(this._type,t),x=l?[`${t}Hover`,"hover",t,""]:[t,""],y=h.getOptionScopes(this.getDataset(),p),v=Object.keys(Xt.elements[t]),_=()=>this.getContext(s,l,i),S=h.resolveNamedOptions(y,v,_,x);return S.$shared&&(S.$shared=d,r[c]=Object.freeze(w0(S,d))),S}_resolveAnimations(t,i,s){const l=this.chart,r=this._cachedDataOpts,c=`animation-${i}`,f=r[c];if(f)return f;let d;if(l.options.animation!==!1){const p=this.chart.config,x=p.datasetAnimationScopeKeys(this._type,i),y=p.getOptionScopes(this.getDataset(),x);d=p.createResolver(y,this.getContext(t,s,i))}const h=new Hv(l,d&&d.animations);return d&&d._cacheable&&(r[c]=Object.freeze(h)),h}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,i){return!i||Id(t)||this.chart._animationsDisabled}_getSharedOptions(t,i){const s=this.resolveDataElementOptions(t,i),l=this._sharedOptions,r=this.getSharedOptions(s),c=this.includeOptions(i,r)||r!==l;return this.updateSharedOptions(r,i,s),{sharedOptions:r,includeOptions:c}}updateElement(t,i,s,l){Id(l)?Object.assign(t,s):this._resolveAnimations(i,l).update(t,s)}updateSharedOptions(t,i,s){t&&!Id(i)&&this._resolveAnimations(void 0,i).update(t,s)}_setStyle(t,i,s,l){t.active=l;const r=this.getStyle(i,l);this._resolveAnimations(i,s,l).update(t,{options:!l&&this.getSharedOptions(r)||r})}removeHoverStyle(t,i,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,i,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const i=this._data,s=this._cachedMeta.data;for(const[f,d,h]of this._syncList)this[f](d,h);this._syncList=[];const l=s.length,r=i.length,c=Math.min(r,l);c&&this.parse(0,c),r>l?this._insertElements(l,r-l,t):r<l&&this._removeElements(r,l-r)}_insertElements(t,i,s=!0){const l=this._cachedMeta,r=l.data,c=t+i;let f;const d=h=>{for(h.length+=i,f=h.length-1;f>=c;f--)h[f]=h[f-i]};for(d(r),f=t;f<c;++f)r[f]=new this.dataElementType;this._parsing&&d(l._parsed),this.parse(t,i),s&&this.updateElements(r,t,i,"reset")}updateElements(t,i,s,l){}_removeElements(t,i){const s=this._cachedMeta;if(this._parsing){const l=s._parsed.splice(t,i);s._stacked&&Rl(s,l)}s.data.splice(t,i)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[i,s,l]=t;this[i](s,l)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,i){i&&this._sync(["_removeElements",t,i]);const s=arguments.length-2;s&&this._sync(["_insertElements",t,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function RD(e,t){if(!e._cache.$bar){const i=e.getMatchingVisibleMetas(t);let s=[];for(let l=0,r=i.length;l<r;l++)s=s.concat(i[l].controller.getAllParsedValues(e));e._cache.$bar=vv(s.sort((l,r)=>l-r))}return e._cache.$bar}function jD(e){const t=e.iScale,i=RD(t,e.type);let s=t._length,l,r,c,f;const d=()=>{c===32767||c===-32768||(no(f)&&(s=Math.min(s,Math.abs(c-f)||s)),f=c)};for(l=0,r=i.length;l<r;++l)c=t.getPixelForValue(i[l]),d();for(f=void 0,l=0,r=t.ticks.length;l<r;++l)c=t.getPixelForTick(l),d();return s}function ND(e,t,i,s){const l=i.barThickness;let r,c;return Et(l)?(r=t.min*i.categoryPercentage,c=i.barPercentage):(r=l*s,c=1),{chunk:r/s,ratio:c,start:t.pixels[e]-r/2}}function $D(e,t,i,s){const l=t.pixels,r=l[e];let c=e>0?l[e-1]:null,f=e<l.length-1?l[e+1]:null;const d=i.categoryPercentage;c===null&&(c=r-(f===null?t.end-t.start:f-r)),f===null&&(f=r+r-c);const h=r-(r-Math.min(c,f))/2*d;return{chunk:Math.abs(f-c)/2*d/s,ratio:i.barPercentage,start:h}}function LD(e,t,i,s){const l=i.parse(e[0],s),r=i.parse(e[1],s),c=Math.min(l,r),f=Math.max(l,r);let d=c,h=f;Math.abs(c)>Math.abs(f)&&(d=f,h=c),t[i.axis]=h,t._custom={barStart:d,barEnd:h,start:l,end:r,min:c,max:f}}function Iv(e,t,i,s){return Wt(e)?LD(e,t,i,s):t[i.axis]=i.parse(e,s),t}function A0(e,t,i,s){const l=e.iScale,r=e.vScale,c=l.getLabels(),f=l===r,d=[];let h,p,x,y;for(h=i,p=i+s;h<p;++h)y=t[h],x={},x[l.axis]=f||l.parse(c[h],h),d.push(Iv(y,x,r,h));return d}function Ud(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function zD(e,t,i){return e!==0?_n(e):(t.isHorizontal()?1:-1)*(t.min>=i?1:-1)}function BD(e){let t,i,s,l,r;return e.horizontal?(t=e.base>e.x,i="left",s="right"):(t=e.base<e.y,i="bottom",s="top"),t?(l="end",r="start"):(l="start",r="end"),{start:i,end:s,reverse:t,top:l,bottom:r}}function PD(e,t,i,s){let l=t.borderSkipped;const r={};if(!l){e.borderSkipped=r;return}if(l===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:c,end:f,reverse:d,top:h,bottom:p}=BD(e);l==="middle"&&i&&(e.enableBorderRadius=!0,(i._top||0)===s?l=h:(i._bottom||0)===s?l=p:(r[M0(p,c,f,d)]=!0,l=h)),r[M0(l,c,f,d)]=!0,e.borderSkipped=r}function M0(e,t,i,s){return s?(e=HD(e,t,i),e=C0(e,i,t)):e=C0(e,t,i),e}function HD(e,t,i){return e===t?i:e===i?t:e}function C0(e,t,i){return e==="start"?t:e==="end"?i:e}function FD(e,{inflateAmount:t},i){e.inflateAmount=t==="auto"?i===1?.33:0:t}class Uv extends zi{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,i,s,l){return A0(t,i,s,l)}parseArrayData(t,i,s,l){return A0(t,i,s,l)}parseObjectData(t,i,s,l){const{iScale:r,vScale:c}=t,{xAxisKey:f="x",yAxisKey:d="y"}=this._parsing,h=r.axis==="x"?f:d,p=c.axis==="x"?f:d,x=[];let y,v,_,S;for(y=s,v=s+l;y<v;++y)S=i[y],_={},_[r.axis]=r.parse(ji(S,h),y),x.push(Iv(ji(S,p),_,c,y));return x}updateRangeFromParsed(t,i,s,l){super.updateRangeFromParsed(t,i,s,l);const r=s._custom;r&&i===this._cachedMeta.vScale&&(t.min=Math.min(t.min,r.min),t.max=Math.max(t.max,r.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const i=this._cachedMeta,{iScale:s,vScale:l}=i,r=this.getParsed(t),c=r._custom,f=Ud(c)?"["+c.start+", "+c.end+"]":""+l.getLabelForValue(r[l.axis]);return{label:""+s.getLabelForValue(r[s.axis]),value:f}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const i=this._cachedMeta;this.updateElements(i.data,0,i.data.length,t)}updateElements(t,i,s,l){const r=l==="reset",{index:c,_cachedMeta:{vScale:f}}=this,d=f.getBasePixel(),h=f.isHorizontal(),p=this._getRuler(),{sharedOptions:x,includeOptions:y}=this._getSharedOptions(i,l);for(let v=i;v<i+s;v++){const _=this.getParsed(v),S=r||Et(_[f.axis])?{base:d,head:d}:this._calculateBarValuePixels(v),T=this._calculateBarIndexPixels(v,p),w=(_._stacks||{})[f.axis],M={horizontal:h,base:S.base,enableBorderRadius:!w||Ud(_._custom)||c===w._top||c===w._bottom,x:h?S.head:T.center,y:h?T.center:S.head,height:h?T.size:Math.abs(S.size),width:h?Math.abs(S.size):T.size};y&&(M.options=x||this.resolveDataElementOptions(v,t[v].active?"active":l));const D=M.options||t[v].options;PD(M,D,w,c),FD(M,D,p.ratio),this.updateElement(t[v],v,M,l)}}_getStacks(t,i){const{iScale:s}=this._cachedMeta,l=s.getMatchingVisibleMetas(this._type).filter(p=>p.controller.options.grouped),r=s.options.stacked,c=[],f=this._cachedMeta.controller.getParsed(i),d=f&&f[s.axis],h=p=>{const x=p._parsed.find(v=>v[s.axis]===d),y=x&&x[p.vScale.axis];if(Et(y)||isNaN(y))return!0};for(const p of l)if(!(i!==void 0&&h(p))&&((r===!1||c.indexOf(p.stack)===-1||r===void 0&&p.stack===void 0)&&c.push(p.stack),p.index===t))break;return c.length||c.push(void 0),c}_getStackCount(t){return this._getStacks(void 0,t).length}_getAxisCount(){return this._getAxis().length}getFirstScaleIdForIndexAxis(){const t=this.chart.scales,i=this.chart.options.indexAxis;return Object.keys(t).filter(s=>t[s].axis===i).shift()}_getAxis(){const t={},i=this.getFirstScaleIdForIndexAxis();for(const s of this.chart.data.datasets)t[xt(this.chart.options.indexAxis==="x"?s.xAxisID:s.yAxisID,i)]=!0;return Object.keys(t)}_getStackIndex(t,i,s){const l=this._getStacks(t,s),r=i!==void 0?l.indexOf(i):-1;return r===-1?l.length-1:r}_getRuler(){const t=this.options,i=this._cachedMeta,s=i.iScale,l=[];let r,c;for(r=0,c=i.data.length;r<c;++r)l.push(s.getPixelForValue(this.getParsed(r)[s.axis],r));const f=t.barThickness;return{min:f||jD(i),pixels:l,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:t.grouped,ratio:f?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:i,_stacked:s,index:l},options:{base:r,minBarLength:c}}=this,f=r||0,d=this.getParsed(t),h=d._custom,p=Ud(h);let x=d[i.axis],y=0,v=s?this.applyStack(i,d,s):x,_,S;v!==x&&(y=v-x,v=x),p&&(x=h.barStart,v=h.barEnd-h.barStart,x!==0&&_n(x)!==_n(h.barEnd)&&(y=0),y+=x);const T=!Et(r)&&!p?r:y;let w=i.getPixelForValue(T);if(this.chart.getDataVisibility(t)?_=i.getPixelForValue(y+v):_=w,S=_-w,Math.abs(S)<c){S=zD(S,i,f)*c,x===f&&(w-=S/2);const M=i.getPixelForDecimal(0),D=i.getPixelForDecimal(1),N=Math.min(M,D),j=Math.max(M,D);w=Math.max(Math.min(w,j),N),_=w+S,s&&!p&&(d._stacks[i.axis]._visualValues[l]=i.getValueForPixel(_)-i.getValueForPixel(w))}if(w===i.getPixelForValue(f)){const M=_n(S)*i.getLineWidthForValue(f)/2;w+=M,S-=M}return{size:S,base:w,head:_,center:_+S/2}}_calculateBarIndexPixels(t,i){const s=i.scale,l=this.options,r=l.skipNull,c=xt(l.maxBarThickness,1/0);let f,d;const h=this._getAxisCount();if(i.grouped){const p=r?this._getStackCount(t):i.stackCount,x=l.barThickness==="flex"?$D(t,i,l,p*h):ND(t,i,l,p*h),y=this.chart.options.indexAxis==="x"?this.getDataset().xAxisID:this.getDataset().yAxisID,v=this._getAxis().indexOf(xt(y,this.getFirstScaleIdForIndexAxis())),_=this._getStackIndex(this.index,this._cachedMeta.stack,r?t:void 0)+v;f=x.start+x.chunk*_+x.chunk/2,d=Math.min(c,x.chunk*x.ratio)}else f=s.getPixelForValue(this.getParsed(t)[s.axis],t),d=Math.min(c,i.min*i.ratio);return{base:f-d/2,head:f+d/2,center:f,size:d}}draw(){const t=this._cachedMeta,i=t.vScale,s=t.data,l=s.length;let r=0;for(;r<l;++r)this.getParsed(r)[i.axis]!==null&&!s[r].hidden&&s[r].draw(this._ctx)}}class ID extends zi{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,i,s,l){const r=super.parsePrimitiveData(t,i,s,l);for(let c=0;c<r.length;c++)r[c]._custom=this.resolveDataElementOptions(c+s).radius;return r}parseArrayData(t,i,s,l){const r=super.parseArrayData(t,i,s,l);for(let c=0;c<r.length;c++){const f=i[s+c];r[c]._custom=xt(f[2],this.resolveDataElementOptions(c+s).radius)}return r}parseObjectData(t,i,s,l){const r=super.parseObjectData(t,i,s,l);for(let c=0;c<r.length;c++){const f=i[s+c];r[c]._custom=xt(f&&f.r&&+f.r,this.resolveDataElementOptions(c+s).radius)}return r}getMaxOverflow(){const t=this._cachedMeta.data;let i=0;for(let s=t.length-1;s>=0;--s)i=Math.max(i,t[s].size(this.resolveDataElementOptions(s))/2);return i>0&&i}getLabelAndValue(t){const i=this._cachedMeta,s=this.chart.data.labels||[],{xScale:l,yScale:r}=i,c=this.getParsed(t),f=l.getLabelForValue(c.x),d=r.getLabelForValue(c.y),h=c._custom;return{label:s[t]||"",value:"("+f+", "+d+(h?", "+h:"")+")"}}update(t){const i=this._cachedMeta.data;this.updateElements(i,0,i.length,t)}updateElements(t,i,s,l){const r=l==="reset",{iScale:c,vScale:f}=this._cachedMeta,{sharedOptions:d,includeOptions:h}=this._getSharedOptions(i,l),p=c.axis,x=f.axis;for(let y=i;y<i+s;y++){const v=t[y],_=!r&&this.getParsed(y),S={},T=S[p]=r?c.getPixelForDecimal(.5):c.getPixelForValue(_[p]),w=S[x]=r?f.getBasePixel():f.getPixelForValue(_[x]);S.skip=isNaN(T)||isNaN(w),h&&(S.options=d||this.resolveDataElementOptions(y,v.active?"active":l),r&&(S.options.radius=0)),this.updateElement(v,y,S,l)}}resolveDataElementOptions(t,i){const s=this.getParsed(t);let l=super.resolveDataElementOptions(t,i);l.$shared&&(l=Object.assign({},l,{$shared:!1}));
vendor: 4,393 bytes, line 144
144const r=l.radius;return i!=="active"&&(l.radius=0),l.radius+=xt(s&&s._custom,r),l}}function UD(e,t,i){let s=1,l=1,r=0,c=0;if(t<Vt){const f=e,d=f+t,h=Math.cos(f),p=Math.sin(f),x=Math.cos(d),y=Math.sin(d),v=(D,N,j)=>io(D,f,d,!0)?1:Math.max(N,N*i,j,j*i),_=(D,N,j)=>io(D,f,d,!0)?-1:Math.min(N,N*i,j,j*i),S=v(0,h,x),T=v(ie,p,y),w=_(Ot,h,x),M=_(Ot+ie,p,y);s=(S-w)/2,l=(T-M)/2,r=-(S+w)/2,c=-(T+M)/2}return{ratioX:s,ratioY:l,offsetX:r,offsetY:c}}class tg extends zi{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const i=t.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:s,color:l}}=t.legend.options;return i.labels.map((r,c)=>{const d=t.getDatasetMeta(0).controller.getStyle(c);return{text:r,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:l,lineWidth:d.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(c),index:c}})}return[]}},onClick(t,i,s){s.chart.toggleDataVisibility(i.index),s.chart.update()}}}};constructor(t,i){super(t,i),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,i){const s=this.getDataset().data,l=this._cachedMeta;if(this._parsing===!1)l._parsed=s;else{let r=d=>+s[d];if(At(s[t])){const{key:d="value"}=this._parsing;r=h=>+ji(s[h],d)}let c,f;for(c=t,f=t+i;c<f;++c)l._parsed[c]=r(c)}}_getRotation(){return fn(this.options.rotation-90)}_getCircumference(){return fn(this.options.circumference)}_getRotationExtents(){let t=Vt,i=-Vt;for(let s=0;s<this.chart.data.datasets.length;++s)if(this.chart.isDatasetVisible(s)&&this.chart.getDatasetMeta(s).type===this._type){const l=this.chart.getDatasetMeta(s).controller,r=l._getRotation(),c=l._getCircumference();t=Math.min(t,r),i=Math.max(i,r+c)}return{rotation:t,circumference:i-t}}update(t){const i=this.chart,{chartArea:s}=i,l=this._cachedMeta,r=l.data,c=this.getMaxBorderWidth()+this.getMaxOffset(r)+this.options.spacing,f=Math.max((Math.min(s.width,s.height)-c)/2,0),d=Math.min(t3(this.options.cutout,f),1),h=this._getRingWeight(this.index),{circumference:p,rotation:x}=this._getRotationExtents(),{ratioX:y,ratioY:v,offsetX:_,offsetY:S}=UD(x,p,d),T=(s.width-c)/y,w=(s.height-c)/v,M=Math.max(Math.min(T,w)/2,0),D=pv(this.options.radius,M),N=Math.max(D*d,0),j=(D-N)/this._getVisibleDatasetWeightTotal();this.offsetX=_*D,this.offsetY=S*D,l.total=this.calculateTotal(),this.outerRadius=D-j*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-j*h,0),this.updateElements(r,0,r.length,t)}_circumference(t,i){const s=this.options,l=this._cachedMeta,r=this._getCircumference();return i&&s.animation.animateRotate||!this.chart.getDataVisibility(t)||l._parsed[t]===null||l.data[t].hidden?0:this.calculateCircumference(l._parsed[t]*r/Vt)}updateElements(t,i,s,l){const r=l==="reset",c=this.chart,f=c.chartArea,h=c.options.animation,p=(f.left+f.right)/2,x=(f.top+f.bottom)/2,y=r&&h.animateScale,v=y?0:this.innerRadius,_=y?0:this.outerRadius,{sharedOptions:S,includeOptions:T}=this._getSharedOptions(i,l);let w=this._getRotation(),M;for(M=0;M<i;++M)w+=this._circumference(M,r);for(M=i;M<i+s;++M){const D=this._circumference(M,r),N=t[M],j={x:p+this.offsetX,y:x+this.offsetY,startAngle:w,endAngle:w+D,circumference:D,outerRadius:_,innerRadius:v};T&&(j.options=S||this.resolveDataElementOptions(M,N.active?"active":l)),w+=D,this.updateElement(N,M,j,l)}}calculateTotal(){const t=this._cachedMeta,i=t.data;let s=0,l;for(l=0;l<i.length;l++){const r=t._parsed[l];r!==null&&!isNaN(r)&&this.chart.getDataVisibility(l)&&!i[l].hidden&&(s+=Math.abs(r))}return s}calculateCircumference(t){const i=this._cachedMeta.total;return i>0&&!isNaN(t)?Vt*(Math.abs(t)/i):0}getLabelAndValue(t){const i=this._cachedMeta,s=this.chart,l=s.data.labels||[],r=po(i._parsed[t],s.options.locale);return{label:l[t]||"",value:r}}getMaxBorderWidth(t){let i=0;const s=this.chart;let l,r,c,f,d;
vendor: 4,202 bytes, line 144
144if(!t){for(l=0,r=s.data.datasets.length;l<r;++l)if(s.isDatasetVisible(l)){c=s.getDatasetMeta(l),t=c.data,f=c.controller;break}}if(!t)return 0;for(l=0,r=t.length;l<r;++l)d=f.resolveDataElementOptions(l),d.borderAlign!=="inner"&&(i=Math.max(i,d.borderWidth||0,d.hoverBorderWidth||0));return i}getMaxOffset(t){let i=0;for(let s=0,l=t.length;s<l;++s){const r=this.resolveDataElementOptions(s);i=Math.max(i,r.offset||0,r.hoverOffset||0)}return i}_getRingWeightOffset(t){let i=0;for(let s=0;s<t;++s)this.chart.isDatasetVisible(s)&&(i+=this._getRingWeight(s));return i}_getRingWeight(t){return Math.max(xt(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class qD extends zi{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const i=this._cachedMeta,{dataset:s,data:l=[],_dataset:r}=i,c=this.chart._animationsDisabled;let{start:f,count:d}=Sv(i,l,c);this._drawStart=f,this._drawCount=d,Tv(i)&&(f=0,d=l.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!r._decimated,s.points=l;const h=this.resolveDatasetElementOptions(t);this.options.showLine||(h.borderWidth=0),h.segment=this.options.segment,this.updateElement(s,void 0,{animated:!c,options:h},t),this.updateElements(l,f,d,t)}updateElements(t,i,s,l){const r=l==="reset",{iScale:c,vScale:f,_stacked:d,_dataset:h}=this._cachedMeta,{sharedOptions:p,includeOptions:x}=this._getSharedOptions(i,l),y=c.axis,v=f.axis,{spanGaps:_,segment:S}=this.options,T=Ta(_)?_:Number.POSITIVE_INFINITY,w=this.chart._animationsDisabled||r||l==="none",M=i+s,D=t.length;let N=i>0&&this.getParsed(i-1);for(let j=0;j<D;++j){const P=t[j],I=w?P:{};if(j<i||j>=M){I.skip=!0;continue}const q=this.getParsed(j),Y=Et(q[v]),K=I[y]=c.getPixelForValue(q[y],j),et=I[v]=r||Y?f.getBasePixel():f.getPixelForValue(d?this.applyStack(f,q,d):q[v],j);I.skip=isNaN(K)||isNaN(et)||Y,I.stop=j>0&&Math.abs(q[y]-N[y])>T,S&&(I.parsed=q,I.raw=h.data[j]),x&&(I.options=p||this.resolveDataElementOptions(j,P.active?"active":l)),w||this.updateElement(P,j,I,l),N=q}}getMaxOverflow(){const t=this._cachedMeta,i=t.dataset,s=i.options&&i.options.borderWidth||0,l=t.data||[];if(!l.length)return s;const r=l[0].size(this.resolveDataElementOptions(0)),c=l[l.length-1].size(this.resolveDataElementOptions(l.length-1));return Math.max(s,r,c)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}class qv extends zi{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const i=t.data;if(i.labels.length&&i.datasets.length){const{labels:{pointStyle:s,color:l}}=t.legend.options;return i.labels.map((r,c)=>{const d=t.getDatasetMeta(0).controller.getStyle(c);return{text:r,fillStyle:d.backgroundColor,strokeStyle:d.borderColor,fontColor:l,lineWidth:d.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(c),index:c}})}return[]}},onClick(t,i,s){s.chart.toggleDataVisibility(i.index),s.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,i){super(t,i),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const i=this._cachedMeta,s=this.chart,l=s.data.labels||[],r=po(i._parsed[t].r,s.options.locale);return{label:l[t]||"",value:r}}parseObjectData(t,i,s,l){return Rv.bind(this)(t,i,s,l)}update(t){const i=this._cachedMeta.data;this._updateRadius(),this.updateElements(i,0,i.length,t)}getMinMax(){const t=this._cachedMeta,i={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((s,l)=>{const r=this.getParsed(l).r;!isNaN(r)&&this.chart.getDataVisibility(l)&&(r<i.min&&(i.min=r),r>i.max&&(i.max=r))}),i}
vendor: 6,125 bytes, line 144
144_updateRadius(){const t=this.chart,i=t.chartArea,s=t.options,l=Math.min(i.right-i.left,i.bottom-i.top),r=Math.max(l/2,0),c=Math.max(s.cutoutPercentage?r/100*s.cutoutPercentage:1,0),f=(r-c)/t.getVisibleDatasetCount();this.outerRadius=r-f*this.index,this.innerRadius=this.outerRadius-f}updateElements(t,i,s,l){const r=l==="reset",c=this.chart,d=c.options.animation,h=this._cachedMeta.rScale,p=h.xCenter,x=h.yCenter,y=h.getIndexAngle(0)-.5*Ot;let v=y,_;const S=360/this.countVisibleElements();for(_=0;_<i;++_)v+=this._computeAngle(_,l,S);for(_=i;_<i+s;_++){const T=t[_];let w=v,M=v+this._computeAngle(_,l,S),D=c.getDataVisibility(_)?h.getDistanceFromCenterForValue(this.getParsed(_).r):0;v=M,r&&(d.animateScale&&(D=0),d.animateRotate&&(w=M=y));const N={x:p,y:x,innerRadius:0,outerRadius:D,startAngle:w,endAngle:M,options:this.resolveDataElementOptions(_,T.active?"active":l)};this.updateElement(T,_,N,l)}}countVisibleElements(){const t=this._cachedMeta;let i=0;return t.data.forEach((s,l)=>{!isNaN(this.getParsed(l).r)&&this.chart.getDataVisibility(l)&&i++}),i}_computeAngle(t,i,s){return this.chart.getDataVisibility(t)?fn(this.resolveDataElementOptions(t,i).angle||s):0}}class VD extends tg{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}}class YD extends zi{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const i=this._cachedMeta.vScale,s=this.getParsed(t);return{label:i.getLabels()[t],value:""+i.getLabelForValue(s[i.axis])}}parseObjectData(t,i,s,l){return Rv.bind(this)(t,i,s,l)}update(t){const i=this._cachedMeta,s=i.dataset,l=i.data||[],r=i.iScale.getLabels();if(s.points=l,t!=="resize"){const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0);const f={_loop:!0,_fullLoop:r.length===l.length,options:c};this.updateElement(s,void 0,f,t)}this.updateElements(l,0,l.length,t)}updateElements(t,i,s,l){const r=this._cachedMeta.rScale,c=l==="reset";for(let f=i;f<i+s;f++){const d=t[f],h=this.resolveDataElementOptions(f,d.active?"active":l),p=r.getPointPositionForValue(f,this.getParsed(f).r),x=c?r.xCenter:p.x,y=c?r.yCenter:p.y,v={x,y,angle:p.angle,skip:isNaN(x)||isNaN(y),options:h};this.updateElement(d,f,v,l)}}}class GD extends zi{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const i=this._cachedMeta,s=this.chart.data.labels||[],{xScale:l,yScale:r}=i,c=this.getParsed(t),f=l.getLabelForValue(c.x),d=r.getLabelForValue(c.y);return{label:s[t]||"",value:"("+f+", "+d+")"}}update(t){const i=this._cachedMeta,{data:s=[]}=i,l=this.chart._animationsDisabled;let{start:r,count:c}=Sv(i,s,l);if(this._drawStart=r,this._drawCount=c,Tv(i)&&(r=0,c=s.length),this.options.showLine){this.datasetElementType||this.addElements();const{dataset:f,_dataset:d}=i;f._chart=this.chart,f._datasetIndex=this.index,f._decimated=!!d._decimated,f.points=s;const h=this.resolveDatasetElementOptions(t);h.segment=this.options.segment,this.updateElement(f,void 0,{animated:!l,options:h},t)}else this.datasetElementType&&(delete i.dataset,this.datasetElementType=!1);this.updateElements(s,r,c,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,i,s,l){const r=l==="reset",{iScale:c,vScale:f,_stacked:d,_dataset:h}=this._cachedMeta,p=this.resolveDataElementOptions(i,l),x=this.getSharedOptions(p),y=this.includeOptions(l,x),v=c.axis,_=f.axis,{spanGaps:S,segment:T}=this.options,w=Ta(S)?S:Number.POSITIVE_INFINITY,M=this.chart._animationsDisabled||r||l==="none";let D=i>0&&this.getParsed(i-1);for(let N=i;N<i+s;++N){const j=t[N],P=this.getParsed(N),I=M?j:{},q=Et(P[_]),Y=I[v]=c.getPixelForValue(P[v],N),K=I[_]=r||q?f.getBasePixel():f.getPixelForValue(d?this.applyStack(f,P,d):P[_],N);I.skip=isNaN(Y)||isNaN(K)||q,I.stop=N>0&&Math.abs(P[v]-D[v])>w,T&&(I.parsed=P,I.raw=h.data[N]),y&&(I.options=x||this.resolveDataElementOptions(N,j.active?"active":l)),M||this.updateElement(j,N,I,l),D=P}this.updateSharedOptions(x,l,p)}getMaxOverflow(){const t=this._cachedMeta,i=t.data||[];if(!this.options.showLine){let f=0;for(let d=i.length-1;d>=0;--d)f=Math.max(f,i[d].size(this.resolveDataElementOptions(d))/2);return f>0&&f}const s=t.dataset,l=s.options&&s.options.borderWidth||0;if(!i.length)return l;const r=i[0].size(this.resolveDataElementOptions(0)),c=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(l,r,c)/2}}var WD=Object.freeze({__proto__:null,BarController:Uv,BubbleController:ID,DoughnutController:tg,LineController:qD,PieController:VD,PolarAreaController:qv,RadarController:YD,ScatterController:GD});function as(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class eg{static override(t){Object.assign(eg.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return as()}parse(){return as()}format(){return as()}add(){return as()}diff(){return as()}startOf(){return as()}endOf(){return as()}}var XD={_date:eg};function KD(e,t,i,s){const{controller:l,data:r,_sorted:c}=e,f=l._cachedMeta.iScale,d=e.dataset&&e.dataset.options?e.dataset.options.spanGaps:null;if(f&&t===f.axis&&t!=="r"&&c&&r.length){const h=f._reversePixels?h3:Wn;if(s){if(l._sharedOptions){const p=r[0],x=typeof p.getRange=="function"&&p.getRange(t);if(x){const y=h(r,t,i-x),v=h(r,t,i+x);return{lo:y.lo,hi:v.hi}}}}else{const p=h(r,t,i);if(d){const{vScale:x}=l._cachedMeta,{_parsed:y}=e,v=y.slice(0,p.lo+1).reverse().findIndex(S=>!Et(S[x.axis]));p.lo-=Math.max(0,v);const _=y.slice(p.hi).findIndex(S=>!Et(S[x.axis]));p.hi+=Math.max(0,_)}return p}}return{lo:0,hi:r.length-1}}function Vc(e,t,i,s,l){const r=e.getSortedVisibleDatasetMetas(),c=i[t];for(let f=0,d=r.length;f<d;++f){const{index:h,data:p}=r[f],{lo:x,hi:y}=KD(r[f],t,c,l);for(let v=x;
vendor: 11,558 bytes, line 144
144v<=y;++v){const _=p[v];_.skip||s(_,h,v)}}}function ZD(e){const t=e.indexOf("x")!==-1,i=e.indexOf("y")!==-1;return function(s,l){const r=t?Math.abs(s.x-l.x):0,c=i?Math.abs(s.y-l.y):0;return Math.sqrt(Math.pow(r,2)+Math.pow(c,2))}}function qd(e,t,i,s,l){const r=[];return!l&&!e.isPointInArea(t)||Vc(e,i,t,function(f,d,h){!l&&!Xn(f,e.chartArea,0)||f.inRange(t.x,t.y,s)&&r.push({element:f,datasetIndex:d,index:h})},!0),r}function QD(e,t,i,s){let l=[];function r(c,f,d){const{startAngle:h,endAngle:p}=c.getProps(["startAngle","endAngle"],s),{angle:x}=yv(c,{x:t.x,y:t.y});io(x,h,p)&&l.push({element:c,datasetIndex:f,index:d})}return Vc(e,i,t,r),l}function JD(e,t,i,s,l,r){let c=[];const f=ZD(i);let d=Number.POSITIVE_INFINITY;function h(p,x,y){const v=p.inRange(t.x,t.y,l);if(s&&!v)return;const _=p.getCenterPoint(l);if(!(!!r||e.isPointInArea(_))&&!v)return;const T=f(t,_);T<d?(c=[{element:p,datasetIndex:x,index:y}],d=T):T===d&&c.push({element:p,datasetIndex:x,index:y})}return Vc(e,i,t,h),c}function Vd(e,t,i,s,l,r){return!r&&!e.isPointInArea(t)?[]:i==="r"&&!s?QD(e,t,i,l):JD(e,t,i,s,l,r)}function D0(e,t,i,s,l){const r=[],c=i==="x"?"inXRange":"inYRange";let f=!1;return Vc(e,i,t,(d,h,p)=>{d[c]&&d[c](t[i],l)&&(r.push({element:d,datasetIndex:h,index:p}),f=f||d.inRange(t.x,t.y,l))}),s&&!f?[]:r}var tO={modes:{index(e,t,i,s){const l=rs(t,e),r=i.axis||"x",c=i.includeInvisible||!1,f=i.intersect?qd(e,l,r,s,c):Vd(e,l,r,!1,s,c),d=[];return f.length?(e.getSortedVisibleDatasetMetas().forEach(h=>{const p=f[0].index,x=h.data[p];x&&!x.skip&&d.push({element:x,datasetIndex:h.index,index:p})}),d):[]},dataset(e,t,i,s){const l=rs(t,e),r=i.axis||"xy",c=i.includeInvisible||!1;let f=i.intersect?qd(e,l,r,s,c):Vd(e,l,r,!1,s,c);if(f.length>0){const d=f[0].datasetIndex,h=e.getDatasetMeta(d).data;f=[];for(let p=0;p<h.length;++p)f.push({element:h[p],datasetIndex:d,index:p})}return f},point(e,t,i,s){const l=rs(t,e),r=i.axis||"xy",c=i.includeInvisible||!1;return qd(e,l,r,s,c)},nearest(e,t,i,s){const l=rs(t,e),r=i.axis||"xy",c=i.includeInvisible||!1;return Vd(e,l,r,i.intersect,s,c)},x(e,t,i,s){const l=rs(t,e);return D0(e,l,"x",i.intersect,s)},y(e,t,i,s){const l=rs(t,e);return D0(e,l,"y",i.intersect,s)}}};const Vv=["left","top","right","bottom"];function jl(e,t){return e.filter(i=>i.pos===t)}function O0(e,t){return e.filter(i=>Vv.indexOf(i.pos)===-1&&i.box.axis===t)}function Nl(e,t){return e.sort((i,s)=>{const l=t?s:i,r=t?i:s;return l.weight===r.weight?l.index-r.index:l.weight-r.weight})}function eO(e){const t=[];let i,s,l,r,c,f;for(i=0,s=(e||[]).length;i<s;++i)l=e[i],{position:r,options:{stack:c,stackWeight:f=1}}=l,t.push({index:i,box:l,pos:r,horizontal:l.isHorizontal(),weight:l.weight,stack:c&&r+c,stackWeight:f});return t}function nO(e){const t={};for(const i of e){const{stack:s,pos:l,stackWeight:r}=i;if(!s||!Vv.includes(l))continue;const c=t[s]||(t[s]={count:0,placed:0,weight:0,size:0});c.count++,c.weight+=r}return t}function iO(e,t){const i=nO(e),{vBoxMaxWidth:s,hBoxMaxHeight:l}=t;let r,c,f;for(r=0,c=e.length;r<c;++r){f=e[r];const{fullSize:d}=f.box,h=i[f.stack],p=h&&f.stackWeight/h.weight;f.horizontal?(f.width=p?p*s:d&&t.availableWidth,f.height=l):(f.width=s,f.height=p?p*l:d&&t.availableHeight)}return i}function sO(e){const t=eO(e),i=Nl(t.filter(h=>h.box.fullSize),!0),s=Nl(jl(t,"left"),!0),l=Nl(jl(t,"right")),r=Nl(jl(t,"top"),!0),c=Nl(jl(t,"bottom")),f=O0(t,"x"),d=O0(t,"y");return{fullSize:i,leftAndTop:s.concat(r),rightAndBottom:l.concat(d).concat(c).concat(f),chartArea:jl(t,"chartArea"),vertical:s.concat(l).concat(d),horizontal:r.concat(c).concat(f)}}function R0(e,t,i,s){return Math.max(e[i],t[i])+Math.max(e[s],t[s])}function Yv(e,t){e.top=Math.max(e.top,t.top),e.left=Math.max(e.left,t.left),e.bottom=Math.max(e.bottom,t.bottom),e.right=Math.max(e.right,t.right)}function aO(e,t,i,s){const{pos:l,box:r}=i,c=e.maxPadding;if(!At(l)){i.size&&(e[l]-=i.size);const x=s[i.stack]||{size:0,count:1};x.size=Math.max(x.size,i.horizontal?r.height:r.width),i.size=x.size/x.count,e[l]+=i.size}r.getPadding&&Yv(c,r.getPadding());const f=Math.max(0,t.outerWidth-R0(c,e,"left","right")),d=Math.max(0,t.outerHeight-R0(c,e,"top","bottom")),h=f!==e.w,p=d!==e.h;return e.w=f,e.h=d,i.horizontal?{same:h,other:p}:{same:p,other:h}}function lO(e){const t=e.maxPadding;function i(s){const l=Math.max(t[s]-e[s],0);return e[s]+=l,l}e.y+=i("top"),e.x+=i("left"),i("right"),i("bottom")}function oO(e,t){const i=t.maxPadding;function s(l){const r={left:0,top:0,right:0,bottom:0};return l.forEach(c=>{r[c]=Math.max(t[c],i[c])}),r}return s(e?["left","right"]:["top","bottom"])}function Ul(e,t,i,s){const l=[];let r,c,f,d,h,p;for(r=0,c=e.length,h=0;r<c;++r){f=e[r],d=f.box,d.update(f.width||t.w,f.height||t.h,oO(f.horizontal,t));const{same:x,other:y}=aO(t,i,f,s);h|=x&&l.length,p=p||y,d.fullSize||l.push(f)}return h&&Ul(l,t,i,s)||p}function Wr(e,t,i,s,l){e.top=i,e.left=t,e.right=t+s,e.bottom=i+l,e.width=s,e.height=l}function j0(e,t,i,s){const l=i.padding;let{x:r,y:c}=t;for(const f of e){const d=f.box,h=s[f.stack]||{placed:0,weight:1},p=f.stackWeight/h.weight||1;if(f.horizontal){const x=t.w*p,y=h.size||d.height;no(h.start)&&(c=h.start),d.fullSize?Wr(d,l.left,c,i.outerWidth-l.right-l.left,y):Wr(d,t.left+h.placed,c,x,y),h.start=c,h.placed+=x,c=d.bottom}else{const x=t.h*p,y=h.size||d.width;no(h.start)&&(r=h.start),d.fullSize?Wr(d,r,l.top,y,i.outerHeight-l.bottom-l.top):Wr(d,r,t.top+h.placed,y,x),h.start=r,h.placed+=x,r=d.right}}t.x=r,t.y=c}var Me={addBox(e,t){e.boxes||(e.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(i){t.draw(i)}}]},e.boxes.push(t)},removeBox(e,t){const i=e.boxes?e.boxes.indexOf(t):-1;i!==-1&&e.boxes.splice(i,1)},configure(e,t,i){t.fullSize=i.fullSize,t.position=i.position,t.weight=i.weight},update(e,t,i,s){if(!e)return;const l=De(e.options.layout.padding),r=Math.max(t-l.width,0),c=Math.max(i-l.height,0),f=sO(e.boxes),d=f.vertical,h=f.horizontal;$t(e.boxes,S=>{typeof S.beforeLayout=="function"&&S.beforeLayout()});const p=d.reduce((S,T)=>T.box.options&&T.box.options.display===!1?S:S+1,0)||1,x=Object.freeze({outerWidth:t,outerHeight:i,padding:l,availableWidth:r,availableHeight:c,vBoxMaxWidth:r/2/p,hBoxMaxHeight:c/2}),y=Object.assign({},l);Yv(y,De(s));const v=Object.assign({maxPadding:y,w:r,h:c,x:l.left,y:l.top},l),_=iO(d.concat(h),x);Ul(f.fullSize,v,x,_),Ul(d,v,x,_),Ul(h,v,x,_)&&Ul(d,v,x,_),lO(v),j0(f.leftAndTop,v,x,_),v.x+=v.w,v.y+=v.h,j0(f.rightAndBottom,v,x,_),e.chartArea={left:v.left,top:v.top,right:v.left+v.w,bottom:v.top+v.h,height:v.h,width:v.w},$t(f.chartArea,S=>{const T=S.box;Object.assign(T,e.chartArea),T.update(v.w,v.h,{left:0,top:0,right:0,bottom:0})})}};class Gv{acquireContext(t,i){}releaseContext(t){return!1}addEventListener(t,i,s){}removeEventListener(t,i,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,i,s,l){return i=Math.max(0,i||t.width),s=s||t.height,{width:i,height:Math.max(0,l?Math.floor(i/l):s)}}isAttached(t){return!0}updateConfig(t){}}class rO extends Gv{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const uc="$chartjs",cO={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},N0=e=>e===null||e==="";function uO(e,t){const i=e.style,s=e.getAttribute("height"),l=e.getAttribute("width");if(e[uc]={initial:{height:s,width:l,style:{display:i.display,height:i.height,width:i.width}}},i.display=i.display||"block",i.boxSizing=i.boxSizing||"border-box",N0(l)){const r=x0(e,"width");r!==void 0&&(e.width=r)}if(N0(s))if(e.style.height==="")e.height=e.width/(t||2);else{const r=x0(e,"height");r!==void 0&&(e.height=r)}return e}const Wv=lD?{passive:!0}:!1;function fO(e,t,i){e&&e.addEventListener(t,i,Wv)}function dO(e,t,i){e&&e.canvas&&e.canvas.removeEventListener(t,i,Wv)}function hO(e,t){const i=cO[e.type]||e.type,{x:s,y:l}=rs(e,t);return{type:i,chart:t,native:e,x:s!==void 0?s:null,y:l!==void 0?l:null}}function wc(e,t){for(const i of e)if(i===t||i.contains(t))return!0}function gO(e,t,i){const s=e.canvas,l=new MutationObserver(r=>{let c=!1;for(const f of r)c=c||wc(f.addedNodes,s),c=c&&!wc(f.removedNodes,s);c&&i()});return l.observe(document,{childList:!0,subtree:!0}),l}function pO(e,t,i){const s=e.canvas,l=new MutationObserver(r=>{let c=!1;for(const f of r)c=c||wc(f.removedNodes,s),c=c&&!wc(f.addedNodes,s);c&&i()});return l.observe(document,{childList:!0,subtree:!0}),l}const ao=new Map;let $0=0;function Xv(){const e=window.devicePixelRatio;e!==$0&&($0=e,ao.forEach((t,i)=>{i.currentDevicePixelRatio!==e&&t()}))}function mO(e,t){ao.size||window.addEventListener("resize",Xv),ao.set(e,t)}function xO(e){ao.delete(e),ao.size||window.removeEventListener("resize",Xv)}function yO(e,t,i){const s=e.canvas,l=s&&Jh(s);if(!l)return;const r=kv((f,d)=>{const h=l.clientWidth;i(f,d),h<l.clientWidth&&i()},window),c=new ResizeObserver(f=>{const d=f[0],h=d.contentRect.width,p=d.contentRect.height;h===0&&p===0||r(h,p)});return c.observe(l),mO(e,r),c}function Yd(e,t,i){i&&i.disconnect(),t==="resize"&&xO(e)}function bO(e,t,i){const s=e.canvas,l=kv(r=>{e.ctx!==null&&i(hO(r,e))},e);return fO(s,t,l),l}class vO extends Gv{acquireContext(t,i){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(uO(t,i),s):null}releaseContext(t){const i=t.canvas;if(!i[uc])return!1;const s=i[uc].initial;["height","width"].forEach(r=>{const c=s[r];Et(c)?i.removeAttribute(r):i.setAttribute(r,c)});const l=s.style||{};return Object.keys(l).forEach(r=>{i.style[r]=l[r]}),i.width=i.width,delete i[uc],!0}addEventListener(t,i,s){this.removeEventListener(t,i);const l=t.$proxies||(t.$proxies={}),c={attach:gO,detach:pO,resize:yO}[i]||bO;l[i]=c(t,i,s)}removeEventListener(t,i){const s=t.$proxies||(t.$proxies={}),l=s[i];if(!l)return;({attach:Yd,detach:Yd,resize:Yd}[i]||dO)(t,i,l),s[i]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,i,s,l){return aD(t,i,s,l)}isAttached(t){const i=t&&Jh(t);return!!(i&&i.isConnected)}}function _O(e){return!Qh()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?rO:vO}class ni{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){const{x:i,y:s}=this.getProps(["x","y"],t);return{x:i,y:s}}hasValue(){return Ta(this.x)&&Ta(this.y)}getProps(t,i){const s=this.$animations;if(!i||!s)return this;const l={};return t.forEach(r=>{l[r]=s[r]&&s[r].active()?s[r]._to:this[r]}),l}}function kO(e,t){const i=e.options.ticks,s=SO(e),l=Math.min(i.maxTicksLimit||s,s),r=i.major.enabled?EO(t):[],c=r.length,f=r[0],d=r[c-1],h=[];if(c>l)return wO(t,h,r,c/l),h;const p=TO(r,t,l);if(c>0){let x,y;const v=c>1?Math.round((d-f)/(c-1)):null;for(Xr(t,h,p,Et(v)?0:f-v,f),x=0,y=c-1;x<y;x++)Xr(t,h,p,r[x],r[x+1]);return Xr(t,h,p,d,Et(v)?t.length:d+v),h}return Xr(t,h,p),h}function SO(e){const t=e.options.offset,i=e._tickSize(),s=e._length/i+(t?0:1),l=e._maxLength/i;return Math.floor(Math.min(s,l))}function TO(e,t,i){const s=AO(e),l=t.length/i;if(!s)return Math.max(l,1);const r=r3(s);for(let c=0,f=r.length-1;c<f;c++){const d=r[c];if(d>l)return d}return Math.max(l,1)}function EO(e){const t=[];let i,s;for(i=0,s=e.length;i<s;i++)e[i].major&&t.push(i);return t}function wO(e,t,i,s){let l=0,r=i[0],c;for(s=Math.ceil(s),c=0;c<e.length;c++)c===r&&(t.push(e[c]),l++,r=i[l*s])}function Xr(e,t,i,s,l){const r=xt(s,0),c=Math.min(xt(l,e.length),e.length);let f=0,d,h,p;for(i=Math.ceil(i),l&&(d=l-s,i=d/Math.floor(d/i)),p=r;p<0;
vendor: 42,069 bytes, line 144
144)f++,p=Math.round(r+f*i);for(h=Math.max(r,0);h<c;h++)h===p&&(t.push(e[h]),f++,p=Math.round(r+f*i))}function AO(e){const t=e.length;let i,s;if(t<2)return!1;for(s=e[0],i=1;i<t;++i)if(e[i]-e[i-1]!==s)return!1;return s}const MO=e=>e==="left"?"right":e==="right"?"left":e,L0=(e,t,i)=>t==="top"||t==="left"?e[t]+i:e[t]-i,z0=(e,t)=>Math.min(t||e,e);function B0(e,t){const i=[],s=e.length/t,l=e.length;let r=0;for(;r<l;r+=s)i.push(e[Math.floor(r)]);return i}function CO(e,t,i){const s=e.ticks.length,l=Math.min(t,s-1),r=e._startPixel,c=e._endPixel,f=1e-6;let d=e.getPixelForTick(l),h;if(!(i&&(s===1?h=Math.max(d-r,c-d):t===0?h=(e.getPixelForTick(1)-d)/2:h=(d-e.getPixelForTick(l-1))/2,d+=l<t?h:-h,d<r-f||d>c+f)))return d}function DO(e,t){$t(e,i=>{const s=i.gc,l=s.length/2;let r;if(l>t){for(r=0;r<l;++r)delete i.data[s[r]];s.splice(0,l)}})}function $l(e){return e.drawTicks?e.tickLength:0}function P0(e,t){if(!e.display)return 0;const i=ue(e.font,t),s=De(e.padding);return(Wt(e.text)?e.text.length:1)*i.lineHeight+s.height}function OO(e,t){return Li(e,{scale:t,type:"scale"})}function RO(e,t,i){return Li(e,{tick:i,index:t,type:"tick"})}function jO(e,t,i){let s=Yh(e);return(i&&t!=="right"||!i&&t==="right")&&(s=MO(s)),s}function NO(e,t,i,s){const{top:l,left:r,bottom:c,right:f,chart:d}=e,{chartArea:h,scales:p}=d;let x=0,y,v,_;const S=c-l,T=f-r;if(e.isHorizontal()){if(v=we(s,r,f),At(i)){const w=Object.keys(i)[0],M=i[w];_=p[w].getPixelForValue(M)+S-t}else i==="center"?_=(h.bottom+h.top)/2+S-t:_=L0(e,i,t);y=f-r}else{if(At(i)){const w=Object.keys(i)[0],M=i[w];v=p[w].getPixelForValue(M)-T+t}else i==="center"?v=(h.left+h.right)/2-T+t:v=L0(e,i,t);_=we(s,c,l),x=i==="left"?-ie:ie}return{titleX:v,titleY:_,maxWidth:y,rotation:x}}class vs extends ni{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,i){return t}getUserBounds(){let{_userMin:t,_userMax:i,_suggestedMin:s,_suggestedMax:l}=this;return t=We(t,Number.POSITIVE_INFINITY),i=We(i,Number.NEGATIVE_INFINITY),s=We(s,Number.POSITIVE_INFINITY),l=We(l,Number.NEGATIVE_INFINITY),{min:We(t,s),max:We(i,l),minDefined:te(t),maxDefined:te(i)}}getMinMax(t){let{min:i,max:s,minDefined:l,maxDefined:r}=this.getUserBounds(),c;if(l&&r)return{min:i,max:s};const f=this.getMatchingVisibleMetas();for(let d=0,h=f.length;d<h;++d)c=f[d].controller.getMinMax(this,t),l||(i=Math.min(i,c.min)),r||(s=Math.max(s,c.max));return i=r&&i>s?s:i,s=l&&i>s?i:s,{min:We(i,We(s,i)),max:We(s,We(i,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){qt(this.options.beforeUpdate,[this])}update(t,i,s){const{beginAtZero:l,grace:r,ticks:c}=this.options,f=c.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=i,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=z3(this,r,l),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const d=f<this.ticks.length;this._convertTicksToLabels(d?B0(this.ticks,f):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),c.display&&(c.autoSkip||c.source==="auto")&&(this.ticks=kO(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),d&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,i,s;this.isHorizontal()?(i=this.left,s=this.right):(i=this.top,s=this.bottom,t=!t),this._startPixel=i,this._endPixel=s,this._reversePixels=t,this._length=s-i,this._alignToPixels=this.options.alignToPixels}afterUpdate(){qt(this.options.afterUpdate,[this])}beforeSetDimensions(){qt(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){qt(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),qt(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){qt(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const i=this.options.ticks;let s,l,r;for(s=0,l=t.length;s<l;s++)r=t[s],r.label=qt(i.callback,[r.value,s,t],this)}afterTickToLabelConversion(){qt(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){qt(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,i=t.ticks,s=z0(this.ticks.length,t.ticks.maxTicksLimit),l=i.minRotation||0,r=i.maxRotation;let c=l,f,d,h;if(!this._isVisible()||!i.display||l>=r||s<=1||!this.isHorizontal()){this.labelRotation=l;return}const p=this._getLabelSizes(),x=p.widest.width,y=p.highest.height,v=ye(this.chart.width-x,0,this.maxWidth);f=t.offset?this.maxWidth/s:v/(s-1),x+6>f&&(f=v/(s-(t.offset?.5:1)),d=this.maxHeight-$l(t.grid)-i.padding-P0(t.title,this.chart.options.font),h=Math.sqrt(x*x+y*y),c=qh(Math.min(Math.asin(ye((p.highest.height+6)/f,-1,1)),Math.asin(ye(d/h,-1,1))-Math.asin(ye(y/h,-1,1)))),c=Math.max(l,Math.min(r,c))),this.labelRotation=c}afterCalculateLabelRotation(){qt(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){qt(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:i,options:{ticks:s,title:l,grid:r}}=this,c=this._isVisible(),f=this.isHorizontal();if(c){const d=P0(l,i.options.font);if(f?(t.width=this.maxWidth,t.height=$l(r)+d):(t.height=this.maxHeight,t.width=$l(r)+d),s.display&&this.ticks.length){const{first:h,last:p,widest:x,highest:y}=this._getLabelSizes(),v=s.padding*2,_=fn(this.labelRotation),S=Math.cos(_),T=Math.sin(_);if(f){const w=s.mirror?0:T*x.width+S*y.height;t.height=Math.min(this.maxHeight,t.height+w+v)}else{const w=s.mirror?0:S*x.width+T*y.height;t.width=Math.min(this.maxWidth,t.width+w+v)}this._calculatePadding(h,p,T,S)}}this._handleMargins(),f?(this.width=this._length=i.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=i.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,i,s,l){const{ticks:{align:r,padding:c},position:f}=this.options,d=this.labelRotation!==0,h=f!=="top"&&this.axis==="x";if(this.isHorizontal()){const p=this.getPixelForTick(0)-this.left,x=this.right-this.getPixelForTick(this.ticks.length-1);let y=0,v=0;d?h?(y=l*t.width,v=s*i.height):(y=s*t.height,v=l*i.width):r==="start"?v=i.width:r==="end"?y=t.width:r!=="inner"&&(y=t.width/2,v=i.width/2),this.paddingLeft=Math.max((y-p+c)*this.width/(this.width-p),0),this.paddingRight=Math.max((v-x+c)*this.width/(this.width-x),0)}else{let p=i.height/2,x=t.height/2;r==="start"?(p=0,x=t.height):r==="end"&&(p=i.height,x=0),this.paddingTop=p+c,this.paddingBottom=x+c}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){qt(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:i}=this.options;return i==="top"||i==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let i,s;for(i=0,s=t.length;i<s;i++)Et(t[i].label)&&(t.splice(i,1),s--,i--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const i=this.options.ticks.sampleSize;let s=this.ticks;i<s.length&&(s=B0(s,i)),this._labelSizes=t=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,i,s){const{ctx:l,_longestTextCache:r}=this,c=[],f=[],d=Math.floor(i/z0(i,s));let h=0,p=0,x,y,v,_,S,T,w,M,D,N,j;for(x=0;x<i;x+=d){if(_=t[x].label,S=this._resolveTickFontOptions(x),l.font=T=S.string,w=r[T]=r[T]||{data:{},gc:[]},M=S.lineHeight,D=N=0,!Et(_)&&!Wt(_))D=Tc(l,w.data,w.gc,D,_),N=M;else if(Wt(_))for(y=0,v=_.length;y<v;++y)j=_[y],!Et(j)&&!Wt(j)&&(D=Tc(l,w.data,w.gc,D,j),N+=M);c.push(D),f.push(N),h=Math.max(D,h),p=Math.max(N,p)}DO(r,i);const P=c.indexOf(h),I=f.indexOf(p),q=Y=>({width:c[Y]||0,height:f[Y]||0});return{first:q(0),last:q(i-1),widest:q(P),highest:q(I),widths:c,heights:f}}getLabelForValue(t){return t}getPixelForValue(t,i){return NaN}getValueForPixel(t){}getPixelForTick(t){const i=this.ticks;return t<0||t>i.length-1?null:this.getPixelForValue(i[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const i=this._startPixel+t*this._length;return d3(this._alignToPixels?ss(this.chart,i,0):i)}getDecimalForPixel(t){const i=(t-this._startPixel)/this._length;return this._reversePixels?1-i:i}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:i}=this;return t<0&&i<0?i:t>0&&i>0?t:0}getContext(t){const i=this.ticks||[];if(t>=0&&t<i.length){const s=i[t];return s.$context||(s.$context=RO(this.getContext(),t,s))}return this.$context||(this.$context=OO(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,i=fn(this.labelRotation),s=Math.abs(Math.cos(i)),l=Math.abs(Math.sin(i)),r=this._getLabelSizes(),c=t.autoSkipPadding||0,f=r?r.widest.width+c:0,d=r?r.highest.height+c:0;return this.isHorizontal()?d*s>f*l?f/s:d/l:d*l<f*s?d/s:f/l}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const i=this.axis,s=this.chart,l=this.options,{grid:r,position:c,border:f}=l,d=r.offset,h=this.isHorizontal(),x=this.ticks.length+(d?1:0),y=$l(r),v=[],_=f.setContext(this.getContext()),S=_.display?_.width:0,T=S/2,w=function(C){return ss(s,C,S)};let M,D,N,j,P,I,q,Y,K,et,nt,ut;if(c==="top")M=w(this.bottom),I=this.bottom-y,Y=M-T,et=w(t.top)+T,ut=t.bottom;else if(c==="bottom")M=w(this.top),et=t.top,ut=w(t.bottom)-T,I=M+T,Y=this.top+y;else if(c==="left")M=w(this.right),P=this.right-y,q=M-T,K=w(t.left)+T,nt=t.right;else if(c==="right")M=w(this.left),K=t.left,nt=w(t.right)-T,P=M+T,q=this.left+y;else if(i==="x"){if(c==="center")M=w((t.top+t.bottom)/2+.5);else if(At(c)){const C=Object.keys(c)[0],$=c[C];M=w(this.chart.scales[C].getPixelForValue($))}et=t.top,ut=t.bottom,I=M+T,Y=I+y}else if(i==="y"){if(c==="center")M=w((t.left+t.right)/2);else if(At(c)){const C=Object.keys(c)[0],$=c[C];M=w(this.chart.scales[C].getPixelForValue($))}P=M-T,q=P-y,K=t.left,nt=t.right}const G=xt(l.ticks.maxTicksLimit,x),z=Math.max(1,Math.ceil(x/G));for(D=0;D<x;D+=z){const C=this.getContext(D),$=r.setContext(C),W=f.setContext(C),Q=$.lineWidth,O=$.color,X=W.dash||[],it=W.dashOffset,st=$.tickWidth,at=$.tickColor,pt=$.tickBorderDash||[],ot=$.tickBorderDashOffset;N=CO(this,D,d),N!==void 0&&(j=ss(s,N,Q),h?P=q=K=nt=j:I=Y=et=ut=j,v.push({tx1:P,ty1:I,tx2:q,ty2:Y,x1:K,y1:et,x2:nt,y2:ut,width:Q,color:O,borderDash:X,borderDashOffset:it,tickWidth:st,tickColor:at,tickBorderDash:pt,tickBorderDashOffset:ot}))}return this._ticksLength=x,this._borderValue=M,v}_computeLabelItems(t){const i=this.axis,s=this.options,{position:l,ticks:r}=s,c=this.isHorizontal(),f=this.ticks,{align:d,crossAlign:h,padding:p,mirror:x}=r,y=$l(s.grid),v=y+p,_=x?-p:v,S=-fn(this.labelRotation),T=[];let w,M,D,N,j,P,I,q,Y,K,et,nt,ut="middle";if(l==="top")P=this.bottom-_,I=this._getXAxisLabelAlignment();else if(l==="bottom")P=this.top+_,I=this._getXAxisLabelAlignment();else if(l==="left"){const z=this._getYAxisLabelAlignment(y);I=z.textAlign,j=z.x}else if(l==="right"){const z=this._getYAxisLabelAlignment(y);I=z.textAlign,j=z.x}else if(i==="x"){if(l==="center")P=(t.top+t.bottom)/2+v;else if(At(l)){const z=Object.keys(l)[0],C=l[z];P=this.chart.scales[z].getPixelForValue(C)+v}I=this._getXAxisLabelAlignment()}else if(i==="y"){if(l==="center")j=(t.left+t.right)/2-v;else if(At(l)){const z=Object.keys(l)[0],C=l[z];j=this.chart.scales[z].getPixelForValue(C)}I=this._getYAxisLabelAlignment(y).textAlign}i==="y"&&(d==="start"?ut="top":d==="end"&&(ut="bottom"));const G=this._getLabelSizes();for(w=0,M=f.length;w<M;++w){D=f[w],N=D.label;const z=r.setContext(this.getContext(w));q=this.getPixelForTick(w)+r.labelOffset,Y=this._resolveTickFontOptions(w),K=Y.lineHeight,et=Wt(N)?N.length:1;const C=et/2,$=z.color,W=z.textStrokeColor,Q=z.textStrokeWidth;let O=I;c?(j=q,I==="inner"&&(w===M-1?O=this.options.reverse?"left":"right":w===0?O=this.options.reverse?"right":"left":O="center"),l==="top"?h==="near"||S!==0?nt=-et*K+K/2:h==="center"?nt=-G.highest.height/2-C*K+K:nt=-G.highest.height+K/2:h==="near"||S!==0?nt=K/2:h==="center"?nt=G.highest.height/2-C*K:nt=G.highest.height-et*K,x&&(nt*=-1),S!==0&&!z.showLabelBackdrop&&(j+=K/2*Math.sin(S))):(P=q,nt=(1-et)*K/2);let X;if(z.showLabelBackdrop){const it=De(z.backdropPadding),st=G.heights[w],at=G.widths[w];let pt=nt-it.top,ot=0-it.left;switch(ut){case"middle":pt-=st/2;break;case"bottom":pt-=st;break}switch(I){case"center":ot-=at/2;break;case"right":ot-=at;break;case"inner":w===M-1?ot-=at:w>0&&(ot-=at/2);break}X={left:ot,top:pt,width:at+it.width,height:st+it.height,color:z.backdropColor}}T.push({label:N,font:Y,textOffset:nt,options:{rotation:S,color:$,strokeColor:W,strokeWidth:Q,textAlign:O,textBaseline:ut,translation:[j,P],backdrop:X}})}return T}_getXAxisLabelAlignment(){const{position:t,ticks:i}=this.options;if(-fn(this.labelRotation))return t==="top"?"left":"right";let l="center";return i.align==="start"?l="left":i.align==="end"?l="right":i.align==="inner"&&(l="inner"),l}_getYAxisLabelAlignment(t){const{position:i,ticks:{crossAlign:s,mirror:l,padding:r}}=this.options,c=this._getLabelSizes(),f=t+r,d=c.widest.width;let h,p;return i==="left"?l?(p=this.right+r,s==="near"?h="left":s==="center"?(h="center",p+=d/2):(h="right",p+=d)):(p=this.right-f,s==="near"?h="right":s==="center"?(h="center",p-=d/2):(h="left",p=this.left)):i==="right"?l?(p=this.left+r,s==="near"?h="right":s==="center"?(h="center",p-=d/2):(h="left",p-=d)):(p=this.left+f,s==="near"?h="left":s==="center"?(h="center",p+=d/2):(h="right",p=this.right)):h="right",{textAlign:h,x:p}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,i=this.options.position;if(i==="left"||i==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(i==="top"||i==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:i},left:s,top:l,width:r,height:c}=this;i&&(t.save(),t.fillStyle=i,t.fillRect(s,l,r,c),t.restore())}getLineWidthForValue(t){const i=this.options.grid;if(!this._isVisible()||!i.display)return 0;const l=this.ticks.findIndex(r=>r.value===t);return l>=0?i.setContext(this.getContext(l)).lineWidth:0}drawGrid(t){const i=this.options.grid,s=this.ctx,l=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let r,c;const f=(d,h,p)=>{!p.width||!p.color||(s.save(),s.lineWidth=p.width,s.strokeStyle=p.color,s.setLineDash(p.borderDash||[]),s.lineDashOffset=p.borderDashOffset,s.beginPath(),s.moveTo(d.x,d.y),s.lineTo(h.x,h.y),s.stroke(),s.restore())};if(i.display)for(r=0,c=l.length;r<c;++r){const d=l[r];i.drawOnChartArea&&f({x:d.x1,y:d.y1},{x:d.x2,y:d.y2},d),i.drawTicks&&f({x:d.tx1,y:d.ty1},{x:d.tx2,y:d.ty2},{color:d.tickColor,width:d.tickWidth,borderDash:d.tickBorderDash,borderDashOffset:d.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:i,options:{border:s,grid:l}}=this,r=s.setContext(this.getContext()),c=s.display?r.width:0;if(!c)return;const f=l.setContext(this.getContext(0)).lineWidth,d=this._borderValue;let h,p,x,y;this.isHorizontal()?(h=ss(t,this.left,c)-c/2,p=ss(t,this.right,f)+f/2,x=y=d):(x=ss(t,this.top,c)-c/2,y=ss(t,this.bottom,f)+f/2,h=p=d),i.save(),i.lineWidth=r.width,i.strokeStyle=r.color,i.beginPath(),i.moveTo(h,x),i.lineTo(p,y),i.stroke(),i.restore()}drawLabels(t){if(!this.options.ticks.display)return;const s=this.ctx,l=this._computeLabelArea();l&&Ic(s,l);const r=this.getLabelItems(t);for(const c of r){const f=c.options,d=c.font,h=c.label,p=c.textOffset;ys(s,h,0,p,d,f)}l&&Uc(s)}drawTitle(){const{ctx:t,options:{position:i,title:s,reverse:l}}=this;if(!s.display)return;const r=ue(s.font),c=De(s.padding),f=s.align;let d=r.lineHeight/2;i==="bottom"||i==="center"||At(i)?(d+=c.bottom,Wt(s.text)&&(d+=r.lineHeight*(s.text.length-1))):d+=c.top;const{titleX:h,titleY:p,maxWidth:x,rotation:y}=NO(this,d,i,f);ys(t,s.text,0,0,r,{color:s.color,maxWidth:x,rotation:y,textAlign:jO(f,i,l),textBaseline:"middle",translation:[h,p]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,i=t.ticks&&t.ticks.z||0,s=xt(t.grid&&t.grid.z,-1),l=xt(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==vs.prototype.draw?[{z:i,draw:r=>{this.draw(r)}}]:[{z:s,draw:r=>{this.drawBackground(),this.drawGrid(r),this.drawTitle()}},{z:l,draw:()=>{this.drawBorder()}},{z:i,draw:r=>{this.drawLabels(r)}}]}getMatchingVisibleMetas(t){const i=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",l=[];let r,c;for(r=0,c=i.length;r<c;++r){const f=i[r];f[s]===this.id&&(!t||f.type===t)&&l.push(f)}return l}_resolveTickFontOptions(t){const i=this.options.ticks.setContext(this.getContext(t));return ue(i.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Kr{constructor(t,i,s){this.type=t,this.scope=i,this.override=s,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const i=Object.getPrototypeOf(t);let s;zO(i)&&(s=this.register(i));const l=this.items,r=t.id,c=this.scope+"."+r;if(!r)throw new Error("class does not have id: "+t);return r in l||(l[r]=t,$O(t,c,s),this.override&&Xt.override(t.id,t.overrides)),c}get(t){return this.items[t]}unregister(t){const i=this.items,s=t.id,l=this.scope;s in i&&delete i[s],l&&s in Xt[l]&&(delete Xt[l][s],this.override&&delete xs[s])}}function $O(e,t,i){const s=eo(Object.create(null),[i?Xt.get(i):{},Xt.get(t),e.defaults]);Xt.set(t,s),e.defaultRoutes&&LO(t,e.defaultRoutes),e.descriptors&&Xt.describe(t,e.descriptors)}function LO(e,t){Object.keys(t).forEach(i=>{const s=i.split("."),l=s.pop(),r=[e].concat(s).join("."),c=t[i].split("."),f=c.pop(),d=c.join(".");Xt.route(r,l,d,f)})}function zO(e){return"id"in e&&"defaults"in e}class BO{constructor(){this.controllers=new Kr(zi,"datasets",!0),this.elements=new Kr(ni,"elements"),this.plugins=new Kr(Object,"plugins"),this.scales=new Kr(vs,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,i,s){[...i].forEach(l=>{const r=s||this._getRegistryForType(l);s||r.isForType(l)||r===this.plugins&&l.id?this._exec(t,r,l):$t(l,c=>{const f=s||this._getRegistryForType(c);this._exec(t,f,c)})})}_exec(t,i,s){const l=Uh(t);qt(s["before"+l],[],s),i[t](s),qt(s["after"+l],[],s)}_getRegistryForType(t){for(let i=0;i<this._typedRegistries.length;i++){const s=this._typedRegistries[i];if(s.isForType(t))return s}return this.plugins}_get(t,i,s){const l=i.get(t);if(l===void 0)throw new Error('"'+t+'" is not a registered '+s+".");return l}}var vn=new BO;class PO{constructor(){this._init=[]}notify(t,i,s,l){i==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const r=l?this._descriptors(t).filter(l):this._descriptors(t),c=this._notify(r,t,i,s);return i==="afterDestroy"&&(this._notify(r,t,"stop"),this._notify(this._init,t,"uninstall")),c}_notify(t,i,s,l){l=l||{};for(const r of t){const c=r.plugin,f=c[s],d=[i,l,r.options];if(qt(f,d,c)===!1&&l.cancelable)return!1}return!0}invalidate(){Et(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const i=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),i}_createDescriptors(t,i){const s=t&&t.config,l=xt(s.options&&s.options.plugins,{}),r=HO(s);return l===!1&&!i?[]:IO(t,r,l,i)}_notifyStateChanges(t){const i=this._oldCache||[],s=this._cache,l=(r,c)=>r.filter(f=>!c.some(d=>f.plugin.id===d.plugin.id));this._notify(l(i,s),t,"stop"),this._notify(l(s,i),t,"start")}}function HO(e){const t={},i=[],s=Object.keys(vn.plugins.items);for(let r=0;r<s.length;r++)i.push(vn.getPlugin(s[r]));const l=e.plugins||[];for(let r=0;r<l.length;r++){const c=l[r];i.indexOf(c)===-1&&(i.push(c),t[c.id]=!0)}return{plugins:i,localIds:t}}function FO(e,t){return!t&&e===!1?null:e===!0?{}:e}function IO(e,{plugins:t,localIds:i},s,l){const r=[],c=e.getContext();for(const f of t){const d=f.id,h=FO(s[d],l);h!==null&&r.push({plugin:f,options:UO(e.config,{plugin:f,local:i[d]},h,c)})}return r}function UO(e,{plugin:t,local:i},s,l){const r=e.pluginScopeKeys(t),c=e.getOptionScopes(s,r);return i&&t.defaults&&c.push(t.defaults),e.createResolver(c,l,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function dh(e,t){const i=Xt.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||i.indexAxis||"x"}function qO(e,t){let i=e;return e==="_index_"?i=t:e==="_value_"&&(i=t==="x"?"y":"x"),i}function VO(e,t){return e===t?"_index_":"_value_"}function H0(e){if(e==="x"||e==="y"||e==="r")return e}function YO(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function hh(e,...t){if(H0(e))return e;for(const i of t){const s=i.axis||YO(i.position)||e.length>1&&H0(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function F0(e,t,i){if(i[t+"AxisID"]===e)return{axis:t}}function GO(e,t){if(t.data&&t.data.datasets){const i=t.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(i.length)return F0(e,"x",i[0])||F0(e,"y",i[0])}return{}}function WO(e,t){const i=xs[e.type]||{scales:{}},s=t.scales||{},l=dh(e.type,t),r=Object.create(null);return Object.keys(s).forEach(c=>{const f=s[c];if(!At(f))return console.error(`Invalid scale configuration for scale: ${c}`);if(f._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${c}`);const d=hh(c,f,GO(c,e),Xt.scales[f.type]),h=VO(d,l),p=i.scales||{};r[c]=Wl(Object.create(null),[{axis:d},f,p[d],p[h]])}),e.data.datasets.forEach(c=>{const f=c.type||e.type,d=c.indexAxis||dh(f,t),p=(xs[f]||{}).scales||{};Object.keys(p).forEach(x=>{const y=qO(x,d),v=c[y+"AxisID"]||y;r[v]=r[v]||Object.create(null),Wl(r[v],[{axis:y},s[v],p[x]])})}),Object.keys(r).forEach(c=>{const f=r[c];Wl(f,[Xt.scales[f.type],Xt.scale])}),r}function Kv(e){const t=e.options||(e.options={});t.plugins=xt(t.plugins,{}),t.scales=WO(e,t)}function Zv(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function XO(e){return e=e||{},e.data=Zv(e.data),Kv(e),e}const I0=new Map,Qv=new Set;function Zr(e,t){let i=I0.get(e);return i||(i=t(),I0.set(e,i),Qv.add(i)),i}const Ll=(e,t,i)=>{const s=ji(t,i);s!==void 0&&e.add(s)};class KO{constructor(t){this._config=XO(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Zv(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),Kv(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Zr(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,i){return Zr(`${t}.transition.${i}`,()=>[[`datasets.${t}.transitions.${i}`,`transitions.${i}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,i){return Zr(`${t}-${i}`,()=>[[`datasets.${t}.elements.${i}`,`datasets.${t}`,`elements.${i}`,""]])}pluginScopeKeys(t){const i=t.id,s=this.type;return Zr(`${s}-plugin-${i}`,()=>[[`plugins.${i}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,i){const s=this._scopeCache;let l=s.get(t);return(!l||i)&&(l=new Map,s.set(t,l)),l}getOptionScopes(t,i,s){const{options:l,type:r}=this,c=this._cachedScopes(t,s),f=c.get(i);if(f)return f;const d=new Set;i.forEach(p=>{t&&(d.add(t),p.forEach(x=>Ll(d,t,x))),p.forEach(x=>Ll(d,l,x)),p.forEach(x=>Ll(d,xs[r]||{},x)),p.forEach(x=>Ll(d,Xt,x)),p.forEach(x=>Ll(d,uh,x))});const h=Array.from(d);return h.length===0&&h.push(Object.create(null)),Qv.has(i)&&c.set(i,h),h}chartOptionScopes(){const{options:t,type:i}=this;return[t,xs[i]||{},Xt.datasets[i]||{},{type:i},Xt,uh]}resolveNamedOptions(t,i,s,l=[""]){const r={$shared:!0},{resolver:c,subPrefixes:f}=U0(this._resolverCache,t,l);let d=c;if(QO(c,i)){r.$shared=!1,s=Ni(s)?s():s;const h=this.createResolver(t,s,f);d=Ea(c,s,h)}for(const h of i)r[h]=d[h];return r}createResolver(t,i,s=[""],l){const{resolver:r}=U0(this._resolverCache,t,s);return At(i)?Ea(r,i,void 0,l):r}}function U0(e,t,i){let s=e.get(t);s||(s=new Map,e.set(t,s));const l=i.join();let r=s.get(l);return r||(r={resolver:Xh(t,i),subPrefixes:i.filter(f=>!f.toLowerCase().includes("hover"))},s.set(l,r)),r}const ZO=e=>At(e)&&Object.getOwnPropertyNames(e).some(t=>Ni(e[t]));function QO(e,t){const{isScriptable:i,isIndexable:s}=Mv(e);for(const l of t){const r=i(l),c=s(l),f=(c||r)&&e[l];if(r&&(Ni(f)||ZO(f))||c&&Wt(f))return!0}return!1}var JO="4.5.0";const tR=["top","bottom","left","right","chartArea"];function q0(e,t){return e==="top"||e==="bottom"||tR.indexOf(e)===-1&&t==="x"}function V0(e,t){return function(i,s){return i[e]===s[e]?i[t]-s[t]:i[e]-s[e]}}function Y0(e){const t=e.chart,i=t.options.animation;t.notifyPlugins("afterRender"),qt(i&&i.onComplete,[e],t)}function eR(e){const t=e.chart,i=t.options.animation;qt(i&&i.onProgress,[e],t)}function Jv(e){return Qh()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const fc={},G0=e=>{const t=Jv(e);return Object.values(fc).filter(i=>i.canvas===t).pop()};function nR(e,t,i){const s=Object.keys(e);for(const l of s){const r=+l;if(r>=t){const c=e[l];delete e[l],(i>0||r>t)&&(e[r+i]=c)}}}function iR(e,t,i,s){return!i||e.type==="mouseout"?null:s?t:e}let Da=class{static defaults=Xt;static instances=fc;static overrides=xs;static registry=vn;static version=JO;static getChart=G0;static register(...t){vn.add(...t),W0()}static unregister(...t){vn.remove(...t),W0()}constructor(t,i){const s=this.config=new KO(i),l=Jv(t),r=G0(l);if(r)throw new Error("Canvas is already in use. Chart with ID '"+r.id+"' must be destroyed before the canvas with ID '"+r.canvas.id+"' can be reused.");const c=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||_O(l)),this.platform.updateConfig(s);const f=this.platform.acquireContext(l,c.aspectRatio),d=f&&f.canvas,h=d&&d.height,p=d&&d.width;if(this.id=JC(),this.ctx=f,this.canvas=d,this.width=p,this.height=h,this._options=c,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new PO,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=m3(x=>this.update(x),c.resizeDelay||0),this._dataChanges=[],fc[this.id]=this,!f||!d){console.error("Failed to create chart: can't acquire context from the given item");return}qn.listen(this,"complete",Y0),qn.listen(this,"progress",eR),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:i},width:s,height:l,_aspectRatio:r}=this;return Et(t)?i&&r?r:l?s/l:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return vn}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():m0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return h0(this.canvas,this.ctx),this}stop(){return qn.stop(this),this}resize(t,i){qn.running(this)?this._resizeBeforeDraw={width:t,height:i}:this._resize(t,i)}_resize(t,i){const s=this.options,l=this.canvas,r=s.maintainAspectRatio&&this.aspectRatio,c=this.platform.getMaximumSize(l,t,i,r),f=s.devicePixelRatio||this.platform.getDevicePixelRatio(),d=this.width?"resize":"attach";this.width=c.width,this.height=c.height,this._aspectRatio=this.aspectRatio,m0(this,f,!0)&&(this.notifyPlugins("resize",{size:c}),qt(s.onResize,[this,c],this),this.attached&&this._doResize(d)&&this.render())}ensureScalesHaveIDs(){const i=this.options.scales||{};$t(i,(s,l)=>{s.id=l})}buildOrUpdateScales(){const t=this.options,i=t.scales,s=this.scales,l=Object.keys(s).reduce((c,f)=>(c[f]=!1,c),{});let r=[];i&&(r=r.concat(Object.keys(i).map(c=>{const f=i[c],d=hh(c,f),h=d==="r",p=d==="x";return{options:f,dposition:h?"chartArea":p?"bottom":"left",dtype:h?"radialLinear":p?"category":"linear"}}))),$t(r,c=>{const f=c.options,d=f.id,h=hh(d,f),p=xt(f.type,c.dtype);(f.position===void 0||q0(f.position,h)!==q0(c.dposition))&&(f.position=c.dposition),l[d]=!0;let x=null;if(d in s&&s[d].type===p)x=s[d];else{const y=vn.getScale(p);x=new y({id:d,type:p,ctx:this.ctx,chart:this}),s[x.id]=x}x.init(f,t)}),$t(l,(c,f)=>{c||delete s[f]}),$t(s,c=>{Me.configure(this,c,c.options),Me.addBox(this,c)})}_updateMetasets(){const t=this._metasets,i=this.data.datasets.length,s=t.length;if(t.sort((l,r)=>l.index-r.index),s>i){for(let l=i;l<s;++l)this._destroyDatasetMeta(l);t.splice(i,s-i)}this._sortedMetasets=t.slice(0).sort(V0("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:i}}=this;t.length>i.length&&delete this._stacks,t.forEach((s,l)=>{i.filter(r=>r===s._dataset).length===0&&this._destroyDatasetMeta(l)})}buildOrUpdateControllers(){const t=[],i=this.data.datasets;let s,l;for(this._removeUnreferencedMetasets(),s=0,l=i.length;s<l;s++){const r=i[s];let c=this.getDatasetMeta(s);const f=r.type||this.config.type;if(c.type&&c.type!==f&&(this._destroyDatasetMeta(s),c=this.getDatasetMeta(s)),c.type=f,c.indexAxis=r.indexAxis||dh(f,this.options),c.order=r.order||0,c.index=s,c.label=""+r.label,c.visible=this.isDatasetVisible(s),c.controller)c.controller.updateIndex(s),c.controller.linkScales();else{const d=vn.getController(f),{datasetElementType:h,dataElementType:p}=Xt.datasets[f];Object.assign(d,{dataElementType:vn.getElement(p),datasetElementType:h&&vn.getElement(h)}),c.controller=new d(this,s),t.push(c.controller)}}return this._updateMetasets(),t}_resetElements(){$t(this.data.datasets,(t,i)=>{this.getDatasetMeta(i).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const i=this.config;i.update();const s=this._options=i.createResolver(i.chartOptionScopes(),this.getContext()),l=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const r=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let c=0;for(let h=0,p=this.data.datasets.length;h<p;h++){const{controller:x}=this.getDatasetMeta(h),y=!l&&r.indexOf(x)===-1;x.buildOrUpdateElements(y),c=Math.max(+x.getMaxOverflow(),c)}c=this._minPadding=s.layout.autoPadding?c:0,this._updateLayout(c),l||$t(r,h=>{h.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(V0("z","_idx"));const{_active:f,_lastEvent:d}=this;d?this._eventHandler(d,!0):f.length&&this._updateHoverStyles(f,f,!0),this.render()}_updateScales(){$t(this.scales,t=>{Me.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,i=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!s0(i,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,i=this._getUniformDataChanges()||[];for(const{method:s,start:l,count:r}of i){const c=s==="_removeElements"?-r:r;nR(t,l,c)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const i=this.data.datasets.length,s=r=>new Set(t.filter(c=>c[0]===r).map((c,f)=>f+","+c.splice(1).join(","))),l=s(0);for(let r=1;r<i;r++)if(!s0(l,s(r)))return;return Array.from(l).map(r=>r.split(",")).map(r=>({method:r[1],start:+r[2],count:+r[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Me.update(this,this.width,this.height,t);const i=this.chartArea,s=i.width<=0||i.height<=0;this._layers=[],$t(this.boxes,l=>{s&&l.position==="chartArea"||(l.configure&&l.configure(),this._layers.push(...l._layers()))},this),this._layers.forEach((l,r)=>{l._idx=r}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let i=0,s=this.data.datasets.length;i<s;++i)this.getDatasetMeta(i).controller.configure();for(let i=0,s=this.data.datasets.length;i<s;++i)this._updateDataset(i,Ni(t)?t({datasetIndex:i}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,i){const s=this.getDatasetMeta(t),l={meta:s,index:t,mode:i,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",l)!==!1&&(s.controller._update(i),l.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",l))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(qn.has(this)?this.attached&&!qn.running(this)&&qn.start(this):(this.draw(),Y0({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:s,height:l}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(s,l)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const i=this._layers;for(t=0;t<i.length&&i[t].z<=0;++t)i[t].draw(this.chartArea);for(this._drawDatasets();t<i.length;++t)i[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const i=this._sortedMetasets,s=[];let l,r;for(l=0,r=i.length;l<r;++l){const c=i[l];(!t||c.visible)&&s.push(c)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let i=t.length-1;i>=0;--i)this._drawDataset(t[i]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const i=this.ctx,s={meta:t,index:t.index,cancelable:!0},l=Pv(this,t);this.notifyPlugins("beforeDatasetDraw",s)!==!1&&(l&&Ic(i,l),t.controller.draw(),l&&Uc(i),s.cancelable=!1,this.notifyPlugins("afterDatasetDraw",s))}isPointInArea(t){return Xn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,i,s,l){const r=tO.modes[i];return typeof r=="function"?r(this,t,s,l):[]}getDatasetMeta(t){const i=this.data.datasets[t],s=this._metasets;let l=s.filter(r=>r&&r._dataset===i).pop();return l||(l={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:i&&i.order||0,index:t,_dataset:i,_parsed:[],_sorted:!1},s.push(l)),l}getContext(){return this.$context||(this.$context=Li(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const i=this.data.datasets[t];if(!i)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!i.hidden}setDatasetVisibility(t,i){const s=this.getDatasetMeta(t);s.hidden=!i}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,i,s){const l=s?"show":"hide",r=this.getDatasetMeta(t),c=r.controller._resolveAnimations(void 0,l);no(i)?(r.data[i].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),c.update(r,{visible:s}),this.update(f=>f.datasetIndex===t?l:void 0))}hide(t,i){this._updateVisibility(t,i,!1)}show(t,i){this._updateVisibility(t,i,!0)}_destroyDatasetMeta(t){const i=this._metasets[t];i&&i.controller&&i.controller._destroy(),delete this._metasets[t]}_stop(){let t,i;for(this.stop(),qn.remove(this),t=0,i=this.data.datasets.length;t<i;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:i}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),h0(t,i),this.platform.releaseContext(i),this.canvas=null,this.ctx=null),delete fc[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,i=this.platform,s=(r,c)=>{i.addEventListener(this,r,c),t[r]=c},l=(r,c,f)=>{r.offsetX=c,r.offsetY=f,this._eventHandler(r)};$t(this.options.events,r=>s(r,l))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,i=this.platform,s=(d,h)=>{i.addEventListener(this,d,h),t[d]=h},l=(d,h)=>{t[d]&&(i.removeEventListener(this,d,h),delete t[d])},r=(d,h)=>{this.canvas&&this.resize(d,h)};let c;const f=()=>{l("attach",f),this.attached=!0,this.resize(),s("resize",r),s("detach",c)};c=()=>{this.attached=!1,l("resize",r),this._stop(),this._resize(0,0),s("attach",f)},i.isAttached(this.canvas)?f():c()}unbindEvents(){$t(this._listeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._listeners={},$t(this._responsiveListeners,(t,i)=>{this.platform.removeEventListener(this,i,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,i,s){const l=s?"set":"remove";let r,c,f,d;for(i==="dataset"&&(r=this.getDatasetMeta(t[0].datasetIndex),r.controller["_"+l+"DatasetHoverStyle"]()),f=0,d=t.length;f<d;++f){c=t[f];const h=c&&this.getDatasetMeta(c.datasetIndex).controller;h&&h[l+"HoverStyle"](c.element,c.datasetIndex,c.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const i=this._active||[],s=t.map(({datasetIndex:r,index:c})=>{const f=this.getDatasetMeta(r);if(!f)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:f.data[c],index:c}});!_c(s,i)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,i))}notifyPlugins(t,i,s){return this._plugins.notify(this,t,i,s)}isPluginEnabled(t){return this._plugins._cache.filter(i=>i.plugin.id===t).length===1}_updateHoverStyles(t,i,s){const l=this.options.hover,r=(d,h)=>d.filter(p=>!h.some(x=>p.datasetIndex===x.datasetIndex&&p.index===x.index)),c=r(i,t),f=s?t:r(t,i);c.length&&this.updateHoverStyle(c,l.mode,!1),f.length&&l.mode&&this.updateHoverStyle(f,l.mode,!0)}_eventHandler(t,i){const s={event:t,replay:i,cancelable:!0,inChartArea:this.isPointInArea(t)},l=c=>(c.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,l)===!1)return;const r=this._handleEvent(t,i,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,l),(r||s.changed)&&this.render(),this}_handleEvent(t,i,s){const{_active:l=[],options:r}=this,c=i,f=this._getActiveElements(t,l,s,c),d=a3(t),h=iR(t,this._lastEvent,s,d);s&&(this._lastEvent=null,qt(r.onHover,[t,f,this],this),d&&qt(r.onClick,[t,f,this],this));const p=!_c(f,l);return(p||i)&&(this._active=f,this._updateHoverStyles(f,l,i)),this._lastEvent=h,p}_getActiveElements(t,i,s,l){if(t.type==="mouseout")return[];if(!s)return i;const r=this.options.hover;return this.getElementsAtEventForMode(t,r.mode,r,l)}
vendor: 4,844 bytes, line 144
144};function W0(){return $t(Da.instances,e=>e._plugins.invalidate())}function sR(e,t,i){const{startAngle:s,x:l,y:r,outerRadius:c,innerRadius:f,options:d}=t,{borderWidth:h,borderJoinStyle:p}=d,x=Math.min(h/c,Ae(s-i));if(e.beginPath(),e.arc(l,r,c-h/2,s+x/2,i-x/2),f>0){const y=Math.min(h/f,Ae(s-i));e.arc(l,r,f+h/2,i-y/2,s+y/2,!0)}else{const y=Math.min(h/2,c*Ae(s-i));if(p==="round")e.arc(l,r,y,i-Ot/2,s+Ot/2,!0);else if(p==="bevel"){const v=2*y*y,_=-v*Math.cos(i+Ot/2)+l,S=-v*Math.sin(i+Ot/2)+r,T=v*Math.cos(s+Ot/2)+l,w=v*Math.sin(s+Ot/2)+r;e.lineTo(_,S),e.lineTo(T,w)}}e.closePath(),e.moveTo(0,0),e.rect(0,0,e.canvas.width,e.canvas.height),e.clip("evenodd")}function aR(e,t,i){const{startAngle:s,pixelMargin:l,x:r,y:c,outerRadius:f,innerRadius:d}=t;let h=l/f;e.beginPath(),e.arc(r,c,f,s-h,i+h),d>l?(h=l/d,e.arc(r,c,d,i+h,s-h,!0)):e.arc(r,c,l,i+ie,s-ie),e.closePath(),e.clip()}function lR(e){return Wh(e,["outerStart","outerEnd","innerStart","innerEnd"])}function oR(e,t,i,s){const l=lR(e.options.borderRadius),r=(i-t)/2,c=Math.min(r,s*t/2),f=d=>{const h=(i-Math.min(r,d))*s/2;return ye(d,0,Math.min(r,h))};return{outerStart:f(l.outerStart),outerEnd:f(l.outerEnd),innerStart:ye(l.innerStart,0,c),innerEnd:ye(l.innerEnd,0,c)}}function da(e,t,i,s){return{x:i+e*Math.cos(t),y:s+e*Math.sin(t)}}function Ac(e,t,i,s,l,r){const{x:c,y:f,startAngle:d,pixelMargin:h,innerRadius:p}=t,x=Math.max(t.outerRadius+s+i-h,0),y=p>0?p+s+i+h:0;let v=0;const _=l-d;if(s){const z=p>0?p-s:0,C=x>0?x-s:0,$=(z+C)/2,W=$!==0?_*$/($+s):_;v=(_-W)/2}const S=Math.max(.001,_*x-i/Ot)/x,T=(_-S)/2,w=d+T+v,M=l-T-v,{outerStart:D,outerEnd:N,innerStart:j,innerEnd:P}=oR(t,y,x,M-w),I=x-D,q=x-N,Y=w+D/I,K=M-N/q,et=y+j,nt=y+P,ut=w+j/et,G=M-P/nt;if(e.beginPath(),r){const z=(Y+K)/2;if(e.arc(c,f,x,Y,z),e.arc(c,f,x,z,K),N>0){const Q=da(q,K,c,f);e.arc(Q.x,Q.y,N,K,M+ie)}const C=da(nt,M,c,f);if(e.lineTo(C.x,C.y),P>0){const Q=da(nt,G,c,f);e.arc(Q.x,Q.y,P,M+ie,G+Math.PI)}const $=(M-P/y+(w+j/y))/2;if(e.arc(c,f,y,M-P/y,$,!0),e.arc(c,f,y,$,w+j/y,!0),j>0){const Q=da(et,ut,c,f);e.arc(Q.x,Q.y,j,ut+Math.PI,w-ie)}const W=da(I,w,c,f);if(e.lineTo(W.x,W.y),D>0){const Q=da(I,Y,c,f);e.arc(Q.x,Q.y,D,w-ie,Y)}}else{e.moveTo(c,f);const z=Math.cos(Y)*x+c,C=Math.sin(Y)*x+f;e.lineTo(z,C);const $=Math.cos(K)*x+c,W=Math.sin(K)*x+f;e.lineTo($,W)}e.closePath()}function rR(e,t,i,s,l){const{fullCircles:r,startAngle:c,circumference:f}=t;let d=t.endAngle;if(r){Ac(e,t,i,s,d,l);for(let h=0;h<r;++h)e.fill();isNaN(f)||(d=c+(f%Vt||Vt))}return Ac(e,t,i,s,d,l),e.fill(),d}function cR(e,t,i,s,l){const{fullCircles:r,startAngle:c,circumference:f,options:d}=t,{borderWidth:h,borderJoinStyle:p,borderDash:x,borderDashOffset:y,borderRadius:v}=d,_=d.borderAlign==="inner";if(!h)return;e.setLineDash(x||[]),e.lineDashOffset=y,_?(e.lineWidth=h*2,e.lineJoin=p||"round"):(e.lineWidth=h,e.lineJoin=p||"bevel");let S=t.endAngle;if(r){Ac(e,t,i,s,S,l);for(let T=0;T<r;++T)e.stroke();isNaN(f)||(S=c+(f%Vt||Vt))}_&&aR(e,t,S),d.selfJoin&&S-c>=Ot&&v===0&&p!=="miter"&&sR(e,t,S),r||(Ac(e,t,i,s,S,l),e.stroke())}class uR extends ni{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0,selfJoin:!1};static defaultRoutes={backgroundColor:"backgroundColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"};circumference;endAngle;fullCircles;innerRadius;outerRadius;pixelMargin;startAngle;constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,i,s){const l=this.getProps(["x","y"],s),{angle:r,distance:c}=yv(l,{x:t,y:i}),{startAngle:f,endAngle:d,innerRadius:h,outerRadius:p,circumference:x}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),y=(this.options.spacing+this.options.borderWidth)/2,v=xt(x,d-f),_=io(r,f,d)&&f!==d,S=v>=Vt||_,T=Gn(c,h+y,p+y);return S&&T}getCenterPoint(t){const{x:i,y:s,startAngle:l,endAngle:r,innerRadius:c,outerRadius:f}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:d,spacing:h}=this.options,p=(l+r)/2,x=(c+f+h+d)/2;return{x:i+Math.cos(p)*x,y:s+Math.sin(p)*x}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:i,circumference:s}=this,l=(i.offset||0)/4,r=(i.spacing||0)/2,c=i.circular;if(this.pixelMargin=i.borderAlign==="inner"?.33:0,this.fullCircles=s>Vt?Math.floor(s/Vt):0,s===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const f=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(f)*l,Math.sin(f)*l);const d=1-Math.sin(Math.min(Ot,s||0)),h=l*d;t.fillStyle=i.backgroundColor,t.strokeStyle=i.borderColor,rR(t,this,h,r,c),cR(t,this,h,r,c),t.restore(
vendor: 5,936 bytes, line 144
144)}}function t_(e,t,i=t){e.lineCap=xt(i.borderCapStyle,t.borderCapStyle),e.setLineDash(xt(i.borderDash,t.borderDash)),e.lineDashOffset=xt(i.borderDashOffset,t.borderDashOffset),e.lineJoin=xt(i.borderJoinStyle,t.borderJoinStyle),e.lineWidth=xt(i.borderWidth,t.borderWidth),e.strokeStyle=xt(i.borderColor,t.borderColor)}function fR(e,t,i){e.lineTo(i.x,i.y)}function dR(e){return e.stepped?M3:e.tension||e.cubicInterpolationMode==="monotone"?C3:fR}function e_(e,t,i={}){const s=e.length,{start:l=0,end:r=s-1}=i,{start:c,end:f}=t,d=Math.max(l,c),h=Math.min(r,f),p=l<c&&r<c||l>f&&r>f;return{count:s,start:d,loop:t.loop,ilen:h<d&&!p?s+h-d:h-d}}function hR(e,t,i,s){const{points:l,options:r}=t,{count:c,start:f,loop:d,ilen:h}=e_(l,i,s),p=dR(r);let{move:x=!0,reverse:y}=s||{},v,_,S;for(v=0;v<=h;++v)_=l[(f+(y?h-v:v))%c],!_.skip&&(x?(e.moveTo(_.x,_.y),x=!1):p(e,S,_,y,r.stepped),S=_);return d&&(_=l[(f+(y?h:0))%c],p(e,S,_,y,r.stepped)),!!d}function gR(e,t,i,s){const l=t.points,{count:r,start:c,ilen:f}=e_(l,i,s),{move:d=!0,reverse:h}=s||{};let p=0,x=0,y,v,_,S,T,w;const M=N=>(c+(h?f-N:N))%r,D=()=>{S!==T&&(e.lineTo(p,T),e.lineTo(p,S),e.lineTo(p,w))};for(d&&(v=l[M(0)],e.moveTo(v.x,v.y)),y=0;y<=f;++y){if(v=l[M(y)],v.skip)continue;const N=v.x,j=v.y,P=N|0;P===_?(j<S?S=j:j>T&&(T=j),p=(x*p+N)/++x):(D(),e.lineTo(N,j),_=P,x=0,S=T=j),w=j}D()}function gh(e){const t=e.options,i=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!i?gR:hR}function pR(e){return e.stepped?oD:e.tension||e.cubicInterpolationMode==="monotone"?rD:cs}function mR(e,t,i,s){let l=t._path;l||(l=t._path=new Path2D,t.path(l,i,s)&&l.closePath()),t_(e,t.options),e.stroke(l)}function xR(e,t,i,s){const{segments:l,options:r}=t,c=gh(t);for(const f of l)t_(e,r,f.style),e.beginPath(),c(e,t,f,{start:i,end:i+s-1})&&e.closePath(),e.stroke()}const yR=typeof Path2D=="function";function bR(e,t,i,s){yR&&!t.options.segment?mR(e,t,i,s):xR(e,t,i,s)}class Yc extends ni{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,i){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const l=s.spanGaps?this._loop:this._fullLoop;J3(this._points,s,t,l,i),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=gD(this,this.options.segment))}first(){const t=this.segments,i=this.points;return t.length&&i[t[0].start]}last(){const t=this.segments,i=this.points,s=t.length;return s&&i[t[s-1].end]}interpolate(t,i){const s=this.options,l=t[i],r=this.points,c=Bv(this,{property:i,start:l,end:l});if(!c.length)return;const f=[],d=pR(s);let h,p;for(h=0,p=c.length;h<p;++h){const{start:x,end:y}=c[h],v=r[x],_=r[y];if(v===_){f.push(v);continue}const S=Math.abs((l-v[i])/(_[i]-v[i])),T=d(v,_,S,s.stepped);T[i]=t[i],f.push(T)}return f.length===1?f[0]:f}pathSegment(t,i,s){return gh(this)(t,this,i,s)}path(t,i,s){const l=this.segments,r=gh(this);let c=this._loop;i=i||0,s=s||this.points.length-i;for(const f of l)c&=r(t,this,f,{start:i,end:i+s-1});return!!c}draw(t,i,s,l){const r=this.options||{};(this.points||[]).length&&r.borderWidth&&(t.save(),bR(t,this,s,l),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function X0(e,t,i,s){const l=e.options,{[i]:r}=e.getProps([i],s);return Math.abs(t-r)<l.radius+l.hitRadius}class vR extends ni{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,i,s){const l=this.options,{x:r,y:c}=this.getProps(["x","y"],s);return Math.pow(t-r,2)+Math.pow(i-c,2)<Math.pow(l.hitRadius+l.radius,2)}inXRange(t,i){return X0(this,t,"x",i)}inYRange(t,i){return X0(this,t,"y",i)}getCenterPoint(t){const{x:i,y:s}=this.getProps(["x","y"],t);return{x:i,y:s}}size(t){t=t||this.options||{};let i=t.radius||0;i=Math.max(i,i&&t.hoverRadius||0);const s=i&&t.borderWidth||0;return(i+s)*2}draw(t,i){const s=this.options;this.skip||s.radius<.1||!Xn(this,i,this.size(s)/2)||(t.strokeStyle=s.borderColor,t.lineWidth=s.borderWidth,t.fillStyle=s.backgroundColor,fh(t,s,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}function n_(e,t){const{x:i,y:s,base:l,width:r,height:c}=e.getProps(["x","y","base","width","height"],t);let f,d,h,p,x;return e.horizontal?(x=c/2,f=Math.min(i,l),d=Math.max(i,l),h=s-x,p=s+x):(x=r/2,f=i-x,d=i+x,h=Math.min(s,l),p=Math.max(s,l)),{left:f,top:h,right:d,bottom:p}}function Oi(e,t,i,s){return e?0:ye(t,i,s)}function _R(e,t,i){const s=e.options.borderWidth,l=e.borderSkipped,r=Av(s);return{t:Oi(l.top,r.top,0,i),r:Oi(l.right,r.right,0,t),b:Oi(l.bottom,r.bottom,0,i),l:Oi(l.left,r.left,0,t)}}function kR(e,t,i){const{enableBorderRadius:s}=e.getProps(["enableBorderRadius"]),l=e.options.borderRadius,r=gs(l),c=Math.min(t,i),f=e.borderSkipped,d=s||At(l);return{topLeft:Oi(!d||f.top||f.left,r.topLeft,0,c),topRight:Oi(!d||f.top||f.right,r.topRight,0,c),bottomLeft:Oi(!d||f.bottom||f.left,r.bottomLeft,0,c
vendor: 59,321 bytes, lines 144-146
144),bottomRight:Oi(!d||f.bottom||f.right,r.bottomRight,0,c)}}function SR(e){const t=n_(e),i=t.right-t.left,s=t.bottom-t.top,l=_R(e,i/2,s/2),r=kR(e,i/2,s/2);return{outer:{x:t.left,y:t.top,w:i,h:s,radius:r},inner:{x:t.left+l.l,y:t.top+l.t,w:i-l.l-l.r,h:s-l.t-l.b,radius:{topLeft:Math.max(0,r.topLeft-Math.max(l.t,l.l)),topRight:Math.max(0,r.topRight-Math.max(l.t,l.r)),bottomLeft:Math.max(0,r.bottomLeft-Math.max(l.b,l.l)),bottomRight:Math.max(0,r.bottomRight-Math.max(l.b,l.r))}}}}function Gd(e,t,i,s){const l=t===null,r=i===null,f=e&&!(l&&r)&&n_(e,s);return f&&(l||Gn(t,f.left,f.right))&&(r||Gn(i,f.top,f.bottom))}function TR(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function ER(e,t){e.rect(t.x,t.y,t.w,t.h)}function Wd(e,t,i={}){const s=e.x!==i.x?-t:0,l=e.y!==i.y?-t:0,r=(e.x+e.w!==i.x+i.w?t:0)-s,c=(e.y+e.h!==i.y+i.h?t:0)-l;return{x:e.x+s,y:e.y+l,w:e.w+r,h:e.h+c,radius:e.radius}}class i_ extends ni{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:i,options:{borderColor:s,backgroundColor:l}}=this,{inner:r,outer:c}=SR(this),f=TR(c.radius)?so:ER;t.save(),(c.w!==r.w||c.h!==r.h)&&(t.beginPath(),f(t,Wd(c,i,r)),t.clip(),f(t,Wd(r,-i,c)),t.fillStyle=s,t.fill("evenodd")),t.beginPath(),f(t,Wd(r,i)),t.fillStyle=l,t.fill(),t.restore()}inRange(t,i,s){return Gd(this,t,i,s)}inXRange(t,i){return Gd(this,t,null,i)}inYRange(t,i){return Gd(this,null,t,i)}getCenterPoint(t){const{x:i,y:s,base:l,horizontal:r}=this.getProps(["x","y","base","horizontal"],t);return{x:r?(i+l)/2:i,y:r?s:(s+l)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}var wR=Object.freeze({__proto__:null,ArcElement:uR,BarElement:i_,LineElement:Yc,PointElement:vR});const ph=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],K0=ph.map(e=>e.replace("rgb(","rgba(").replace(")",", 0.5)"));function s_(e){return ph[e%ph.length]}function a_(e){return K0[e%K0.length]}function AR(e,t){return e.borderColor=s_(t),e.backgroundColor=a_(t),++t}function MR(e,t){return e.backgroundColor=e.data.map(()=>s_(t++)),t}function CR(e,t){return e.backgroundColor=e.data.map(()=>a_(t++)),t}function DR(e){let t=0;return(i,s)=>{const l=e.getDatasetMeta(s).controller;l instanceof tg?t=MR(i,t):l instanceof qv?t=CR(i,t):l&&(t=AR(i,t))}}function Z0(e){let t;for(t in e)if(e[t].borderColor||e[t].backgroundColor)return!0;return!1}function OR(e){return e&&(e.borderColor||e.backgroundColor)}function RR(){return Xt.borderColor!=="rgba(0,0,0,0.1)"||Xt.backgroundColor!=="rgba(0,0,0,0.1)"}var jR={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(e,t,i){if(!i.enabled)return;const{data:{datasets:s},options:l}=e.config,{elements:r}=l,c=Z0(s)||OR(l)||r&&Z0(r)||RR();if(!i.forceOverride&&c)return;const f=DR(e);s.forEach(f)}};function NR(e,t,i,s,l){const r=l.samples||s;if(r>=i)return e.slice(t,t+i);const c=[],f=(i-2)/(r-2);let d=0;const h=t+i-1;let p=t,x,y,v,_,S;for(c[d++]=e[p],x=0;x<r-2;x++){let T=0,w=0,M;const D=Math.floor((x+1)*f)+1+t,N=Math.min(Math.floor((x+2)*f)+1,i)+t,j=N-D;for(M=D;M<N;M++)T+=e[M].x,w+=e[M].y;T/=j,w/=j;const P=Math.floor(x*f)+1+t,I=Math.min(Math.floor((x+1)*f)+1,i)+t,{x:q,y:Y}=e[p];for(v=_=-1,M=P;M<I;M++)_=.5*Math.abs((q-T)*(e[M].y-Y)-(q-e[M].x)*(w-Y)),_>v&&(v=_,y=e[M],S=M);c[d++]=y,p=S}return c[d++]=e[h],c}function $R(e,t,i,s){let l=0,r=0,c,f,d,h,p,x,y,v,_,S;const T=[],w=t+i-1,M=e[t].x,N=e[w].x-M;for(c=t;c<t+i;++c){f=e[c],d=(f.x-M)/N*s,h=f.y;const j=d|0;if(j===p)h<_?(_=h,x=c):h>S&&(S=h,y=c),l=(r*l+f.x)/++r;else{const P=c-1;if(!Et(x)&&!Et(y)){const I=Math.min(x,y),q=Math.max(x,y);I!==v&&I!==P&&T.push({...e[I],x:l}),q!==v&&q!==P&&T.push({...e[q],x:l})}c>0&&P!==v&&T.push(e[P]),T.push(f),p=j,r=0,_=S=h,x=y=v=c}}return T}function l_(e){if(e._decimated){const t=e._data;delete e._decimated,delete e._data,Object.defineProperty(e,"data",{configurable:!0,enumerable:!0,writable:!0,value:t})}}function Q0(e){e.data.datasets.forEach(t=>{l_(t)})}function LR(e,t){const i=t.length;let s=0,l;const{iScale:r}=e,{min:c,max:f,minDefined:d,maxDefined:h}=r.getUserBounds();return d&&(s=ye(Wn(t,r.axis,c).lo,0,i-1)),h?l=ye(Wn(t,r.axis,f).hi+1,s,i)-s:l=i-s,{start:s,count:l}}var zR={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(e,t,i)=>{if(!i.enabled){Q0(e);return}const s=e.width;e.data.datasets.forEach((l,r)=>{const{_data:c,indexAxis:f}=l,d=e.getDatasetMeta(r),h=c||l.data;if(Il([f,e.options.indexAxis])==="y"||!d.controller.supportsDecimation)return;const p=e.scales[d.xAxisID];if(p.type!=="linear"&&p.type!=="time"||e.options.parsing)return;let{start:x,count:y}=LR(d,h);const v=i.threshold||4*s;if(y<=v){l_(l);return}Et(c)&&(l._data=h,delete l.data,Object.defineProperty(l,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(S){this._data=S}}));let _;switch(i.algorithm){case"lttb":_=NR(h,x,y,s,i);break;case"min-max":_=$R(h,x,y,s);break;default:throw new Error(`Unsupported decimation algorithm '${i.algorithm}'`)}l._decimated=_})},destroy(e){Q0(e)}};function BR(e,t,i){const s=e.segments,l=e.points,r=t.points,c=[];for(const f of s){let{start:d,end:h}=f;h=Gc(d,h,l);const p=mh(i,l[d],l[h],f.loop);if(!t.segments){c.push({source:f,target:p,start:l[d],end:l[h]});continue}const x=Bv(t,p);for(const y of x){const v=mh(i,r[y.start],r[y.end],y.loop),_=zv(f,l,v);for(const S of _)c.push({source:S,target:y,start:{[i]:J0(p,v,"start",Math.max)},end:{[i]:J0(p,v,"end",Math.min)}})}}return c}function mh(e,t,i,s){if(s)return;let l=t[e],r=i[e];return e==="angle"&&(l=Ae(l),r=Ae(r)),{property:e,start:l,end:r}}function PR(e,t){const{x:i=null,y:s=null}=e||{},l=t.points,r=[];return t.segments.forEach(({start:c,end:f})=>{f=Gc(c,f,l);const d=l[c],h=l[f];s!==null?(r.push({x:d.x,y:s}),r.push({x:h.x,y:s})):i!==null&&(r.push({x:i,y:d.y}),r.push({x:i,y:h.y}))}),r}function Gc(e,t,i){for(;t>e;t--){const s=i[t];if(!isNaN(s.x)&&!isNaN(s.y))break}return t}function J0(e,t,i,s){return e&&t?s(e[i],t[i]):e?e[i]:t?t[i]:0}function o_(e,t){let i=[],s=!1;return Wt(e)?(s=!0,i=e):i=PR(e,t),i.length?new Yc({points:i,options:{tension:0},_loop:s,_fullLoop:s}):null}function tb(e){return e&&e.fill!==!1}function HR(e,t,i){let l=e[t].fill;const r=[t];let c;if(!i)return l;for(;l!==!1&&r.indexOf(l)===-1;){if(!te(l))return l;if(c=e[l],!c)return!1;if(c.visible)return l;r.push(l),l=c.fill}return!1}function FR(e,t,i){const s=VR(e);if(At(s))return isNaN(s.value)?!1:s;let l=parseFloat(s);return te(l)&&Math.floor(l)===l?IR(s[0],t,l,i):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function IR(e,t,i,s){return(e==="-"||e==="+")&&(i=t+i),i===t||i<0||i>=s?!1:i}function UR(e,t){let i=null;return e==="start"?i=t.bottom:e==="end"?i=t.top:At(e)?i=t.getPixelForValue(e.value):t.getBasePixel&&(i=t.getBasePixel()),i}function qR(e,t,i){let s;return e==="start"?s=i:e==="end"?s=t.options.reverse?t.min:t.max:At(e)?s=e.value:s=t.getBaseValue(),s}function VR(e){const t=e.options,i=t.fill;let s=xt(i&&i.target,i);return s===void 0&&(s=!!t.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function YR(e){const{scale:t,index:i,line:s}=e,l=[],r=s.segments,c=s.points,f=GR(t,i);f.push(o_({x:null,y:t.bottom},s));for(let d=0;d<r.length;d++){const h=r[d];for(let p=h.start;p<=h.end;p++)WR(l,c[p],f)}return new Yc({points:l,options:{}})}function GR(e,t){const i=[],s=e.getMatchingVisibleMetas("line");for(let l=0;l<s.length;l++){const r=s[l];if(r.index===t)break;r.hidden||i.unshift(r.dataset)}return i}function WR(e,t,i){const s=[];for(let l=0;l<i.length;l++){const r=i[l],{first:c,last:f,point:d}=XR(r,t,"x");if(!(!d||c&&f)){if(c)s.unshift(d);else if(e.push(d),!f)break}}e.push(...s)}function XR(e,t,i){const s=e.interpolate(t,i);if(!s)return{};const l=s[i],r=e.segments,c=e.points;let f=!1,d=!1;for(let h=0;h<r.length;h++){const p=r[h],x=c[p.start][i],y=c[p.end][i];if(Gn(l,x,y)){f=l===x,d=l===y;break}}return{first:f,last:d,point:s}}class r_{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,i,s){const{x:l,y:r,radius:c}=this;return i=i||{start:0,end:Vt},t.arc(l,r,c,i.end,i.start,!0),!s.bounds}interpolate(t){const{x:i,y:s,radius:l}=this,r=t.angle;return{x:i+Math.cos(r)*l,y:s+Math.sin(r)*l,angle:r}}}function KR(e){const{chart:t,fill:i,line:s}=e;if(te(i))return ZR(t,i);if(i==="stack")return YR(e);if(i==="shape")return!0;const l=QR(e);return l instanceof r_?l:o_(l,s)}function ZR(e,t){const i=e.getDatasetMeta(t);return i&&e.isDatasetVisible(t)?i.dataset:null}function QR(e){return(e.scale||{}).getPointPositionForValue?tj(e):JR(e)}function JR(e){const{scale:t={},fill:i}=e,s=UR(i,t);if(te(s)){const l=t.isHorizontal();return{x:l?s:null,y:l?null:s}}return null}function tj(e){const{scale:t,fill:i}=e,s=t.options,l=t.getLabels().length,r=s.reverse?t.max:t.min,c=qR(i,t,r),f=[];if(s.grid.circular){const d=t.getPointPositionForValue(0,r);return new r_({x:d.x,y:d.y,radius:t.getDistanceFromCenterForValue(c)})}for(let d=0;d<l;++d)f.push(t.getPointPositionForValue(d,c));return f}function Xd(e,t,i){const s=KR(t),{chart:l,index:r,line:c,scale:f,axis:d}=t,h=c.options,p=h.fill,x=h.backgroundColor,{above:y=x,below:v=x}=p||{},_=l.getDatasetMeta(r),S=Pv(l,_);s&&c.points.length&&(Ic(e,i),ej(e,{line:c,target:s,above:y,below:v,area:i,scale:f,axis:d,clip:S}),Uc(e))}function ej(e,t){const{line:i,target:s,above:l,below:r,area:c,scale:f,clip:d}=t,h=i._loop?"angle":t.axis;e.save();let p=r;r!==l&&(h==="x"?(eb(e,s,c.top),Kd(e,{line:i,target:s,color:l,scale:f,property:h,clip:d}),e.restore(),e.save(),eb(e,s,c.bottom)):h==="y"&&(nb(e,s,c.left),Kd(e,{line:i,target:s,color:r,scale:f,property:h,clip:d}),e.restore(),e.save(),nb(e,s,c.right),p=l)),Kd(e,{line:i,target:s,color:p,scale:f,property:h,clip:d}),e.restore()}function eb(e,t,i){const{segments:s,points:l}=t;let r=!0,c=!1;e.beginPath();for(const f of s){const{start:d,end:h}=f,p=l[d],x=l[Gc(d,h,l)];r?(e.moveTo(p.x,p.y),r=!1):(e.lineTo(p.x,i),e.lineTo(p.x,p.y)),c=!!t.pathSegment(e,f,{move:c}),c?e.closePath():e.lineTo(x.x,i)}e.lineTo(t.first().x,i),e.closePath(),e.clip()}function nb(e,t,i){const{segments:s,points:l}=t;let r=!0,c=!1;e.beginPath();for(const f of s){const{start:d,end:h}=f,p=l[d],x=l[Gc(d,h,l)];r?(e.moveTo(p.x,p.y),r=!1):(e.lineTo(i,p.y),e.lineTo(p.x,p.y)),c=!!t.pathSegment(e,f,{move:c}),c?e.closePath():e.lineTo(i,x.y)}e.lineTo(i,t.first().y),e.closePath(),e.clip()}function Kd(e,t){const{line:i,target:s,property:l,color:r,scale:c,clip:f}=t,d=BR(i,s,l);for(const{source:h,target:p,start:x,end:y}of d){const{style:{backgroundColor:v=r}={}}=h,_=s!==!0;e.save(),e.fillStyle=v,nj(e,c,f,_&&mh(l,x,y)),e.beginPath();const S=!!i.pathSegment(e,h);let T;if(_){S?e.closePath():ib(e,s,y,l);const w=!!s.pathSegment(e,p,{move:S,reverse:!0});T=S&&w,T||ib(e,s,x,l)}e.closePath(),e.fill(T?"evenodd":"nonzero"),e.restore()}}function nj(e,t,i,s){const l=t.chart.chartArea,{property:r,start:c,end:f}=s||{};if(r==="x"||r==="y"){let d,h,p,x;r==="x"?(d=c,h=l.top,p=f,x=l.bottom):(d=l.left,h=c,p=l.right,x=f),e.beginPath(),i&&(d=Math.max(d,i.left),p=Math.min(p,i.right),h=Math.max(h,i.top),x=Math.min(x,i.bottom)),e.rect(d,h,p-d,x-h),e.clip()}}function ib(e,t,i,s){const l=t.interpolate(i,s);l&&e.lineTo(l.x,l.y)}var ij={id:"filler",afterDatasetsUpdate(e,t,i){const s=(e.data.datasets||[]).length,l=[];let r,c,f,d;for(c=0;c<s;++c)r=e.getDatasetMeta(c),f=r.dataset,d=null,f&&f.options&&f instanceof Yc&&(d={visible:e.isDatasetVisible(c),index:c,fill:FR(f,c,s),chart:e,axis:r.controller.options.indexAxis,scale:r.vScale,line:f}),r.$filler=d,l.push(d);for(c=0;c<s;++c)d=l[c],!(!d||d.fill===!1)&&(d.fill=HR(l,c,i.propagate))},beforeDraw(e,t,i){const s=i.drawTime==="beforeDraw",l=e.getSortedVisibleDatasetMetas(),r=e.chartArea;for(let c=l.length-1;c>=0;--c){const f=l[c].$filler;f&&(f.line.updateControlPoints(r,f.axis),s&&f.fill&&Xd(e.ctx,f,r))}},beforeDatasetsDraw(e,t,i){if(i.drawTime!=="beforeDatasetsDraw")return;const s=e.getSortedVisibleDatasetMetas();for(let l=s.length-1;l>=0;--l){const r=s[l].$filler;tb(r)&&Xd(e.ctx,r,e.chartArea)}},beforeDatasetDraw(e,t,i){const s=t.meta.$filler;!tb(s)||i.drawTime!=="beforeDatasetDraw"||Xd(e.ctx,s,e.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const sb=(e,t)=>{let{boxHeight:i=t,boxWidth:s=t}=e;return e.usePointStyle&&(i=Math.min(i,t),s=e.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:i,itemHeight:Math.max(t,i)}},sj=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class ab extends ni{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,i,s){this.maxWidth=t,this.maxHeight=i,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let i=qt(t.generateLabels,[this.chart],this)||[];t.filter&&(i=i.filter(s=>t.filter(s,this.chart.data))),t.sort&&(i=i.sort((s,l)=>t.sort(s,l,this.chart.data))),this.options.reverse&&i.reverse(),this.legendItems=i}fit(){const{options:t,ctx:i}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,l=ue(s.font),r=l.size,c=this._computeTitleHeight(),{boxWidth:f,itemHeight:d}=sb(s,r);let h,p;i.font=l.string,this.isHorizontal()?(h=this.maxWidth,p=this._fitRows(c,r,f,d)+10):(p=this.maxHeight,h=this._fitCols(c,l,f,d)+10),this.width=Math.min(h,t.maxWidth||this.maxWidth),this.height=Math.min(p,t.maxHeight||this.maxHeight)}_fitRows(t,i,s,l){const{ctx:r,maxWidth:c,options:{labels:{padding:f}}}=this,d=this.legendHitBoxes=[],h=this.lineWidths=[0],p=l+f;let x=t;r.textAlign="left",r.textBaseline="middle";let y=-1,v=-p;return this.legendItems.forEach((_,S)=>{const T=s+i/2+r.measureText(_.text).width;(S===0||h[h.length-1]+T+2*f>c)&&(x+=p,h[h.length-(S>0?0:1)]=0,v+=p,y++),d[S]={left:0,top:v,row:y,width:T,height:l},h[h.length-1]+=T+f}),x}_fitCols(t,i,s,l){const{ctx:r,maxHeight:c,options:{labels:{padding:f}}}=this,d=this.legendHitBoxes=[],h=this.columnSizes=[],p=c-t;let x=f,y=0,v=0,_=0,S=0;return this.legendItems.forEach((T,w)=>{const{itemWidth:M,itemHeight:D}=aj(s,i,r,T,l);w>0&&v+D+2*f>p&&(x+=y+f,h.push({width:y,height:v}),_+=y+f,S++,y=v=0),d[w]={left:_,top:v,col:S,width:M,height:D},y=Math.max(y,M),v+=D+f}),x+=y,h.push({width:y,height:v}),x}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:i,options:{align:s,labels:{padding:l},rtl:r}}=this,c=va(r,this.left,this.width);if(this.isHorizontal()){let f=0,d=we(s,this.left+l,this.right-this.lineWidths[f]);for(const h of i)f!==h.row&&(f=h.row,d=we(s,this.left+l,this.right-this.lineWidths[f])),h.top+=this.top+t+l,h.left=c.leftForLtr(c.x(d),h.width),d+=h.width+l}else{let f=0,d=we(s,this.top+t+l,this.bottom-this.columnSizes[f].height);for(const h of i)h.col!==f&&(f=h.col,d=we(s,this.top+t+l,this.bottom-this.columnSizes[f].height)),h.top=d,h.left+=this.left+l,h.left=c.leftForLtr(c.x(h.left),h.width),d+=h.height+l}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Ic(t,this),this._draw(),Uc(t)}}_draw(){const{options:t,columnSizes:i,lineWidths:s,ctx:l}=this,{align:r,labels:c}=t,f=Xt.color,d=va(t.rtl,this.left,this.width),h=ue(c.font),{padding:p}=c,x=h.size,y=x/2;let v;this.drawTitle(),l.textAlign=d.textAlign("left"),l.textBaseline="middle",l.lineWidth=.5,l.font=h.string;const{boxWidth:_,boxHeight:S,itemHeight:T}=sb(c,x),w=function(P,I,q){if(isNaN(_)||_<=0||isNaN(S)||S<0)return;l.save();const Y=xt(q.lineWidth,1);if(l.fillStyle=xt(q.fillStyle,f),l.lineCap=xt(q.lineCap,"butt"),l.lineDashOffset=xt(q.lineDashOffset,0),l.lineJoin=xt(q.lineJoin,"miter"),l.lineWidth=Y,l.strokeStyle=xt(q.strokeStyle,f),l.setLineDash(xt(q.lineDash,[])),c.usePointStyle){const K={radius:S*Math.SQRT2/2,pointStyle:q.pointStyle,rotation:q.rotation,borderWidth:Y},et=d.xPlus(P,_/2),nt=I+y;wv(l,K,et,nt,c.pointStyleWidth&&_)}else{const K=I+Math.max((x-S)/2,0),et=d.leftForLtr(P,_),nt=gs(q.borderRadius);l.beginPath(),Object.values(nt).some(ut=>ut!==0)?so(l,{x:et,y:K,w:_,h:S,radius:nt}):l.rect(et,K,_,S),l.fill(),Y!==0&&l.stroke()}l.restore()},M=function(P,I,q){ys(l,q.text,P,I+T/2,h,{strikethrough:q.hidden,textAlign:d.textAlign(q.textAlign)})},D=this.isHorizontal(),N=this._computeTitleHeight();D?v={x:we(r,this.left+p,this.right-s[0]),y:this.top+p+N,line:0}:v={x:this.left+p,y:we(r,this.top+N+p,this.bottom-i[0].height),line:0},Nv(this.ctx,t.textDirection);const j=T+p;this.legendItems.forEach((P,I)=>{l.strokeStyle=P.fontColor,l.fillStyle=P.fontColor;const q=l.measureText(P.text).width,Y=d.textAlign(P.textAlign||(P.textAlign=c.textAlign)),K=_+y+q;let et=v.x,nt=v.y;d.setWidth(this.width),D?I>0&&et+K+p>this.right&&(nt=v.y+=j,v.line++,et=v.x=we(r,this.left+p,this.right-s[v.line])):I>0&&nt+j>this.bottom&&(et=v.x=et+i[v.line].width+p,v.line++,nt=v.y=we(r,this.top+N+p,this.bottom-i[v.line].height));const ut=d.x(et);if(w(ut,nt,P),et=x3(Y,et+_+y,D?et+K:this.right,t.rtl),M(d.x(et),nt,P),D)v.x+=K+p;else if(typeof P.text!="string"){const G=h.lineHeight;v.y+=c_(P,G)+p}else v.y+=j}),$v(this.ctx,t.textDirection)}drawTitle(){const t=this.options,i=t.title,s=ue(i.font),l=De(i.padding);if(!i.display)return;const r=va(t.rtl,this.left,this.width),c=this.ctx,f=i.position,d=s.size/2,h=l.top+d;let p,x=this.left,y=this.width;if(this.isHorizontal())y=Math.max(...this.lineWidths),p=this.top+h,x=we(t.align,x,this.right-y);else{const _=this.columnSizes.reduce((S,T)=>Math.max(S,T.height),0);p=h+we(t.align,this.top,this.bottom-_-t.labels.padding-this._computeTitleHeight())}const v=we(f,x,x+y);c.textAlign=r.textAlign(Yh(f)),c.textBaseline="middle",c.strokeStyle=i.color,c.fillStyle=i.color,c.font=s.string,ys(c,i.text,v,p,s)}_computeTitleHeight(){const t=this.options.title,i=ue(t.font),s=De(t.padding);return t.display?i.lineHeight+s.height:0}_getLegendItemAt(t,i){let s,l,r;if(Gn(t,this.left,this.right)&&Gn(i,this.top,this.bottom)){for(r=this.legendHitBoxes,s=0;s<r.length;++s)if(l=r[s],Gn(t,l.left,l.left+l.width)&&Gn(i,l.top,l.top+l.height))return this.legendItems[s]}return null}handleEvent(t){const i=this.options;if(!rj(t.type,i))return;const s=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const l=this._hoveredItem,r=sj(l,s);l&&!r&&qt(i.onLeave,[t,l,this],this),this._hoveredItem=s,s&&!r&&qt(i.onHover,[t,s,this],this)}else s&&qt(i.onClick,[t,s,this],this)}}function aj(e,t,i,s,l){const r=lj(s,e,t,i),c=oj(l,s,t.lineHeight);return{itemWidth:r,itemHeight:c}}function lj(e,t,i,s){let l=e.text;return l&&typeof l!="string"&&(l=l.reduce((r,c)=>r.length>c.length?r:c)),t+i.size/2+s.measureText(l).width}function oj(e,t,i){let s=e;return typeof t.text!="string"&&(s=c_(t,i)),s}function c_(e,t){const i=e.text?e.text.length:0;return t*i}function rj(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var cj={id:"legend",_element:ab,start(e,t,i){const s=e.legend=new ab({ctx:e.ctx,options:i,chart:e});Me.configure(e,s,i),Me.addBox(e,s)},stop(e){Me.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,i){const s=e.legend;Me.configure(e,s,i),s.options=i},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,i){const s=t.datasetIndex,l=i.chart;l.isDatasetVisible(s)?(l.hide(s),t.hidden=!0):(l.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:i,pointStyle:s,textAlign:l,color:r,useBorderRadius:c,borderRadius:f}}=e.legend.options;return e._getSortedDatasetMetas().map(d=>{const h=d.controller.getStyle(i?0:void 0),p=De(h.borderWidth);return{text:t[d.index].label,fillStyle:h.backgroundColor,fontColor:r,hidden:!d.visible,lineCap:h.borderCapStyle,lineDash:h.borderDash,lineDashOffset:h.borderDashOffset,lineJoin:h.borderJoinStyle,lineWidth:(p.width+p.height)/4,strokeStyle:h.borderColor,pointStyle:s||h.pointStyle,rotation:h.rotation,textAlign:l||h.textAlign,borderRadius:c&&(f||h.borderRadius),datasetIndex:d.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class ng extends ni{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,i){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=i;const l=Wt(s.text)?s.text.length:1;this._padding=De(s.padding);const r=l*ue(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=r:this.width=r}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:i,left:s,bottom:l,right:r,options:c}=this,f=c.align;let d=0,h,p,x;return this.isHorizontal()?(p=we(f,s,r),x=i+t,h=r-s):(c.position==="left"?(p=s+t,x=we(f,l,i),d=Ot*-.5):(p=r-t,x=we(f,i,l),d=Ot*.5),h=l-i),{titleX:p,titleY:x,maxWidth:h,rotation:d}}draw(){const t=this.ctx,i=this.options;if(!i.display)return;const s=ue(i.font),r=s.lineHeight/2+this._padding.top,{titleX:c,titleY:f,maxWidth:d,rotation:h}=this._drawArgs(r);ys(t,i.text,0,0,s,{color:i.color,maxWidth:d,rotation:h,textAlign:Yh(i.align),textBaseline:"middle",translation:[c,f]})}}function uj(e,t){const i=new ng({ctx:e.ctx,options:t,chart:e});Me.configure(e,i,t),Me.addBox(e,i),e.titleBlock=i}var fj={id:"title",_element:ng,start(e,t,i){uj(e,i)},stop(e){const t=e.titleBlock;Me.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,i){const s=e.titleBlock;Me.configure(e,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Qr=new WeakMap;var dj={id:"subtitle",start(e,t,i){const s=new ng({ctx:e.ctx,options:i,chart:e});Me.configure(e,s,i),Me.addBox(e,s),Qr.set(e,s)},stop(e){Me.removeBox(e,Qr.get(e)),Qr.delete(e)},beforeUpdate(e,t,i){const s=Qr.get(e);Me.configure(e,s,i),s.options=i},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ql={average(e){if(!e.length)return!1;let t,i,s=new Set,l=0,r=0;for(t=0,i=e.length;t<i;++t){const f=e[t].element;if(f&&f.hasValue()){const d=f.tooltipPosition();s.add(d.x),l+=d.y,++r}}return r===0||s.size===0?!1:{x:[...s].reduce((f,d)=>f+d)/s.size,y:l/r}},nearest(e,t){if(!e.length)return!1;let i=t.x,s=t.y,l=Number.POSITIVE_INFINITY,r,c,f;for(r=0,c=e.length;r<c;++r){const d=e[r].element;if(d&&d.hasValue()){const h=d.getCenterPoint(),p=ch(t,h);p<l&&(l=p,f=d)}}if(f){const d=f.tooltipPosition();i=d.x,s=d.y}return{x:i,y:s}}};function yn(e,t){return t&&(Wt(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function Vn(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
145`)>-1?e.split(`
146`):e}function hj(e,t){const{element:i,datasetIndex:s,index:l}=t,r=e.getDatasetMeta(s).controller,{label:c,value:f}=r.getLabelAndValue(l);return{chart:e,label:c,parsed:r.getParsed(l),raw:e.data.datasets[s].data[l],formattedValue:f,dataset:r.getDataset(),dataIndex:l,datasetIndex:s,element:i}}function lb(e,t){const i=e.chart.ctx,{body:s,footer:l,title:r}=e,{boxWidth:c,boxHeight:f}=t,d=ue(t.bodyFont),h=ue(t.titleFont),p=ue(t.footerFont),x=r.length,y=l.length,v=s.length,_=De(t.padding);let S=_.height,T=0,w=s.reduce((N,j)=>N+j.before.length+j.lines.length+j.after.length,0);if(w+=e.beforeBody.length+e.afterBody.length,x&&(S+=x*h.lineHeight+(x-1)*t.titleSpacing+t.titleMarginBottom),w){const N=t.displayColors?Math.max(f,d.lineHeight):d.lineHeight;S+=v*N+(w-v)*d.lineHeight+(w-1)*t.bodySpacing}y&&(S+=t.footerMarginTop+y*p.lineHeight+(y-1)*t.footerSpacing);let M=0;const D=function(N){T=Math.max(T,i.measureText(N).width+M)};return i.save(),i.font=h.string,$t(e.title,D),i.font=d.string,$t(e.beforeBody.concat(e.afterBody),D),M=t.displayColors?c+2+t.boxPadding:0,$t(s,N=>{$t(N.before,D),$t(N.lines,D),$t(N.after,D)}),M=0,i.font=p.string,$t(e.footer,D),i.restore(),T+=_.width,{width:T,height:S}}function gj(e,t){const{y:i,height:s}=t;return i<s/2?"top":i>e.height-s/2?"bottom":"center"}function pj(e,t,i,s){const{x:l,width:r}=s,c=i.caretSize+i.caretPadding;if(e==="left"&&l+r+c>t.width||e==="right"&&l-r-c<0)return!0}function mj(e,t,i,s){const{x:l,width:r}=i,{width:c,chartArea:{left:f,right:d}}=e;let h="center";return s==="center"?h=l<=(f+d)/2?"left":"right":l<=r/2?h="left":l>=c-r/2&&(h="right"),pj(h,e,t,i)&&(h="center"),h}function ob(e,t,i){const s=i.yAlign||t.yAlign||gj(e,i);return{xAlign:i.xAlign||t.xAlign||mj(e,t,i,s),yAlign:s}}function xj(e,t){let{x:i,width:s}=e;return t==="right"?i-=s:t==="center"&&(i-=s/2),i}function yj(e,t,i){let{y:s,height:l}=e;return t==="top"?s+=i:t==="bottom"?s-=l+i:s-=l/2,s}function rb(e,t,i,s){const{caretSize:l,caretPadding:r,cornerRadius:c}=e,{xAlign:f,yAlign:d}=i,h=l+r,{topLeft:p,topRight:x,bottomLeft:y,bottomRight:v}=gs(c);let _=xj(t,f);const S=yj(t,d,h);return d==="center"?f==="left"?_+=h:f==="right"&&(_-=h):f==="left"?_-=Math.max(p,y)+l:f==="right"&&(_+=Math.max(x,v)+l),{x:ye(_,0,s.width-t.width),y:ye(S,0,s.height-t.height)}}function Jr(e,t,i){const s=De(i.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-s.right:e.x+s.left}function cb(e){return yn([],Vn(e))}function bj(e,t,i){return Li(e,{tooltip:t,tooltipItems:i,type:"tooltip"})}function ub(e,t){const i=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return i?e.override(i):e}const u_={beforeTitle:Un,title(e){if(e.length>0){const t=e[0],i=t.chart.data.labels,s=i?i.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex<s)return i[t.dataIndex]}return""},afterTitle:Un,beforeBody:Un,beforeLabel:Un,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");const i=e.formattedValue;return Et(i)||(t+=i),t},labelColor(e){const i=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:i.borderColor,backgroundColor:i.backgroundColor,borderWidth:i.borderWidth,borderDash:i.borderDash,borderDashOffset:i.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){const i=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:i.pointStyle,rotation:i.rotation}},afterLabel:Un,afterBody:Un,beforeFooter:Un,footer:Un,afterFooter:Un};function ze(e,t,i,s){const l=e[t].call(i,s);return typeof l>"u"?u_[t].call(i,s):l}class fb extends ni{static positioners=ql;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const i=this.chart,s=this.options.setContext(this.getContext()),l=s.enabled&&i.options.animation&&s.animations,r=new Hv(this.chart,l);return l._cacheable&&(this._cachedAnimations=Object.freeze(r)),r}getContext(){return this.$context||(this.$context=bj(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,i){const{callbacks:s}=i,l=ze(s,"beforeTitle",this,t),r=ze(s,"title",this,t),c=ze(s,"afterTitle",this,t);let f=[];return f=yn(f,Vn(l)),f=yn(f,Vn(r)),f=yn(f,Vn(c)),f}getBeforeBody(t,i){return cb(ze(i.callbacks,"beforeBody",this,t))}getBody(t,i){const{callbacks:s}=i,l=[];return $t(t,r=>{const c={before:[],lines:[],after:[]},f=ub(s,r);yn(c.before,Vn(ze(f,"beforeLabel",this,r))),yn(c.lines,ze(f,"label",this,r)),yn(c.after,Vn(ze(f,"afterLabel",this,r))),l.push(c)}),l}getAfterBody(t,i){return cb(ze(i.callbacks,"afterBody",this,t))}getFooter(t,i){const{callbacks:s}=i,l=ze(s,"beforeFooter",this,t),r=ze(s,"footer",this,t),c=ze(s,"afterFooter",this,t);let f=[];return f=yn(f,Vn(l)),f=yn(f,Vn(r)),f=yn(f,Vn(c)),f}_createItems(t){const i=this._active,s=this.chart.data,l=[],r=[],c=[];let f=[],d,h;for(d=0,h=i.length;d<h;++d)f.push(hj(this.chart,i[d]));return t.filter&&(f=f.filter((p,x,y)=>t.filter(p,x,y,s))),t.itemSort&&(f=f.sort((p,x)=>t.itemSort(p,x,s))),$t(f,p=>{const x=ub(t.callbacks,p);l.push(ze(x,"labelColor",this,p)),r.push(ze(x,"labelPointStyle",this,p)),c.push(ze(x,"labelTextColor",this,p))}),this.labelColors=l,this.labelPointStyles=r,this.labelTextColors=c,this.dataPoints=f,f}update(t,i){const s=this.options.setContext(this.getContext()),l=this._active;let r,c=[];if(!l.length)this.opacity!==0&&(r={opacity:0});else{const f=ql[s.position].call(this,l,this._eventPosition);c=this._createItems(s),this.title=this.getTitle(c,s),this.beforeBody=this.getBeforeBody(c,s),this.body=this.getBody(c,s),this.afterBody=this.getAfterBody(c,s),this.footer=this.getFooter(c,s);const d=this._size=lb(this,s),h=Object.assign({},f,d),p=ob(this.chart,s,h),x=rb(s,h,p,this.chart);this.xAlign=p.xAlign,this.yAlign=p.yAlign,r={opacity:1,x:x.x,y:x.y,width:d.width,height:d.height,caretX:f.x,caretY:f.y}}this._tooltipItems=c,this.$context=void 0,r&&this._resolveAnimations().update(this,r),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:i})}drawCaret(t,i,s,l){const r=this.getCaretPosition(t,s,l);i.lineTo(r.x1,r.y1),i.lineTo(r.x2,r.y2),i.lineTo(r.x3,r.y3)}getCaretPosition(t,i,s){const{xAlign:l,yAlign:r}=this,{caretSize:c,cornerRadius:f}=s,{topLeft:d,topRight:h,bottomLeft:p,bottomRight:x}=gs(f),{x:y,y:v}=t,{width:_,height:S}=i;let T,w,M,D,N,j;return r==="center"?(N=v+S/2,l==="left"?(T=y,w=T-c,D=N+c,j=N-c):(T=y+_,w=T+c,D=N-c,j=N+c),M=T):(l==="left"?w=y+Math.max(d,p)+c:l==="right"?w=y+_-Math.max(h,x)-c:w=this.caretX,r==="top"?(D=v,N=D-c,T=w-c,M=w+c):(D=v+S,N=D+c,T=w+c,M=w-c),j=D),{x1:T,x2:w,x3:M,y1:D,y2:N,y3:j}}drawTitle(t,i,s){const l=this.title,r=l.length;let c,f,d;if(r){const h=va(s.rtl,this.x,this.width);for(t.x=Jr(this,s.titleAlign,s),i.textAlign=h.textAlign(s.titleAlign),i.textBaseline="middle",c=ue(s.titleFont),f=s.titleSpacing,i.fillStyle=s.titleColor,i.font=c.string,d=0;d<r;++d)i.fillText(l[d],h.x(t.x),t.y+c.lineHeight/2),t.y+=c.lineHeight+f,d+1===r&&(t.y+=s.titleMarginBottom-f)}}_drawColorBox(t,i,s,l,r){const c=this.labelColors[s],f=this.labelPointStyles[s],{boxHeight:d,boxWidth:h}=r,p=ue(r.bodyFont),x=Jr(this,"left",r),y=l.x(x),v=d<p.lineHeight?(p.lineHeight-d)/2:0,_=i.y+v;if(r.usePointStyle){const S={radius:Math.min(h,d)/2,pointStyle:f.pointStyle,rotation:f.rotation,borderWidth:1},T=l.leftForLtr(y,h)+h/2,w=_+d/2;t.strokeStyle=r.multiKeyBackground,t.fillStyle=r.multiKeyBackground,fh(t,S,T,w),t.strokeStyle=c.borderColor,t.fillStyle=c.backgroundColor,fh(t,S,T,w)}else{t.lineWidth=At(c.borderWidth)?Math.max(...Object.values(c.borderWidth)):c.borderWidth||1,t.strokeStyle=c.borderColor,t.setLineDash(c.borderDash||[]),t.lineDashOffset=c.borderDashOffset||0;const S=l.leftForLtr(y,h),T=l.leftForLtr(l.xPlus(y,1),h-2),w=gs(c.borderRadius);Object.values(w).some(M=>M!==0)?(t.beginPath(),t.fillStyle=r.multiKeyBackground,so(t,{x:S,y:_,w:h,h:d,radius:w}),t.fill(),t.stroke(),t.fillStyle=c.backgroundColor,t.beginPath(),so(t,{x:T,y:_+1,w:h-2,h:d-2,radius:w}),t.fill()):(t.fillStyle=r.multiKeyBackground,t.fillRect(S,_,h,d),t.strokeRect(S,_,h,d),t.fillStyle=c.backgroundColor,t.fillRect(T,_+1,h-2,d-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,i,s){const{body:l}=this,{bodySpacing:r,bodyAlign:c,displayColors:f,boxHeight:d,boxWidth:h,boxPadding:p}=s,x=ue(s.bodyFont);let y=x.lineHeight,v=0;const _=va(s.rtl,this.x,this.width),S=function(q){i.fillText(q,_.x(t.x+v),t.y+y/2),t.y+=y+r},T=_.textAlign(c);let w,M,D,N,j,P,I;for(i.textAlign=c,i.textBaseline="middle",i.font=x.string,t.x=Jr(this,T,s),i.fillStyle=s.bodyColor,$t(this.beforeBody,S),v=f&&T!=="right"?c==="center"?h/2+p:h+2+p:0,N=0,P=l.length;N<P;++N){for(w=l[N],M=this.labelTextColors[N],i.fillStyle=M,$t(w.before,S),D=w.lines,f&&D.length&&(this._drawColorBox(i,t,N,_,s),y=Math.max(x.lineHeight,d)),j=0,I=D.length;j<I;++j)S(D[j]),y=x.lineHeight;$t(w.after,S)}v=0,y=x.lineHeight,$t(this.afterBody,S),t.y-=r}drawFooter(t,i,s){const l=this.footer,r=l.length;let c,f;if(r){const d=va(s.rtl,this.x,this.width);for(t.x=Jr(this,s.footerAlign,s),t.y+=s.footerMarginTop,i.textAlign=d.textAlign(s.footerAlign),i.textBaseline="middle",c=ue(s.footerFont),i.fillStyle=s.footerColor,i.font=c.string,f=0;f<r;++f)i.fillText(l[f],d.x(t.x),t.y+c.lineHeight/2),t.y+=c.lineHeight+s.footerSpacing}}drawBackground(t,i,s,l){const{xAlign:r,yAlign:c}=this,{x:f,y:d}=t,{width:h,height:p}=s,{topLeft:x,topRight:y,bottomLeft:v,bottomRight:_}=gs(l.cornerRadius);i.fillStyle=l.backgroundColor,i.strokeStyle=l.borderColor,i.lineWidth=l.borderWidth,i.beginPath(),i.moveTo(f+x,d),c==="top"&&this.drawCaret(t,i,s,l),i.lineTo(f+h-y,d),i.quadraticCurveTo(f+h,d,f+h,d+y),c==="center"&&r==="right"&&this.drawCaret(t,i,s,l),i.lineTo(f+h,d+p-_),i.quadraticCurveTo(f+h,d+p,f+h-_,d+p),c==="bottom"&&this.drawCaret(t,i,s,l),i.lineTo(f+v,d+p),i.quadraticCurveTo(f,d+p,f,d+p-v),c==="center"&&r==="left"&&this.drawCaret(t,i,s,l),i.lineTo(f,d+x),i.quadraticCurveTo(f,d,f+x,d),i.closePath(),i.fill(),l.borderWidth>0&&i.stroke()}_updateAnimationTarget(t){const i=this.chart,s=this.$animations,l=s&&s.x,r=s&&s.y;if(l||r){const c=ql[t.position].call(this,this._active,this._eventPosition);if(!c)return;const f=this._size=lb(this,t),d=Object.assign({},c,this._size),h=ob(i,t,d),p=rb(t,d,h,i);(l._to!==p.x||r._to!==p.y)&&(this.xAlign=h.xAlign,this.yAlign=h.yAlign,this.width=f.width,this.height=f.height,this.caretX=c.x,this.caretY=c.y,this._resolveAnimations().update(this,p))}}_willRender(){return!!this.opacity}draw(t){const i=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(i);const l={width:this.width,height:this.height},r={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const c=De(i.padding),f=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;i.enabled&&f&&(t.save(),t.globalAlpha=s,this.drawBackground(r,t,l,i),Nv(t,i.textDirection),r.y+=c.top,this.drawTitle(r,t,i),this.drawBody(r,t,i),this.drawFooter(r,t,i),$v(t,i.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,i){const s=this._active,l=t.map(({datasetIndex:f,index:d})=>{const h=this.chart.getDatasetMeta(f);if(!h)throw new Error("Cannot find a dataset at index "+f);return{datasetIndex:f,element:h.data[d],index:d}}),r=!_c(s,l),c=this._positionChanged(l,i);(r||c)&&(this._active=l,this._eventPosition=i,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,i,s=!0){if(i&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const l=this.options,r=this._active||[],c=this._getActiveElements(t,r,i,s),f=this._positionChanged(c,t),d=i||!_c(c,r)||f;return d&&(this._active=c,(l.enabled||l.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,i))),d}_getActiveElements(t,i,s,l){const r=this.options;if(t.type==="mouseout")return[];if(!l)return i.filter(f=>this.chart.data.datasets[f.datasetIndex]&&this.chart.getDatasetMeta(f.datasetIndex).controller.getParsed(f.index)!==void 0);const c=this.chart.getElementsAtEventForMode(t,r.mode,r,s);return r.reverse&&c.reverse(),c}_positionChanged(t,i){const{caretX:s,caretY:l,options:r}=this,c=ql[r.position].call(this,t,i);return c!==!1&&(s!==c.x||l!==c.y)}}var f_={id:"tooltip",_element:fb,positioners:ql,afterInit(e,t,i){i&&(e.tooltip=new fb({chart:e,options:i}))},beforeUpdate(e,t,i){e.tooltip&&e.tooltip.initialize(i)},reset(e,t,i){e.tooltip&&e.tooltip.initialize(i)},afterDraw(e){const t=e.tooltip;if(t&&t._willRender()){const i={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...i,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",i)}},afterEvent(e,t){if(e.tooltip){const i=t.replay;e.tooltip.handleEvent(t.event,i,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(e,t)=>t.bodyFont.size,boxWidth:(e,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:u_},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:e=>e!=="filter"&&e!=="itemSort"&&e!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},vj=Object.freeze({__proto__:null,Colors:jR,Decimation:zR,Filler:ij,Legend:cj,SubTitle:dj,Title:fj,Tooltip:f_});const _j=(e,t,i,s)=>(typeof t=="string"?(i=e.push(t)-1,s.unshift({index:i,label:t})):isNaN(t)&&(i=null),i);function kj(e,t,i,s){const l=e.indexOf(t);if(l===-1)return _j(e,t,i,s);const r=e.lastIndexOf(t);return l!==r?i:l}const Sj=(e,t)=>e===null?null:ye(Math.round(e),0,t);function db(e){const t=this.getLabels();return e>=0&&e<t.length?t[e]:e}class Tj extends vs{static id="category";static defaults={ticks:{callback:db}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const i=this._addedLabels;if(i.length){const s=this.getLabels();for(const{index:l,label:r}of i)s[l]===r&&s.splice(l,1);this._addedLabels=[]}super.init(t)}parse(t,i){if(Et(t))return null;const s=this.getLabels();return i=isFinite(i)&&s[i]===t?i:kj(s,t,xt(i,t),this._addedLabels),Sj(i,s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:i}=this.getUserBounds();let{min:s,max:l}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),i||(l=this.getLabels().length-1)),this.min=s,this.max=l}buildTicks(){const t=this.min,i=this.max,s=this.options.offset,l=[];let r=this.getLabels();r=t===0&&i===r.length-1?r:r.slice(t,i+1),this._valueRange=Math.max(r.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let c=t;c<=i;c++)l.push({value:c});return l}getLabelForValue(t){return db.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const i=this.ticks;return t<0||t>i.length-1?null:this.getPixelForValue(i[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}function Ej(e,t){const i=[],{bounds:l,step:r,min:c,max:f,precision:d,count:h,maxTicks:p,maxDigits:x,includeBounds:y}=e,v=r||1,_=p-1,{min:S,max:T}=t,w=!Et(c),M=!Et(f),D=!Et(h),N=(T-S)/(x+1);let j=l0((T-S)/_/v)*v,P,I,q,Y;if(j<1e-14&&!w&&!M)return[{value:S},{value:T}];Y=Math.ceil(T/j)-Math.floor(S/j),Y>_&&(j=l0(Y*j/_/v)*v),Et(d)||(P=Math.pow(10,d),j=Math.ceil(j*P)/P),l==="ticks"?(I=Math.floor(S/j)*j,q=Math.ceil(T/j)*j):(I=S,q=T),w&&M&&r&&u3((f-c)/r,j/1e3)?(Y=Math.round(Math.min((f-c)/j,p)),j=(f-c)/Y,I=c,q=f):D?(I=w?c:I,q=M?f:q,Y=h-1,j=(q-I)/Y):(Y=(q-I)/j,Xl(Y,Math.round(Y),j/1e3)?Y=Math.round(Y):Y=Math.ceil(Y));const K=Math.max(o0(j),o0(I));P=Math.pow(10,Et(d)?K:d),I=Math.round(I*P)/P,q=Math.round(q*P)/P;let et=0;for(w&&(y&&I!==c?(i.push({value:c}),I<c&&et++,Xl(Math.round((I+et*j)*P)/P,c,hb(c,N,e))&&et++):I<c&&et++);et<Y;++et){const nt=Math.round((I+et*j)*P)/P;if(M&&nt>f)break;i.push({value:nt})}return M&&y&&q!==f?i.length&&Xl(i[i.length-1].value,f,hb(f,N,e))?i[i.length-1].value=f:i.push({value:f}):(!M||q===f)&&i.push({value:q}),i}function hb(e,t,{horizontal:i,minRotation:s}){const l=fn(s),r=(i?Math.sin(l):Math.cos(l))||.001,c=.75*t*(""+e).length;return Math.min(t/r,c)}class Mc extends vs{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,i){return Et(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:i,maxDefined:s}=this.getUserBounds();let{min:l,max:r}=this;const c=d=>l=i?l:d,f=d=>r=s?r:d;if(t){const d=_n(l),h=_n(r);d<0&&h<0?f(0):d>0&&h>0&&c(0)}if(l===r){let d=r===0?1:Math.abs(r*.05);f(r+d),t||c(l-d)}this.min=l,this.max=r}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:i,stepSize:s}=t,l;return s?(l=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,l>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${l} ticks. Limiting to 1000.`),l=1e3)):(l=this.computeTickLimit(),i=i||11),i&&(l=Math.min(i,l)),l}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,i=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const l={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:i.precision,step:i.stepSize,count:i.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:i.minRotation||0,includeBounds:i.includeBounds!==!1},r=this._range||this,c=Ej(l,r);return t.bounds==="ticks"&&xv(c,this,"value"),t.reverse?(c.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),c}configure(){const t=this.ticks;let i=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const l=(s-i)/Math.max(t.length-1,1)/2;i-=l,s+=l}this._startValue=i,this._endValue=s,this._valueRange=s-i}getLabelForValue(t){return po(t,this.chart.options.locale,this.options.ticks.format)}}class wj extends Mc{static id="linear";static defaults={ticks:{callback:Fc.formatters.numeric}};determineDataLimits(){const{min:t,max:i}=this.getMinMax(!0);this.min=te(t)?t:0,this.max=te(i)?i:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),i=t?this.width:this.height,s=fn(this.options.ticks.minRotation),l=(t?Math.sin(s):Math.cos(s))||.001,r=this._resolveTickFontOptions(0);return Math.ceil(i/Math.min(40,r.lineHeight/l))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}const lo=e=>Math.floor(Di(e)),ls=(e,t)=>Math.pow(10,lo(e)+t);function gb(e){return e/Math.pow(10,lo(e))===1}function pb(e,t,i){const s=Math.pow(10,i),l=Math.floor(e/s);return Math.ceil(t/s)-l}function Aj(e,t){const i=t-e;let s=lo(i);for(;pb(e,t,s)>10;)s++;for(;pb(e,t,s)<10;)s--;return Math.min(s,lo(e))}function Mj(e,{min:t,max:i}){t=We(e.min,t);const s=[],l=lo(t);let r=Aj(t,i),c=r<0?Math.pow(10,Math.abs(r)):1;const f=Math.pow(10,r),d=l>r?Math.pow(10,l):0,h=Math.round((t-d)*c)/c,p=Math.floor((t-d)/f/10)*f*10;let x=Math.floor((h-p)/Math.pow(10,r)),y=We(e.min,Math.round((d+p+x*Math.pow(10,r))*c)/c);for(;y<i;)s.push({value:y,major:gb(y),significand:x}),x>=10?x=x<15?15:20:x++,x>=20&&(r++,x=2,c=r>=0?1:c),y=Math.round((d+p+x*Math.pow(10,r))*c)/c;const v=We(e.max,y);return s.push({value:v,major:gb(v),significand:x}),s}class Cj extends vs{static id="logarithmic";static defaults={ticks:{callback:Fc.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,i){const s=Mc.prototype.parse.apply(this,[t,i]);if(s===0){this._zero=!0;return}return te(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:i}=this.getMinMax(!0);this.min=te(t)?Math.max(0,t):null,this.max=te(i)?Math.max(0,i):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!te(this._userMin)&&(this.min=t===ls(this.min,0)?ls(this.min,-1):ls(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:i}=this.getUserBounds();let s=this.min,l=this.max;const r=f=>s=t?s:f,c=f=>l=i?l:f;s===l&&(s<=0?(r(1),c(10)):(r(ls(s,-1)),c(ls(l,1)))),s<=0&&r(ls(l,-1)),l<=0&&c(ls(s,1)),this.min=s,this.max=l}buildTicks(){const t=this.options,i={min:this._userMin,max:this._userMax},s=Mj(i,this);return t.bounds==="ticks"&&xv(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":po(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Di(t),this._valueRange=Di(this.max)-Di(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Di(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const i=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+i*this._valueRange)}}function xh(e){const t=e.ticks;if(t.display&&e.display){const i=De(t.backdropPadding);return xt(t.font&&t.font.size,Xt.font.size)+i.height}return 0}function Dj(e,t,i){return i=Wt(i)?i:[i],{w:A3(e,t.string,i),h:i.length*t.lineHeight}}function mb(e,t,i,s,l){return e===s||e===l?{start:t-i/2,end:t+i/2}:e<s||e>l?{start:t-i,end:t}:{start:t,end:t+i}}function Oj(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},i=Object.assign({},t),s=[],l=[],r=e._pointLabels.length,c=e.options.pointLabels,f=c.centerPointLabels?Ot/r:0;for(let d=0;d<r;d++){const h=c.setContext(e.getPointLabelContext(d));l[d]=h.padding;const p=e.getPointPosition(d,e.drawingArea+l[d],f),x=ue(h.font),y=Dj(e.ctx,x,e._pointLabels[d]);s[d]=y;const v=Ae(e.getIndexAngle(d)+f),_=Math.round(qh(v)),S=mb(_,p.x,y.w,0,180),T=mb(_,p.y,y.h,90,270);Rj(i,t,v,S,T)}e.setCenterPoint(t.l-i.l,i.r-t.r,t.t-i.t,i.b-t.b),e._pointLabelItems=$j(e,s,l)}function Rj(e,t,i,s,l){const r=Math.abs(Math.sin(i)),c=Math.abs(Math.cos(i));let f=0,d=0;s.start<t.l?(f=(t.l-s.start)/r,e.l=Math.min(e.l,t.l-f)):s.end>t.r&&(f=(s.end-t.r)/r,e.r=Math.max(e.r,t.r+f)),l.start<t.t?(d=(t.t-l.start)/c,e.t=Math.min(e.t,t.t-d)):l.end>t.b&&(d=(l.end-t.b)/c,e.b=Math.max(e.b,t.b+d))}function jj(e,t,i){const s=e.drawingArea,{extra:l,additionalAngle:r,padding:c,size:f}=i,d=e.getPointPosition(t,s+l+c,r),h=Math.round(qh(Ae(d.angle+ie))),p=Bj(d.y,f.h,h),x=Lj(h),y=zj(d.x,f.w,x);return{visible:!0,x:d.x,y:p,textAlign:x,left:y,top:p,right:y+f.w,bottom:p+f.h}}function Nj(e,t){if(!t)return!0;const{left:i,top:s,right:l,bottom:r}=e;return!(Xn({x:i,y:s},t)||Xn({x:i,y:r},t)||Xn({x:l,y:s},t)||Xn({x:l,y:r},t))}function $j(e,t,i){const s=[],l=e._pointLabels.length,r=e.options,{centerPointLabels:c,display:f}=r.pointLabels,d={extra:xh(r)/2,additionalAngle:c?Ot/l:0};let h;for(let p=0;p<l;p++){d.padding=i[p],d.size=t[p];const x=jj(e,p,d);s.push(x),f==="auto"&&(x.visible=Nj(x,h),x.visible&&(h=x))}return s}function Lj(e){return e===0||e===180?"center":e<180?"left":"right"}function zj(e,t,i){return i==="right"?e-=t:i==="center"&&(e-=t/2),e}function Bj(e,t,i){return i===90||i===270?e-=t/2:(i>270||i<90)&&(e-=t),e}function Pj(e,t,i){const{left:s,top:l,right:r,bottom:c}=i,{backdropColor:f}=t;if(!Et(f)){const d=gs(t.borderRadius),h=De(t.backdropPadding);e.fillStyle=f;const p=s-h.left,x=l-h.top,y=r-s+h.width,v=c-l+h.height;Object.values(d).some(_=>_!==0)?(e.beginPath(),so(e,{x:p,y:x,w:y,h:v,radius:d}),e.fill()):e.fillRect(p,x,y,v)}}function Hj(e,t){const{ctx:i,options:{pointLabels:s}}=e;for(let l=t-1;l>=0;l--){const r=e._pointLabelItems[l];if(!r.visible)continue;const c=s.setContext(e.getPointLabelContext(l));Pj(i,c,r);const f=ue(c.font),{x:d,y:h,textAlign:p}=r;ys(i,e._pointLabels[l],d,h+f.lineHeight/2,f,{color:c.color,textAlign:p,textBaseline:"middle"})}}function d_(e,t,i,s){const{ctx:l}=e;if(i)l.arc(e.xCenter,e.yCenter,t,0,Vt);else{let r=e.getPointPosition(0,t);l.moveTo(r.x,r.y);for(let c=1;c<s;c++)r=e.getPointPosition(c,t),l.lineTo(r.x,r.y)}}function Fj(e,t,i,s,l){const r=e.ctx,c=t.circular,{color:f,lineWidth:d}=t;!c&&!s||!f||!d||i<0||(r.save(),r.strokeStyle=f,r.lineWidth=d,r.setLineDash(l.dash||[]),r.lineDashOffset=l.dashOffset,r.beginPath(),d_(e,i,c,s),r.closePath(),r.stroke(),r.restore())}function Ij(e,t,i){return Li(e,{label:i,index:t,type:"pointLabel"})}class Uj extends Mc{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Fc.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=De(xh(this.options)/2),i=this.width=this.maxWidth-t.width,s=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+i/2+t.left),this.yCenter=Math.floor(this.top+s/2+t.top),this.drawingArea=Math.floor(Math.min(i,s)/2)}determineDataLimits(){const{min:t,max:i}=this.getMinMax(!1);this.min=te(t)&&!isNaN(t)?t:0,this.max=te(i)&&!isNaN(i)?i:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/xh(this.options))}generateTickLabels(t){Mc.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((i,s)=>{const l=qt(this.options.pointLabels.callback,[i,s],this);return l||l===0?l:""}).filter((i,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?Oj(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,i,s,l){this.xCenter+=Math.floor((t-i)/2),this.yCenter+=Math.floor((s-l)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,i,s,l))}getIndexAngle(t){const i=Vt/(this._pointLabels.length||1),s=this.options.startAngle||0;return Ae(t*i+fn(s))}getDistanceFromCenterForValue(t){if(Et(t))return NaN;const i=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*i:(t-this.min)*i}getValueForDistanceFromCenter(t){if(Et(t))return NaN;const i=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-i:this.min+i}getPointLabelContext(t){const i=this._pointLabels||[];if(t>=0&&t<i.length){const s=i[t];return Ij(this.getContext(),t,s)}}getPointPosition(t,i,s=0){const l=this.getIndexAngle(t)-ie+s;return{x:Math.cos(l)*i+this.xCenter,y:Math.sin(l)*i+this.yCenter,angle:l}}getPointPositionForValue(t,i){return this.getPointPosition(t,this.getDistanceFromCenterForValue(i))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:i,top:s,right:l,bottom:r}=this._pointLabelItems[t];return{left:i,top:s,right:l,bottom:r}}drawBackground(){const{backgroundColor:t,grid:{circular:i}}=this.options;if(t){const s=this.ctx;s.save(),s.beginPath(),d_(this,this.getDistanceFromCenterForValue(this._endValue),i,this._pointLabels.length),s.closePath(),s.fillStyle=t,s.fill(),s.restore()}}drawGrid(){const t=this.ctx,i=this.options,{angleLines:s,grid:l,border:r}=i,c=this._pointLabels.length;let f,d,h;if(i.pointLabels.display&&Hj(this,c),l.display&&this.ticks.forEach((p,x)=>{if(x!==0||x===0&&this.min<0){d=this.getDistanceFromCenterForValue(p.value);const y=this.getContext(x),v=l.setContext(y),_=r.setContext(y);Fj(this,v,d,c,_)}}),s.display){for(t.save(),f=c-1;f>=0;f--){const p=s.setContext(this.getPointLabelContext(f)),{color:x,lineWidth:y}=p;!y||!x||(t.lineWidth=y,t.strokeStyle=x,t.setLineDash(p.borderDash),t.lineDashOffset=p.borderDashOffset,d=this.getDistanceFromCenterForValue(i.reverse?this.min:this.max),h=this.getPointPosition(f,d),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(h.x,h.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,i=this.options,s=i.ticks;if(!s.display)return;const l=this.getIndexAngle(0);let r,c;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(l),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((f,d)=>{if(d===0&&this.min>=0&&!i.reverse)return;const h=s.setContext(this.getContext(d)),p=ue(h.font);if(r=this.getDistanceFromCenterForValue(this.ticks[d].value),h.showLabelBackdrop){t.font=p.string,c=t.measureText(f.label).width,t.fillStyle=h.backdropColor;const x=De(h.backdropPadding);t.fillRect(-c/2-x.left,-r-p.size/2-x.top,c+x.width,p.size+x.height)}ys(t,f.label,0,-r,p,{color:h.color,strokeColor:h.textStrokeColor,strokeWidth:h.textStrokeWidth})}),t.restore()}drawTitle(){}}const Wc={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Be=Object.keys(Wc);function xb(e,t){return e-t}function yb(e,t){if(Et(t))return null;const i=e._adapter,{parser:s,round:l,isoWeekday:r}=e._parseOpts;let c=t;return typeof s=="function"&&(c=s(c)),te(c)||(c=typeof s=="string"?i.parse(c,s):i.parse(c)),c===null?null:(l&&(c=l==="week"&&(Ta(r)||r===!0)?i.startOf(c,"isoWeek",r):i.startOf(c,l)),+c)}function bb(e,t,i,s){const l=Be.length;for(let r=Be.indexOf(e);r<l-1;++r){const c=Wc[Be[r]],f=c.steps?c.steps:Number.MAX_SAFE_INTEGER;if(c.common&&Math.ceil((i-t)/(f*c.size))<=s)return Be[r]}return Be[l-1]}function qj(e,t,i,s,l){for(let r=Be.length-1;r>=Be.indexOf(i);r--){const c=Be[r];if(Wc[c].common&&e._adapter.diff(l,s,c)>=t-1)return c}return Be[i?Be.indexOf(i):0]}function Vj(e){for(let t=Be.indexOf(e)+1,i=Be.length;t<i;++t)if(Wc[Be[t]].common)return Be[t]}function vb(e,t,i){if(!i)e[t]=!0;else if(i.length){const{lo:s,hi:l}=Vh(i,t),r=i[s]>=t?i[s]:i[l];e[r]=!0}}function Yj(e,t,i,s){const l=e._adapter,r=+l.startOf(t[0].value,s),c=t[t.length-1].value;let f,d;for(f=r;f<=c;f=+l.add(f,1,s))d=i[f],d>=0&&(t[d].major=!0);return t}function _b(e,t,i){const s=[],l={},r=t.length;let c,f;for(c=0;c<r;++c)f=t[c],l[f]=c,s.push({value:f,major:!1});return r===0||!i?s:Yj(e,s,l,i)}class yh extends vs{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,i={}){const s=t.time||(t.time={}),l=this._adapter=new XD._date(t.adapters.date);l.init(i),Wl(s.displayFormats,l.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=i.normalized}parse(t,i){return t===void 0?null:yb(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,i=this._adapter,s=t.time.unit||"day";let{min:l,max:r,minDefined:c,maxDefined:f}=this.getUserBounds();function d(h){!c&&!isNaN(h.min)&&(l=Math.min(l,h.min)),!f&&!isNaN(h.max)&&(r=Math.max(r,h.max))}(!c||!f)&&(d(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&d(this.getMinMax(!1))),l=te(l)&&!isNaN(l)?l:+i.startOf(Date.now(),s),r=te(r)&&!isNaN(r)?r:+i.endOf(Date.now(),s)+1,this.min=Math.min(l,r-1),this.max=Math.max(l+1,r)}_getLabelBounds(){const t=this.getLabelTimestamps();let i=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(i=t[0],s=t[t.length-1]),{min:i,max:s}}buildTicks(){const t=this.options,i=t.time,s=t.ticks,l=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&l.length&&(this.min=this._userMin||l[0],this.max=this._userMax||l[l.length-1]);const r=this.min,c=this.max,f=g3(l,r,c);return this._unit=i.unit||(s.autoSkip?bb(i.minUnit,this.min,this.max,this._getLabelCapacity(r)):qj(this,f.length,i.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:Vj(this._unit),this.initOffsets(l),t.reverse&&f.reverse(),_b(this,f,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let i=0,s=0,l,r;this.options.offset&&t.length&&(l=this.getDecimalForValue(t[0]),t.length===1?i=1-l:i=(this.getDecimalForValue(t[1])-l)/2,r=this.getDecimalForValue(t[t.length-1]),t.length===1?s=r:s=(r-this.getDecimalForValue(t[t.length-2]))/2);const c=t.length<3?.5:.25;i=ye(i,0,c),s=ye(s,0,c),this._offsets={start:i,end:s,factor:1/(i+1+s)}}_generate(){const t=this._adapter,i=this.min,s=this.max,l=this.options,r=l.time,c=r.unit||bb(r.minUnit,i,s,this._getLabelCapacity(i)),f=xt(l.ticks.stepSize,1),d=c==="week"?r.isoWeekday:!1,h=Ta(d)||d===!0,p={};let x=i,y,v;if(h&&(x=+t.startOf(x,"isoWeek",d)),x=+t.startOf(x,h?"day":c),t.diff(s,i,c)>1e5*f)throw new Error(i+" and "+s+" are too far apart with stepSize of "+f+" "+c);const _=l.ticks.source==="data"&&this.getDataTimestamps();for(y=x,v=0;y<s;y=+t.add(y,f,c),v++)vb(p,y,_);return(y===s||l.bounds==="ticks"||v===1)&&vb(p,y,_),Object.keys(p).sort(xb).map(S=>+S)}getLabelForValue(t){const i=this._adapter,s=this.options.time;return s.tooltipFormat?i.format(t,s.tooltipFormat):i.format(t,s.displayFormats.datetime)}format(t,i){const l=this.options.time.displayFormats,r=this._unit,c=i||l[r];return this._adapter.format(t,c)}_tickFormatFunction(t,i,s,l){const r=this.options,c=r.ticks.callback;if(c)return qt(c,[t,i,s],this);const f=r.time.displayFormats,d=this._unit,h=this._majorUnit,p=d&&f[d],x=h&&f[h],y=s[i],v=h&&x&&y&&y.major;return this._adapter.format(t,l||(v?x:p))}generateTickLabels(t){let i,s,l;for(i=0,s=t.length;i<s;
146++i)l=t[i],l.label=this._tickFormatFunction(l.value,i,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const i=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((i.start+s)*i.factor)}getValueForPixel(t){const i=this._offsets,s=this.getDecimalForPixel(t)/i.factor-i.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){const i=this.options.ticks,s=this.ctx.measureText(t).width,l=fn(this.isHorizontal()?i.maxRotation:i.minRotation),r=Math.cos(l),c=Math.sin(l),f=this._resolveTickFontOptions(0).size;return{w:s*r+f*c,h:s*c+f*r}}_getLabelCapacity(t){const i=this.options.time,s=i.displayFormats,l=s[i.unit]||s.millisecond,r=this._tickFormatFunction(t,0,_b(this,[t],this._majorUnit),l),c=this._getLabelSize(r),f=Math.floor(this.isHorizontal()?this.width/c.w:this.height/c.h)-1;return f>0?f:1}getDataTimestamps(){let t=this._cache.data||[],i,s;if(t.length)return t;const l=this.getMatchingVisibleMetas();if(this._normalized&&l.length)return this._cache.data=l[0].controller.getAllParsedValues(this);for(i=0,s=l.length;i<s;++i)t=t.concat(l[i].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let i,s;if(t.length)return t;const l=this.getLabels();for(i=0,s=l.length;i<s;++i)t.push(yb(this,l[i]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return vv(t.sort(xb))}}function tc(e,t,i){let s=0,l=e.length-1,r,c,f,d;i?(t>=e[s].pos&&t<=e[l].pos&&({lo:s,hi:l}=Wn(e,"pos",t)),{pos:r,time:f}=e[s],{pos:c,time:d}=e[l]):(t>=e[s].time&&t<=e[l].time&&({lo:s,hi:l}=Wn(e,"time",t)),{time:r,pos:f}=e[s],{time:c,pos:d}=e[l]);const h=c-r;return h?f+(d-f)*(t-r)/h:f}class Gj extends yh{static id="timeseries";static defaults=yh.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),i=this._table=this.buildLookupTable(t);this._minPos=tc(i,this.min),this._tableRange=tc(i,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:i,max:s}=this,l=[],r=[];let c,f,d,h,p;for(c=0,f=t.length;c<f;++c)h=t[c],h>=i&&h<=s&&l.push(h);if(l.length<2)return[{time:i,pos:0},{time:s,pos:1}];for(c=0,f=l.length;c<f;++c)p=l[c+1],d=l[c-1],h=l[c],Math.round((p+d)/2)!==h&&r.push({time:h,pos:c/(f-1)});return r}_generate(){const t=this.min,i=this.max;let s=super.getDataTimestamps();return(!s.includes(t)||!s.length)&&s.splice(0,0,t),(!s.includes(i)||s.length===1)&&s.push(i),s.sort((l,r)=>l-r)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const i=this.getDataTimestamps(),s=this.getLabelTimestamps();return i.length&&s.length?t=this.normalize(i.concat(s)):t=i.length?i:s,t=this._cache.all=t,t}getDecimalForValue(t){return(tc(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const i=this._offsets,s=this.getDecimalForPixel(t)/i.factor-i.end;return tc(this._table,s*this._tableRange+this._minPos,!0)}}var Wj=Object.freeze({__proto__:null,CategoryScale:Tj,LinearScale:wj,LogarithmicScale:Cj,RadialLinearScale:Uj,TimeScale:yh,TimeSeriesScale:Gj});const Xj=[WD,wR,vj,Wj],h_="label";function kb(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Kj(e,t){const i=e.options;i&&t&&Object.assign(i,t)}function g_(e,t){e.labels=t}function p_(e,t){let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:h_;const s=[];e.datasets=t.map(l=>{const r=e.datasets.find(c=>c[i]===l[i]);return!r||!l.data||s.includes(r)?{...l}:(s.push(r),Object.assign(r,l),r)})}function Zj(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:h_;const i={labels:[],datasets:[]};return g_(i,e.labels),p_(i,e.datasets,t),i}function Qj(e,t){const{height:i=150,width:s=300,redraw:l=!1,datasetIdKey:r,type:c,data:f,options:d,plugins:h=[],fallbackContent:p,updateMode:x,...y}=e,v=A.useRef(null),_=A.useRef(null),S=()=>{v.current&&(_.current=new Da(v.current,{type:c,data:Zj(f,r),options:d&&{...d},plugins:h}),kb(t,_.current))},T=()=>{kb(t,null),_.current&&(_.current.destroy(),_.current=null)};return A.useEffect(()=>{!l&&_.current&&d&&Kj(_.current,d)},[l,d]),A.useEffect(()=>{!l&&_.current&&g_(_.current.config.data,f.labels)},[l,f.labels]),A.useEffect(()=>{!l&&_.current&&f.datasets&&p_(_.current.config.data,f.datasets,r)},[l,f.datasets]),A.useEffect(()=>{_.current&&(l?(T(),setTimeout(S)):_.current.update(x))},[l,d,f.labels,f.datasets,x]),A.useEffect(()=>{_.current&&(T(),setTimeout(S))},[c]),A.useEffect(()=>(S(),()=>T()),[]),_h.createElement("canvas",{ref:v,role:"img",height:i,width:s,...y},p)}const Jj=A.forwardRef(Qj);function tN(e,t){return Da.register(t),A.forwardRef((i,s)=>
146_h.createElement(Jj,{...i,ref:s,type:e}))}const eN=tN("bar",Uv),nN="_subTitle_7eoug_7",iN="_subText_7eoug_15",sN="_subTextLeft_7eoug_22",aN="_dot_7eoug_26",ec={subTitle:nN,subText:iN,subTextLeft:sN,dot:aN};function m_({titlePosition:e,firstTimestamp:t,lastTimestamp:i,lastValue:s,subtitleTooltip:l,units:r}){const c=Jt(s,r);if(e===Qn.LEFT)return b.jsxs("div",{className:ec.subTitle,children:[c+" last "+Gl(t),l]});{const f="Past "+Gl(t),d=c+" as of "+Gl(i)+" ago";return b.jsxs("div",{className:ec.subText,children:[b.jsx("div",{className:ec.subTextLeft,children:f}),b.jsx("div",{className:ec.dot,children:" ⋅ "}),b.jsx("div",{children:d})]})}}const lN="_container_vjtpz_7",oN="_mainTitle_vjtpz_11",rN="_titleContainer_vjtpz_20",cN="_subTitleCenter_vjtpz_26",nc={container:lN,mainTitle:oN,titleContainer:rN,subTitleCenter:cN};function Xc({title:e,titlePosition:t,subTitle:i,tooltip:s}){const l=t===Qn.LEFT?{justifyContent:"space-between"}:{justifyContent:"center"};return b.jsxs("div",{className:nc.container,children:[b.jsxs("div",{className:nc.mainTitle,style:l,children:[b.jsxs("div",{className:nc.titleContainer,children:[e,s]}),t===Qn.LEFT?i:null]}),b.jsx("div",{className:nc.subTitleCenter,children:t===Qn.CENTER?i:null})]})}function oo(e){return b.jsx(M1,{content:e.tooltip,children:b.jsx(C1,{children:b.jsx(oe,{icon:"info",size:"xsm"})})})}const uN="_container_1036u_7",fN="_footer_1036u_11",dN="_spacingLine_1036u_19",hN="_graphContainer_1036u_26",gN="_graphCanvas_1036u_32",pN="_barTooltip_1036u_36",ha={container:uN,footer:fN,spacingLine:dN,graphContainer:hN,graphCanvas:gN,barTooltip:pN};Da.register(i_,f_);const x_=31;function mN(e){return Math.min(x_,e.length)}function y_({config:e,titlePosition:t,titleTooltip:i,label:s,timestamps:l,values:r}){const[c,f]=A.useState({open:!1,timestamp:"",minutes:0,left:0,top:0}),d=mN(l),h=r.slice(r.length-d,r.length);if(l.length===0||h.length===0)return null;const p=h.map(N=>Math.round((1-N)*1440)),x=h.map(N=>JM(N)),y={labels:l.slice(l.length-d,l.length),datasets:[{label:s,data:Array(h.length).fill(1),backgroundColor:x,barPercentage:.9,categoryPercentage:1}]},v={animation:!1,maintainAspectRatio:!1,scales:{y:{display:!1},x:{display:!1}},plugins:{legend:{display:!1},tooltip:{enabled:!1,external:({chart:N,tooltip:j})=>{if(j.opacity===0){f(Y=>Y.open?{...Y,open:!1}:Y);return}const P=j.dataPoints[0];if(!P)return;const I=N.canvas.getBoundingClientRect(),q={open:!0,timestamp:P.label,minutes:p[P.dataIndex],left:I.left+j.caretX,top:I.top+j.caretY};f(Y=>Y.open===q.open&&Y.timestamp===q.timestamp&&Y.minutes===q.minutes&&Y.left===q.left&&Y.top===q.top?Y:q)}}}},_=l[l.length-d],S=l[l.length-1],T=p.reduce((N,j)=>N+j,0),w=h.reduce((N,j)=>N+j,0)/h.length,M=b.jsx(oo,{tooltip:b.jsx(oh,{dateFormatOptions:"month_and_year",timestamp:S,minutes:T})}),D=b.jsx(m_,{firstTimestamp:_,lastTimestamp:S,lastValue:w,subtitleTooltip:M,titlePosition:t,units:e.units});return b.jsxs("div",{className:ha.container,children:[b.jsx(Xc,{subTitle:D,title:e.title,titlePosition:t,tooltip:i}),b.jsx("div",{className:ha.graphContainer,children:b.jsx(eN,{options:v,data:y,className:ha.graphCanvas})}),b.jsxs("div",{className:ha.footer,children:[b.jsx("div",{children:Gl(_)+" ago"}),b.jsx("div",{className:ha.spacingLine,children:" "}),b.jsx("div",{children:Gl(S)+" ago"})]}),c.open&&Vb.createPortal(b.jsx("div",{className:ha.barTooltip,style:{left:c.left,top:c.top},children:b.jsx(oh,{dateFormatOptions:"full",timestamp:c.timestamp,minutes:c.minutes})}),document.body)]})}const ga={wrapper:{k1xSpc:"x3nfvp2",kGNEyG:"x6s0dn4",$$css:!0},chevronLeft:{k3aq6I:"x19jd1h0",$$css:!0},chevronDown:{k3aq6I:"x1iffjtl",$$css:!0},chevronRotateDown:{k3aq6I:"x1iffjtl",kKVMdj:"x1rx1mwt",k44tkh:"x2mfxb",ko0y90:"x1v7wizp",$$css:!0},chevronRotateUp:{k3aq6I:"x9tu13d",kKVMdj:"xpmxxtm",k44tkh:"x2mfxb",ko0y90:"x1v7wizp",$$css:!0},disabled:{ku685b:"x7mrwgb",$$css:!0}};function b_({direction:e,disabled:t=!1}){const i=FM(e);return b.jsx("span",{...ht(ga.wrapper,t&&ga.disabled,e===un.LEFT&&ga.chevronLeft,e===un.DOWN&&ga.chevronDown,e===un.UP&&ga.chevronRotateUp,i===un.UP&&e===un.DOWN&&ga.chevronRotateDown),children:b.jsx(oe,{icon:"chevronRight"})})}const xN="_container_187p9_7",yN="_button_187p9_22",bN="_disabled_187p9_44",Zd={container:xN,button:yN,disabled:bN};function Sb({direction:e,disabled:t,onClick:i}){return b.jsx("div",{className:Zd.container,children:b.jsx("div",{className:`${Zd.button}${t?` ${Zd.disabled}`:""}`,onClick:()=>i(e),children:b.jsx(b_,{direction:e,disabled:t})})})}const vN="_container_7ifrm_7",_N="_dot_7ifrm_13",kN="_selected_7ifrm_23",Qd={container:vN,dot:_N,selected:kN};function SN({count:e,selectedIdx:t,onClick:i}){const l=A.useMemo(()=>[...Array(e)],[e]).map((r,c)=>b.jsx("div",{className:`${Qd.dot}${c===t?` ${Qd.selected}`:""}`,onClick:()=>i(c)},c));return b.jsx("div",{className:Qd.container,children:l})}Da.register(...Xj);const TN="_container_1a6e2_7",EN="_title_1a6e2_33",wN="_graphContainer_1a6e2_37",AN="_bubbleBody_1a6e2_49",MN="_tooltip_1a6e2_66",CN="_tooltipTitle_1a6e2_72",DN="_tooltipLabel_1a6e2_85",os={container:TN,title:EN,graphContainer:wN,bubbleBody:AN,tooltip:MN,tooltipTitle:CN,tooltipLabel:DN}
146,ON={borderColor:Zn.DARK_BLUE,borderWidth:2,pointBackgroundColor:Zn.LIGHT_BLUE,pointBorderColor:Zn.DARK_BLUE,lineTension:.4},RN=50,jN="0",NN="1";function $N(e){const t=new Date(e),i={month:"short",day:"2-digit",year:"numeric"},s={timeZoneName:"short",hour:"2-digit",minute:"2-digit"};return t.toLocaleDateString([],i)+" - "+t.toLocaleTimeString([],s)}function LN(e,t,i){return{animation:!1,plugins:{legend:{display:!1},tooltip:{enabled:!1,mode:"index",intersect:!1,displayColors:!1,callbacks:{label:s=>e(s.raw),title:s=>{const l=s[0].label;return l?$N(l):""}},external:function(s){const l=document.getElementById("latencyTooltip");if(l){const r=s.tooltip;if(r.opacity===0){l.style.opacity=jN;return}if(l.classList.remove("above","below","no-transform"),r.yAlign?l.classList.add(r.yAlign):l.classList.add("no-transform"),r.title||r.body){const f=r.title||[],d=r.body,h=document.getElementById("latencyTooltipTitle"),p=document.getElementById("latencyTooltipLabel");f.length>0&&h&&(h.innerHTML=f[0]),d.length>0&&p&&(p.innerHTML=d[0].lines.join(`
147`))}const c=s.chart.canvas.getBoundingClientRect();l.style.opacity=NN,l.style.left=c.left+window.pageXOffset+r.caretX+"px",l.style.top=c.top+window.pageYOffset+r.caretY+"px"}}}},maintainAspectRatio:!1,hover:{mode:"index",intersect:!1},scales:{yAxes:{display:!1,min:t,max:i},xAxes:{display:!1}}}}function v_({config:e,titlePosition:t,titleTooltip:i,label:s,timestamps:l,values:r}){const c=A.useRef(null),f=1;let d=Math.min(...r),h=Math.max(...r);const p=h-d||1;return d=d-f*p,h=h+f*p,A.useEffect(()=>{const x=c.current?.getContext("2d");if(x==null)return;const y=r.length<RN?3:0,v=new Da(x,{type:"line",data:{labels:l,datasets:[{label:s,data:r,pointRadius:y,...ON}]},options:LN(e.displayValueFn,d,h)});return()=>{v.destroy()}}),l.length===0||r.length===0?null:b.jsxs("div",{className:os.container,children:[b.jsx("div",{className:os.title,children:b.jsx(Xc,{subTitle:b.jsx(m_,{firstTimestamp:l[0],lastTimestamp:l[l.length-1],lastValue:r[r.length-1],subtitleTooltip:null,titlePosition:t,units:e.units}),title:e.title,titlePosition:t,tooltip:i})}),b.jsx("div",{className:os.graphContainer,children:b.jsx("canvas",{id:"graph",ref:c})}),b.jsx("div",{className:os.tooltip,id:"latencyTooltip",children:b.jsxs("div",{className:os.bubbleBody,children:[b.jsx("div",{className:os.tooltipTitle,id:"latencyTooltipTitle"}),b.jsx("div",{className:os.tooltipLabel,id:"latencyTooltipLabel"})]})})]})}const zN="_scrollContainer_sc3od_16",BN="_graphsContainer_sc3od_22",PN="_graphContainer_sc3od_29",Jd={scrollContainer:zN,graphsContainer:BN,graphContainer:PN};function HN({graphConfigs:e,graphTitlePosition:t,metrics:i}){const[s,l]=A.useState(0),r=A.useRef(null),c=A.useMemo(()=>i.map(S=>{const T=e?e[S.label]:null;if(!T||S.values.length<12)return null;let w=null;switch(T.graphType){case It.HEALTH_BAR:w=b.jsx(y_,{config:T,titlePosition:t,titleTooltip:null,...S});break;case It.LINE:default:w=b.jsx(v_,{config:T,titlePosition:t,titleTooltip:null,...S});break}return b.jsxs("div",{className:Jd.graphContainer,children:[" ",w," "]},T.order)}).filter(S=>S!==null).sort(function(S,T){return parseInt(S.key??"0",10)-parseInt(T.key??"0",10)}),[e,t,i]),f=A.useCallback(S=>{const T=r.current;T!=null&&(l(S),T.children[S].scrollIntoView({behavior:"smooth",block:"nearest",inline:"center"}))},[r]),d=A.useCallback(S=>{const T=S===un.RIGHT?1:-1,w=s+T;w<0||w>c.length-1||f(w)},[s,c,f]);if(c.length===0)return null;const h=s>0,p=b.jsx(Sb,{direction:un.LEFT,disabled:!h,onClick:d}),x=s<c.length-1,y=b.jsx(Sb,{direction:un.RIGHT,disabled:!x,onClick:d}),v=c.length>=3,_=window.screen.width>600;return b.jsxs(Ma,{children:[b.jsxs("div",{className:Jd.scrollContainer,children:[_&&v&&p,b.jsx("div",{className:Jd.graphsContainer,ref:r,children:c}),_&&v&&y]}),_&&v&&b.jsx(SN,{count:c.length,selectedIdx:s,onClick:f})]})}function ic(e){return b.jsx(fo,{content:e.tooltipText,children:e.children})}function FN({status:e}){const t=tC(e);return b.jsx("img",{alt:"",src:t.src,srcSet:t.srcSet,className:"x1lliihq xh8yej3 xur7f20"})}function IN(e){return b.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:[b.jsx("path",{d:"M12 12q.054 0 .106.005A1.998 1.998 0 0 1 13 15.729V17a1 1 0 1 1-2 0v-1.27a1.997 1.997 0 0 1 .893-3.725Q11.945 12 12 12"}),b.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 2a4.5 4.5 0 0 1 4.5 4.5V8h1.357l.239.01c1.181.094 2.193.887 2.425 2.066.243 1.233.479 2.94.479 4.924l-.01.73a26 26 0 0 1-.468 4.194l-.057.23
1471c-.311 1.051-1.267 1.747-2.37 1.835l-.238.01H6.143l-.239-.01c-1.181-.094-2.193-.887-2.425-2.066a26 26 0 0 1-.468-4.193L3 15c0-1.736.18-3.26.389-4.44l.09-.484C3.726 8.82 4.86 8 6.143 8H7.5V6.5A4.5 4.5 0 0 1 12 2m-5.857 8a.84.84 0 0 0-.508.157.5.5 0 0 0-.194.305A23.7 23.7 0 0 0 5 15c0 1.828.218 3.405.441 4.538a.5.5 0 0 0 .194.305.84.84 0 0 0 .508.157h11.714a.84.84 0 0 0 .508-.157.5.5 0 0 0 .194-.305c.223-1.133.441-2.71.441-4.538s-.218-3.405-.441-4.538a.5.5 0 0 0-.194-.305.84.84 0 0 0-.508-.157zM12 4a2.5 2.5 0 0 0-2.5 2.5V8h5V6.5A2.5 2.5 0 0 0 12 4"})]})}function UN(e){return b.jsxs("svg",{viewBox:"0 0 24 24",fill:"currentColor",...e,children:[b.jsx("circle",{cx:"6.18",cy:"17.82",r:"2.18"}),b.jsx("path",{d:"M4 4.44v2.83c7.03 0 12.73 5.7 12.73 12.73h2.83C19.56 11.4 12.6 4.44 4 4.44z"}),b.jsx("path",{d:"M4 10.1v2.83a6.9 6.9 0 0 1 6.9 6.9h2.83A9.73 9.73 0 0 0 4 10.1z"})]})}function bh(e){const t=e.buttonLink&&e.buttonText?b.jsx(hs,{buttonText:e.buttonText,iconPosition:"left",url:e.buttonLink}):null;return b.jsxs(de,{width:360,gap:2,children:[b.jsx(Yt,{weight:"bold",children:e.tooltipTitle}),b.jsx(Yt,{type:"supporting",color:"primary",children:e.tooltipText}),t]})}const qN="_container_1kzxu_7",VN="_subTitle_1kzxu_14",Tb={container:qN,subTitle:VN};function YN({config:e,metrics:t,org:i}){const s=t.find(p=>p.label===e.metricKeys[0]),l=t.find(p=>p.label===e.metricKeys[1]);if(s===void 0||l===void 0)return null;const r=s.values[s.values.length-1],c=l.values[l.values.length-1],f=b.jsx(bh,{buttonLink:bc[i],buttonText:ah,tooltipText:K1[i],tooltipTitle:J1}),d=`${r} ms (P90), ${c} ms (P99) last 31 days`,h=b.jsx("div",{className:Tb.subTitle,children:d});return b.jsx("div",{className:Tb.container,children:b.jsx(Xc,{subTitle:h,title:e.title,titlePosition:Qn.LEFT,tooltip:b.jsx(oo,{tooltip:f})})})}const GN="_container_1yks1_7",WN="_expandableContent_1yks1_13",XN="_expandableContentExpanded_1yks1_19",KN="_header_1yks1_31",ZN="_chevron_1yks1_36",zl={container:GN,expandableContent:WN,expandableContentExpanded:XN,header:KN,chevron:ZN},QN="Availability",JN="Month",t4="Latency (P99)",e4="Latency (P90)";function sc(e,t,i){return{key:e,header:b.jsx(Yt,{type:"supporting",color:"primary",weight:"bold",children:t}),width:D1(1),align:"start",renderCell:i??(s=>b.jsx(Yt,{type:"supporting",color:"primary",children:s[e]}))}}function n4(e){return{month:lv(e.date.toISOString()),latencyP90:`${e.latencyP90Ms} ms`,latencyP99:`${e.latencyP99Ms} ms`,availability:b.jsxs(Ce,{align:"center",gap:.5,children:[b.jsx(fv,{type:"circle",value:e.avgUptime}),b.jsx(Yt,{type:"supporting",color:"primary",children:e.uptimeContent}),b.jsx("div",{children:e.uptimeTooltip})]})}}function i4(e,t,i){return new Set(i.map(l=>new Date(l)).filter(l=>__(l,e,t)).map(l=>l.getUTCDate())).size}function __(e,t,i){const s=e.getUTCMonth(),l=e.getUTCFullYear();return s===t&&l===i}function k_(e){const t=Math.max(0,e.length-x_),i=new Date(e[t]);return{month:i.getUTCMonth(),year:i.getUTCFullYear()}}function s4(e,t){const{month:i,year:s}=k_(e),l=t.filter((c,f)=>__(new Date(e[f]),i,s));return l.reduce((c,f)=>c+f,0)/l.length}function a4({config:e,metrics:t}){const[i,s]=A.useState(!1),l=t.find(N=>N.label===e.metricKeys[0]),r=t.find(N=>N.label===e.metricKeys[1]),c=t.find(N=>N.label===e.metricKeys[2]);if(l===void 0||r===void 0||c===void 0)return null;const f=c.timestamps,d=c.values;if(f.length===0||d.length===0)return null;const{month:h,year:p}=k_(f),x=new Date(p,h,15),y=s4(f,d),v=Jt(y,e.units),_=i4(h,p,f),S=Math.round((1-y)*1440*_),T=b.jsx(oo,{tooltip:b.jsx(oh,{dateFormatOptions:"month_and_year",timestamp:x.toISOString(),minutes:S})}),w=i?un.UP:un.DOWN,M=i?ti.CLOSE_CONTENT:ti.EXPAND_CONTENT,D=()=>{bs($i.ACCORDION,M),s(!i)};return b.jsxs("div",{className:zl.container,children:[b.jsxs("div",{className:zl.header,onClick:D,children:[b.jsx(Xc,{subTitle:null,title:e.title,titlePosition:Qn.LEFT,tooltip:null}),b.jsx("div",{className:zl.chevron,children:b.jsx(b_,{direction:w})})]}),b.jsx("div",{className:`${zl.expandableContent}${i?` ${zl.expandableContentExpanded}`:""}`,children:b.jsx(I1,{density:"compact",data:[n4({date:x,latencyP90Ms:l.values[l.values.length-1],latencyP99Ms:r.values[r.values.length-1],avgUptime:y,uptimeContent:v,uptimeTooltip:T})],columns:[sc("month",JN),sc("latencyP90",e4),sc("latencyP99",t4),sc("availability",QN,N=>N.availability)]})})]})}const l4="_container_19xq4_7",o4="_scrollContainer_19xq4_11",r4="_graphsContainer_19xq4_17",c4="_graphContainer_19xq4_24",ac={container:l4,scrollC
147ontainer:o4,graphsContainer:r4,graphContainer:c4};function u4({graphConfig:e,graphTitlePosition:t,metrics:i,org:s}){const l=A.useRef(null),r=A.useMemo(()=>{if(!e)return null;const c=i.filter(y=>e.metricKeys.includes(y.label));if(c.length!==e.metricKeys.length)return null;const f=b.jsx(bh,{buttonLink:bc[s],buttonText:ah,tooltipText:bM[s],tooltipTitle:_M}),d=b.jsx(oo,{tooltip:f}),h=b.jsx(bh,{buttonLink:bc[s],buttonText:ah,tooltipText:K1[s],tooltipTitle:J1}),p=b.jsx(oo,{tooltip:h});let x=null;switch(e.graphType){case It.HEALTH_BAR:x=A.createElement(y_,{config:e,titlePosition:t,titleTooltip:d,...c[0],key:e.order});break;case It.HISTORY_PANEL:x=b.jsx(a4,{config:e,metrics:c},e.order);break;case It.LATENCY_SUMMARY_CARD:x=b.jsx(YN,{config:e,metrics:c,org:s},e.order);break;case It.LINE:default:x=A.createElement(v_,{config:e,titlePosition:t,titleTooltip:p,...c[0],key:e.order});break}return b.jsxs("div",{className:ac.graphContainer,children:[" ",x," "]})},[e,t,i,s]);return r?b.jsx("div",{className:ac.container,children:b.jsx("div",{className:ac.scrollContainer,children:b.jsx("div",{className:ac.graphsContainer,ref:l,children:r})})}):null}const f4={content:{khDVqt:"x126k92a",$$css:!0}};function S_(e){const{description:t,lastUpdateTime:i,status:s}=e,{color:l,icon:r}=Bh(s);return b.jsxs(de,{gap:2,children:[b.jsxs(Ce,{align:"center",gap:2,children:[b.jsx(oe,{icon:r,color:l,size:"sm"}),b.jsx(Yt,{type:"supporting",color:"primary",children:s})]}),b.jsx("div",{className:"x106a9eq",children:b.jsxs(de,{gap:1,children:[b.jsx(Yt,{color:"secondary",type:"supporting",children:Pc(i)}),b.jsx(Yt,{type:"supporting",color:"primary",xstyle:f4.content,children:t})]})})]})}const d4={banner:{k1K539:"xod5an3",$$css:!0}};function h4(e){const{outageId:t,serviceName:i}=e,s=p4(e.posts);if(s.length===0)return null;const l=s[0].status,{color:r,icon:c}=Bh(l),f=Pc(new Date(s[s.length-1].time));return b.jsx(E1,{defaultIsExpanded:!0,icon:b.jsx(oe,{icon:c,color:r,size:"md"}),id:`${t}`,status:g4(l),title:b.jsxs("span",{children:["Issue started at ",b.jsx("span",{className:"xuxw1ft",children:f})]}),xstyle:d4.banner,children:b.jsx(de,{gap:4,children:s.map((d,h)=>b.jsx(S_,{description:d.description,lastUpdateTime:new Date(d.time),serviceName:i,status:d.status},h))})})}function g4(e){switch(e){case Ct.SOME_DISRUPTIONS:case Ct.LOW_DISRUPTIONS:case Ct.RECOVERING:return"warning";case Ct.MEDIUM_DISRUPTIONS:return"orange";case Ct.MAJOR_DISRUPTIONS:case Ct.HIGH_DISRUPTIONS:return"error";case Ct.RESOLVED:case Ct.OPERATIONAL:return"success";default:return"info"}}function p4(e){return e.sort((t,i)=>new Date(i.time).getTime()-new Date(t.time).getTime())}const m4="The service is up and running with no known issues.",Eb={nameContainer:{kOIVth:"x167g77z",kVAEAm:"x1n2onr6",kY2c9j:"x1vjfegm",kfzvcC:"x47corl",$$css:!0},rightContainer:{kOIVth:"x1v2ro7d",kVAEAm:"x1n2onr6",kY2c9j:"x1vjfegm",kfzvcC:"x47corl",$$css:!0}};function x4(e){const{hash:t,org:i,outages:s,service:l}=e,r=nC(l.name),c=t.substring(1),f=c.length>0,d=s.some(T=>`${T.id}`===c),h=c===r,p=l.status===Ct.OPERATIONAL?b.jsx(S_,{description:m4,lastUpdateTime:new Date,serviceName:l.name,status:l.status}):s.map((T,w)=>b.jsx(h4,{outageId:T.id,posts:T.posts,serviceName:l.name},w)),x=f?d||h:iC(l.name,i),[y,v]=A.useState(x);A.useEffect(()=>{v(x)},[x,e.locationKey]);const _=()=>{bs($i.ACCORDION,y?ti.CLOSE_CONTENT:ti.EXPAND_CONTENT),v(T=>!T)},S=T=>{T.stopPropagation();const w=`${window.location.origin}${window.location.pathname}#${r}`;navigator.clipboard.writeText(w).catch(M=>{console.warn(M.message)})};return b.jsxs(b.Fragment,{children:[b.jsx("span",{id:r,className:"x1lliihq xqtp20y xb3r6kr"}),b.jsxs("div",{className:"x1n2onr6",children:[b.jsxs("div",{className:"x78zum5 x6s0dn4 x1qughib xh8yej3 x1n2onr6 x1ypdohk xqp6ajr x1hr3lfm xdz316r xla3ryy x9ngux5 x1xbjioj xyfe5t9 x1q5z220 x1mw0ja4 x1o9hk9w x15406qy xx6bhzk xwji4o3",children:[b.jsx("button",{"aria-expanded":y,"aria-label":`Toggle ${l.name} details`,onClick:_,type:"button",className:"x10l6tqk x10a8y8t xh8yej3 x1ghz6dp x1717udv x1ypdohk xjyslct"}),b.jsxs(Ce,{align:"center",xstyle:Eb.nameContainer,children:[b.jsx(Yt,{weight:"bold",children:l.name}),b.jsx("a",{href:`#${r}`,onClick:S,title:"Copy link to this section",className:"x1kr4716 x67bb7w x1kc3n6e xcafkax x117nqv4 xo5v014 x1hl2d
147hg x19991ni xx6bhzk xwji4o3",children:"#"})]}),b.jsxs(Ce,{align:"center",xstyle:Eb.rightContainer,children:[b.jsx("div",{className:"xrostsh",children:b.jsx(Ph,{status:l.status})}),b.jsx("span",{...{0:{className:"x3nfvp2 xv9yike x11xpdln xx6bhzk xwji4o3"},1:{className:"x3nfvp2 xv9yike x11xpdln xx6bhzk xwji4o3 x19jd1h0"}}[!!y<<0],children:b.jsx(oe,{color:"secondary",icon:"chevronDown",size:"sm"})})]})]}),y&&b.jsxs("div",{className:"x1y1aw1k x1hr3lfm xx6bls6",children:[p,y4(e)]})]})]})}function y4(e){const{metrics:t,org:i,service:s}=e,l=ev(i,s.name);return l&&t&&t.length>0?b.jsx("div",{className:"xeb7xqv xyamay9",children:l.map((r,c)=>b.jsx(u4,{graphConfig:r,graphTitlePosition:Qn.LEFT,metrics:t,org:i},c))}):null}const wb={buttons:{kqGvvJ:"xq6kz29",$$css:!0},servicesCard:{keoZOQ:"x14vqqas",$$css:!0}};function b4(e){const{org:t}=e,{loading:i,orgViewData:s}=HM(t),l=Tn(),{outages:r,services:c,status:f,orgName:d,metrics:h,rss_file_paths:p}=s;Bc(`${d} Status`),sv(i);const x=nv(c);let y;const v=CM(t),_=EM(h);s.feature_flags?.includes("metrics")&&v&&_.length>0&&(y=b.jsx(HN,{graphConfigs:v,graphTitlePosition:Qn.CENTER,metrics:_}));const S=bc[t],T=mM[t];return b.jsxs("div",{children:[b.jsxs("div",{className:"xs9asl8",children:[b.jsx(Hc,{lastUpdateTime:x}),b.jsx(wC,{orgName:d}),b.jsx(cv,{title:`${d} Status`})]}),i?b.jsx(uv,{}):b.jsx(Sa,{children:b.jsxs(de,{gap:0,children:[b.jsx(FN,{status:f}),y,b.jsx(Ma,{padding:0,xstyle:wb.servicesCard,children:b.jsx(de,{children:c.map((w,M)=>b.jsxs(A.Fragment,{children:[M>0&&b.jsx(Ca,{}),b.jsx(x4,{hash:l.hash,locationKey:l.key,metrics:w.feature_flags?.includes("metrics")?TM(h,t,w.name):[],org:t,outages:$M(r,w.id),service:w})]},M))})})]})}),b.jsx(Sa,{children:b.jsxs(Ce,{justify:"between",wrap:"wrap",xstyle:wb.buttons,children:[b.jsxs(Ce,{wrap:"wrap",children:[S&&b.jsx("div",{className:"x20nx6h",children:b.jsx(ic,{tooltipText:`Learn more about the ${d} Page`,children:b.jsx(hs,{buttonText:"Learn More",icon:b.jsx(oe,{icon:"externalLink",size:"sm"}),iconPosition:"left",url:S})})}),T&&b.jsx("div",{className:"x20nx6h",children:b.jsx(ic,{tooltipText:"Privacy Policy",children:b.jsx(hs,{buttonText:"Privacy Policy",icon:b.jsx(oe,{icon:IN,size:"sm"}),iconPosition:"left",url:T})})})]}),b.jsxs(Ce,{wrap:"wrap",children:[b.jsx("div",{className:"x20nx6h",children:b.jsx(ic,{tooltipText:"View event history",children:b.jsx(hs,{buttonText:"View History",icon:b.jsx(oe,{icon:"calendar",size:"sm"}),iconPosition:"left",url:"history"})})}),b.jsx("div",{className:"x20nx6h",children:b.jsx(ic,{tooltipText:"To subscribe, use an RSS reader app or browser plugin.",children:b.jsx(hs,{buttonText:"RSS Feed",icon:b.jsx(oe,{icon:UN,size:"sm"}),iconPosition:"left",newTab:!0,url:`${G1}/${p[0]}`})})})]})]})})]})}function v4(){return Bc("Page Not Found"),b.jsxs("div",{children:[b.jsx(Hc,{}),b.jsx("main",{children:b.jsx(Sa,{children:b.jsx(zc,{actions:b.jsx(hs,{buttonText:"Go to Home",iconPosition:"left",url:"/"}),description:"The page you are looking for does not exist.",headingLevel:1,title:"Page Not Found"})})})]})}function _4(){A.useEffect(()=>{Ah.send({hitType:"pageview",page:window.location.pathname})});const e=X1.map(({path:s,org:l})=>({path:s,children:[{index:!0,element:b.jsx(b4,{org:l})},{path:"history",element:b.jsx(pC,{org:l})}]})),t=[{index:!0,element:b.jsx(EC,{})},...e,{path:"*",element:b.jsx(v4,{})}],i=O2(t);return b.jsxs(b.Fragment,{children:[Y1,i,b.jsx(uM,{})]})}const k4=zE({name:"msp",typography:{scale:{base:16,ratio:1.25},body:{family:"Optimistic VF",fallbacks:'-apple-system, BlinkMacSystemFont, "Arial", sans-serif'},heading:{weight:"bold"}},radius:{base:8,multiplier:1},tokens:{"--color-accent":"#0064E0","--color-success":"#63BE09","--color-warning":"#FFBA00","--color-error":"#FA383E","--color-background-body":"#FFFFFF","--color-background-muted":"#F5F6F6","--color-text-primary":"#354854","--color-text-secondary":"rgba(53, 72, 84, 0.68)"},components:{banner:{"status:orange":{backgroundColor:"var(--color-background-orange)"}}}});Ah.initialize("UA-169234417-1");t2.createRoot(document.getElementById("root")).render(b.jsx(A.StrictMode,{children:b.jsx(n1,{theme:k4,mode:"light",children:b.jsx(hT,{children:b.jsx(_4,{})})})}));

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.