hprof-analyzer 0.1.0

Fast, low-memory Java HPROF heap-dump analyzer with Eclipse MAT-parity reports (System Overview, Leak Suspects, Top Consumers).
"use strict";(()=>{var e0=Object.create;var Pa=Object.defineProperty;var n0=Object.getOwnPropertyDescriptor;var s0=Object.getOwnPropertyNames;var i0=Object.getPrototypeOf,o0=Object.prototype.hasOwnProperty;var r0=(e,t,n)=>t in e?Pa(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Me=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var a0=(e,t,n,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of s0(t))!o0.call(e,i)&&i!==n&&Pa(e,i,{get:()=>t[i],enumerable:!(s=n0(t,i))||s.enumerable});return e};var me=(e,t,n)=>(n=e!=null?e0(i0(e)):{},a0(t||!e||!e.__esModule?Pa(n,"default",{value:e,enumerable:!0}):n,e));var R=(e,t,n)=>r0(e,typeof t!="symbol"?t+"":t,n);var od=Me(L=>{"use strict";var ei=Symbol.for("react.element"),l0=Symbol.for("react.portal"),c0=Symbol.for("react.fragment"),u0=Symbol.for("react.strict_mode"),d0=Symbol.for("react.profiler"),h0=Symbol.for("react.provider"),f0=Symbol.for("react.context"),p0=Symbol.for("react.forward_ref"),m0=Symbol.for("react.suspense"),g0=Symbol.for("react.memo"),y0=Symbol.for("react.lazy"),Xu=Symbol.iterator;function v0(e){return e===null||typeof e!="object"?null:(e=Xu&&e[Xu]||e["@@iterator"],typeof e=="function"?e:null)}var Zu={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},qu=Object.assign,Ju={};function os(e,t,n){this.props=e,this.context=t,this.refs=Ju,this.updater=n||Zu}os.prototype.isReactComponent={};os.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};os.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function td(){}td.prototype=os.prototype;function Ta(e,t,n){this.props=e,this.context=t,this.refs=Ju,this.updater=n||Zu}var Da=Ta.prototype=new td;Da.constructor=Ta;qu(Da,os.prototype);Da.isPureReactComponent=!0;var Gu=Array.isArray,ed=Object.prototype.hasOwnProperty,Ra={current:null},nd={key:!0,ref:!0,__self:!0,__source:!0};function sd(e,t,n){var s,i={},o=null,r=null;if(t!=null)for(s in t.ref!==void 0&&(r=t.ref),t.key!==void 0&&(o=""+t.key),t)ed.call(t,s)&&!nd.hasOwnProperty(s)&&(i[s]=t[s]);var l=arguments.length-2;if(l===1)i.children=n;else if(1<l){for(var c=Array(l),u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}if(e&&e.defaultProps)for(s in l=e.defaultProps,l)i[s]===void 0&&(i[s]=l[s]);return{$$typeof:ei,type:e,key:o,ref:r,props:i,_owner:Ra.current}}function _0(e,t){return{$$typeof:ei,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function Oa(e){return typeof e=="object"&&e!==null&&e.$$typeof===ei}function b0(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Qu=/\/+/g;function Ea(e,t){return typeof e=="object"&&e!==null&&e.key!=null?b0(""+e.key):t.toString(36)}function xo(e,t,n,s,i){var o=typeof e;(o==="undefined"||o==="boolean")&&(e=null);var r=!1;if(e===null)r=!0;else switch(o){case"string":case"number":r=!0;break;case"object":switch(e.$$typeof){case ei:case l0:r=!0}}if(r)return r=e,i=i(r),e=s===""?"."+Ea(r,0):s,Gu(i)?(n="",e!=null&&(n=e.replace(Qu,"$&/")+"/"),xo(i,t,n,"",function(u){return u})):i!=null&&(Oa(i)&&(i=_0(i,n+(!i.key||r&&r.key===i.key?"":(""+i.key).replace(Qu,"$&/")+"/")+e)),t.push(i)),1;if(r=0,s=s===""?".":s+":",Gu(e))for(var l=0;l<e.length;l++){o=e[l];var c=s+Ea(o,l);r+=xo(o,t,n,c,i)}else if(c=v0(e),typeof c=="function")for(e=c.call(e),l=0;!(o=e.next()).done;)o=o.value,c=s+Ea(o,l++),r+=xo(o,t,n,c,i);else if(o==="object")throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.");return r}function bo(e,t,n){if(e==null)return e;var s=[],i=0;return xo(e,s,"","",function(o){return t.call(n,o,i++)}),s}function x0(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Pt={current:null},wo={transition:null},w0={ReactCurrentDispatcher:Pt,ReactCurrentBatchConfig:wo,ReactCurrentOwner:Ra};function id(){throw Error("act(...) is not supported in production builds of React.")}L.Children={map:bo,forEach:function(e,t,n){bo(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return bo(e,function(){t++}),t},toArray:function(e){return bo(e,function(t){return t})||[]},only:function(e){if(!Oa(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};L.Component=os;L.Fragment=c0;L.Profiler=d0;L.PureComponent=Ta;L.StrictMode=u0;L.Suspense=m0;L.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=w0;L.act=id;L.cloneElement=function(e,t,n){if(e==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+e+".");var s=qu({},e.props),i=e.key,o=e.ref,r=e._owner;if(t!=null){if(t.ref!==void 0&&(o=t.ref,r=Ra.current),t.key!==void 0&&(i=""+t.key),e.type&&e.type.defaultProps)var l=e.type.defaultProps;for(c in t)ed.call(t,c)&&!nd.hasOwnProperty(c)&&(s[c]=t[c]===void 0&&l!==void 0?l[c]:t[c])}var c=arguments.length-2;if(c===1)s.children=n;else if(1<c){l=Array(c);for(var u=0;u<c;u++)l[u]=arguments[u+2];s.children=l}return{$$typeof:ei,type:e.type,key:i,ref:o,props:s,_owner:r}};L.createContext=function(e){return e={$$typeof:f0,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:h0,_context:e},e.Consumer=e};L.createElement=sd;L.createFactory=function(e){var t=sd.bind(null,e);return t.type=e,t};L.createRef=function(){return{current:null}};L.forwardRef=function(e){return{$$typeof:p0,render:e}};L.isValidElement=Oa;L.lazy=function(e){return{$$typeof:y0,_payload:{_status:-1,_result:e},_init:x0}};L.memo=function(e,t){return{$$typeof:g0,type:e,compare:t===void 0?null:t}};L.startTransition=function(e){var t=wo.transition;wo.transition={};try{e()}finally{wo.transition=t}};L.unstable_act=id;L.useCallback=function(e,t){return Pt.current.useCallback(e,t)};L.useContext=function(e){return Pt.current.useContext(e)};L.useDebugValue=function(){};L.useDeferredValue=function(e){return Pt.current.useDeferredValue(e)};L.useEffect=function(e,t){return Pt.current.useEffect(e,t)};L.useId=function(){return Pt.current.useId()};L.useImperativeHandle=function(e,t,n){return Pt.current.useImperativeHandle(e,t,n)};L.useInsertionEffect=function(e,t){return Pt.current.useInsertionEffect(e,t)};L.useLayoutEffect=function(e,t){return Pt.current.useLayoutEffect(e,t)};L.useMemo=function(e,t){return Pt.current.useMemo(e,t)};L.useReducer=function(e,t,n){return Pt.current.useReducer(e,t,n)};L.useRef=function(e){return Pt.current.useRef(e)};L.useState=function(e){return Pt.current.useState(e)};L.useSyncExternalStore=function(e,t,n){return Pt.current.useSyncExternalStore(e,t,n)};L.useTransition=function(){return Pt.current.useTransition()};L.version="18.3.1"});var rs=Me((J1,rd)=>{"use strict";rd.exports=od()});var gd=Me(K=>{"use strict";function Fa(e,t){var n=e.length;e.push(t);t:for(;0<n;){var s=n-1>>>1,i=e[s];if(0<ko(i,t))e[s]=t,e[n]=i,n=s;else break t}}function oe(e){return e.length===0?null:e[0]}function Co(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;t:for(var s=0,i=e.length,o=i>>>1;s<o;){var r=2*(s+1)-1,l=e[r],c=r+1,u=e[c];if(0>ko(l,n))c<i&&0>ko(u,l)?(e[s]=u,e[c]=n,s=c):(e[s]=l,e[r]=n,s=r);else if(c<i&&0>ko(u,n))e[s]=u,e[c]=n,s=c;else break t}}return t}function ko(e,t){var n=e.sortIndex-t.sortIndex;return n!==0?n:e.id-t.id}typeof performance=="object"&&typeof performance.now=="function"?(ad=performance,K.unstable_now=function(){return ad.now()}):(La=Date,ld=La.now(),K.unstable_now=function(){return La.now()-ld});var ad,La,ld,ge=[],$e=[],k0=1,Qt=null,xt=3,No=!1,En=!1,si=!1,dd=typeof setTimeout=="function"?setTimeout:null,hd=typeof clearTimeout=="function"?clearTimeout:null,cd=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function Ia(e){for(var t=oe($e);t!==null;){if(t.callback===null)Co($e);else if(t.startTime<=e)Co($e),t.sortIndex=t.expirationTime,Fa(ge,t);else break;t=oe($e)}}function ja(e){if(si=!1,Ia(e),!En)if(oe(ge)!==null)En=!0,Va(Ba);else{var t=oe($e);t!==null&&Ha(ja,t.startTime-e)}}function Ba(e,t){En=!1,si&&(si=!1,hd(ii),ii=-1),No=!0;var n=xt;try{for(Ia(t),Qt=oe(ge);Qt!==null&&(!(Qt.expirationTime>t)||e&&!md());){var s=Qt.callback;if(typeof s=="function"){Qt.callback=null,xt=Qt.priorityLevel;var i=s(Qt.expirationTime<=t);t=K.unstable_now(),typeof i=="function"?Qt.callback=i:Qt===oe(ge)&&Co(ge),Ia(t)}else Co(ge);Qt=oe(ge)}if(Qt!==null)var o=!0;else{var r=oe($e);r!==null&&Ha(ja,r.startTime-t),o=!1}return o}finally{Qt=null,xt=n,No=!1}}var Mo=!1,So=null,ii=-1,fd=5,pd=-1;function md(){return!(K.unstable_now()-pd<fd)}function Aa(){if(So!==null){var e=K.unstable_now();pd=e;var t=!0;try{t=So(!0,e)}finally{t?ni():(Mo=!1,So=null)}}else Mo=!1}var ni;typeof cd=="function"?ni=function(){cd(Aa)}:typeof MessageChannel<"u"?(za=new MessageChannel,ud=za.port2,za.port1.onmessage=Aa,ni=function(){ud.postMessage(null)}):ni=function(){dd(Aa,0)};var za,ud;function Va(e){So=e,Mo||(Mo=!0,ni())}function Ha(e,t){ii=dd(function(){e(K.unstable_now())},t)}K.unstable_IdlePriority=5;K.unstable_ImmediatePriority=1;K.unstable_LowPriority=4;K.unstable_NormalPriority=3;K.unstable_Profiling=null;K.unstable_UserBlockingPriority=2;K.unstable_cancelCallback=function(e){e.callback=null};K.unstable_continueExecution=function(){En||No||(En=!0,Va(Ba))};K.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):fd=0<e?Math.floor(1e3/e):5};K.unstable_getCurrentPriorityLevel=function(){return xt};K.unstable_getFirstCallbackNode=function(){return oe(ge)};K.unstable_next=function(e){switch(xt){case 1:case 2:case 3:var t=3;break;default:t=xt}var n=xt;xt=t;try{return e()}finally{xt=n}};K.unstable_pauseExecution=function(){};K.unstable_requestPaint=function(){};K.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=xt;xt=e;try{return t()}finally{xt=n}};K.unstable_scheduleCallback=function(e,t,n){var s=K.unstable_now();switch(typeof n=="object"&&n!==null?(n=n.delay,n=typeof n=="number"&&0<n?s+n:s):n=s,e){case 1:var i=-1;break;case 2:i=250;break;case 5:i=1073741823;break;case 4:i=1e4;break;default:i=5e3}return i=n+i,e={id:k0++,callback:t,priorityLevel:e,startTime:n,expirationTime:i,sortIndex:-1},n>s?(e.sortIndex=n,Fa($e,e),oe(ge)===null&&e===oe($e)&&(si?(hd(ii),ii=-1):si=!0,Ha(ja,n-s))):(e.sortIndex=i,Fa(ge,e),En||No||(En=!0,Va(Ba))),e};K.unstable_shouldYield=md;K.unstable_wrapCallback=function(e){var t=xt;return function(){var n=xt;xt=t;try{return e.apply(this,arguments)}finally{xt=n}}}});var vd=Me((ew,yd)=>{"use strict";yd.exports=gd()});var kp=Me(Gt=>{"use strict";var S0=rs(),Yt=vd();function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Ch=new Set,Ni={};function Hn(e,t){Ms(e,t),Ms(e+"Capture",t)}function Ms(e,t){for(Ni[e]=t,e=0;e<t.length;e++)Ch.add(t[e])}var Oe=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),dl=Object.prototype.hasOwnProperty,C0=/^[: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]*$/,_d={},bd={};function N0(e){return dl.call(bd,e)?!0:dl.call(_d,e)?!1:C0.test(e)?bd[e]=!0:(_d[e]=!0,!1)}function M0(e,t,n,s){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return s?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function P0(e,t,n,s){if(t===null||typeof t>"u"||M0(e,t,n,s))return!0;if(s)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Dt(e,t,n,s,i,o,r){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=s,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=r}var _t={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){_t[e]=new Dt(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];_t[t]=new Dt(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){_t[e]=new Dt(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){_t[e]=new Dt(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){_t[e]=new Dt(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){_t[e]=new Dt(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){_t[e]=new Dt(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){_t[e]=new Dt(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){_t[e]=new Dt(e,5,!1,e.toLowerCase(),null,!1,!1)});var sc=/[\-:]([a-z])/g;function ic(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(sc,ic);_t[t]=new Dt(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(sc,ic);_t[t]=new Dt(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(sc,ic);_t[t]=new Dt(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){_t[e]=new Dt(e,1,!1,e.toLowerCase(),null,!1,!1)});_t.xlinkHref=new Dt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){_t[e]=new Dt(e,1,!1,e.toLowerCase(),null,!0,!0)});function oc(e,t,n,s){var i=_t.hasOwnProperty(t)?_t[t]:null;(i!==null?i.type!==0:s||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(P0(t,n,i,s)&&(n=null),s||i===null?N0(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,""+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type===3?!1:"":n:(t=i.attributeName,s=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&n===!0?"":""+n,s?e.setAttributeNS(s,t,n):e.setAttribute(t,n))))}var Fe=S0.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Po=Symbol.for("react.element"),cs=Symbol.for("react.portal"),us=Symbol.for("react.fragment"),rc=Symbol.for("react.strict_mode"),hl=Symbol.for("react.profiler"),Nh=Symbol.for("react.provider"),Mh=Symbol.for("react.context"),ac=Symbol.for("react.forward_ref"),fl=Symbol.for("react.suspense"),pl=Symbol.for("react.suspense_list"),lc=Symbol.for("react.memo"),Ke=Symbol.for("react.lazy");Symbol.for("react.scope");Symbol.for("react.debug_trace_mode");var Ph=Symbol.for("react.offscreen");Symbol.for("react.legacy_hidden");Symbol.for("react.cache");Symbol.for("react.tracing_marker");var xd=Symbol.iterator;function oi(e){return e===null||typeof e!="object"?null:(e=xd&&e[xd]||e["@@iterator"],typeof e=="function"?e:null)}var nt=Object.assign,Wa;function fi(e){if(Wa===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Wa=t&&t[1]||""}return`
`+Wa+e}var $a=!1;function Ua(e,t){if(!e||$a)return"";$a=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t)if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(t,[])}catch(u){var s=u}Reflect.construct(e,[],t)}else{try{t.call()}catch(u){s=u}e.call(t.prototype)}else{try{throw Error()}catch(u){s=u}e()}}catch(u){if(u&&s&&typeof u.stack=="string"){for(var i=u.stack.split(`
`),o=s.stack.split(`
`),r=i.length-1,l=o.length-1;1<=r&&0<=l&&i[r]!==o[l];)l--;for(;1<=r&&0<=l;r--,l--)if(i[r]!==o[l]){if(r!==1||l!==1)do if(r--,l--,0>l||i[r]!==o[l]){var c=`
`+i[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}while(1<=r&&0<=l);break}}}finally{$a=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?fi(e):""}function E0(e){switch(e.tag){case 5:return fi(e.type);case 16:return fi("Lazy");case 13:return fi("Suspense");case 19:return fi("SuspenseList");case 0:case 2:case 15:return e=Ua(e.type,!1),e;case 11:return e=Ua(e.type.render,!1),e;case 1:return e=Ua(e.type,!0),e;default:return""}}function ml(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case us:return"Fragment";case cs:return"Portal";case hl:return"Profiler";case rc:return"StrictMode";case fl:return"Suspense";case pl:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Mh:return(e.displayName||"Context")+".Consumer";case Nh:return(e._context.displayName||"Context")+".Provider";case ac:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case lc:return t=e.displayName||null,t!==null?t:ml(e.type)||"Memo";case Ke:t=e._payload,e=e._init;try{return ml(e(t))}catch{}}return null}function T0(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ml(t);case 8:return t===rc?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function an(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Eh(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function D0(e){var t=Eh(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),s=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(r){s=""+r,o.call(this,r)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return s},setValue:function(r){s=""+r},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Eo(e){e._valueTracker||(e._valueTracker=D0(e))}function Th(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),s="";return e&&(s=Eh(e)?e.checked?"true":"false":e.value),e=s,e!==n?(t.setValue(e),!0):!1}function sr(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function gl(e,t){var n=t.checked;return nt({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function wd(e,t){var n=t.defaultValue==null?"":t.defaultValue,s=t.checked!=null?t.checked:t.defaultChecked;n=an(t.value!=null?t.value:n),e._wrapperState={initialChecked:s,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function Dh(e,t){t=t.checked,t!=null&&oc(e,"checked",t,!1)}function yl(e,t){Dh(e,t);var n=an(t.value),s=t.type;if(n!=null)s==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(s==="submit"||s==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?vl(e,t.type,n):t.hasOwnProperty("defaultValue")&&vl(e,t.type,an(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function kd(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var s=t.type;if(!(s!=="submit"&&s!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function vl(e,t,n){(t!=="number"||sr(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var pi=Array.isArray;function xs(e,t,n,s){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&s&&(e[n].defaultSelected=!0)}else{for(n=""+an(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,s&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function _l(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(P(91));return nt({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function Sd(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(P(92));if(pi(n)){if(1<n.length)throw Error(P(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:an(n)}}function Rh(e,t){var n=an(t.value),s=an(t.defaultValue);n!=null&&(n=""+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),s!=null&&(e.defaultValue=""+s)}function Cd(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function Oh(e){switch(e){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function bl(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?Oh(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var To,Lh=function(e){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(t,n,s,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,s,i)})}:e}(function(e,t){if(e.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in e)e.innerHTML=t;else{for(To=To||document.createElement("div"),To.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=To.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Mi(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var yi={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},R0=["Webkit","ms","Moz","O"];Object.keys(yi).forEach(function(e){R0.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),yi[t]=yi[e]})});function Ah(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||yi.hasOwnProperty(e)&&yi[e]?(""+t).trim():t+"px"}function zh(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var s=n.indexOf("--")===0,i=Ah(n,t[n],s);n==="float"&&(n="cssFloat"),s?e.setProperty(n,i):e[n]=i}}var O0=nt({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xl(e,t){if(t){if(O0[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(P(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(P(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(P(61))}if(t.style!=null&&typeof t.style!="object")throw Error(P(62))}}function wl(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var kl=null;function cc(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Sl=null,ws=null,ks=null;function Nd(e){if(e=Ui(e)){if(typeof Sl!="function")throw Error(P(280));var t=e.stateNode;t&&(t=Dr(t),Sl(e.stateNode,e.type,t))}}function Fh(e){ws?ks?ks.push(e):ks=[e]:ws=e}function Ih(){if(ws){var e=ws,t=ks;if(ks=ws=null,Nd(e),t)for(e=0;e<t.length;e++)Nd(t[e])}}function jh(e,t){return e(t)}function Bh(){}var Ka=!1;function Vh(e,t,n){if(Ka)return e(t,n);Ka=!0;try{return jh(e,t,n)}finally{Ka=!1,(ws!==null||ks!==null)&&(Bh(),Ih())}}function Pi(e,t){var n=e.stateNode;if(n===null)return null;var s=Dr(n);if(s===null)return null;n=s[t];t:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(s=!s.disabled)||(e=e.type,s=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!s;break t;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(P(231,t,typeof n));return n}var Cl=!1;if(Oe)try{as={},Object.defineProperty(as,"passive",{get:function(){Cl=!0}}),window.addEventListener("test",as,as),window.removeEventListener("test",as,as)}catch{Cl=!1}var as;function L0(e,t,n,s,i,o,r,l,c){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var vi=!1,ir=null,or=!1,Nl=null,A0={onError:function(e){vi=!0,ir=e}};function z0(e,t,n,s,i,o,r,l,c){vi=!1,ir=null,L0.apply(A0,arguments)}function F0(e,t,n,s,i,o,r,l,c){if(z0.apply(this,arguments),vi){if(vi){var u=ir;vi=!1,ir=null}else throw Error(P(198));or||(or=!0,Nl=u)}}function Wn(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function Hh(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Md(e){if(Wn(e)!==e)throw Error(P(188))}function I0(e){var t=e.alternate;if(!t){if(t=Wn(e),t===null)throw Error(P(188));return t!==e?null:e}for(var n=e,s=t;;){var i=n.return;if(i===null)break;var o=i.alternate;if(o===null){if(s=i.return,s!==null){n=s;continue}break}if(i.child===o.child){for(o=i.child;o;){if(o===n)return Md(i),e;if(o===s)return Md(i),t;o=o.sibling}throw Error(P(188))}if(n.return!==s.return)n=i,s=o;else{for(var r=!1,l=i.child;l;){if(l===n){r=!0,n=i,s=o;break}if(l===s){r=!0,s=i,n=o;break}l=l.sibling}if(!r){for(l=o.child;l;){if(l===n){r=!0,n=o,s=i;break}if(l===s){r=!0,s=o,n=i;break}l=l.sibling}if(!r)throw Error(P(189))}}if(n.alternate!==s)throw Error(P(190))}if(n.tag!==3)throw Error(P(188));return n.stateNode.current===n?e:t}function Wh(e){return e=I0(e),e!==null?$h(e):null}function $h(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=$h(e);if(t!==null)return t;e=e.sibling}return null}var Uh=Yt.unstable_scheduleCallback,Pd=Yt.unstable_cancelCallback,j0=Yt.unstable_shouldYield,B0=Yt.unstable_requestPaint,lt=Yt.unstable_now,V0=Yt.unstable_getCurrentPriorityLevel,uc=Yt.unstable_ImmediatePriority,Kh=Yt.unstable_UserBlockingPriority,rr=Yt.unstable_NormalPriority,H0=Yt.unstable_LowPriority,Yh=Yt.unstable_IdlePriority,Mr=null,be=null;function W0(e){if(be&&typeof be.onCommitFiberRoot=="function")try{be.onCommitFiberRoot(Mr,e,void 0,(e.current.flags&128)===128)}catch{}}var ue=Math.clz32?Math.clz32:K0,$0=Math.log,U0=Math.LN2;function K0(e){return e>>>=0,e===0?32:31-($0(e)/U0|0)|0}var Do=64,Ro=4194304;function mi(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function ar(e,t){var n=e.pendingLanes;if(n===0)return 0;var s=0,i=e.suspendedLanes,o=e.pingedLanes,r=n&268435455;if(r!==0){var l=r&~i;l!==0?s=mi(l):(o&=r,o!==0&&(s=mi(o)))}else r=n&~i,r!==0?s=mi(r):o!==0&&(s=mi(o));if(s===0)return 0;if(t!==0&&t!==s&&!(t&i)&&(i=s&-s,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(s&4&&(s|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=s;0<t;)n=31-ue(t),i=1<<n,s|=e[n],t&=~i;return s}function Y0(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function X0(e,t){for(var n=e.suspendedLanes,s=e.pingedLanes,i=e.expirationTimes,o=e.pendingLanes;0<o;){var r=31-ue(o),l=1<<r,c=i[r];c===-1?(!(l&n)||l&s)&&(i[r]=Y0(l,t)):c<=t&&(e.expiredLanes|=l),o&=~l}}function Ml(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function Xh(){var e=Do;return Do<<=1,!(Do&4194240)&&(Do=64),e}function Ya(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Wi(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-ue(t),e[t]=n}function G0(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var s=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-ue(n),o=1<<i;t[i]=0,s[i]=-1,e[i]=-1,n&=~o}}function dc(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var s=31-ue(n),i=1<<s;i&t|e[s]&t&&(e[s]|=t),n&=~i}}var H=0;function Gh(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var Qh,hc,Zh,qh,Jh,Pl=!1,Oo=[],qe=null,Je=null,tn=null,Ei=new Map,Ti=new Map,Xe=[],Q0="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 submit".split(" ");function Ed(e,t){switch(e){case"focusin":case"focusout":qe=null;break;case"dragenter":case"dragleave":Je=null;break;case"mouseover":case"mouseout":tn=null;break;case"pointerover":case"pointerout":Ei.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ti.delete(t.pointerId)}}function ri(e,t,n,s,i,o){return e===null||e.nativeEvent!==o?(e={blockedOn:t,domEventName:n,eventSystemFlags:s,nativeEvent:o,targetContainers:[i]},t!==null&&(t=Ui(t),t!==null&&hc(t)),e):(e.eventSystemFlags|=s,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Z0(e,t,n,s,i){switch(t){case"focusin":return qe=ri(qe,e,t,n,s,i),!0;case"dragenter":return Je=ri(Je,e,t,n,s,i),!0;case"mouseover":return tn=ri(tn,e,t,n,s,i),!0;case"pointerover":var o=i.pointerId;return Ei.set(o,ri(Ei.get(o)||null,e,t,n,s,i)),!0;case"gotpointercapture":return o=i.pointerId,Ti.set(o,ri(Ti.get(o)||null,e,t,n,s,i)),!0}return!1}function tf(e){var t=Rn(e.target);if(t!==null){var n=Wn(t);if(n!==null){if(t=n.tag,t===13){if(t=Hh(n),t!==null){e.blockedOn=t,Jh(e.priority,function(){Zh(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Yo(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=El(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var s=new n.constructor(n.type,n);kl=s,n.target.dispatchEvent(s),kl=null}else return t=Ui(n),t!==null&&hc(t),e.blockedOn=n,!1;t.shift()}return!0}function Td(e,t,n){Yo(e)&&n.delete(t)}function q0(){Pl=!1,qe!==null&&Yo(qe)&&(qe=null),Je!==null&&Yo(Je)&&(Je=null),tn!==null&&Yo(tn)&&(tn=null),Ei.forEach(Td),Ti.forEach(Td)}function ai(e,t){e.blockedOn===t&&(e.blockedOn=null,Pl||(Pl=!0,Yt.unstable_scheduleCallback(Yt.unstable_NormalPriority,q0)))}function Di(e){function t(i){return ai(i,e)}if(0<Oo.length){ai(Oo[0],e);for(var n=1;n<Oo.length;n++){var s=Oo[n];s.blockedOn===e&&(s.blockedOn=null)}}for(qe!==null&&ai(qe,e),Je!==null&&ai(Je,e),tn!==null&&ai(tn,e),Ei.forEach(t),Ti.forEach(t),n=0;n<Xe.length;n++)s=Xe[n],s.blockedOn===e&&(s.blockedOn=null);for(;0<Xe.length&&(n=Xe[0],n.blockedOn===null);)tf(n),n.blockedOn===null&&Xe.shift()}var Ss=Fe.ReactCurrentBatchConfig,lr=!0;function J0(e,t,n,s){var i=H,o=Ss.transition;Ss.transition=null;try{H=1,fc(e,t,n,s)}finally{H=i,Ss.transition=o}}function ty(e,t,n,s){var i=H,o=Ss.transition;Ss.transition=null;try{H=4,fc(e,t,n,s)}finally{H=i,Ss.transition=o}}function fc(e,t,n,s){if(lr){var i=El(e,t,n,s);if(i===null)tl(e,t,s,cr,n),Ed(e,s);else if(Z0(i,e,t,n,s))s.stopPropagation();else if(Ed(e,s),t&4&&-1<Q0.indexOf(e)){for(;i!==null;){var o=Ui(i);if(o!==null&&Qh(o),o=El(e,t,n,s),o===null&&tl(e,t,s,cr,n),o===i)break;i=o}i!==null&&s.stopPropagation()}else tl(e,t,s,null,n)}}var cr=null;function El(e,t,n,s){if(cr=null,e=cc(s),e=Rn(e),e!==null)if(t=Wn(e),t===null)e=null;else if(n=t.tag,n===13){if(e=Hh(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null);return cr=e,null}function ef(e){switch(e){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"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 1;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"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(V0()){case uc:return 1;case Kh:return 4;case rr:case H0:return 16;case Yh:return 536870912;default:return 16}default:return 16}}var Qe=null,pc=null,Xo=null;function nf(){if(Xo)return Xo;var e,t=pc,n=t.length,s,i="value"in Qe?Qe.value:Qe.textContent,o=i.length;for(e=0;e<n&&t[e]===i[e];e++);var r=n-e;for(s=1;s<=r&&t[n-s]===i[o-s];s++);return Xo=i.slice(e,1<s?1-s:void 0)}function Go(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Lo(){return!0}function Dd(){return!1}function Xt(e){function t(n,s,i,o,r){this._reactName=n,this._targetInst=i,this.type=s,this.nativeEvent=o,this.target=r,this.currentTarget=null;for(var l in e)e.hasOwnProperty(l)&&(n=e[l],this[l]=n?n(o):o[l]);return this.isDefaultPrevented=(o.defaultPrevented!=null?o.defaultPrevented:o.returnValue===!1)?Lo:Dd,this.isPropagationStopped=Dd,this}return nt(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Lo)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Lo)},persist:function(){},isPersistent:Lo}),t}var Ls={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},mc=Xt(Ls),$i=nt({},Ls,{view:0,detail:0}),ey=Xt($i),Xa,Ga,li,Pr=nt({},$i,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gc,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==li&&(li&&e.type==="mousemove"?(Xa=e.screenX-li.screenX,Ga=e.screenY-li.screenY):Ga=Xa=0,li=e),Xa)},movementY:function(e){return"movementY"in e?e.movementY:Ga}}),Rd=Xt(Pr),ny=nt({},Pr,{dataTransfer:0}),sy=Xt(ny),iy=nt({},$i,{relatedTarget:0}),Qa=Xt(iy),oy=nt({},Ls,{animationName:0,elapsedTime:0,pseudoElement:0}),ry=Xt(oy),ay=nt({},Ls,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ly=Xt(ay),cy=nt({},Ls,{data:0}),Od=Xt(cy),uy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dy={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"},hy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function fy(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=hy[e])?!!t[e]:!1}function gc(){return fy}var py=nt({},$i,{key:function(e){if(e.key){var t=uy[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Go(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?dy[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gc,charCode:function(e){return e.type==="keypress"?Go(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Go(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),my=Xt(py),gy=nt({},Pr,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Ld=Xt(gy),yy=nt({},$i,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gc}),vy=Xt(yy),_y=nt({},Ls,{propertyName:0,elapsedTime:0,pseudoElement:0}),by=Xt(_y),xy=nt({},Pr,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),wy=Xt(xy),ky=[9,13,27,32],yc=Oe&&"CompositionEvent"in window,_i=null;Oe&&"documentMode"in document&&(_i=document.documentMode);var Sy=Oe&&"TextEvent"in window&&!_i,sf=Oe&&(!yc||_i&&8<_i&&11>=_i),Ad=" ",zd=!1;function of(e,t){switch(e){case"keyup":return ky.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function rf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ds=!1;function Cy(e,t){switch(e){case"compositionend":return rf(t);case"keypress":return t.which!==32?null:(zd=!0,Ad);case"textInput":return e=t.data,e===Ad&&zd?null:e;default:return null}}function Ny(e,t){if(ds)return e==="compositionend"||!yc&&of(e,t)?(e=nf(),Xo=pc=Qe=null,ds=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return sf&&t.locale!=="ko"?null:t.data;default:return null}}var My={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 Fd(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!My[e.type]:t==="textarea"}function af(e,t,n,s){Fh(s),t=ur(t,"onChange"),0<t.length&&(n=new mc("onChange","change",null,n,s),e.push({event:n,listeners:t}))}var bi=null,Ri=null;function Py(e){vf(e,0)}function Er(e){var t=ps(e);if(Th(t))return e}function Ey(e,t){if(e==="change")return t}var lf=!1;Oe&&(Oe?(zo="oninput"in document,zo||(Za=document.createElement("div"),Za.setAttribute("oninput","return;"),zo=typeof Za.oninput=="function"),Ao=zo):Ao=!1,lf=Ao&&(!document.documentMode||9<document.documentMode));var Ao,zo,Za;function Id(){bi&&(bi.detachEvent("onpropertychange",cf),Ri=bi=null)}function cf(e){if(e.propertyName==="value"&&Er(Ri)){var t=[];af(t,Ri,e,cc(e)),Vh(Py,t)}}function Ty(e,t,n){e==="focusin"?(Id(),bi=t,Ri=n,bi.attachEvent("onpropertychange",cf)):e==="focusout"&&Id()}function Dy(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Er(Ri)}function Ry(e,t){if(e==="click")return Er(t)}function Oy(e,t){if(e==="input"||e==="change")return Er(t)}function Ly(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var he=typeof Object.is=="function"?Object.is:Ly;function Oi(e,t){if(he(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),s=Object.keys(t);if(n.length!==s.length)return!1;for(s=0;s<n.length;s++){var i=n[s];if(!dl.call(t,i)||!he(e[i],t[i]))return!1}return!0}function jd(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bd(e,t){var n=jd(e);e=0;for(var s;n;){if(n.nodeType===3){if(s=e+n.textContent.length,e<=t&&s>=t)return{node:n,offset:t-e};e=s}t:{for(;n;){if(n.nextSibling){n=n.nextSibling;break t}n=n.parentNode}n=void 0}n=jd(n)}}function uf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?uf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function df(){for(var e=window,t=sr();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=sr(e.document)}return t}function vc(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Ay(e){var t=df(),n=e.focusedElem,s=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&uf(n.ownerDocument.documentElement,n)){if(s!==null&&vc(n)){if(t=s.start,e=s.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(s.start,i);s=s.end===void 0?o:Math.min(s.end,i),!e.extend&&o>s&&(i=s,s=o,o=i),i=Bd(n,o);var r=Bd(n,s);i&&r&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==r.node||e.focusOffset!==r.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>s?(e.addRange(t),e.extend(r.node,r.offset)):(t.setEnd(r.node,r.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var zy=Oe&&"documentMode"in document&&11>=document.documentMode,hs=null,Tl=null,xi=null,Dl=!1;function Vd(e,t,n){var s=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dl||hs==null||hs!==sr(s)||(s=hs,"selectionStart"in s&&vc(s)?s={start:s.selectionStart,end:s.selectionEnd}:(s=(s.ownerDocument&&s.ownerDocument.defaultView||window).getSelection(),s={anchorNode:s.anchorNode,anchorOffset:s.anchorOffset,focusNode:s.focusNode,focusOffset:s.focusOffset}),xi&&Oi(xi,s)||(xi=s,s=ur(Tl,"onSelect"),0<s.length&&(t=new mc("onSelect","select",null,t,n),e.push({event:t,listeners:s}),t.target=hs)))}function Fo(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fs={animationend:Fo("Animation","AnimationEnd"),animationiteration:Fo("Animation","AnimationIteration"),animationstart:Fo("Animation","AnimationStart"),transitionend:Fo("Transition","TransitionEnd")},qa={},hf={};Oe&&(hf=document.createElement("div").style,"AnimationEvent"in window||(delete fs.animationend.animation,delete fs.animationiteration.animation,delete fs.animationstart.animation),"TransitionEvent"in window||delete fs.transitionend.transition);function Tr(e){if(qa[e])return qa[e];if(!fs[e])return e;var t=fs[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in hf)return qa[e]=t[n];return e}var ff=Tr("animationend"),pf=Tr("animationiteration"),mf=Tr("animationstart"),gf=Tr("transitionend"),yf=new Map,Hd="abort auxClick 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(" ");function cn(e,t){yf.set(e,t),Hn(t,[e])}for(Io=0;Io<Hd.length;Io++)jo=Hd[Io],Wd=jo.toLowerCase(),$d=jo[0].toUpperCase()+jo.slice(1),cn(Wd,"on"+$d);var jo,Wd,$d,Io;cn(ff,"onAnimationEnd");cn(pf,"onAnimationIteration");cn(mf,"onAnimationStart");cn("dblclick","onDoubleClick");cn("focusin","onFocus");cn("focusout","onBlur");cn(gf,"onTransitionEnd");Ms("onMouseEnter",["mouseout","mouseover"]);Ms("onMouseLeave",["mouseout","mouseover"]);Ms("onPointerEnter",["pointerout","pointerover"]);Ms("onPointerLeave",["pointerout","pointerover"]);Hn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Hn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Hn("onBeforeInput",["compositionend","keypress","textInput","paste"]);Hn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Hn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Hn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var gi="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(" "),Fy=new Set("cancel close invalid load scroll toggle".split(" ").concat(gi));function Ud(e,t,n){var s=e.type||"unknown-event";e.currentTarget=n,F0(s,t,void 0,e),e.currentTarget=null}function vf(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var s=e[n],i=s.event;s=s.listeners;t:{var o=void 0;if(t)for(var r=s.length-1;0<=r;r--){var l=s[r],c=l.instance,u=l.currentTarget;if(l=l.listener,c!==o&&i.isPropagationStopped())break t;Ud(i,l,u),o=c}else for(r=0;r<s.length;r++){if(l=s[r],c=l.instance,u=l.currentTarget,l=l.listener,c!==o&&i.isPropagationStopped())break t;Ud(i,l,u),o=c}}}if(or)throw e=Nl,or=!1,Nl=null,e}function X(e,t){var n=t[zl];n===void 0&&(n=t[zl]=new Set);var s=e+"__bubble";n.has(s)||(_f(t,e,2,!1),n.add(s))}function Ja(e,t,n){var s=0;t&&(s|=4),_f(n,e,s,t)}var Bo="_reactListening"+Math.random().toString(36).slice(2);function Li(e){if(!e[Bo]){e[Bo]=!0,Ch.forEach(function(n){n!=="selectionchange"&&(Fy.has(n)||Ja(n,!1,e),Ja(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Bo]||(t[Bo]=!0,Ja("selectionchange",!1,t))}}function _f(e,t,n,s){switch(ef(t)){case 1:var i=J0;break;case 4:i=ty;break;default:i=fc}n=i.bind(null,t,n,e),i=void 0,!Cl||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(i=!0),s?i!==void 0?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):i!==void 0?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function tl(e,t,n,s,i){var o=s;if(!(t&1)&&!(t&2)&&s!==null)t:for(;;){if(s===null)return;var r=s.tag;if(r===3||r===4){var l=s.stateNode.containerInfo;if(l===i||l.nodeType===8&&l.parentNode===i)break;if(r===4)for(r=s.return;r!==null;){var c=r.tag;if((c===3||c===4)&&(c=r.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;r=r.return}for(;l!==null;){if(r=Rn(l),r===null)return;if(c=r.tag,c===5||c===6){s=o=r;continue t}l=l.parentNode}}s=s.return}Vh(function(){var u=o,d=cc(n),h=[];t:{var f=yf.get(e);if(f!==void 0){var g=mc,y=e;switch(e){case"keypress":if(Go(n)===0)break t;case"keydown":case"keyup":g=my;break;case"focusin":y="focus",g=Qa;break;case"focusout":y="blur",g=Qa;break;case"beforeblur":case"afterblur":g=Qa;break;case"click":if(n.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":g=Rd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":g=sy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":g=vy;break;case ff:case pf:case mf:g=ry;break;case gf:g=by;break;case"scroll":g=ey;break;case"wheel":g=wy;break;case"copy":case"cut":case"paste":g=ly;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":g=Ld}var _=(t&4)!==0,b=!_&&e==="scroll",p=_?f!==null?f+"Capture":null:f;_=[];for(var m=u,v;m!==null;){v=m;var x=v.stateNode;if(v.tag===5&&x!==null&&(v=x,p!==null&&(x=Pi(m,p),x!=null&&_.push(Ai(m,x,v)))),b)break;m=m.return}0<_.length&&(f=new g(f,y,null,n,d),h.push({event:f,listeners:_}))}}if(!(t&7)){t:{if(f=e==="mouseover"||e==="pointerover",g=e==="mouseout"||e==="pointerout",f&&n!==kl&&(y=n.relatedTarget||n.fromElement)&&(Rn(y)||y[Le]))break t;if((g||f)&&(f=d.window===d?d:(f=d.ownerDocument)?f.defaultView||f.parentWindow:window,g?(y=n.relatedTarget||n.toElement,g=u,y=y?Rn(y):null,y!==null&&(b=Wn(y),y!==b||y.tag!==5&&y.tag!==6)&&(y=null)):(g=null,y=u),g!==y)){if(_=Rd,x="onMouseLeave",p="onMouseEnter",m="mouse",(e==="pointerout"||e==="pointerover")&&(_=Ld,x="onPointerLeave",p="onPointerEnter",m="pointer"),b=g==null?f:ps(g),v=y==null?f:ps(y),f=new _(x,m+"leave",g,n,d),f.target=b,f.relatedTarget=v,x=null,Rn(d)===u&&(_=new _(p,m+"enter",y,n,d),_.target=v,_.relatedTarget=b,x=_),b=x,g&&y)e:{for(_=g,p=y,m=0,v=_;v;v=ls(v))m++;for(v=0,x=p;x;x=ls(x))v++;for(;0<m-v;)_=ls(_),m--;for(;0<v-m;)p=ls(p),v--;for(;m--;){if(_===p||p!==null&&_===p.alternate)break e;_=ls(_),p=ls(p)}_=null}else _=null;g!==null&&Kd(h,f,g,_,!1),y!==null&&b!==null&&Kd(h,b,y,_,!0)}}t:{if(f=u?ps(u):window,g=f.nodeName&&f.nodeName.toLowerCase(),g==="select"||g==="input"&&f.type==="file")var w=Ey;else if(Fd(f))if(lf)w=Oy;else{w=Dy;var S=Ty}else(g=f.nodeName)&&g.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(w=Ry);if(w&&(w=w(e,u))){af(h,w,n,d);break t}S&&S(e,f,u),e==="focusout"&&(S=f._wrapperState)&&S.controlled&&f.type==="number"&&vl(f,"number",f.value)}switch(S=u?ps(u):window,e){case"focusin":(Fd(S)||S.contentEditable==="true")&&(hs=S,Tl=u,xi=null);break;case"focusout":xi=Tl=hs=null;break;case"mousedown":Dl=!0;break;case"contextmenu":case"mouseup":case"dragend":Dl=!1,Vd(h,n,d);break;case"selectionchange":if(zy)break;case"keydown":case"keyup":Vd(h,n,d)}var C;if(yc)t:{switch(e){case"compositionstart":var M="onCompositionStart";break t;case"compositionend":M="onCompositionEnd";break t;case"compositionupdate":M="onCompositionUpdate";break t}M=void 0}else ds?of(e,n)&&(M="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(M="onCompositionStart");M&&(sf&&n.locale!=="ko"&&(ds||M!=="onCompositionStart"?M==="onCompositionEnd"&&ds&&(C=nf()):(Qe=d,pc="value"in Qe?Qe.value:Qe.textContent,ds=!0)),S=ur(u,M),0<S.length&&(M=new Od(M,e,null,n,d),h.push({event:M,listeners:S}),C?M.data=C:(C=rf(n),C!==null&&(M.data=C)))),(C=Sy?Cy(e,n):Ny(e,n))&&(u=ur(u,"onBeforeInput"),0<u.length&&(d=new Od("onBeforeInput","beforeinput",null,n,d),h.push({event:d,listeners:u}),d.data=C))}vf(h,t)})}function Ai(e,t,n){return{instance:e,listener:t,currentTarget:n}}function ur(e,t){for(var n=t+"Capture",s=[];e!==null;){var i=e,o=i.stateNode;i.tag===5&&o!==null&&(i=o,o=Pi(e,n),o!=null&&s.unshift(Ai(e,o,i)),o=Pi(e,t),o!=null&&s.push(Ai(e,o,i))),e=e.return}return s}function ls(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function Kd(e,t,n,s,i){for(var o=t._reactName,r=[];n!==null&&n!==s;){var l=n,c=l.alternate,u=l.stateNode;if(c!==null&&c===s)break;l.tag===5&&u!==null&&(l=u,i?(c=Pi(n,o),c!=null&&r.unshift(Ai(n,c,l))):i||(c=Pi(n,o),c!=null&&r.push(Ai(n,c,l)))),n=n.return}r.length!==0&&e.push({event:t,listeners:r})}var Iy=/\r\n?/g,jy=/\u0000|\uFFFD/g;function Yd(e){return(typeof e=="string"?e:""+e).replace(Iy,`
`).replace(jy,"")}function Vo(e,t,n){if(t=Yd(t),Yd(e)!==t&&n)throw Error(P(425))}function dr(){}var Rl=null,Ol=null;function Ll(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Al=typeof setTimeout=="function"?setTimeout:void 0,By=typeof clearTimeout=="function"?clearTimeout:void 0,Xd=typeof Promise=="function"?Promise:void 0,Vy=typeof queueMicrotask=="function"?queueMicrotask:typeof Xd<"u"?function(e){return Xd.resolve(null).then(e).catch(Hy)}:Al;function Hy(e){setTimeout(function(){throw e})}function el(e,t){var n=t,s=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n==="/$"){if(s===0){e.removeChild(i),Di(t);return}s--}else n!=="$"&&n!=="$?"&&n!=="$!"||s++;n=i}while(n);Di(t)}function en(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?")break;if(t==="/$")return null}}return e}function Gd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"){if(t===0)return e;t--}else n==="/$"&&t++}e=e.previousSibling}return null}var As=Math.random().toString(36).slice(2),_e="__reactFiber$"+As,zi="__reactProps$"+As,Le="__reactContainer$"+As,zl="__reactEvents$"+As,Wy="__reactListeners$"+As,$y="__reactHandles$"+As;function Rn(e){var t=e[_e];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Le]||n[_e]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Gd(e);e!==null;){if(n=e[_e])return n;e=Gd(e)}return t}e=n,n=e.parentNode}return null}function Ui(e){return e=e[_e]||e[Le],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function ps(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(P(33))}function Dr(e){return e[zi]||null}var Fl=[],ms=-1;function un(e){return{current:e}}function G(e){0>ms||(e.current=Fl[ms],Fl[ms]=null,ms--)}function Y(e,t){ms++,Fl[ms]=e.current,e.current=t}var ln={},Ct=un(ln),At=un(!1),Fn=ln;function Ps(e,t){var n=e.type.contextTypes;if(!n)return ln;var s=e.stateNode;if(s&&s.__reactInternalMemoizedUnmaskedChildContext===t)return s.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function zt(e){return e=e.childContextTypes,e!=null}function hr(){G(At),G(Ct)}function Qd(e,t,n){if(Ct.current!==ln)throw Error(P(168));Y(Ct,t),Y(At,n)}function bf(e,t,n){var s=e.stateNode;if(t=t.childContextTypes,typeof s.getChildContext!="function")return n;s=s.getChildContext();for(var i in s)if(!(i in t))throw Error(P(108,T0(e)||"Unknown",i));return nt({},n,s)}function fr(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ln,Fn=Ct.current,Y(Ct,e),Y(At,At.current),!0}function Zd(e,t,n){var s=e.stateNode;if(!s)throw Error(P(169));n?(e=bf(e,t,Fn),s.__reactInternalMemoizedMergedChildContext=e,G(At),G(Ct),Y(Ct,e)):G(At),Y(At,n)}var Ee=null,Rr=!1,nl=!1;function xf(e){Ee===null?Ee=[e]:Ee.push(e)}function Uy(e){Rr=!0,xf(e)}function dn(){if(!nl&&Ee!==null){nl=!0;var e=0,t=H;try{var n=Ee;for(H=1;e<n.length;e++){var s=n[e];do s=s(!0);while(s!==null)}Ee=null,Rr=!1}catch(i){throw Ee!==null&&(Ee=Ee.slice(e+1)),Uh(uc,dn),i}finally{H=t,nl=!1}}return null}var gs=[],ys=0,pr=null,mr=0,Zt=[],qt=0,In=null,Te=1,De="";function Tn(e,t){gs[ys++]=mr,gs[ys++]=pr,pr=e,mr=t}function wf(e,t,n){Zt[qt++]=Te,Zt[qt++]=De,Zt[qt++]=In,In=e;var s=Te;e=De;var i=32-ue(s)-1;s&=~(1<<i),n+=1;var o=32-ue(t)+i;if(30<o){var r=i-i%5;o=(s&(1<<r)-1).toString(32),s>>=r,i-=r,Te=1<<32-ue(t)+i|n<<i|s,De=o+e}else Te=1<<o|n<<i|s,De=e}function _c(e){e.return!==null&&(Tn(e,1),wf(e,1,0))}function bc(e){for(;e===pr;)pr=gs[--ys],gs[ys]=null,mr=gs[--ys],gs[ys]=null;for(;e===In;)In=Zt[--qt],Zt[qt]=null,De=Zt[--qt],Zt[qt]=null,Te=Zt[--qt],Zt[qt]=null}var Kt=null,Ut=null,Z=!1,ce=null;function kf(e,t){var n=Jt(5,null,null,0);n.elementType="DELETED",n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function qd(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null?(e.stateNode=t,Kt=e,Ut=en(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Kt=e,Ut=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=In!==null?{id:Te,overflow:De}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Jt(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Kt=e,Ut=null,!0):!1;default:return!1}}function Il(e){return(e.mode&1)!==0&&(e.flags&128)===0}function jl(e){if(Z){var t=Ut;if(t){var n=t;if(!qd(e,t)){if(Il(e))throw Error(P(418));t=en(n.nextSibling);var s=Kt;t&&qd(e,t)?kf(s,n):(e.flags=e.flags&-4097|2,Z=!1,Kt=e)}}else{if(Il(e))throw Error(P(418));e.flags=e.flags&-4097|2,Z=!1,Kt=e}}}function Jd(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Kt=e}function Ho(e){if(e!==Kt)return!1;if(!Z)return Jd(e),Z=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!Ll(e.type,e.memoizedProps)),t&&(t=Ut)){if(Il(e))throw Sf(),Error(P(418));for(;t;)kf(e,t),t=en(t.nextSibling)}if(Jd(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(P(317));t:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ut=en(e.nextSibling);break t}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ut=null}}else Ut=Kt?en(e.stateNode.nextSibling):null;return!0}function Sf(){for(var e=Ut;e;)e=en(e.nextSibling)}function Es(){Ut=Kt=null,Z=!1}function xc(e){ce===null?ce=[e]:ce.push(e)}var Ky=Fe.ReactCurrentBatchConfig;function ci(e,t,n){if(e=n.ref,e!==null&&typeof e!="function"&&typeof e!="object"){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(P(309));var s=n.stateNode}if(!s)throw Error(P(147,e));var i=s,o=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===o?t.ref:(t=function(r){var l=i.refs;r===null?delete l[o]:l[o]=r},t._stringRef=o,t)}if(typeof e!="string")throw Error(P(284));if(!n._owner)throw Error(P(290,e))}return e}function Wo(e,t){throw e=Object.prototype.toString.call(t),Error(P(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function th(e){var t=e._init;return t(e._payload)}function Cf(e){function t(p,m){if(e){var v=p.deletions;v===null?(p.deletions=[m],p.flags|=16):v.push(m)}}function n(p,m){if(!e)return null;for(;m!==null;)t(p,m),m=m.sibling;return null}function s(p,m){for(p=new Map;m!==null;)m.key!==null?p.set(m.key,m):p.set(m.index,m),m=m.sibling;return p}function i(p,m){return p=rn(p,m),p.index=0,p.sibling=null,p}function o(p,m,v){return p.index=v,e?(v=p.alternate,v!==null?(v=v.index,v<m?(p.flags|=2,m):v):(p.flags|=2,m)):(p.flags|=1048576,m)}function r(p){return e&&p.alternate===null&&(p.flags|=2),p}function l(p,m,v,x){return m===null||m.tag!==6?(m=cl(v,p.mode,x),m.return=p,m):(m=i(m,v),m.return=p,m)}function c(p,m,v,x){var w=v.type;return w===us?d(p,m,v.props.children,x,v.key):m!==null&&(m.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Ke&&th(w)===m.type)?(x=i(m,v.props),x.ref=ci(p,m,v),x.return=p,x):(x=nr(v.type,v.key,v.props,null,p.mode,x),x.ref=ci(p,m,v),x.return=p,x)}function u(p,m,v,x){return m===null||m.tag!==4||m.stateNode.containerInfo!==v.containerInfo||m.stateNode.implementation!==v.implementation?(m=ul(v,p.mode,x),m.return=p,m):(m=i(m,v.children||[]),m.return=p,m)}function d(p,m,v,x,w){return m===null||m.tag!==7?(m=zn(v,p.mode,x,w),m.return=p,m):(m=i(m,v),m.return=p,m)}function h(p,m,v){if(typeof m=="string"&&m!==""||typeof m=="number")return m=cl(""+m,p.mode,v),m.return=p,m;if(typeof m=="object"&&m!==null){switch(m.$$typeof){case Po:return v=nr(m.type,m.key,m.props,null,p.mode,v),v.ref=ci(p,null,m),v.return=p,v;case cs:return m=ul(m,p.mode,v),m.return=p,m;case Ke:var x=m._init;return h(p,x(m._payload),v)}if(pi(m)||oi(m))return m=zn(m,p.mode,v,null),m.return=p,m;Wo(p,m)}return null}function f(p,m,v,x){var w=m!==null?m.key:null;if(typeof v=="string"&&v!==""||typeof v=="number")return w!==null?null:l(p,m,""+v,x);if(typeof v=="object"&&v!==null){switch(v.$$typeof){case Po:return v.key===w?c(p,m,v,x):null;case cs:return v.key===w?u(p,m,v,x):null;case Ke:return w=v._init,f(p,m,w(v._payload),x)}if(pi(v)||oi(v))return w!==null?null:d(p,m,v,x,null);Wo(p,v)}return null}function g(p,m,v,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return p=p.get(v)||null,l(m,p,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Po:return p=p.get(x.key===null?v:x.key)||null,c(m,p,x,w);case cs:return p=p.get(x.key===null?v:x.key)||null,u(m,p,x,w);case Ke:var S=x._init;return g(p,m,v,S(x._payload),w)}if(pi(x)||oi(x))return p=p.get(v)||null,d(m,p,x,w,null);Wo(m,x)}return null}function y(p,m,v,x){for(var w=null,S=null,C=m,M=m=0,D=null;C!==null&&M<v.length;M++){C.index>M?(D=C,C=null):D=C.sibling;var E=f(p,C,v[M],x);if(E===null){C===null&&(C=D);break}e&&C&&E.alternate===null&&t(p,C),m=o(E,m,M),S===null?w=E:S.sibling=E,S=E,C=D}if(M===v.length)return n(p,C),Z&&Tn(p,M),w;if(C===null){for(;M<v.length;M++)C=h(p,v[M],x),C!==null&&(m=o(C,m,M),S===null?w=C:S.sibling=C,S=C);return Z&&Tn(p,M),w}for(C=s(p,C);M<v.length;M++)D=g(C,p,M,v[M],x),D!==null&&(e&&D.alternate!==null&&C.delete(D.key===null?M:D.key),m=o(D,m,M),S===null?w=D:S.sibling=D,S=D);return e&&C.forEach(function(O){return t(p,O)}),Z&&Tn(p,M),w}function _(p,m,v,x){var w=oi(v);if(typeof w!="function")throw Error(P(150));if(v=w.call(v),v==null)throw Error(P(151));for(var S=w=null,C=m,M=m=0,D=null,E=v.next();C!==null&&!E.done;M++,E=v.next()){C.index>M?(D=C,C=null):D=C.sibling;var O=f(p,C,E.value,x);if(O===null){C===null&&(C=D);break}e&&C&&O.alternate===null&&t(p,C),m=o(O,m,M),S===null?w=O:S.sibling=O,S=O,C=D}if(E.done)return n(p,C),Z&&Tn(p,M),w;if(C===null){for(;!E.done;M++,E=v.next())E=h(p,E.value,x),E!==null&&(m=o(E,m,M),S===null?w=E:S.sibling=E,S=E);return Z&&Tn(p,M),w}for(C=s(p,C);!E.done;M++,E=v.next())E=g(C,p,M,E.value,x),E!==null&&(e&&E.alternate!==null&&C.delete(E.key===null?M:E.key),m=o(E,m,M),S===null?w=E:S.sibling=E,S=E);return e&&C.forEach(function(A){return t(p,A)}),Z&&Tn(p,M),w}function b(p,m,v,x){if(typeof v=="object"&&v!==null&&v.type===us&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case Po:t:{for(var w=v.key,S=m;S!==null;){if(S.key===w){if(w=v.type,w===us){if(S.tag===7){n(p,S.sibling),m=i(S,v.props.children),m.return=p,p=m;break t}}else if(S.elementType===w||typeof w=="object"&&w!==null&&w.$$typeof===Ke&&th(w)===S.type){n(p,S.sibling),m=i(S,v.props),m.ref=ci(p,S,v),m.return=p,p=m;break t}n(p,S);break}else t(p,S);S=S.sibling}v.type===us?(m=zn(v.props.children,p.mode,x,v.key),m.return=p,p=m):(x=nr(v.type,v.key,v.props,null,p.mode,x),x.ref=ci(p,m,v),x.return=p,p=x)}return r(p);case cs:t:{for(S=v.key;m!==null;){if(m.key===S)if(m.tag===4&&m.stateNode.containerInfo===v.containerInfo&&m.stateNode.implementation===v.implementation){n(p,m.sibling),m=i(m,v.children||[]),m.return=p,p=m;break t}else{n(p,m);break}else t(p,m);m=m.sibling}m=ul(v,p.mode,x),m.return=p,p=m}return r(p);case Ke:return S=v._init,b(p,m,S(v._payload),x)}if(pi(v))return y(p,m,v,x);if(oi(v))return _(p,m,v,x);Wo(p,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,m!==null&&m.tag===6?(n(p,m.sibling),m=i(m,v),m.return=p,p=m):(n(p,m),m=cl(v,p.mode,x),m.return=p,p=m),r(p)):n(p,m)}return b}var Ts=Cf(!0),Nf=Cf(!1),gr=un(null),yr=null,vs=null,wc=null;function kc(){wc=vs=yr=null}function Sc(e){var t=gr.current;G(gr),e._currentValue=t}function Bl(e,t,n){for(;e!==null;){var s=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,s!==null&&(s.childLanes|=t)):s!==null&&(s.childLanes&t)!==t&&(s.childLanes|=t),e===n)break;e=e.return}}function Cs(e,t){yr=e,wc=vs=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Lt=!0),e.firstContext=null)}function ee(e){var t=e._currentValue;if(wc!==e)if(e={context:e,memoizedValue:t,next:null},vs===null){if(yr===null)throw Error(P(308));vs=e,yr.dependencies={lanes:0,firstContext:e}}else vs=vs.next=e;return t}var On=null;function Cc(e){On===null?On=[e]:On.push(e)}function Mf(e,t,n,s){var i=t.interleaved;return i===null?(n.next=n,Cc(t)):(n.next=i.next,i.next=n),t.interleaved=n,Ae(e,s)}function Ae(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var Ye=!1;function Nc(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pf(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Re(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function nn(e,t,n){var s=e.updateQueue;if(s===null)return null;if(s=s.shared,F&2){var i=s.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),s.pending=t,Ae(e,n)}return i=s.interleaved,i===null?(t.next=t,Cc(s)):(t.next=i.next,i.next=t),s.interleaved=t,Ae(e,n)}function Qo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,dc(e,n)}}function eh(e,t){var n=e.updateQueue,s=e.alternate;if(s!==null&&(s=s.updateQueue,n===s)){var i=null,o=null;if(n=n.firstBaseUpdate,n!==null){do{var r={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};o===null?i=o=r:o=o.next=r,n=n.next}while(n!==null);o===null?i=o=t:o=o.next=t}else i=o=t;n={baseState:s.baseState,firstBaseUpdate:i,lastBaseUpdate:o,shared:s.shared,effects:s.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function vr(e,t,n,s){var i=e.updateQueue;Ye=!1;var o=i.firstBaseUpdate,r=i.lastBaseUpdate,l=i.shared.pending;if(l!==null){i.shared.pending=null;var c=l,u=c.next;c.next=null,r===null?o=u:r.next=u,r=c;var d=e.alternate;d!==null&&(d=d.updateQueue,l=d.lastBaseUpdate,l!==r&&(l===null?d.firstBaseUpdate=u:l.next=u,d.lastBaseUpdate=c))}if(o!==null){var h=i.baseState;r=0,d=u=c=null,l=o;do{var f=l.lane,g=l.eventTime;if((s&f)===f){d!==null&&(d=d.next={eventTime:g,lane:0,tag:l.tag,payload:l.payload,callback:l.callback,next:null});t:{var y=e,_=l;switch(f=t,g=n,_.tag){case 1:if(y=_.payload,typeof y=="function"){h=y.call(g,h,f);break t}h=y;break t;case 3:y.flags=y.flags&-65537|128;case 0:if(y=_.payload,f=typeof y=="function"?y.call(g,h,f):y,f==null)break t;h=nt({},h,f);break t;case 2:Ye=!0}}l.callback!==null&&l.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[l]:f.push(l))}else g={eventTime:g,lane:f,tag:l.tag,payload:l.payload,callback:l.callback,next:null},d===null?(u=d=g,c=h):d=d.next=g,r|=f;if(l=l.next,l===null){if(l=i.shared.pending,l===null)break;f=l,l=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(!0);if(d===null&&(c=h),i.baseState=c,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do r|=i.lane,i=i.next;while(i!==t)}else o===null&&(i.shared.lanes=0);Bn|=r,e.lanes=r,e.memoizedState=h}}function nh(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var s=e[t],i=s.callback;if(i!==null){if(s.callback=null,s=n,typeof i!="function")throw Error(P(191,i));i.call(s)}}}var Ki={},xe=un(Ki),Fi=un(Ki),Ii=un(Ki);function Ln(e){if(e===Ki)throw Error(P(174));return e}function Mc(e,t){switch(Y(Ii,t),Y(Fi,e),Y(xe,Ki),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:bl(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=bl(t,e)}G(xe),Y(xe,t)}function Ds(){G(xe),G(Fi),G(Ii)}function Ef(e){Ln(Ii.current);var t=Ln(xe.current),n=bl(t,e.type);t!==n&&(Y(Fi,e),Y(xe,n))}function Pc(e){Fi.current===e&&(G(xe),G(Fi))}var tt=un(0);function _r(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var sl=[];function Ec(){for(var e=0;e<sl.length;e++)sl[e]._workInProgressVersionPrimary=null;sl.length=0}var Zo=Fe.ReactCurrentDispatcher,il=Fe.ReactCurrentBatchConfig,jn=0,et=null,ut=null,ft=null,br=!1,wi=!1,ji=0,Yy=0;function wt(){throw Error(P(321))}function Tc(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!he(e[n],t[n]))return!1;return!0}function Dc(e,t,n,s,i,o){if(jn=o,et=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Zo.current=e===null||e.memoizedState===null?Zy:qy,e=n(s,i),wi){o=0;do{if(wi=!1,ji=0,25<=o)throw Error(P(301));o+=1,ft=ut=null,t.updateQueue=null,Zo.current=Jy,e=n(s,i)}while(wi)}if(Zo.current=xr,t=ut!==null&&ut.next!==null,jn=0,ft=ut=et=null,br=!1,t)throw Error(P(300));return e}function Rc(){var e=ji!==0;return ji=0,e}function ve(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return ft===null?et.memoizedState=ft=e:ft=ft.next=e,ft}function ne(){if(ut===null){var e=et.alternate;e=e!==null?e.memoizedState:null}else e=ut.next;var t=ft===null?et.memoizedState:ft.next;if(t!==null)ft=t,ut=e;else{if(e===null)throw Error(P(310));ut=e,e={memoizedState:ut.memoizedState,baseState:ut.baseState,baseQueue:ut.baseQueue,queue:ut.queue,next:null},ft===null?et.memoizedState=ft=e:ft=ft.next=e}return ft}function Bi(e,t){return typeof t=="function"?t(e):t}function ol(e){var t=ne(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var s=ut,i=s.baseQueue,o=n.pending;if(o!==null){if(i!==null){var r=i.next;i.next=o.next,o.next=r}s.baseQueue=i=o,n.pending=null}if(i!==null){o=i.next,s=s.baseState;var l=r=null,c=null,u=o;do{var d=u.lane;if((jn&d)===d)c!==null&&(c=c.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),s=u.hasEagerState?u.eagerState:e(s,u.action);else{var h={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};c===null?(l=c=h,r=s):c=c.next=h,et.lanes|=d,Bn|=d}u=u.next}while(u!==null&&u!==o);c===null?r=s:c.next=l,he(s,t.memoizedState)||(Lt=!0),t.memoizedState=s,t.baseState=r,t.baseQueue=c,n.lastRenderedState=s}if(e=n.interleaved,e!==null){i=e;do o=i.lane,et.lanes|=o,Bn|=o,i=i.next;while(i!==e)}else i===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function rl(e){var t=ne(),n=t.queue;if(n===null)throw Error(P(311));n.lastRenderedReducer=e;var s=n.dispatch,i=n.pending,o=t.memoizedState;if(i!==null){n.pending=null;var r=i=i.next;do o=e(o,r.action),r=r.next;while(r!==i);he(o,t.memoizedState)||(Lt=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,s]}function Tf(){}function Df(e,t){var n=et,s=ne(),i=t(),o=!he(s.memoizedState,i);if(o&&(s.memoizedState=i,Lt=!0),s=s.queue,Oc(Lf.bind(null,n,s,e),[e]),s.getSnapshot!==t||o||ft!==null&&ft.memoizedState.tag&1){if(n.flags|=2048,Vi(9,Of.bind(null,n,s,i,t),void 0,null),pt===null)throw Error(P(349));jn&30||Rf(n,t,i)}return i}function Rf(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=et.updateQueue,t===null?(t={lastEffect:null,stores:null},et.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Of(e,t,n,s){t.value=n,t.getSnapshot=s,Af(t)&&zf(e)}function Lf(e,t,n){return n(function(){Af(t)&&zf(e)})}function Af(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!he(e,n)}catch{return!0}}function zf(e){var t=Ae(e,1);t!==null&&de(t,e,1,-1)}function sh(e){var t=ve();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Bi,lastRenderedState:e},t.queue=e,e=e.dispatch=Qy.bind(null,et,e),[t.memoizedState,e]}function Vi(e,t,n,s){return e={tag:e,create:t,destroy:n,deps:s,next:null},t=et.updateQueue,t===null?(t={lastEffect:null,stores:null},et.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(s=n.next,n.next=e,e.next=s,t.lastEffect=e)),e}function Ff(){return ne().memoizedState}function qo(e,t,n,s){var i=ve();et.flags|=e,i.memoizedState=Vi(1|t,n,void 0,s===void 0?null:s)}function Or(e,t,n,s){var i=ne();s=s===void 0?null:s;var o=void 0;if(ut!==null){var r=ut.memoizedState;if(o=r.destroy,s!==null&&Tc(s,r.deps)){i.memoizedState=Vi(t,n,o,s);return}}et.flags|=e,i.memoizedState=Vi(1|t,n,o,s)}function ih(e,t){return qo(8390656,8,e,t)}function Oc(e,t){return Or(2048,8,e,t)}function If(e,t){return Or(4,2,e,t)}function jf(e,t){return Or(4,4,e,t)}function Bf(e,t){if(typeof t=="function")return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function Vf(e,t,n){return n=n!=null?n.concat([e]):null,Or(4,4,Bf.bind(null,t,e),n)}function Lc(){}function Hf(e,t){var n=ne();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Tc(t,s[1])?s[0]:(n.memoizedState=[e,t],e)}function Wf(e,t){var n=ne();t=t===void 0?null:t;var s=n.memoizedState;return s!==null&&t!==null&&Tc(t,s[1])?s[0]:(e=e(),n.memoizedState=[e,t],e)}function $f(e,t,n){return jn&21?(he(n,t)||(n=Xh(),et.lanes|=n,Bn|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Lt=!0),e.memoizedState=n)}function Xy(e,t){var n=H;H=n!==0&&4>n?n:4,e(!0);var s=il.transition;il.transition={};try{e(!1),t()}finally{H=n,il.transition=s}}function Uf(){return ne().memoizedState}function Gy(e,t,n){var s=on(e);if(n={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null},Kf(e))Yf(t,n);else if(n=Mf(e,t,n,s),n!==null){var i=Tt();de(n,e,s,i),Xf(n,t,s)}}function Qy(e,t,n){var s=on(e),i={lane:s,action:n,hasEagerState:!1,eagerState:null,next:null};if(Kf(e))Yf(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var r=t.lastRenderedState,l=o(r,n);if(i.hasEagerState=!0,i.eagerState=l,he(l,r)){var c=t.interleaved;c===null?(i.next=i,Cc(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=Mf(e,t,i,s),n!==null&&(i=Tt(),de(n,e,s,i),Xf(n,t,s))}}function Kf(e){var t=e.alternate;return e===et||t!==null&&t===et}function Yf(e,t){wi=br=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Xf(e,t,n){if(n&4194240){var s=t.lanes;s&=e.pendingLanes,n|=s,t.lanes=n,dc(e,n)}}var xr={readContext:ee,useCallback:wt,useContext:wt,useEffect:wt,useImperativeHandle:wt,useInsertionEffect:wt,useLayoutEffect:wt,useMemo:wt,useReducer:wt,useRef:wt,useState:wt,useDebugValue:wt,useDeferredValue:wt,useTransition:wt,useMutableSource:wt,useSyncExternalStore:wt,useId:wt,unstable_isNewReconciler:!1},Zy={readContext:ee,useCallback:function(e,t){return ve().memoizedState=[e,t===void 0?null:t],e},useContext:ee,useEffect:ih,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,qo(4194308,4,Bf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return qo(4194308,4,e,t)},useInsertionEffect:function(e,t){return qo(4,2,e,t)},useMemo:function(e,t){var n=ve();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var s=ve();return t=n!==void 0?n(t):t,s.memoizedState=s.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},s.queue=e,e=e.dispatch=Gy.bind(null,et,e),[s.memoizedState,e]},useRef:function(e){var t=ve();return e={current:e},t.memoizedState=e},useState:sh,useDebugValue:Lc,useDeferredValue:function(e){return ve().memoizedState=e},useTransition:function(){var e=sh(!1),t=e[0];return e=Xy.bind(null,e[1]),ve().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var s=et,i=ve();if(Z){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),pt===null)throw Error(P(349));jn&30||Rf(s,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,ih(Lf.bind(null,s,o,e),[e]),s.flags|=2048,Vi(9,Of.bind(null,s,o,n,t),void 0,null),n},useId:function(){var e=ve(),t=pt.identifierPrefix;if(Z){var n=De,s=Te;n=(s&~(1<<32-ue(s)-1)).toString(32)+n,t=":"+t+"R"+n,n=ji++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=Yy++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},qy={readContext:ee,useCallback:Hf,useContext:ee,useEffect:Oc,useImperativeHandle:Vf,useInsertionEffect:If,useLayoutEffect:jf,useMemo:Wf,useReducer:ol,useRef:Ff,useState:function(){return ol(Bi)},useDebugValue:Lc,useDeferredValue:function(e){var t=ne();return $f(t,ut.memoizedState,e)},useTransition:function(){var e=ol(Bi)[0],t=ne().memoizedState;return[e,t]},useMutableSource:Tf,useSyncExternalStore:Df,useId:Uf,unstable_isNewReconciler:!1},Jy={readContext:ee,useCallback:Hf,useContext:ee,useEffect:Oc,useImperativeHandle:Vf,useInsertionEffect:If,useLayoutEffect:jf,useMemo:Wf,useReducer:rl,useRef:Ff,useState:function(){return rl(Bi)},useDebugValue:Lc,useDeferredValue:function(e){var t=ne();return ut===null?t.memoizedState=e:$f(t,ut.memoizedState,e)},useTransition:function(){var e=rl(Bi)[0],t=ne().memoizedState;return[e,t]},useMutableSource:Tf,useSyncExternalStore:Df,useId:Uf,unstable_isNewReconciler:!1};function ae(e,t){if(e&&e.defaultProps){t=nt({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Vl(e,t,n,s){t=e.memoizedState,n=n(s,t),n=n==null?t:nt({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Lr={isMounted:function(e){return(e=e._reactInternals)?Wn(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var s=Tt(),i=on(e),o=Re(s,i);o.payload=t,n!=null&&(o.callback=n),t=nn(e,o,i),t!==null&&(de(t,e,i,s),Qo(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var s=Tt(),i=on(e),o=Re(s,i);o.tag=1,o.payload=t,n!=null&&(o.callback=n),t=nn(e,o,i),t!==null&&(de(t,e,i,s),Qo(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tt(),s=on(e),i=Re(n,s);i.tag=2,t!=null&&(i.callback=t),t=nn(e,i,s),t!==null&&(de(t,e,s,n),Qo(t,e,s))}};function oh(e,t,n,s,i,o,r){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(s,o,r):t.prototype&&t.prototype.isPureReactComponent?!Oi(n,s)||!Oi(i,o):!0}function Gf(e,t,n){var s=!1,i=ln,o=t.contextType;return typeof o=="object"&&o!==null?o=ee(o):(i=zt(t)?Fn:Ct.current,s=t.contextTypes,o=(s=s!=null)?Ps(e,i):ln),t=new t(n,o),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=Lr,e.stateNode=t,t._reactInternals=e,s&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=o),t}function rh(e,t,n,s){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,s),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,s),t.state!==e&&Lr.enqueueReplaceState(t,t.state,null)}function Hl(e,t,n,s){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},Nc(e);var o=t.contextType;typeof o=="object"&&o!==null?i.context=ee(o):(o=zt(t)?Fn:Ct.current,i.context=Ps(e,o)),i.state=e.memoizedState,o=t.getDerivedStateFromProps,typeof o=="function"&&(Vl(e,t,o,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(t=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),t!==i.state&&Lr.enqueueReplaceState(i,i.state,null),vr(e,n,i,s),i.state=e.memoizedState),typeof i.componentDidMount=="function"&&(e.flags|=4194308)}function Rs(e,t){try{var n="",s=t;do n+=E0(s),s=s.return;while(s);var i=n}catch(o){i=`
Error generating stack: `+o.message+`
`+o.stack}return{value:e,source:t,stack:i,digest:null}}function al(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Wl(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var tv=typeof WeakMap=="function"?WeakMap:Map;function Qf(e,t,n){n=Re(-1,n),n.tag=3,n.payload={element:null};var s=t.value;return n.callback=function(){kr||(kr=!0,Jl=s),Wl(e,t)},n}function Zf(e,t,n){n=Re(-1,n),n.tag=3;var s=e.type.getDerivedStateFromError;if(typeof s=="function"){var i=t.value;n.payload=function(){return s(i)},n.callback=function(){Wl(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){Wl(e,t),typeof s!="function"&&(sn===null?sn=new Set([this]):sn.add(this));var r=t.stack;this.componentDidCatch(t.value,{componentStack:r!==null?r:""})}),n}function ah(e,t,n){var s=e.pingCache;if(s===null){s=e.pingCache=new tv;var i=new Set;s.set(t,i)}else i=s.get(t),i===void 0&&(i=new Set,s.set(t,i));i.has(n)||(i.add(n),e=pv.bind(null,e,t,n),t.then(e,e))}function lh(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function ch(e,t,n,s,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Re(-1,1),t.tag=2,nn(n,t,1))),n.lanes|=1),e)}var ev=Fe.ReactCurrentOwner,Lt=!1;function Et(e,t,n,s){t.child=e===null?Nf(t,null,n,s):Ts(t,e.child,n,s)}function uh(e,t,n,s,i){n=n.render;var o=t.ref;return Cs(t,i),s=Dc(e,t,n,s,o,i),n=Rc(),e!==null&&!Lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ze(e,t,i)):(Z&&n&&_c(t),t.flags|=1,Et(e,t,s,i),t.child)}function dh(e,t,n,s,i){if(e===null){var o=n.type;return typeof o=="function"&&!Hc(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,qf(e,t,o,s,i)):(e=nr(n.type,null,s,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var r=o.memoizedProps;if(n=n.compare,n=n!==null?n:Oi,n(r,s)&&e.ref===t.ref)return ze(e,t,i)}return t.flags|=1,e=rn(o,s),e.ref=t.ref,e.return=t,t.child=e}function qf(e,t,n,s,i){if(e!==null){var o=e.memoizedProps;if(Oi(o,s)&&e.ref===t.ref)if(Lt=!1,t.pendingProps=s=o,(e.lanes&i)!==0)e.flags&131072&&(Lt=!0);else return t.lanes=e.lanes,ze(e,t,i)}return $l(e,t,n,s,i)}function Jf(e,t,n){var s=t.pendingProps,i=s.children,o=e!==null?e.memoizedState:null;if(s.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Y(bs,$t),$t|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Y(bs,$t),$t|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},s=o!==null?o.baseLanes:n,Y(bs,$t),$t|=s}else o!==null?(s=o.baseLanes|n,t.memoizedState=null):s=n,Y(bs,$t),$t|=s;return Et(e,t,i,n),t.child}function tp(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $l(e,t,n,s,i){var o=zt(n)?Fn:Ct.current;return o=Ps(t,o),Cs(t,i),n=Dc(e,t,n,s,o,i),s=Rc(),e!==null&&!Lt?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,ze(e,t,i)):(Z&&s&&_c(t),t.flags|=1,Et(e,t,n,i),t.child)}function hh(e,t,n,s,i){if(zt(n)){var o=!0;fr(t)}else o=!1;if(Cs(t,i),t.stateNode===null)Jo(e,t),Gf(t,n,s),Hl(t,n,s,i),s=!0;else if(e===null){var r=t.stateNode,l=t.memoizedProps;r.props=l;var c=r.context,u=n.contextType;typeof u=="object"&&u!==null?u=ee(u):(u=zt(n)?Fn:Ct.current,u=Ps(t,u));var d=n.getDerivedStateFromProps,h=typeof d=="function"||typeof r.getSnapshotBeforeUpdate=="function";h||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(l!==s||c!==u)&&rh(t,r,s,u),Ye=!1;var f=t.memoizedState;r.state=f,vr(t,s,r,i),c=t.memoizedState,l!==s||f!==c||At.current||Ye?(typeof d=="function"&&(Vl(t,n,d,s),c=t.memoizedState),(l=Ye||oh(t,n,l,s,f,c,u))?(h||typeof r.UNSAFE_componentWillMount!="function"&&typeof r.componentWillMount!="function"||(typeof r.componentWillMount=="function"&&r.componentWillMount(),typeof r.UNSAFE_componentWillMount=="function"&&r.UNSAFE_componentWillMount()),typeof r.componentDidMount=="function"&&(t.flags|=4194308)):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=s,t.memoizedState=c),r.props=s,r.state=c,r.context=u,s=l):(typeof r.componentDidMount=="function"&&(t.flags|=4194308),s=!1)}else{r=t.stateNode,Pf(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:ae(t.type,l),r.props=u,h=t.pendingProps,f=r.context,c=n.contextType,typeof c=="object"&&c!==null?c=ee(c):(c=zt(n)?Fn:Ct.current,c=Ps(t,c));var g=n.getDerivedStateFromProps;(d=typeof g=="function"||typeof r.getSnapshotBeforeUpdate=="function")||typeof r.UNSAFE_componentWillReceiveProps!="function"&&typeof r.componentWillReceiveProps!="function"||(l!==h||f!==c)&&rh(t,r,s,c),Ye=!1,f=t.memoizedState,r.state=f,vr(t,s,r,i);var y=t.memoizedState;l!==h||f!==y||At.current||Ye?(typeof g=="function"&&(Vl(t,n,g,s),y=t.memoizedState),(u=Ye||oh(t,n,u,s,f,y,c)||!1)?(d||typeof r.UNSAFE_componentWillUpdate!="function"&&typeof r.componentWillUpdate!="function"||(typeof r.componentWillUpdate=="function"&&r.componentWillUpdate(s,y,c),typeof r.UNSAFE_componentWillUpdate=="function"&&r.UNSAFE_componentWillUpdate(s,y,c)),typeof r.componentDidUpdate=="function"&&(t.flags|=4),typeof r.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof r.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=s,t.memoizedState=y),r.props=s,r.state=y,r.context=c,s=u):(typeof r.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof r.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),s=!1)}return Ul(e,t,n,s,o,i)}function Ul(e,t,n,s,i,o){tp(e,t);var r=(t.flags&128)!==0;if(!s&&!r)return i&&Zd(t,n,!1),ze(e,t,o);s=t.stateNode,ev.current=t;var l=r&&typeof n.getDerivedStateFromError!="function"?null:s.render();return t.flags|=1,e!==null&&r?(t.child=Ts(t,e.child,null,o),t.child=Ts(t,null,l,o)):Et(e,t,l,o),t.memoizedState=s.state,i&&Zd(t,n,!0),t.child}function ep(e){var t=e.stateNode;t.pendingContext?Qd(e,t.pendingContext,t.pendingContext!==t.context):t.context&&Qd(e,t.context,!1),Mc(e,t.containerInfo)}function fh(e,t,n,s,i){return Es(),xc(i),t.flags|=256,Et(e,t,n,s),t.child}var Kl={dehydrated:null,treeContext:null,retryLane:0};function Yl(e){return{baseLanes:e,cachePool:null,transitions:null}}function np(e,t,n){var s=t.pendingProps,i=tt.current,o=!1,r=(t.flags&128)!==0,l;if((l=r)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Y(tt,i&1),e===null)return jl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(r=s.children,e=s.fallback,o?(s=t.mode,o=t.child,r={mode:"hidden",children:r},!(s&1)&&o!==null?(o.childLanes=0,o.pendingProps=r):o=Fr(r,s,0,null),e=zn(e,s,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=Yl(n),t.memoizedState=Kl,e):Ac(t,r));if(i=e.memoizedState,i!==null&&(l=i.dehydrated,l!==null))return nv(e,t,r,s,l,i,n);if(o){o=s.fallback,r=t.mode,i=e.child,l=i.sibling;var c={mode:"hidden",children:s.children};return!(r&1)&&t.child!==i?(s=t.child,s.childLanes=0,s.pendingProps=c,t.deletions=null):(s=rn(i,c),s.subtreeFlags=i.subtreeFlags&14680064),l!==null?o=rn(l,o):(o=zn(o,r,n,null),o.flags|=2),o.return=t,s.return=t,s.sibling=o,t.child=s,s=o,o=t.child,r=e.child.memoizedState,r=r===null?Yl(n):{baseLanes:r.baseLanes|n,cachePool:null,transitions:r.transitions},o.memoizedState=r,o.childLanes=e.childLanes&~n,t.memoizedState=Kl,s}return o=e.child,e=o.sibling,s=rn(o,{mode:"visible",children:s.children}),!(t.mode&1)&&(s.lanes=n),s.return=t,s.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=s,t.memoizedState=null,s}function Ac(e,t){return t=Fr({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function $o(e,t,n,s){return s!==null&&xc(s),Ts(t,e.child,null,n),e=Ac(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function nv(e,t,n,s,i,o,r){if(n)return t.flags&256?(t.flags&=-257,s=al(Error(P(422))),$o(e,t,r,s)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=s.fallback,i=t.mode,s=Fr({mode:"visible",children:s.children},i,0,null),o=zn(o,i,r,null),o.flags|=2,s.return=t,o.return=t,s.sibling=o,t.child=s,t.mode&1&&Ts(t,e.child,null,r),t.child.memoizedState=Yl(r),t.memoizedState=Kl,o);if(!(t.mode&1))return $o(e,t,r,null);if(i.data==="$!"){if(s=i.nextSibling&&i.nextSibling.dataset,s)var l=s.dgst;return s=l,o=Error(P(419)),s=al(o,s,void 0),$o(e,t,r,s)}if(l=(r&e.childLanes)!==0,Lt||l){if(s=pt,s!==null){switch(r&-r){case 4:i=2;break;case 16:i=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(s.suspendedLanes|r)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Ae(e,i),de(s,e,i,-1))}return Vc(),s=al(Error(P(421))),$o(e,t,r,s)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=mv.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,Ut=en(i.nextSibling),Kt=t,Z=!0,ce=null,e!==null&&(Zt[qt++]=Te,Zt[qt++]=De,Zt[qt++]=In,Te=e.id,De=e.overflow,In=t),t=Ac(t,s.children),t.flags|=4096,t)}function ph(e,t,n){e.lanes|=t;var s=e.alternate;s!==null&&(s.lanes|=t),Bl(e.return,t,n)}function ll(e,t,n,s,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:s,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=s,o.tail=n,o.tailMode=i)}function sp(e,t,n){var s=t.pendingProps,i=s.revealOrder,o=s.tail;if(Et(e,t,s.children,n),s=tt.current,s&2)s=s&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)t:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&ph(e,n,t);else if(e.tag===19)ph(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break t;for(;e.sibling===null;){if(e.return===null||e.return===t)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}s&=1}if(Y(tt,s),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&_r(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),ll(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&_r(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}ll(t,!0,n,null,o);break;case"together":ll(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Jo(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function ze(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Bn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(P(153));if(t.child!==null){for(e=t.child,n=rn(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=rn(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function sv(e,t,n){switch(t.tag){case 3:ep(t),Es();break;case 5:Ef(t);break;case 1:zt(t.type)&&fr(t);break;case 4:Mc(t,t.stateNode.containerInfo);break;case 10:var s=t.type._context,i=t.memoizedProps.value;Y(gr,s._currentValue),s._currentValue=i;break;case 13:if(s=t.memoizedState,s!==null)return s.dehydrated!==null?(Y(tt,tt.current&1),t.flags|=128,null):n&t.child.childLanes?np(e,t,n):(Y(tt,tt.current&1),e=ze(e,t,n),e!==null?e.sibling:null);Y(tt,tt.current&1);break;case 19:if(s=(n&t.childLanes)!==0,e.flags&128){if(s)return sp(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Y(tt,tt.current),s)break;return null;case 22:case 23:return t.lanes=0,Jf(e,t,n)}return ze(e,t,n)}var ip,Xl,op,rp;ip=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};Xl=function(){};op=function(e,t,n,s){var i=e.memoizedProps;if(i!==s){e=t.stateNode,Ln(xe.current);var o=null;switch(n){case"input":i=gl(e,i),s=gl(e,s),o=[];break;case"select":i=nt({},i,{value:void 0}),s=nt({},s,{value:void 0}),o=[];break;case"textarea":i=_l(e,i),s=_l(e,s),o=[];break;default:typeof i.onClick!="function"&&typeof s.onClick=="function"&&(e.onclick=dr)}xl(n,s);var r;n=null;for(u in i)if(!s.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var l=i[u];for(r in l)l.hasOwnProperty(r)&&(n||(n={}),n[r]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Ni.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in s){var c=s[u];if(l=i?.[u],s.hasOwnProperty(u)&&c!==l&&(c!=null||l!=null))if(u==="style")if(l){for(r in l)!l.hasOwnProperty(r)||c&&c.hasOwnProperty(r)||(n||(n={}),n[r]="");for(r in c)c.hasOwnProperty(r)&&l[r]!==c[r]&&(n||(n={}),n[r]=c[r])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,l=l?l.__html:void 0,c!=null&&l!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Ni.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&X("scroll",e),o||l===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};rp=function(e,t,n,s){n!==s&&(t.flags|=4)};function ui(e,t){if(!Z)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var s=null;n!==null;)n.alternate!==null&&(s=n),n=n.sibling;s===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:s.sibling=null}}function kt(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,s=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,s|=i.subtreeFlags&14680064,s|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,s|=i.subtreeFlags,s|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=s,e.childLanes=n,t}function iv(e,t,n){var s=t.pendingProps;switch(bc(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return kt(t),null;case 1:return zt(t.type)&&hr(),kt(t),null;case 3:return s=t.stateNode,Ds(),G(At),G(Ct),Ec(),s.pendingContext&&(s.context=s.pendingContext,s.pendingContext=null),(e===null||e.child===null)&&(Ho(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ce!==null&&(nc(ce),ce=null))),Xl(e,t),kt(t),null;case 5:Pc(t);var i=Ln(Ii.current);if(n=t.type,e!==null&&t.stateNode!=null)op(e,t,n,s,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!s){if(t.stateNode===null)throw Error(P(166));return kt(t),null}if(e=Ln(xe.current),Ho(t)){s=t.stateNode,n=t.type;var o=t.memoizedProps;switch(s[_e]=t,s[zi]=o,e=(t.mode&1)!==0,n){case"dialog":X("cancel",s),X("close",s);break;case"iframe":case"object":case"embed":X("load",s);break;case"video":case"audio":for(i=0;i<gi.length;i++)X(gi[i],s);break;case"source":X("error",s);break;case"img":case"image":case"link":X("error",s),X("load",s);break;case"details":X("toggle",s);break;case"input":wd(s,o),X("invalid",s);break;case"select":s._wrapperState={wasMultiple:!!o.multiple},X("invalid",s);break;case"textarea":Sd(s,o),X("invalid",s)}xl(n,o),i=null;for(var r in o)if(o.hasOwnProperty(r)){var l=o[r];r==="children"?typeof l=="string"?s.textContent!==l&&(o.suppressHydrationWarning!==!0&&Vo(s.textContent,l,e),i=["children",l]):typeof l=="number"&&s.textContent!==""+l&&(o.suppressHydrationWarning!==!0&&Vo(s.textContent,l,e),i=["children",""+l]):Ni.hasOwnProperty(r)&&l!=null&&r==="onScroll"&&X("scroll",s)}switch(n){case"input":Eo(s),kd(s,o,!0);break;case"textarea":Eo(s),Cd(s);break;case"select":case"option":break;default:typeof o.onClick=="function"&&(s.onclick=dr)}s=i,t.updateQueue=s,s!==null&&(t.flags|=4)}else{r=i.nodeType===9?i:i.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=Oh(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=r.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof s.is=="string"?e=r.createElement(n,{is:s.is}):(e=r.createElement(n),n==="select"&&(r=e,s.multiple?r.multiple=!0:s.size&&(r.size=s.size))):e=r.createElementNS(e,n),e[_e]=t,e[zi]=s,ip(e,t,!1,!1),t.stateNode=e;t:{switch(r=wl(n,s),n){case"dialog":X("cancel",e),X("close",e),i=s;break;case"iframe":case"object":case"embed":X("load",e),i=s;break;case"video":case"audio":for(i=0;i<gi.length;i++)X(gi[i],e);i=s;break;case"source":X("error",e),i=s;break;case"img":case"image":case"link":X("error",e),X("load",e),i=s;break;case"details":X("toggle",e),i=s;break;case"input":wd(e,s),i=gl(e,s),X("invalid",e);break;case"option":i=s;break;case"select":e._wrapperState={wasMultiple:!!s.multiple},i=nt({},s,{value:void 0}),X("invalid",e);break;case"textarea":Sd(e,s),i=_l(e,s),X("invalid",e);break;default:i=s}xl(n,i),l=i;for(o in l)if(l.hasOwnProperty(o)){var c=l[o];o==="style"?zh(e,c):o==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Lh(e,c)):o==="children"?typeof c=="string"?(n!=="textarea"||c!=="")&&Mi(e,c):typeof c=="number"&&Mi(e,""+c):o!=="suppressContentEditableWarning"&&o!=="suppressHydrationWarning"&&o!=="autoFocus"&&(Ni.hasOwnProperty(o)?c!=null&&o==="onScroll"&&X("scroll",e):c!=null&&oc(e,o,c,r))}switch(n){case"input":Eo(e),kd(e,s,!1);break;case"textarea":Eo(e),Cd(e);break;case"option":s.value!=null&&e.setAttribute("value",""+an(s.value));break;case"select":e.multiple=!!s.multiple,o=s.value,o!=null?xs(e,!!s.multiple,o,!1):s.defaultValue!=null&&xs(e,!!s.multiple,s.defaultValue,!0);break;default:typeof i.onClick=="function"&&(e.onclick=dr)}switch(n){case"button":case"input":case"select":case"textarea":s=!!s.autoFocus;break t;case"img":s=!0;break t;default:s=!1}}s&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return kt(t),null;case 6:if(e&&t.stateNode!=null)rp(e,t,e.memoizedProps,s);else{if(typeof s!="string"&&t.stateNode===null)throw Error(P(166));if(n=Ln(Ii.current),Ln(xe.current),Ho(t)){if(s=t.stateNode,n=t.memoizedProps,s[_e]=t,(o=s.nodeValue!==n)&&(e=Kt,e!==null))switch(e.tag){case 3:Vo(s.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&Vo(s.nodeValue,n,(e.mode&1)!==0)}o&&(t.flags|=4)}else s=(n.nodeType===9?n:n.ownerDocument).createTextNode(s),s[_e]=t,t.stateNode=s}return kt(t),null;case 13:if(G(tt),s=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Z&&Ut!==null&&t.mode&1&&!(t.flags&128))Sf(),Es(),t.flags|=98560,o=!1;else if(o=Ho(t),s!==null&&s.dehydrated!==null){if(e===null){if(!o)throw Error(P(318));if(o=t.memoizedState,o=o!==null?o.dehydrated:null,!o)throw Error(P(317));o[_e]=t}else Es(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;kt(t),o=!1}else ce!==null&&(nc(ce),ce=null),o=!0;if(!o)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(s=s!==null,s!==(e!==null&&e.memoizedState!==null)&&s&&(t.child.flags|=8192,t.mode&1&&(e===null||tt.current&1?dt===0&&(dt=3):Vc())),t.updateQueue!==null&&(t.flags|=4),kt(t),null);case 4:return Ds(),Xl(e,t),e===null&&Li(t.stateNode.containerInfo),kt(t),null;case 10:return Sc(t.type._context),kt(t),null;case 17:return zt(t.type)&&hr(),kt(t),null;case 19:if(G(tt),o=t.memoizedState,o===null)return kt(t),null;if(s=(t.flags&128)!==0,r=o.rendering,r===null)if(s)ui(o,!1);else{if(dt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(r=_r(e),r!==null){for(t.flags|=128,ui(o,!1),s=r.updateQueue,s!==null&&(t.updateQueue=s,t.flags|=4),t.subtreeFlags=0,s=n,n=t.child;n!==null;)o=n,e=s,o.flags&=14680066,r=o.alternate,r===null?(o.childLanes=0,o.lanes=e,o.child=null,o.subtreeFlags=0,o.memoizedProps=null,o.memoizedState=null,o.updateQueue=null,o.dependencies=null,o.stateNode=null):(o.childLanes=r.childLanes,o.lanes=r.lanes,o.child=r.child,o.subtreeFlags=0,o.deletions=null,o.memoizedProps=r.memoizedProps,o.memoizedState=r.memoizedState,o.updateQueue=r.updateQueue,o.type=r.type,e=r.dependencies,o.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Y(tt,tt.current&1|2),t.child}e=e.sibling}o.tail!==null&&lt()>Os&&(t.flags|=128,s=!0,ui(o,!1),t.lanes=4194304)}else{if(!s)if(e=_r(r),e!==null){if(t.flags|=128,s=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ui(o,!0),o.tail===null&&o.tailMode==="hidden"&&!r.alternate&&!Z)return kt(t),null}else 2*lt()-o.renderingStartTime>Os&&n!==1073741824&&(t.flags|=128,s=!0,ui(o,!1),t.lanes=4194304);o.isBackwards?(r.sibling=t.child,t.child=r):(n=o.last,n!==null?n.sibling=r:t.child=r,o.last=r)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=lt(),t.sibling=null,n=tt.current,Y(tt,s?n&1|2:n&1),t):(kt(t),null);case 22:case 23:return Bc(),s=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==s&&(t.flags|=8192),s&&t.mode&1?$t&1073741824&&(kt(t),t.subtreeFlags&6&&(t.flags|=8192)):kt(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function ov(e,t){switch(bc(t),t.tag){case 1:return zt(t.type)&&hr(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ds(),G(At),G(Ct),Ec(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Pc(t),null;case 13:if(G(tt),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));Es()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return G(tt),null;case 4:return Ds(),null;case 10:return Sc(t.type._context),null;case 22:case 23:return Bc(),null;case 24:return null;default:return null}}var Uo=!1,St=!1,rv=typeof WeakSet=="function"?WeakSet:Set,T=null;function _s(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(s){it(e,t,s)}else n.current=null}function Gl(e,t,n){try{n()}catch(s){it(e,t,s)}}var mh=!1;function av(e,t){if(Rl=lr,e=df(),vc(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else t:{n=(n=e.ownerDocument)&&n.defaultView||window;var s=n.getSelection&&n.getSelection();if(s&&s.rangeCount!==0){n=s.anchorNode;var i=s.anchorOffset,o=s.focusNode;s=s.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break t}var r=0,l=-1,c=-1,u=0,d=0,h=e,f=null;e:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(l=r+i),h!==o||s!==0&&h.nodeType!==3||(c=r+s),h.nodeType===3&&(r+=h.nodeValue.length),(g=h.firstChild)!==null;)f=h,h=g;for(;;){if(h===e)break e;if(f===n&&++u===i&&(l=r),f===o&&++d===s&&(c=r),(g=h.nextSibling)!==null)break;h=f,f=h.parentNode}h=g}n=l===-1||c===-1?null:{start:l,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(Ol={focusedElem:e,selectionRange:n},lr=!1,T=t;T!==null;)if(t=T,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,T=e;else for(;T!==null;){t=T;try{var y=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(y!==null){var _=y.memoizedProps,b=y.memoizedState,p=t.stateNode,m=p.getSnapshotBeforeUpdate(t.elementType===t.type?_:ae(t.type,_),b);p.__reactInternalSnapshotBeforeUpdate=m}break;case 3:var v=t.stateNode.containerInfo;v.nodeType===1?v.textContent="":v.nodeType===9&&v.documentElement&&v.removeChild(v.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(x){it(t,t.return,x)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return y=mh,mh=!1,y}function ki(e,t,n){var s=t.updateQueue;if(s=s!==null?s.lastEffect:null,s!==null){var i=s=s.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&Gl(t,n,o)}i=i.next}while(i!==s)}}function Ar(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var s=n.create;n.destroy=s()}n=n.next}while(n!==t)}}function Ql(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function ap(e){var t=e.alternate;t!==null&&(e.alternate=null,ap(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[_e],delete t[zi],delete t[zl],delete t[Wy],delete t[$y])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function lp(e){return e.tag===5||e.tag===3||e.tag===4}function gh(e){t:for(;;){for(;e.sibling===null;){if(e.return===null||lp(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue t;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Zl(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=dr));else if(s!==4&&(e=e.child,e!==null))for(Zl(e,t,n),e=e.sibling;e!==null;)Zl(e,t,n),e=e.sibling}function ql(e,t,n){var s=e.tag;if(s===5||s===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(s!==4&&(e=e.child,e!==null))for(ql(e,t,n),e=e.sibling;e!==null;)ql(e,t,n),e=e.sibling}var yt=null,le=!1;function Ue(e,t,n){for(n=n.child;n!==null;)cp(e,t,n),n=n.sibling}function cp(e,t,n){if(be&&typeof be.onCommitFiberUnmount=="function")try{be.onCommitFiberUnmount(Mr,n)}catch{}switch(n.tag){case 5:St||_s(n,t);case 6:var s=yt,i=le;yt=null,Ue(e,t,n),yt=s,le=i,yt!==null&&(le?(e=yt,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):yt.removeChild(n.stateNode));break;case 18:yt!==null&&(le?(e=yt,n=n.stateNode,e.nodeType===8?el(e.parentNode,n):e.nodeType===1&&el(e,n),Di(e)):el(yt,n.stateNode));break;case 4:s=yt,i=le,yt=n.stateNode.containerInfo,le=!0,Ue(e,t,n),yt=s,le=i;break;case 0:case 11:case 14:case 15:if(!St&&(s=n.updateQueue,s!==null&&(s=s.lastEffect,s!==null))){i=s=s.next;do{var o=i,r=o.destroy;o=o.tag,r!==void 0&&(o&2||o&4)&&Gl(n,t,r),i=i.next}while(i!==s)}Ue(e,t,n);break;case 1:if(!St&&(_s(n,t),s=n.stateNode,typeof s.componentWillUnmount=="function"))try{s.props=n.memoizedProps,s.state=n.memoizedState,s.componentWillUnmount()}catch(l){it(n,t,l)}Ue(e,t,n);break;case 21:Ue(e,t,n);break;case 22:n.mode&1?(St=(s=St)||n.memoizedState!==null,Ue(e,t,n),St=s):Ue(e,t,n);break;default:Ue(e,t,n)}}function yh(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new rv),t.forEach(function(s){var i=gv.bind(null,e,s);n.has(s)||(n.add(s),s.then(i,i))})}}function re(e,t){var n=t.deletions;if(n!==null)for(var s=0;s<n.length;s++){var i=n[s];try{var o=e,r=t,l=r;t:for(;l!==null;){switch(l.tag){case 5:yt=l.stateNode,le=!1;break t;case 3:yt=l.stateNode.containerInfo,le=!0;break t;case 4:yt=l.stateNode.containerInfo,le=!0;break t}l=l.return}if(yt===null)throw Error(P(160));cp(o,r,i),yt=null,le=!1;var c=i.alternate;c!==null&&(c.return=null),i.return=null}catch(u){it(i,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)up(t,e),t=t.sibling}function up(e,t){var n=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(re(t,e),ye(e),s&4){try{ki(3,e,e.return),Ar(3,e)}catch(_){it(e,e.return,_)}try{ki(5,e,e.return)}catch(_){it(e,e.return,_)}}break;case 1:re(t,e),ye(e),s&512&&n!==null&&_s(n,n.return);break;case 5:if(re(t,e),ye(e),s&512&&n!==null&&_s(n,n.return),e.flags&32){var i=e.stateNode;try{Mi(i,"")}catch(_){it(e,e.return,_)}}if(s&4&&(i=e.stateNode,i!=null)){var o=e.memoizedProps,r=n!==null?n.memoizedProps:o,l=e.type,c=e.updateQueue;if(e.updateQueue=null,c!==null)try{l==="input"&&o.type==="radio"&&o.name!=null&&Dh(i,o),wl(l,r);var u=wl(l,o);for(r=0;r<c.length;r+=2){var d=c[r],h=c[r+1];d==="style"?zh(i,h):d==="dangerouslySetInnerHTML"?Lh(i,h):d==="children"?Mi(i,h):oc(i,d,h,u)}switch(l){case"input":yl(i,o);break;case"textarea":Rh(i,o);break;case"select":var f=i._wrapperState.wasMultiple;i._wrapperState.wasMultiple=!!o.multiple;var g=o.value;g!=null?xs(i,!!o.multiple,g,!1):f!==!!o.multiple&&(o.defaultValue!=null?xs(i,!!o.multiple,o.defaultValue,!0):xs(i,!!o.multiple,o.multiple?[]:"",!1))}i[zi]=o}catch(_){it(e,e.return,_)}}break;case 6:if(re(t,e),ye(e),s&4){if(e.stateNode===null)throw Error(P(162));i=e.stateNode,o=e.memoizedProps;try{i.nodeValue=o}catch(_){it(e,e.return,_)}}break;case 3:if(re(t,e),ye(e),s&4&&n!==null&&n.memoizedState.isDehydrated)try{Di(t.containerInfo)}catch(_){it(e,e.return,_)}break;case 4:re(t,e),ye(e);break;case 13:re(t,e),ye(e),i=e.child,i.flags&8192&&(o=i.memoizedState!==null,i.stateNode.isHidden=o,!o||i.alternate!==null&&i.alternate.memoizedState!==null||(Ic=lt())),s&4&&yh(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(St=(u=St)||d,re(t,e),St=u):re(t,e),ye(e),s&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(T=e,d=e.child;d!==null;){for(h=T=d;T!==null;){switch(f=T,g=f.child,f.tag){case 0:case 11:case 14:case 15:ki(4,f,f.return);break;case 1:_s(f,f.return);var y=f.stateNode;if(typeof y.componentWillUnmount=="function"){s=f,n=f.return;try{t=s,y.props=t.memoizedProps,y.state=t.memoizedState,y.componentWillUnmount()}catch(_){it(s,n,_)}}break;case 5:_s(f,f.return);break;case 22:if(f.memoizedState!==null){_h(h);continue}}g!==null?(g.return=f,T=g):_h(h)}d=d.sibling}t:for(d=null,h=e;;){if(h.tag===5){if(d===null){d=h;try{i=h.stateNode,u?(o=i.style,typeof o.setProperty=="function"?o.setProperty("display","none","important"):o.display="none"):(l=h.stateNode,c=h.memoizedProps.style,r=c!=null&&c.hasOwnProperty("display")?c.display:null,l.style.display=Ah("display",r))}catch(_){it(e,e.return,_)}}}else if(h.tag===6){if(d===null)try{h.stateNode.nodeValue=u?"":h.memoizedProps}catch(_){it(e,e.return,_)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===e)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===e)break t;for(;h.sibling===null;){if(h.return===null||h.return===e)break t;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:re(t,e),ye(e),s&4&&yh(e);break;case 21:break;default:re(t,e),ye(e)}}function ye(e){var t=e.flags;if(t&2){try{t:{for(var n=e.return;n!==null;){if(lp(n)){var s=n;break t}n=n.return}throw Error(P(160))}switch(s.tag){case 5:var i=s.stateNode;s.flags&32&&(Mi(i,""),s.flags&=-33);var o=gh(e);ql(e,o,i);break;case 3:case 4:var r=s.stateNode.containerInfo,l=gh(e);Zl(e,l,r);break;default:throw Error(P(161))}}catch(c){it(e,e.return,c)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function lv(e,t,n){T=e,dp(e,t,n)}function dp(e,t,n){for(var s=(e.mode&1)!==0;T!==null;){var i=T,o=i.child;if(i.tag===22&&s){var r=i.memoizedState!==null||Uo;if(!r){var l=i.alternate,c=l!==null&&l.memoizedState!==null||St;l=Uo;var u=St;if(Uo=r,(St=c)&&!u)for(T=i;T!==null;)r=T,c=r.child,r.tag===22&&r.memoizedState!==null?bh(i):c!==null?(c.return=r,T=c):bh(i);for(;o!==null;)T=o,dp(o,t,n),o=o.sibling;T=i,Uo=l,St=u}vh(e,t,n)}else i.subtreeFlags&8772&&o!==null?(o.return=i,T=o):vh(e,t,n)}}function vh(e){for(;T!==null;){var t=T;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:St||Ar(5,t);break;case 1:var s=t.stateNode;if(t.flags&4&&!St)if(n===null)s.componentDidMount();else{var i=t.elementType===t.type?n.memoizedProps:ae(t.type,n.memoizedProps);s.componentDidUpdate(i,n.memoizedState,s.__reactInternalSnapshotBeforeUpdate)}var o=t.updateQueue;o!==null&&nh(t,o,s);break;case 3:var r=t.updateQueue;if(r!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}nh(t,r,n)}break;case 5:var l=t.stateNode;if(n===null&&t.flags&4){n=l;var c=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&n.focus();break;case"img":c.src&&(n.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var h=d.dehydrated;h!==null&&Di(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(P(163))}St||t.flags&512&&Ql(t)}catch(f){it(t,t.return,f)}}if(t===e){T=null;break}if(n=t.sibling,n!==null){n.return=t.return,T=n;break}T=t.return}}function _h(e){for(;T!==null;){var t=T;if(t===e){T=null;break}var n=t.sibling;if(n!==null){n.return=t.return,T=n;break}T=t.return}}function bh(e){for(;T!==null;){var t=T;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{Ar(4,t)}catch(c){it(t,n,c)}break;case 1:var s=t.stateNode;if(typeof s.componentDidMount=="function"){var i=t.return;try{s.componentDidMount()}catch(c){it(t,i,c)}}var o=t.return;try{Ql(t)}catch(c){it(t,o,c)}break;case 5:var r=t.return;try{Ql(t)}catch(c){it(t,r,c)}}}catch(c){it(t,t.return,c)}if(t===e){T=null;break}var l=t.sibling;if(l!==null){l.return=t.return,T=l;break}T=t.return}}var cv=Math.ceil,wr=Fe.ReactCurrentDispatcher,zc=Fe.ReactCurrentOwner,te=Fe.ReactCurrentBatchConfig,F=0,pt=null,ct=null,vt=0,$t=0,bs=un(0),dt=0,Hi=null,Bn=0,zr=0,Fc=0,Si=null,Ot=null,Ic=0,Os=1/0,Pe=null,kr=!1,Jl=null,sn=null,Ko=!1,Ze=null,Sr=0,Ci=0,tc=null,tr=-1,er=0;function Tt(){return F&6?lt():tr!==-1?tr:tr=lt()}function on(e){return e.mode&1?F&2&&vt!==0?vt&-vt:Ky.transition!==null?(er===0&&(er=Xh()),er):(e=H,e!==0||(e=window.event,e=e===void 0?16:ef(e.type)),e):1}function de(e,t,n,s){if(50<Ci)throw Ci=0,tc=null,Error(P(185));Wi(e,n,s),(!(F&2)||e!==pt)&&(e===pt&&(!(F&2)&&(zr|=n),dt===4&&Ge(e,vt)),Ft(e,s),n===1&&F===0&&!(t.mode&1)&&(Os=lt()+500,Rr&&dn()))}function Ft(e,t){var n=e.callbackNode;X0(e,t);var s=ar(e,e===pt?vt:0);if(s===0)n!==null&&Pd(n),e.callbackNode=null,e.callbackPriority=0;else if(t=s&-s,e.callbackPriority!==t){if(n!=null&&Pd(n),t===1)e.tag===0?Uy(xh.bind(null,e)):xf(xh.bind(null,e)),Vy(function(){!(F&6)&&dn()}),n=null;else{switch(Gh(s)){case 1:n=uc;break;case 4:n=Kh;break;case 16:n=rr;break;case 536870912:n=Yh;break;default:n=rr}n=_p(n,hp.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function hp(e,t){if(tr=-1,er=0,F&6)throw Error(P(327));var n=e.callbackNode;if(Ns()&&e.callbackNode!==n)return null;var s=ar(e,e===pt?vt:0);if(s===0)return null;if(s&30||s&e.expiredLanes||t)t=Cr(e,s);else{t=s;var i=F;F|=2;var o=pp();(pt!==e||vt!==t)&&(Pe=null,Os=lt()+500,An(e,t));do try{hv();break}catch(l){fp(e,l)}while(!0);kc(),wr.current=o,F=i,ct!==null?t=0:(pt=null,vt=0,t=dt)}if(t!==0){if(t===2&&(i=Ml(e),i!==0&&(s=i,t=ec(e,i))),t===1)throw n=Hi,An(e,0),Ge(e,s),Ft(e,lt()),n;if(t===6)Ge(e,s);else{if(i=e.current.alternate,!(s&30)&&!uv(i)&&(t=Cr(e,s),t===2&&(o=Ml(e),o!==0&&(s=o,t=ec(e,o))),t===1))throw n=Hi,An(e,0),Ge(e,s),Ft(e,lt()),n;switch(e.finishedWork=i,e.finishedLanes=s,t){case 0:case 1:throw Error(P(345));case 2:Dn(e,Ot,Pe);break;case 3:if(Ge(e,s),(s&130023424)===s&&(t=Ic+500-lt(),10<t)){if(ar(e,0)!==0)break;if(i=e.suspendedLanes,(i&s)!==s){Tt(),e.pingedLanes|=e.suspendedLanes&i;break}e.timeoutHandle=Al(Dn.bind(null,e,Ot,Pe),t);break}Dn(e,Ot,Pe);break;case 4:if(Ge(e,s),(s&4194240)===s)break;for(t=e.eventTimes,i=-1;0<s;){var r=31-ue(s);o=1<<r,r=t[r],r>i&&(i=r),s&=~o}if(s=i,s=lt()-s,s=(120>s?120:480>s?480:1080>s?1080:1920>s?1920:3e3>s?3e3:4320>s?4320:1960*cv(s/1960))-s,10<s){e.timeoutHandle=Al(Dn.bind(null,e,Ot,Pe),s);break}Dn(e,Ot,Pe);break;case 5:Dn(e,Ot,Pe);break;default:throw Error(P(329))}}}return Ft(e,lt()),e.callbackNode===n?hp.bind(null,e):null}function ec(e,t){var n=Si;return e.current.memoizedState.isDehydrated&&(An(e,t).flags|=256),e=Cr(e,t),e!==2&&(t=Ot,Ot=n,t!==null&&nc(t)),e}function nc(e){Ot===null?Ot=e:Ot.push.apply(Ot,e)}function uv(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var s=0;s<n.length;s++){var i=n[s],o=i.getSnapshot;i=i.value;try{if(!he(o(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ge(e,t){for(t&=~Fc,t&=~zr,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-ue(t),s=1<<n;e[n]=-1,t&=~s}}function xh(e){if(F&6)throw Error(P(327));Ns();var t=ar(e,0);if(!(t&1))return Ft(e,lt()),null;var n=Cr(e,t);if(e.tag!==0&&n===2){var s=Ml(e);s!==0&&(t=s,n=ec(e,s))}if(n===1)throw n=Hi,An(e,0),Ge(e,t),Ft(e,lt()),n;if(n===6)throw Error(P(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Dn(e,Ot,Pe),Ft(e,lt()),null}function jc(e,t){var n=F;F|=1;try{return e(t)}finally{F=n,F===0&&(Os=lt()+500,Rr&&dn())}}function Vn(e){Ze!==null&&Ze.tag===0&&!(F&6)&&Ns();var t=F;F|=1;var n=te.transition,s=H;try{if(te.transition=null,H=1,e)return e()}finally{H=s,te.transition=n,F=t,!(F&6)&&dn()}}function Bc(){$t=bs.current,G(bs)}function An(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,By(n)),ct!==null)for(n=ct.return;n!==null;){var s=n;switch(bc(s),s.tag){case 1:s=s.type.childContextTypes,s!=null&&hr();break;case 3:Ds(),G(At),G(Ct),Ec();break;case 5:Pc(s);break;case 4:Ds();break;case 13:G(tt);break;case 19:G(tt);break;case 10:Sc(s.type._context);break;case 22:case 23:Bc()}n=n.return}if(pt=e,ct=e=rn(e.current,null),vt=$t=t,dt=0,Hi=null,Fc=zr=Bn=0,Ot=Si=null,On!==null){for(t=0;t<On.length;t++)if(n=On[t],s=n.interleaved,s!==null){n.interleaved=null;var i=s.next,o=n.pending;if(o!==null){var r=o.next;o.next=i,s.next=r}n.pending=s}On=null}return e}function fp(e,t){do{var n=ct;try{if(kc(),Zo.current=xr,br){for(var s=et.memoizedState;s!==null;){var i=s.queue;i!==null&&(i.pending=null),s=s.next}br=!1}if(jn=0,ft=ut=et=null,wi=!1,ji=0,zc.current=null,n===null||n.return===null){dt=1,Hi=t,ct=null;break}t:{var o=e,r=n.return,l=n,c=t;if(t=vt,l.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var u=c,d=l,h=d.tag;if(!(d.mode&1)&&(h===0||h===11||h===15)){var f=d.alternate;f?(d.updateQueue=f.updateQueue,d.memoizedState=f.memoizedState,d.lanes=f.lanes):(d.updateQueue=null,d.memoizedState=null)}var g=lh(r);if(g!==null){g.flags&=-257,ch(g,r,l,o,t),g.mode&1&&ah(o,u,t),t=g,c=u;var y=t.updateQueue;if(y===null){var _=new Set;_.add(c),t.updateQueue=_}else y.add(c);break t}else{if(!(t&1)){ah(o,u,t),Vc();break t}c=Error(P(426))}}else if(Z&&l.mode&1){var b=lh(r);if(b!==null){!(b.flags&65536)&&(b.flags|=256),ch(b,r,l,o,t),xc(Rs(c,l));break t}}o=c=Rs(c,l),dt!==4&&(dt=2),Si===null?Si=[o]:Si.push(o),o=r;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var p=Qf(o,c,t);eh(o,p);break t;case 1:l=c;var m=o.type,v=o.stateNode;if(!(o.flags&128)&&(typeof m.getDerivedStateFromError=="function"||v!==null&&typeof v.componentDidCatch=="function"&&(sn===null||!sn.has(v)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=Zf(o,l,t);eh(o,x);break t}}o=o.return}while(o!==null)}gp(n)}catch(w){t=w,ct===n&&n!==null&&(ct=n=n.return);continue}break}while(!0)}function pp(){var e=wr.current;return wr.current=xr,e===null?xr:e}function Vc(){(dt===0||dt===3||dt===2)&&(dt=4),pt===null||!(Bn&268435455)&&!(zr&268435455)||Ge(pt,vt)}function Cr(e,t){var n=F;F|=2;var s=pp();(pt!==e||vt!==t)&&(Pe=null,An(e,t));do try{dv();break}catch(i){fp(e,i)}while(!0);if(kc(),F=n,wr.current=s,ct!==null)throw Error(P(261));return pt=null,vt=0,dt}function dv(){for(;ct!==null;)mp(ct)}function hv(){for(;ct!==null&&!j0();)mp(ct)}function mp(e){var t=vp(e.alternate,e,$t);e.memoizedProps=e.pendingProps,t===null?gp(e):ct=t,zc.current=null}function gp(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=ov(n,t),n!==null){n.flags&=32767,ct=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{dt=6,ct=null;return}}else if(n=iv(n,t,$t),n!==null){ct=n;return}if(t=t.sibling,t!==null){ct=t;return}ct=t=e}while(t!==null);dt===0&&(dt=5)}function Dn(e,t,n){var s=H,i=te.transition;try{te.transition=null,H=1,fv(e,t,n,s)}finally{te.transition=i,H=s}return null}function fv(e,t,n,s){do Ns();while(Ze!==null);if(F&6)throw Error(P(327));n=e.finishedWork;var i=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(P(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(G0(e,o),e===pt&&(ct=pt=null,vt=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||Ko||(Ko=!0,_p(rr,function(){return Ns(),null})),o=(n.flags&15990)!==0,n.subtreeFlags&15990||o){o=te.transition,te.transition=null;var r=H;H=1;var l=F;F|=4,zc.current=null,av(e,n),up(n,e),Ay(Ol),lr=!!Rl,Ol=Rl=null,e.current=n,lv(n,e,i),B0(),F=l,H=r,te.transition=o}else e.current=n;if(Ko&&(Ko=!1,Ze=e,Sr=i),o=e.pendingLanes,o===0&&(sn=null),W0(n.stateNode,s),Ft(e,lt()),t!==null)for(s=e.onRecoverableError,n=0;n<t.length;n++)i=t[n],s(i.value,{componentStack:i.stack,digest:i.digest});if(kr)throw kr=!1,e=Jl,Jl=null,e;return Sr&1&&e.tag!==0&&Ns(),o=e.pendingLanes,o&1?e===tc?Ci++:(Ci=0,tc=e):Ci=0,dn(),null}function Ns(){if(Ze!==null){var e=Gh(Sr),t=te.transition,n=H;try{if(te.transition=null,H=16>e?16:e,Ze===null)var s=!1;else{if(e=Ze,Ze=null,Sr=0,F&6)throw Error(P(331));var i=F;for(F|=4,T=e.current;T!==null;){var o=T,r=o.child;if(T.flags&16){var l=o.deletions;if(l!==null){for(var c=0;c<l.length;c++){var u=l[c];for(T=u;T!==null;){var d=T;switch(d.tag){case 0:case 11:case 15:ki(8,d,o)}var h=d.child;if(h!==null)h.return=d,T=h;else for(;T!==null;){d=T;var f=d.sibling,g=d.return;if(ap(d),d===u){T=null;break}if(f!==null){f.return=g,T=f;break}T=g}}}var y=o.alternate;if(y!==null){var _=y.child;if(_!==null){y.child=null;do{var b=_.sibling;_.sibling=null,_=b}while(_!==null)}}T=o}}if(o.subtreeFlags&2064&&r!==null)r.return=o,T=r;else t:for(;T!==null;){if(o=T,o.flags&2048)switch(o.tag){case 0:case 11:case 15:ki(9,o,o.return)}var p=o.sibling;if(p!==null){p.return=o.return,T=p;break t}T=o.return}}var m=e.current;for(T=m;T!==null;){r=T;var v=r.child;if(r.subtreeFlags&2064&&v!==null)v.return=r,T=v;else t:for(r=m;T!==null;){if(l=T,l.flags&2048)try{switch(l.tag){case 0:case 11:case 15:Ar(9,l)}}catch(w){it(l,l.return,w)}if(l===r){T=null;break t}var x=l.sibling;if(x!==null){x.return=l.return,T=x;break t}T=l.return}}if(F=i,dn(),be&&typeof be.onPostCommitFiberRoot=="function")try{be.onPostCommitFiberRoot(Mr,e)}catch{}s=!0}return s}finally{H=n,te.transition=t}}return!1}function wh(e,t,n){t=Rs(n,t),t=Qf(e,t,1),e=nn(e,t,1),t=Tt(),e!==null&&(Wi(e,1,t),Ft(e,t))}function it(e,t,n){if(e.tag===3)wh(e,e,n);else for(;t!==null;){if(t.tag===3){wh(t,e,n);break}else if(t.tag===1){var s=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof s.componentDidCatch=="function"&&(sn===null||!sn.has(s))){e=Rs(n,e),e=Zf(t,e,1),t=nn(t,e,1),e=Tt(),t!==null&&(Wi(t,1,e),Ft(t,e));break}}t=t.return}}function pv(e,t,n){var s=e.pingCache;s!==null&&s.delete(t),t=Tt(),e.pingedLanes|=e.suspendedLanes&n,pt===e&&(vt&n)===n&&(dt===4||dt===3&&(vt&130023424)===vt&&500>lt()-Ic?An(e,0):Fc|=n),Ft(e,t)}function yp(e,t){t===0&&(e.mode&1?(t=Ro,Ro<<=1,!(Ro&130023424)&&(Ro=4194304)):t=1);var n=Tt();e=Ae(e,t),e!==null&&(Wi(e,t,n),Ft(e,n))}function mv(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),yp(e,n)}function gv(e,t){var n=0;switch(e.tag){case 13:var s=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:s=e.stateNode;break;default:throw Error(P(314))}s!==null&&s.delete(t),yp(e,n)}var vp;vp=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||At.current)Lt=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Lt=!1,sv(e,t,n);Lt=!!(e.flags&131072)}else Lt=!1,Z&&t.flags&1048576&&wf(t,mr,t.index);switch(t.lanes=0,t.tag){case 2:var s=t.type;Jo(e,t),e=t.pendingProps;var i=Ps(t,Ct.current);Cs(t,n),i=Dc(null,t,s,e,i,n);var o=Rc();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,zt(s)?(o=!0,fr(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Nc(t),i.updater=Lr,t.stateNode=i,i._reactInternals=t,Hl(t,s,e,n),t=Ul(null,t,s,!0,o,n)):(t.tag=0,Z&&o&&_c(t),Et(null,t,i,n),t=t.child),t;case 16:s=t.elementType;t:{switch(Jo(e,t),e=t.pendingProps,i=s._init,s=i(s._payload),t.type=s,i=t.tag=vv(s),e=ae(s,e),i){case 0:t=$l(null,t,s,e,n);break t;case 1:t=hh(null,t,s,e,n);break t;case 11:t=uh(null,t,s,e,n);break t;case 14:t=dh(null,t,s,ae(s.type,e),n);break t}throw Error(P(306,s,""))}return t;case 0:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:ae(s,i),$l(e,t,s,i,n);case 1:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:ae(s,i),hh(e,t,s,i,n);case 3:t:{if(ep(t),e===null)throw Error(P(387));s=t.pendingProps,o=t.memoizedState,i=o.element,Pf(e,t),vr(t,s,null,n);var r=t.memoizedState;if(s=r.element,o.isDehydrated)if(o={element:s,isDehydrated:!1,cache:r.cache,pendingSuspenseBoundaries:r.pendingSuspenseBoundaries,transitions:r.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=Rs(Error(P(423)),t),t=fh(e,t,s,n,i);break t}else if(s!==i){i=Rs(Error(P(424)),t),t=fh(e,t,s,n,i);break t}else for(Ut=en(t.stateNode.containerInfo.firstChild),Kt=t,Z=!0,ce=null,n=Nf(t,null,s,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Es(),s===i){t=ze(e,t,n);break t}Et(e,t,s,n)}t=t.child}return t;case 5:return Ef(t),e===null&&jl(t),s=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,r=i.children,Ll(s,i)?r=null:o!==null&&Ll(s,o)&&(t.flags|=32),tp(e,t),Et(e,t,r,n),t.child;case 6:return e===null&&jl(t),null;case 13:return np(e,t,n);case 4:return Mc(t,t.stateNode.containerInfo),s=t.pendingProps,e===null?t.child=Ts(t,null,s,n):Et(e,t,s,n),t.child;case 11:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:ae(s,i),uh(e,t,s,i,n);case 7:return Et(e,t,t.pendingProps,n),t.child;case 8:return Et(e,t,t.pendingProps.children,n),t.child;case 12:return Et(e,t,t.pendingProps.children,n),t.child;case 10:t:{if(s=t.type._context,i=t.pendingProps,o=t.memoizedProps,r=i.value,Y(gr,s._currentValue),s._currentValue=r,o!==null)if(he(o.value,r)){if(o.children===i.children&&!At.current){t=ze(e,t,n);break t}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var l=o.dependencies;if(l!==null){r=o.child;for(var c=l.firstContext;c!==null;){if(c.context===s){if(o.tag===1){c=Re(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?c.next=c:(c.next=d.next,d.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Bl(o.return,n,t),l.lanes|=n;break}c=c.next}}else if(o.tag===10)r=o.type===t.type?null:o.child;else if(o.tag===18){if(r=o.return,r===null)throw Error(P(341));r.lanes|=n,l=r.alternate,l!==null&&(l.lanes|=n),Bl(r,n,t),r=o.sibling}else r=o.child;if(r!==null)r.return=o;else for(r=o;r!==null;){if(r===t){r=null;break}if(o=r.sibling,o!==null){o.return=r.return,r=o;break}r=r.return}o=r}Et(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,s=t.pendingProps.children,Cs(t,n),i=ee(i),s=s(i),t.flags|=1,Et(e,t,s,n),t.child;case 14:return s=t.type,i=ae(s,t.pendingProps),i=ae(s.type,i),dh(e,t,s,i,n);case 15:return qf(e,t,t.type,t.pendingProps,n);case 17:return s=t.type,i=t.pendingProps,i=t.elementType===s?i:ae(s,i),Jo(e,t),t.tag=1,zt(s)?(e=!0,fr(t)):e=!1,Cs(t,n),Gf(t,s,i),Hl(t,s,i,n),Ul(null,t,s,!0,e,n);case 19:return sp(e,t,n);case 22:return Jf(e,t,n)}throw Error(P(156,t.tag))};function _p(e,t){return Uh(e,t)}function yv(e,t,n,s){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=s,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Jt(e,t,n,s){return new yv(e,t,n,s)}function Hc(e){return e=e.prototype,!(!e||!e.isReactComponent)}function vv(e){if(typeof e=="function")return Hc(e)?1:0;if(e!=null){if(e=e.$$typeof,e===ac)return 11;if(e===lc)return 14}return 2}function rn(e,t){var n=e.alternate;return n===null?(n=Jt(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function nr(e,t,n,s,i,o){var r=2;if(s=e,typeof e=="function")Hc(e)&&(r=1);else if(typeof e=="string")r=5;else t:switch(e){case us:return zn(n.children,i,o,t);case rc:r=8,i|=8;break;case hl:return e=Jt(12,n,t,i|2),e.elementType=hl,e.lanes=o,e;case fl:return e=Jt(13,n,t,i),e.elementType=fl,e.lanes=o,e;case pl:return e=Jt(19,n,t,i),e.elementType=pl,e.lanes=o,e;case Ph:return Fr(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Nh:r=10;break t;case Mh:r=9;break t;case ac:r=11;break t;case lc:r=14;break t;case Ke:r=16,s=null;break t}throw Error(P(130,e==null?e:typeof e,""))}return t=Jt(r,n,t,i),t.elementType=e,t.type=s,t.lanes=o,t}function zn(e,t,n,s){return e=Jt(7,e,s,t),e.lanes=n,e}function Fr(e,t,n,s){return e=Jt(22,e,s,t),e.elementType=Ph,e.lanes=n,e.stateNode={isHidden:!1},e}function cl(e,t,n){return e=Jt(6,e,null,t),e.lanes=n,e}function ul(e,t,n){return t=Jt(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function _v(e,t,n,s,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ya(0),this.expirationTimes=Ya(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ya(0),this.identifierPrefix=s,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Wc(e,t,n,s,i,o,r,l,c){return e=new _v(e,t,n,l,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=Jt(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:s,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Nc(o),e}function bv(e,t,n){var s=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:cs,key:s==null?null:""+s,children:e,containerInfo:t,implementation:n}}function bp(e){if(!e)return ln;e=e._reactInternals;t:{if(Wn(e)!==e||e.tag!==1)throw Error(P(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break t;case 1:if(zt(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break t}}t=t.return}while(t!==null);throw Error(P(171))}if(e.tag===1){var n=e.type;if(zt(n))return bf(e,n,t)}return t}function xp(e,t,n,s,i,o,r,l,c){return e=Wc(n,s,!0,e,i,o,r,l,c),e.context=bp(null),n=e.current,s=Tt(),i=on(n),o=Re(s,i),o.callback=t??null,nn(n,o,i),e.current.lanes=i,Wi(e,i,s),Ft(e,s),e}function Ir(e,t,n,s){var i=t.current,o=Tt(),r=on(i);return n=bp(n),t.context===null?t.context=n:t.pendingContext=n,t=Re(o,r),t.payload={element:e},s=s===void 0?null:s,s!==null&&(t.callback=s),e=nn(i,t,r),e!==null&&(de(e,i,r,o),Qo(e,i,r)),r}function Nr(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function kh(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function $c(e,t){kh(e,t),(e=e.alternate)&&kh(e,t)}function xv(){return null}var wp=typeof reportError=="function"?reportError:function(e){console.error(e)};function Uc(e){this._internalRoot=e}jr.prototype.render=Uc.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(P(409));Ir(e,t,null,null)};jr.prototype.unmount=Uc.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Vn(function(){Ir(null,e,null,null)}),t[Le]=null}};function jr(e){this._internalRoot=e}jr.prototype.unstable_scheduleHydration=function(e){if(e){var t=qh();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Xe.length&&t!==0&&t<Xe[n].priority;n++);Xe.splice(n,0,e),n===0&&tf(e)}};function Kc(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Br(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function Sh(){}function wv(e,t,n,s,i){if(i){if(typeof s=="function"){var o=s;s=function(){var u=Nr(r);o.call(u)}}var r=xp(t,s,e,0,null,!1,!1,"",Sh);return e._reactRootContainer=r,e[Le]=r.current,Li(e.nodeType===8?e.parentNode:e),Vn(),r}for(;i=e.lastChild;)e.removeChild(i);if(typeof s=="function"){var l=s;s=function(){var u=Nr(c);l.call(u)}}var c=Wc(e,0,!1,null,null,!1,!1,"",Sh);return e._reactRootContainer=c,e[Le]=c.current,Li(e.nodeType===8?e.parentNode:e),Vn(function(){Ir(t,c,n,s)}),c}function Vr(e,t,n,s,i){var o=n._reactRootContainer;if(o){var r=o;if(typeof i=="function"){var l=i;i=function(){var c=Nr(r);l.call(c)}}Ir(t,r,e,i)}else r=wv(n,t,e,i,s);return Nr(r)}Qh=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=mi(t.pendingLanes);n!==0&&(dc(t,n|1),Ft(t,lt()),!(F&6)&&(Os=lt()+500,dn()))}break;case 13:Vn(function(){var s=Ae(e,1);if(s!==null){var i=Tt();de(s,e,1,i)}}),$c(e,1)}};hc=function(e){if(e.tag===13){var t=Ae(e,134217728);if(t!==null){var n=Tt();de(t,e,134217728,n)}$c(e,134217728)}};Zh=function(e){if(e.tag===13){var t=on(e),n=Ae(e,t);if(n!==null){var s=Tt();de(n,e,t,s)}$c(e,t)}};qh=function(){return H};Jh=function(e,t){var n=H;try{return H=e,t()}finally{H=n}};Sl=function(e,t,n){switch(t){case"input":if(yl(e,n),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+t)+'][type="radio"]'),t=0;t<n.length;t++){var s=n[t];if(s!==e&&s.form===e.form){var i=Dr(s);if(!i)throw Error(P(90));Th(s),yl(s,i)}}}break;case"textarea":Rh(e,n);break;case"select":t=n.value,t!=null&&xs(e,!!n.multiple,t,!1)}};jh=jc;Bh=Vn;var kv={usingClientEntryPoint:!1,Events:[Ui,ps,Dr,Fh,Ih,jc]},di={findFiberByHostInstance:Rn,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Sv={bundleType:di.bundleType,version:di.version,rendererPackageName:di.rendererPackageName,rendererConfig:di.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Fe.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=Wh(e),e===null?null:e.stateNode},findFiberByHostInstance:di.findFiberByHostInstance||xv,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&(hi=__REACT_DEVTOOLS_GLOBAL_HOOK__,!hi.isDisabled&&hi.supportsFiber))try{Mr=hi.inject(Sv),be=hi}catch{}var hi;Gt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=kv;Gt.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Kc(t))throw Error(P(200));return bv(e,t,null,n)};Gt.createRoot=function(e,t){if(!Kc(e))throw Error(P(299));var n=!1,s="",i=wp;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(s=t.identifierPrefix),t.onRecoverableError!==void 0&&(i=t.onRecoverableError)),t=Wc(e,1,!1,null,null,n,!1,s,i),e[Le]=t.current,Li(e.nodeType===8?e.parentNode:e),new Uc(t)};Gt.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(P(188)):(e=Object.keys(e).join(","),Error(P(268,e)));return e=Wh(t),e=e===null?null:e.stateNode,e};Gt.flushSync=function(e){return Vn(e)};Gt.hydrate=function(e,t,n){if(!Br(t))throw Error(P(200));return Vr(null,e,t,!0,n)};Gt.hydrateRoot=function(e,t,n){if(!Kc(e))throw Error(P(405));var s=n!=null&&n.hydratedSources||null,i=!1,o="",r=wp;if(n!=null&&(n.unstable_strictMode===!0&&(i=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(r=n.onRecoverableError)),t=xp(t,null,e,1,n??null,i,!1,o,r),e[Le]=t.current,Li(e),s)for(e=0;e<s.length;e++)n=s[e],i=n._getVersion,i=i(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,i]:t.mutableSourceEagerHydrationData.push(n,i);return new jr(t)};Gt.render=function(e,t,n){if(!Br(t))throw Error(P(200));return Vr(null,e,t,!1,n)};Gt.unmountComponentAtNode=function(e){if(!Br(e))throw Error(P(40));return e._reactRootContainer?(Vn(function(){Vr(null,null,e,!1,function(){e._reactRootContainer=null,e[Le]=null})}),!0):!1};Gt.unstable_batchedUpdates=jc;Gt.unstable_renderSubtreeIntoContainer=function(e,t,n,s){if(!Br(n))throw Error(P(200));if(e==null||e._reactInternals===void 0)throw Error(P(38));return Vr(e,t,n,!1,s)};Gt.version="18.3.1-next-f1338f8080-20240426"});var Np=Me((sw,Cp)=>{"use strict";function Sp(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Sp)}catch(e){console.error(e)}}Sp(),Cp.exports=kp()});var Pp=Me(Yc=>{"use strict";var Mp=Np();Yc.createRoot=Mp.createRoot,Yc.hydrateRoot=Mp.hydrateRoot;var iw});var Mg=Me(Ca=>{"use strict";var Zx=rs(),qx=Symbol.for("react.element"),Jx=Symbol.for("react.fragment"),t1=Object.prototype.hasOwnProperty,e1=Zx.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n1={key:!0,ref:!0,__self:!0,__source:!0};function Ng(e,t,n){var s,i={},o=null,r=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(r=t.ref);for(s in t)t1.call(t,s)&&!n1.hasOwnProperty(s)&&(i[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)i[s]===void 0&&(i[s]=t[s]);return{$$typeof:qx,type:e,key:o,ref:r,props:i,_owner:e1.current}}Ca.Fragment=Jx;Ca.jsx=Ng;Ca.jsxs=Ng});var es=Me((Fw,Pg)=>{"use strict";Pg.exports=Mg()});var Jg=me(rs(),1),t0=me(Pp(),1);var j=me(rs(),1);function N(e){return e<1024?`${e} B`:e<1024*1024?`${(e/1024).toFixed(1)} KB`:e<1024*1024*1024?`${(e/(1024*1024)).toFixed(1)} MB`:`${(e/(1024*1024*1024)).toFixed(2)} GB`}function k(e){return e.toLocaleString("en-US")}function zs(e){return`${e.toLocaleString("en-US")} B`}function we(e,t){return t>0?e/t*100:0}function Ep(e){return e<=0?"":new Date(e).toISOString().replace(/\.\d{3}Z$/,"Z")}function Tp(e){if(!e)return null;if(e==="<boot>")return"<boot>";let t=e.lastIndexOf("/");return t>=0?e.slice(t+1):e}var Mt=me(rs(),1);function Gi(e){return e+.5|0}var hn=(e,t,n)=>Math.max(Math.min(e,n),t);function Yi(e){return hn(Gi(e*2.55),0,255)}function fn(e){return hn(Gi(e*255),0,255)}function Ie(e){return hn(Gi(e/2.55)/100,0,1)}function Dp(e){return hn(Gi(e*100),0,100)}var se={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},Gc=[..."0123456789ABCDEF"],Cv=e=>Gc[e&15],Nv=e=>Gc[(e&240)>>4]+Gc[e&15],Hr=e=>(e&240)>>4===(e&15),Mv=e=>Hr(e.r)&&Hr(e.g)&&Hr(e.b)&&Hr(e.a);function Pv(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&se[e[1]]*17,g:255&se[e[2]]*17,b:255&se[e[3]]*17,a:t===5?se[e[4]]*17:255}:(t===7||t===9)&&(n={r:se[e[1]]<<4|se[e[2]],g:se[e[3]]<<4|se[e[4]],b:se[e[5]]<<4|se[e[6]],a:t===9?se[e[7]]<<4|se[e[8]]:255})),n}var Ev=(e,t)=>e<255?t(e):"";function Tv(e){var t=Mv(e)?Cv:Nv;return e?"#"+t(e.r)+t(e.g)+t(e.b)+Ev(e.a,t):void 0}var Dv=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ap(e,t,n){let s=t*Math.min(n,1-n),i=(o,r=(o+e/30)%12)=>n-s*Math.max(Math.min(r-3,9-r,1),-1);return[i(0),i(8),i(4)]}function Rv(e,t,n){let s=(i,o=(i+e/60)%6)=>n-n*t*Math.max(Math.min(o,4-o,1),0);return[s(5),s(3),s(1)]}function Ov(e,t,n){let s=Ap(e,1,.5),i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)s[i]*=1-t-n,s[i]+=t;return s}function Lv(e,t,n,s,i){return e===i?(t-n)/s+(t<n?6:0):t===i?(n-e)/s+2:(e-t)/s+4}function Qc(e){let n=e.r/255,s=e.g/255,i=e.b/255,o=Math.max(n,s,i),r=Math.min(n,s,i),l=(o+r)/2,c,u,d;return o!==r&&(d=o-r,u=l>.5?d/(2-o-r):d/(o+r),c=Lv(n,s,i,d,o),c=c*60+.5),[c|0,u||0,l]}function Zc(e,t,n,s){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,s)).map(fn)}function qc(e,t,n){return Zc(Ap,e,t,n)}function Av(e,t,n){return Zc(Ov,e,t,n)}function zv(e,t,n){return Zc(Rv,e,t,n)}function zp(e){return(e%360+360)%360}function Fv(e){let t=Dv.exec(e),n=255,s;if(!t)return;t[5]!==s&&(n=t[6]?Yi(+t[5]):fn(+t[5]));let i=zp(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?s=Av(i,o,r):t[1]==="hsv"?s=zv(i,o,r):s=qc(i,o,r),{r:s[0],g:s[1],b:s[2],a:n}}function Iv(e,t){var n=Qc(e);n[0]=zp(n[0]+t),n=qc(n),e.r=n[0],e.g=n[1],e.b=n[2]}function jv(e){if(!e)return;let t=Qc(e),n=t[0],s=Dp(t[1]),i=Dp(t[2]);return e.a<255?`hsla(${n}, ${s}%, ${i}%, ${Ie(e.a)})`:`hsl(${n}, ${s}%, ${i}%)`}var Rp={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"},Op={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",KocTate:"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 Bv(){let e={},t=Object.keys(Op),n=Object.keys(Rp),s,i,o,r,l;for(s=0;s<t.length;s++){for(r=l=t[s],i=0;i<n.length;i++)o=n[i],l=l.replace(o,Rp[o]);o=parseInt(Op[r],16),e[l]=[o>>16&255,o>>8&255,o&255]}return e}var Wr;function Vv(e){Wr||(Wr=Bv(),Wr.transparent=[0,0,0,0]);let t=Wr[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var Hv=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function Wv(e){let t=Hv.exec(e),n=255,s,i,o;if(t){if(t[7]!==s){let r=+t[7];n=t[8]?Yi(r):hn(r*255,0,255)}return s=+t[1],i=+t[3],o=+t[5],s=255&(t[2]?Yi(s):hn(s,0,255)),i=255&(t[4]?Yi(i):hn(i,0,255)),o=255&(t[6]?Yi(o):hn(o,0,255)),{r:s,g:i,b:o,a:n}}}function $v(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Ie(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}var Xc=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Fs=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function Uv(e,t,n){let s=Fs(Ie(e.r)),i=Fs(Ie(e.g)),o=Fs(Ie(e.b));return{r:fn(Xc(s+n*(Fs(Ie(t.r))-s))),g:fn(Xc(i+n*(Fs(Ie(t.g))-i))),b:fn(Xc(o+n*(Fs(Ie(t.b))-o))),a:e.a+n*(t.a-e.a)}}function $r(e,t,n){if(e){let s=Qc(e);s[t]=Math.max(0,Math.min(s[t]+s[t]*n,t===0?360:1)),s=qc(s),e.r=s[0],e.g=s[1],e.b=s[2]}}function Fp(e,t){return e&&Object.assign(t||{},e)}function Lp(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=fn(e[3]))):(t=Fp(e,{r:0,g:0,b:0,a:1}),t.a=fn(t.a)),t}function Kv(e){return e.charAt(0)==="r"?Wv(e):Fv(e)}var Xi=class e{constructor(t){if(t instanceof e)return t;let n=typeof t,s;n==="object"?s=Lp(t):n==="string"&&(s=Pv(t)||Vv(t)||Kv(t)),this._rgb=s,this._valid=!!s}get valid(){return this._valid}get rgb(){var t=Fp(this._rgb);return t&&(t.a=Ie(t.a)),t}set rgb(t){this._rgb=Lp(t)}rgbString(){return this._valid?$v(this._rgb):void 0}hexString(){return this._valid?Tv(this._rgb):void 0}hslString(){return this._valid?jv(this._rgb):void 0}mix(t,n){if(t){let s=this.rgb,i=t.rgb,o,r=n===o?.5:n,l=2*r-1,c=s.a-i.a,u=((l*c===-1?l:(l+c)/(1+l*c))+1)/2;o=1-u,s.r=255&u*s.r+o*i.r+.5,s.g=255&u*s.g+o*i.g+.5,s.b=255&u*s.b+o*i.b+.5,s.a=r*s.a+(1-r)*i.a,this.rgb=s}return this}interpolate(t,n){return t&&(this._rgb=Uv(this._rgb,t._rgb,n)),this}clone(){return new e(this.rgb)}alpha(t){return this._rgb.a=fn(t),this}clearer(t){let n=this._rgb;return n.a*=1-t,this}greyscale(){let t=this._rgb,n=Gi(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){let n=this._rgb;return n.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return $r(this._rgb,2,t),this}darken(t){return $r(this._rgb,2,-t),this}saturate(t){return $r(this._rgb,1,t),this}desaturate(t){return $r(this._rgb,1,-t),this}rotate(t){return Iv(this._rgb,t),this}};function ke(){}var Up=(()=>{let e=0;return()=>e++})();function W(e){return e==null}function q(e){if(Array.isArray&&Array.isArray(e))return!0;let t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function z(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function ht(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function It(e,t){return ht(e)?e:t}function I(e,t){return typeof e>"u"?t:e}var Kp=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,nu=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function U(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function B(e,t,n,s){let i,o,r;if(q(e))if(o=e.length,s)for(i=o-1;i>=0;i--)t.call(n,e[i],i);else for(i=0;i<o;i++)t.call(n,e[i],i);else if(z(e))for(r=Object.keys(e),o=r.length,i=0;i<o;i++)t.call(n,e[r[i]],r[i])}function qi(e,t){let n,s,i,o;if(!e||!t||e.length!==t.length)return!1;for(n=0,s=e.length;n<s;++n)if(i=e[n],o=t[n],i.datasetIndex!==o.datasetIndex||i.index!==o.index)return!1;return!0}function Yr(e){if(q(e))return e.map(Yr);if(z(e)){let t=Object.create(null),n=Object.keys(e),s=n.length,i=0;for(;i<s;++i)t[n[i]]=Yr(e[n[i]]);return t}return e}function Yp(e){return["__proto__","prototype","constructor"].indexOf(e)===-1}function Yv(e,t,n,s){if(!Yp(e))return;let i=t[e],o=n[e];z(i)&&z(o)?js(i,o,s):t[e]=Yr(o)}function js(e,t,n){let s=q(t)?t:[t],i=s.length;if(!z(e))return e;n=n||{};let o=n.merger||Yv,r;for(let l=0;l<i;++l){if(r=s[l],!z(r))continue;let c=Object.keys(r);for(let u=0,d=c.length;u<d;++u)o(c[u],e,r,n)}return e}function Bs(e,t){return js(e,t,{merger:Xv})}function Xv(e,t,n){if(!Yp(e))return;let s=t[e],i=n[e];z(s)&&z(i)?Bs(s,i):Object.prototype.hasOwnProperty.call(t,e)||(t[e]=Yr(i))}var Ip={"":e=>e,x:e=>e.x,y:e=>e.y};function Gv(e){let t=e.split("."),n=[],s="";for(let i of t)s+=i,s.endsWith("\\")?s=s.slice(0,-1)+".":(n.push(s),s="");return n}function Qv(e){let t=Gv(e);return n=>{for(let s of t){if(s==="")break;n=n&&n[s]}return n}}function pn(e,t){return(Ip[t]||(Ip[t]=Qv(t)))(e)}function Qr(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Vs=e=>typeof e<"u",je=e=>typeof e=="function",su=(e,t)=>{if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0};function Xp(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}var rt=Math.PI,J=2*rt,cw=J+rt,Xr=Number.POSITIVE_INFINITY,Zv=rt/180,ot=rt/2,$n=rt/4,jp=rt*2/3,Be=Math.log10,Ve=Math.sign;function Ji(e,t,n){return Math.abs(e-t)<n}function iu(e){let t=Math.round(e);e=Ji(e,t,e/1e3)?t:e;let n=Math.pow(10,Math.floor(Be(e))),s=e/n;return(s<=1?1:s<=2?2:s<=5?5:10)*n}function Gp(e){let t=[],n=Math.sqrt(e),s;for(s=1;s<n;s++)e%s===0&&(t.push(s),t.push(e/s));return n===(n|0)&&t.push(n),t.sort((i,o)=>i-o).pop(),t}function to(e){return!isNaN(parseFloat(e))&&isFinite(e)}function Qp(e,t){let n=Math.round(e);return n-t<=e&&n+t>=e}function ou(e,t,n){let s,i,o;for(s=0,i=e.length;s<i;s++)o=e[s][n],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function pe(e){return e*(rt/180)}function Zr(e){return e*(180/rt)}function ru(e){if(!ht(e))return;let t=1,n=0;for(;Math.round(e*t)/t!==e;)t*=10,n++;return n}function au(e,t){let n=t.x-e.x,s=t.y-e.y,i=Math.sqrt(n*n+s*s),o=Math.atan2(s,n);return o<-.5*rt&&(o+=J),{angle:o,distance:i}}function Zp(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))}function fe(e){return(e%J+J)%J}function eo(e,t,n,s){let i=fe(e),o=fe(t),r=fe(n),l=fe(o-i),c=fe(r-i),u=fe(i-o),d=fe(i-r);return i===o||i===r||s&&o===r||l>c&&u<d}function Rt(e,t,n){return Math.max(t,Math.min(n,e))}function qp(e){return Rt(e,-32768,32767)}function mn(e,t,n,s=1e-6){return e>=Math.min(t,n)-s&&e<=Math.max(t,n)+s}function qr(e,t,n){n=n||(r=>e[r]<t);let s=e.length-1,i=0,o;for(;s-i>1;)o=i+s>>1,n(o)?i=o:s=o;return{lo:i,hi:s}}var Jr=(e,t,n,s)=>qr(e,n,s?i=>{let o=e[i][t];return o<n||o===n&&e[i+1][t]===n}:i=>e[i][t]<n),Jp=(e,t,n)=>qr(e,n,s=>e[s][t]>=n);function tm(e,t,n){let s=0,i=e.length;for(;s<i&&e[s]<t;)s++;for(;i>s&&e[i-1]>n;)i--;return s>0||i<e.length?e.slice(s,i):e}var em=["push","pop","shift","splice","unshift"];function nm(e,t){if(e._chartjs){e._chartjs.listeners.push(t);return}Object.defineProperty(e,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),em.forEach(n=>{let s="_onData"+Qr(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...o){let r=i.apply(this,o);return e._chartjs.listeners.forEach(l=>{typeof l[s]=="function"&&l[s](...o)}),r}})})}function lu(e,t){let n=e._chartjs;if(!n)return;let s=n.listeners,i=s.indexOf(t);i!==-1&&s.splice(i,1),!(s.length>0)&&(em.forEach(o=>{delete e[o]}),delete e._chartjs)}function cu(e){let t=new Set(e);return t.size===e.length?e:Array.from(t)}var uu=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function du(e,t){let n=[],s=!1;return function(...i){n=i,s||(s=!0,uu.call(window,()=>{s=!1,e.apply(t,n)}))}}function sm(e,t){let n;return function(...s){return t?(clearTimeout(n),n=setTimeout(e,t,s)):e.apply(this,s),t}}var hu=e=>e==="start"?"left":e==="end"?"right":"center",jt=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,im=(e,t,n,s)=>e===(s?"left":"right")?n:e==="center"?(t+n)/2:t;var Ur=e=>e===0||e===1,Bp=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*J/n)),Vp=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*J/n)+1,Is={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*ot)+1,easeOutSine:e=>Math.sin(e*ot),easeInOutSine:e=>-.5*(Math.cos(rt*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=>Ur(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=>Ur(e)?e:Bp(e,.075,.3),easeOutElastic:e=>Ur(e)?e:Vp(e,.075,.3),easeInOutElastic(e){return Ur(e)?e:e<.5?.5*Bp(e*2,.1125,.45):.5+.5*Vp(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-Is.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?Is.easeInBounce(e*2)*.5:Is.easeOutBounce(e*2-1)*.5+.5};function om(e){if(e&&typeof e=="object"){let t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function fu(e){return om(e)?e:new Xi(e)}function Jc(e){return om(e)?e:new Xi(e).saturate(.5).darken(.1).hexString()}var qv=["x","y","borderWidth","radius","tension"],Jv=["color","borderColor","backgroundColor"];function t_(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:Jv},numbers:{type:"number",properties:qv}}),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 e_(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Hp=new Map;function n_(e,t){t=t||{};let n=e+JSON.stringify(t),s=Hp.get(n);return s||(s=new Intl.NumberFormat(e,t),Hp.set(n,s)),s}function no(e,t,n){return n_(t,n).format(e)}var rm={values(e){return q(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";let s=this.chart.options.locale,i,o=e;if(n.length>1){let u=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(u<1e-4||u>1e15)&&(i="scientific"),o=s_(e,n)}let r=Be(Math.abs(o)),l=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),c={notation:i,minimumFractionDigits:l,maximumFractionDigits:l};return Object.assign(c,this.options.ticks.format),no(e,s,c)},logarithmic(e,t,n){if(e===0)return"0";let s=n[t].significand||e/Math.pow(10,Math.floor(Be(e)));return[1,2,3,5,10,15].includes(s)||t>.8*n.length?rm.numeric.call(this,e,t,n):""}};function s_(e,t){let n=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(n)>=1&&e!==Math.floor(e)&&(n=e-Math.floor(e)),n}var so={formatters:rm};function i_(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,n)=>n.lineWidth,tickColor:(t,n)=>n.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:so.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"})}var gn=Object.create(null),ta=Object.create(null);function Qi(e,t){if(!t)return e;let n=t.split(".");for(let s=0,i=n.length;s<i;++s){let o=n[s];e=e[o]||(e[o]=Object.create(null))}return e}function tu(e,t,n){return typeof t=="string"?js(Qi(e,t),n):js(Qi(e,""),t)}var eu=class{constructor(t,n){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={},this.hoverBackgroundColor=(s,i)=>Jc(i.backgroundColor),this.hoverBorderColor=(s,i)=>Jc(i.borderColor),this.hoverColor=(s,i)=>Jc(i.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(n)}set(t,n){return tu(this,t,n)}get(t){return Qi(this,t)}describe(t,n){return tu(ta,t,n)}override(t,n){return tu(gn,t,n)}route(t,n,s,i){let o=Qi(this,t),r=Qi(this,s),l="_"+n;Object.defineProperties(o,{[l]:{value:o[n],writable:!0},[n]:{enumerable:!0,get(){let c=this[l],u=r[i];return z(c)?Object.assign({},u,c):I(c,u)},set(c){this[l]=c}}})}apply(t){t.forEach(n=>n(this))}},st=new eu({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[t_,e_,i_]);function o_(e){return!e||W(e.size)||W(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Zi(e,t,n,s,i){let o=t[i];return o||(o=t[i]=e.measureText(i).width,n.push(i)),o>s&&(s=o),s}function am(e,t,n,s){s=s||{};let i=s.data=s.data||{},o=s.garbageCollect=s.garbageCollect||[];s.font!==t&&(i=s.data={},o=s.garbageCollect=[],s.font=t),e.save(),e.font=t;let r=0,l=n.length,c,u,d,h,f;for(c=0;c<l;c++)if(h=n[c],h!=null&&!q(h))r=Zi(e,i,o,r,h);else if(q(h))for(u=0,d=h.length;u<d;u++)f=h[u],f!=null&&!q(f)&&(r=Zi(e,i,o,r,f));e.restore();let g=o.length/2;if(g>n.length){for(c=0;c<g;c++)delete i[o[c]];o.splice(0,g)}return r}function yn(e,t,n){let s=e.currentDevicePixelRatio,i=n!==0?Math.max(n/2,.5):0;return Math.round((t-i)*s)/s+i}function pu(e,t){!t&&!e||(t=t||e.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,e.width,e.height),t.restore())}function mu(e,t,n,s){gu(e,t,n,s,null)}function gu(e,t,n,s,i){let o,r,l,c,u,d,h,f,g=t.pointStyle,y=t.rotation,_=t.radius,b=(y||0)*Zv;if(g&&typeof g=="object"&&(o=g.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){e.save(),e.translate(n,s),e.rotate(b),e.drawImage(g,-g.width/2,-g.height/2,g.width,g.height),e.restore();return}if(!(isNaN(_)||_<=0)){switch(e.beginPath(),g){default:i?e.ellipse(n,s,i/2,_,0,0,J):e.arc(n,s,_,0,J),e.closePath();break;case"triangle":d=i?i/2:_,e.moveTo(n+Math.sin(b)*d,s-Math.cos(b)*_),b+=jp,e.lineTo(n+Math.sin(b)*d,s-Math.cos(b)*_),b+=jp,e.lineTo(n+Math.sin(b)*d,s-Math.cos(b)*_),e.closePath();break;case"rectRounded":u=_*.516,c=_-u,r=Math.cos(b+$n)*c,h=Math.cos(b+$n)*(i?i/2-u:c),l=Math.sin(b+$n)*c,f=Math.sin(b+$n)*(i?i/2-u:c),e.arc(n-h,s-l,u,b-rt,b-ot),e.arc(n+f,s-r,u,b-ot,b),e.arc(n+h,s+l,u,b,b+ot),e.arc(n-f,s+r,u,b+ot,b+rt),e.closePath();break;case"rect":if(!y){c=Math.SQRT1_2*_,d=i?i/2:c,e.rect(n-d,s-c,2*d,2*c);break}b+=$n;case"rectRot":h=Math.cos(b)*(i?i/2:_),r=Math.cos(b)*_,l=Math.sin(b)*_,f=Math.sin(b)*(i?i/2:_),e.moveTo(n-h,s-l),e.lineTo(n+f,s-r),e.lineTo(n+h,s+l),e.lineTo(n-f,s+r),e.closePath();break;case"crossRot":b+=$n;case"cross":h=Math.cos(b)*(i?i/2:_),r=Math.cos(b)*_,l=Math.sin(b)*_,f=Math.sin(b)*(i?i/2:_),e.moveTo(n-h,s-l),e.lineTo(n+h,s+l),e.moveTo(n+f,s-r),e.lineTo(n-f,s+r);break;case"star":h=Math.cos(b)*(i?i/2:_),r=Math.cos(b)*_,l=Math.sin(b)*_,f=Math.sin(b)*(i?i/2:_),e.moveTo(n-h,s-l),e.lineTo(n+h,s+l),e.moveTo(n+f,s-r),e.lineTo(n-f,s+r),b+=$n,h=Math.cos(b)*(i?i/2:_),r=Math.cos(b)*_,l=Math.sin(b)*_,f=Math.sin(b)*(i?i/2:_),e.moveTo(n-h,s-l),e.lineTo(n+h,s+l),e.moveTo(n+f,s-r),e.lineTo(n-f,s+r);break;case"line":r=i?i/2:Math.cos(b)*_,l=Math.sin(b)*_,e.moveTo(n-r,s-l),e.lineTo(n+r,s+l);break;case"dash":e.moveTo(n,s),e.lineTo(n+Math.cos(b)*(i?i/2:_),s+Math.sin(b)*_);break;case!1:e.closePath();break}e.fill(),t.borderWidth>0&&e.stroke()}}function Yn(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.x<t.right+n&&e.y>t.top-n&&e.y<t.bottom+n}function ea(e,t){e.save(),e.beginPath(),e.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),e.clip()}function na(e){e.restore()}function r_(e,t){t.translation&&e.translate(t.translation[0],t.translation[1]),W(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 a_(e,t,n,s,i){if(i.strikethrough||i.underline){let o=e.measureText(s),r=t-o.actualBoundingBoxLeft,l=t+o.actualBoundingBoxRight,c=n-o.actualBoundingBoxAscent,u=n+o.actualBoundingBoxDescent,d=i.strikethrough?(c+u)/2:u;e.strokeStyle=e.fillStyle,e.beginPath(),e.lineWidth=i.decorationWidth||2,e.moveTo(r,d),e.lineTo(l,d),e.stroke()}}function l_(e,t){let n=e.fillStyle;e.fillStyle=t.color,e.fillRect(t.left,t.top,t.width,t.height),e.fillStyle=n}function Xn(e,t,n,s,i,o={}){let r=q(t)?t:[t],l=o.strokeWidth>0&&o.strokeColor!=="",c,u;for(e.save(),e.font=i.string,r_(e,o),c=0;c<r.length;++c)u=r[c],o.backdrop&&l_(e,o.backdrop),l&&(o.strokeColor&&(e.strokeStyle=o.strokeColor),W(o.strokeWidth)||(e.lineWidth=o.strokeWidth),e.strokeText(u,n,s,o.maxWidth)),e.fillText(u,n,s,o.maxWidth),a_(e,n,s,u,o),s+=Number(i.lineHeight);e.restore()}function Hs(e,t){let{x:n,y:s,w:i,h:o,radius:r}=t;e.arc(n+r.topLeft,s+r.topLeft,r.topLeft,1.5*rt,rt,!0),e.lineTo(n,s+o-r.bottomLeft),e.arc(n+r.bottomLeft,s+o-r.bottomLeft,r.bottomLeft,rt,ot,!0),e.lineTo(n+i-r.bottomRight,s+o),e.arc(n+i-r.bottomRight,s+o-r.bottomRight,r.bottomRight,ot,0,!0),e.lineTo(n+i,s+r.topRight),e.arc(n+i-r.topRight,s+r.topRight,r.topRight,0,-ot,!0),e.lineTo(n+r.topLeft,s)}var c_=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,u_=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function d_(e,t){let n=(""+e).match(c_);if(!n||n[1]==="normal")return t*1.2;switch(e=+n[2],n[3]){case"px":return e;case"%":e/=100;break}return t*e}var h_=e=>+e||0;function sa(e,t){let n={},s=z(t),i=s?Object.keys(t):t,o=z(e)?s?r=>I(e[r],e[t[r]]):r=>e[r]:()=>e;for(let r of i)n[r]=h_(o(r));return n}function yu(e){return sa(e,{top:"y",right:"x",bottom:"y",left:"x"})}function vn(e){return sa(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Nt(e){let t=yu(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function mt(e,t){e=e||{},t=t||st.font;let n=I(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let s=I(e.style,t.style);s&&!(""+s).match(u_)&&(console.warn('Invalid font style specified: "'+s+'"'),s=void 0);let i={family:I(e.family,t.family),lineHeight:d_(I(e.lineHeight,t.lineHeight),n),size:n,style:s,weight:I(e.weight,t.weight),string:""};return i.string=o_(i),i}function io(e,t,n,s){let i=!0,o,r,l;for(o=0,r=e.length;o<r;++o)if(l=e[o],l!==void 0&&(t!==void 0&&typeof l=="function"&&(l=l(t),i=!1),n!==void 0&&q(l)&&(l=l[n%l.length],i=!1),l!==void 0))return s&&!i&&(s.cacheable=!1),l}function lm(e,t,n){let{min:s,max:i}=e,o=nu(t,(i-s)/2),r=(l,c)=>n&&l===0?0:l+c;return{min:r(s,-Math.abs(o)),max:r(i,o)}}function _n(e,t){return Object.assign(Object.create(e),t)}function ia(e,t=[""],n,s,i=()=>e[0]){let o=n||e;typeof s>"u"&&(s=dm("_fallback",e));let r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:o,_fallback:s,_getTarget:i,override:l=>ia([l,...e],t,o,s)};return new Proxy(r,{deleteProperty(l,c){return delete l[c],delete l._keys,delete e[0][c],!0},get(l,c){return cm(l,c,()=>b_(c,t,e,l))},getOwnPropertyDescriptor(l,c){return Reflect.getOwnPropertyDescriptor(l._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(l,c){return $p(l).includes(c)},ownKeys(l){return $p(l)},set(l,c,u){let d=l._storage||(l._storage=i());return l[c]=d[c]=u,delete l._keys,!0}})}function Kn(e,t,n,s){let i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:vu(e,s),setContext:o=>Kn(e,o,n,s),override:o=>Kn(e.override(o),t,n,s)};return new Proxy(i,{deleteProperty(o,r){return delete o[r],delete e[r],!0},get(o,r,l){return cm(o,r,()=>p_(o,r,l))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(e,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,r)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(o,r){return Reflect.has(e,r)},ownKeys(){return Reflect.ownKeys(e)},set(o,r,l){return e[r]=l,delete o[r],!0}})}function vu(e,t={scriptable:!0,indexable:!0}){let{_scriptable:n=t.scriptable,_indexable:s=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:s,isScriptable:je(n)?n:()=>n,isIndexable:je(s)?s:()=>s}}var f_=(e,t)=>e?e+Qr(t):t,_u=(e,t)=>z(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function cm(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];let s=n();return e[t]=s,s}function p_(e,t,n){let{_proxy:s,_context:i,_subProxy:o,_descriptors:r}=e,l=s[t];return je(l)&&r.isScriptable(t)&&(l=m_(t,l,e,n)),q(l)&&l.length&&(l=g_(t,l,e,r.isIndexable)),_u(t,l)&&(l=Kn(l,i,o&&o[t],r)),l}function m_(e,t,n,s){let{_proxy:i,_context:o,_subProxy:r,_stack:l}=n;if(l.has(e))throw new Error("Recursion detected: "+Array.from(l).join("->")+"->"+e);l.add(e);let c=t(o,r||s);return l.delete(e),_u(e,c)&&(c=bu(i._scopes,i,e,c)),c}function g_(e,t,n,s){let{_proxy:i,_context:o,_subProxy:r,_descriptors:l}=n;if(typeof o.index<"u"&&s(e))return t[o.index%t.length];if(z(t[0])){let c=t,u=i._scopes.filter(d=>d!==c);t=[];for(let d of c){let h=bu(u,i,e,d);t.push(Kn(h,o,r&&r[e],l))}}return t}function um(e,t,n){return je(e)?e(t,n):e}var y_=(e,t)=>e===!0?t:typeof e=="string"?pn(t,e):void 0;function v_(e,t,n,s,i){for(let o of t){let r=y_(n,o);if(r){e.add(r);let l=um(r._fallback,n,i);if(typeof l<"u"&&l!==n&&l!==s)return l}else if(r===!1&&typeof s<"u"&&n!==s)return null}return!1}function bu(e,t,n,s){let i=t._rootScopes,o=um(t._fallback,n,s),r=[...e,...i],l=new Set;l.add(s);let c=Wp(l,r,n,o||n,s);return c===null||typeof o<"u"&&o!==n&&(c=Wp(l,r,o,c,s),c===null)?!1:ia(Array.from(l),[""],i,o,()=>__(t,n,s))}function Wp(e,t,n,s,i){for(;n;)n=v_(e,t,n,s,i);return n}function __(e,t,n){let s=e._getTarget();t in s||(s[t]={});let i=s[t];return q(i)&&z(n)?n:i||{}}function b_(e,t,n,s){let i;for(let o of t)if(i=dm(f_(o,e),n),typeof i<"u")return _u(e,i)?bu(n,s,e,i):i}function dm(e,t){for(let n of t){if(!n)continue;let s=n[e];if(typeof s<"u")return s}}function $p(e){let t=e._keys;return t||(t=e._keys=x_(e._scopes)),t}function x_(e){let t=new Set;for(let n of e)for(let s of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(s);return Array.from(t)}var uw=Number.EPSILON||1e-14;function oa(){return typeof window<"u"&&typeof document<"u"}function ra(e){let t=e.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function Gr(e,t,n){let s;return typeof e=="string"?(s=parseInt(e,10),e.indexOf("%")!==-1&&(s=s/100*t.parentNode[n])):s=e,s}var aa=e=>e.ownerDocument.defaultView.getComputedStyle(e,null);function w_(e,t){return aa(e).getPropertyValue(t)}var k_=["top","right","bottom","left"];function Un(e,t,n){let s={};n=n?"-"+n:"";for(let i=0;i<4;i++){let o=k_[i];s[o]=parseFloat(e[t+"-"+o+n])||0}return s.width=s.left+s.right,s.height=s.top+s.bottom,s}var S_=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function C_(e,t){let n=e.touches,s=n&&n.length?n[0]:e,{offsetX:i,offsetY:o}=s,r=!1,l,c;if(S_(i,o,e.target))l=i,c=o;else{let u=t.getBoundingClientRect();l=s.clientX-u.left,c=s.clientY-u.top,r=!0}return{x:l,y:c,box:r}}function bn(e,t){if("native"in e)return e;let{canvas:n,currentDevicePixelRatio:s}=t,i=aa(n),o=i.boxSizing==="border-box",r=Un(i,"padding"),l=Un(i,"border","width"),{x:c,y:u,box:d}=C_(e,n),h=r.left+(d&&l.left),f=r.top+(d&&l.top),{width:g,height:y}=t;return o&&(g-=r.width+l.width,y-=r.height+l.height),{x:Math.round((c-h)/g*n.width/s),y:Math.round((u-f)/y*n.height/s)}}function N_(e,t,n){let s,i;if(t===void 0||n===void 0){let o=e&&ra(e);if(!o)t=e.clientWidth,n=e.clientHeight;else{let r=o.getBoundingClientRect(),l=aa(o),c=Un(l,"border","width"),u=Un(l,"padding");t=r.width-u.width-c.width,n=r.height-u.height-c.height,s=Gr(l.maxWidth,o,"clientWidth"),i=Gr(l.maxHeight,o,"clientHeight")}}return{width:t,height:n,maxWidth:s||Xr,maxHeight:i||Xr}}var Kr=e=>Math.round(e*10)/10;function hm(e,t,n,s){let i=aa(e),o=Un(i,"margin"),r=Gr(i.maxWidth,e,"clientWidth")||Xr,l=Gr(i.maxHeight,e,"clientHeight")||Xr,c=N_(e,t,n),{width:u,height:d}=c;if(i.boxSizing==="content-box"){let f=Un(i,"border","width"),g=Un(i,"padding");u-=g.width+f.width,d-=g.height+f.height}return u=Math.max(0,u-o.width),d=Math.max(0,s?u/s:d-o.height),u=Kr(Math.min(u,r,c.maxWidth)),d=Kr(Math.min(d,l,c.maxHeight)),u&&!d&&(d=Kr(u/2)),(t!==void 0||n!==void 0)&&s&&c.height&&d>c.height&&(d=c.height,u=Kr(Math.floor(d*s))),{width:u,height:d}}function xu(e,t,n){let s=t||1,i=Math.floor(e.height*s),o=Math.floor(e.width*s);e.height=Math.floor(e.height),e.width=Math.floor(e.width);let r=e.canvas;return r.style&&(n||!r.style.height&&!r.style.width)&&(r.style.height=`${e.height}px`,r.style.width=`${e.width}px`),e.currentDevicePixelRatio!==s||r.height!==i||r.width!==o?(e.currentDevicePixelRatio=s,r.height=i,r.width=o,e.ctx.setTransform(s,0,0,s,0,0),!0):!1}var fm=function(){let e=!1;try{let t={get passive(){return e=!0,!1}};oa()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function wu(e,t){let n=w_(e,t),s=n&&n.match(/^(\d+)(\.\d+)?px$/);return s?+s[1]:void 0}var M_=function(e,t){return{x(n){return e+e+t-n},setWidth(n){t=n},textAlign(n){return n==="center"?n:n==="right"?"left":"right"},xPlus(n,s){return n-s},leftForLtr(n,s){return n-s}}},P_=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function Gn(e,t,n){return e?M_(t,n):P_()}function ku(e,t){let n,s;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,s=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=s)}function Su(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}var Lu=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,n,s,i){let o=n.listeners[i],r=n.duration;o.forEach(l=>l({chart:t,initial:n.initial,numSteps:r,currentStep:Math.min(s-n.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=uu.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((s,i)=>{if(!s.running||!s.items.length)return;let o=s.items,r=o.length-1,l=!1,c;for(;r>=0;--r)c=o[r],c._active?(c._total>s.duration&&(s.duration=c._total),c.tick(t),l=!0):(o[r]=o[o.length-1],o.pop());l&&(i.draw(),this._notify(i,s,t,"progress")),o.length||(s.running=!1,this._notify(i,s,t,"complete"),s.initial=!1),n+=o.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){let n=this._charts,s=n.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,s)),s}listen(t,n,s){this._getAnims(t).listeners[n].push(s)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){let n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((s,i)=>Math.max(s,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;let n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){let n=this._charts.get(t);if(!n||!n.items.length)return;let s=n.items,i=s.length-1;for(;i>=0;--i)s[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}},He=new Lu,pm="transparent",E_={boolean(e,t,n){return n>.5?t:e},color(e,t,n){let s=fu(e||pm),i=s.valid&&fu(t||pm);return i&&i.valid?i.mix(s,n).hexString():t},number(e,t,n){return e+(t-e)*n}},Au=class{constructor(t,n,s,i){let o=n[s];i=io([t.to,i,o,t.from]);let r=io([t.from,o,i]);this._active=!0,this._fn=t.fn||E_[t.type||typeof r],this._easing=Is[t.easing]||Is.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=n,this._prop=s,this._from=r,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,s){if(this._active){this._notify(!1);let i=this._target[this._prop],o=s-this._start,r=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=io([t.to,n,i,t.from]),this._from=io([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let n=t-this._start,s=this._duration,i=this._prop,o=this._from,r=this._loop,l=this._to,c;if(this._active=o!==l&&(r||n<s),!this._active){this._target[i]=l,this._notify(!0);return}if(n<0){this._target[i]=o;return}c=n/s%2,c=r&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[i]=this._fn(o,l,c)}wait(){let t=this._promises||(this._promises=[]);return new Promise((n,s)=>{t.push({res:n,rej:s})})}_notify(t){let n=t?"res":"rej",s=this._promises||[];for(let i=0;i<s.length;i++)s[i][n]()}},va=class{constructor(t,n){this._chart=t,this._properties=new Map,this.configure(n)}configure(t){if(!z(t))return;let n=Object.keys(st.animation),s=this._properties;Object.getOwnPropertyNames(t).forEach(i=>{let o=t[i];if(!z(o))return;let r={};for(let l of n)r[l]=o[l];(q(o.properties)&&o.properties||[i]).forEach(l=>{(l===i||!s.has(l))&&s.set(l,r)})})}_animateOptions(t,n){let s=n.options,i=D_(t,s);if(!i)return[];let o=this._createAnimations(i,s);return s.$shared&&T_(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,n){let s=this._properties,i=[],o=t.$animations||(t.$animations={}),r=Object.keys(n),l=Date.now(),c;for(c=r.length-1;c>=0;--c){let u=r[c];if(u.charAt(0)==="$")continue;if(u==="options"){i.push(...this._animateOptions(t,n));continue}let d=n[u],h=o[u],f=s.get(u);if(h)if(f&&h.active()){h.update(f,d,l);continue}else h.cancel();if(!f||!f.duration){t[u]=d;continue}o[u]=h=new Au(f,t,u,d),i.push(h)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}let s=this._createAnimations(t,n);if(s.length)return He.add(this._chart,s),!0}};function T_(e,t){let n=[],s=Object.keys(t);for(let i=0;i<s.length;i++){let o=e[s[i]];o&&o.active()&&n.push(o.wait())}return Promise.all(n)}function D_(e,t){if(!t)return;let n=e.options;if(!n){e.options=t;return}return n.$shared&&(e.options=n=Object.assign({},n,{$shared:!1,$animations:{}})),n}function mm(e,t){let n=e&&e.options||{},s=n.reverse,i=n.min===void 0?t:0,o=n.max===void 0?t:0;return{start:s?o:i,end:s?i:o}}function R_(e,t,n){if(n===!1)return!1;let s=mm(e,n),i=mm(t,n);return{top:i.end,right:s.end,bottom:i.start,left:s.start}}function O_(e){let t,n,s,i;return z(e)?(t=e.top,n=e.right,s=e.bottom,i=e.left):t=n=s=i=e,{top:t,right:n,bottom:s,left:i,disabled:e===!1}}function ig(e,t){let n=[],s=e._getSortedDatasetMetas(t),i,o;for(i=0,o=s.length;i<o;++i)n.push(s[i].index);return n}function gm(e,t,n,s={}){let i=e.keys,o=s.mode==="single",r,l,c,u;if(t===null)return;let d=!1;for(r=0,l=i.length;r<l;++r){if(c=+i[r],c===n){if(d=!0,s.all)continue;break}u=e.values[c],ht(u)&&(o||t===0||Ve(t)===Ve(u))&&(t+=u)}return!d&&!s.all?0:t}function L_(e,t){let{iScale:n,vScale:s}=t,i=n.axis==="x"?"x":"y",o=s.axis==="x"?"x":"y",r=Object.keys(e),l=new Array(r.length),c,u,d;for(c=0,u=r.length;c<u;++c)d=r[c],l[c]={[i]:d,[o]:e[d]};return l}function Cu(e,t){let n=e&&e.options.stacked;return n||n===void 0&&t.stack!==void 0}function A_(e,t,n){return`${e.id}.${t.id}.${n.stack||n.type}`}function z_(e){let{min:t,max:n,minDefined:s,maxDefined:i}=e.getUserBounds();return{min:s?t:Number.NEGATIVE_INFINITY,max:i?n:Number.POSITIVE_INFINITY}}function F_(e,t,n){let s=e[t]||(e[t]={});return s[n]||(s[n]={})}function ym(e,t,n,s){for(let i of t.getMatchingVisibleMetas(s).reverse()){let o=e[i.index];if(n&&o>0||!n&&o<0)return i.index}return null}function vm(e,t){let{chart:n,_cachedMeta:s}=e,i=n._stacks||(n._stacks={}),{iScale:o,vScale:r,index:l}=s,c=o.axis,u=r.axis,d=A_(o,r,s),h=t.length,f;for(let g=0;g<h;++g){let y=t[g],{[c]:_,[u]:b}=y,p=y._stacks||(y._stacks={});f=p[u]=F_(i,d,_),f[l]=b,f._top=ym(f,r,!0,s.type),f._bottom=ym(f,r,!1,s.type);let m=f._visualValues||(f._visualValues={});m[l]=b}}function Nu(e,t){let n=e.scales;return Object.keys(n).filter(s=>n[s].axis===t).shift()}function I_(e,t){return _n(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function j_(e,t,n){return _n(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function oo(e,t){let n=e.controller.index,s=e.vScale&&e.vScale.axis;if(s){t=t||e._parsed;for(let i of t){let o=i._stacks;if(!o||o[s]===void 0||o[s][n]===void 0)return;delete o[s][n],o[s]._visualValues!==void 0&&o[s]._visualValues[n]!==void 0&&delete o[s]._visualValues[n]}}}var Mu=e=>e==="reset"||e==="none",_m=(e,t)=>t?e:Object.assign({},e),B_=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:ig(n,!0),values:null},kn=class{constructor(t,n){this.chart=t,this._ctx=t.ctx,this.index=n,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(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Cu(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&&oo(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,n=this._cachedMeta,s=this.getDataset(),i=(h,f,g,y)=>h==="x"?f:h==="r"?y:g,o=n.xAxisID=I(s.xAxisID,Nu(t,"x")),r=n.yAxisID=I(s.yAxisID,Nu(t,"y")),l=n.rAxisID=I(s.rAxisID,Nu(t,"r")),c=n.indexAxis,u=n.iAxisID=i(c,o,r,l),d=n.vAxisID=i(c,r,o,l);n.xScale=this.getScaleForId(o),n.yScale=this.getScaleForId(r),n.rScale=this.getScaleForId(l),n.iScale=this.getScaleForId(u),n.vScale=this.getScaleForId(d)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&lu(this._data,this),t._stacked&&oo(t)}_dataCheck(){let t=this.getDataset(),n=t.data||(t.data=[]),s=this._data;if(z(n)){let i=this._cachedMeta;this._data=L_(n,i)}else if(s!==n){if(s){lu(s,this);let i=this._cachedMeta;oo(i),i._parsed=[]}n&&Object.isExtensible(n)&&nm(n,this),this._syncList=[],this._data=n}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let n=this._cachedMeta,s=this.getDataset(),i=!1;this._dataCheck();let o=n._stacked;n._stacked=Cu(n.vScale,n),n.stack!==s.stack&&(i=!0,oo(n),n.stack=s.stack),this._resyncElements(t),(i||o!==n._stacked)&&(vm(this,n._parsed),n._stacked=Cu(n.vScale,n))}configure(){let t=this.chart.config,n=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){let{_cachedMeta:s,_data:i}=this,{iScale:o,_stacked:r}=s,l=o.axis,c=t===0&&n===i.length?!0:s._sorted,u=t>0&&s._parsed[t-1],d,h,f;if(this._parsing===!1)s._parsed=i,s._sorted=!0,f=i;else{q(i[t])?f=this.parseArrayData(s,i,t,n):z(i[t])?f=this.parseObjectData(s,i,t,n):f=this.parsePrimitiveData(s,i,t,n);let g=()=>h[l]===null||u&&h[l]<u[l];for(d=0;d<n;++d)s._parsed[d+t]=h=f[d],c&&(g()&&(c=!1),u=h);s._sorted=c}r&&vm(this,f)}parsePrimitiveData(t,n,s,i){let{iScale:o,vScale:r}=t,l=o.axis,c=r.axis,u=o.getLabels(),d=o===r,h=new Array(i),f,g,y;for(f=0,g=i;f<g;++f)y=f+s,h[f]={[l]:d||o.parse(u[y],y),[c]:r.parse(n[y],y)};return h}parseArrayData(t,n,s,i){let{xScale:o,yScale:r}=t,l=new Array(i),c,u,d,h;for(c=0,u=i;c<u;++c)d=c+s,h=n[d],l[c]={x:o.parse(h[0],d),y:r.parse(h[1],d)};return l}parseObjectData(t,n,s,i){let{xScale:o,yScale:r}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u=new Array(i),d,h,f,g;for(d=0,h=i;d<h;++d)f=d+s,g=n[f],u[d]={x:o.parse(pn(g,l),f),y:r.parse(pn(g,c),f)};return u}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,n,s){let i=this.chart,o=this._cachedMeta,r=n[t.axis],l={keys:ig(i,!0),values:n._stacks[t.axis]._visualValues};return gm(l,r,o.index,{mode:s})}updateRangeFromParsed(t,n,s,i){let o=s[n.axis],r=o===null?NaN:o,l=i&&s._stacks[n.axis];i&&l&&(i.values=l,r=gm(i,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,n){let s=this._cachedMeta,i=s._parsed,o=s._sorted&&t===s.iScale,r=i.length,l=this._getOtherScale(t),c=B_(n,s,this.chart),u={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:d,max:h}=z_(l),f,g;function y(){g=i[f];let _=g[l.axis];return!ht(g[t.axis])||d>_||h<_}for(f=0;f<r&&!(!y()&&(this.updateRangeFromParsed(u,t,g,c),o));++f);if(o){for(f=r-1;f>=0;--f)if(!y()){this.updateRangeFromParsed(u,t,g,c);break}}return u}getAllParsedValues(t){let n=this._cachedMeta._parsed,s=[],i,o,r;for(i=0,o=n.length;i<o;++i)r=n[i][t.axis],ht(r)&&s.push(r);return s}getMaxOverflow(){return!1}getLabelAndValue(t){let n=this._cachedMeta,s=n.iScale,i=n.vScale,o=this.getParsed(t);return{label:s?""+s.getLabelForValue(o[s.axis]):"",value:i?""+i.getLabelForValue(o[i.axis]):""}}_update(t){let n=this._cachedMeta;this.update(t||"default"),n._clip=O_(I(this.options.clip,R_(n.xScale,n.yScale,this.getMaxOverflow())))}update(t){}draw(){let t=this._ctx,n=this.chart,s=this._cachedMeta,i=s.data||[],o=n.chartArea,r=[],l=this._drawStart||0,c=this._drawCount||i.length-l,u=this.options.drawActiveElementsOnTop,d;for(s.dataset&&s.dataset.draw(t,o,l,c),d=l;d<l+c;++d){let h=i[d];h.hidden||(h.active&&u?r.push(h):h.draw(t,o))}for(d=0;d<r.length;++d)r[d].draw(t,o)}getStyle(t,n){let s=n?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(t||0,s)}getContext(t,n,s){let i=this.getDataset(),o;if(t>=0&&t<this._cachedMeta.data.length){let r=this._cachedMeta.data[t];o=r.$context||(r.$context=j_(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=i.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=I_(this.chart.getContext(),this.index)),o.dataset=i,o.index=o.datasetIndex=this.index;return o.active=!!n,o.mode=s,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,n){return this._resolveElementOptions(this.dataElementType.id,n,t)}_resolveElementOptions(t,n="default",s){let i=n==="active",o=this._cachedDataOpts,r=t+"-"+n,l=o[r],c=this.enableOptionSharing&&Vs(s);if(l)return _m(l,c);let u=this.chart.config,d=u.datasetElementScopeKeys(this._type,t),h=i?[`${t}Hover`,"hover",t,""]:[t,""],f=u.getOptionScopes(this.getDataset(),d),g=Object.keys(st.elements[t]),y=()=>this.getContext(s,i,n),_=u.resolveNamedOptions(f,g,y,h);return _.$shared&&(_.$shared=c,o[r]=Object.freeze(_m(_,c))),_}_resolveAnimations(t,n,s){let i=this.chart,o=this._cachedDataOpts,r=`animation-${n}`,l=o[r];if(l)return l;let c;if(i.options.animation!==!1){let d=this.chart.config,h=d.datasetAnimationScopeKeys(this._type,n),f=d.getOptionScopes(this.getDataset(),h);c=d.createResolver(f,this.getContext(t,s,n))}let u=new va(i,c&&c.animations);return c&&c._cacheable&&(o[r]=Object.freeze(u)),u}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||Mu(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){let s=this.resolveDataElementOptions(t,n),i=this._sharedOptions,o=this.getSharedOptions(s),r=this.includeOptions(n,o)||o!==i;return this.updateSharedOptions(o,n,s),{sharedOptions:o,includeOptions:r}}updateElement(t,n,s,i){Mu(i)?Object.assign(t,s):this._resolveAnimations(n,i).update(t,s)}updateSharedOptions(t,n,s){t&&!Mu(n)&&this._resolveAnimations(void 0,n).update(t,s)}_setStyle(t,n,s,i){t.active=i;let o=this.getStyle(n,i);this._resolveAnimations(n,s,i).update(t,{options:!i&&this.getSharedOptions(o)||o})}removeHoverStyle(t,n,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,n,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let n=this._data,s=this._cachedMeta.data;for(let[l,c,u]of this._syncList)this[l](c,u);this._syncList=[];let i=s.length,o=n.length,r=Math.min(o,i);r&&this.parse(0,r),o>i?this._insertElements(i,o-i,t):o<i&&this._removeElements(o,i-o)}_insertElements(t,n,s=!0){let i=this._cachedMeta,o=i.data,r=t+n,l,c=u=>{for(u.length+=n,l=u.length-1;l>=r;l--)u[l]=u[l-n]};for(c(o),l=t;l<r;++l)o[l]=new this.dataElementType;this._parsing&&c(i._parsed),this.parse(t,n),s&&this.updateElements(o,t,n,"reset")}updateElements(t,n,s,i){}_removeElements(t,n){let s=this._cachedMeta;if(this._parsing){let i=s._parsed.splice(t,n);s._stacked&&oo(s,i)}s.data.splice(t,n)}_sync(t){if(this._parsing)this._syncList.push(t);else{let[n,s,i]=t;this[n](s,i)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){let 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,n){n&&this._sync(["_removeElements",t,n]);let s=arguments.length-2;s&&this._sync(["_insertElements",t,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}};R(kn,"defaults",{}),R(kn,"datasetElementType",null),R(kn,"dataElementType",null);function V_(e,t){if(!e._cache.$bar){let n=e.getMatchingVisibleMetas(t),s=[];for(let i=0,o=n.length;i<o;i++)s=s.concat(n[i].controller.getAllParsedValues(e));e._cache.$bar=cu(s.sort((i,o)=>i-o))}return e._cache.$bar}function H_(e){let t=e.iScale,n=V_(t,e.type),s=t._length,i,o,r,l,c=()=>{r===32767||r===-32768||(Vs(l)&&(s=Math.min(s,Math.abs(r-l)||s)),l=r)};for(i=0,o=n.length;i<o;++i)r=t.getPixelForValue(n[i]),c();for(l=void 0,i=0,o=t.ticks.length;i<o;++i)r=t.getPixelForTick(i),c();return s}function W_(e,t,n,s){let i=n.barThickness,o,r;return W(i)?(o=t.min*n.categoryPercentage,r=n.barPercentage):(o=i*s,r=1),{chunk:o/s,ratio:r,start:t.pixels[e]-o/2}}function $_(e,t,n,s){let i=t.pixels,o=i[e],r=e>0?i[e-1]:null,l=e<i.length-1?i[e+1]:null,c=n.categoryPercentage;r===null&&(r=o-(l===null?t.end-t.start:l-o)),l===null&&(l=o+o-r);let u=o-(o-Math.min(r,l))/2*c;return{chunk:Math.abs(l-r)/2*c/s,ratio:n.barPercentage,start:u}}function U_(e,t,n,s){let i=n.parse(e[0],s),o=n.parse(e[1],s),r=Math.min(i,o),l=Math.max(i,o),c=r,u=l;Math.abs(r)>Math.abs(l)&&(c=l,u=r),t[n.axis]=u,t._custom={barStart:c,barEnd:u,start:i,end:o,min:r,max:l}}function og(e,t,n,s){return q(e)?U_(e,t,n,s):t[n.axis]=n.parse(e,s),t}function bm(e,t,n,s){let i=e.iScale,o=e.vScale,r=i.getLabels(),l=i===o,c=[],u,d,h,f;for(u=n,d=n+s;u<d;++u)f=t[u],h={},h[i.axis]=l||i.parse(r[u],u),c.push(og(f,h,o,u));return c}function Pu(e){return e&&e.barStart!==void 0&&e.barEnd!==void 0}function K_(e,t,n){return e!==0?Ve(e):(t.isHorizontal()?1:-1)*(t.min>=n?1:-1)}function Y_(e){let t,n,s,i,o;return e.horizontal?(t=e.base>e.x,n="left",s="right"):(t=e.base<e.y,n="bottom",s="top"),t?(i="end",o="start"):(i="start",o="end"),{start:n,end:s,reverse:t,top:i,bottom:o}}function X_(e,t,n,s){let i=t.borderSkipped,o={};if(!i){e.borderSkipped=o;return}if(i===!0){e.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}let{start:r,end:l,reverse:c,top:u,bottom:d}=Y_(e);i==="middle"&&n&&(e.enableBorderRadius=!0,(n._top||0)===s?i=u:(n._bottom||0)===s?i=d:(o[xm(d,r,l,c)]=!0,i=u)),o[xm(i,r,l,c)]=!0,e.borderSkipped=o}function xm(e,t,n,s){return s?(e=G_(e,t,n),e=wm(e,n,t)):e=wm(e,t,n),e}function G_(e,t,n){return e===t?n:e===n?t:e}function wm(e,t,n){return e==="start"?t:e==="end"?n:e}function Q_(e,{inflateAmount:t},n){e.inflateAmount=t==="auto"?n===1?.33:0:t}var qn=class extends kn{parsePrimitiveData(t,n,s,i){return bm(t,n,s,i)}parseArrayData(t,n,s,i){return bm(t,n,s,i)}parseObjectData(t,n,s,i){let{iScale:o,vScale:r}=t,{xAxisKey:l="x",yAxisKey:c="y"}=this._parsing,u=o.axis==="x"?l:c,d=r.axis==="x"?l:c,h=[],f,g,y,_;for(f=s,g=s+i;f<g;++f)_=n[f],y={},y[o.axis]=o.parse(pn(_,u),f),h.push(og(pn(_,d),y,r,f));return h}updateRangeFromParsed(t,n,s,i){super.updateRangeFromParsed(t,n,s,i);let o=s._custom;o&&n===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){let n=this._cachedMeta,{iScale:s,vScale:i}=n,o=this.getParsed(t),r=o._custom,l=Pu(r)?"["+r.start+", "+r.end+"]":""+i.getLabelForValue(o[i.axis]);return{label:""+s.getLabelForValue(o[s.axis]),value:l}}initialize(){this.enableOptionSharing=!0,super.initialize();let t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){let n=this._cachedMeta;this.updateElements(n.data,0,n.data.length,t)}updateElements(t,n,s,i){let o=i==="reset",{index:r,_cachedMeta:{vScale:l}}=this,c=l.getBasePixel(),u=l.isHorizontal(),d=this._getRuler(),{sharedOptions:h,includeOptions:f}=this._getSharedOptions(n,i);for(let g=n;g<n+s;g++){let y=this.getParsed(g),_=o||W(y[l.axis])?{base:c,head:c}:this._calculateBarValuePixels(g),b=this._calculateBarIndexPixels(g,d),p=(y._stacks||{})[l.axis],m={horizontal:u,base:_.base,enableBorderRadius:!p||Pu(y._custom)||r===p._top||r===p._bottom,x:u?_.head:b.center,y:u?b.center:_.head,height:u?b.size:Math.abs(_.size),width:u?Math.abs(_.size):b.size};f&&(m.options=h||this.resolveDataElementOptions(g,t[g].active?"active":i));let v=m.options||t[g].options;X_(m,v,p,r),Q_(m,v,d.ratio),this.updateElement(t[g],g,m,i)}}_getStacks(t,n){let{iScale:s}=this._cachedMeta,i=s.getMatchingVisibleMetas(this._type).filter(d=>d.controller.options.grouped),o=s.options.stacked,r=[],l=this._cachedMeta.controller.getParsed(n),c=l&&l[s.axis],u=d=>{let h=d._parsed.find(g=>g[s.axis]===c),f=h&&h[d.vScale.axis];if(W(f)||isNaN(f))return!0};for(let d of i)if(!(n!==void 0&&u(d))&&((o===!1||r.indexOf(d.stack)===-1||o===void 0&&d.stack===void 0)&&r.push(d.stack),d.index===t))break;return r.length||r.push(void 0),r}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,s){let i=this._getStacks(t,s),o=n!==void 0?i.indexOf(n):-1;return o===-1?i.length-1:o}_getRuler(){let t=this.options,n=this._cachedMeta,s=n.iScale,i=[],o,r;for(o=0,r=n.data.length;o<r;++o)i.push(s.getPixelForValue(this.getParsed(o)[s.axis],o));let l=t.barThickness;return{min:l||H_(n),pixels:i,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:t.grouped,ratio:l?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){let{_cachedMeta:{vScale:n,_stacked:s,index:i},options:{base:o,minBarLength:r}}=this,l=o||0,c=this.getParsed(t),u=c._custom,d=Pu(u),h=c[n.axis],f=0,g=s?this.applyStack(n,c,s):h,y,_;g!==h&&(f=g-h,g=h),d&&(h=u.barStart,g=u.barEnd-u.barStart,h!==0&&Ve(h)!==Ve(u.barEnd)&&(f=0),f+=h);let b=!W(o)&&!d?o:f,p=n.getPixelForValue(b);if(this.chart.getDataVisibility(t)?y=n.getPixelForValue(f+g):y=p,_=y-p,Math.abs(_)<r){_=K_(_,n,l)*r,h===l&&(p-=_/2);let m=n.getPixelForDecimal(0),v=n.getPixelForDecimal(1),x=Math.min(m,v),w=Math.max(m,v);p=Math.max(Math.min(p,w),x),y=p+_,s&&!d&&(c._stacks[n.axis]._visualValues[i]=n.getValueForPixel(y)-n.getValueForPixel(p))}if(p===n.getPixelForValue(l)){let m=Ve(_)*n.getLineWidthForValue(l)/2;p+=m,_-=m}return{size:_,base:p,head:y,center:y+_/2}}_calculateBarIndexPixels(t,n){let s=n.scale,i=this.options,o=i.skipNull,r=I(i.maxBarThickness,1/0),l,c;if(n.grouped){let u=o?this._getStackCount(t):n.stackCount,d=i.barThickness==="flex"?$_(t,n,i,u):W_(t,n,i,u),h=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);l=d.start+d.chunk*h+d.chunk/2,c=Math.min(r,d.chunk*d.ratio)}else l=s.getPixelForValue(this.getParsed(t)[s.axis],t),c=Math.min(r,n.min*n.ratio);return{base:l-c/2,head:l+c/2,center:l,size:c}}draw(){let t=this._cachedMeta,n=t.vScale,s=t.data,i=s.length,o=0;for(;o<i;++o)this.getParsed(o)[n.axis]!==null&&!s[o].hidden&&s[o].draw(this._ctx)}};R(qn,"id","bar"),R(qn,"defaults",{datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}}),R(qn,"overrides",{scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}});function Z_(e,t,n){let s=1,i=1,o=0,r=0;if(t<J){let l=e,c=l+t,u=Math.cos(l),d=Math.sin(l),h=Math.cos(c),f=Math.sin(c),g=(v,x,w)=>eo(v,l,c,!0)?1:Math.max(x,x*n,w,w*n),y=(v,x,w)=>eo(v,l,c,!0)?-1:Math.min(x,x*n,w,w*n),_=g(0,u,h),b=g(ot,d,f),p=y(rt,u,h),m=y(rt+ot,d,f);s=(_-p)/2,i=(b-m)/2,o=-(_+p)/2,r=-(b+m)/2}return{ratioX:s,ratioY:i,offsetX:o,offsetY:r}}var xn=class extends kn{constructor(t,n){super(t,n),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,n){let s=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=s;else{let o=c=>+s[c];if(z(s[t])){let{key:c="value"}=this._parsing;o=u=>+pn(s[u],c)}let r,l;for(r=t,l=t+n;r<l;++r)i._parsed[r]=o(r)}}_getRotation(){return pe(this.options.rotation-90)}_getCircumference(){return pe(this.options.circumference)}_getRotationExtents(){let t=J,n=-J;for(let s=0;s<this.chart.data.datasets.length;++s)if(this.chart.isDatasetVisible(s)&&this.chart.getDatasetMeta(s).type===this._type){let i=this.chart.getDatasetMeta(s).controller,o=i._getRotation(),r=i._getCircumference();t=Math.min(t,o),n=Math.max(n,o+r)}return{rotation:t,circumference:n-t}}update(t){let n=this.chart,{chartArea:s}=n,i=this._cachedMeta,o=i.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,l=Math.max((Math.min(s.width,s.height)-r)/2,0),c=Math.min(Kp(this.options.cutout,l),1),u=this._getRingWeight(this.index),{circumference:d,rotation:h}=this._getRotationExtents(),{ratioX:f,ratioY:g,offsetX:y,offsetY:_}=Z_(h,d,c),b=(s.width-r)/f,p=(s.height-r)/g,m=Math.max(Math.min(b,p)/2,0),v=nu(this.options.radius,m),x=Math.max(v*c,0),w=(v-x)/this._getVisibleDatasetWeightTotal();this.offsetX=y*v,this.offsetY=_*v,i.total=this.calculateTotal(),this.outerRadius=v-w*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-w*u,0),this.updateElements(o,0,o.length,t)}_circumference(t,n){let s=this.options,i=this._cachedMeta,o=this._getCircumference();return n&&s.animation.animateRotate||!this.chart.getDataVisibility(t)||i._parsed[t]===null||i.data[t].hidden?0:this.calculateCircumference(i._parsed[t]*o/J)}updateElements(t,n,s,i){let o=i==="reset",r=this.chart,l=r.chartArea,u=r.options.animation,d=(l.left+l.right)/2,h=(l.top+l.bottom)/2,f=o&&u.animateScale,g=f?0:this.innerRadius,y=f?0:this.outerRadius,{sharedOptions:_,includeOptions:b}=this._getSharedOptions(n,i),p=this._getRotation(),m;for(m=0;m<n;++m)p+=this._circumference(m,o);for(m=n;m<n+s;++m){let v=this._circumference(m,o),x=t[m],w={x:d+this.offsetX,y:h+this.offsetY,startAngle:p,endAngle:p+v,circumference:v,outerRadius:y,innerRadius:g};b&&(w.options=_||this.resolveDataElementOptions(m,x.active?"active":i)),p+=v,this.updateElement(x,m,w,i)}}calculateTotal(){let t=this._cachedMeta,n=t.data,s=0,i;for(i=0;i<n.length;i++){let o=t._parsed[i];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(i)&&!n[i].hidden&&(s+=Math.abs(o))}return s}calculateCircumference(t){let n=this._cachedMeta.total;return n>0&&!isNaN(t)?J*(Math.abs(t)/n):0}getLabelAndValue(t){let n=this._cachedMeta,s=this.chart,i=s.data.labels||[],o=no(n._parsed[t],s.options.locale);return{label:i[t]||"",value:o}}getMaxBorderWidth(t){let n=0,s=this.chart,i,o,r,l,c;if(!t){for(i=0,o=s.data.datasets.length;i<o;++i)if(s.isDatasetVisible(i)){r=s.getDatasetMeta(i),t=r.data,l=r.controller;break}}if(!t)return 0;for(i=0,o=t.length;i<o;++i)c=l.resolveDataElementOptions(i),c.borderAlign!=="inner"&&(n=Math.max(n,c.borderWidth||0,c.hoverBorderWidth||0));return n}getMaxOffset(t){let n=0;for(let s=0,i=t.length;s<i;++s){let o=this.resolveDataElementOptions(s);n=Math.max(n,o.offset||0,o.hoverOffset||0)}return n}_getRingWeightOffset(t){let n=0;for(let s=0;s<t;++s)this.chart.isDatasetVisible(s)&&(n+=this._getRingWeight(s));return n}_getRingWeight(t){return Math.max(I(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}};R(xn,"id","doughnut"),R(xn,"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"}),R(xn,"descriptors",{_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")}),R(xn,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let n=t.data;if(n.labels.length&&n.datasets.length){let{labels:{pointStyle:s,color:i}}=t.legend.options;return n.labels.map((o,r)=>{let c=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:i,lineWidth:c.borderWidth,pointStyle:s,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,n,s){s.chart.toggleDataVisibility(n.index),s.chart.update()}}}});var Us=class extends xn{};R(Us,"id","pie"),R(Us,"defaults",{cutout:0,rotation:0,circumference:360,radius:"100%"});function Qn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var zu=class e{constructor(t){R(this,"options");this.options=t||{}}static override(t){Object.assign(e.prototype,t)}init(){}formats(){return Qn()}parse(){return Qn()}format(){return Qn()}add(){return Qn()}diff(){return Qn()}startOf(){return Qn()}endOf(){return Qn()}},q_={_date:zu};function J_(e,t,n,s){let{controller:i,data:o,_sorted:r}=e,l=i._cachedMeta.iScale;if(l&&t===l.axis&&t!=="r"&&r&&o.length){let c=l._reversePixels?Jp:Jr;if(s){if(i._sharedOptions){let u=o[0],d=typeof u.getRange=="function"&&u.getRange(t);if(d){let h=c(o,t,n-d),f=c(o,t,n+d);return{lo:h.lo,hi:f.hi}}}}else return c(o,t,n)}return{lo:0,hi:o.length-1}}function go(e,t,n,s,i){let o=e.getSortedVisibleDatasetMetas(),r=n[t];for(let l=0,c=o.length;l<c;++l){let{index:u,data:d}=o[l],{lo:h,hi:f}=J_(o[l],t,r,i);for(let g=h;g<=f;++g){let y=d[g];y.skip||s(y,u,g)}}}function tb(e){let t=e.indexOf("x")!==-1,n=e.indexOf("y")!==-1;return function(s,i){let o=t?Math.abs(s.x-i.x):0,r=n?Math.abs(s.y-i.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function Eu(e,t,n,s,i){let o=[];return!i&&!e.isPointInArea(t)||go(e,n,t,function(l,c,u){!i&&!Yn(l,e.chartArea,0)||l.inRange(t.x,t.y,s)&&o.push({element:l,datasetIndex:c,index:u})},!0),o}function eb(e,t,n,s){let i=[];function o(r,l,c){let{startAngle:u,endAngle:d}=r.getProps(["startAngle","endAngle"],s),{angle:h}=au(r,{x:t.x,y:t.y});eo(h,u,d)&&i.push({element:r,datasetIndex:l,index:c})}return go(e,n,t,o),i}function nb(e,t,n,s,i,o){let r=[],l=tb(n),c=Number.POSITIVE_INFINITY;function u(d,h,f){let g=d.inRange(t.x,t.y,i);if(s&&!g)return;let y=d.getCenterPoint(i);if(!(!!o||e.isPointInArea(y))&&!g)return;let b=l(t,y);b<c?(r=[{element:d,datasetIndex:h,index:f}],c=b):b===c&&r.push({element:d,datasetIndex:h,index:f})}return go(e,n,t,u),r}function Tu(e,t,n,s,i,o){return!o&&!e.isPointInArea(t)?[]:n==="r"&&!s?eb(e,t,n,i):nb(e,t,n,s,i,o)}function km(e,t,n,s,i){let o=[],r=n==="x"?"inXRange":"inYRange",l=!1;return go(e,n,t,(c,u,d)=>{c[r]&&c[r](t[n],i)&&(o.push({element:c,datasetIndex:u,index:d}),l=l||c.inRange(t.x,t.y,i))}),s&&!l?[]:o}var sb={evaluateInteractionItems:go,modes:{index(e,t,n,s){let i=bn(t,e),o=n.axis||"x",r=n.includeInvisible||!1,l=n.intersect?Eu(e,i,o,s,r):Tu(e,i,o,!1,s,r),c=[];return l.length?(e.getSortedVisibleDatasetMetas().forEach(u=>{let d=l[0].index,h=u.data[d];h&&!h.skip&&c.push({element:h,datasetIndex:u.index,index:d})}),c):[]},dataset(e,t,n,s){let i=bn(t,e),o=n.axis||"xy",r=n.includeInvisible||!1,l=n.intersect?Eu(e,i,o,s,r):Tu(e,i,o,!1,s,r);if(l.length>0){let c=l[0].datasetIndex,u=e.getDatasetMeta(c).data;l=[];for(let d=0;d<u.length;++d)l.push({element:u[d],datasetIndex:c,index:d})}return l},point(e,t,n,s){let i=bn(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return Eu(e,i,o,s,r)},nearest(e,t,n,s){let i=bn(t,e),o=n.axis||"xy",r=n.includeInvisible||!1;return Tu(e,i,o,n.intersect,s,r)},x(e,t,n,s){let i=bn(t,e);return km(e,i,"x",n.intersect,s)},y(e,t,n,s){let i=bn(t,e);return km(e,i,"y",n.intersect,s)}}},rg=["left","top","right","bottom"];function ro(e,t){return e.filter(n=>n.pos===t)}function Sm(e,t){return e.filter(n=>rg.indexOf(n.pos)===-1&&n.box.axis===t)}function ao(e,t){return e.sort((n,s)=>{let i=t?s:n,o=t?n:s;return i.weight===o.weight?i.index-o.index:i.weight-o.weight})}function ib(e){let t=[],n,s,i,o,r,l;for(n=0,s=(e||[]).length;n<s;++n)i=e[n],{position:o,options:{stack:r,stackWeight:l=1}}=i,t.push({index:n,box:i,pos:o,horizontal:i.isHorizontal(),weight:i.weight,stack:r&&o+r,stackWeight:l});return t}function ob(e){let t={};for(let n of e){let{stack:s,pos:i,stackWeight:o}=n;if(!s||!rg.includes(i))continue;let r=t[s]||(t[s]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function rb(e,t){let n=ob(e),{vBoxMaxWidth:s,hBoxMaxHeight:i}=t,o,r,l;for(o=0,r=e.length;o<r;++o){l=e[o];let{fullSize:c}=l.box,u=n[l.stack],d=u&&l.stackWeight/u.weight;l.horizontal?(l.width=d?d*s:c&&t.availableWidth,l.height=i):(l.width=s,l.height=d?d*i:c&&t.availableHeight)}return n}function ab(e){let t=ib(e),n=ao(t.filter(u=>u.box.fullSize),!0),s=ao(ro(t,"left"),!0),i=ao(ro(t,"right")),o=ao(ro(t,"top"),!0),r=ao(ro(t,"bottom")),l=Sm(t,"x"),c=Sm(t,"y");return{fullSize:n,leftAndTop:s.concat(o),rightAndBottom:i.concat(c).concat(r).concat(l),chartArea:ro(t,"chartArea"),vertical:s.concat(i).concat(c),horizontal:o.concat(r).concat(l)}}function Cm(e,t,n,s){return Math.max(e[n],t[n])+Math.max(e[s],t[s])}function ag(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 lb(e,t,n,s){let{pos:i,box:o}=n,r=e.maxPadding;if(!z(i)){n.size&&(e[i]-=n.size);let h=s[n.stack]||{size:0,count:1};h.size=Math.max(h.size,n.horizontal?o.height:o.width),n.size=h.size/h.count,e[i]+=n.size}o.getPadding&&ag(r,o.getPadding());let l=Math.max(0,t.outerWidth-Cm(r,e,"left","right")),c=Math.max(0,t.outerHeight-Cm(r,e,"top","bottom")),u=l!==e.w,d=c!==e.h;return e.w=l,e.h=c,n.horizontal?{same:u,other:d}:{same:d,other:u}}function cb(e){let t=e.maxPadding;function n(s){let i=Math.max(t[s]-e[s],0);return e[s]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function ub(e,t){let n=t.maxPadding;function s(i){let o={left:0,top:0,right:0,bottom:0};return i.forEach(r=>{o[r]=Math.max(t[r],n[r])}),o}return s(e?["left","right"]:["top","bottom"])}function uo(e,t,n,s){let i=[],o,r,l,c,u,d;for(o=0,r=e.length,u=0;o<r;++o){l=e[o],c=l.box,c.update(l.width||t.w,l.height||t.h,ub(l.horizontal,t));let{same:h,other:f}=lb(t,n,l,s);u|=h&&i.length,d=d||f,c.fullSize||i.push(l)}return u&&uo(i,t,n,s)||d}function la(e,t,n,s,i){e.top=n,e.left=t,e.right=t+s,e.bottom=n+i,e.width=s,e.height=i}function Nm(e,t,n,s){let i=n.padding,{x:o,y:r}=t;for(let l of e){let c=l.box,u=s[l.stack]||{count:1,placed:0,weight:1},d=l.stackWeight/u.weight||1;if(l.horizontal){let h=t.w*d,f=u.size||c.height;Vs(u.start)&&(r=u.start),c.fullSize?la(c,i.left,r,n.outerWidth-i.right-i.left,f):la(c,t.left+u.placed,r,h,f),u.start=r,u.placed+=h,r=c.bottom}else{let h=t.h*d,f=u.size||c.width;Vs(u.start)&&(o=u.start),c.fullSize?la(c,o,i.top,f,n.outerHeight-i.bottom-i.top):la(c,o,t.top+u.placed,f,h),u.start=o,u.placed+=h,o=c.right}}t.x=o,t.y=r}var Sn={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(n){t.draw(n)}}]},e.boxes.push(t)},removeBox(e,t){let n=e.boxes?e.boxes.indexOf(t):-1;n!==-1&&e.boxes.splice(n,1)},configure(e,t,n){t.fullSize=n.fullSize,t.position=n.position,t.weight=n.weight},update(e,t,n,s){if(!e)return;let i=Nt(e.options.layout.padding),o=Math.max(t-i.width,0),r=Math.max(n-i.height,0),l=ab(e.boxes),c=l.vertical,u=l.horizontal;B(e.boxes,_=>{typeof _.beforeLayout=="function"&&_.beforeLayout()});let d=c.reduce((_,b)=>b.box.options&&b.box.options.display===!1?_:_+1,0)||1,h=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/d,hBoxMaxHeight:r/2}),f=Object.assign({},i);ag(f,Nt(s));let g=Object.assign({maxPadding:f,w:o,h:r,x:i.left,y:i.top},i),y=rb(c.concat(u),h);uo(l.fullSize,g,h,y),uo(c,g,h,y),uo(u,g,h,y)&&uo(c,g,h,y),cb(g),Nm(l.leftAndTop,g,h,y),g.x+=g.w,g.y+=g.h,Nm(l.rightAndBottom,g,h,y),e.chartArea={left:g.left,top:g.top,right:g.left+g.w,bottom:g.top+g.h,height:g.h,width:g.w},B(l.chartArea,_=>{let b=_.box;Object.assign(b,e.chartArea),b.update(g.w,g.h,{left:0,top:0,right:0,bottom:0})})}},_a=class{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,s){}removeEventListener(t,n,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,s,i){return n=Math.max(0,n||t.width),s=s||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):s)}}isAttached(t){return!0}updateConfig(t){}},Fu=class extends _a{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}},ga="$chartjs",db={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Mm=e=>e===null||e==="";function hb(e,t){let n=e.style,s=e.getAttribute("height"),i=e.getAttribute("width");if(e[ga]={initial:{height:s,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",Mm(i)){let o=wu(e,"width");o!==void 0&&(e.width=o)}if(Mm(s))if(e.style.height==="")e.height=e.width/(t||2);else{let o=wu(e,"height");o!==void 0&&(e.height=o)}return e}var lg=fm?{passive:!0}:!1;function fb(e,t,n){e&&e.addEventListener(t,n,lg)}function pb(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,lg)}function mb(e,t){let n=db[e.type]||e.type,{x:s,y:i}=bn(e,t);return{type:n,chart:t,native:e,x:s!==void 0?s:null,y:i!==void 0?i:null}}function ba(e,t){for(let n of e)if(n===t||n.contains(t))return!0}function gb(e,t,n){let s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(let l of o)r=r||ba(l.addedNodes,s),r=r&&!ba(l.removedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function yb(e,t,n){let s=e.canvas,i=new MutationObserver(o=>{let r=!1;for(let l of o)r=r||ba(l.removedNodes,s),r=r&&!ba(l.addedNodes,s);r&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}var po=new Map,Pm=0;function cg(){let e=window.devicePixelRatio;e!==Pm&&(Pm=e,po.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function vb(e,t){po.size||window.addEventListener("resize",cg),po.set(e,t)}function _b(e){po.delete(e),po.size||window.removeEventListener("resize",cg)}function bb(e,t,n){let s=e.canvas,i=s&&ra(s);if(!i)return;let o=du((l,c)=>{let u=i.clientWidth;n(l,c),u<i.clientWidth&&n()},window),r=new ResizeObserver(l=>{let c=l[0],u=c.contentRect.width,d=c.contentRect.height;u===0&&d===0||o(u,d)});return r.observe(i),vb(e,o),r}function Du(e,t,n){n&&n.disconnect(),t==="resize"&&_b(e)}function xb(e,t,n){let s=e.canvas,i=du(o=>{e.ctx!==null&&n(mb(o,e))},e);return fb(s,t,i),i}var Iu=class extends _a{acquireContext(t,n){let s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(hb(t,n),s):null}releaseContext(t){let n=t.canvas;if(!n[ga])return!1;let s=n[ga].initial;["height","width"].forEach(o=>{let r=s[o];W(r)?n.removeAttribute(o):n.setAttribute(o,r)});let i=s.style||{};return Object.keys(i).forEach(o=>{n.style[o]=i[o]}),n.width=n.width,delete n[ga],!0}addEventListener(t,n,s){this.removeEventListener(t,n);let i=t.$proxies||(t.$proxies={}),r={attach:gb,detach:yb,resize:bb}[n]||xb;i[n]=r(t,n,s)}removeEventListener(t,n){let s=t.$proxies||(t.$proxies={}),i=s[n];if(!i)return;({attach:Du,detach:Du,resize:Du}[n]||pb)(t,n,i),s[n]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,s,i){return hm(t,n,s,i)}isAttached(t){let n=t&&ra(t);return!!(n&&n.isConnected)}};function wb(e){return!oa()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?Fu:Iu}var Ne=class{constructor(){R(this,"x");R(this,"y");R(this,"active",!1);R(this,"options");R(this,"$animations")}tooltipPosition(t){let{x:n,y:s}=this.getProps(["x","y"],t);return{x:n,y:s}}hasValue(){return to(this.x)&&to(this.y)}getProps(t,n){let s=this.$animations;if(!n||!s)return this;let i={};return t.forEach(o=>{i[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),i}};R(Ne,"defaults",{}),R(Ne,"defaultRoutes");function kb(e,t){let n=e.options.ticks,s=Sb(e),i=Math.min(n.maxTicksLimit||s,s),o=n.major.enabled?Nb(t):[],r=o.length,l=o[0],c=o[r-1],u=[];if(r>i)return Mb(t,u,o,r/i),u;let d=Cb(o,t,i);if(r>0){let h,f,g=r>1?Math.round((c-l)/(r-1)):null;for(ca(t,u,d,W(g)?0:l-g,l),h=0,f=r-1;h<f;h++)ca(t,u,d,o[h],o[h+1]);return ca(t,u,d,c,W(g)?t.length:c+g),u}return ca(t,u,d),u}function Sb(e){let t=e.options.offset,n=e._tickSize(),s=e._length/n+(t?0:1),i=e._maxLength/n;return Math.floor(Math.min(s,i))}function Cb(e,t,n){let s=Pb(e),i=t.length/n;if(!s)return Math.max(i,1);let o=Gp(s);for(let r=0,l=o.length-1;r<l;r++){let c=o[r];if(c>i)return c}return Math.max(i,1)}function Nb(e){let t=[],n,s;for(n=0,s=e.length;n<s;n++)e[n].major&&t.push(n);return t}function Mb(e,t,n,s){let i=0,o=n[0],r;for(s=Math.ceil(s),r=0;r<e.length;r++)r===o&&(t.push(e[r]),i++,o=n[i*s])}function ca(e,t,n,s,i){let o=I(s,0),r=Math.min(I(i,e.length),e.length),l=0,c,u,d;for(n=Math.ceil(n),i&&(c=i-s,n=c/Math.floor(c/n)),d=o;d<0;)l++,d=Math.round(o+l*n);for(u=Math.max(o,0);u<r;u++)u===d&&(t.push(e[u]),l++,d=Math.round(o+l*n))}function Pb(e){let t=e.length,n,s;if(t<2)return!1;for(s=e[0],n=1;n<t;++n)if(e[n]-e[n-1]!==s)return!1;return s}var Eb=e=>e==="left"?"right":e==="right"?"left":e,Em=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,Tm=(e,t)=>Math.min(t||e,e);function Dm(e,t){let n=[],s=e.length/t,i=e.length,o=0;for(;o<i;o+=s)n.push(e[Math.floor(o)]);return n}function Tb(e,t,n){let s=e.ticks.length,i=Math.min(t,s-1),o=e._startPixel,r=e._endPixel,l=1e-6,c=e.getPixelForTick(i),u;if(!(n&&(s===1?u=Math.max(c-o,r-c):t===0?u=(e.getPixelForTick(1)-c)/2:u=(c-e.getPixelForTick(i-1))/2,c+=i<t?u:-u,c<o-l||c>r+l)))return c}function Db(e,t){B(e,n=>{let s=n.gc,i=s.length/2,o;if(i>t){for(o=0;o<i;++o)delete n.data[s[o]];s.splice(0,i)}})}function lo(e){return e.drawTicks?e.tickLength:0}function Rm(e,t){if(!e.display)return 0;let n=mt(e.font,t),s=Nt(e.padding);return(q(e.text)?e.text.length:1)*n.lineHeight+s.height}function Rb(e,t){return _n(e,{scale:t,type:"scale"})}function Ob(e,t,n){return _n(e,{tick:n,index:t,type:"tick"})}function Lb(e,t,n){let s=hu(e);return(n&&t!=="right"||!n&&t==="right")&&(s=Eb(s)),s}function Ab(e,t,n,s){let{top:i,left:o,bottom:r,right:l,chart:c}=e,{chartArea:u,scales:d}=c,h=0,f,g,y,_=r-i,b=l-o;if(e.isHorizontal()){if(g=jt(s,o,l),z(n)){let p=Object.keys(n)[0],m=n[p];y=d[p].getPixelForValue(m)+_-t}else n==="center"?y=(u.bottom+u.top)/2+_-t:y=Em(e,n,t);f=l-o}else{if(z(n)){let p=Object.keys(n)[0],m=n[p];g=d[p].getPixelForValue(m)-b+t}else n==="center"?g=(u.left+u.right)/2-b+t:g=Em(e,n,t);y=jt(s,r,i),h=n==="left"?-ot:ot}return{titleX:g,titleY:y,maxWidth:f,rotation:h}}var ts=class e extends Ne{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,n){return t}getUserBounds(){let{_userMin:t,_userMax:n,_suggestedMin:s,_suggestedMax:i}=this;return t=It(t,Number.POSITIVE_INFINITY),n=It(n,Number.NEGATIVE_INFINITY),s=It(s,Number.POSITIVE_INFINITY),i=It(i,Number.NEGATIVE_INFINITY),{min:It(t,s),max:It(n,i),minDefined:ht(t),maxDefined:ht(n)}}getMinMax(t){let{min:n,max:s,minDefined:i,maxDefined:o}=this.getUserBounds(),r;if(i&&o)return{min:n,max:s};let l=this.getMatchingVisibleMetas();for(let c=0,u=l.length;c<u;++c)r=l[c].controller.getMinMax(this,t),i||(n=Math.min(n,r.min)),o||(s=Math.max(s,r.max));return n=o&&n>s?s:n,s=i&&n>s?n:s,{min:It(n,It(s,n)),max:It(s,It(n,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let 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(){U(this.options.beforeUpdate,[this])}update(t,n,s){let{beginAtZero:i,grace:o,ticks:r}=this.options,l=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,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=lm(this,o,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let c=l<this.ticks.length;this._convertTicksToLabels(c?Dm(this.ticks,l):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=kb(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,n,s;this.isHorizontal()?(n=this.left,s=this.right):(n=this.top,s=this.bottom,t=!t),this._startPixel=n,this._endPixel=s,this._reversePixels=t,this._length=s-n,this._alignToPixels=this.options.alignToPixels}afterUpdate(){U(this.options.afterUpdate,[this])}beforeSetDimensions(){U(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(){U(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),U(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){U(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){let n=this.options.ticks,s,i,o;for(s=0,i=t.length;s<i;s++)o=t[s],o.label=U(n.callback,[o.value,s,t],this)}afterTickToLabelConversion(){U(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){U(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let t=this.options,n=t.ticks,s=Tm(this.ticks.length,t.ticks.maxTicksLimit),i=n.minRotation||0,o=n.maxRotation,r=i,l,c,u;if(!this._isVisible()||!n.display||i>=o||s<=1||!this.isHorizontal()){this.labelRotation=i;return}let d=this._getLabelSizes(),h=d.widest.width,f=d.highest.height,g=Rt(this.chart.width-h,0,this.maxWidth);l=t.offset?this.maxWidth/s:g/(s-1),h+6>l&&(l=g/(s-(t.offset?.5:1)),c=this.maxHeight-lo(t.grid)-n.padding-Rm(t.title,this.chart.options.font),u=Math.sqrt(h*h+f*f),r=Zr(Math.min(Math.asin(Rt((d.highest.height+6)/l,-1,1)),Math.asin(Rt(c/u,-1,1))-Math.asin(Rt(f/u,-1,1)))),r=Math.max(i,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){U(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){U(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:n,options:{ticks:s,title:i,grid:o}}=this,r=this._isVisible(),l=this.isHorizontal();if(r){let c=Rm(i,n.options.font);if(l?(t.width=this.maxWidth,t.height=lo(o)+c):(t.height=this.maxHeight,t.width=lo(o)+c),s.display&&this.ticks.length){let{first:u,last:d,widest:h,highest:f}=this._getLabelSizes(),g=s.padding*2,y=pe(this.labelRotation),_=Math.cos(y),b=Math.sin(y);if(l){let p=s.mirror?0:b*h.width+_*f.height;t.height=Math.min(this.maxHeight,t.height+p+g)}else{let p=s.mirror?0:_*h.width+b*f.height;t.width=Math.min(this.maxWidth,t.width+p+g)}this._calculatePadding(u,d,b,_)}}this._handleMargins(),l?(this.width=this._length=n.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=n.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,n,s,i){let{ticks:{align:o,padding:r},position:l}=this.options,c=this.labelRotation!==0,u=l!=="top"&&this.axis==="x";if(this.isHorizontal()){let d=this.getPixelForTick(0)-this.left,h=this.right-this.getPixelForTick(this.ticks.length-1),f=0,g=0;c?u?(f=i*t.width,g=s*n.height):(f=s*t.height,g=i*n.width):o==="start"?g=n.width:o==="end"?f=t.width:o!=="inner"&&(f=t.width/2,g=n.width/2),this.paddingLeft=Math.max((f-d+r)*this.width/(this.width-d),0),this.paddingRight=Math.max((g-h+r)*this.width/(this.width-h),0)}else{let d=n.height/2,h=t.height/2;o==="start"?(d=0,h=t.height):o==="end"&&(d=n.height,h=0),this.paddingTop=d+r,this.paddingBottom=h+r}}_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(){U(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:n}=this.options;return n==="top"||n==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let n,s;for(n=0,s=t.length;n<s;n++)W(t[n].label)&&(t.splice(n,1),s--,n--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){let n=this.options.ticks.sampleSize,s=this.ticks;n<s.length&&(s=Dm(s,n)),this._labelSizes=t=this._computeLabelSizes(s,s.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,n,s){let{ctx:i,_longestTextCache:o}=this,r=[],l=[],c=Math.floor(n/Tm(n,s)),u=0,d=0,h,f,g,y,_,b,p,m,v,x,w;for(h=0;h<n;h+=c){if(y=t[h].label,_=this._resolveTickFontOptions(h),i.font=b=_.string,p=o[b]=o[b]||{data:{},gc:[]},m=_.lineHeight,v=x=0,!W(y)&&!q(y))v=Zi(i,p.data,p.gc,v,y),x=m;else if(q(y))for(f=0,g=y.length;f<g;++f)w=y[f],!W(w)&&!q(w)&&(v=Zi(i,p.data,p.gc,v,w),x+=m);r.push(v),l.push(x),u=Math.max(v,u),d=Math.max(x,d)}Db(o,n);let S=r.indexOf(u),C=l.indexOf(d),M=D=>({width:r[D]||0,height:l[D]||0});return{first:M(0),last:M(n-1),widest:M(S),highest:M(C),widths:r,heights:l}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){let n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let n=this._startPixel+t*this._length;return qp(this._alignToPixels?yn(this.chart,n,0):n)}getDecimalForPixel(t){let n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){let n=this.ticks||[];if(t>=0&&t<n.length){let s=n[t];return s.$context||(s.$context=Ob(this.getContext(),t,s))}return this.$context||(this.$context=Rb(this.chart.getContext(),this))}_tickSize(){let t=this.options.ticks,n=pe(this.labelRotation),s=Math.abs(Math.cos(n)),i=Math.abs(Math.sin(n)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,l=o?o.widest.width+r:0,c=o?o.highest.height+r:0;return this.isHorizontal()?c*s>l*i?l/s:c/i:c*i<l*s?c/s:l/i}_isVisible(){let t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){let n=this.axis,s=this.chart,i=this.options,{grid:o,position:r,border:l}=i,c=o.offset,u=this.isHorizontal(),h=this.ticks.length+(c?1:0),f=lo(o),g=[],y=l.setContext(this.getContext()),_=y.display?y.width:0,b=_/2,p=function(Q){return yn(s,Q,_)},m,v,x,w,S,C,M,D,E,O,A,gt;if(r==="top")m=p(this.bottom),C=this.bottom-f,D=m-b,O=p(t.top)+b,gt=t.bottom;else if(r==="bottom")m=p(this.top),O=t.top,gt=p(t.bottom)-b,C=m+b,D=this.top+f;else if(r==="left")m=p(this.right),S=this.right-f,M=m-b,E=p(t.left)+b,A=t.right;else if(r==="right")m=p(this.left),E=t.left,A=p(t.right)-b,S=m+b,M=this.left+f;else if(n==="x"){if(r==="center")m=p((t.top+t.bottom)/2+.5);else if(z(r)){let Q=Object.keys(r)[0],at=r[Q];m=p(this.chart.scales[Q].getPixelForValue(at))}O=t.top,gt=t.bottom,C=m+b,D=C+f}else if(n==="y"){if(r==="center")m=p((t.left+t.right)/2);else if(z(r)){let Q=Object.keys(r)[0],at=r[Q];m=p(this.chart.scales[Q].getPixelForValue(at))}S=m-b,M=S-f,E=t.left,A=t.right}let Wt=I(i.ticks.maxTicksLimit,h),$=Math.max(1,Math.ceil(h/Wt));for(v=0;v<h;v+=$){let Q=this.getContext(v),at=o.setContext(Q),ie=l.setContext(Q),bt=at.lineWidth,ss=at.color,_o=ie.dash||[],is=ie.dashOffset,Js=at.tickWidth,Mn=at.tickColor,ti=at.tickBorderDash||[],Pn=at.tickBorderDashOffset;x=Tb(this,v,c),x!==void 0&&(w=yn(s,x,bt),u?S=M=E=A=w:C=D=O=gt=w,g.push({tx1:S,ty1:C,tx2:M,ty2:D,x1:E,y1:O,x2:A,y2:gt,width:bt,color:ss,borderDash:_o,borderDashOffset:is,tickWidth:Js,tickColor:Mn,tickBorderDash:ti,tickBorderDashOffset:Pn}))}return this._ticksLength=h,this._borderValue=m,g}_computeLabelItems(t){let n=this.axis,s=this.options,{position:i,ticks:o}=s,r=this.isHorizontal(),l=this.ticks,{align:c,crossAlign:u,padding:d,mirror:h}=o,f=lo(s.grid),g=f+d,y=h?-d:g,_=-pe(this.labelRotation),b=[],p,m,v,x,w,S,C,M,D,E,O,A,gt="middle";if(i==="top")S=this.bottom-y,C=this._getXAxisLabelAlignment();else if(i==="bottom")S=this.top+y,C=this._getXAxisLabelAlignment();else if(i==="left"){let $=this._getYAxisLabelAlignment(f);C=$.textAlign,w=$.x}else if(i==="right"){let $=this._getYAxisLabelAlignment(f);C=$.textAlign,w=$.x}else if(n==="x"){if(i==="center")S=(t.top+t.bottom)/2+g;else if(z(i)){let $=Object.keys(i)[0],Q=i[$];S=this.chart.scales[$].getPixelForValue(Q)+g}C=this._getXAxisLabelAlignment()}else if(n==="y"){if(i==="center")w=(t.left+t.right)/2-g;else if(z(i)){let $=Object.keys(i)[0],Q=i[$];w=this.chart.scales[$].getPixelForValue(Q)}C=this._getYAxisLabelAlignment(f).textAlign}n==="y"&&(c==="start"?gt="top":c==="end"&&(gt="bottom"));let Wt=this._getLabelSizes();for(p=0,m=l.length;p<m;++p){v=l[p],x=v.label;let $=o.setContext(this.getContext(p));M=this.getPixelForTick(p)+o.labelOffset,D=this._resolveTickFontOptions(p),E=D.lineHeight,O=q(x)?x.length:1;let Q=O/2,at=$.color,ie=$.textStrokeColor,bt=$.textStrokeWidth,ss=C;r?(w=M,C==="inner"&&(p===m-1?ss=this.options.reverse?"left":"right":p===0?ss=this.options.reverse?"right":"left":ss="center"),i==="top"?u==="near"||_!==0?A=-O*E+E/2:u==="center"?A=-Wt.highest.height/2-Q*E+E:A=-Wt.highest.height+E/2:u==="near"||_!==0?A=E/2:u==="center"?A=Wt.highest.height/2-Q*E:A=Wt.highest.height-O*E,h&&(A*=-1),_!==0&&!$.showLabelBackdrop&&(w+=E/2*Math.sin(_))):(S=M,A=(1-O)*E/2);let _o;if($.showLabelBackdrop){let is=Nt($.backdropPadding),Js=Wt.heights[p],Mn=Wt.widths[p],ti=A-is.top,Pn=0-is.left;switch(gt){case"middle":ti-=Js/2;break;case"bottom":ti-=Js;break}switch(C){case"center":Pn-=Mn/2;break;case"right":Pn-=Mn;break;case"inner":p===m-1?Pn-=Mn:p>0&&(Pn-=Mn/2);break}_o={left:Pn,top:ti,width:Mn+is.width,height:Js+is.height,color:$.backdropColor}}b.push({label:x,font:D,textOffset:A,options:{rotation:_,color:at,strokeColor:ie,strokeWidth:bt,textAlign:ss,textBaseline:gt,translation:[w,S],backdrop:_o}})}return b}_getXAxisLabelAlignment(){let{position:t,ticks:n}=this.options;if(-pe(this.labelRotation))return t==="top"?"left":"right";let i="center";return n.align==="start"?i="left":n.align==="end"?i="right":n.align==="inner"&&(i="inner"),i}_getYAxisLabelAlignment(t){let{position:n,ticks:{crossAlign:s,mirror:i,padding:o}}=this.options,r=this._getLabelSizes(),l=t+o,c=r.widest.width,u,d;return n==="left"?i?(d=this.right+o,s==="near"?u="left":s==="center"?(u="center",d+=c/2):(u="right",d+=c)):(d=this.right-l,s==="near"?u="right":s==="center"?(u="center",d-=c/2):(u="left",d=this.left)):n==="right"?i?(d=this.left+o,s==="near"?u="right":s==="center"?(u="center",d-=c/2):(u="left",d-=c)):(d=this.left+l,s==="near"?u="left":s==="center"?(u="center",d+=c/2):(u="right",d=this.right)):u="right",{textAlign:u,x:d}}_computeLabelArea(){if(this.options.ticks.mirror)return;let t=this.chart,n=this.options.position;if(n==="left"||n==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(n==="top"||n==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){let{ctx:t,options:{backgroundColor:n},left:s,top:i,width:o,height:r}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(s,i,o,r),t.restore())}getLineWidthForValue(t){let n=this.options.grid;if(!this._isVisible()||!n.display)return 0;let i=this.ticks.findIndex(o=>o.value===t);return i>=0?n.setContext(this.getContext(i)).lineWidth:0}drawGrid(t){let n=this.options.grid,s=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),o,r,l=(c,u,d)=>{!d.width||!d.color||(s.save(),s.lineWidth=d.width,s.strokeStyle=d.color,s.setLineDash(d.borderDash||[]),s.lineDashOffset=d.borderDashOffset,s.beginPath(),s.moveTo(c.x,c.y),s.lineTo(u.x,u.y),s.stroke(),s.restore())};if(n.display)for(o=0,r=i.length;o<r;++o){let c=i[o];n.drawOnChartArea&&l({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),n.drawTicks&&l({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){let{chart:t,ctx:n,options:{border:s,grid:i}}=this,o=s.setContext(this.getContext()),r=s.display?o.width:0;if(!r)return;let l=i.setContext(this.getContext(0)).lineWidth,c=this._borderValue,u,d,h,f;this.isHorizontal()?(u=yn(t,this.left,r)-r/2,d=yn(t,this.right,l)+l/2,h=f=c):(h=yn(t,this.top,r)-r/2,f=yn(t,this.bottom,l)+l/2,u=d=c),n.save(),n.lineWidth=o.width,n.strokeStyle=o.color,n.beginPath(),n.moveTo(u,h),n.lineTo(d,f),n.stroke(),n.restore()}drawLabels(t){if(!this.options.ticks.display)return;let s=this.ctx,i=this._computeLabelArea();i&&ea(s,i);let o=this.getLabelItems(t);for(let r of o){let l=r.options,c=r.font,u=r.label,d=r.textOffset;Xn(s,u,0,d,c,l)}i&&na(s)}drawTitle(){let{ctx:t,options:{position:n,title:s,reverse:i}}=this;if(!s.display)return;let o=mt(s.font),r=Nt(s.padding),l=s.align,c=o.lineHeight/2;n==="bottom"||n==="center"||z(n)?(c+=r.bottom,q(s.text)&&(c+=o.lineHeight*(s.text.length-1))):c+=r.top;let{titleX:u,titleY:d,maxWidth:h,rotation:f}=Ab(this,c,n,l);Xn(t,s.text,0,0,o,{color:s.color,maxWidth:h,rotation:f,textAlign:Lb(l,n,i),textBaseline:"middle",translation:[u,d]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){let t=this.options,n=t.ticks&&t.ticks.z||0,s=I(t.grid&&t.grid.z,-1),i=I(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==e.prototype.draw?[{z:n,draw:o=>{this.draw(o)}}]:[{z:s,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){let n=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",i=[],o,r;for(o=0,r=n.length;o<r;++o){let l=n[o];l[s]===this.id&&(!t||l.type===t)&&i.push(l)}return i}_resolveTickFontOptions(t){let n=this.options.ticks.setContext(this.getContext(t));return mt(n.font)}_maxDigits(){let t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}},Ks=class{constructor(t,n,s){this.type=t,this.scope=n,this.override=s,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){let n=Object.getPrototypeOf(t),s;Ib(n)&&(s=this.register(n));let i=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in i||(i[o]=t,zb(t,r,s),this.override&&st.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){let n=this.items,s=t.id,i=this.scope;s in n&&delete n[s],i&&s in st[i]&&(delete st[i][s],this.override&&delete gn[s])}};function zb(e,t,n){let s=js(Object.create(null),[n?st.get(n):{},st.get(t),e.defaults]);st.set(t,s),e.defaultRoutes&&Fb(t,e.defaultRoutes),e.descriptors&&st.describe(t,e.descriptors)}function Fb(e,t){Object.keys(t).forEach(n=>{let s=n.split("."),i=s.pop(),o=[e].concat(s).join("."),r=t[n].split("."),l=r.pop(),c=r.join(".");st.route(o,i,c,l)})}function Ib(e){return"id"in e&&"defaults"in e}var ju=class{constructor(){this.controllers=new Ks(kn,"datasets",!0),this.elements=new Ks(Ne,"elements"),this.plugins=new Ks(Object,"plugins"),this.scales=new Ks(ts,"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,n,s){[...n].forEach(i=>{let o=s||this._getRegistryForType(i);s||o.isForType(i)||o===this.plugins&&i.id?this._exec(t,o,i):B(i,r=>{let l=s||this._getRegistryForType(r);this._exec(t,l,r)})})}_exec(t,n,s){let i=Qr(t);U(s["before"+i],[],s),n[t](s),U(s["after"+i],[],s)}_getRegistryForType(t){for(let n=0;n<this._typedRegistries.length;n++){let s=this._typedRegistries[n];if(s.isForType(t))return s}return this.plugins}_get(t,n,s){let i=n.get(t);if(i===void 0)throw new Error('"'+t+'" is not a registered '+s+".");return i}},Ce=new ju,Bu=class{constructor(){this._init=[]}notify(t,n,s,i){n==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));let o=i?this._descriptors(t).filter(i):this._descriptors(t),r=this._notify(o,t,n,s);return n==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,n,s,i){i=i||{};for(let o of t){let r=o.plugin,l=r[s],c=[n,i,o.options];if(U(l,c,r)===!1&&i.cancelable)return!1}return!0}invalidate(){W(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;let n=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),n}_createDescriptors(t,n){let s=t&&t.config,i=I(s.options&&s.options.plugins,{}),o=jb(s);return i===!1&&!n?[]:Vb(t,o,i,n)}_notifyStateChanges(t){let n=this._oldCache||[],s=this._cache,i=(o,r)=>o.filter(l=>!r.some(c=>l.plugin.id===c.plugin.id));this._notify(i(n,s),t,"stop"),this._notify(i(s,n),t,"start")}};function jb(e){let t={},n=[],s=Object.keys(Ce.plugins.items);for(let o=0;o<s.length;o++)n.push(Ce.getPlugin(s[o]));let i=e.plugins||[];for(let o=0;o<i.length;o++){let r=i[o];n.indexOf(r)===-1&&(n.push(r),t[r.id]=!0)}return{plugins:n,localIds:t}}function Bb(e,t){return!t&&e===!1?null:e===!0?{}:e}function Vb(e,{plugins:t,localIds:n},s,i){let o=[],r=e.getContext();for(let l of t){let c=l.id,u=Bb(s[c],i);u!==null&&o.push({plugin:l,options:Hb(e.config,{plugin:l,local:n[c]},u,r)})}return o}function Hb(e,{plugin:t,local:n},s,i){let o=e.pluginScopeKeys(t),r=e.getOptionScopes(s,o);return n&&t.defaults&&r.push(t.defaults),e.createResolver(r,i,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Vu(e,t){let n=st.datasets[e]||{};return((t.datasets||{})[e]||{}).indexAxis||t.indexAxis||n.indexAxis||"x"}function Wb(e,t){let n=e;return e==="_index_"?n=t:e==="_value_"&&(n=t==="x"?"y":"x"),n}function $b(e,t){return e===t?"_index_":"_value_"}function Om(e){if(e==="x"||e==="y"||e==="r")return e}function Ub(e){if(e==="top"||e==="bottom")return"x";if(e==="left"||e==="right")return"y"}function Hu(e,...t){if(Om(e))return e;for(let n of t){let s=n.axis||Ub(n.position)||e.length>1&&Om(e[0].toLowerCase());if(s)return s}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Lm(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function Kb(e,t){if(t.data&&t.data.datasets){let n=t.data.datasets.filter(s=>s.xAxisID===e||s.yAxisID===e);if(n.length)return Lm(e,"x",n[0])||Lm(e,"y",n[0])}return{}}function Yb(e,t){let n=gn[e.type]||{scales:{}},s=t.scales||{},i=Vu(e.type,t),o=Object.create(null);return Object.keys(s).forEach(r=>{let l=s[r];if(!z(l))return console.error(`Invalid scale configuration for scale: ${r}`);if(l._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);let c=Hu(r,l,Kb(r,e),st.scales[l.type]),u=$b(c,i),d=n.scales||{};o[r]=Bs(Object.create(null),[{axis:c},l,d[c],d[u]])}),e.data.datasets.forEach(r=>{let l=r.type||e.type,c=r.indexAxis||Vu(l,t),d=(gn[l]||{}).scales||{};Object.keys(d).forEach(h=>{let f=Wb(h,c),g=r[f+"AxisID"]||f;o[g]=o[g]||Object.create(null),Bs(o[g],[{axis:f},s[g],d[h]])})}),Object.keys(o).forEach(r=>{let l=o[r];Bs(l,[st.scales[l.type],st.scale])}),o}function ug(e){let t=e.options||(e.options={});t.plugins=I(t.plugins,{}),t.scales=Yb(e,t)}function dg(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function Xb(e){return e=e||{},e.data=dg(e.data),ug(e),e}var Am=new Map,hg=new Set;function ua(e,t){let n=Am.get(e);return n||(n=t(),Am.set(e,n),hg.add(n)),n}var co=(e,t,n)=>{let s=pn(t,n);s!==void 0&&e.add(s)},Wu=class{constructor(t){this._config=Xb(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=dg(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),ug(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return ua(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return ua(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return ua(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){let n=t.id,s=this.type;return ua(`${s}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){let s=this._scopeCache,i=s.get(t);return(!i||n)&&(i=new Map,s.set(t,i)),i}getOptionScopes(t,n,s){let{options:i,type:o}=this,r=this._cachedScopes(t,s),l=r.get(n);if(l)return l;let c=new Set;n.forEach(d=>{t&&(c.add(t),d.forEach(h=>co(c,t,h))),d.forEach(h=>co(c,i,h)),d.forEach(h=>co(c,gn[o]||{},h)),d.forEach(h=>co(c,st,h)),d.forEach(h=>co(c,ta,h))});let u=Array.from(c);return u.length===0&&u.push(Object.create(null)),hg.has(n)&&r.set(n,u),u}chartOptionScopes(){let{options:t,type:n}=this;return[t,gn[n]||{},st.datasets[n]||{},{type:n},st,ta]}resolveNamedOptions(t,n,s,i=[""]){let o={$shared:!0},{resolver:r,subPrefixes:l}=zm(this._resolverCache,t,i),c=r;if(Qb(r,n)){o.$shared=!1,s=je(s)?s():s;let u=this.createResolver(t,s,l);c=Kn(r,s,u)}for(let u of n)o[u]=c[u];return o}createResolver(t,n,s=[""],i){let{resolver:o}=zm(this._resolverCache,t,s);return z(n)?Kn(o,n,void 0,i):o}};function zm(e,t,n){let s=e.get(t);s||(s=new Map,e.set(t,s));let i=n.join(),o=s.get(i);return o||(o={resolver:ia(t,n),subPrefixes:n.filter(l=>!l.toLowerCase().includes("hover"))},s.set(i,o)),o}var Gb=e=>z(e)&&Object.getOwnPropertyNames(e).some(t=>je(e[t]));function Qb(e,t){let{isScriptable:n,isIndexable:s}=vu(e);for(let i of t){let o=n(i),r=s(i),l=(r||o)&&e[i];if(o&&(je(l)||Gb(l))||r&&q(l))return!0}return!1}var Zb="4.4.7",qb=["top","bottom","left","right","chartArea"];function Fm(e,t){return e==="top"||e==="bottom"||qb.indexOf(e)===-1&&t==="x"}function Im(e,t){return function(n,s){return n[e]===s[e]?n[t]-s[t]:n[e]-s[e]}}function jm(e){let t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),U(n&&n.onComplete,[e],t)}function Jb(e){let t=e.chart,n=t.options.animation;U(n&&n.onProgress,[e],t)}function fg(e){return oa()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}var ya={},Bm=e=>{let t=fg(e);return Object.values(ya).filter(n=>n.canvas===t).pop()};function tx(e,t,n){let s=Object.keys(e);for(let i of s){let o=+i;if(o>=t){let r=e[i];delete e[i],(n>0||o>t)&&(e[o+n]=r)}}}function ex(e,t,n,s){return!n||e.type==="mouseout"?null:s?t:e}function da(e,t,n){return e.options.clip?e[n]:t[n]}function nx(e,t){let{xScale:n,yScale:s}=e;return n&&s?{left:da(n,t,"left"),right:da(n,t,"right"),top:da(s,t,"top"),bottom:da(s,t,"bottom")}:t}var Vt=class{static register(...t){Ce.add(...t),Vm()}static unregister(...t){Ce.remove(...t),Vm()}constructor(t,n){let s=this.config=new Wu(n),i=fg(t),o=Bm(i);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");let r=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||wb(i)),this.platform.updateConfig(s);let l=this.platform.acquireContext(i,r.aspectRatio),c=l&&l.canvas,u=c&&c.height,d=c&&c.width;if(this.id=Up(),this.ctx=l,this.canvas=c,this.width=d,this.height=u,this._options=r,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 Bu,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=sm(h=>this.update(h),r.resizeDelay||0),this._dataChanges=[],ya[this.id]=this,!l||!c){console.error("Failed to create chart: can't acquire context from the given item");return}He.listen(this,"complete",jm),He.listen(this,"progress",Jb),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:n},width:s,height:i,_aspectRatio:o}=this;return W(t)?n&&o?o:i?s/i: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 Ce}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():xu(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return pu(this.canvas,this.ctx),this}stop(){return He.stop(this),this}resize(t,n){He.running(this)?this._resizeBeforeDraw={width:t,height:n}:this._resize(t,n)}_resize(t,n){let s=this.options,i=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(i,t,n,o),l=s.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,xu(this,l,!0)&&(this.notifyPlugins("resize",{size:r}),U(s.onResize,[this,r],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let n=this.options.scales||{};B(n,(s,i)=>{s.id=i})}buildOrUpdateScales(){let t=this.options,n=t.scales,s=this.scales,i=Object.keys(s).reduce((r,l)=>(r[l]=!1,r),{}),o=[];n&&(o=o.concat(Object.keys(n).map(r=>{let l=n[r],c=Hu(r,l),u=c==="r",d=c==="x";return{options:l,dposition:u?"chartArea":d?"bottom":"left",dtype:u?"radialLinear":d?"category":"linear"}}))),B(o,r=>{let l=r.options,c=l.id,u=Hu(c,l),d=I(l.type,r.dtype);(l.position===void 0||Fm(l.position,u)!==Fm(r.dposition))&&(l.position=r.dposition),i[c]=!0;let h=null;if(c in s&&s[c].type===d)h=s[c];else{let f=Ce.getScale(d);h=new f({id:c,type:d,ctx:this.ctx,chart:this}),s[h.id]=h}h.init(l,t)}),B(i,(r,l)=>{r||delete s[l]}),B(s,r=>{Sn.configure(this,r,r.options),Sn.addBox(this,r)})}_updateMetasets(){let t=this._metasets,n=this.data.datasets.length,s=t.length;if(t.sort((i,o)=>i.index-o.index),s>n){for(let i=n;i<s;++i)this._destroyDatasetMeta(i);t.splice(n,s-n)}this._sortedMetasets=t.slice(0).sort(Im("order","index"))}_removeUnreferencedMetasets(){let{_metasets:t,data:{datasets:n}}=this;t.length>n.length&&delete this._stacks,t.forEach((s,i)=>{n.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(i)})}buildOrUpdateControllers(){let t=[],n=this.data.datasets,s,i;for(this._removeUnreferencedMetasets(),s=0,i=n.length;s<i;s++){let o=n[s],r=this.getDatasetMeta(s),l=o.type||this.config.type;if(r.type&&r.type!==l&&(this._destroyDatasetMeta(s),r=this.getDatasetMeta(s)),r.type=l,r.indexAxis=o.indexAxis||Vu(l,this.options),r.order=o.order||0,r.index=s,r.label=""+o.label,r.visible=this.isDatasetVisible(s),r.controller)r.controller.updateIndex(s),r.controller.linkScales();else{let c=Ce.getController(l),{datasetElementType:u,dataElementType:d}=st.datasets[l];Object.assign(c,{dataElementType:Ce.getElement(d),datasetElementType:u&&Ce.getElement(u)}),r.controller=new c(this,s),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){B(this.data.datasets,(t,n)=>{this.getDatasetMeta(n).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let n=this.config;n.update();let s=this._options=n.createResolver(n.chartOptionScopes(),this.getContext()),i=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let u=0,d=this.data.datasets.length;u<d;u++){let{controller:h}=this.getDatasetMeta(u),f=!i&&o.indexOf(h)===-1;h.buildOrUpdateElements(f),r=Math.max(+h.getMaxOverflow(),r)}r=this._minPadding=s.layout.autoPadding?r:0,this._updateLayout(r),i||B(o,u=>{u.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Im("z","_idx"));let{_active:l,_lastEvent:c}=this;c?this._eventHandler(c,!0):l.length&&this._updateHoverStyles(l,l,!0),this.render()}_updateScales(){B(this.scales,t=>{Sn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,n=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!su(n,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,n=this._getUniformDataChanges()||[];for(let{method:s,start:i,count:o}of n){let r=s==="_removeElements"?-o:o;tx(t,i,r)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let n=this.data.datasets.length,s=o=>new Set(t.filter(r=>r[0]===o).map((r,l)=>l+","+r.splice(1).join(","))),i=s(0);for(let o=1;o<n;o++)if(!su(i,s(o)))return;return Array.from(i).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Sn.update(this,this.width,this.height,t);let n=this.chartArea,s=n.width<=0||n.height<=0;this._layers=[],B(this.boxes,i=>{s&&i.position==="chartArea"||(i.configure&&i.configure(),this._layers.push(...i._layers()))},this),this._layers.forEach((i,o)=>{i._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let n=0,s=this.data.datasets.length;n<s;++n)this.getDatasetMeta(n).controller.configure();for(let n=0,s=this.data.datasets.length;n<s;++n)this._updateDataset(n,je(t)?t({datasetIndex:n}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,n){let s=this.getDatasetMeta(t),i={meta:s,index:t,mode:n,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",i)!==!1&&(s.controller._update(n),i.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",i))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(He.has(this)?this.attached&&!He.running(this)&&He.start(this):(this.draw(),jm({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){let{width:s,height:i}=this._resizeBeforeDraw;this._resizeBeforeDraw=null,this._resize(s,i)}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let n=this._layers;for(t=0;t<n.length&&n[t].z<=0;++t)n[t].draw(this.chartArea);for(this._drawDatasets();t<n.length;++t)n[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){let n=this._sortedMetasets,s=[],i,o;for(i=0,o=n.length;i<o;++i){let r=n[i];(!t||r.visible)&&s.push(r)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let t=this.getSortedVisibleDatasetMetas();for(let n=t.length-1;n>=0;--n)this._drawDataset(t[n]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let n=this.ctx,s=t._clip,i=!s.disabled,o=nx(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(i&&ea(n,{left:s.left===!1?0:o.left-s.left,right:s.right===!1?this.width:o.right+s.right,top:s.top===!1?0:o.top-s.top,bottom:s.bottom===!1?this.height:o.bottom+s.bottom}),t.controller.draw(),i&&na(n),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return Yn(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,n,s,i){let o=sb.modes[n];return typeof o=="function"?o(this,t,s,i):[]}getDatasetMeta(t){let n=this.data.datasets[t],s=this._metasets,i=s.filter(o=>o&&o._dataset===n).pop();return i||(i={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:n&&n.order||0,index:t,_dataset:n,_parsed:[],_sorted:!1},s.push(i)),i}getContext(){return this.$context||(this.$context=_n(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let n=this.data.datasets[t];if(!n)return!1;let s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!n.hidden}setDatasetVisibility(t,n){let s=this.getDatasetMeta(t);s.hidden=!n}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,n,s){let i=s?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,i);Vs(n)?(o.data[n].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),r.update(o,{visible:s}),this.update(l=>l.datasetIndex===t?i:void 0))}hide(t,n){this._updateVisibility(t,n,!1)}show(t,n){this._updateVisibility(t,n,!0)}_destroyDatasetMeta(t){let n=this._metasets[t];n&&n.controller&&n.controller._destroy(),delete this._metasets[t]}_stop(){let t,n;for(this.stop(),He.remove(this),t=0,n=this.data.datasets.length;t<n;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:t,ctx:n}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),pu(t,n),this.platform.releaseContext(n),this.canvas=null,this.ctx=null),delete ya[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let t=this._listeners,n=this.platform,s=(o,r)=>{n.addEventListener(this,o,r),t[o]=r},i=(o,r,l)=>{o.offsetX=r,o.offsetY=l,this._eventHandler(o)};B(this.options.events,o=>s(o,i))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,n=this.platform,s=(c,u)=>{n.addEventListener(this,c,u),t[c]=u},i=(c,u)=>{t[c]&&(n.removeEventListener(this,c,u),delete t[c])},o=(c,u)=>{this.canvas&&this.resize(c,u)},r,l=()=>{i("attach",l),this.attached=!0,this.resize(),s("resize",o),s("detach",r)};r=()=>{this.attached=!1,i("resize",o),this._stop(),this._resize(0,0),s("attach",l)},n.isAttached(this.canvas)?l():r()}unbindEvents(){B(this._listeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._listeners={},B(this._responsiveListeners,(t,n)=>{this.platform.removeEventListener(this,n,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,n,s){let i=s?"set":"remove",o,r,l,c;for(n==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+i+"DatasetHoverStyle"]()),l=0,c=t.length;l<c;++l){r=t[l];let u=r&&this.getDatasetMeta(r.datasetIndex).controller;u&&u[i+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let n=this._active||[],s=t.map(({datasetIndex:o,index:r})=>{let l=this.getDatasetMeta(o);if(!l)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:l.data[r],index:r}});!qi(s,n)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,n))}notifyPlugins(t,n,s){return this._plugins.notify(this,t,n,s)}isPluginEnabled(t){return this._plugins._cache.filter(n=>n.plugin.id===t).length===1}_updateHoverStyles(t,n,s){let i=this.options.hover,o=(c,u)=>c.filter(d=>!u.some(h=>d.datasetIndex===h.datasetIndex&&d.index===h.index)),r=o(n,t),l=s?t:o(t,n);r.length&&this.updateHoverStyle(r,i.mode,!1),l.length&&i.mode&&this.updateHoverStyle(l,i.mode,!0)}_eventHandler(t,n){let s={event:t,replay:n,cancelable:!0,inChartArea:this.isPointInArea(t)},i=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,i)===!1)return;let o=this._handleEvent(t,n,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,i),(o||s.changed)&&this.render(),this}_handleEvent(t,n,s){let{_active:i=[],options:o}=this,r=n,l=this._getActiveElements(t,i,s,r),c=Xp(t),u=ex(t,this._lastEvent,s,c);s&&(this._lastEvent=null,U(o.onHover,[t,l,this],this),c&&U(o.onClick,[t,l,this],this));let d=!qi(l,i);return(d||n)&&(this._active=l,this._updateHoverStyles(l,i,n)),this._lastEvent=u,d}_getActiveElements(t,n,s,i){if(t.type==="mouseout")return[];if(!s)return n;let o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,i)}};R(Vt,"defaults",st),R(Vt,"instances",ya),R(Vt,"overrides",gn),R(Vt,"registry",Ce),R(Vt,"version",Zb),R(Vt,"getChart",Bm);function Vm(){return B(Vt.instances,e=>e._plugins.invalidate())}function sx(e,t,n){let{startAngle:s,pixelMargin:i,x:o,y:r,outerRadius:l,innerRadius:c}=t,u=i/l;e.beginPath(),e.arc(o,r,l,s-u,n+u),c>i?(u=i/c,e.arc(o,r,c,n+u,s-u,!0)):e.arc(o,r,i,n+ot,s-ot),e.closePath(),e.clip()}function ix(e){return sa(e,["outerStart","outerEnd","innerStart","innerEnd"])}function ox(e,t,n,s){let i=ix(e.options.borderRadius),o=(n-t)/2,r=Math.min(o,s*t/2),l=c=>{let u=(n-Math.min(o,c))*s/2;return Rt(c,0,Math.min(o,u))};return{outerStart:l(i.outerStart),outerEnd:l(i.outerEnd),innerStart:Rt(i.innerStart,0,r),innerEnd:Rt(i.innerEnd,0,r)}}function Ws(e,t,n,s){return{x:n+e*Math.cos(t),y:s+e*Math.sin(t)}}function xa(e,t,n,s,i,o){let{x:r,y:l,startAngle:c,pixelMargin:u,innerRadius:d}=t,h=Math.max(t.outerRadius+s+n-u,0),f=d>0?d+s+n+u:0,g=0,y=i-c;if(s){let $=d>0?d-s:0,Q=h>0?h-s:0,at=($+Q)/2,ie=at!==0?y*at/(at+s):y;g=(y-ie)/2}let _=Math.max(.001,y*h-n/rt)/h,b=(y-_)/2,p=c+b+g,m=i-b-g,{outerStart:v,outerEnd:x,innerStart:w,innerEnd:S}=ox(t,f,h,m-p),C=h-v,M=h-x,D=p+v/C,E=m-x/M,O=f+w,A=f+S,gt=p+w/O,Wt=m-S/A;if(e.beginPath(),o){let $=(D+E)/2;if(e.arc(r,l,h,D,$),e.arc(r,l,h,$,E),x>0){let bt=Ws(M,E,r,l);e.arc(bt.x,bt.y,x,E,m+ot)}let Q=Ws(A,m,r,l);if(e.lineTo(Q.x,Q.y),S>0){let bt=Ws(A,Wt,r,l);e.arc(bt.x,bt.y,S,m+ot,Wt+Math.PI)}let at=(m-S/f+(p+w/f))/2;if(e.arc(r,l,f,m-S/f,at,!0),e.arc(r,l,f,at,p+w/f,!0),w>0){let bt=Ws(O,gt,r,l);e.arc(bt.x,bt.y,w,gt+Math.PI,p-ot)}let ie=Ws(C,p,r,l);if(e.lineTo(ie.x,ie.y),v>0){let bt=Ws(C,D,r,l);e.arc(bt.x,bt.y,v,p-ot,D)}}else{e.moveTo(r,l);let $=Math.cos(D)*h+r,Q=Math.sin(D)*h+l;e.lineTo($,Q);let at=Math.cos(E)*h+r,ie=Math.sin(E)*h+l;e.lineTo(at,ie)}e.closePath()}function rx(e,t,n,s,i){let{fullCircles:o,startAngle:r,circumference:l}=t,c=t.endAngle;if(o){xa(e,t,n,s,c,i);for(let u=0;u<o;++u)e.fill();isNaN(l)||(c=r+(l%J||J))}return xa(e,t,n,s,c,i),e.fill(),c}function ax(e,t,n,s,i){let{fullCircles:o,startAngle:r,circumference:l,options:c}=t,{borderWidth:u,borderJoinStyle:d,borderDash:h,borderDashOffset:f}=c,g=c.borderAlign==="inner";if(!u)return;e.setLineDash(h||[]),e.lineDashOffset=f,g?(e.lineWidth=u*2,e.lineJoin=d||"round"):(e.lineWidth=u,e.lineJoin=d||"bevel");let y=t.endAngle;if(o){xa(e,t,n,s,y,i);for(let _=0;_<o;++_)e.stroke();isNaN(l)||(y=r+(l%J||J))}g&&sx(e,t,y),o||(xa(e,t,n,s,y,i),e.stroke())}var wn=class extends Ne{constructor(n){super();R(this,"circumference");R(this,"endAngle");R(this,"fullCircles");R(this,"innerRadius");R(this,"outerRadius");R(this,"pixelMargin");R(this,"startAngle");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,n&&Object.assign(this,n)}inRange(n,s,i){let o=this.getProps(["x","y"],i),{angle:r,distance:l}=au(o,{x:n,y:s}),{startAngle:c,endAngle:u,innerRadius:d,outerRadius:h,circumference:f}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),g=(this.options.spacing+this.options.borderWidth)/2,y=I(f,u-c),_=eo(r,c,u)&&c!==u,b=y>=J||_,p=mn(l,d+g,h+g);return b&&p}getCenterPoint(n){let{x:s,y:i,startAngle:o,endAngle:r,innerRadius:l,outerRadius:c}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],n),{offset:u,spacing:d}=this.options,h=(o+r)/2,f=(l+c+d+u)/2;return{x:s+Math.cos(h)*f,y:i+Math.sin(h)*f}}tooltipPosition(n){return this.getCenterPoint(n)}draw(n){let{options:s,circumference:i}=this,o=(s.offset||0)/4,r=(s.spacing||0)/2,l=s.circular;if(this.pixelMargin=s.borderAlign==="inner"?.33:0,this.fullCircles=i>J?Math.floor(i/J):0,i===0||this.innerRadius<0||this.outerRadius<0)return;n.save();let c=(this.startAngle+this.endAngle)/2;n.translate(Math.cos(c)*o,Math.sin(c)*o);let u=1-Math.sin(Math.min(rt,i||0)),d=o*u;n.fillStyle=s.backgroundColor,n.strokeStyle=s.borderColor,rx(n,this,d,r,l),ax(n,this,d,r,l),n.restore()}};R(wn,"id","arc"),R(wn,"defaults",{borderAlign:"center",borderColor:"#fff",borderDash:[],borderDashOffset:0,borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0}),R(wn,"defaultRoutes",{backgroundColor:"backgroundColor"}),R(wn,"descriptors",{_scriptable:!0,_indexable:n=>n!=="borderDash"});function pg(e,t){let{x:n,y:s,base:i,width:o,height:r}=e.getProps(["x","y","base","width","height"],t),l,c,u,d,h;return e.horizontal?(h=r/2,l=Math.min(n,i),c=Math.max(n,i),u=s-h,d=s+h):(h=o/2,l=n-h,c=n+h,u=Math.min(s,i),d=Math.max(s,i)),{left:l,top:u,right:c,bottom:d}}function Cn(e,t,n,s){return e?0:Rt(t,n,s)}function lx(e,t,n){let s=e.options.borderWidth,i=e.borderSkipped,o=yu(s);return{t:Cn(i.top,o.top,0,n),r:Cn(i.right,o.right,0,t),b:Cn(i.bottom,o.bottom,0,n),l:Cn(i.left,o.left,0,t)}}function cx(e,t,n){let{enableBorderRadius:s}=e.getProps(["enableBorderRadius"]),i=e.options.borderRadius,o=vn(i),r=Math.min(t,n),l=e.borderSkipped,c=s||z(i);return{topLeft:Cn(!c||l.top||l.left,o.topLeft,0,r),topRight:Cn(!c||l.top||l.right,o.topRight,0,r),bottomLeft:Cn(!c||l.bottom||l.left,o.bottomLeft,0,r),bottomRight:Cn(!c||l.bottom||l.right,o.bottomRight,0,r)}}function ux(e){let t=pg(e),n=t.right-t.left,s=t.bottom-t.top,i=lx(e,n/2,s/2),o=cx(e,n/2,s/2);return{outer:{x:t.left,y:t.top,w:n,h:s,radius:o},inner:{x:t.left+i.l,y:t.top+i.t,w:n-i.l-i.r,h:s-i.t-i.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(i.t,i.l)),topRight:Math.max(0,o.topRight-Math.max(i.t,i.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(i.b,i.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(i.b,i.r))}}}}function Ru(e,t,n,s){let i=t===null,o=n===null,l=e&&!(i&&o)&&pg(e,s);return l&&(i||mn(t,l.left,l.right))&&(o||mn(n,l.top,l.bottom))}function dx(e){return e.topLeft||e.topRight||e.bottomLeft||e.bottomRight}function hx(e,t){e.rect(t.x,t.y,t.w,t.h)}function Ou(e,t,n={}){let s=e.x!==n.x?-t:0,i=e.y!==n.y?-t:0,o=(e.x+e.w!==n.x+n.w?t:0)-s,r=(e.y+e.h!==n.y+n.h?t:0)-i;return{x:e.x+s,y:e.y+i,w:e.w+o,h:e.h+r,radius:e.radius}}var Jn=class extends Ne{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){let{inflateAmount:n,options:{borderColor:s,backgroundColor:i}}=this,{inner:o,outer:r}=ux(this),l=dx(r.radius)?Hs:hx;t.save(),(r.w!==o.w||r.h!==o.h)&&(t.beginPath(),l(t,Ou(r,n,o)),t.clip(),l(t,Ou(o,-n,r)),t.fillStyle=s,t.fill("evenodd")),t.beginPath(),l(t,Ou(o,n)),t.fillStyle=i,t.fill(),t.restore()}inRange(t,n,s){return Ru(this,t,n,s)}inXRange(t,n){return Ru(this,t,null,n)}inYRange(t,n){return Ru(this,null,t,n)}getCenterPoint(t){let{x:n,y:s,base:i,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(n+i)/2:n,y:o?s:(s+i)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}};R(Jn,"id","bar"),R(Jn,"defaults",{borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0}),R(Jn,"defaultRoutes",{backgroundColor:"backgroundColor",borderColor:"borderColor"});var Hm=(e,t)=>{let{boxHeight:n=t,boxWidth:s=t}=e;return e.usePointStyle&&(n=Math.min(n,t),s=e.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:n,itemHeight:Math.max(t,n)}},fx=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index,wa=class extends Ne{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,n,s){this.maxWidth=t,this.maxHeight=n,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(){let t=this.options.labels||{},n=U(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(s=>t.filter(s,this.chart.data))),t.sort&&(n=n.sort((s,i)=>t.sort(s,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){let{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}let s=t.labels,i=mt(s.font),o=i.size,r=this._computeTitleHeight(),{boxWidth:l,itemHeight:c}=Hm(s,o),u,d;n.font=i.string,this.isHorizontal()?(u=this.maxWidth,d=this._fitRows(r,o,l,c)+10):(d=this.maxHeight,u=this._fitCols(r,i,l,c)+10),this.width=Math.min(u,t.maxWidth||this.maxWidth),this.height=Math.min(d,t.maxHeight||this.maxHeight)}_fitRows(t,n,s,i){let{ctx:o,maxWidth:r,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],u=this.lineWidths=[0],d=i+l,h=t;o.textAlign="left",o.textBaseline="middle";let f=-1,g=-d;return this.legendItems.forEach((y,_)=>{let b=s+n/2+o.measureText(y.text).width;(_===0||u[u.length-1]+b+2*l>r)&&(h+=d,u[u.length-(_>0?0:1)]=0,g+=d,f++),c[_]={left:0,top:g,row:f,width:b,height:i},u[u.length-1]+=b+l}),h}_fitCols(t,n,s,i){let{ctx:o,maxHeight:r,options:{labels:{padding:l}}}=this,c=this.legendHitBoxes=[],u=this.columnSizes=[],d=r-t,h=l,f=0,g=0,y=0,_=0;return this.legendItems.forEach((b,p)=>{let{itemWidth:m,itemHeight:v}=px(s,n,o,b,i);p>0&&g+v+2*l>d&&(h+=f+l,u.push({width:f,height:g}),y+=f+l,_++,f=g=0),c[p]={left:y,top:g,col:_,width:m,height:v},f=Math.max(f,m),g+=v+l}),h+=f,u.push({width:f,height:g}),h}adjustHitBoxes(){if(!this.options.display)return;let t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:s,labels:{padding:i},rtl:o}}=this,r=Gn(o,this.left,this.width);if(this.isHorizontal()){let l=0,c=jt(s,this.left+i,this.right-this.lineWidths[l]);for(let u of n)l!==u.row&&(l=u.row,c=jt(s,this.left+i,this.right-this.lineWidths[l])),u.top+=this.top+t+i,u.left=r.leftForLtr(r.x(c),u.width),c+=u.width+i}else{let l=0,c=jt(s,this.top+t+i,this.bottom-this.columnSizes[l].height);for(let u of n)u.col!==l&&(l=u.col,c=jt(s,this.top+t+i,this.bottom-this.columnSizes[l].height)),u.top=c,u.left+=this.left+i,u.left=r.leftForLtr(r.x(u.left),u.width),c+=u.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){let t=this.ctx;ea(t,this),this._draw(),na(t)}}_draw(){let{options:t,columnSizes:n,lineWidths:s,ctx:i}=this,{align:o,labels:r}=t,l=st.color,c=Gn(t.rtl,this.left,this.width),u=mt(r.font),{padding:d}=r,h=u.size,f=h/2,g;this.drawTitle(),i.textAlign=c.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=u.string;let{boxWidth:y,boxHeight:_,itemHeight:b}=Hm(r,h),p=function(S,C,M){if(isNaN(y)||y<=0||isNaN(_)||_<0)return;i.save();let D=I(M.lineWidth,1);if(i.fillStyle=I(M.fillStyle,l),i.lineCap=I(M.lineCap,"butt"),i.lineDashOffset=I(M.lineDashOffset,0),i.lineJoin=I(M.lineJoin,"miter"),i.lineWidth=D,i.strokeStyle=I(M.strokeStyle,l),i.setLineDash(I(M.lineDash,[])),r.usePointStyle){let E={radius:_*Math.SQRT2/2,pointStyle:M.pointStyle,rotation:M.rotation,borderWidth:D},O=c.xPlus(S,y/2),A=C+f;gu(i,E,O,A,r.pointStyleWidth&&y)}else{let E=C+Math.max((h-_)/2,0),O=c.leftForLtr(S,y),A=vn(M.borderRadius);i.beginPath(),Object.values(A).some(gt=>gt!==0)?Hs(i,{x:O,y:E,w:y,h:_,radius:A}):i.rect(O,E,y,_),i.fill(),D!==0&&i.stroke()}i.restore()},m=function(S,C,M){Xn(i,M.text,S,C+b/2,u,{strikethrough:M.hidden,textAlign:c.textAlign(M.textAlign)})},v=this.isHorizontal(),x=this._computeTitleHeight();v?g={x:jt(o,this.left+d,this.right-s[0]),y:this.top+d+x,line:0}:g={x:this.left+d,y:jt(o,this.top+x+d,this.bottom-n[0].height),line:0},ku(this.ctx,t.textDirection);let w=b+d;this.legendItems.forEach((S,C)=>{i.strokeStyle=S.fontColor,i.fillStyle=S.fontColor;let M=i.measureText(S.text).width,D=c.textAlign(S.textAlign||(S.textAlign=r.textAlign)),E=y+f+M,O=g.x,A=g.y;c.setWidth(this.width),v?C>0&&O+E+d>this.right&&(A=g.y+=w,g.line++,O=g.x=jt(o,this.left+d,this.right-s[g.line])):C>0&&A+w>this.bottom&&(O=g.x=O+n[g.line].width+d,g.line++,A=g.y=jt(o,this.top+x+d,this.bottom-n[g.line].height));let gt=c.x(O);if(p(gt,A,S),O=im(D,O+y+f,v?O+E:this.right,t.rtl),m(c.x(O),A,S),v)g.x+=E+d;else if(typeof S.text!="string"){let Wt=u.lineHeight;g.y+=mg(S,Wt)+d}else g.y+=w}),Su(this.ctx,t.textDirection)}drawTitle(){let t=this.options,n=t.title,s=mt(n.font),i=Nt(n.padding);if(!n.display)return;let o=Gn(t.rtl,this.left,this.width),r=this.ctx,l=n.position,c=s.size/2,u=i.top+c,d,h=this.left,f=this.width;if(this.isHorizontal())f=Math.max(...this.lineWidths),d=this.top+u,h=jt(t.align,h,this.right-f);else{let y=this.columnSizes.reduce((_,b)=>Math.max(_,b.height),0);d=u+jt(t.align,this.top,this.bottom-y-t.labels.padding-this._computeTitleHeight())}let g=jt(l,h,h+f);r.textAlign=o.textAlign(hu(l)),r.textBaseline="middle",r.strokeStyle=n.color,r.fillStyle=n.color,r.font=s.string,Xn(r,n.text,g,d,s)}_computeTitleHeight(){let t=this.options.title,n=mt(t.font),s=Nt(t.padding);return t.display?n.lineHeight+s.height:0}_getLegendItemAt(t,n){let s,i,o;if(mn(t,this.left,this.right)&&mn(n,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;s<o.length;++s)if(i=o[s],mn(t,i.left,i.left+i.width)&&mn(n,i.top,i.top+i.height))return this.legendItems[s]}return null}handleEvent(t){let n=this.options;if(!yx(t.type,n))return;let s=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){let i=this._hoveredItem,o=fx(i,s);i&&!o&&U(n.onLeave,[t,i,this],this),this._hoveredItem=s,s&&!o&&U(n.onHover,[t,s,this],this)}else s&&U(n.onClick,[t,s,this],this)}};function px(e,t,n,s,i){let o=mx(s,e,t,n),r=gx(i,s,t.lineHeight);return{itemWidth:o,itemHeight:r}}function mx(e,t,n,s){let i=e.text;return i&&typeof i!="string"&&(i=i.reduce((o,r)=>o.length>r.length?o:r)),t+n.size/2+s.measureText(i).width}function gx(e,t,n){let s=e;return typeof t.text!="string"&&(s=mg(t,n)),s}function mg(e,t){let n=e.text?e.text.length:0;return t*n}function yx(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var gg={id:"legend",_element:wa,start(e,t,n){let s=e.legend=new wa({ctx:e.ctx,options:n,chart:e});Sn.configure(e,s,n),Sn.addBox(e,s)},stop(e){Sn.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){let s=e.legend;Sn.configure(e,s,n),s.options=n},afterUpdate(e){let 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,n){let s=t.datasetIndex,i=n.chart;i.isDatasetVisible(s)?(i.hide(s),t.hidden=!0):(i.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){let t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:s,textAlign:i,color:o,useBorderRadius:r,borderRadius:l}}=e.legend.options;return e._getSortedDatasetMetas().map(c=>{let u=c.controller.getStyle(n?0:void 0),d=Nt(u.borderWidth);return{text:t[c.index].label,fillStyle:u.backgroundColor,fontColor:o,hidden:!c.visible,lineCap:u.borderCapStyle,lineDash:u.borderDash,lineDashOffset:u.borderDashOffset,lineJoin:u.borderJoinStyle,lineWidth:(d.width+d.height)/4,strokeStyle:u.borderColor,pointStyle:s||u.pointStyle,rotation:u.rotation,textAlign:i||u.textAlign,borderRadius:r&&(l||u.borderRadius),datasetIndex:c.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)}}};var ho={average(e){if(!e.length)return!1;let t,n,s=new Set,i=0,o=0;for(t=0,n=e.length;t<n;++t){let l=e[t].element;if(l&&l.hasValue()){let c=l.tooltipPosition();s.add(c.x),i+=c.y,++o}}return o===0||s.size===0?!1:{x:[...s].reduce((l,c)=>l+c)/s.size,y:i/o}},nearest(e,t){if(!e.length)return!1;let n=t.x,s=t.y,i=Number.POSITIVE_INFINITY,o,r,l;for(o=0,r=e.length;o<r;++o){let c=e[o].element;if(c&&c.hasValue()){let u=c.getCenterPoint(),d=Zp(t,u);d<i&&(i=d,l=c)}}if(l){let c=l.tooltipPosition();n=c.x,s=c.y}return{x:n,y:s}}};function Se(e,t){return t&&(q(t)?Array.prototype.push.apply(e,t):e.push(t)),e}function We(e){return(typeof e=="string"||e instanceof String)&&e.indexOf(`
`)>-1?e.split(`
`):e}function vx(e,t){let{element:n,datasetIndex:s,index:i}=t,o=e.getDatasetMeta(s).controller,{label:r,value:l}=o.getLabelAndValue(i);return{chart:e,label:r,parsed:o.getParsed(i),raw:e.data.datasets[s].data[i],formattedValue:l,dataset:o.getDataset(),dataIndex:i,datasetIndex:s,element:n}}function Wm(e,t){let n=e.chart.ctx,{body:s,footer:i,title:o}=e,{boxWidth:r,boxHeight:l}=t,c=mt(t.bodyFont),u=mt(t.titleFont),d=mt(t.footerFont),h=o.length,f=i.length,g=s.length,y=Nt(t.padding),_=y.height,b=0,p=s.reduce((x,w)=>x+w.before.length+w.lines.length+w.after.length,0);if(p+=e.beforeBody.length+e.afterBody.length,h&&(_+=h*u.lineHeight+(h-1)*t.titleSpacing+t.titleMarginBottom),p){let x=t.displayColors?Math.max(l,c.lineHeight):c.lineHeight;_+=g*x+(p-g)*c.lineHeight+(p-1)*t.bodySpacing}f&&(_+=t.footerMarginTop+f*d.lineHeight+(f-1)*t.footerSpacing);let m=0,v=function(x){b=Math.max(b,n.measureText(x).width+m)};return n.save(),n.font=u.string,B(e.title,v),n.font=c.string,B(e.beforeBody.concat(e.afterBody),v),m=t.displayColors?r+2+t.boxPadding:0,B(s,x=>{B(x.before,v),B(x.lines,v),B(x.after,v)}),m=0,n.font=d.string,B(e.footer,v),n.restore(),b+=y.width,{width:b,height:_}}function _x(e,t){let{y:n,height:s}=t;return n<s/2?"top":n>e.height-s/2?"bottom":"center"}function bx(e,t,n,s){let{x:i,width:o}=s,r=n.caretSize+n.caretPadding;if(e==="left"&&i+o+r>t.width||e==="right"&&i-o-r<0)return!0}function xx(e,t,n,s){let{x:i,width:o}=n,{width:r,chartArea:{left:l,right:c}}=e,u="center";return s==="center"?u=i<=(l+c)/2?"left":"right":i<=o/2?u="left":i>=r-o/2&&(u="right"),bx(u,e,t,n)&&(u="center"),u}function $m(e,t,n){let s=n.yAlign||t.yAlign||_x(e,n);return{xAlign:n.xAlign||t.xAlign||xx(e,t,n,s),yAlign:s}}function wx(e,t){let{x:n,width:s}=e;return t==="right"?n-=s:t==="center"&&(n-=s/2),n}function kx(e,t,n){let{y:s,height:i}=e;return t==="top"?s+=n:t==="bottom"?s-=i+n:s-=i/2,s}function Um(e,t,n,s){let{caretSize:i,caretPadding:o,cornerRadius:r}=e,{xAlign:l,yAlign:c}=n,u=i+o,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:g}=vn(r),y=wx(t,l),_=kx(t,c,u);return c==="center"?l==="left"?y+=u:l==="right"&&(y-=u):l==="left"?y-=Math.max(d,f)+i:l==="right"&&(y+=Math.max(h,g)+i),{x:Rt(y,0,s.width-t.width),y:Rt(_,0,s.height-t.height)}}function ha(e,t,n){let s=Nt(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-s.right:e.x+s.left}function Km(e){return Se([],We(e))}function Sx(e,t,n){return _n(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Ym(e,t){let n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}var yg={beforeTitle:ke,title(e){if(e.length>0){let t=e[0],n=t.chart.data.labels,s=n?n.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 n[t.dataIndex]}return""},afterTitle:ke,beforeBody:ke,beforeLabel:ke,label(e){if(this&&this.options&&this.options.mode==="dataset")return e.label+": "+e.formattedValue||e.formattedValue;let t=e.dataset.label||"";t&&(t+=": ");let n=e.formattedValue;return W(n)||(t+=n),t},labelColor(e){let n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{borderColor:n.borderColor,backgroundColor:n.backgroundColor,borderWidth:n.borderWidth,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(e){let n=e.chart.getDatasetMeta(e.datasetIndex).controller.getStyle(e.dataIndex);return{pointStyle:n.pointStyle,rotation:n.rotation}},afterLabel:ke,afterBody:ke,beforeFooter:ke,footer:ke,afterFooter:ke};function Bt(e,t,n,s){let i=e[t].call(n,s);return typeof i>"u"?yg[t].call(n,s):i}var fo=class extends Ne{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(){let t=this._cachedAnimations;if(t)return t;let n=this.chart,s=this.options.setContext(this.getContext()),i=s.enabled&&n.options.animation&&s.animations,o=new va(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Sx(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){let{callbacks:s}=n,i=Bt(s,"beforeTitle",this,t),o=Bt(s,"title",this,t),r=Bt(s,"afterTitle",this,t),l=[];return l=Se(l,We(i)),l=Se(l,We(o)),l=Se(l,We(r)),l}getBeforeBody(t,n){return Km(Bt(n.callbacks,"beforeBody",this,t))}getBody(t,n){let{callbacks:s}=n,i=[];return B(t,o=>{let r={before:[],lines:[],after:[]},l=Ym(s,o);Se(r.before,We(Bt(l,"beforeLabel",this,o))),Se(r.lines,Bt(l,"label",this,o)),Se(r.after,We(Bt(l,"afterLabel",this,o))),i.push(r)}),i}getAfterBody(t,n){return Km(Bt(n.callbacks,"afterBody",this,t))}getFooter(t,n){let{callbacks:s}=n,i=Bt(s,"beforeFooter",this,t),o=Bt(s,"footer",this,t),r=Bt(s,"afterFooter",this,t),l=[];return l=Se(l,We(i)),l=Se(l,We(o)),l=Se(l,We(r)),l}_createItems(t){let n=this._active,s=this.chart.data,i=[],o=[],r=[],l=[],c,u;for(c=0,u=n.length;c<u;++c)l.push(vx(this.chart,n[c]));return t.filter&&(l=l.filter((d,h,f)=>t.filter(d,h,f,s))),t.itemSort&&(l=l.sort((d,h)=>t.itemSort(d,h,s))),B(l,d=>{let h=Ym(t.callbacks,d);i.push(Bt(h,"labelColor",this,d)),o.push(Bt(h,"labelPointStyle",this,d)),r.push(Bt(h,"labelTextColor",this,d))}),this.labelColors=i,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=l,l}update(t,n){let s=this.options.setContext(this.getContext()),i=this._active,o,r=[];if(!i.length)this.opacity!==0&&(o={opacity:0});else{let l=ho[s.position].call(this,i,this._eventPosition);r=this._createItems(s),this.title=this.getTitle(r,s),this.beforeBody=this.getBeforeBody(r,s),this.body=this.getBody(r,s),this.afterBody=this.getAfterBody(r,s),this.footer=this.getFooter(r,s);let c=this._size=Wm(this,s),u=Object.assign({},l,c),d=$m(this.chart,s,u),h=Um(s,u,d,this.chart);this.xAlign=d.xAlign,this.yAlign=d.yAlign,o={opacity:1,x:h.x,y:h.y,width:c.width,height:c.height,caretX:l.x,caretY:l.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,s,i){let o=this.getCaretPosition(t,s,i);n.lineTo(o.x1,o.y1),n.lineTo(o.x2,o.y2),n.lineTo(o.x3,o.y3)}getCaretPosition(t,n,s){let{xAlign:i,yAlign:o}=this,{caretSize:r,cornerRadius:l}=s,{topLeft:c,topRight:u,bottomLeft:d,bottomRight:h}=vn(l),{x:f,y:g}=t,{width:y,height:_}=n,b,p,m,v,x,w;return o==="center"?(x=g+_/2,i==="left"?(b=f,p=b-r,v=x+r,w=x-r):(b=f+y,p=b+r,v=x-r,w=x+r),m=b):(i==="left"?p=f+Math.max(c,d)+r:i==="right"?p=f+y-Math.max(u,h)-r:p=this.caretX,o==="top"?(v=g,x=v-r,b=p-r,m=p+r):(v=g+_,x=v+r,b=p+r,m=p-r),w=v),{x1:b,x2:p,x3:m,y1:v,y2:x,y3:w}}drawTitle(t,n,s){let i=this.title,o=i.length,r,l,c;if(o){let u=Gn(s.rtl,this.x,this.width);for(t.x=ha(this,s.titleAlign,s),n.textAlign=u.textAlign(s.titleAlign),n.textBaseline="middle",r=mt(s.titleFont),l=s.titleSpacing,n.fillStyle=s.titleColor,n.font=r.string,c=0;c<o;++c)n.fillText(i[c],u.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+l,c+1===o&&(t.y+=s.titleMarginBottom-l)}}_drawColorBox(t,n,s,i,o){let r=this.labelColors[s],l=this.labelPointStyles[s],{boxHeight:c,boxWidth:u}=o,d=mt(o.bodyFont),h=ha(this,"left",o),f=i.x(h),g=c<d.lineHeight?(d.lineHeight-c)/2:0,y=n.y+g;if(o.usePointStyle){let _={radius:Math.min(u,c)/2,pointStyle:l.pointStyle,rotation:l.rotation,borderWidth:1},b=i.leftForLtr(f,u)+u/2,p=y+c/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,mu(t,_,b,p),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,mu(t,_,b,p)}else{t.lineWidth=z(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;let _=i.leftForLtr(f,u),b=i.leftForLtr(i.xPlus(f,1),u-2),p=vn(r.borderRadius);Object.values(p).some(m=>m!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,Hs(t,{x:_,y,w:u,h:c,radius:p}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),Hs(t,{x:b,y:y+1,w:u-2,h:c-2,radius:p}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(_,y,u,c),t.strokeRect(_,y,u,c),t.fillStyle=r.backgroundColor,t.fillRect(b,y+1,u-2,c-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,n,s){let{body:i}=this,{bodySpacing:o,bodyAlign:r,displayColors:l,boxHeight:c,boxWidth:u,boxPadding:d}=s,h=mt(s.bodyFont),f=h.lineHeight,g=0,y=Gn(s.rtl,this.x,this.width),_=function(M){n.fillText(M,y.x(t.x+g),t.y+f/2),t.y+=f+o},b=y.textAlign(r),p,m,v,x,w,S,C;for(n.textAlign=r,n.textBaseline="middle",n.font=h.string,t.x=ha(this,b,s),n.fillStyle=s.bodyColor,B(this.beforeBody,_),g=l&&b!=="right"?r==="center"?u/2+d:u+2+d:0,x=0,S=i.length;x<S;++x){for(p=i[x],m=this.labelTextColors[x],n.fillStyle=m,B(p.before,_),v=p.lines,l&&v.length&&(this._drawColorBox(n,t,x,y,s),f=Math.max(h.lineHeight,c)),w=0,C=v.length;w<C;++w)_(v[w]),f=h.lineHeight;B(p.after,_)}g=0,f=h.lineHeight,B(this.afterBody,_),t.y-=o}drawFooter(t,n,s){let i=this.footer,o=i.length,r,l;if(o){let c=Gn(s.rtl,this.x,this.width);for(t.x=ha(this,s.footerAlign,s),t.y+=s.footerMarginTop,n.textAlign=c.textAlign(s.footerAlign),n.textBaseline="middle",r=mt(s.footerFont),n.fillStyle=s.footerColor,n.font=r.string,l=0;l<o;++l)n.fillText(i[l],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+s.footerSpacing}}drawBackground(t,n,s,i){let{xAlign:o,yAlign:r}=this,{x:l,y:c}=t,{width:u,height:d}=s,{topLeft:h,topRight:f,bottomLeft:g,bottomRight:y}=vn(i.cornerRadius);n.fillStyle=i.backgroundColor,n.strokeStyle=i.borderColor,n.lineWidth=i.borderWidth,n.beginPath(),n.moveTo(l+h,c),r==="top"&&this.drawCaret(t,n,s,i),n.lineTo(l+u-f,c),n.quadraticCurveTo(l+u,c,l+u,c+f),r==="center"&&o==="right"&&this.drawCaret(t,n,s,i),n.lineTo(l+u,c+d-y),n.quadraticCurveTo(l+u,c+d,l+u-y,c+d),r==="bottom"&&this.drawCaret(t,n,s,i),n.lineTo(l+g,c+d),n.quadraticCurveTo(l,c+d,l,c+d-g),r==="center"&&o==="left"&&this.drawCaret(t,n,s,i),n.lineTo(l,c+h),n.quadraticCurveTo(l,c,l+h,c),n.closePath(),n.fill(),i.borderWidth>0&&n.stroke()}_updateAnimationTarget(t){let n=this.chart,s=this.$animations,i=s&&s.x,o=s&&s.y;if(i||o){let r=ho[t.position].call(this,this._active,this._eventPosition);if(!r)return;let l=this._size=Wm(this,t),c=Object.assign({},r,this._size),u=$m(n,t,c),d=Um(t,c,u,n);(i._to!==d.x||o._to!==d.y)&&(this.xAlign=u.xAlign,this.yAlign=u.yAlign,this.width=l.width,this.height=l.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,d))}}_willRender(){return!!this.opacity}draw(t){let n=this.options.setContext(this.getContext()),s=this.opacity;if(!s)return;this._updateAnimationTarget(n);let i={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;let r=Nt(n.padding),l=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&l&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,i,n),ku(t,n.textDirection),o.y+=r.top,this.drawTitle(o,t,n),this.drawBody(o,t,n),this.drawFooter(o,t,n),Su(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){let s=this._active,i=t.map(({datasetIndex:l,index:c})=>{let u=this.chart.getDatasetMeta(l);if(!u)throw new Error("Cannot find a dataset at index "+l);return{datasetIndex:l,element:u.data[c],index:c}}),o=!qi(s,i),r=this._positionChanged(i,n);(o||r)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,s=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let i=this.options,o=this._active||[],r=this._getActiveElements(t,o,n,s),l=this._positionChanged(r,t),c=n||!qi(r,o)||l;return c&&(this._active=r,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),c}_getActiveElements(t,n,s,i){let o=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(l=>this.chart.data.datasets[l.datasetIndex]&&this.chart.getDatasetMeta(l.datasetIndex).controller.getParsed(l.index)!==void 0);let r=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&r.reverse(),r}_positionChanged(t,n){let{caretX:s,caretY:i,options:o}=this,r=ho[o.position].call(this,t,n);return r!==!1&&(s!==r.x||i!==r.y)}};R(fo,"positioners",ho);var vg={id:"tooltip",_element:fo,positioners:ho,afterInit(e,t,n){n&&(e.tooltip=new fo({chart:e,options:n}))},beforeUpdate(e,t,n){e.tooltip&&e.tooltip.initialize(n)},reset(e,t,n){e.tooltip&&e.tooltip.initialize(n)},afterDraw(e){let t=e.tooltip;if(t&&t._willRender()){let n={tooltip:t};if(e.notifyPlugins("beforeTooltipDraw",{...n,cancelable:!0})===!1)return;t.draw(e.ctx),e.notifyPlugins("afterTooltipDraw",n)}},afterEvent(e,t){if(e.tooltip){let n=t.replay;e.tooltip.handleEvent(t.event,n,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:yg},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"]};var Cx=(e,t,n,s)=>(typeof t=="string"?(n=e.push(t)-1,s.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function Nx(e,t,n,s){let i=e.indexOf(t);if(i===-1)return Cx(e,t,n,s);let o=e.lastIndexOf(t);return i!==o?n:i}var Mx=(e,t)=>e===null?null:Rt(Math.round(e),0,t);function Xm(e){let t=this.getLabels();return e>=0&&e<t.length?t[e]:e}var Ys=class extends ts{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){let n=this._addedLabels;if(n.length){let s=this.getLabels();for(let{index:i,label:o}of n)s[i]===o&&s.splice(i,1);this._addedLabels=[]}super.init(t)}parse(t,n){if(W(t))return null;let s=this.getLabels();return n=isFinite(n)&&s[n]===t?n:Nx(s,t,I(n,t),this._addedLabels),Mx(n,s.length-1)}determineDataLimits(){let{minDefined:t,maxDefined:n}=this.getUserBounds(),{min:s,max:i}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),n||(i=this.getLabels().length-1)),this.min=s,this.max=i}buildTicks(){let t=this.min,n=this.max,s=this.options.offset,i=[],o=this.getLabels();o=t===0&&n===o.length-1?o:o.slice(t,n+1),this._valueRange=Math.max(o.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let r=t;r<=n;r++)i.push({value:r});return i}getLabelForValue(t){return Xm.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){let n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}};R(Ys,"id","category"),R(Ys,"defaults",{ticks:{callback:Xm}});function Px(e,t){let n=[],{bounds:i,step:o,min:r,max:l,precision:c,count:u,maxTicks:d,maxDigits:h,includeBounds:f}=e,g=o||1,y=d-1,{min:_,max:b}=t,p=!W(r),m=!W(l),v=!W(u),x=(b-_)/(h+1),w=iu((b-_)/y/g)*g,S,C,M,D;if(w<1e-14&&!p&&!m)return[{value:_},{value:b}];D=Math.ceil(b/w)-Math.floor(_/w),D>y&&(w=iu(D*w/y/g)*g),W(c)||(S=Math.pow(10,c),w=Math.ceil(w*S)/S),i==="ticks"?(C=Math.floor(_/w)*w,M=Math.ceil(b/w)*w):(C=_,M=b),p&&m&&o&&Qp((l-r)/o,w/1e3)?(D=Math.round(Math.min((l-r)/w,d)),w=(l-r)/D,C=r,M=l):v?(C=p?r:C,M=m?l:M,D=u-1,w=(M-C)/D):(D=(M-C)/w,Ji(D,Math.round(D),w/1e3)?D=Math.round(D):D=Math.ceil(D));let E=Math.max(ru(w),ru(C));S=Math.pow(10,W(c)?E:c),C=Math.round(C*S)/S,M=Math.round(M*S)/S;let O=0;for(p&&(f&&C!==r?(n.push({value:r}),C<r&&O++,Ji(Math.round((C+O*w)*S)/S,r,Gm(r,x,e))&&O++):C<r&&O++);O<D;++O){let A=Math.round((C+O*w)*S)/S;if(m&&A>l)break;n.push({value:A})}return m&&f&&M!==l?n.length&&Ji(n[n.length-1].value,l,Gm(l,x,e))?n[n.length-1].value=l:n.push({value:l}):(!m||M===l)&&n.push({value:M}),n}function Gm(e,t,{horizontal:n,minRotation:s}){let i=pe(s),o=(n?Math.sin(i):Math.cos(i))||.001,r=.75*t*(""+e).length;return Math.min(t/o,r)}var Qs=class extends ts{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,n){return W(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){let{beginAtZero:t}=this.options,{minDefined:n,maxDefined:s}=this.getUserBounds(),{min:i,max:o}=this,r=c=>i=n?i:c,l=c=>o=s?o:c;if(t){let c=Ve(i),u=Ve(o);c<0&&u<0?l(0):c>0&&u>0&&r(0)}if(i===o){let c=o===0?1:Math.abs(o*.05);l(o+c),t||r(i-c)}this.min=i,this.max=o}getTickLimit(){let t=this.options.ticks,{maxTicksLimit:n,stepSize:s}=t,i;return s?(i=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${i} ticks. Limiting to 1000.`),i=1e3)):(i=this.computeTickLimit(),n=n||11),n&&(i=Math.min(n,i)),i}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let t=this.options,n=t.ticks,s=this.getTickLimit();s=Math.max(2,s);let i={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:n.precision,step:n.stepSize,count:n.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:n.minRotation||0,includeBounds:n.includeBounds!==!1},o=this._range||this,r=Px(i,o);return t.bounds==="ticks"&&ou(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let t=this.ticks,n=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){let i=(s-n)/Math.max(t.length-1,1)/2;n-=i,s+=i}this._startValue=n,this._endValue=s,this._valueRange=s-n}getLabelForValue(t){return no(t,this.chart.options.locale,this.options.ticks.format)}},Xs=class extends Qs{determineDataLimits(){let{min:t,max:n}=this.getMinMax(!0);this.min=ht(t)?t:0,this.max=ht(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){let t=this.isHorizontal(),n=t?this.width:this.height,s=pe(this.options.ticks.minRotation),i=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,o.lineHeight/i))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}};R(Xs,"id","linear"),R(Xs,"defaults",{ticks:{callback:so.formatters.numeric}});var mo=e=>Math.floor(Be(e)),Zn=(e,t)=>Math.pow(10,mo(e)+t);function Qm(e){return e/Math.pow(10,mo(e))===1}function Zm(e,t,n){let s=Math.pow(10,n),i=Math.floor(e/s);return Math.ceil(t/s)-i}function Ex(e,t){let n=t-e,s=mo(n);for(;Zm(e,t,s)>10;)s++;for(;Zm(e,t,s)<10;)s--;return Math.min(s,mo(e))}function Tx(e,{min:t,max:n}){t=It(e.min,t);let s=[],i=mo(t),o=Ex(t,n),r=o<0?Math.pow(10,Math.abs(o)):1,l=Math.pow(10,o),c=i>o?Math.pow(10,i):0,u=Math.round((t-c)*r)/r,d=Math.floor((t-c)/l/10)*l*10,h=Math.floor((u-d)/Math.pow(10,o)),f=It(e.min,Math.round((c+d+h*Math.pow(10,o))*r)/r);for(;f<n;)s.push({value:f,major:Qm(f),significand:h}),h>=10?h=h<15?15:20:h++,h>=20&&(o++,h=2,r=o>=0?1:r),f=Math.round((c+d+h*Math.pow(10,o))*r)/r;let g=It(e.max,f);return s.push({value:g,major:Qm(g),significand:h}),s}var fa=class extends ts{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){let s=Qs.prototype.parse.apply(this,[t,n]);if(s===0){this._zero=!0;return}return ht(s)&&s>0?s:null}determineDataLimits(){let{min:t,max:n}=this.getMinMax(!0);this.min=ht(t)?Math.max(0,t):null,this.max=ht(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!ht(this._userMin)&&(this.min=t===Zn(this.min,0)?Zn(this.min,-1):Zn(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:t,maxDefined:n}=this.getUserBounds(),s=this.min,i=this.max,o=l=>s=t?s:l,r=l=>i=n?i:l;s===i&&(s<=0?(o(1),r(10)):(o(Zn(s,-1)),r(Zn(i,1)))),s<=0&&o(Zn(i,-1)),i<=0&&r(Zn(s,1)),this.min=s,this.max=i}buildTicks(){let t=this.options,n={min:this._userMin,max:this._userMax},s=Tx(n,this);return t.bounds==="ticks"&&ou(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":no(t,this.chart.options.locale,this.options.ticks.format)}configure(){let t=this.min;super.configure(),this._startValue=Be(t),this._valueRange=Be(this.max)-Be(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Be(t)-this._startValue)/this._valueRange)}getValueForPixel(t){let n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}};R(fa,"id","logarithmic"),R(fa,"defaults",{ticks:{callback:so.formatters.logarithmic,major:{enabled:!0}}});function $u(e){let t=e.ticks;if(t.display&&e.display){let n=Nt(t.backdropPadding);return I(t.font&&t.font.size,st.font.size)+n.height}return 0}function Dx(e,t,n){return n=q(n)?n:[n],{w:am(e,t.string,n),h:n.length*t.lineHeight}}function qm(e,t,n,s,i){return e===s||e===i?{start:t-n/2,end:t+n/2}:e<s||e>i?{start:t-n,end:t}:{start:t,end:t+n}}function Rx(e){let 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},n=Object.assign({},t),s=[],i=[],o=e._pointLabels.length,r=e.options.pointLabels,l=r.centerPointLabels?rt/o:0;for(let c=0;c<o;c++){let u=r.setContext(e.getPointLabelContext(c));i[c]=u.padding;let d=e.getPointPosition(c,e.drawingArea+i[c],l),h=mt(u.font),f=Dx(e.ctx,h,e._pointLabels[c]);s[c]=f;let g=fe(e.getIndexAngle(c)+l),y=Math.round(Zr(g)),_=qm(y,d.x,f.w,0,180),b=qm(y,d.y,f.h,90,270);Ox(n,t,g,_,b)}e.setCenterPoint(t.l-n.l,n.r-t.r,t.t-n.t,n.b-t.b),e._pointLabelItems=zx(e,s,i)}function Ox(e,t,n,s,i){let o=Math.abs(Math.sin(n)),r=Math.abs(Math.cos(n)),l=0,c=0;s.start<t.l?(l=(t.l-s.start)/o,e.l=Math.min(e.l,t.l-l)):s.end>t.r&&(l=(s.end-t.r)/o,e.r=Math.max(e.r,t.r+l)),i.start<t.t?(c=(t.t-i.start)/r,e.t=Math.min(e.t,t.t-c)):i.end>t.b&&(c=(i.end-t.b)/r,e.b=Math.max(e.b,t.b+c))}function Lx(e,t,n){let s=e.drawingArea,{extra:i,additionalAngle:o,padding:r,size:l}=n,c=e.getPointPosition(t,s+i+r,o),u=Math.round(Zr(fe(c.angle+ot))),d=jx(c.y,l.h,u),h=Fx(u),f=Ix(c.x,l.w,h);return{visible:!0,x:c.x,y:d,textAlign:h,left:f,top:d,right:f+l.w,bottom:d+l.h}}function Ax(e,t){if(!t)return!0;let{left:n,top:s,right:i,bottom:o}=e;return!(Yn({x:n,y:s},t)||Yn({x:n,y:o},t)||Yn({x:i,y:s},t)||Yn({x:i,y:o},t))}function zx(e,t,n){let s=[],i=e._pointLabels.length,o=e.options,{centerPointLabels:r,display:l}=o.pointLabels,c={extra:$u(o)/2,additionalAngle:r?rt/i:0},u;for(let d=0;d<i;d++){c.padding=n[d],c.size=t[d];let h=Lx(e,d,c);s.push(h),l==="auto"&&(h.visible=Ax(h,u),h.visible&&(u=h))}return s}function Fx(e){return e===0||e===180?"center":e<180?"left":"right"}function Ix(e,t,n){return n==="right"?e-=t:n==="center"&&(e-=t/2),e}function jx(e,t,n){return n===90||n===270?e-=t/2:(n>270||n<90)&&(e-=t),e}function Bx(e,t,n){let{left:s,top:i,right:o,bottom:r}=n,{backdropColor:l}=t;if(!W(l)){let c=vn(t.borderRadius),u=Nt(t.backdropPadding);e.fillStyle=l;let d=s-u.left,h=i-u.top,f=o-s+u.width,g=r-i+u.height;Object.values(c).some(y=>y!==0)?(e.beginPath(),Hs(e,{x:d,y:h,w:f,h:g,radius:c}),e.fill()):e.fillRect(d,h,f,g)}}function Vx(e,t){let{ctx:n,options:{pointLabels:s}}=e;for(let i=t-1;i>=0;i--){let o=e._pointLabelItems[i];if(!o.visible)continue;let r=s.setContext(e.getPointLabelContext(i));Bx(n,r,o);let l=mt(r.font),{x:c,y:u,textAlign:d}=o;Xn(n,e._pointLabels[i],c,u+l.lineHeight/2,l,{color:r.color,textAlign:d,textBaseline:"middle"})}}function _g(e,t,n,s){let{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,J);else{let o=e.getPointPosition(0,t);i.moveTo(o.x,o.y);for(let r=1;r<s;r++)o=e.getPointPosition(r,t),i.lineTo(o.x,o.y)}}function Hx(e,t,n,s,i){let o=e.ctx,r=t.circular,{color:l,lineWidth:c}=t;!r&&!s||!l||!c||n<0||(o.save(),o.strokeStyle=l,o.lineWidth=c,o.setLineDash(i.dash||[]),o.lineDashOffset=i.dashOffset,o.beginPath(),_g(e,n,r,s),o.closePath(),o.stroke(),o.restore())}function Wx(e,t,n){return _n(e,{label:n,index:t,type:"pointLabel"})}var $s=class extends Qs{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let t=this._padding=Nt($u(this.options)/2),n=this.width=this.maxWidth-t.width,s=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+n/2+t.left),this.yCenter=Math.floor(this.top+s/2+t.top),this.drawingArea=Math.floor(Math.min(n,s)/2)}determineDataLimits(){let{min:t,max:n}=this.getMinMax(!1);this.min=ht(t)&&!isNaN(t)?t:0,this.max=ht(n)&&!isNaN(n)?n:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/$u(this.options))}generateTickLabels(t){Qs.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((n,s)=>{let i=U(this.options.pointLabels.callback,[n,s],this);return i||i===0?i:""}).filter((n,s)=>this.chart.getDataVisibility(s))}fit(){let t=this.options;t.display&&t.pointLabels.display?Rx(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,s,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((s-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,s,i))}getIndexAngle(t){let n=J/(this._pointLabels.length||1),s=this.options.startAngle||0;return fe(t*n+pe(s))}getDistanceFromCenterForValue(t){if(W(t))return NaN;let n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(W(t))return NaN;let n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){let n=this._pointLabels||[];if(t>=0&&t<n.length){let s=n[t];return Wx(this.getContext(),t,s)}}getPointPosition(t,n,s=0){let i=this.getIndexAngle(t)-ot+s;return{x:Math.cos(i)*n+this.xCenter,y:Math.sin(i)*n+this.yCenter,angle:i}}getPointPositionForValue(t,n){return this.getPointPosition(t,this.getDistanceFromCenterForValue(n))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){let{left:n,top:s,right:i,bottom:o}=this._pointLabelItems[t];return{left:n,top:s,right:i,bottom:o}}drawBackground(){let{backgroundColor:t,grid:{circular:n}}=this.options;if(t){let s=this.ctx;s.save(),s.beginPath(),_g(this,this.getDistanceFromCenterForValue(this._endValue),n,this._pointLabels.length),s.closePath(),s.fillStyle=t,s.fill(),s.restore()}}drawGrid(){let t=this.ctx,n=this.options,{angleLines:s,grid:i,border:o}=n,r=this._pointLabels.length,l,c,u;if(n.pointLabels.display&&Vx(this,r),i.display&&this.ticks.forEach((d,h)=>{if(h!==0||h===0&&this.min<0){c=this.getDistanceFromCenterForValue(d.value);let f=this.getContext(h),g=i.setContext(f),y=o.setContext(f);Hx(this,g,c,r,y)}}),s.display){for(t.save(),l=r-1;l>=0;l--){let d=s.setContext(this.getPointLabelContext(l)),{color:h,lineWidth:f}=d;!f||!h||(t.lineWidth=f,t.strokeStyle=h,t.setLineDash(d.borderDash),t.lineDashOffset=d.borderDashOffset,c=this.getDistanceFromCenterForValue(n.reverse?this.min:this.max),u=this.getPointPosition(l,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(u.x,u.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){let t=this.ctx,n=this.options,s=n.ticks;if(!s.display)return;let i=this.getIndexAngle(0),o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((l,c)=>{if(c===0&&this.min>=0&&!n.reverse)return;let u=s.setContext(this.getContext(c)),d=mt(u.font);if(o=this.getDistanceFromCenterForValue(this.ticks[c].value),u.showLabelBackdrop){t.font=d.string,r=t.measureText(l.label).width,t.fillStyle=u.backdropColor;let h=Nt(u.backdropPadding);t.fillRect(-r/2-h.left,-o-d.size/2-h.top,r+h.width,d.size+h.height)}Xn(t,l.label,0,-o,d,{color:u.color,strokeColor:u.textStrokeColor,strokeWidth:u.textStrokeWidth})}),t.restore()}drawTitle(){}};R($s,"id","radialLinear"),R($s,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:so.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}}),R($s,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),R($s,"descriptors",{angleLines:{_fallback:"grid"}});var ka={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}},Ht=Object.keys(ka);function Jm(e,t){return e-t}function tg(e,t){if(W(t))return null;let n=e._adapter,{parser:s,round:i,isoWeekday:o}=e._parseOpts,r=t;return typeof s=="function"&&(r=s(r)),ht(r)||(r=typeof s=="string"?n.parse(r,s):n.parse(r)),r===null?null:(i&&(r=i==="week"&&(to(o)||o===!0)?n.startOf(r,"isoWeek",o):n.startOf(r,i)),+r)}function eg(e,t,n,s){let i=Ht.length;for(let o=Ht.indexOf(e);o<i-1;++o){let r=ka[Ht[o]],l=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((n-t)/(l*r.size))<=s)return Ht[o]}return Ht[i-1]}function $x(e,t,n,s,i){for(let o=Ht.length-1;o>=Ht.indexOf(n);o--){let r=Ht[o];if(ka[r].common&&e._adapter.diff(i,s,r)>=t-1)return r}return Ht[n?Ht.indexOf(n):0]}function Ux(e){for(let t=Ht.indexOf(e)+1,n=Ht.length;t<n;++t)if(ka[Ht[t]].common)return Ht[t]}function ng(e,t,n){if(!n)e[t]=!0;else if(n.length){let{lo:s,hi:i}=qr(n,t),o=n[s]>=t?n[s]:n[i];e[o]=!0}}function Kx(e,t,n,s){let i=e._adapter,o=+i.startOf(t[0].value,s),r=t[t.length-1].value,l,c;for(l=o;l<=r;l=+i.add(l,1,s))c=n[l],c>=0&&(t[c].major=!0);return t}function sg(e,t,n){let s=[],i={},o=t.length,r,l;for(r=0;r<o;++r)l=t[r],i[l]=r,s.push({value:l,major:!1});return o===0||!n?s:Kx(e,s,i,n)}var Gs=class extends ts{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,n={}){let s=t.time||(t.time={}),i=this._adapter=new q_._date(t.adapters.date);i.init(n),Bs(s.displayFormats,i.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=n.normalized}parse(t,n){return t===void 0?null:tg(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,n=this._adapter,s=t.time.unit||"day",{min:i,max:o,minDefined:r,maxDefined:l}=this.getUserBounds();function c(u){!r&&!isNaN(u.min)&&(i=Math.min(i,u.min)),!l&&!isNaN(u.max)&&(o=Math.max(o,u.max))}(!r||!l)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),i=ht(i)&&!isNaN(i)?i:+n.startOf(Date.now(),s),o=ht(o)&&!isNaN(o)?o:+n.endOf(Date.now(),s)+1,this.min=Math.min(i,o-1),this.max=Math.max(i+1,o)}_getLabelBounds(){let t=this.getLabelTimestamps(),n=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(n=t[0],s=t[t.length-1]),{min:n,max:s}}buildTicks(){let t=this.options,n=t.time,s=t.ticks,i=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&i.length&&(this.min=this._userMin||i[0],this.max=this._userMax||i[i.length-1]);let o=this.min,r=this.max,l=tm(i,o,r);return this._unit=n.unit||(s.autoSkip?eg(n.minUnit,this.min,this.max,this._getLabelCapacity(o)):$x(this,l.length,n.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:Ux(this._unit),this.initOffsets(i),t.reverse&&l.reverse(),sg(this,l,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let n=0,s=0,i,o;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);let r=t.length<3?.5:.25;n=Rt(n,0,r),s=Rt(s,0,r),this._offsets={start:n,end:s,factor:1/(n+1+s)}}_generate(){let t=this._adapter,n=this.min,s=this.max,i=this.options,o=i.time,r=o.unit||eg(o.minUnit,n,s,this._getLabelCapacity(n)),l=I(i.ticks.stepSize,1),c=r==="week"?o.isoWeekday:!1,u=to(c)||c===!0,d={},h=n,f,g;if(u&&(h=+t.startOf(h,"isoWeek",c)),h=+t.startOf(h,u?"day":r),t.diff(s,n,r)>1e5*l)throw new Error(n+" and "+s+" are too far apart with stepSize of "+l+" "+r);let y=i.ticks.source==="data"&&this.getDataTimestamps();for(f=h,g=0;f<s;f=+t.add(f,l,r),g++)ng(d,f,y);return(f===s||i.bounds==="ticks"||g===1)&&ng(d,f,y),Object.keys(d).sort(Jm).map(_=>+_)}getLabelForValue(t){let n=this._adapter,s=this.options.time;return s.tooltipFormat?n.format(t,s.tooltipFormat):n.format(t,s.displayFormats.datetime)}format(t,n){let i=this.options.time.displayFormats,o=this._unit,r=n||i[o];return this._adapter.format(t,r)}_tickFormatFunction(t,n,s,i){let o=this.options,r=o.ticks.callback;if(r)return U(r,[t,n,s],this);let l=o.time.displayFormats,c=this._unit,u=this._majorUnit,d=c&&l[c],h=u&&l[u],f=s[n],g=u&&h&&f&&f.major;return this._adapter.format(t,i||(g?h:d))}generateTickLabels(t){let n,s,i;for(n=0,s=t.length;n<s;++n)i=t[n],i.label=this._tickFormatFunction(i.value,n,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){let n=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((n.start+s)*n.factor)}getValueForPixel(t){let n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){let n=this.options.ticks,s=this.ctx.measureText(t).width,i=pe(this.isHorizontal()?n.maxRotation:n.minRotation),o=Math.cos(i),r=Math.sin(i),l=this._resolveTickFontOptions(0).size;return{w:s*o+l*r,h:s*r+l*o}}_getLabelCapacity(t){let n=this.options.time,s=n.displayFormats,i=s[n.unit]||s.millisecond,o=this._tickFormatFunction(t,0,sg(this,[t],this._majorUnit),i),r=this._getLabelSize(o),l=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return l>0?l:1}getDataTimestamps(){let t=this._cache.data||[],n,s;if(t.length)return t;let i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,s=i.length;n<s;++n)t=t.concat(i[n].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){let t=this._cache.labels||[],n,s;if(t.length)return t;let i=this.getLabels();for(n=0,s=i.length;n<s;++n)t.push(tg(this,i[n]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return cu(t.sort(Jm))}};R(Gs,"id","time"),R(Gs,"defaults",{bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}});function pa(e,t,n){let s=0,i=e.length-1,o,r,l,c;n?(t>=e[s].pos&&t<=e[i].pos&&({lo:s,hi:i}=Jr(e,"pos",t)),{pos:o,time:l}=e[s],{pos:r,time:c}=e[i]):(t>=e[s].time&&t<=e[i].time&&({lo:s,hi:i}=Jr(e,"time",t)),{time:o,pos:l}=e[s],{time:r,pos:c}=e[i]);let u=r-o;return u?l+(c-l)*(t-o)/u:l}var ma=class extends Gs{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=pa(n,this.min),this._tableRange=pa(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){let{min:n,max:s}=this,i=[],o=[],r,l,c,u,d;for(r=0,l=t.length;r<l;++r)u=t[r],u>=n&&u<=s&&i.push(u);if(i.length<2)return[{time:n,pos:0},{time:s,pos:1}];for(r=0,l=i.length;r<l;++r)d=i[r+1],c=i[r-1],u=i[r],Math.round((d+c)/2)!==u&&o.push({time:u,pos:r/(l-1)});return o}_generate(){let t=this.min,n=this.max,s=super.getDataTimestamps();return(!s.includes(t)||!s.length)&&s.splice(0,0,t),(!s.includes(n)||s.length===1)&&s.push(n),s.sort((i,o)=>i-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;let n=this.getDataTimestamps(),s=this.getLabelTimestamps();return n.length&&s.length?t=this.normalize(n.concat(s)):t=n.length?n:s,t=this._cache.all=t,t}getDecimalForValue(t){return(pa(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){let n=this._offsets,s=this.getDecimalForPixel(t)/n.factor-n.end;return pa(this._table,s*this._tableRange+this._minPos,!0)}};R(ma,"id","timeseries"),R(ma,"defaults",Gs.defaults);var xg="label";function bg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Yx(e,t){let n=e.options;n&&t&&Object.assign(n,t)}function wg(e,t){e.labels=t}function kg(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:xg,s=[];e.datasets=t.map(i=>{let o=e.datasets.find(r=>r[n]===i[n]);return!o||!i.data||s.includes(o)?{...i}:(s.push(o),Object.assign(o,i),o)})}function Xx(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:xg,n={labels:[],datasets:[]};return wg(n,e.labels),kg(n,e.datasets,t),n}function Gx(e,t){let{height:n=150,width:s=300,redraw:i=!1,datasetIdKey:o,type:r,data:l,options:c,plugins:u=[],fallbackContent:d,updateMode:h,...f}=e,g=(0,Mt.useRef)(null),y=(0,Mt.useRef)(),_=()=>{g.current&&(y.current=new Vt(g.current,{type:r,data:Xx(l,o),options:c&&{...c},plugins:u}),bg(t,y.current))},b=()=>{bg(t,null),y.current&&(y.current.destroy(),y.current=null)};return(0,Mt.useEffect)(()=>{!i&&y.current&&c&&Yx(y.current,c)},[i,c]),(0,Mt.useEffect)(()=>{!i&&y.current&&wg(y.current.config.data,l.labels)},[i,l.labels]),(0,Mt.useEffect)(()=>{!i&&y.current&&l.datasets&&kg(y.current.config.data,l.datasets,o)},[i,l.datasets]),(0,Mt.useEffect)(()=>{y.current&&(i?(b(),setTimeout(_)):y.current.update(h))},[i,c,l.labels,l.datasets,h]),(0,Mt.useEffect)(()=>{y.current&&(b(),setTimeout(_))},[r]),(0,Mt.useEffect)(()=>(_(),()=>b()),[]),Mt.default.createElement("canvas",Object.assign({ref:g,role:"img",height:n,width:s},f),d)}var Qx=(0,Mt.forwardRef)(Gx);function Sg(e,t){return Vt.register(t),(0,Mt.forwardRef)((n,s)=>Mt.default.createElement(Qx,Object.assign({},n,{ref:s,type:e})))}var Sa=Sg("bar",qn);var Cg=Sg("pie",Us);Vt.register(wn,Jn,Ys,Xs,vg,gg);function yo(){let e=getComputedStyle(document.documentElement),t=(n,s)=>{let i=e.getPropertyValue(n).trim();return i.length?i:s};return{fg:t("--fg","#1a1a1a"),muted:t("--muted","#666"),border:t("--border","#e2e2e2"),bg:t("--bg","#ffffff")}}var V=me(es(),1),Eg=["#2563eb","#16a34a","#d97706","#dc2626","#7c3aed","#0891b2","#db2777","#65a30d","#ca8a04","#9333ea","#0d9488","#e11d48"],ns=e=>Eg[e%Eg.length];function Tg({data:e,fmt:t,donut:n,titles:s,onSlice:i}){let o=e.reduce((d,h)=>d+h.value,0);if(o<=0)return null;let r=yo(),l=e.map((d,h)=>ns(h)),c={labels:e.map(d=>d.name),datasets:[{data:e.map(d=>d.value),backgroundColor:l,borderColor:r.bg,borderWidth:1}]},u={responsive:!0,maintainAspectRatio:!1,cutout:n?"50%":0,onClick:i?(d,h)=>{h.length&&i(h[0].index)}:void 0,plugins:{legend:{position:"right",labels:{color:r.fg,boxWidth:12,font:{size:12}}},tooltip:{callbacks:{label:d=>{let h=d.dataIndex;if(s?.[h])return s[h];let f=e[h].value;return`${e[h].name} \u2014 ${t(f)} (${(f/o*100).toFixed(1)}%)`}}}}};return(0,V.jsx)("div",{className:"chart-wrap",role:"img","aria-label":"Pie chart",style:{position:"relative",height:240,maxWidth:520},children:(0,V.jsx)(Cg,{data:c,options:u})})}function Uu({data:e,fmt:t,barColor:n,titles:s,onBar:i}){if(e.reduce((h,f)=>Math.max(h,f.value),0)<=0)return null;let r=yo(),l=n!=null?ns(n):void 0,c={labels:e.map(h=>h.name),datasets:[{data:e.map(h=>h.value),backgroundColor:l??e.map((h,f)=>ns(f)),borderRadius:3}]},u={indexAxis:"y",responsive:!0,maintainAspectRatio:!1,onClick:i?(h,f)=>{f.length&&i(f[0].index)}:void 0,scales:{x:{ticks:{color:r.muted,callback:h=>t(Number(h))},grid:{color:r.border}},y:{ticks:{color:r.fg,font:{size:11}},grid:{display:!1}}},plugins:{legend:{display:!1},tooltip:{callbacks:{label:h=>s?.[h.dataIndex]??`${e[h.dataIndex].name} \u2014 ${t(e[h.dataIndex].value)}`}}}},d=Math.max(140,e.length*26+40);return(0,V.jsx)("div",{className:"chart-wrap",role:"img","aria-label":"Horizontal bar chart",style:{position:"relative",height:d,maxWidth:720},children:(0,V.jsx)(Sa,{data:c,options:u})})}function Dg({data:e,fmt:t,barColor:n,yMaxPct:s}){if((s??e.reduce((c,u)=>Math.max(c,u.value),0))<=0)return null;let o=yo(),r={labels:e.map(c=>c.label),datasets:[{data:e.map(c=>c.value),backgroundColor:ns(n??0),borderRadius:3}]},l={responsive:!0,maintainAspectRatio:!1,scales:{x:{ticks:{color:o.muted,font:{size:10}},grid:{display:!1}},y:{min:0,max:s,ticks:{color:o.muted,callback:c=>t(Number(c))},grid:{color:o.border}}},plugins:{legend:{display:!1},tooltip:{callbacks:{label:c=>`${e[c.dataIndex].label}: ${t(e[c.dataIndex].value)}`}}}};return(0,V.jsx)("div",{className:"chart-wrap",role:"img","aria-label":"Bar chart",style:{position:"relative",height:200,maxWidth:720},children:(0,V.jsx)(Sa,{data:r,options:l})})}function Rg({data:e}){return e.length<2?null:(0,V.jsx)(Tg,{data:e.map(t=>({name:t.kind,value:t.shallow_heap})),fmt:N,donut:!0})}function Og({data:e}){if(e.length===0)return null;let t=10,n=e.slice(0,t).map(i=>({name:i.pretty_class,value:i.retained}));if(e.length>t){let i=e.slice(t).reduce((o,r)=>o+r.retained,0);i>0&&n.push({name:"(rest)",value:i})}let s=n.map(i=>`${i.name} \u2014 ${N(i.value)}`);return(0,V.jsx)(Uu,{data:n,fmt:N,titles:s})}function Lg({data:e}){if(e.length===0)return null;let t=e.map(s=>({name:s.loader_label??`loader@${s.loader_id}`,value:s.retained})),n=e.map(s=>`${s.loader_label??`loader@${s.loader_id}`} \u2014 ${k(s.class_count)} classes, ${N(s.retained)} retained`);return(0,V.jsx)(Uu,{data:t,fmt:N,barColor:4,titles:n})}function Ag({suspects:e,total:t}){if(e.length===0||t<=0)return null;let n=e.map(o=>({name:o.pretty_class,value:o.retained})),s=e.reduce((o,r)=>o+r.retained,0);t>s&&n.push({name:"(remainder)",value:t-s});let i=n.map(o=>`${o.name} \u2014 ${N(o.value)} (${(o.value/t*100).toFixed(1)}%)`);return(0,V.jsx)(Tg,{data:n,fmt:N,titles:i,onSlice:o=>{o<e.length&&document.getElementById(`suspect-${o+1}`)?.scrollIntoView({behavior:"smooth",block:"center"})}})}function zg({rc:e}){return e.top1_bp===0&&e.top10_bp===0&&e.top100_bp===0?null:(0,V.jsx)(Dg,{data:[{label:"Top 1",value:e.top1_bp/100},{label:"Top 10",value:e.top10_bp/100},{label:"Top 100",value:e.top100_bp/100}],fmt:t=>`${t.toFixed(1)}%`,yMaxPct:100})}function Fg({data:e}){if(e.length===0)return null;let t=40,n;if(e.length<=t)n=e.map(l=>({label:String(l.depth),value:l.objects}));else{let l=e.slice(0,t-1),c=e.slice(t-1),u=c[0].depth,d=c.reduce((h,f)=>h+f.objects,0);n=l.map(h=>({label:String(h.depth),value:h.objects})),n.push({label:`\u2265${u}`,value:d})}let s=e.reduce((l,c)=>l+c.objects,0),i=0,o=e[e.length-1].depth;for(let l of e)if(i+=l.objects,i*2>=s){o=l.depth;break}let r=e[e.length-1].depth;return(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(Dg,{data:n,fmt:k,barColor:4}),(0,V.jsxs)("p",{className:"subtitle",style:{marginTop:"0.4rem"},children:["Half of all live objects sit within ",o," hop",o===1?"":"s"," of a GC root; the deepest chain is"," ",r," hop",r===1?"":"s","."]})]})}function Ig({data:e}){return e.length<2?null:(0,V.jsx)(Uu,{data:e.map(t=>({name:t.root_type,value:t.count})),fmt:k,barColor:2})}function jg({segments:e,fmt:t}){let n=e.reduce((r,l)=>r+l.value,0);if(n<=0)return null;let s=yo(),i={labels:[""],datasets:e.map((r,l)=>({label:r.label,data:[r.value],backgroundColor:ns(r.colorIdx??l)}))},o={indexAxis:"y",responsive:!0,maintainAspectRatio:!1,scales:{x:{stacked:!0,ticks:{color:s.muted,callback:r=>t(Number(r))},grid:{color:s.border}},y:{stacked:!0,ticks:{display:!1},grid:{display:!1}}},plugins:{legend:{display:!0,position:"bottom",labels:{color:s.fg,boxWidth:12,font:{size:12}}},tooltip:{callbacks:{label:r=>`${r.dataset.label}: ${t(r.parsed.x)} (${(r.parsed.x/n*100).toFixed(1)}%)`}}}};return(0,V.jsx)("div",{className:"chart-wrap",role:"img","aria-label":"Stacked bar chart",style:{position:"relative",height:90,maxWidth:720},children:(0,V.jsx)(Sa,{data:i,options:o})})}function Bg({data:e}){return e.length<2?null:(0,V.jsx)(jg,{segments:e.map(t=>({label:t.kind,value:t.shallow_heap})),fmt:N})}function Vg({rc:e}){let t=e.top1_bp,n=Math.max(0,e.top10_bp-e.top1_bp),s=Math.max(0,e.top100_bp-e.top10_bp),i=Math.max(0,1e4-e.top100_bp);return e.top1_bp===0&&e.top10_bp===0&&e.top100_bp===0?null:(0,V.jsx)(jg,{segments:[{label:"Top 1",value:t,colorIdx:3},{label:"Next 9",value:n,colorIdx:2},{label:"Next 90",value:s,colorIdx:0},{label:"Rest of heap",value:i,colorIdx:10}],fmt:r=>`${(r/100).toFixed(1)}%`})}function Hg({root:e,onSelect:t}){let n=e.children;if(n.length===0)return null;let s=12,o=n.slice(0,s).map((l,c)=>({name:l.name||"(default package)",value:l.retained_heap,idx:c}));if(n.length>s){let l=n.slice(s).reduce((c,u)=>c+u.retained_heap,0);l>0&&o.push({name:"(rest)",value:l,idx:-1})}let r=o.reduce((l,c)=>l+c.value,0);return r<=0?null:(0,V.jsxs)("div",{className:"chart-wrap",children:[(0,V.jsx)("div",{style:{display:"flex",width:"100%",height:28,borderRadius:4,overflow:"hidden",border:"1px solid var(--border)"},children:o.map((l,c)=>{let u=l.value/r*100;if(u<=0)return null;let d=l.idx!==-1;return(0,V.jsx)("div",{onClick:d?()=>t(l.idx):void 0,title:`${l.name}: ${N(l.value)} (${u.toFixed(1)}%)`,style:{width:`${u}%`,background:ns(c),cursor:d?"pointer":"default"}},c)})}),(0,V.jsx)("ul",{style:{listStyle:"none",padding:0,margin:"0.4rem 0 0",display:"flex",flexWrap:"wrap",gap:"0.75rem",fontSize:"0.8rem"},children:o.map((l,c)=>(0,V.jsxs)("li",{style:{display:"flex",alignItems:"center",gap:"0.35rem"},children:[(0,V.jsx)("span",{style:{width:12,height:12,background:ns(c),display:"inline-block",borderRadius:2}}),(0,V.jsxs)("span",{onClick:l.idx!==-1?()=>t(l.idx):void 0,style:{cursor:l.idx!==-1?"pointer":"default"},children:[l.name," \u2014 ",N(l.value)," (",(l.value/r*100).toFixed(1),"%)"]})]},c))})]})}var a=me(es(),1),s1={auto:"light",light:"dark",dark:"auto"},i1={auto:"\u25D0",light:"\u2600",dark:"\u263E"};function Wg(e){if(e==="auto"){document.documentElement.removeAttribute("data-theme");try{localStorage.removeItem("hprof-theme")}catch{}}else{document.documentElement.dataset.theme=e;try{localStorage.setItem("hprof-theme",e)}catch{}}}function Ug(){let[e,t]=j.default.useState("auto");j.default.useEffect(()=>{try{let s=localStorage.getItem("hprof-theme");(s==="light"||s==="dark")&&(t(s),Wg(s))}catch{}},[]);let n=s1[e];return(0,a.jsxs)("button",{className:"theme-toggle","aria-label":"Theme: "+e,onClick:()=>{Wg(n),t(n)},children:[i1[e]," Theme: ",e.charAt(0).toUpperCase()+e.slice(1)]})}function o1({report:e}){let t=[];t.push(["triage","OOM Triage","Overview"],["overview","System Overview"],["record-census","HPROF Record Census"]),t.push(["leaks","Leak Suspects","Analysis"]),t.push(["top","Top Consumers"]),t.push(["dominator-analysis","Dominator Analysis"]),t.push(["threads","Threads"]),e.top.size_distribution.count>0&&t.push(["size-distribution","Size Distribution"]);let n=!1,s=(d,h)=>{n?t.push([d,h]):(t.push([d,h,"Data"]),n=!0)};e.overview.duplicate_strings&&s("duplicate-strings","Duplicate Strings"),e.top_components?.components?.length&&s("top-components","Top Components"),s("arrays-by-size","Arrays by Size"),s("collections","Collections"),e.collection_attribution&&s("container-attribution","Container Attribution"),e.fields_by_size&&s("fields-by-size","Fields by Size"),e.biggest_collections&&s("biggest-collections","Biggest Collections"),e.collection_contents&&s("collection-contents","Collection Contents"),s("references","References"),s("unreachable-objects","Unreachable Objects"),e.alloc_sites&&s("alloc-sites","Allocation Sites");let i=!1,o=(d,h)=>{i?t.push([d,h]):(t.push([d,h,"Distribution"]),i=!0)},r=e.overview.retention_concentration;(r.top1_bp>0||r.num_objects_ge_1pct>0)&&o("retention-concentration","Retention Concentration"),e.overview.dominator_depth_histogram.length>0&&o("dominator-depth-distribution","Dominator-Depth Distribution");let l=e.leak_indicators;l&&(l.anonymous_class_count>0||l.thread_local_null_key_count>0||l.direct_byte_buffer_capacity_sum>0)&&o("leak-indicators","Leak Indicators"),o("glossary","Glossary");let[c,u]=j.default.useState("");return j.default.useEffect(()=>{let d=new IntersectionObserver(f=>{f.forEach(b=>{h.set(b.target.id,b.isIntersecting)});let g=t.map(([b])=>b),y="",_=-1/0;for(let b of g){let p=document.getElementById(b);if(!p)continue;let m=p.getBoundingClientRect().top;if(h.get(b)){y=b;break}m<0&&m>_&&(_=m,y=b)}u(y)},{rootMargin:"-40% 0px -55% 0px"}),h=new Map;return t.forEach(([f])=>{let g=document.getElementById(f);g&&d.observe(g)}),()=>d.disconnect()},[]),(0,a.jsx)("nav",{className:"toc",children:t.map(([d,h,f])=>(0,a.jsxs)(j.default.Fragment,{children:[f&&(0,a.jsx)("span",{className:"toc-group",children:f}),(0,a.jsx)("a",{href:`#${d}`,className:d===c?"active":"",children:h})]},d))})}function Kg(){let[e,t]=j.default.useState(!1);return j.default.useEffect(()=>{let n=()=>t(window.scrollY>600);return window.addEventListener("scroll",n,{passive:!0}),()=>window.removeEventListener("scroll",n)},[]),e?(0,a.jsx)("button",{className:"back-to-top","aria-label":"Back to top",onClick:()=>window.scrollTo({top:0,behavior:"smooth"}),children:"\u2191"}):null}function r1({report:e}){let t=e.leaks.total_shallow,n=[],s=e.leaks.suspects[0];if(s){let r=s.is_single?"a single object":"a class group";n.push((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Headline retainer:"})," ",(0,a.jsx)("code",{children:s.pretty_class})," (",r,") retains"," ",N(s.retained)," (",we(s.retained,t).toFixed(1),"% of reachable heap)."]}))}else if(e.top.biggest_objects[0]){let r=e.top.biggest_objects[0];n.push((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Headline retainer:"})," ",(0,a.jsx)("code",{children:r.display_class})," retains"," ",N(r.retained)," (",we(r.retained,t).toFixed(1),"% of reachable heap)."]}))}else n.push((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Headline retainer:"})," No dominant retainer found."]}));s&&we(s.retained,t)>=50?n.push((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Concentration:"})," A single object/class group dominates the heap (",we(s.retained,t).toFixed(1),"%)."]})):s?n.push((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Concentration:"})," Retention is spread across multiple roots."]})):n.push((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Concentration:"})," No suspect exceeds the threshold; retention is spread across many roots."]}));let i=e.overview.dominator_depth_histogram;if(i.length>0){let r=i.reduce((h,f)=>h+f.objects,0),l=i.reduce((h,f)=>Math.max(h,f.depth),0),c=0,u=l;for(let h of i)if(c+=h.objects,c*10>=r*9){u=h.depth;break}let d=u<=3?"shallow (most objects are held within a few hops of a GC root)":"deep (retention flows through long dominator chains \u2014 often nested collections or linked structures)";n.push((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Shape:"})," ",d," \u2014 90% of objects within depth ",u,", max depth ",l,"."]}))}let o=e.overview.retention_concentration;return(o.top1_bp>0||o.num_objects_ge_1pct>0)&&n.push((0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"One leak or many:"})," the single biggest object retains ",(o.top1_bp/100).toFixed(1),"% and the top 10 retain ",(o.top10_bp/100).toFixed(1),"% of the heap; ",k(o.num_objects_ge_1pct)," object(s) each hold \u22651%."]})),(0,a.jsxs)("div",{className:"oom",id:"triage",tabIndex:-1,children:[(0,a.jsx)("h2",{children:"OOM Triage"}),(0,a.jsx)("p",{className:"subtitle",children:"Where the reachable heap is concentrated, at a glance."}),(0,a.jsx)("ul",{children:n.map((r,l)=>(0,a.jsx)("li",{children:r},l))})]})}function a1({report:e}){let t=e.leaks.suspects,n=t[0],s=n?we(n.retained,e.leaks.total_shallow).toFixed(1)+"%":"\u2014",i=n?.pretty_class??"\u2014",o=n?we(n.retained,e.leaks.total_shallow):0,r;return n&&o>=50?r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Likely problem:"})," ",(0,a.jsx)("code",{children:n.pretty_class})," retains ",o.toFixed(1),"% of the reachable heap \u2014 investigate this first."]}):n?r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Likely problem:"})," retention is spread across several roots; no single object dominates."]}):r=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("strong",{children:"Likely problem:"})," no dominant retainer; the heap looks evenly distributed."]}),(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"kpi-grid",children:[(0,a.jsxs)("div",{className:"kpi",children:[(0,a.jsx)("div",{className:"kpi-value",children:N(e.overview.total_shallow)}),(0,a.jsx)("div",{className:"kpi-label",children:"Total heap"})]}),(0,a.jsxs)("div",{className:"kpi",children:[(0,a.jsx)("div",{className:"kpi-value",children:k(e.overview.total_objects)}),(0,a.jsx)("div",{className:"kpi-label",children:"Objects"})]}),(0,a.jsxs)("div",{className:"kpi",children:[(0,a.jsx)("div",{className:"kpi-value",children:k(t.length)}),(0,a.jsx)("div",{className:"kpi-label",children:"Leak suspects"})]}),(0,a.jsxs)("div",{className:"kpi",children:[(0,a.jsx)("div",{className:"kpi-value",children:s}),(0,a.jsx)("div",{className:"kpi-label",children:"Top suspect share"})]}),(0,a.jsxs)("div",{className:"kpi",children:[(0,a.jsx)("div",{className:"kpi-value",children:(0,a.jsx)("code",{title:i,children:i})}),(0,a.jsx)("div",{className:"kpi-label",children:"Dominant retainer"})]}),(0,a.jsxs)("div",{className:"kpi",children:[(0,a.jsx)("div",{className:"kpi-value",children:k(e.overview.gc_roots)}),(0,a.jsx)("div",{className:"kpi-label",children:"GC roots"})]})]}),(0,a.jsx)("p",{className:"subtitle",style:{fontSize:"1rem"},children:r})]})}function $g(e,t){let[n,s]=j.default.useState(t);return{sorted:j.default.useMemo(()=>[...e].sort((o,r)=>r[n]-o[n]),[e,n]),sortKey:n,setSortKey:s}}function Nn({label:e,colKey:t,sortKey:n,setSortKey:s}){let i=n===t;return(0,a.jsxs)("th",{className:"num sortable"+(i?" active":""),onClick:()=>s(t),title:`Sort by ${e} (descending)`,children:[e," ",i?"\u25BE":""]})}var l1=[{key:"instances",label:"Instances"},{key:"shallow",label:"Shallow"},{key:"max_instance_shallow",label:"Largest"},{key:"retained",label:"Retained"}];function c1({rows:e}){let[t,n]=j.default.useState("retained"),[s,i]=j.default.useState(""),o=j.default.useMemo(()=>e.some(u=>u.loader_label!=null&&u.loader_label!=="<boot>"),[e]),r=j.default.useMemo(()=>{let u=s.trim().toLowerCase();return[...u?e.filter(h=>h.pretty_class.toLowerCase().includes(u)):e].sort((h,f)=>f[t]-h[t])},[e,t,s]),l=500,c=r.slice(0,l);return(0,a.jsxs)("details",{open:!0,children:[(0,a.jsxs)("summary",{children:["Show full class histogram (",k(e.length)," rows)"]}),(0,a.jsxs)("div",{className:"tools",children:[(0,a.jsx)("input",{type:"text",className:"filter",placeholder:"Filter by class name\u2026",value:s,onChange:u=>i(u.target.value),"aria-label":"Filter histogram by class name"}),(0,a.jsxs)("span",{className:"hint",children:[k(r.length)," match",r.length===1?"":"es",r.length>l?` (showing first ${l})`:""," \u2014 click a column to sort"]})]}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"#"}),(0,a.jsx)("th",{children:"Class"}),o&&(0,a.jsx)("th",{children:"Loader"}),l1.map(u=>(0,a.jsx)(Nn,{label:u.label,colKey:u.key,sortKey:t,setSortKey:n},u.key))]})}),(0,a.jsx)("tbody",{children:c.map((u,d)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:d+1}),(0,a.jsx)("td",{children:(0,a.jsxs)("span",{className:"copy-cell",children:[(0,a.jsx)("code",{children:u.pretty_class}),(0,a.jsx)(vo,{text:u.pretty_class})]})}),o&&(0,a.jsx)("td",{children:(0,a.jsx)(u1,{label:u.loader_label})}),(0,a.jsx)("td",{className:"num",children:k(u.instances)}),(0,a.jsx)("td",{className:"num",children:N(u.shallow)}),(0,a.jsx)("td",{className:"num",children:N(u.max_instance_shallow)}),(0,a.jsx)("td",{className:"num",children:N(u.retained)})]},d))})]})]})}function u1({label:e}){let t=Tp(e);return t==null?(0,a.jsx)("span",{className:"hint",children:"\u2014"}):t==="<boot>"?(0,a.jsx)("span",{className:"hint",children:"<boot>"}):(0,a.jsx)("code",{className:"loader",title:e??void 0,children:t})}function vo({text:e}){let[t,n]=j.default.useState(!1);return(0,a.jsx)("button",{className:"copy-btn",onClick:i=>{i.stopPropagation(),navigator.clipboard?.writeText(e).then(()=>{n(!0),setTimeout(()=>n(!1),1200)})},title:"Copy class name","aria-label":"Copy class name",children:t?"\u2713":"\u2398"})}function Na({hasData:e,note:t,children:n}){return e?(0,a.jsx)(a.Fragment,{children:n}):(0,a.jsx)("p",{className:"subtitle",style:{color:"var(--muted)"},children:t})}function d1(e){switch(e){case 0:return"System Class";case 1:return"JNI Global";case 2:return"JNI Local";case 3:return"Java Frame";case 4:return"Native Stack";case 5:return"Sticky Class";case 6:return"Thread Block";case 7:return"Busy Monitor";case 8:return"Thread";default:return"Unknown"}}function h1({report:e}){let t=e.overview.record_census,n=[["UTF8 strings",t.utf8_records],["Load class",t.load_class_records],["Unload class",t.unload_class_records],["Stack frames",t.stack_frame_records],["Stack traces",t.stack_trace_records],["Heap dump segments",t.heap_dump_segments],["Instance dumps",t.instance_dumps],["Object-array dumps",t.obj_array_dumps],["Primitive-array dumps",t.prim_array_dumps],["Class dumps",t.class_dumps]];return(0,a.jsxs)("section",{id:"record-census",children:[(0,a.jsx)("h2",{children:"HPROF Record Census"}),(0,a.jsx)("p",{className:"subtitle",children:"Raw HPROF record-type composition of the dump (pass-1 counts); additive, not parity-compared."}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Record Type"}),(0,a.jsx)("th",{className:"num",children:"Count"})]})}),(0,a.jsx)("tbody",{children:n.map(([s,i],o)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:s}),(0,a.jsx)("td",{className:"num",children:k(i)})]},o))})]}),t.gc_root_tag_counts.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:"GC Root Records by Tag"}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Root Tag"}),(0,a.jsx)("th",{className:"num",children:"Count"})]})}),(0,a.jsx)("tbody",{children:t.gc_root_tag_counts.map(([s,i],o)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:d1(s)}),(0,a.jsx)("td",{className:"num",children:k(i)})]},o))})]})]})]})}function f1({report:e}){let t=e.top.size_distribution;return t.count<=0?null:(0,a.jsxs)("section",{id:"size-distribution",children:[(0,a.jsx)("h2",{children:"Top-Dominator Size Distribution"}),(0,a.jsxs)("p",{className:"subtitle",children:["Retained-size spread across all ",k(t.count)," top-level dominators (the biggest memory contributors)."]}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:["Dominators: ",k(t.count)]}),(0,a.jsxs)("li",{children:["Smallest / largest retained: ",N(t.min)," / ",N(t.max)]}),(0,a.jsxs)("li",{children:["Median retained: ",N(t.median)]}),(0,a.jsxs)("li",{children:["Total retained (top-level): ",N(t.total)]})]}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"num",children:"Size \u2264"}),(0,a.jsx)("th",{className:"num",children:"Count"}),(0,a.jsx)("th",{className:"num",children:"% of Dom."})]})}),(0,a.jsx)("tbody",{children:t.buckets.map((n,s)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:N(n.upper_bytes)}),(0,a.jsx)("td",{className:"num",children:k(n.count)}),(0,a.jsx)("td",{className:"num",children:t.count>0?(n.count/t.count*100).toFixed(1)+"%":"\u2014"})]},s))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(t.count)})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"100.0%"})})]})})]})]})}function p1({report:e}){let t=e.overview.duplicate_strings;if(!t)return(0,a.jsxs)("section",{id:"duplicate-strings",children:[(0,a.jsx)("h2",{children:"Duplicate Strings (approximate)"}),(0,a.jsxs)("p",{className:"subtitle",children:["Duplicate-string analysis not run (pass ",(0,a.jsx)("code",{children:"--dup-strings"}),")."]})]});let n=t.char_array_waste;return(0,a.jsxs)("section",{id:"duplicate-strings",children:[(0,a.jsx)("h2",{children:"Duplicate Strings (approximate)"}),(0,a.jsxs)("p",{className:"subtitle",children:["Opt-in (",(0,a.jsx)("code",{children:"--dup-strings"}),"): each ",(0,a.jsx)("code",{children:"java.lang.String"})," value hashed to 64 bits; collisions accepted as approximation."]}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:["Total String instances: ",k(t.total_string_instances)]}),(0,a.jsxs)("li",{children:["Distinct values: ",k(t.distinct_values)]}),(0,a.jsxs)("li",{children:["Duplicated values: ",k(t.duplicated_values)]}),(0,a.jsxs)("li",{children:["Approx wasted bytes: ",N(t.approx_wasted_bytes)]})]}),t.top_duplicated.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:"Most-Duplicated Values"}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"num",children:"#"}),(0,a.jsx)("th",{className:"num",children:"Count"}),(0,a.jsx)("th",{className:"num",children:"Wasted"}),(0,a.jsx)("th",{children:"Value"})]})}),(0,a.jsx)("tbody",{children:t.top_duplicated.map((s,i)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:i+1}),(0,a.jsx)("td",{className:"num",children:k(s.count)}),(0,a.jsx)("td",{className:"num",children:N(s.wasted_bytes)}),(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:s.text})})]},i))})]})]}),t.top_by_length.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:"Longest Values"}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"num",children:"#"}),(0,a.jsx)("th",{className:"num",children:"Length"}),(0,a.jsx)("th",{className:"num",children:"Count"}),(0,a.jsx)("th",{children:"Value"})]})}),(0,a.jsx)("tbody",{children:t.top_by_length.map((s,i)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:i+1}),(0,a.jsx)("td",{className:"num",children:k(s.len)}),(0,a.jsx)("td",{className:"num",children:k(s.count)}),(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:s.text})})]},i))})]})]}),t.length_histogram.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:"String Length Distribution"}),(0,a.jsxs)("p",{className:"subtitle",children:["Distinct-value lengths (bytes): min ",k(t.length_stats.min),", median ",k(t.length_stats.median),", max ",k(t.length_stats.max),"; total ",N(t.length_stats.total),"."]}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"num",children:"Length \u2264"}),(0,a.jsx)("th",{className:"num",children:"Values"})]})}),(0,a.jsx)("tbody",{children:t.length_histogram.map((s,i)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:k(s.upper_len)}),(0,a.jsx)("td",{className:"num",children:k(s.count)})]},i))})]})]}),t.top_string_holders.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:"Classes Holding the Most Strings"}),(0,a.jsxs)("p",{className:"subtitle",children:["Number of ",(0,a.jsx)("code",{children:"java.lang.String"})," instances referenced by each class's instances."]}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Class"}),(0,a.jsx)("th",{className:"num",children:"String refs"})]})}),(0,a.jsx)("tbody",{children:t.top_string_holders.map((s,i)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:s.class_name})}),(0,a.jsx)("td",{className:"num",children:k(s.string_refs)})]},i))})]})]}),n&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("h3",{children:[(0,a.jsx)("code",{children:"char[]"})," Waste"]}),(0,a.jsxs)("p",{className:"subtitle",children:[k(n.arrays_examined)," arrays examined, ",k(n.wasteful_arrays)," wasteful,"," ",N(n.total_wasted_bytes)," total wasted."]}),n.top.length>0&&(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"num",children:"Array #"}),(0,a.jsx)("th",{className:"num",children:"Length"}),(0,a.jsx)("th",{className:"num",children:"Used"}),(0,a.jsx)("th",{className:"num",children:"Wasted"})]})}),(0,a.jsx)("tbody",{children:n.top.map((s,i)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:k(s.array_obj_1based)}),(0,a.jsx)("td",{className:"num",children:k(s.length)}),(0,a.jsx)("td",{className:"num",children:N(s.used)}),(0,a.jsx)("td",{className:"num",children:N(s.wasted_bytes)})]},i))})]})]})]})}function m1({report:e}){let t=e.overview,n=e.threads?.threads?.length??0;return(0,a.jsxs)("section",{id:"overview",children:[(0,a.jsx)("h2",{children:"System Overview"}),(0,a.jsx)("p",{className:"subtitle",children:"Reachable-heap totals and the largest classes by retained heap."}),(0,a.jsx)("div",{className:"card",children:(0,a.jsxs)("dl",{className:"summary-grid",children:[(0,a.jsx)("dt",{children:"Source file"}),(0,a.jsxs)("dd",{children:[(0,a.jsx)("code",{title:t.file_path,children:t.source_name}),t.file_path&&t.file_path!==t.source_name&&(0,a.jsx)("span",{className:"hint",style:{display:"block"},children:t.file_path})]}),(0,a.jsx)("dt",{children:"HPROF format"}),(0,a.jsx)("dd",{children:t.format}),t.jvm_version&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dt",{children:"JVM version"}),(0,a.jsx)("dd",{children:(0,a.jsx)("code",{children:t.jvm_version})})]}),(0,a.jsx)("dt",{children:"File size"}),(0,a.jsx)("dd",{children:N(t.file_size)}),(0,a.jsx)("dt",{children:"Identifier size"}),(0,a.jsxs)("dd",{children:[t.identifier_size_bits,"-bit"]}),t.compressed_oops!==null&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dt",{children:"Compressed OOPs"}),(0,a.jsx)("dd",{children:t.compressed_oops?"yes":"no"})]}),t.dump_creation!==null&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dt",{children:"Dump created"}),(0,a.jsx)("dd",{children:Ep(t.dump_creation)})]}),(0,a.jsx)("dt",{children:"Total objects"}),(0,a.jsx)("dd",{children:k(t.total_objects)}),(0,a.jsx)("dt",{children:"Total shallow heap"}),(0,a.jsx)("dd",{children:N(t.total_shallow)}),(0,a.jsx)("dt",{children:"GC roots"}),(0,a.jsx)("dd",{children:k(t.gc_roots)}),(0,a.jsx)("dt",{children:"Classes loaded"}),(0,a.jsx)("dd",{children:k(t.classes_loaded)}),(0,a.jsx)("dt",{children:"Class loaders"}),(0,a.jsx)("dd",{children:k(t.classloaders_loaded)}),n>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dt",{children:"Threads (with call stacks)"}),(0,a.jsx)("dd",{children:(0,a.jsx)("a",{href:"#threads",children:k(n)})})]}),t.unreachable_count>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dt",{children:"Unreachable (excluded)"}),(0,a.jsxs)("dd",{children:[k(t.unreachable_count)," (",N(t.unreachable_shallow),")"]})]}),(t.heap_fragmentation_ratio??0)>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dt",{children:"Heap fragmentation"}),(0,a.jsxs)("dd",{children:[((t.heap_fragmentation_ratio??0)*100).toFixed(1),"%"]})]}),(t.top_class_concentration_bp??0)>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("dt",{children:"Top-class retained concentration"}),(0,a.jsxs)("dd",{children:[((t.top_class_concentration_bp??0)/100).toFixed(1),"%"]})]})]})}),t.system_properties.length>0?(0,a.jsxs)("details",{children:[(0,a.jsxs)("summary",{children:["System properties (",k(t.system_properties.length),")"]}),(0,a.jsx)("div",{className:"sysprops",children:(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Key"}),(0,a.jsx)("th",{children:"Value"})]})}),(0,a.jsx)("tbody",{children:t.system_properties.map((s,i)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:s.key})}),(0,a.jsx)("td",{className:"sysprop-val",children:s.value})]},i))})]})})]}):(0,a.jsx)("p",{className:"subtitle",children:"System properties not captured in this dump."}),t.heap_composition.by_kind.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:"Heap Composition"}),(0,a.jsxs)(Na,{hasData:t.heap_composition.by_kind.length>=2,note:"Composition chart needs at least two kinds; showing the table only.",children:[(0,a.jsx)(Rg,{data:t.heap_composition.by_kind}),(0,a.jsx)(Bg,{data:t.heap_composition.by_kind})]}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Kind"}),(0,a.jsx)("th",{className:"num",children:"Objects"}),(0,a.jsx)("th",{className:"num",children:"Shallow Heap"})]})}),(0,a.jsx)("tbody",{children:t.heap_composition.by_kind.map((s,i)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:s.kind}),(0,a.jsx)("td",{className:"num",children:k(s.objects)}),(0,a.jsx)("td",{className:"num",children:N(s.shallow_heap)})]},i))})]})]}),t.gc_roots_by_type.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:"GC Roots by Type"}),(0,a.jsx)(Na,{hasData:t.gc_roots_by_type.length>=2,note:"Too few root types to chart; showing the table only.",children:(0,a.jsx)(Ig,{data:t.gc_roots_by_type})}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Root Type"}),(0,a.jsx)("th",{className:"num",children:"Count"})]})}),(0,a.jsx)("tbody",{children:t.gc_roots_by_type.map((s,i)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:s.root_type}),(0,a.jsx)("td",{className:"num",children:k(s.count)})]},i))})]})]}),(0,a.jsx)("h3",{children:"Class Histogram (by Retained Heap)"}),t.histogram_truncated_to!=null&&(0,a.jsxs)("p",{className:"subtitle",children:["Histogram capped to the largest ",k(t.histogram_truncated_to)," classes."]}),(0,a.jsx)(Na,{hasData:t.histogram.length>0,note:"No histogram classes to chart.",children:(0,a.jsx)(Og,{data:t.histogram})}),(0,a.jsx)(c1,{rows:t.histogram}),t.loader_rollup.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:"Class Loaders"}),(0,a.jsx)("p",{className:"subtitle",children:"Classes grouped by the loader that defined them. Many loaders each holding heap \u2014 especially the same class name under several loaders \u2014 can signal a class-loader leak."}),(0,a.jsx)(Lg,{data:t.loader_rollup}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Loader"}),(0,a.jsx)("th",{className:"num",children:"Classes"}),(0,a.jsx)("th",{className:"num",children:"Instances"}),(0,a.jsx)("th",{className:"num",children:"Shallow"}),(0,a.jsx)("th",{className:"num",children:"Retained"})]})}),(0,a.jsx)("tbody",{children:t.loader_rollup.map((s,i)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:s.loader_label??`loader@${s.loader_id}`}),(0,a.jsx)("td",{className:"num",children:k(s.class_count)}),(0,a.jsx)("td",{className:"num",children:k(s.instances)}),(0,a.jsx)("td",{className:"num",children:N(s.shallow)}),(0,a.jsx)("td",{className:"num",children:N(s.retained)})]},i))})]})]}),t.duplicate_classes.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:"Duplicate Classes"}),(0,a.jsx)("p",{className:"subtitle",children:"Class names loaded by more than one class loader \u2014 a classic class-loader-leak signature (the same class re-loaded repeatedly, e.g. per web-app or plugin reload)."}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Class"}),(0,a.jsx)("th",{className:"num",children:"#Loaders"}),(0,a.jsx)("th",{className:"num",children:"Instances"}),(0,a.jsx)("th",{className:"num",children:"Retained"})]})}),(0,a.jsx)("tbody",{children:t.duplicate_classes.map((s,i)=>(0,a.jsx)(j.default.Fragment,{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{title:s.loaders.join(", "),children:s.per_loader&&s.per_loader.length>0?(0,a.jsxs)("details",{children:[(0,a.jsx)("summary",{children:(0,a.jsx)("code",{children:s.pretty_class})}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Loader"}),(0,a.jsx)("th",{className:"num",children:"Instances"}),(0,a.jsx)("th",{className:"num",children:"Shallow"}),(0,a.jsx)("th",{className:"num",children:"Retained"})]})}),(0,a.jsx)("tbody",{children:s.per_loader.map((o,r)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:o.loader_label})}),(0,a.jsx)("td",{className:"num",children:k(o.instances)}),(0,a.jsx)("td",{className:"num",children:N(o.shallow)}),(0,a.jsx)("td",{className:"num",children:N(o.retained)})]},r))})]})]}):(0,a.jsx)("code",{children:s.pretty_class})}),(0,a.jsx)("td",{className:"num",children:k(s.loader_count)}),(0,a.jsx)("td",{className:"num",children:k(s.total_instances)}),(0,a.jsx)("td",{className:"num",children:N(s.total_retained)})]})},i))})]})]})]})}function g1({s:e}){return e.path.length===0?null:(0,a.jsxs)("details",{open:!0,children:[(0,a.jsxs)("summary",{children:["Shortest path to the accumulation point (",e.path.length," steps)"]}),(0,a.jsx)("ol",{className:"accum-path",children:e.path.map((t,n)=>(0,a.jsxs)("li",{children:[(0,a.jsx)("code",{children:t.display_class})," ",(0,a.jsxs)("span",{className:"path-ret",children:["retains ",N(t.retained)]})]},n))})]})}function y1({rows:e}){return e.length===0?null:(0,a.jsxs)("details",{children:[(0,a.jsxs)("summary",{children:["Accumulated objects grouped by class (",e.length,")"]}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Class"}),(0,a.jsx)("th",{className:"num",children:"Instances"}),(0,a.jsx)("th",{className:"num",children:"Shallow"}),(0,a.jsx)("th",{className:"num",children:"Retained"})]})}),(0,a.jsx)("tbody",{children:e.map((t,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:t.pretty_class})}),(0,a.jsx)("td",{className:"num",children:k(t.instances)}),(0,a.jsx)("td",{className:"num",children:N(t.shallow)}),(0,a.jsx)("td",{className:"num",children:N(t.retained)})]},n))})]})]})}function v1({steps:e}){if(e.length===0)return null;let t=e.length-1;return(0,a.jsxs)("details",{children:[(0,a.jsxs)("summary",{children:["Path to GC root \xB7 dominator chain (",e.length," step",e.length===1?"":"s",")"]}),(0,a.jsx)("ol",{className:"accum-path",children:e.map((n,s)=>(0,a.jsxs)("li",{children:[(0,a.jsx)("code",{children:n.display_class})," ",(0,a.jsxs)("span",{className:"path-ret",children:["retains ",N(n.retained)]}),s===t&&n.root_type_label&&(0,a.jsxs)(a.Fragment,{children:[" \u2014 ",(0,a.jsxs)("strong",{children:["GC root: ",n.root_type_label]})]})]},s))})]})}function Yg({node:e,depth:t}){let n=e.children.length>0,s=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:e.display_class})," ",(0,a.jsxs)("span",{className:"path-ret",children:["shallow ",N(e.shallow)," \xB7 retained ",N(e.retained)]})]});return n?(0,a.jsx)("li",{children:(0,a.jsxs)("details",{open:t<1,children:[(0,a.jsx)("summary",{style:{paddingLeft:`${t*1.1}rem`},children:s}),(0,a.jsx)("ul",{className:"dom-subtree",children:e.children.map((i,o)=>(0,a.jsx)(Yg,{node:i,depth:t+1},o))})]})}):(0,a.jsxs)("li",{style:{paddingLeft:`${t*1.1}rem`},children:[(0,a.jsx)("span",{className:"tree-leaf",children:"\u2022"})," ",s]})}function _1({node:e}){return(0,a.jsxs)("details",{children:[(0,a.jsx)("summary",{children:"Dominator subtree"}),(0,a.jsx)("ul",{className:"dom-subtree",children:(0,a.jsx)(Yg,{node:e,depth:0})})]})}function Xg({node:e,depth:t}){let n=e.children.length>0,s=(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("code",{children:e.display_class})," ",(0,a.jsxs)("span",{className:"path-ret",children:[k(e.object_count)," object",e.object_count===1?"":"s"," \xB7 retained ",N(e.retained)]}),e.root_type_label&&(0,a.jsxs)(a.Fragment,{children:[" \u2014 ",(0,a.jsxs)("strong",{children:["GC root: ",e.root_type_label]})]})]});return n?(0,a.jsx)("li",{children:(0,a.jsxs)("details",{open:t<1,children:[(0,a.jsx)("summary",{style:{paddingLeft:`${t*1.1}rem`},children:s}),(0,a.jsx)("ul",{className:"dom-subtree",children:e.children.map((i,o)=>(0,a.jsx)(Xg,{node:i,depth:t+1},o))})]})}):(0,a.jsxs)("li",{style:{paddingLeft:`${t*1.1}rem`},children:[(0,a.jsx)("span",{className:"tree-leaf",children:"\u2022"})," ",s]})}function b1({node:e}){return(0,a.jsxs)("details",{children:[(0,a.jsx)("summary",{children:"Merged paths to GC roots"}),(0,a.jsx)("ul",{className:"dom-subtree",children:(0,a.jsx)(Xg,{node:e,depth:0})})]})}function x1({s:e,total:t,rank:n}){let s=we(e.retained,t);return(0,a.jsxs)("div",{className:"suspect",id:`suspect-${n}`,children:[(0,a.jsxs)("h3",{style:{margin:"0 0 0.25rem"},children:[(0,a.jsxs)("span",{className:"rank",children:["Problem Suspect ",n]})," ",(0,a.jsx)("code",{children:e.pretty_class}),(0,a.jsx)("span",{className:"pill",children:e.is_single?"single object":`class group \xD7${k(e.instance_count)}`})]}),(0,a.jsxs)("p",{style:{margin:"0.25rem 0"},children:["Retains ",(0,a.jsx)("strong",{title:zs(e.retained),children:N(e.retained)})," ",(0,a.jsxs)("span",{className:"mat-exact",children:[zs(e.retained)," (",s.toFixed(2),"%)"]}),e.shallow>0&&(0,a.jsxs)(a.Fragment,{children:[" \xB7 shallow ",N(e.shallow)]}),"."]}),(0,a.jsxs)("p",{style:{margin:"0.25rem 0"},children:[(0,a.jsx)("span",{className:"label",children:"Held by:"})," ",e.root_type_label?(0,a.jsxs)(a.Fragment,{children:["a ",(0,a.jsx)("strong",{children:e.root_type_label})," GC root"]}):(0,a.jsx)("span",{style:{color:"var(--muted)"},children:"multiple / ambiguous roots (no single holding root identified)"})]}),e.keywords.length>0&&(0,a.jsxs)("p",{style:{margin:"0.25rem 0"},children:[(0,a.jsx)("span",{className:"label",children:"Keywords:"})," ",e.keywords.map((i,o)=>(0,a.jsx)("span",{className:"pill keyword",title:"Class involved in this suspect",children:i},o))]}),e.accumulation_class&&(0,a.jsxs)("p",{style:{margin:"0.25rem 0",color:"var(--muted)",fontSize:"0.86rem"},children:["Accumulation point: ",(0,a.jsx)("code",{children:e.accumulation_class}),e.accumulation_retained!=null&&(0,a.jsxs)(a.Fragment,{children:[" retaining ",N(e.accumulation_retained)]}),"."]}),(0,a.jsx)(g1,{s:e}),(0,a.jsx)(y1,{rows:e.dominated_by_class}),e.dominated.length>0&&(0,a.jsxs)("details",{children:[(0,a.jsxs)("summary",{children:["Accumulated objects in dominator tree"," ",e.dominated_total_count>e.dominated_shown?`(directly dominates ${k(e.dominated_total_count)}, showing top ${k(e.dominated_shown)})`:`(directly dominates ${k(e.dominated_total_count)})`]}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Class"}),(0,a.jsx)("th",{className:"num",children:"Shallow"}),(0,a.jsx)("th",{className:"num",children:"Retained"})]})}),(0,a.jsx)("tbody",{children:e.dominated.map((i,o)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:i.display_class})}),(0,a.jsx)("td",{className:"num",children:N(i.shallow)}),(0,a.jsx)("td",{className:"num",children:N(i.retained)})]},o))})]})]}),e.root_path&&(0,a.jsx)(v1,{steps:e.root_path}),e.dominator_tree&&(0,a.jsx)(_1,{node:e.dominator_tree}),!e.is_single&&e.merged_paths&&(0,a.jsx)(b1,{node:e.merged_paths})]})}function w1({report:e}){let t=e.leaks;return(0,a.jsxs)("section",{id:"leaks",children:[(0,a.jsx)("h2",{children:"Leak Suspects"}),(0,a.jsx)("p",{className:"subtitle",children:"Ranked accumulation points holding the most retained heap."}),t.suspects.length===0?(0,a.jsx)("p",{children:"No suspect exceeds the leak threshold; retention is spread across many roots."}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:"Overview \u2014 retained-heap share"}),(0,a.jsx)("p",{className:"subtitle",children:"How concentrated the leak is: each slice is one suspect's retained heap; the remainder is everything else on the reachable heap."}),(0,a.jsx)(Na,{hasData:t.suspects.length>0&&t.total_shallow>0,note:"No leak suspects to chart.",children:(0,a.jsx)(Ag,{suspects:t.suspects,total:t.total_shallow})}),t.suspects.map((n,s)=>(0,a.jsx)(x1,{s:n,total:t.total_shallow,rank:s+1},s))]})]})}function Gg({node:e,depth:t,maxRetained:n,rowId:s}){let[i,o]=j.default.useState(t<1),r=e.children.length>0,l=e.name||"(default package)",c=n>0?e.retained_heap/n*100:0;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("tr",{id:s,children:[(0,a.jsx)("td",{children:(0,a.jsxs)("span",{style:{paddingLeft:`${t*1.1}rem`},children:[r?(0,a.jsx)("button",{className:"tree-toggle",onClick:()=>o(!i),"aria-expanded":i,children:i?"\u25BE":"\u25B8"}):(0,a.jsx)("span",{className:"tree-leaf",children:"\u2022"}),(0,a.jsx)("code",{children:l})]})}),(0,a.jsx)("td",{className:"num",children:k(e.top_dominator_count)}),(0,a.jsx)("td",{className:"num",children:N(e.shallow_heap)}),(0,a.jsxs)("td",{className:"num bar-cell",children:[(0,a.jsx)("span",{className:"bar-bg",children:(0,a.jsx)("span",{className:"bar-fill",style:{width:`${c}%`}})}),N(e.retained_heap)]})]}),i&&e.children.map((u,d)=>(0,a.jsx)(Gg,{node:u,depth:t+1,maxRetained:n},d))]})}function k1({report:e}){let t=e.top,n=e.leaks.total_shallow,s=t.biggest_packages,i=s.children.reduce((l,c)=>Math.max(l,c.retained_heap),0),o=$g(t.biggest_objects,"retained"),r=$g(t.biggest_classes,"retained");return(0,a.jsxs)("section",{id:"top",children:[(0,a.jsx)("h2",{children:"Top Consumers"}),(0,a.jsx)("p",{className:"subtitle",children:"Biggest individual objects, classes, and packages by retained heap."}),(0,a.jsx)("h3",{children:"Biggest Objects"}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"#"}),(0,a.jsx)("th",{children:"Class"}),(0,a.jsx)(Nn,{label:"Shallow",colKey:"shallow",sortKey:o.sortKey,setSortKey:o.setSortKey}),(0,a.jsx)(Nn,{label:"Retained",colKey:"retained",sortKey:o.sortKey,setSortKey:o.setSortKey}),(0,a.jsx)(Nn,{label:"% Heap",colKey:"pct_bp",sortKey:o.sortKey,setSortKey:o.setSortKey})]})}),(0,a.jsx)("tbody",{children:o.sorted.map((l,c)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:c+1}),(0,a.jsxs)("td",{children:[(0,a.jsx)("code",{children:l.display_class})," "]}),(0,a.jsx)("td",{className:"num",children:N(l.shallow)}),(0,a.jsx)("td",{className:"num",title:zs(l.retained),children:N(l.retained)}),(0,a.jsxs)("td",{className:"num",children:[we(l.retained,n).toFixed(1),"%"]})]},c))})]}),(0,a.jsx)("h3",{children:"Biggest Classes"}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Class"}),(0,a.jsx)(Nn,{label:"Instances",colKey:"instances",sortKey:r.sortKey,setSortKey:r.setSortKey}),(0,a.jsx)(Nn,{label:"Retained",colKey:"retained",sortKey:r.sortKey,setSortKey:r.setSortKey}),(0,a.jsx)("th",{className:"num",children:"% Heap"})]})}),(0,a.jsx)("tbody",{children:r.sorted.map((l,c)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsxs)("span",{className:"copy-cell",children:[(0,a.jsx)("code",{children:l.pretty_class}),(0,a.jsx)(vo,{text:l.pretty_class})]})}),(0,a.jsx)("td",{className:"num",children:k(l.instances)}),(0,a.jsx)("td",{className:"num",title:zs(l.retained),children:N(l.retained)}),(0,a.jsxs)("td",{className:"num",children:[we(l.retained,n).toFixed(1),"%"]})]},c))})]}),s.children.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:"Biggest Packages"}),(0,a.jsxs)("p",{className:"subtitle",children:["Expand a package to drill into its sub-packages. Totals are cumulative over the subtree. Only top-level dominators retaining at least ",(t.threshold_bp/100).toFixed(t.threshold_bp%100===0?0:2),"% of the heap are included (smaller ones are pruned, MAT-style)."]}),(0,a.jsx)(Hg,{root:s,onSelect:l=>document.getElementById(`pkg-${l}`)?.scrollIntoView({behavior:"smooth",block:"center"})}),(0,a.jsxs)("table",{className:"tree-table",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Package"}),(0,a.jsx)("th",{className:"num",children:"# Objects"}),(0,a.jsx)("th",{className:"num",children:"Shallow"}),(0,a.jsx)("th",{className:"num",children:"Retained"})]})}),(0,a.jsx)("tbody",{children:s.children.map((l,c)=>(0,a.jsx)(Gg,{node:l,depth:0,maxRetained:i,rowId:`pkg-${c}`},c))})]})]})]})}function S1({objs:e}){return e.length===0?null:(0,a.jsxs)("details",{className:"thread-locals-detail",children:[(0,a.jsxs)("summary",{children:["Local root objects (",k(e.length),")"]}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Object"}),(0,a.jsx)("th",{className:"num",children:"Shallow"}),(0,a.jsx)("th",{className:"num",children:"Retained"})]})}),(0,a.jsx)("tbody",{children:e.map((t,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsxs)("span",{className:"copy-cell",children:[(0,a.jsx)("code",{children:t.display_class}),(0,a.jsx)(vo,{text:t.display_class})]})}),(0,a.jsx)("td",{className:"num",children:N(t.shallow)}),(0,a.jsx)("td",{className:"num",children:N(t.retained)})]},n))})]})]})}function C1({t:e,open:t}){let n=e.class_name??"<unresolved>",s=e.name?.trim(),i=e.significant_frames??[];return(0,a.jsxs)("details",{className:"thread",open:t,id:`thread-${e.thread_serial}`,children:[(0,a.jsxs)("summary",{children:[s?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("span",{className:"thread-name",children:['"',s,'"']})," ",(0,a.jsxs)("span",{className:"thread-serial",children:["Thread ",e.thread_serial]})," ","(",(0,a.jsx)("code",{children:n}),")"]}):(0,a.jsxs)(a.Fragment,{children:["Thread ",e.thread_serial," (",(0,a.jsx)("code",{children:n}),")"]})," ","\u2014 ",k(e.frames.length)," frame",e.frames.length===1?"":"s",e.local_root_count>0?(0,a.jsxs)(a.Fragment,{children:[" ","\xB7"," ",(0,a.jsxs)("span",{className:"thread-locals",children:[k(e.local_root_count)," local root",e.local_root_count===1?"":"s"]})]}):null]}),(0,a.jsxs)("dl",{className:"thread-props",children:[(0,a.jsx)("dt",{children:"Shallow Heap"}),(0,a.jsx)("dd",{children:N(e.shallow)}),(0,a.jsx)("dt",{children:"Retained Heap"}),(0,a.jsx)("dd",{children:N(e.retained)}),(0,a.jsx)("dt",{children:"Max. Locals' Retained"}),(0,a.jsx)("dd",{children:N(e.max_local_retained)}),(0,a.jsx)("dt",{children:"Context Class Loader"}),(0,a.jsx)("dd",{children:e.context_class_loader?(0,a.jsx)("code",{children:e.context_class_loader}):"\u2014"}),(0,a.jsx)("dt",{children:"Is Daemon"}),(0,a.jsx)("dd",{children:e.is_daemon?"true":"false"}),(0,a.jsx)("dt",{children:"Priority"}),(0,a.jsx)("dd",{children:e.priority}),(0,a.jsx)("dt",{children:"State"}),(0,a.jsx)("dd",{children:e.thread_state||"\u2014"})]}),e.local_objects&&(0,a.jsx)(S1,{objs:e.local_objects}),i.length>0?(0,a.jsx)("ul",{className:"sig-frames",children:i.map((o,r)=>(0,a.jsxs)("li",{children:[(0,a.jsx)("code",{children:o.frame}),o.locals.length>0&&(0,a.jsx)("ul",{children:o.locals.map((l,c)=>(0,a.jsxs)("li",{children:[(0,a.jsx)("code",{children:l.display_class})," retains ",N(l.retained)," (",l.pct.toFixed(1),"%)"]},c))})]},r))}):(0,a.jsx)("pre",{className:"stack",children:e.frames.join(`
`)})]})}function N1({threads:e}){return e.length===0?null:(0,a.jsxs)("details",{className:"thread-overview-detail",children:[(0,a.jsxs)("summary",{children:["Thread Overview (",k(e.length),")"]}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Name"}),(0,a.jsx)("th",{className:"num",children:"Shallow"}),(0,a.jsx)("th",{className:"num",children:"Retained"}),(0,a.jsx)("th",{className:"num",children:"Max. Locals' Retained"}),(0,a.jsx)("th",{children:"Context Class Loader"}),(0,a.jsx)("th",{children:"Daemon"}),(0,a.jsx)("th",{className:"num",children:"Priority"}),(0,a.jsx)("th",{children:"State"})]})}),(0,a.jsx)("tbody",{children:e.map((t,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("a",{href:`#thread-${t.thread_serial}`,children:t.name?.trim()||`<thread ${t.thread_serial}>`})}),(0,a.jsx)("td",{className:"num",children:N(t.shallow)}),(0,a.jsx)("td",{className:"num",children:N(t.retained)}),(0,a.jsx)("td",{className:"num",children:N(t.max_local_retained)}),(0,a.jsx)("td",{children:t.context_class_loader?(0,a.jsx)("code",{children:t.context_class_loader}):"\u2014"}),(0,a.jsx)("td",{children:t.is_daemon?"yes":"no"}),(0,a.jsx)("td",{className:"num",children:t.priority}),(0,a.jsx)("td",{children:t.thread_state||"\u2014"})]},n))})]})]})}function M1({report:e}){let n=e.threads?.threads??[],[s,i]=j.default.useState(""),[o,r]=j.default.useState(!1),[l,c]=j.default.useState(void 0),[u,d]=j.default.useState(0),h=j.default.useMemo(()=>{let y=s.trim().toLowerCase();return y?n.filter(_=>(_.name??"").toLowerCase().includes(y)||(_.class_name??"").toLowerCase().includes(y)||String(_.thread_serial).includes(y)||_.frames.some(b=>b.toLowerCase().includes(y))):n},[n,s]),f=s.trim().length>0,g=f||o?h:h.slice(0,100);return(0,a.jsxs)("section",{id:"threads",children:[(0,a.jsx)("h2",{children:"Threads"}),(0,a.jsx)("p",{className:"subtitle",children:"Per-thread call stacks recorded in the dump."}),n.length===0?(0,a.jsx)("p",{children:"No thread call stacks were recorded in this dump."}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(N1,{threads:n}),(0,a.jsxs)("div",{className:"tools",children:[(0,a.jsx)("input",{type:"text",className:"filter",placeholder:"Filter threads (name, class, serial, or stack frame)\u2026",value:s,onChange:y=>i(y.target.value),"aria-label":"Filter threads"}),(0,a.jsxs)("span",{className:"hint",children:[k(h.length)," of ",k(n.length)," thread",n.length===1?"":"s"]}),(0,a.jsx)("button",{className:"theme-toggle",onClick:()=>{c(!0),d(y=>y+1)},children:"Expand all"}),(0,a.jsx)("button",{className:"theme-toggle",onClick:()=>{c(!1),d(y=>y+1)},children:"Collapse all"})]}),g.map((y,_)=>(0,a.jsx)(C1,{t:y,open:l},`${u}-${_}`)),!f&&!o&&h.length>100&&(0,a.jsxs)("button",{className:"theme-toggle",style:{marginTop:"0.5rem"},onClick:()=>r(!0),children:["Show ",k(h.length-100)," more threads"]})]})]})}var P1=[{key:"retained",label:"Retained"},{key:"pct",label:"% Heap"}];function E1({data:e}){let[t,n]=j.default.useState("retained"),s=e?.components??[],i=j.default.useMemo(()=>[...s].sort((o,r)=>r[t]-o[t]),[s,t]);return s.length===0?null:(0,a.jsxs)("section",{id:"top-components",children:[(0,a.jsx)("h2",{children:"Top Components"}),(0,a.jsx)("p",{className:"subtitle",children:"Retained heap grouped by class loader (component); % Heap is the share of total reachable heap."}),(0,a.jsxs)("details",{open:!0,children:[(0,a.jsxs)("summary",{children:["Components by retained heap (",k(s.length)," rows)"]}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Component"}),P1.map(o=>(0,a.jsx)(Nn,{label:o.label,colKey:o.key,sortKey:t,setSortKey:n},o.key)),(0,a.jsx)("th",{children:"Top classes"})]})}),(0,a.jsx)("tbody",{children:i.map((o,r)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:o.loader_label})}),(0,a.jsx)("td",{className:"num",children:N(o.retained)}),(0,a.jsxs)("td",{className:"num",children:[o.pct.toFixed(1),"%"]}),(0,a.jsx)("td",{children:o.top_classes.map((l,c)=>(0,a.jsxs)("span",{children:[c>0?", ":"",(0,a.jsx)("code",{children:l.pretty_class})," (",N(l.retained),")"]},c))})]},r))})]})]})]})}function T1({data:e,totalShallow:t}){let n=e?.obj_array_buckets??[],s=e?.prim_array_buckets??[],i=e?.zero_length_count??0,o=n.length===0&&s.length===0&&i===0,r=(l,c)=>{let u=c.reduce((h,f)=>h+f.objects,0),d=c.reduce((h,f)=>h+f.shallow,0);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:l}),c.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"num",children:"Max length"}),(0,a.jsx)("th",{className:"num",children:"Objects"}),(0,a.jsx)("th",{className:"num",children:"Shallow"}),(0,a.jsx)("th",{className:"num",children:"% Heap"})]})}),(0,a.jsx)("tbody",{children:c.map((h,f)=>(0,a.jsxs)("tr",{children:[(0,a.jsxs)("td",{className:"num",children:["\u2264 ",k(h.upper_len)]}),(0,a.jsx)("td",{className:"num",children:k(h.objects)}),(0,a.jsx)("td",{className:"num",children:N(h.shallow)}),(0,a.jsx)("td",{className:"num",children:t>0?(h.shallow/t*100).toFixed(1)+"%":"\u2014"})]},f))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(u)})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(d)})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:t>0?(d/t*100).toFixed(1)+"%":"\u2014"})})]})})]})]})};return(0,a.jsxs)("section",{id:"arrays-by-size",children:[(0,a.jsx)("h2",{children:"Arrays by Size"}),(0,a.jsx)("p",{className:"subtitle",children:"Array-length distribution bucketed by power-of-two element length; Max length is the inclusive upper bound of each bucket."}),o?(0,a.jsx)("p",{className:"subtitle",children:"No arrays found."}):(0,a.jsxs)(a.Fragment,{children:[r("Object arrays",n),r("Primitive arrays",s),(0,a.jsxs)("p",{children:["Zero-length arrays: ",k(i)]})]})]})}function D1({data:e}){let t=e?.collection_fill_ratio,n=e?.collections_by_size,s=e?.array_fill_ratio,i=e?.map_collision_ratio,o=e?.constant_primitive_arrays,r=e?.top_prim_arrays,l=e?.top_obj_arrays,c=(p,m)=>{let v=p?.top_individual??[],x=p?.top_by_class??[],w=v.some(S=>S.owner!=null);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("h3",{children:["Top Arrays (",m,")"]}),(0,a.jsxs)("p",{className:"subtitle",children:["The largest ",m," arrays by shallow size, individually and aggregated by array class."]}),v.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Array class"}),(0,a.jsx)("th",{className:"num",children:"Length"}),(0,a.jsx)("th",{className:"num",children:"Shallow"}),w&&(0,a.jsx)("th",{children:"Owner (Class#field)"})]})}),(0,a.jsx)("tbody",{children:v.map((S,C)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:S.array_class})}),(0,a.jsx)("td",{className:"num",children:k(S.length)}),(0,a.jsx)("td",{className:"num",children:N(S.shallow)}),w&&(0,a.jsx)("td",{children:S.owner?(0,a.jsx)("code",{children:S.owner}):"\u2014"})]},C))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{className:"num"}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(v.reduce((S,C)=>S+C.shallow,0))})}),w&&(0,a.jsx)("td",{})]})})]}),(0,a.jsxs)("h4",{children:["Top Array Classes (",m,")"]}),x.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Array class"}),(0,a.jsx)("th",{className:"num",children:"Instances"}),(0,a.jsx)("th",{className:"num",children:"Shallow"})]})}),(0,a.jsx)("tbody",{children:x.map((S,C)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:S.array_class})}),(0,a.jsx)("td",{className:"num",children:k(S.objects)}),(0,a.jsx)("td",{className:"num",children:N(S.shallow)})]},C))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(x.reduce((S,C)=>S+C.objects,0))})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(x.reduce((S,C)=>S+C.shallow,0))})})]})})]})]})},u=p=>p.lower_ratio_bp===p.upper_ratio_bp?`${p.lower_ratio_bp/100}% (full)`:`${p.lower_ratio_bp/100}\u2013${p.upper_ratio_bp/100}%`,d=(p,m,v)=>{let x=v.reduce((C,M)=>C+M.objects,0),w=v.reduce((C,M)=>C+M.shallow,0),S=v.reduce((C,M)=>C+M.wasted,0);return(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"num",children:p}),(0,a.jsx)("th",{className:"num",children:m}),(0,a.jsx)("th",{className:"num",children:"Shallow"}),(0,a.jsx)("th",{className:"num",children:"Wasted"})]})}),(0,a.jsx)("tbody",{children:v.map((C,M)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:u(C)}),(0,a.jsx)("td",{className:"num",children:k(C.objects)}),(0,a.jsx)("td",{className:"num",children:N(C.shallow)}),(0,a.jsx)("td",{className:"num",children:N(C.wasted)})]},M))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(x)})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(w)})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(S)})})]})})]})},h=t?.buckets??[],f=n?.buckets??[],g=s?.buckets??[],y=i?.buckets??[],_=o?.rows??[],b=e?.kind_summary?.kinds??[];return(0,a.jsxs)("section",{id:"collections",children:[(0,a.jsx)("h2",{children:"Collections"}),(0,a.jsx)("p",{className:"subtitle",children:"Collection and array occupancy: how full collections are, how big they get, and constant primitive arrays."}),(0,a.jsx)("h3",{children:"Collections by Kind"}),b.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Kind"}),(0,a.jsx)("th",{className:"num",children:"Count"}),(0,a.jsx)("th",{className:"num",children:"Total Elements"}),(0,a.jsx)("th",{className:"num",children:"Max Elements"}),(0,a.jsx)("th",{className:"num",children:"Total Shallow"})]})}),(0,a.jsx)("tbody",{children:b.map((p,m)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:p.kind}),(0,a.jsx)("td",{className:"num",children:k(p.count)}),(0,a.jsx)("td",{className:"num",children:k(p.total_elements)}),(0,a.jsx)("td",{className:"num",children:k(p.max_elements)}),(0,a.jsx)("td",{className:"num",children:N(p.total_shallow)})]},m))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(b.reduce((p,m)=>p+m.count,0))})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(b.reduce((p,m)=>p+m.total_elements,0))})}),(0,a.jsx)("td",{className:"num"}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(b.reduce((p,m)=>p+m.total_shallow,0))})})]})})]}),(0,a.jsx)("h3",{children:"Collection Fill Ratio"}),(0,a.jsxs)("p",{className:"subtitle",children:[k(t?.tracked??0)," tracked of ",k(t?.total??0)," collections."]}),h.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):d("Fill %","Collections",h),(0,a.jsx)("h3",{children:"Collections by Size"}),(0,a.jsxs)("p",{className:"subtitle",children:[k(n?.tracked??0)," tracked; ",k(n?.empty_count??0)," empty."]}),f.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"num",children:"Size \u2264"}),(0,a.jsx)("th",{className:"num",children:"Collections"}),(0,a.jsx)("th",{className:"num",children:"Shallow"})]})}),(0,a.jsx)("tbody",{children:f.map((p,m)=>(0,a.jsxs)("tr",{children:[(0,a.jsxs)("td",{className:"num",children:["\u2264 ",k(p.upper_len)]}),(0,a.jsx)("td",{className:"num",children:k(p.objects)}),(0,a.jsx)("td",{className:"num",children:N(p.shallow)})]},m))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(f.reduce((p,m)=>p+m.objects,0))})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(f.reduce((p,m)=>p+m.shallow,0))})})]})})]}),(0,a.jsx)("h3",{children:"Array Fill Ratio"}),(0,a.jsxs)("p",{className:"subtitle",children:[k(s?.tracked??0)," tracked object arrays."]}),g.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):d("Fill %","Arrays",g),(0,a.jsx)("h3",{children:"Map Collision Ratio"}),(0,a.jsxs)("p",{className:"subtitle",children:[k(i?.tracked??0)," tracked of ",k(i?.total??0)," maps (occupied slots \xF7 size; lower is worse)."]}),y.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"num",children:"Load %"}),(0,a.jsx)("th",{className:"num",children:"Maps"}),(0,a.jsx)("th",{className:"num",children:"Shallow"})]})}),(0,a.jsx)("tbody",{children:y.map((p,m)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:u(p)}),(0,a.jsx)("td",{className:"num",children:k(p.objects)}),(0,a.jsx)("td",{className:"num",children:N(p.shallow)})]},m))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(y.reduce((p,m)=>p+m.objects,0))})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(y.reduce((p,m)=>p+m.shallow,0))})})]})})]}),(0,a.jsx)("h3",{children:"Constant Primitive Arrays"}),(0,a.jsxs)("p",{className:"subtitle",children:["Primitive arrays whose every element is identical.",o?.truncated?" (list truncated; remaining groups folded into one row).":""]}),_.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Array class"}),(0,a.jsx)("th",{className:"num",children:"Length"}),(0,a.jsx)("th",{className:"num",children:"Value"}),(0,a.jsx)("th",{className:"num",children:"Objects"}),(0,a.jsx)("th",{className:"num",children:"Shallow"})]})}),(0,a.jsx)("tbody",{children:_.map((p,m)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:p.array_class})}),(0,a.jsx)("td",{className:"num",children:k(p.length)}),(0,a.jsx)("td",{className:"num",children:String(p.value)}),(0,a.jsx)("td",{className:"num",children:k(p.objects)}),(0,a.jsx)("td",{className:"num",children:N(p.shallow)})]},m))})]}),c(r,"primitive"),c(l,"object")]})}function R1({data:e}){if(!e)return null;let t=e.most_overall??[],n=e.biggest_single??[];return(0,a.jsxs)("section",{id:"container-attribution",children:[(0,a.jsx)("h2",{children:"Container Attribution (Class#field)"}),(0,a.jsxs)("p",{className:"subtitle",children:["Which holder ",(0,a.jsx)("code",{children:"Class#field"})," points at the most container memory. Two rankings: total across all containers reached through a field, and the single largest container per field."]}),(0,a.jsx)("h3",{children:"Most Overall"}),t.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Class#field"}),(0,a.jsx)("th",{children:"Kind"}),(0,a.jsx)("th",{className:"num",children:"Containers"}),(0,a.jsx)("th",{className:"num",children:"Holder Instances"}),(0,a.jsx)("th",{className:"num",children:"Total Elements"}),(0,a.jsx)("th",{className:"num",children:"Total Retained"})]})}),(0,a.jsx)("tbody",{children:t.map((s,i)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsxs)("code",{children:[s.holder_class,"#",s.field]})}),(0,a.jsx)("td",{children:s.container_kind}),(0,a.jsx)("td",{className:"num",children:k(s.container_count)}),(0,a.jsx)("td",{className:"num",children:k(s.holder_instances)}),(0,a.jsx)("td",{className:"num",children:k(s.total_elements)}),(0,a.jsx)("td",{className:"num",children:N(s.total_retained)})]},i))})]}),(0,a.jsx)("h3",{children:"Biggest Single"}),n.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Class#field"}),(0,a.jsx)("th",{children:"Container Class"}),(0,a.jsx)("th",{className:"num",children:"Elements"}),(0,a.jsx)("th",{className:"num",children:"Capacity"}),(0,a.jsx)("th",{className:"num",children:"Retained"})]})}),(0,a.jsx)("tbody",{children:n.map((s,i)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsxs)("code",{children:[s.holder_class,"#",s.field]})}),(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:s.container_class})}),(0,a.jsx)("td",{className:"num",children:k(s.elements)}),(0,a.jsx)("td",{className:"num",children:k(s.capacity)}),(0,a.jsx)("td",{className:"num",children:N(s.retained)})]},i))})]}),e.truncated&&(0,a.jsx)("p",{className:"subtitle",children:"Attribution data was truncated (holder-edge or container-record cap hit); rankings are a bounded sample."})]})}function O1({data:e}){if(!e)return null;let t=(n,s)=>{if(n.length===0)return null;let i=n.some(d=>d.retained!=null),o=n.some(d=>d.owner!=null),r=n.some(d=>d.dominant_value_type!=null),l=n.some(d=>(d.value_type_breakdown?.length??0)>0),c=n.reduce((d,h)=>d+h.elements,0),u=n.reduce((d,h)=>d+(h.retained??0),0);return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h3",{children:s}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Kind"}),(0,a.jsx)("th",{children:"Container Class"}),(0,a.jsx)("th",{className:"num",children:"Elements"}),r&&(0,a.jsx)("th",{children:"Value Type"}),l&&(0,a.jsx)("th",{children:"Value Types (top)"}),o&&(0,a.jsx)("th",{children:"Owner (Class#field)"}),i&&(0,a.jsx)("th",{className:"num",children:"Retained"})]})}),(0,a.jsx)("tbody",{children:n.map((d,h)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:d.kind}),(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:d.container_class})}),(0,a.jsx)("td",{className:"num",children:k(d.elements)}),r&&(0,a.jsx)("td",{children:d.dominant_value_type?(0,a.jsx)("code",{children:d.dominant_value_type}):"\u2014"}),l&&(0,a.jsx)("td",{children:!d.value_type_breakdown||d.value_type_breakdown.length===0?"\u2014":d.value_type_breakdown.map((f,g)=>(0,a.jsxs)("span",{children:[g>0?", ":"",(0,a.jsx)("code",{children:f.type_name})," \xD7",k(f.count)]},g))}),o&&(0,a.jsx)("td",{children:d.owner?(0,a.jsx)("code",{children:d.owner}):"\u2014"}),i&&(0,a.jsx)("td",{className:"num",children:d.retained!=null?N(d.retained):"\u2014"})]},h))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(c)})}),r&&(0,a.jsx)("td",{}),l&&(0,a.jsx)("td",{}),o&&(0,a.jsx)("td",{}),i&&(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(u)})})]})})]})]})};return(0,a.jsxs)("section",{id:"biggest-collections",children:[(0,a.jsx)("h2",{children:"Biggest Collections"}),(0,a.jsxs)("p",{className:"subtitle",children:["The largest individual collection instances. Owner is the primary incoming ",(0,a.jsx)("code",{children:"Class#field"}),"; value type is the dominant runtime element type (",(0,a.jsx)("code",{children:"varies"})," when none dominates). Owner/retained/value columns require ",(0,a.jsx)("code",{children:"--collections"}),"."]}),t(e.combined,"Combined"),e.by_kind.map(n=>t(n.rows,`By Kind \u2014 ${n.kind}`)),e.truncated&&(0,a.jsx)("p",{className:"subtitle",children:"Collection value tally was truncated; ranking is a bounded sample."})]})}function L1({data:e}){if(!e)return null;let t=e.rows??[];return(0,a.jsxs)("section",{id:"collection-contents",children:[(0,a.jsx)("h2",{children:"Collection Contents by Type"}),(0,a.jsxs)("p",{className:"subtitle",children:["What runtime element/value types your collections hold, aggregated per collection class. Requires ",(0,a.jsx)("code",{children:"--collections"}),"."]}),t.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Collection Class"}),(0,a.jsx)("th",{className:"num",children:"Instances"}),(0,a.jsx)("th",{className:"num",children:"Total Values"}),(0,a.jsx)("th",{children:"Top Value Types"})]})}),(0,a.jsx)("tbody",{children:t.map((n,s)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:n.collection_class})}),(0,a.jsx)("td",{className:"num",children:k(n.instances)}),(0,a.jsx)("td",{className:"num",children:k(n.total_values)}),(0,a.jsx)("td",{children:n.top_value_types.length===0?"\u2014":n.top_value_types.map((i,o)=>(0,a.jsxs)("span",{children:[o>0?", ":"",(0,a.jsx)("code",{children:i.type_name})," \xD7",k(i.count)]},o))})]},s))})]}),e.truncated&&(0,a.jsx)("p",{className:"subtitle",children:"Truncated; a bounded sample of collection classes is shown."})]})}function A1({data:e}){if(!e)return null;let t=e.rows??[],n=t.reduce((i,o)=>i+o.total_retained,0),s=t.reduce((i,o)=>i+o.pointees,0);return(0,a.jsxs)("section",{id:"fields-by-size",children:[(0,a.jsx)("h2",{children:"Fields by Retained Size (Class#field)"}),(0,a.jsxs)("p",{className:"subtitle",children:["Which holder ",(0,a.jsx)("code",{children:"Class#field"})," retains the most memory, summed over every object the field points at. Runtime pointee type is the dominant concrete class reached through the field (",(0,a.jsx)("code",{children:"varies"})," when no single type dominates)."]}),t.length===0?(0,a.jsx)("p",{className:"subtitle",children:"None."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Class#field"}),(0,a.jsx)("th",{children:"Runtime Pointee Type"}),(0,a.jsx)("th",{children:"Category"}),(0,a.jsx)("th",{className:"num",children:"Pointees"}),(0,a.jsx)("th",{className:"num",children:"Elements"}),(0,a.jsx)("th",{className:"num",children:"Holder Instances"}),(0,a.jsx)("th",{className:"num",children:"Retained"})]})}),(0,a.jsx)("tbody",{children:t.map((i,o)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsxs)("code",{children:[i.holder_class,"#",i.field]})}),(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:i.pointee_type})}),(0,a.jsx)("td",{children:i.category??"\u2014"}),(0,a.jsx)("td",{className:"num",children:k(i.pointees)}),(0,a.jsx)("td",{className:"num",children:i.elements!=null?k(i.elements):"\u2014"}),(0,a.jsx)("td",{className:"num",children:k(i.holder_instances)}),(0,a.jsx)("td",{className:"num",children:N(i.total_retained)})]},o))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{}),(0,a.jsx)("td",{}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(s)})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(t.reduce((i,o)=>i+(o.elements??0),0))})}),(0,a.jsx)("td",{className:"num"}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(n)})})]})})]}),e.truncated&&(0,a.jsx)("p",{className:"subtitle",children:"Field grouping was truncated (group or pointee cap hit); ranking is a bounded sample."})]})}function z1({data:e}){let t=[e?.soft,e?.weak,e?.phantom].filter(s=>s!=null),n=s=>(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Class"}),(0,a.jsx)("th",{className:"num",children:"Objects"}),(0,a.jsx)("th",{className:"num",children:"Shallow"})]})}),(0,a.jsx)("tbody",{children:s.map((i,o)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:i.pretty_class})}),(0,a.jsx)("td",{className:"num",children:k(i.objects)}),(0,a.jsx)("td",{className:"num",children:N(i.shallow)})]},o))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(s.reduce((i,o)=>i+o.objects,0))})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(s.reduce((i,o)=>i+o.shallow,0))})})]})})]});return(0,a.jsxs)("section",{id:"references",children:[(0,a.jsx)("h2",{children:"References"}),(0,a.jsx)("p",{className:"subtitle",children:"Soft/weak/phantom reference referents (what they point at)."}),t.length===0?(0,a.jsx)("p",{className:"subtitle",children:"No soft, weak, or phantom references found."}):t.map(s=>(0,a.jsxs)(j.default.Fragment,{children:[(0,a.jsxs)("h3",{children:[s.kind," References"]}),(0,a.jsxs)("p",{className:"subtitle",children:[k(s.reference_instances)," reference instances."]}),(0,a.jsx)("h4",{children:"Referent classes"}),n(s.referent_histogram??[]),(s.only_weakly_retained??[]).length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("h4",{children:"Only-weakly retained (approximate)"}),n(s.only_weakly_retained)]})]},s.kind))]})}function F1({data:e}){let t=e?.big_drops?.rows??[],s=((e?.big_drops?.threshold??0)/(1024*1024)).toFixed(1),i=e?.immediate_dominators?.rows??[];return(0,a.jsxs)("section",{id:"dominator-analysis",children:[(0,a.jsx)("h2",{children:"Dominator Analysis"}),(0,a.jsx)("h3",{children:"Big Drops"}),(0,a.jsxs)("p",{className:"subtitle",children:["Dominators where retained heap concentrates: retained heap minus the largest single child. Threshold"," ",s," MB (1% of reachable shallow)."]}),t.length===0?(0,a.jsx)("p",{className:"subtitle",children:"No significant drops."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Object"}),(0,a.jsx)("th",{className:"num",children:"Retained"}),(0,a.jsx)("th",{children:"Largest Child"}),(0,a.jsx)("th",{className:"num",children:"Child Ret."}),(0,a.jsx)("th",{className:"num",children:"Drop"})]})}),(0,a.jsx)("tbody",{children:t.map((o,r)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsxs)("span",{className:"copy-cell",children:[(0,a.jsx)("code",{children:o.display_class}),(0,a.jsx)(vo,{text:o.display_class})]})}),(0,a.jsx)("td",{className:"num",children:N(o.retained)}),(0,a.jsx)("td",{children:o.largest_child_class?(0,a.jsx)("code",{children:o.largest_child_class}):"\u2014"}),(0,a.jsx)("td",{className:"num",children:N(o.largest_child_retained)}),(0,a.jsx)("td",{className:"num",children:N(o.drop_bytes)})]},r))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(t.reduce((o,r)=>o+r.retained,0))})}),(0,a.jsx)("td",{}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(t.reduce((o,r)=>o+r.largest_child_retained,0))})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(t.reduce((o,r)=>o+r.drop_bytes,0))})})]})})]}),(0,a.jsx)("h3",{children:"Immediate Dominators"}),(0,a.jsx)("p",{className:"subtitle",children:"Objects immediately dominated, rolled up by the dominator's class; a heavy dominated shallow heap under one class flags a retention hub."}),i.length===0?(0,a.jsx)("p",{className:"subtitle",children:"No immediate dominators."}):(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Dominator Class"}),(0,a.jsx)("th",{className:"num",children:"#Dominators"}),(0,a.jsx)("th",{className:"num",children:"#Dominated"}),(0,a.jsx)("th",{className:"num",children:"Dom. Shallow"}),(0,a.jsx)("th",{className:"num",children:"Dominated Shallow"})]})}),(0,a.jsx)("tbody",{children:i.map((o,r)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsxs)("span",{className:"copy-cell",children:[(0,a.jsx)("code",{children:o.dominator_class}),(0,a.jsx)(vo,{text:o.dominator_class})]})}),(0,a.jsx)("td",{className:"num",children:k(o.dominator_count)}),(0,a.jsx)("td",{className:"num",children:k(o.dominated_count)}),(0,a.jsx)("td",{className:"num",children:N(o.dominator_shallow)}),(0,a.jsx)("td",{className:"num",children:N(o.dominated_shallow)})]},r))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(i.reduce((o,r)=>o+r.dominator_count,0))})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(i.reduce((o,r)=>o+r.dominated_count,0))})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(i.reduce((o,r)=>o+r.dominator_shallow,0))})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(i.reduce((o,r)=>o+r.dominated_shallow,0))})})]})})]})]})}var I1=[{key:"objects",label:"Objects"},{key:"shallow",label:"Shallow"}];function j1({data:e}){let t=e?.unreachable_histogram??[],[n,s]=j.default.useState("shallow"),i=j.default.useMemo(()=>[...t].sort((o,r)=>r[n]-o[n]),[t,n]);return(0,a.jsxs)("section",{id:"unreachable-objects",children:[(0,a.jsx)("h2",{children:"Unreachable Objects"}),t.length===0?(0,a.jsx)("p",{className:"subtitle",children:"No unreachable objects."}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("p",{className:"subtitle",children:[k(e?.unreachable_count??0)," unreachable objects retaining"," ",N(e?.unreachable_shallow??0)," shallow (top ",k(t.length)," classes by shallow)."]}),(0,a.jsxs)("details",{children:[(0,a.jsxs)("summary",{children:["Unreachable objects by class (",k(t.length)," rows)"]}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Class"}),I1.map(o=>(0,a.jsx)(Nn,{label:o.label,colKey:o.key,sortKey:n,setSortKey:s},o.key))]})}),(0,a.jsx)("tbody",{children:i.map((o,r)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:o.pretty_class})}),(0,a.jsx)("td",{className:"num",children:k(o.objects)}),(0,a.jsx)("td",{className:"num",children:N(o.shallow)})]},r))})]})]})]})]})}function B1({data:e}){return(0,a.jsxs)("section",{id:"alloc-sites",children:[(0,a.jsx)("h2",{children:"Allocation Sites"}),(0,a.jsx)("p",{className:"subtitle",children:"Objects grouped by the stack trace that allocated them."}),e.traces_present?(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Stack"}),(0,a.jsx)("th",{className:"num",children:"Objects"}),(0,a.jsx)("th",{className:"num",children:"Shallow"}),(0,a.jsx)("th",{className:"num",children:"Retained"})]})}),(0,a.jsx)("tbody",{children:e.sites.map((t,n)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:t.frames.length===0?(0,a.jsxs)("span",{className:"hint",children:["serial ",t.stack_serial," ",(0,a.jsx)("span",{className:"hint",children:"(no frames recorded)"})]}):t.frames.length===1?(0,a.jsx)("code",{children:t.frames[0]}):(0,a.jsxs)("details",{className:"stack-detail",children:[(0,a.jsx)("summary",{children:(0,a.jsx)("code",{children:t.frames[0]})}),(0,a.jsx)("ol",{className:"stack-frames",children:t.frames.map((s,i)=>(0,a.jsx)("li",{children:(0,a.jsx)("code",{children:s})},i))})]})}),(0,a.jsx)("td",{className:"num",children:k(t.object_count)}),(0,a.jsx)("td",{className:"num",children:N(t.shallow_total)}),(0,a.jsx)("td",{className:"num",title:zs(t.retained_total),children:N(t.retained_total)})]},n))}),(0,a.jsx)("tfoot",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:"Total"})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:k(e.sites.reduce((t,n)=>t+n.object_count,0))})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(e.sites.reduce((t,n)=>t+n.shallow_total,0))})}),(0,a.jsx)("td",{className:"num",children:(0,a.jsx)("strong",{children:N(e.sites.reduce((t,n)=>t+n.retained_total,0))})})]})})]}):(0,a.jsxs)("p",{className:"subtitle",children:["Allocation tracking was off in this dump (",(0,a.jsx)("code",{children:"stack_trace_serial = 0"}),"); no allocation sites available."]})]})}function V1({report:e}){let t=e.overview.retention_concentration;return!t||t.top1_bp===0&&t.top10_bp===0&&t.top100_bp===0&&t.num_objects_ge_1pct===0?null:(0,a.jsxs)("section",{id:"retention-concentration",children:[(0,a.jsx)("h2",{children:"Retention Concentration"}),(0,a.jsxs)("p",{className:"subtitle",children:["Share of the reachable heap retained by the few largest top-level dominators. If"," ",(0,a.jsx)("strong",{children:"Top 1"})," is already high, freeing that one object reclaims most memory; if the share only climbs as you widen to ",(0,a.jsx)("strong",{children:"Top 10"})," / ",(0,a.jsx)("strong",{children:"Top 100"}),", the leak is spread across many peers."]}),(0,a.jsx)(zg,{rc:t}),(0,a.jsx)(Vg,{rc:t}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Scope"}),(0,a.jsx)("th",{className:"num",children:"Retained Share"})]})}),(0,a.jsxs)("tbody",{children:[(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Top 1 object"}),(0,a.jsxs)("td",{className:"num",children:[(t.top1_bp/100).toFixed(1),"%"]})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Top 10 objects"}),(0,a.jsxs)("td",{className:"num",children:[(t.top10_bp/100).toFixed(1),"%"]})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Top 100 objects"}),(0,a.jsxs)("td",{className:"num",children:[(t.top100_bp/100).toFixed(1),"%"]})]}),(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Objects each \u22651%"}),(0,a.jsx)("td",{className:"num",children:k(t.num_objects_ge_1pct)})]})]})]})]})}function H1({report:e}){let t=e.overview.dominator_depth_histogram;if(!t||t.length===0)return null;let n=t.reduce((r,l)=>r+l.objects,0),s=t.reduce((r,l)=>Math.max(r,l.depth),0),i=[],o=0;for(let r of t)o+=r.objects,i.push({depth:r.depth,objects:r.objects,pct:n>0?r.objects/n*100:0,cum:n>0?o/n*100:0});return(0,a.jsxs)("section",{id:"dominator-depth-distribution",children:[(0,a.jsx)("h2",{children:"Dominator-Depth Distribution"}),(0,a.jsxs)("p",{className:"subtitle",children:["Objects per idom-hop below a GC root. Shallow depth means most objects are held close to a root; deep depth means retention flows through long chains (nested collections, linked structures). Max depth: ",s,"."]}),(0,a.jsx)(Fg,{data:t}),(0,a.jsxs)("details",{children:[(0,a.jsxs)("summary",{children:["Full depth table (",k(t.length)," buckets)"]}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{className:"num",children:"Depth"}),(0,a.jsx)("th",{className:"num",children:"Objects"}),(0,a.jsx)("th",{className:"num",children:"% Objects"}),(0,a.jsx)("th",{className:"num",children:"Cumulative %"})]})}),(0,a.jsx)("tbody",{children:i.map((r,l)=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{className:"num",children:r.depth}),(0,a.jsx)("td",{className:"num",children:k(r.objects)}),(0,a.jsxs)("td",{className:"num",children:[r.pct.toFixed(2),"%"]}),(0,a.jsxs)("td",{className:"num",children:[r.cum.toFixed(2),"%"]})]},l))})]})]})]})}function W1({data:e}){if(!e)return null;let{anonymous_class_count:t,thread_local_null_key_count:n,direct_byte_buffer_capacity_sum:s}=e;return t===0&&n===0&&s===0?null:(0,a.jsxs)("section",{id:"leak-indicators",children:[(0,a.jsx)("h2",{children:"Leak Indicators"}),(0,a.jsx)("p",{className:"subtitle",children:"Scalar signals for common Java leak patterns. Non-zero values here are worth investigating."}),(0,a.jsxs)("table",{children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:"Indicator"}),(0,a.jsx)("th",{className:"num",children:"Value"})]})}),(0,a.jsxs)("tbody",{children:[t>0&&(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:"Anonymous/generated classes"}),(0,a.jsx)("td",{className:"num",children:k(t)})]}),n>0&&(0,a.jsxs)("tr",{children:[(0,a.jsxs)("td",{children:[(0,a.jsx)("code",{children:"ThreadLocal"})," null-key entries (cleared referent)"]}),(0,a.jsx)("td",{className:"num",children:k(n)})]}),s>0&&(0,a.jsxs)("tr",{children:[(0,a.jsxs)("td",{children:[(0,a.jsx)("code",{children:"DirectByteBuffer"})," total capacity"]}),(0,a.jsx)("td",{className:"num",children:N(s)})]})]})]})]})}function $1(){return(0,a.jsxs)("section",{id:"glossary",children:[(0,a.jsx)("h2",{children:"Glossary"}),(0,a.jsx)("p",{className:"subtitle",children:"Definitions for the terms used above."}),(0,a.jsx)("dl",{className:"summary-grid",children:[["Shallow size",(0,a.jsxs)(a.Fragment,{children:["the memory an object occupies by itself: its header plus its own fields (and, for an array, its elements). It does ",(0,a.jsx)("em",{children:"not"})," include the objects it points to."]})],["Retained heap (retained size)",(0,a.jsxs)(a.Fragment,{children:["the total memory that would be freed if this object were garbage-collected: its own shallow size plus everything reachable ",(0,a.jsx)("em",{children:"only"})," through it. This is the basis for every percentage in this report. See ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Dominator_(graph_theory)",target:"_blank",rel:"noreferrer",children:"dominator (graph theory)"}),"."]})],["Reachable heap",(0,a.jsxs)(a.Fragment,{children:["all objects the ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Garbage_collection_(computer_science)",target:"_blank",rel:"noreferrer",children:"garbage collector"})," can still reach from a GC root. Anything unreachable is already collectible and is excluded from the totals here."]})],["GC root",(0,a.jsxs)(a.Fragment,{children:["an object the JVM keeps alive unconditionally: live thread stacks (local variables), static fields of loaded classes, ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Java_Native_Interface",target:"_blank",rel:"noreferrer",children:"JNI"})," references, and similar. Every retained-size chain ends at a GC root."]})],["Dominator",(0,a.jsxs)(a.Fragment,{children:["object ",(0,a.jsx)("em",{children:"A"})," dominates object ",(0,a.jsx)("em",{children:"B"})," if every path from a GC root to ",(0,a.jsx)("em",{children:"B"})," passes through ",(0,a.jsx)("em",{children:"A"}),". An object's retained heap is exactly the set of objects it dominates. See ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Dominator_(graph_theory)",target:"_blank",rel:"noreferrer",children:"dominator (graph theory)"}),"."]})],["Dominator tree",(0,a.jsx)(a.Fragment,{children:"the tree formed by linking each object to its immediate dominator. Retained sizes are computed by summing shallow sizes up this tree."})],["Top-level dominator",(0,a.jsx)(a.Fragment,{children:'an object whose immediate dominator is a GC root, so it sits at the top of the dominator tree. The "Biggest Objects" and "Retention Concentration" views rank these.'})],["Dominator depth",(0,a.jsx)(a.Fragment,{children:"how many dominator-tree hops an object sits below a GC root. Shallow depth means most objects are held close to a root; deep depth means retention flows through long chains."})],["Accumulation point",(0,a.jsxs)(a.Fragment,{children:["a single object (often a collection, cache, or map) that dominates a large number of instances of the ",(0,a.jsx)("em",{children:"same"})," class, meaning where a ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Memory_leak",target:"_blank",rel:"noreferrer",children:"memory leak"})," accumulates."]})],["Class loader",(0,a.jsxs)(a.Fragment,{children:["the JVM component that defined a class. The same class name loaded by two different ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Java_Classloader",target:"_blank",rel:"noreferrer",children:"class loaders"})," is two distinct classes in the heap, so heap is attributed per (class, loader) pair."]})],["Referent",(0,a.jsxs)(a.Fragment,{children:["the object that a reference field points ",(0,a.jsx)("em",{children:"to"}),". A ",(0,a.jsx)("a",{href:"https://en.wikipedia.org/wiki/Weak_reference",target:"_blank",rel:"noreferrer",children:(0,a.jsx)("code",{children:"WeakReference"})}),", for example, has a referent it does not keep alive."]})],["Instance vs. class",(0,a.jsxs)(a.Fragment,{children:["an ",(0,a.jsx)("em",{children:"instance"})," is one object; a ",(0,a.jsx)("em",{children:"class"}),' row aggregates every instance of that type. "Largest" in the histogram is the shallow size of the single biggest instance of a class.']})]].map(([t,n])=>(0,a.jsxs)(j.default.Fragment,{children:[(0,a.jsx)("dt",{children:t}),(0,a.jsx)("dd",{children:n})]},t))})]})}var Qg="\u2212";function qs(e){return e===0?"0 B":(e>0?"+":Qg)+N(Math.abs(e))}function U1(e){return e===0?"0":(e>0?"+":Qg)+Math.abs(e).toLocaleString("en-US")}function K1({nameLabel:e,labels:t,rows:n,showNew:s}){let i=t.length,[o,r]=j.default.useState(-1),l=j.default.useMemo(()=>{let u=[...n];return u.sort((d,h)=>{let f=o<0?d.delta_retained:d.retained[o]??0,g=o<0?h.delta_retained:h.retained[o]??0;return g!==f?g-f:d.pretty_class.localeCompare(h.pretty_class)}),u},[n,o]),c=(u,d,h)=>{let f=o===d;return(0,a.jsxs)("th",{className:"num sortable"+(f?" active":""),onClick:()=>r(d),title:`Sort by ${h} (descending)`,children:[u," ",f?"\u25BE":""]},d)};return(0,a.jsxs)("table",{className:"data",children:[(0,a.jsx)("thead",{children:(0,a.jsxs)("tr",{children:[(0,a.jsx)("th",{children:e}),t.map((u,d)=>c(`r${d+1}`,d,`${u} retained`)),c("\u0394(r1\u2192rN)",-1,"\u0394 retained (first\u2192last)"),s?(0,a.jsx)("th",{children:"New?"}):null]})}),(0,a.jsx)("tbody",{children:l.map(u=>(0,a.jsxs)("tr",{children:[(0,a.jsx)("td",{children:(0,a.jsx)("code",{children:u.pretty_class})}),Array.from({length:i},(d,h)=>(0,a.jsx)("td",{className:"num",children:N(u.retained[h]??0)},h)),(0,a.jsx)("td",{className:"num",children:qs(u.delta_retained)}),s?(0,a.jsx)("td",{children:"is_new"in u&&u.is_new?"yes":""}):null]},u.pretty_class))})]})}function Zs({title:e,nameLabel:t,labels:n,rows:s,emptyNote:i,showNew:o}){return(0,a.jsxs)("section",{className:"diff-section",children:[(0,a.jsx)("h2",{children:e}),s.length===0?(0,a.jsx)("p",{children:i}):(0,a.jsx)(K1,{nameLabel:t,labels:n,rows:s,showNew:o})]})}function Y1(e){let t=e.total_shallow[0]??0,n=t>0?e.delta_total_shallow/t*100:0,s=e.grown_suspects.filter(o=>o.is_new).length,i;if(e.delta_total_shallow>0){let o=e.growth_leaders[0],r=o?`; largest driver ${o.pretty_class} (${qs(o.delta_retained)} retained)`:"";i=`Heap grew ${n.toFixed(1)}% (${qs(e.delta_total_shallow)} shallow)${r}.`}else e.delta_total_shallow<0?i=`Heap shrank ${Math.abs(n).toFixed(1)}% (${qs(e.delta_total_shallow)} shallow); no net growth.`:i="Heap size is unchanged.";return s>0&&(i+=` ${s} new suspect${s===1?"":"s"}.`),i}function Zg({diff:e}){let{labels:t}=e;return(0,a.jsxs)("div",{className:"app",children:[(0,a.jsxs)("h1",{children:["Heap Dump Comparison (",t.length," reports)"]}),(0,a.jsx)("p",{className:"subtitle",children:"Cross-dump growth across a time series (first = baseline, last = current)."}),(0,a.jsx)("div",{className:"theme-toggle-wrap",children:(0,a.jsx)(Ug,{})}),(0,a.jsxs)("section",{className:"diff-section",children:[(0,a.jsx)("h2",{children:"Reports"}),(0,a.jsx)("ol",{className:"diff-legend",children:t.map((n,s)=>(0,a.jsxs)("li",{children:[(0,a.jsxs)("code",{children:["r",s+1]})," = ",n]},s))})]}),(0,a.jsxs)("section",{className:"diff-section",children:[(0,a.jsx)("h2",{children:"Headline Totals"}),(0,a.jsxs)("p",{children:[(0,a.jsx)("strong",{children:"Verdict:"})," ",Y1(e)]}),(0,a.jsxs)("ul",{children:[(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"\u0394 Objects (r1\u2192rN):"})," ",U1(e.delta_total_objects)]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"\u0394 Shallow heap (r1\u2192rN):"})," ",qs(e.delta_total_shallow)]}),(0,a.jsxs)("li",{children:[(0,a.jsx)("strong",{children:"Net \u0394 Retained (all classes, r1\u2192rN):"})," ",qs(e.net_delta_retained)]})]})]}),(0,a.jsx)(Zs,{title:"Growth Leaders (by \u0394 retained)",nameLabel:"Class",labels:t,rows:e.growth_leaders,emptyNote:"No class grew in retained heap."}),(0,a.jsx)(Zs,{title:"New Classes",nameLabel:"Class",labels:t,rows:e.new_classes,emptyNote:"No classes are new in the current dump."}),(0,a.jsx)(Zs,{title:"Removed Classes",nameLabel:"Class",labels:t,rows:e.removed_classes,emptyNote:"No classes dropped out of the current dump."}),(0,a.jsx)(Zs,{title:"New / Grown Leak Suspects",nameLabel:"Suspect",labels:t,rows:e.grown_suspects,emptyNote:"No leak suspect is new or grew in the current dump.",showNew:!0}),(0,a.jsx)(Zs,{title:"Shrunk Leak Suspects",nameLabel:"Suspect",labels:t,rows:e.shrunk_suspects,emptyNote:"No leak suspect shrank in the current dump."}),(0,a.jsx)(Zs,{title:"Disappeared Leak Suspects",nameLabel:"Suspect",labels:t,rows:e.gone_suspects,emptyNote:"No leak suspect disappeared in the current dump."}),(0,a.jsx)(Kg,{})]})}function Ku({report:e}){return j.default.useEffect(()=>{let t=window.location.hash.slice(1);t&&requestAnimationFrame(()=>{document.getElementById(t)?.scrollIntoView({behavior:"smooth"})})},[]),(0,a.jsxs)("div",{className:"app",children:[(0,a.jsx)("a",{href:"#triage",className:"skip-link",children:"Skip to content"}),(0,a.jsxs)("h1",{children:["Heap Dump Analysis: ",(0,a.jsx)("code",{children:e.overview.source_name})]}),(0,a.jsxs)("p",{className:"subtitle",children:["Generated by hprof-analyzer \u2014 ",e.generated]}),(0,a.jsx)("div",{className:"theme-toggle-wrap",children:(0,a.jsx)(Ug,{})}),(0,a.jsx)(o1,{report:e}),(0,a.jsx)(r1,{report:e}),(0,a.jsx)(a1,{report:e}),(0,a.jsx)(m1,{report:e}),(0,a.jsx)(h1,{report:e}),(0,a.jsx)(w1,{report:e}),(0,a.jsx)(k1,{report:e}),(0,a.jsx)(f1,{report:e}),(0,a.jsx)(p1,{report:e}),(0,a.jsx)(F1,{data:e.dominator_analysis}),(0,a.jsx)(M1,{report:e}),e.top_components?.components?.length?(0,a.jsx)(E1,{data:e.top_components}):null,(0,a.jsx)(T1,{data:e.arrays_by_size,totalShallow:e.overview.total_shallow}),(0,a.jsx)(D1,{data:e.collections}),e.collection_attribution&&(0,a.jsx)(R1,{data:e.collection_attribution}),e.fields_by_size&&(0,a.jsx)(A1,{data:e.fields_by_size}),e.biggest_collections&&(0,a.jsx)(O1,{data:e.biggest_collections}),e.collection_contents&&(0,a.jsx)(L1,{data:e.collection_contents}),(0,a.jsx)(z1,{data:e.references}),(0,a.jsx)(j1,{data:e.overview}),e.alloc_sites&&(0,a.jsx)(B1,{data:e.alloc_sites}),(0,a.jsx)(V1,{report:e}),(0,a.jsx)(H1,{report:e}),(0,a.jsx)(W1,{data:e.leak_indicators}),(0,a.jsx)($1,{}),(0,a.jsx)(Kg,{})]})}var qg=`:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #666;
  --border: #e2e2e2;
  --card: #f7f7f8;
  --accent: #2563eb;
  --warn-bg: #fff4e5;
  --warn-border: #f0b429;
}

.stack-detail summary { cursor: pointer; list-style: none; }
.stack-detail summary::-webkit-details-marker { display: none; }
.stack-detail summary::before { content: "\u25B6 "; font-size: 0.7rem; opacity: 0.6; }
.stack-detail[open] summary::before { content: "\u25BC "; }
.stack-frames { margin: 0.3rem 0 0 1.25rem; padding: 0; list-style: decimal; }
.stack-frames li { font-size: 0.82rem; color: var(--muted); padding: 0.05rem 0; }
.stack-frames li code { background: none; padding: 0; font-size: inherit; }
tfoot tr { border-top: 2px solid var(--border); }

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #16181c;
    --fg: #e7e7e7;
    --muted: #9aa0aa;
    --border: #2c2f36;
    --card: #1e2127;
    --accent: #60a5fa;
    --warn-bg: #2a2318;
    --warn-border: #b8860b;
  }
}
:root[data-theme="dark"] {
  --bg: #16181c;
  --fg: #e7e7e7;
  --muted: #9aa0aa;
  --border: #2c2f36;
  --card: #1e2127;
  --accent: #60a5fa;
  --warn-bg: #2a2318;
  --warn-border: #b8860b;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #666;
  --border: #e2e2e2;
  --card: #f7f7f8;
  --accent: #2563eb;
  --warn-bg: #fff4e5;
  --warn-border: #f0b429;
}

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); }
.app { max-width: 1080px; margin: 0 auto; padding: 1.5rem 1.25rem 4rem; }
h1 { font-size: 1.6rem; margin: 0 0 0.25rem; }
h2 { font-size: 1.25rem; margin: 2rem 0 0.75rem; border-bottom: 1px solid var(--border); padding-bottom: 0.35rem; }
h3 { font-size: 1.02rem; margin: 1.25rem 0 0.5rem; }
.subtitle { color: var(--muted); font-size: 0.85rem; margin: 0 0 1rem; }
.oom { background: var(--warn-bg); border: 1px solid var(--warn-border); border-radius: 8px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.oom h2 { border: none; margin: 0 0 0.5rem; }
.oom ul { margin: 0; padding-left: 1.1rem; }
.oom li { margin: 0.3rem 0; line-height: 1.45; }

/* At-a-glance KPI strip. */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.75rem; margin: 0 0 1.5rem; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; }
.kpi-value { font-size: 1.25rem; font-weight: 700; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kpi-value code { font-size: 0.95rem; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: help; }
.kpi-label { color: var(--muted); font-size: 0.78rem; margin-top: 0.15rem; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.9em; background: var(--card); padding: 0.05rem 0.3rem; border-radius: 4px; }
code.loader { font-size: 0.78rem; color: var(--muted); }
table { border-collapse: collapse; width: 100%; font-size: 0.86rem; margin: 0.5rem 0 1rem; }
th, td { text-align: left; padding: 0.35rem 0.6rem; border-bottom: 1px solid var(--border); }
th { color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 0.75rem 1rem; margin: 0.75rem 0; }
.summary-grid { display: grid; grid-template-columns: max-content 1fr; gap: 0.25rem 1.5rem; font-size: 0.9rem; }
.summary-grid dt { color: var(--muted); }
.summary-grid dd { margin: 0; }
.chart-wrap { margin: 0.5rem 0 1rem; }
details { margin: 0.5rem 0; }
summary { cursor: pointer; color: var(--accent); font-size: 0.85rem; }
.suspect { border-left: 3px solid var(--accent); padding-left: 0.9rem; margin: 1rem 0; }
.pill { display: inline-block; background: var(--card); border: 1px solid var(--border); border-radius: 999px; padding: 0.05rem 0.55rem; font-size: 0.75rem; color: var(--muted); margin-left: 0.4rem; }
.pill.keyword { margin-left: 0; margin-right: 0.4rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--accent); }
.thread { margin: 0.35rem 0; border-bottom: 1px solid var(--border); }
.thread summary { color: var(--fg); font-size: 0.9rem; padding: 0.25rem 0; }
.thread-name { font-weight: 600; color: var(--accent); }
.thread-serial { color: var(--muted); }
.stack { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.8rem; background: var(--card); border: 1px solid var(--border); border-radius: 6px; padding: 0.6rem 0.8rem; margin: 0.35rem 0 0.75rem; overflow-x: auto; white-space: pre; line-height: 1.5; }

/* Sticky in-page table of contents. */
.toc { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 0.35rem; background: var(--bg); border-bottom: 1px solid var(--border); padding: 0.5rem 0; margin: 0.5rem 0 1rem; }
.toc a { text-decoration: none; color: var(--muted); font-size: 0.82rem; padding: 0.2rem 0.6rem; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; }
.toc a:hover { color: var(--accent); border-color: var(--accent); }
.toc a.active { color: var(--accent); border-color: var(--accent); }
.toc-group { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); opacity: 0.6; padding: 0 0.15rem; margin-left: 0.5rem; white-space: nowrap; }
.toc-group:first-child { margin-left: 0; }
.skip-link { position: absolute; left: -9999px; top: 1rem; z-index: 100; background: var(--accent); color: #fff; padding: 0.5rem 1rem; border-radius: 6px; font-size: 0.9rem; text-decoration: none; }
.skip-link:focus { left: 1rem; }

/* Fixed back-to-top button, visible after scrolling down. */
.back-to-top { position: fixed; right: 1rem; bottom: 1rem; z-index: 10; background: var(--card); color: var(--accent); border: 1px solid var(--border); border-radius: 999px; padding: 0.5rem 0.7rem; cursor: pointer; font-size: 1rem; line-height: 1; }

/* Theme toggle pill \u2014 sits above the sticky nav. */
.theme-toggle { background: var(--card); color: var(--fg); border: 1px solid var(--border); border-radius: 999px; padding: 0.25rem 0.7rem; font-size: 0.8rem; cursor: pointer; }
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle-wrap { display: flex; justify-content: flex-end; margin-bottom: 0.35rem; }

/* Section scroll anchoring so the sticky nav does not hide headings. */
section, .oom { scroll-margin-top: 3rem; }

/* Filter/tool rows above tables and thread lists. */
.tools { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0.5rem 0; }
.filter { flex: 1; min-width: 200px; max-width: 420px; padding: 0.35rem 0.6rem; border: 1px solid var(--border); border-radius: 6px; background: var(--bg); color: var(--fg); font-size: 0.85rem; }
.filter:focus { outline: none; border-color: var(--accent); }
.hint { color: var(--muted); font-size: 0.78rem; }

/* Sortable histogram headers. */
th.sortable { cursor: pointer; user-select: none; }
th.sortable:hover { color: var(--accent); }
th.sortable.active { color: var(--accent); }

/* Leak-suspect accumulation path (shortest path to accumulation point). */
.suspect .rank { color: var(--accent); font-weight: 700; }
.accum-path { list-style: none; padding: 0; margin: 0.4rem 0 0.5rem; }
.accum-path li { position: relative; padding: 0.3rem 0 0.3rem 1.3rem; font-size: 0.85rem; }
.accum-path li::before { content: ""; position: absolute; left: 0.45rem; top: 0; bottom: 0; border-left: 2px solid var(--border); }
.accum-path li::after { content: ""; position: absolute; left: 0.2rem; top: 0.6rem; width: 0.55rem; height: 0.55rem; background: var(--accent); border-radius: 50%; }
.accum-path li:first-child::before { top: 0.6rem; }
.accum-path li:last-child::before { bottom: calc(100% - 0.6rem); }
.path-ret { color: var(--muted); font-size: 0.78rem; margin-left: 0.5rem; }

/* Exact retained byte + precise percent, MAT-report style ("509,972,304 (41.08%)"). */
.mat-exact { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.label { color: var(--muted); font-weight: 600; font-size: 0.85rem; }

/* Expandable package tree. */
.tree-table td { vertical-align: middle; }
.tree-toggle { background: none; border: none; color: var(--accent); cursor: pointer; font-size: 0.8rem; padding: 0 0.35rem 0 0; width: 1.2rem; }
.tree-leaf { color: var(--muted); display: inline-block; width: 1.2rem; text-align: left; padding-right: 0.35rem; }
.bar-cell { position: relative; }
.bar-bg { display: inline-block; width: 60px; height: 8px; background: var(--border); border-radius: 3px; vertical-align: middle; margin-right: 0.5rem; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 3px; }

/* Dominator subtree: nested collapsible tree. */
.dom-subtree { list-style: none; padding: 0; margin: 0.3rem 0 0.3rem 0.6rem; border-left: 1px solid var(--border); }
.dom-subtree li { padding: 0.15rem 0; font-size: 0.85rem; }
.dom-subtree summary { cursor: pointer; font-size: 0.85rem; }

/* System properties: bounded key/value table in a scrollable container. */
.sysprops { max-height: 22rem; overflow: auto; border: 1px solid var(--border); border-radius: 6px; margin: 0.35rem 0 0.75rem; }
.sysprops table { margin: 0; }
.sysprops th { position: sticky; top: 0; background: var(--card); }
.sysprop-val { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.82rem; word-break: break-word; }

.copy-cell { display: inline-flex; align-items: center; gap: 0.3rem; max-width: 100%; }
.copy-cell code { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-btn { visibility: hidden; background: none; border: none; color: var(--muted); cursor: pointer; font-size: 0.78rem; padding: 0 0.15rem; line-height: 1; border-radius: 3px; }
.copy-btn:hover, .copy-btn:focus { color: var(--accent); visibility: visible; outline: none; }
td:hover .copy-btn { visibility: visible; }

/* Print: hide interactive chrome, expand collapsibles, avoid mid-card breaks. */
@media print {
  .toc, .back-to-top, .theme-toggle-wrap { display: none !important; }
  details { display: block !important; }
  details > * { display: block !important; }
  summary { list-style: none; }
  .card, .suspect, .kpi, .chart-wrap { break-inside: avoid; page-break-inside: avoid; }
  body { background: #fff; color: #000; }
}

/* Mobile: single-column grids, tighter padding, scrollable wide tables. */
@media (max-width: 640px) {
  .app { padding: 1rem 0.75rem 3rem; }
  .summary-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  h1 { font-size: 1.35rem; }
  h2 { font-size: 1.1rem; }
  table { font-size: 0.8rem; }
}
`;var Ma=me(es(),1);function Yu(e){let t=document.getElementById("root");t&&(t.textContent=e)}function G1(){let e=document.createElement("style");e.textContent=qg,document.head.appendChild(e)}async function Q1(){let e=window.__HPROF_DATA_B64__||"",t=window.hprofDecodeText;if(!t){Yu("Report bootstrap missing (hprofDecodeText).");return}let n;try{let o=await t(e);n=JSON.parse(o)}catch(o){Yu("Failed to parse report data: "+o);return}G1();let s=document.getElementById("root");if(!s){Yu("Missing #root element.");return}s.textContent="";let i=n!=null&&typeof n=="object"&&n.kind==="series-diff";(0,t0.createRoot)(s).render((0,Ma.jsx)(Jg.default.StrictMode,{children:i?(0,Ma.jsx)(Zg,{diff:n.diff}):(0,Ma.jsx)(Ku,{report:n})}))}Q1();})();