diff --git "a/assets/index-B5O2Zi3j.js" "b/assets/index-B5O2Zi3j.js" new file mode 100644--- /dev/null +++ "b/assets/index-B5O2Zi3j.js" @@ -0,0 +1,851 @@ +(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=t(r);fetch(r.href,i)}})();var w1=Object.defineProperty,k1=(e,t,n)=>t in e?w1(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,R=(e,t,n)=>k1(e,typeof t!="symbol"?t+"":t,n);function _1(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))n(r);new MutationObserver(r=>{for(const i of r)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function t(r){const i={};return r.integrity&&(i.integrity=r.integrity),r.referrerPolicy&&(i.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?i.credentials="include":r.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(r){if(r.ep)return;r.ep=!0;const i=t(r);fetch(r.href,i)}})();function tg(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ng={exports:{}},el={},rg={exports:{}},W={};/** +* @license React +* react.production.min.js +* +* Copyright (c) Facebook, Inc. and its affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/var Ha=Symbol.for("react.element"),S1=Symbol.for("react.portal"),C1=Symbol.for("react.fragment"),E1=Symbol.for("react.strict_mode"),N1=Symbol.for("react.profiler"),P1=Symbol.for("react.provider"),M1=Symbol.for("react.context"),O1=Symbol.for("react.forward_ref"),j1=Symbol.for("react.suspense"),T1=Symbol.for("react.memo"),R1=Symbol.for("react.lazy"),Rh=Symbol.iterator;function L1(e){return e===null||typeof e!="object"?null:(e=Rh&&e[Rh]||e["@@iterator"],typeof e=="function"?e:null)}var ig={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},ag=Object.assign,og={};function fi(e,t,n){this.props=e,this.context=t,this.refs=og,this.updater=n||ig}fi.prototype.isReactComponent={};fi.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")};fi.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function sg(){}sg.prototype=fi.prototype;function Ju(e,t,n){this.props=e,this.context=t,this.refs=og,this.updater=n||ig}var Zu=Ju.prototype=new sg;Zu.constructor=Ju;ag(Zu,fi.prototype);Zu.isPureReactComponent=!0;var Lh=Array.isArray,lg=Object.prototype.hasOwnProperty,ed={current:null},cg={key:!0,ref:!0,__self:!0,__source:!0};function ug(e,t,n){var r,i={},a=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(a=""+t.key),t)lg.call(t,r)&&!cg.hasOwnProperty(r)&&(i[r]=t[r]);var s=arguments.length-2;if(s===1)i.children=n;else if(1>>1,te=O[G];if(0>>1;Gi(Ht,I))Zei(no,Ht)?(O[G]=no,O[Ze]=I,G=Ze):(O[G]=Ht,O[Be]=I,G=Be);else if(Zei(no,I))O[G]=no,O[Ze]=I,G=Ze;else break e}}return D}function i(O,D){var I=O.sortIndex-D.sortIndex;return I!==0?I:O.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var l=[],c=[],u=1,d=null,h=3,f=!1,m=!1,y=!1,x=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,v=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function b(O){for(var D=n(c);D!==null;){if(D.callback===null)r(c);else if(D.startTime<=O)r(c),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(c)}}function w(O){if(y=!1,b(O),!m)if(n(l)!==null)m=!0,X(k);else{var D=n(c);D!==null&&Pe(w,D.startTime-O)}}function k(O,D){m=!1,y&&(y=!1,g(E),E=-1),f=!0;var I=h;try{for(b(D),d=n(l);d!==null&&(!(d.expirationTime>D)||O&&!z());){var G=d.callback;if(typeof G=="function"){d.callback=null,h=d.priorityLevel;var te=G(d.expirationTime<=D);D=e.unstable_now(),typeof te=="function"?d.callback=te:d===n(l)&&r(l),b(D)}else r(l);d=n(l)}if(d!==null)var jt=!0;else{var Be=n(c);Be!==null&&Pe(w,Be.startTime-D),jt=!1}return jt}finally{d=null,h=I,f=!1}}var _=!1,C=null,E=-1,L=5,M=-1;function z(){return!(e.unstable_now()-MO||125G?(O.sortIndex=I,t(c,O),n(l)===null&&O===n(c)&&(y?(g(E),E=-1):y=!0,Pe(w,I-G))):(O.sortIndex=te,t(l,O),m||f||(m=!0,X(k))),O},e.unstable_shouldYield=z,e.unstable_wrapCallback=function(O){var D=h;return function(){var I=h;h=D;try{return O.apply(this,arguments)}finally{h=I}}}})(mg);pg.exports=mg;var Y1=pg.exports;/** +* @license React +* react-dom.production.min.js +* +* Copyright (c) Facebook, Inc. and its affiliates. +* +* This source code is licensed under the MIT license found in the +* LICENSE file in the root directory of this source tree. +*/var q1=N,at=Y1;function P(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Nc=Object.prototype.hasOwnProperty,K1=/^[: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]*$/,Dh={},zh={};function Q1(e){return Nc.call(zh,e)?!0:Nc.call(Dh,e)?!1:K1.test(e)?zh[e]=!0:(Dh[e]=!0,!1)}function X1(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function G1(e,t,n,r){if(t===null||typeof t>"u"||X1(e,t,n,r))return!0;if(r)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 We(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){je[e]=new We(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];je[t]=new We(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){je[e]=new We(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){je[e]=new We(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){je[e]=new We(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){je[e]=new We(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){je[e]=new We(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){je[e]=new We(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){je[e]=new We(e,5,!1,e.toLowerCase(),null,!1,!1)});var nd=/[\-:]([a-z])/g;function rd(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(nd,rd);je[t]=new We(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(nd,rd);je[t]=new We(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(nd,rd);je[t]=new We(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){je[e]=new We(e,1,!1,e.toLowerCase(),null,!1,!1)});je.xlinkHref=new We("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){je[e]=new We(e,1,!1,e.toLowerCase(),null,!0,!0)});function id(e,t,n,r){var i=je.hasOwnProperty(t)?je[t]:null;(i!==null?i.type!==0:r||!(2s||i[o]!==a[s]){var l=` +`+i[o].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=o&&0<=s);break}}}finally{Ll=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?zi(e):""}function J1(e){switch(e.tag){case 5:return zi(e.type);case 16:return zi("Lazy");case 13:return zi("Suspense");case 19:return zi("SuspenseList");case 0:case 2:case 15:return e=Al(e.type,!1),e;case 11:return e=Al(e.type.render,!1),e;case 1:return e=Al(e.type,!0),e;default:return""}}function jc(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 Ar:return"Fragment";case Lr:return"Portal";case Pc:return"Profiler";case ad:return"StrictMode";case Mc:return"Suspense";case Oc:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case vg:return(e.displayName||"Context")+".Consumer";case bg:return(e._context.displayName||"Context")+".Provider";case od:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case sd:return t=e.displayName||null,t!==null?t:jc(e.type)||"Memo";case mn:t=e._payload,e=e._init;try{return jc(e(t))}catch{}}return null}function Z1(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 jc(t);case 8:return t===ad?"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 Dn(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function xg(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function ey(e){var t=xg(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,a.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function ao(e){e._valueTracker||(e._valueTracker=ey(e))}function wg(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=xg(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fs(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 Tc(e,t){var n=t.checked;return he({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Fh(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Dn(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function kg(e,t){t=t.checked,t!=null&&id(e,"checked",t,!1)}function Rc(e,t){kg(e,t);var n=Dn(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Lc(e,t.type,n):t.hasOwnProperty("defaultValue")&&Lc(e,t.type,Dn(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Bh(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="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 Lc(e,t,n){(t!=="number"||fs(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Ii=Array.isArray;function Qr(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=oo.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function da(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ki={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},ty=["Webkit","ms","Moz","O"];Object.keys(Ki).forEach(function(e){ty.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ki[t]=Ki[e]})});function Eg(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ki.hasOwnProperty(e)&&Ki[e]?(""+t).trim():t+"px"}function Ng(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Eg(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var ny=he({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 zc(e,t){if(t){if(ny[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 Ic(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 Fc=null;function ld(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Bc=null,Xr=null,Gr=null;function Hh(e){if(e=Ya(e)){if(typeof Bc!="function")throw Error(P(280));var t=e.stateNode;t&&(t=al(t),Bc(e.stateNode,e.type,t))}}function Pg(e){Xr?Gr?Gr.push(e):Gr=[e]:Xr=e}function Mg(){if(Xr){var e=Xr,t=Gr;if(Gr=Xr=null,Hh(e),t)for(e=0;e>>=0,e===0?32:31-(fy(e)/py|0)|0}var so=64,lo=4194304;function Fi(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 bs(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s!==0?r=Fi(s):(a&=o,a!==0&&(r=Fi(a)))}else o=n&~i,o!==0?r=Fi(o):a!==0&&(r=Fi(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Wa(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-Ct(t),e[t]=n}function vy(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 r=e.eventTimes;for(e=e.expirationTimes;0=Xi),Jh=" ",Zh=!1;function Qg(e,t){switch(e){case"keyup":return Yy.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xg(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Dr=!1;function Ky(e,t){switch(e){case"compositionend":return Xg(t);case"keypress":return t.which!==32?null:(Zh=!0,Jh);case"textInput":return e=t.data,e===Jh&&Zh?null:e;default:return null}}function Qy(e,t){if(Dr)return e==="compositionend"||!gd&&Qg(e,t)?(e=qg(),Ko=fd=yn=null,Dr=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=rf(n)}}function e0(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?e0(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function t0(){for(var e=window,t=fs();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fs(e.document)}return t}function bd(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 ix(e){var t=t0(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&e0(n.ownerDocument.documentElement,n)){if(r!==null&&bd(n)){if(t=r.start,e=r.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,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=af(n,a);var o=af(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.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=document.documentMode,zr=null,Yc=null,Ji=null,qc=!1;function of(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qc||zr==null||zr!==fs(r)||(r=zr,"selectionStart"in r&&bd(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ji&&ba(Ji,r)||(Ji=r,r=xs(Yc,"onSelect"),0Br||(e.current=Zc[Br],Zc[Br]=null,Br--)}function Z(e,t){Br++,Zc[Br]=e.current,e.current=t}var zn={},Ie=Wn(zn),Qe=Wn(!1),gr=zn;function ii(e,t){var n=e.type.contextTypes;if(!n)return zn;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Xe(e){return e=e.childContextTypes,e!=null}function ks(){ie(Qe),ie(Ie)}function ff(e,t,n){if(Ie.current!==zn)throw Error(P(168));Z(Ie,t),Z(Qe,n)}function u0(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(P(108,Z1(e)||"Unknown",i));return he({},n,r)}function _s(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||zn,gr=Ie.current,Z(Ie,e),Z(Qe,Qe.current),!0}function pf(e,t,n){var r=e.stateNode;if(!r)throw Error(P(169));n?(e=u0(e,t,gr),r.__reactInternalMemoizedMergedChildContext=e,ie(Qe),ie(Ie),Z(Ie,e)):ie(Qe),Z(Qe,n)}var Qt=null,ol=!1,Ql=!1;function d0(e){Qt===null?Qt=[e]:Qt.push(e)}function gx(e){ol=!0,d0(e)}function $n(){if(!Ql&&Qt!==null){Ql=!0;var e=0,t=Q;try{var n=Qt;for(Q=1;e>=o,i-=o,Gt=1<<32-Ct(t)+i|n<E?(L=C,C=null):L=C.sibling;var M=h(g,C,b[E],w);if(M===null){C===null&&(C=L);break}e&&C&&M.alternate===null&&t(g,C),v=a(M,v,E),_===null?k=M:_.sibling=M,_=M,C=L}if(E===b.length)return n(g,C),oe&&Zn(g,E),k;if(C===null){for(;EE?(L=C,C=null):L=C.sibling;var z=h(g,C,M.value,w);if(z===null){C===null&&(C=L);break}e&&C&&z.alternate===null&&t(g,C),v=a(z,v,E),_===null?k=z:_.sibling=z,_=z,C=L}if(M.done)return n(g,C),oe&&Zn(g,E),k;if(C===null){for(;!M.done;E++,M=b.next())M=d(g,M.value,w),M!==null&&(v=a(M,v,E),_===null?k=M:_.sibling=M,_=M);return oe&&Zn(g,E),k}for(C=r(g,C);!M.done;E++,M=b.next())M=f(C,g,E,M.value,w),M!==null&&(e&&M.alternate!==null&&C.delete(M.key===null?E:M.key),v=a(M,v,E),_===null?k=M:_.sibling=M,_=M);return e&&C.forEach(function(V){return t(g,V)}),oe&&Zn(g,E),k}function x(g,v,b,w){if(typeof b=="object"&&b!==null&&b.type===Ar&&b.key===null&&(b=b.props.children),typeof b=="object"&&b!==null){switch(b.$$typeof){case io:e:{for(var k=b.key,_=v;_!==null;){if(_.key===k){if(k=b.type,k===Ar){if(_.tag===7){n(g,_.sibling),v=i(_,b.props.children),v.return=g,g=v;break e}}else if(_.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===mn&&bf(k)===_.type){n(g,_.sibling),v=i(_,b.props),v.ref=Pi(g,_,b),v.return=g,g=v;break e}n(g,_);break}else t(g,_);_=_.sibling}b.type===Ar?(v=dr(b.props.children,g.mode,w,b.key),v.return=g,g=v):(w=ns(b.type,b.key,b.props,null,g.mode,w),w.ref=Pi(g,v,b),w.return=g,g=w)}return o(g);case Lr:e:{for(_=b.key;v!==null;){if(v.key===_)if(v.tag===4&&v.stateNode.containerInfo===b.containerInfo&&v.stateNode.implementation===b.implementation){n(g,v.sibling),v=i(v,b.children||[]),v.return=g,g=v;break e}else{n(g,v);break}else t(g,v);v=v.sibling}v=rc(b,g.mode,w),v.return=g,g=v}return o(g);case mn:return _=b._init,x(g,v,_(b._payload),w)}if(Ii(b))return m(g,v,b,w);if(_i(b))return y(g,v,b,w);go(g,b)}return typeof b=="string"&&b!==""||typeof b=="number"?(b=""+b,v!==null&&v.tag===6?(n(g,v.sibling),v=i(v,b),v.return=g,g=v):(n(g,v),v=nc(b,g.mode,w),v.return=g,g=v),o(g)):n(g,v)}return x}var oi=m0(!0),g0=m0(!1),Es=Wn(null),Ns=null,Hr=null,wd=null;function kd(){wd=Hr=Ns=null}function _d(e){var t=Es.current;ie(Es),e._currentValue=t}function nu(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Zr(e,t){Ns=e,wd=Hr=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Ke=!0),e.firstContext=null)}function gt(e){var t=e._currentValue;if(wd!==e)if(e={context:e,memoizedValue:t,next:null},Hr===null){if(Ns===null)throw Error(P(308));Hr=e,Ns.dependencies={lanes:0,firstContext:e}}else Hr=Hr.next=e;return t}var ar=null;function Sd(e){ar===null?ar=[e]:ar.push(e)}function b0(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,Sd(t)):(n.next=i.next,i.next=n),t.interleaved=n,rn(e,r)}function rn(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 gn=!1;function Cd(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function v0(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 en(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function On(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,rn(e,n)}return i=r.interleaved,i===null?(t.next=t,Sd(r)):(t.next=i.next,i.next=t),r.interleaved=t,rn(e,n)}function Xo(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ud(e,n)}}function vf(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function Ps(e,t,n,r){var i=e.updateQueue;gn=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var l=s,c=l.next;l.next=null,o===null?a=c:o.next=c,o=l;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(a!==null){var d=i.baseState;o=0,u=c=l=null,s=a;do{var h=s.lane,f=s.eventTime;if((r&h)===h){u!==null&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=e,y=s;switch(h=t,f=n,y.tag){case 1:if(m=y.payload,typeof m=="function"){d=m.call(f,d,h);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=y.payload,h=typeof m=="function"?m.call(f,d,h):m,h==null)break e;d=he({},d,h);break e;case 2:gn=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,h=i.effects,h===null?i.effects=[s]:h.push(s))}else f={eventTime:f,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=f,l=d):u=u.next=f,o|=h;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;h=s,s=h.next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}while(!0);if(u===null&&(l=d),i.baseState=l,i.firstBaseUpdate=c,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);yr|=o,e.lanes=o,e.memoizedState=d}}function yf(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=Gl.transition;Gl.transition={};try{e(!1),t()}finally{Q=n,Gl.transition=r}}function A0(){return bt().memoizedState}function xx(e,t,n){var r=Tn(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},D0(e))z0(t,n);else if(n=b0(e,t,n,r),n!==null){var i=Ve();Et(n,e,r,i),I0(n,t,r)}}function wx(e,t,n){var r=Tn(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(D0(e))z0(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Pt(s,o)){var l=t.interleaved;l===null?(i.next=i,Sd(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=b0(e,t,i,r),n!==null&&(i=Ve(),Et(n,e,r,i),I0(n,t,r))}}function D0(e){var t=e.alternate;return e===de||t!==null&&t===de}function z0(e,t){Zi=Os=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function I0(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ud(e,n)}}var js={readContext:gt,useCallback:Re,useContext:Re,useEffect:Re,useImperativeHandle:Re,useInsertionEffect:Re,useLayoutEffect:Re,useMemo:Re,useReducer:Re,useRef:Re,useState:Re,useDebugValue:Re,useDeferredValue:Re,useTransition:Re,useMutableSource:Re,useSyncExternalStore:Re,useId:Re,unstable_isNewReconciler:!1},kx={readContext:gt,useCallback:function(e,t){return Lt().memoizedState=[e,t===void 0?null:t],e},useContext:gt,useEffect:wf,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Jo(4194308,4,O0.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Jo(4194308,4,e,t)},useInsertionEffect:function(e,t){return Jo(4,2,e,t)},useMemo:function(e,t){var n=Lt();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Lt();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=xx.bind(null,de,e),[r.memoizedState,e]},useRef:function(e){var t=Lt();return e={current:e},t.memoizedState=e},useState:xf,useDebugValue:Rd,useDeferredValue:function(e){return Lt().memoizedState=e},useTransition:function(){var e=xf(!1),t=e[0];return e=yx.bind(null,e[1]),Lt().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=de,i=Lt();if(oe){if(n===void 0)throw Error(P(407));n=n()}else{if(n=t(),Ne===null)throw Error(P(349));vr&30||k0(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,wf(S0.bind(null,r,a,e),[e]),r.flags|=2048,Ca(9,_0.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=Lt(),t=Ne.identifierPrefix;if(oe){var n=Jt,r=Gt;n=(r&~(1<<32-Ct(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_a++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[zt]=t,e[xa]=r,K0(e,t,!1,!1),t.stateNode=e;e:{switch(o=Ic(n,r),n){case"dialog":ne("cancel",e),ne("close",e),i=r;break;case"iframe":case"object":case"embed":ne("load",e),i=r;break;case"video":case"audio":for(i=0;ici&&(t.flags|=128,r=!0,Mi(a,!1),t.lanes=4194304)}else{if(!r)if(e=Ms(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Mi(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!oe)return Le(t),null}else 2*ge()-a.renderingStartTime>ci&&n!==1073741824&&(t.flags|=128,r=!0,Mi(a,!1),t.lanes=4194304);a.isBackwards?(o.sibling=t.child,t.child=o):(n=a.last,n!==null?n.sibling=o:t.child=o,a.last=o)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=ge(),t.sibling=null,n=ce.current,Z(ce,r?n&1|2:n&1),t):(Le(t),null);case 22:case 23:return Fd(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?nt&1073741824&&(Le(t),t.subtreeFlags&6&&(t.flags|=8192)):Le(t),null;case 24:return null;case 25:return null}throw Error(P(156,t.tag))}function Ox(e,t){switch(yd(t),t.tag){case 1:return Xe(t.type)&&ks(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return si(),ie(Qe),ie(Ie),Pd(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Nd(t),null;case 13:if(ie(ce),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(P(340));ai()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ie(ce),null;case 4:return si(),null;case 10:return _d(t.type._context),null;case 22:case 23:return Fd(),null;case 24:return null;default:return null}}var vo=!1,De=!1,jx=typeof WeakSet=="function"?WeakSet:Set,T=null;function Wr(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){fe(e,t,r)}else n.current=null}function G0(e,t,n){try{n()}catch(r){fe(e,t,r)}}var Tf=!1;function Tx(e,t){if(Kc=vs,e=t0(),bd(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var o=0,s=-1,l=-1,c=0,u=0,d=e,h=null;t:for(;;){for(var f;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(l=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(f=d.firstChild)!==null;)h=d,d=f;for(;;){if(d===e)break t;if(h===n&&++c===i&&(s=o),h===a&&++u===r&&(l=o),(f=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=f}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(Qc={focusedElem:e,selectionRange:n},vs=!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 m=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var y=m.memoizedProps,x=m.memoizedState,g=t.stateNode,v=g.getSnapshotBeforeUpdate(t.elementType===t.type?y:yt(t.type,y),x);g.__reactInternalSnapshotBeforeUpdate=v}break;case 3:var b=t.stateNode.containerInfo;b.nodeType===1?b.textContent="":b.nodeType===9&&b.documentElement&&b.removeChild(b.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(P(163))}}catch(w){fe(t,t.return,w)}if(e=t.sibling,e!==null){e.return=t.return,T=e;break}T=t.return}return m=Tf,Tf=!1,m}function ea(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&G0(t,n,a)}i=i.next}while(i!==r)}}function cl(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 r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function du(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 J0(e){var t=e.alternate;t!==null&&(e.alternate=null,J0(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[zt],delete t[xa],delete t[Jc],delete t[px],delete t[mx])),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 Z0(e){return e.tag===5||e.tag===3||e.tag===4}function Rf(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Z0(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 e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function hu(e,t,n){var r=e.tag;if(r===5||r===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=ws));else if(r!==4&&(e=e.child,e!==null))for(hu(e,t,n),e=e.sibling;e!==null;)hu(e,t,n),e=e.sibling}function fu(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(fu(e,t,n),e=e.sibling;e!==null;)fu(e,t,n),e=e.sibling}var Me=null,xt=!1;function dn(e,t,n){for(n=n.child;n!==null;)eb(e,t,n),n=n.sibling}function eb(e,t,n){if(Bt&&typeof Bt.onCommitFiberUnmount=="function")try{Bt.onCommitFiberUnmount(tl,n)}catch{}switch(n.tag){case 5:De||Wr(n,t);case 6:var r=Me,i=xt;Me=null,dn(e,t,n),Me=r,xt=i,Me!==null&&(xt?(e=Me,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Me.removeChild(n.stateNode));break;case 18:Me!==null&&(xt?(e=Me,n=n.stateNode,e.nodeType===8?Kl(e.parentNode,n):e.nodeType===1&&Kl(e,n),ma(e)):Kl(Me,n.stateNode));break;case 4:r=Me,i=xt,Me=n.stateNode.containerInfo,xt=!0,dn(e,t,n),Me=r,xt=i;break;case 0:case 11:case 14:case 15:if(!De&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&G0(n,t,o),i=i.next}while(i!==r)}dn(e,t,n);break;case 1:if(!De&&(Wr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){fe(n,t,s)}dn(e,t,n);break;case 21:dn(e,t,n);break;case 22:n.mode&1?(De=(r=De)||n.memoizedState!==null,dn(e,t,n),De=r):dn(e,t,n);break;default:dn(e,t,n)}}function Lf(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new jx),t.forEach(function(r){var i=Ux.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function vt(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~a}if(r=i,r=ge()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Lx(r/1960))-r,10e?16:e,xn===null)var r=!1;else{if(e=xn,xn=null,Ls=0,$&6)throw Error(P(331));var i=$;for($|=4,T=e.current;T!==null;){var a=T,o=a.child;if(T.flags&16){var s=a.deletions;if(s!==null){for(var l=0;lge()-zd?ur(e,0):Dd|=n),Ge(e,t)}function lb(e,t){t===0&&(e.mode&1?(t=lo,lo<<=1,!(lo&130023424)&&(lo=4194304)):t=1);var n=Ve();e=rn(e,t),e!==null&&(Wa(e,t,n),Ge(e,n))}function Bx(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),lb(e,n)}function Ux(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(P(314))}r!==null&&r.delete(t),lb(e,n)}var cb;cb=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Qe.current)Ke=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ke=!1,Px(e,t,n);Ke=!!(e.flags&131072)}else Ke=!1,oe&&t.flags&1048576&&h0(t,Cs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Zo(e,t),e=t.pendingProps;var i=ii(t,Ie.current);Zr(t,n),i=Od(null,t,r,e,i,n);var a=jd();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,Xe(r)?(a=!0,_s(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Cd(t),i.updater=ll,t.stateNode=i,i._reactInternals=t,iu(t,r,e,n),t=su(null,t,r,!0,a,n)):(t.tag=0,oe&&a&&vd(t),Ue(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Zo(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Hx(r),e=yt(r,e),i){case 0:t=ou(null,t,r,e,n);break e;case 1:t=Mf(null,t,r,e,n);break e;case 11:t=Nf(null,t,r,e,n);break e;case 14:t=Pf(null,t,r,yt(r.type,e),n);break e}throw Error(P(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),ou(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),Mf(e,t,r,i,n);case 3:e:{if($0(t),e===null)throw Error(P(387));r=t.pendingProps,a=t.memoizedState,i=a.element,v0(e,t),Ps(t,r,null,n);var o=t.memoizedState;if(r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=li(Error(P(423)),t),t=Of(e,t,r,n,i);break e}else if(r!==i){i=li(Error(P(424)),t),t=Of(e,t,r,n,i);break e}else for(rt=Mn(t.stateNode.containerInfo.firstChild),it=t,oe=!0,_t=null,n=g0(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(ai(),r===i){t=an(e,t,n);break e}Ue(e,t,r,n)}t=t.child}return t;case 5:return y0(t),e===null&&tu(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,o=i.children,Xc(r,i)?o=null:a!==null&&Xc(r,a)&&(t.flags|=32),W0(e,t),Ue(e,t,o,n),t.child;case 6:return e===null&&tu(t),null;case 13:return Y0(e,t,n);case 4:return Ed(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=oi(t,null,r,n):Ue(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),Nf(e,t,r,i,n);case 7:return Ue(e,t,t.pendingProps,n),t.child;case 8:return Ue(e,t,t.pendingProps.children,n),t.child;case 12:return Ue(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,o=i.value,Z(Es,r._currentValue),r._currentValue=o,a!==null)if(Pt(a.value,o)){if(a.children===i.children&&!Qe.current){t=an(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=en(-1,n&-n),l.tag=2;var c=a.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),nu(a.return,n,t),s.lanes|=n;break}l=l.next}}else if(a.tag===10)o=a.type===t.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(P(341));o.lanes|=n,s=o.alternate,s!==null&&(s.lanes|=n),nu(o,n,t),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===t){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}Ue(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Zr(t,n),i=gt(i),r=r(i),t.flags|=1,Ue(e,t,r,n),t.child;case 14:return r=t.type,i=yt(r,t.pendingProps),i=yt(r.type,i),Pf(e,t,r,i,n);case 15:return V0(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:yt(r,i),Zo(e,t),t.tag=1,Xe(r)?(e=!0,_s(t)):e=!1,Zr(t,n),F0(t,r,i),iu(t,r,i,n),su(null,t,r,!0,e,n);case 19:return q0(e,t,n);case 22:return H0(e,t,n)}throw Error(P(156,t.tag))};function ub(e,t){return Dg(e,t)}function Vx(e,t,n,r){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=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ht(e,t,n,r){return new Vx(e,t,n,r)}function Ud(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Hx(e){if(typeof e=="function")return Ud(e)?1:0;if(e!=null){if(e=e.$$typeof,e===od)return 11;if(e===sd)return 14}return 2}function Rn(e,t){var n=e.alternate;return n===null?(n=ht(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 ns(e,t,n,r,i,a){var o=2;if(r=e,typeof e=="function")Ud(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Ar:return dr(n.children,i,a,t);case ad:o=8,i|=8;break;case Pc:return e=ht(12,n,t,i|2),e.elementType=Pc,e.lanes=a,e;case Mc:return e=ht(13,n,t,i),e.elementType=Mc,e.lanes=a,e;case Oc:return e=ht(19,n,t,i),e.elementType=Oc,e.lanes=a,e;case yg:return dl(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case bg:o=10;break e;case vg:o=9;break e;case od:o=11;break e;case sd:o=14;break e;case mn:o=16,r=null;break e}throw Error(P(130,e==null?e:typeof e,""))}return t=ht(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function dr(e,t,n,r){return e=ht(7,e,r,t),e.lanes=n,e}function dl(e,t,n,r){return e=ht(22,e,r,t),e.elementType=yg,e.lanes=n,e.stateNode={isHidden:!1},e}function nc(e,t,n){return e=ht(6,e,null,t),e.lanes=n,e}function rc(e,t,n){return t=ht(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Wx(e,t,n,r,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=zl(0),this.expirationTimes=zl(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=zl(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Vd(e,t,n,r,i,a,o,s,l){return e=new Wx(e,t,n,s,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=ht(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Cd(a),e}function $x(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(pb)}catch(e){console.error(e)}}pb(),fg.exports=ot;var Xx=fg.exports,Vf=Xx;Ec.createRoot=Vf.createRoot,Ec.hydrateRoot=Vf.hydrateRoot;/** +* @remix-run/router v1.17.0 +* +* Copyright (c) Remix Software Inc. +* +* This source code is licensed under the MIT license found in the +* LICENSE.md file in the root directory of this source tree. +* +* @license MIT +*/function Na(){return Na=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function mb(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function Jx(){return Math.random().toString(36).substr(2,8)}function Wf(e,t){return{usr:e.state,key:e.key,idx:t}}function vu(e,t,n,r){return n===void 0&&(n=null),Na({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?bi(t):t,{state:n,key:t&&t.key||r||Jx()})}function zs(e){let{pathname:t="/",search:n="",hash:r=""}=e;return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),r&&r!=="#"&&(t+=r.charAt(0)==="#"?r:"#"+r),t}function bi(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Zx(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=wn.Pop,l=null,c=u();c==null&&(c=0,o.replaceState(Na({},o.state,{idx:c}),""));function u(){return(o.state||{idx:null}).idx}function d(){s=wn.Pop;let x=u(),g=x==null?null:x-c;c=x,l&&l({action:s,location:y.location,delta:g})}function h(x,g){s=wn.Push;let v=vu(y.location,x,g);c=u()+1;let b=Wf(v,c),w=y.createHref(v);try{o.pushState(b,"",w)}catch(k){if(k instanceof DOMException&&k.name==="DataCloneError")throw k;i.location.assign(w)}a&&l&&l({action:s,location:y.location,delta:1})}function f(x,g){s=wn.Replace;let v=vu(y.location,x,g);c=u();let b=Wf(v,c),w=y.createHref(v);o.replaceState(b,"",w),a&&l&&l({action:s,location:y.location,delta:0})}function m(x){let g=i.location.origin!=="null"?i.location.origin:i.location.href,v=typeof x=="string"?x:zs(x);return v=v.replace(/ $/,"%20"),ve(g,"No window.location.(origin|href) available to create URL for href: "+v),new URL(v,g)}let y={get action(){return s},get location(){return e(i,o)},listen(x){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(Hf,d),l=x,()=>{i.removeEventListener(Hf,d),l=null}},createHref(x){return t(i,x)},createURL:m,encodeLocation(x){let g=m(x);return{pathname:g.pathname,search:g.search,hash:g.hash}},push:h,replace:f,go(x){return o.go(x)}};return y}var $f;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})($f||($f={}));function e2(e,t,n){return n===void 0&&(n="/"),t2(e,t,n,!1)}function t2(e,t,n,r){let i=typeof t=="string"?bi(t):t,a=Yd(i.pathname||"/",n);if(a==null)return null;let o=gb(e);n2(o);let s=null;for(let l=0;s==null&&l{let l={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};l.relativePath.startsWith("/")&&(ve(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let c=Ln([r,l.relativePath]),u=n.concat(l);a.children&&a.children.length>0&&(ve(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+c+'".')),gb(a.children,t,u,c)),!(a.path==null&&!a.index)&&t.push({path:c,score:c2(c,a.index),routesMeta:u})};return e.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))i(a,o);else for(let l of bb(a.path))i(a,o,l)}),t}function bb(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let o=bb(r.join("/")),s=[];return s.push(...o.map(l=>l===""?a:[a,l].join("/"))),i&&s.push(...o),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function n2(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:u2(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const r2=/^:[\w-]+$/,i2=3,a2=2,o2=1,s2=10,l2=-2,Yf=e=>e==="*";function c2(e,t){let n=e.split("/"),r=n.length;return n.some(Yf)&&(r+=l2),t&&(r+=a2),n.filter(i=>!Yf(i)).reduce((i,a)=>i+(r2.test(a)?i2:a===""?o2:s2),r)}function u2(e,t){return e.length===t.length&&e.slice(0,-1).every((n,r)=>n===t[r])?e[e.length-1]-t[t.length-1]:0}function d2(e,t,n){let{routesMeta:r}=e,i={},a="/",o=[];for(let s=0;s{let{paramName:d,isOptional:h}=c;if(d==="*"){let m=s[u]||"";o=a.slice(0,a.length-m.length).replace(/(.)\/+$/,"$1")}const f=s[u];return h&&!f?l[d]=void 0:l[d]=(f||"").replace(/%2F/g,"/"),l},{}),pathname:a,pathnameBase:o,pattern:e}}function h2(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),mb(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(a,o,s)=>(r.push({paramName:o,isOptional:s!=null}),s?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function f2(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return mb(!1,'The URL path "'+e+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+t+").")),e}}function Yd(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}function p2(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?bi(e):e;return{pathname:n?n.startsWith("/")?n:m2(n,t):t,search:v2(r),hash:y2(i)}}function m2(e,t){let n=t.replace(/\/+$/,"").split("/");return e.split("/").forEach(r=>{r===".."?n.length>1&&n.pop():r!=="."&&n.push(r)}),n.length>1?n.join("/"):"/"}function ic(e,t,n,r){return"Cannot include a '"+e+"' character in a manually specified "+("`to."+t+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+n+"` field. Alternatively you may provide the full path as ")+'a string in and the router will parse it for you.'}function g2(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function qd(e,t){let n=g2(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function Kd(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=bi(e):(i=Na({},e),ve(!i.pathname||!i.pathname.includes("?"),ic("?","pathname","search",i)),ve(!i.pathname||!i.pathname.includes("#"),ic("#","pathname","hash",i)),ve(!i.search||!i.search.includes("#"),ic("#","search","hash",i)));let a=e===""||i.pathname==="",o=a?"/":i.pathname,s;if(o==null)s=n;else{let d=t.length-1;if(!r&&o.startsWith("..")){let h=o.split("/");for(;h[0]==="..";)h.shift(),d-=1;i.pathname=h.join("/")}s=d>=0?t[d]:"/"}let l=p2(i,s),c=o&&o!=="/"&&o.endsWith("/"),u=(a||o===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||u)&&(l.pathname+="/"),l}const Ln=e=>e.join("/").replace(/\/\/+/g,"/"),b2=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),v2=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,y2=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;function x2(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const vb=["post","put","patch","delete"];new Set(vb);const w2=["get",...vb];new Set(w2);/** +* React Router v6.24.0 +* +* Copyright (c) Remix Software Inc. +* +* This source code is licensed under the MIT license found in the +* LICENSE.md file in the root directory of this source tree. +* +* @license MIT +*/function Pa(){return Pa=Object.assign?Object.assign.bind():function(e){for(var t=1;t{s.current=!0}),N.useCallback(function(l,c){if(c===void 0&&(c={}),!s.current)return;if(typeof l=="number"){r.go(l);return}let u=Kd(l,JSON.parse(o),a,c.relative==="path");e==null&&t!=="/"&&(u.pathname=u.pathname==="/"?t:Ln([t,u.pathname])),(c.replace?r.replace:r.push)(u,c.state,c)},[t,r,o,a,e])}function wb(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=N.useContext(Yn),{matches:i}=N.useContext(qn),{pathname:a}=Ka(),o=JSON.stringify(qd(i,r.v7_relativeSplatPath));return N.useMemo(()=>Kd(e,JSON.parse(o),a,n==="path"),[e,o,a,n])}function C2(e,t){return E2(e,t)}function E2(e,t,n,r){vi()||ve(!1);let{navigator:i}=N.useContext(Yn),{matches:a}=N.useContext(qn),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let l=o?o.pathnameBase:"/";o&&o.route;let c=Ka(),u;if(t){var d;let x=typeof t=="string"?bi(t):t;l==="/"||(d=x.pathname)!=null&&d.startsWith(l)||ve(!1),u=x}else u=c;let h=u.pathname||"/",f=h;if(l!=="/"){let x=l.replace(/^\//,"").split("/");f="/"+h.replace(/^\//,"").split("/").slice(x.length).join("/")}let m=e2(e,{pathname:f}),y=j2(m&&m.map(x=>Object.assign({},x,{params:Object.assign({},s,x.params),pathname:Ln([l,i.encodeLocation?i.encodeLocation(x.pathname).pathname:x.pathname]),pathnameBase:x.pathnameBase==="/"?l:Ln([l,i.encodeLocation?i.encodeLocation(x.pathnameBase).pathname:x.pathnameBase])})),a,n,r);return t&&y?N.createElement(gl.Provider,{value:{location:Pa({pathname:"/",search:"",hash:"",state:null,key:"default"},u),navigationType:wn.Pop}},y):y}function N2(){let e=A2(),t=x2(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:r},n):null,null)}const P2=N.createElement(N2,null);class M2 extends N.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?N.createElement(qn.Provider,{value:this.props.routeContext},N.createElement(yb.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function O2(e){let{routeContext:t,match:n,children:r}=e,i=N.useContext(Qd);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(qn.Provider,{value:t},r)}function j2(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let o=e,s=(i=n)==null?void 0:i.errors;if(s!=null){let u=o.findIndex(d=>d.route.id&&(s==null?void 0:s[d.route.id])!==void 0);u>=0||ve(!1),o=o.slice(0,Math.min(o.length,u+1))}let l=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let u=0;u=0?o=o.slice(0,c+1):o=[o[0]];break}}}return o.reduceRight((u,d,h)=>{let f,m=!1,y=null,x=null;n&&(f=s&&d.route.id?s[d.route.id]:void 0,y=d.route.errorElement||P2,l&&(c<0&&h===0?(m=!0,x=null):c===h&&(m=!0,x=d.route.hydrateFallbackElement||null)));let g=t.concat(o.slice(0,h+1)),v=()=>{let b;return f?b=y:m?b=x:d.route.Component?b=N.createElement(d.route.Component,null):d.route.element?b=d.route.element:b=u,N.createElement(O2,{match:d,routeContext:{outlet:u,matches:g,isDataRoute:n!=null},children:b})};return n&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?N.createElement(M2,{location:n.location,revalidation:n.revalidation,component:y,error:f,children:v(),routeContext:{outlet:null,matches:g,isDataRoute:!0}}):v()},null)}var kb=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(kb||{}),Is=function(e){return e.UseBlocker="useBlocker",e.UseLoaderData="useLoaderData",e.UseActionData="useActionData",e.UseRouteError="useRouteError",e.UseNavigation="useNavigation",e.UseRouteLoaderData="useRouteLoaderData",e.UseMatches="useMatches",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e.UseRouteId="useRouteId",e}(Is||{});function T2(e){let t=N.useContext(Qd);return t||ve(!1),t}function R2(e){let t=N.useContext(k2);return t||ve(!1),t}function L2(e){let t=N.useContext(qn);return t||ve(!1),t}function _b(e){let t=L2(),n=t.matches[t.matches.length-1];return n.route.id||ve(!1),n.route.id}function A2(){var e;let t=N.useContext(yb),n=R2(Is.UseRouteError),r=_b(Is.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function D2(){let{router:e}=T2(kb.UseNavigateStable),t=_b(Is.UseNavigateStable),n=N.useRef(!1);return xb(()=>{n.current=!0}),N.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r=="number"?e.navigate(r):e.navigate(r,Pa({fromRouteId:t},i)))},[e,t])}function Sb(e){let{to:t,replace:n,state:r,relative:i}=e;vi()||ve(!1);let{future:a,static:o}=N.useContext(Yn),{matches:s}=N.useContext(qn),{pathname:l}=Ka(),c=yi(),u=Kd(t,qd(s,a.v7_relativeSplatPath),l,i==="path"),d=JSON.stringify(u);return N.useEffect(()=>c(JSON.parse(d),{replace:n,state:r,relative:i}),[c,d,i,n,r]),null}function et(e){ve(!1)}function z2(e){let{basename:t="/",children:n=null,location:r,navigationType:i=wn.Pop,navigator:a,static:o=!1,future:s}=e;vi()&&ve(!1);let l=t.replace(/^\/*/,"/"),c=N.useMemo(()=>({basename:l,navigator:a,static:o,future:Pa({v7_relativeSplatPath:!1},s)}),[l,s,a,o]);typeof r=="string"&&(r=bi(r));let{pathname:u="/",search:d="",hash:h="",state:f=null,key:m="default"}=r,y=N.useMemo(()=>{let x=Yd(u,l);return x==null?null:{location:{pathname:x,search:d,hash:h,state:f,key:m},navigationType:i}},[l,u,d,h,f,m,i]);return y==null?null:N.createElement(Yn.Provider,{value:c},N.createElement(gl.Provider,{children:n,value:y}))}function I2(e){let{children:t,location:n}=e;return C2(yu(t),n)}new Promise(()=>{});function yu(e,t){t===void 0&&(t=[]);let n=[];return N.Children.forEach(e,(r,i)=>{if(!N.isValidElement(r))return;let a=[...t,i];if(r.type===N.Fragment){n.push.apply(n,yu(r.props.children,a));return}r.type!==et&&ve(!1),!r.props.index||!r.props.children||ve(!1);let o={id:r.props.id||a.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,loader:r.props.loader,action:r.props.action,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(o.children=yu(r.props.children,a)),n.push(o)}),n}/** +* React Router DOM v6.24.0 +* +* Copyright (c) Remix Software Inc. +* +* This source code is licensed under the MIT license found in the +* LICENSE.md file in the root directory of this source tree. +* +* @license MIT +*/function xu(){return xu=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function B2(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function U2(e,t){return e.button===0&&(!t||t==="_self")&&!B2(e)}const V2=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset","unstable_viewTransition"],H2="6";try{window.__reactRouterVersion=H2}catch{}const W2="startTransition",Kf=F1[W2];function $2(e){let{basename:t,children:n,future:r,window:i}=e,a=N.useRef();a.current==null&&(a.current=Gx({window:i,v5Compat:!0}));let o=a.current,[s,l]=N.useState({action:o.action,location:o.location}),{v7_startTransition:c}=r||{},u=N.useCallback(d=>{c&&Kf?Kf(()=>l(d)):l(d)},[l,c]);return N.useLayoutEffect(()=>o.listen(u),[o,u]),N.createElement(z2,{basename:t,children:n,location:s.location,navigationType:s.action,navigator:o,future:r})}const Y2=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",q2=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,wt=N.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:l,preventScrollReset:c,unstable_viewTransition:u}=e,d=F2(e,V2),{basename:h}=N.useContext(Yn),f,m=!1;if(typeof l=="string"&&q2.test(l)&&(f=l,Y2))try{let v=new URL(window.location.href),b=l.startsWith("//")?new URL(v.protocol+l):new URL(l),w=Yd(b.pathname,h);b.origin===v.origin&&w!=null?l=w+b.search+b.hash:m=!0}catch{}let y=_2(l,{relative:r}),x=K2(l,{replace:a,state:o,target:s,preventScrollReset:c,relative:r,unstable_viewTransition:u});function g(v){n&&n(v),v.defaultPrevented||x(v)}return N.createElement("a",xu({},d,{href:f||y,onClick:m||i?n:g,ref:t,target:s}))});var Qf;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(Qf||(Qf={}));var Xf;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(Xf||(Xf={}));function K2(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:s}=t===void 0?{}:t,l=yi(),c=Ka(),u=wb(e,{relative:o});return N.useCallback(d=>{if(U2(d,n)){d.preventDefault();let h=r!==void 0?r:zs(c)===zs(u);l(e,{replace:h,state:i,preventScrollReset:a,relative:o,unstable_viewTransition:s})}},[c,l,u,r,i,n,e,a,o,s])}function Cb(e,t){return function(){return e.apply(t,arguments)}}const{toString:Q2}=Object.prototype,{getPrototypeOf:Xd}=Object,bl=(e=>t=>{const n=Q2.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Ot=e=>(e=e.toLowerCase(),t=>bl(t)===e),vl=e=>t=>typeof t===e,{isArray:xi}=Array,Ma=vl("undefined");function X2(e){return e!==null&&!Ma(e)&&e.constructor!==null&&!Ma(e.constructor)&&mt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Eb=Ot("ArrayBuffer");function G2(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Eb(e.buffer),t}const J2=vl("string"),mt=vl("function"),Nb=vl("number"),yl=e=>e!==null&&typeof e=="object",Z2=e=>e===!0||e===!1,rs=e=>{if(bl(e)!=="object")return!1;const t=Xd(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},ew=Ot("Date"),tw=Ot("File"),nw=Ot("Blob"),rw=Ot("FileList"),iw=e=>yl(e)&&mt(e.pipe),aw=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||mt(e.append)&&((t=bl(e))==="formdata"||t==="object"&&mt(e.toString)&&e.toString()==="[object FormData]"))},ow=Ot("URLSearchParams"),[sw,lw,cw,uw]=["ReadableStream","Request","Response","Headers"].map(Ot),dw=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Qa(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),xi(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Mb=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Ob=e=>!Ma(e)&&e!==Mb;function wu(){const{caseless:e}=Ob(this)&&this||{},t={},n=(r,i)=>{const a=e&&Pb(t,i)||i;rs(t[a])&&rs(r)?t[a]=wu(t[a],r):rs(r)?t[a]=wu({},r):xi(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(Qa(t,(i,a)=>{n&&mt(i)?e[a]=Cb(i,n):e[a]=i},{allOwnKeys:r}),e),fw=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),pw=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},mw=(e,t,n,r)=>{let i,a,o;const s={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)o=i[a],(!r||r(o,e,t))&&!s[o]&&(t[o]=e[o],s[o]=!0);e=n!==!1&&Xd(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},gw=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},bw=e=>{if(!e)return null;if(xi(e))return e;let t=e.length;if(!Nb(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},vw=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Xd(Uint8Array)),yw=(e,t)=>{const n=(e&&e[Symbol.iterator]).call(e);let r;for(;(r=n.next())&&!r.done;){const i=r.value;t.call(e,i[0],i[1])}},xw=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},ww=Ot("HTMLFormElement"),kw=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(t,n,r){return n.toUpperCase()+r}),Gf=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),_w=Ot("RegExp"),jb=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Qa(n,(i,a)=>{let o;(o=t(i,a,e))!==!1&&(r[a]=o||i)}),Object.defineProperties(e,r)},Sw=e=>{jb(e,(t,n)=>{if(mt(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(mt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},Cw=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return xi(e)?r(e):r(String(e).split(t)),n},Ew=()=>{},Nw=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,ac="abcdefghijklmnopqrstuvwxyz",Jf="0123456789",Tb={DIGIT:Jf,ALPHA:ac,ALPHA_DIGIT:ac+ac.toUpperCase()+Jf},Pw=(e=16,t=Tb.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function Mw(e){return!!(e&&mt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const Ow=e=>{const t=new Array(10),n=(r,i)=>{if(yl(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=xi(r)?[]:{};return Qa(r,(o,s)=>{const l=n(o,i+1);!Ma(l)&&(a[s]=l)}),t[i]=void 0,a}}return r};return n(e,0)},jw=Ot("AsyncFunction"),Tw=e=>e&&(yl(e)||mt(e))&&mt(e.then)&&mt(e.catch),S={isArray:xi,isArrayBuffer:Eb,isBuffer:X2,isFormData:aw,isArrayBufferView:G2,isString:J2,isNumber:Nb,isBoolean:Z2,isObject:yl,isPlainObject:rs,isReadableStream:sw,isRequest:lw,isResponse:cw,isHeaders:uw,isUndefined:Ma,isDate:ew,isFile:tw,isBlob:nw,isRegExp:_w,isFunction:mt,isStream:iw,isURLSearchParams:ow,isTypedArray:vw,isFileList:rw,forEach:Qa,merge:wu,extend:hw,trim:dw,stripBOM:fw,inherits:pw,toFlatObject:mw,kindOf:bl,kindOfTest:Ot,endsWith:gw,toArray:bw,forEachEntry:yw,matchAll:xw,isHTMLForm:ww,hasOwnProperty:Gf,hasOwnProp:Gf,reduceDescriptors:jb,freezeMethods:Sw,toObjectSet:Cw,toCamelCase:kw,noop:Ew,toFiniteNumber:Nw,findKey:Pb,global:Mb,isContextDefined:Ob,ALPHABET:Tb,generateString:Pw,isSpecCompliantForm:Mw,toJSONObject:Ow,isAsyncFn:jw,isThenable:Tw};function F(e,t,n,r,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}S.inherits(F,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:S.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Rb=F.prototype,Lb={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Lb[e]={value:e}});Object.defineProperties(F,Lb);Object.defineProperty(Rb,"isAxiosError",{value:!0});F.from=(e,t,n,r,i,a)=>{const o=Object.create(Rb);return S.toFlatObject(e,o,function(s){return s!==Error.prototype},s=>s!=="isAxiosError"),F.call(o,e.message,t,n,r,i),o.cause=e,o.name=e.name,a&&Object.assign(o,a),o};const Rw=null;function ku(e){return S.isPlainObject(e)||S.isArray(e)}function Ab(e){return S.endsWith(e,"[]")?e.slice(0,-2):e}function Zf(e,t,n){return e?e.concat(t).map(function(r,i){return r=Ab(r),!n&&i?"["+r+"]":r}).join(n?".":""):t}function Lw(e){return S.isArray(e)&&!e.some(ku)}const Aw=S.toFlatObject(S,{},null,function(e){return/^is[A-Z]/.test(e)});function xl(e,t,n){if(!S.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=S.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(f,m){return!S.isUndefined(m[f])});const r=n.metaTokens,i=n.visitor||c,a=n.dots,o=n.indexes,s=(n.Blob||typeof Blob<"u"&&Blob)&&S.isSpecCompliantForm(t);if(!S.isFunction(i))throw new TypeError("visitor must be a function");function l(f){if(f===null)return"";if(S.isDate(f))return f.toISOString();if(!s&&S.isBlob(f))throw new F("Blob is not supported. Use a Buffer instead.");return S.isArrayBuffer(f)||S.isTypedArray(f)?s&&typeof Blob=="function"?new Blob([f]):Buffer.from(f):f}function c(f,m,y){let x=f;if(f&&!y&&typeof f=="object"){if(S.endsWith(m,"{}"))m=r?m:m.slice(0,-2),f=JSON.stringify(f);else if(S.isArray(f)&&Lw(f)||(S.isFileList(f)||S.endsWith(m,"[]"))&&(x=S.toArray(f)))return m=Ab(m),x.forEach(function(g,v){!(S.isUndefined(g)||g===null)&&t.append(o===!0?Zf([m],v,a):o===null?m:m+"[]",l(g))}),!1}return ku(f)?!0:(t.append(Zf(y,m,a),l(f)),!1)}const u=[],d=Object.assign(Aw,{defaultVisitor:c,convertValue:l,isVisitable:ku});function h(f,m){if(!S.isUndefined(f)){if(u.indexOf(f)!==-1)throw Error("Circular reference detected in "+m.join("."));u.push(f),S.forEach(f,function(y,x){(!(S.isUndefined(y)||y===null)&&i.call(t,y,S.isString(x)?x.trim():x,m,d))===!0&&h(y,m?m.concat(x):[x])}),u.pop()}}if(!S.isObject(e))throw new TypeError("data must be an object");return h(e),t}function ep(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(n){return t[n]})}function Gd(e,t){this._pairs=[],e&&xl(e,this,t)}const Db=Gd.prototype;Db.append=function(e,t){this._pairs.push([e,t])};Db.toString=function(e){const t=e?function(n){return e.call(this,n,ep)}:ep;return this._pairs.map(function(n){return t(n[0])+"="+t(n[1])},"").join("&")};function Dw(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function zb(e,t,n){if(!t)return e;const r=n&&n.encode||Dw,i=n&&n.serialize;let a;if(i?a=i(t,n):a=S.isURLSearchParams(t)?t.toString():new Gd(t,n).toString(r),a){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class tp{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){S.forEach(this.handlers,function(n){n!==null&&t(n)})}}const Ib={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zw=typeof URLSearchParams<"u"?URLSearchParams:Gd,Iw=typeof FormData<"u"?FormData:null,Fw=typeof Blob<"u"?Blob:null,Bw={isBrowser:!0,classes:{URLSearchParams:zw,FormData:Iw,Blob:Fw},protocols:["http","https","file","blob","url","data"]},Jd=typeof window<"u"&&typeof document<"u",Uw=(e=>Jd&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),Vw=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hw=Jd&&window.location.href||"http://localhost",Ww=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Jd,hasStandardBrowserEnv:Uw,hasStandardBrowserWebWorkerEnv:Vw,origin:Hw},Symbol.toStringTag,{value:"Module"})),Nt={...Ww,...Bw};function $w(e,t){return xl(e,new Nt.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Nt.isNode&&S.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function Yw(e){return S.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function qw(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return o=!o&&S.isArray(i)?i.length:o,l?(S.hasOwnProp(i,o)?i[o]=[i[o],r]:i[o]=r,!s):((!i[o]||!S.isObject(i[o]))&&(i[o]=[]),t(n,r,i[o],a)&&S.isArray(i[o])&&(i[o]=qw(i[o])),!s)}if(S.isFormData(e)&&S.isFunction(e.entries)){const n={};return S.forEachEntry(e,(r,i)=>{t(Yw(r),i,n,0)}),n}return null}function Kw(e,t,n){if(S.isString(e))try{return(t||JSON.parse)(e),S.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(0,JSON.stringify)(e)}const Xa={transitional:Ib,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,i=S.isObject(e);if(i&&S.isHTMLForm(e)&&(e=new FormData(e)),S.isFormData(e))return r?JSON.stringify(Fb(e)):e;if(S.isArrayBuffer(e)||S.isBuffer(e)||S.isStream(e)||S.isFile(e)||S.isBlob(e)||S.isReadableStream(e))return e;if(S.isArrayBufferView(e))return e.buffer;if(S.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return $w(e,this.formSerializer).toString();if((a=S.isFileList(e))||n.indexOf("multipart/form-data")>-1){const o=this.env&&this.env.FormData;return xl(a?{"files[]":e}:e,o&&new o,this.formSerializer)}}return i||r?(t.setContentType("application/json",!1),Kw(e)):e}],transformResponse:[function(e){const t=this.transitional||Xa.transitional,n=t&&t.forcedJSONParsing,r=this.responseType==="json";if(S.isResponse(e)||S.isReadableStream(e))return e;if(e&&S.isString(e)&&(n&&!this.responseType||r)){const i=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e)}catch(a){if(i)throw a.name==="SyntaxError"?F.from(a,F.ERR_BAD_RESPONSE,this,null,this.response):a}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Nt.classes.FormData,Blob:Nt.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};S.forEach(["delete","get","head","post","put","patch"],e=>{Xa.headers[e]={}});const Qw=S.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Xw=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(a){i=a.indexOf(":"),n=a.substring(0,i).trim().toLowerCase(),r=a.substring(i+1).trim(),!(!n||t[n]&&Qw[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},np=Symbol("internals");function ji(e){return e&&String(e).trim().toLowerCase()}function is(e){return e===!1||e==null?e:S.isArray(e)?e.map(is):String(e)}function Gw(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Jw=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function oc(e,t,n,r,i){if(S.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!S.isString(t)){if(S.isString(r))return t.indexOf(r)!==-1;if(S.isRegExp(r))return r.test(t)}}function Zw(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function ek(e,t){const n=S.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,o){return this[r].call(this,t,i,a,o)},configurable:!0})})}class Je{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(s,l,c){const u=ji(l);if(!u)throw new Error("header name must be a non-empty string");const d=S.findKey(i,u);(!d||i[d]===void 0||c===!0||c===void 0&&i[d]!==!1)&&(i[d||l]=is(s))}const o=(s,l)=>S.forEach(s,(c,u)=>a(c,u,l));if(S.isPlainObject(t)||t instanceof this.constructor)o(t,n);else if(S.isString(t)&&(t=t.trim())&&!Jw(t))o(Xw(t),n);else if(S.isHeaders(t))for(const[s,l]of t.entries())a(l,s,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=ji(t),t){const r=S.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return Gw(i);if(S.isFunction(n))return n.call(this,i,r);if(S.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=ji(t),t){const r=S.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||oc(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(o){if(o=ji(o),o){const s=S.findKey(r,o);s&&(!n||oc(r,r[s],s,n))&&(delete r[s],i=!0)}}return S.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||oc(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return S.forEach(this,(i,a)=>{const o=S.findKey(r,a);if(o){n[o]=is(i),delete n[a];return}const s=t?Zw(a):String(a).trim();s!==a&&delete n[a],n[s]=is(i),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return S.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&S.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const n=(this[np]=this[np]={accessors:{}}).accessors,r=this.prototype;function i(a){const o=ji(a);n[o]||(ek(r,a),n[o]=!0)}return S.isArray(t)?t.forEach(i):i(t),this}}Je.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);S.reduceDescriptors(Je.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});S.freezeMethods(Je);function sc(e,t){const n=this||Xa,r=t||n,i=Je.from(r.headers);let a=r.data;return S.forEach(e,function(o){a=o.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function Bb(e){return!!(e&&e.__CANCEL__)}function wi(e,t,n){F.call(this,e??"canceled",F.ERR_CANCELED,t,n),this.name="CanceledError"}S.inherits(wi,F,{__CANCEL__:!0});function Ub(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new F("Request failed with status code "+n.status,[F.ERR_BAD_REQUEST,F.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function tk(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function nk(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,o;return t=t!==void 0?t:1e3,function(s){const l=Date.now(),c=r[a];o||(o=l),n[i]=s,r[i]=l;let u=a,d=0;for(;u!==i;)d+=n[u++],u=u%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),l-or)return i&&(clearTimeout(i),i=null),n=o,e.apply(null,arguments);i||(i=setTimeout(()=>(i=null,n=Date.now(),e.apply(null,arguments)),r-(o-n)))}}const Fs=(e,t,n=3)=>{let r=0;const i=nk(50,250);return rk(a=>{const o=a.loaded,s=a.lengthComputable?a.total:void 0,l=o-r,c=i(l),u=o<=s;r=o;const d={loaded:o,total:s,progress:s?o/s:void 0,bytes:l,rate:c||void 0,estimated:c&&s&&u?(s-o)/c:void 0,event:a,lengthComputable:s!=null};d[t?"download":"upload"]=!0,e(d)},n)},ik=Nt.hasStandardBrowserEnv?function(){const e=/(msie|trident)/i.test(navigator.userAgent),t=document.createElement("a");let n;function r(i){let a=i;return e&&(t.setAttribute("href",a),a=t.href),t.setAttribute("href",a),{href:t.href,protocol:t.protocol?t.protocol.replace(/:$/,""):"",host:t.host,search:t.search?t.search.replace(/^\?/,""):"",hash:t.hash?t.hash.replace(/^#/,""):"",hostname:t.hostname,port:t.port,pathname:t.pathname.charAt(0)==="/"?t.pathname:"/"+t.pathname}}return n=r(window.location.href),function(i){const a=S.isString(i)?r(i):i;return a.protocol===n.protocol&&a.host===n.host}}():function(){return function(){return!0}}(),ak=Nt.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const o=[e+"="+encodeURIComponent(t)];S.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),S.isString(r)&&o.push("path="+r),S.isString(i)&&o.push("domain="+i),a===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ok(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sk(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Vb(e,t){return e&&!ok(t)?sk(e,t):t}const rp=e=>e instanceof Je?{...e}:e;function wr(e,t){t=t||{};const n={};function r(c,u,d){return S.isPlainObject(c)&&S.isPlainObject(u)?S.merge.call({caseless:d},c,u):S.isPlainObject(u)?S.merge({},u):S.isArray(u)?u.slice():u}function i(c,u,d){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c,d)}else return r(c,u,d)}function a(c,u){if(!S.isUndefined(u))return r(void 0,u)}function o(c,u){if(S.isUndefined(u)){if(!S.isUndefined(c))return r(void 0,c)}else return r(void 0,u)}function s(c,u,d){if(d in t)return r(c,u);if(d in e)return r(void 0,c)}const l={url:a,method:a,data:a,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:s,headers:(c,u)=>i(rp(c),rp(u),!0)};return S.forEach(Object.keys(Object.assign({},e,t)),function(c){const u=l[c]||i,d=u(e[c],t[c],c);S.isUndefined(d)&&u!==s||(n[c]=d)}),n}const Hb=e=>{const t=wr({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:o,auth:s}=t;t.headers=o=Je.from(o),t.url=zb(Vb(t.baseURL,t.url),e.params,e.paramsSerializer),s&&o.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):"")));let l;if(S.isFormData(n)){if(Nt.hasStandardBrowserEnv||Nt.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...u]=l?l.split(";").map(d=>d.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...u].join("; "))}}if(Nt.hasStandardBrowserEnv&&(r&&S.isFunction(r)&&(r=r(t)),r||r!==!1&&ik(t.url))){const c=i&&a&&ak.read(a);c&&o.set(i,c)}return t},lk=typeof XMLHttpRequest<"u",ck=lk&&function(e){return new Promise(function(t,n){const r=Hb(e);let i=r.data;const a=Je.from(r.headers).normalize();let{responseType:o}=r,s;function l(){r.cancelToken&&r.cancelToken.unsubscribe(s),r.signal&&r.signal.removeEventListener("abort",s)}let c=new XMLHttpRequest;c.open(r.method.toUpperCase(),r.url,!0),c.timeout=r.timeout;function u(){if(!c)return;const h=Je.from("getAllResponseHeaders"in c&&c.getAllResponseHeaders()),f={data:!o||o==="text"||o==="json"?c.responseText:c.response,status:c.status,statusText:c.statusText,headers:h,config:e,request:c};Ub(function(m){t(m),l()},function(m){n(m),l()},f),c=null}"onloadend"in c?c.onloadend=u:c.onreadystatechange=function(){!c||c.readyState!==4||c.status===0&&!(c.responseURL&&c.responseURL.indexOf("file:")===0)||setTimeout(u)},c.onabort=function(){c&&(n(new F("Request aborted",F.ECONNABORTED,r,c)),c=null)},c.onerror=function(){n(new F("Network Error",F.ERR_NETWORK,r,c)),c=null},c.ontimeout=function(){let h=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const f=r.transitional||Ib;r.timeoutErrorMessage&&(h=r.timeoutErrorMessage),n(new F(h,f.clarifyTimeoutError?F.ETIMEDOUT:F.ECONNABORTED,r,c)),c=null},i===void 0&&a.setContentType(null),"setRequestHeader"in c&&S.forEach(a.toJSON(),function(h,f){c.setRequestHeader(f,h)}),S.isUndefined(r.withCredentials)||(c.withCredentials=!!r.withCredentials),o&&o!=="json"&&(c.responseType=r.responseType),typeof r.onDownloadProgress=="function"&&c.addEventListener("progress",Fs(r.onDownloadProgress,!0)),typeof r.onUploadProgress=="function"&&c.upload&&c.upload.addEventListener("progress",Fs(r.onUploadProgress)),(r.cancelToken||r.signal)&&(s=h=>{c&&(n(!h||h.type?new wi(null,e,c):h),c.abort(),c=null)},r.cancelToken&&r.cancelToken.subscribe(s),r.signal&&(r.signal.aborted?s():r.signal.addEventListener("abort",s)));const d=tk(r.url);if(d&&Nt.protocols.indexOf(d)===-1){n(new F("Unsupported protocol "+d+":",F.ERR_BAD_REQUEST,e));return}c.send(i||null)})},uk=(e,t)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,o();const c=l instanceof Error?l:this.reason;n.abort(c instanceof F?c:new wi(c instanceof Error?c.message:c))}};let a=t&&setTimeout(()=>{i(new F(`timeout ${t} of ms exceeded`,F.ETIMEDOUT))},t);const o=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:s}=n;return s.unsubscribe=o,[s,()=>{a&&clearTimeout(a),a=null}]},dk=function*(e,t){let n=e.byteLength;if(n{const a=hk(e,t,i);let o=0;return new ReadableStream({type:"bytes",async pull(s){const{done:l,value:c}=await a.next();if(l){s.close(),r();return}let u=c.byteLength;n&&n(o+=u),s.enqueue(new Uint8Array(c))},cancel(s){return r(s),a.return()}},{highWaterMark:2})},ap=(e,t)=>{const n=e!=null;return r=>setTimeout(()=>t({lengthComputable:n,total:e,loaded:r}))},wl=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Wb=wl&&typeof ReadableStream=="function",_u=wl&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),fk=Wb&&(()=>{let e=!1;const t=new Request(Nt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t})(),op=64*1024,Su=Wb&&!!(()=>{try{return S.isReadableStream(new Response("").body)}catch{}})(),Bs={stream:Su&&(e=>e.body)};wl&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!Bs[t]&&(Bs[t]=S.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new F(`Response type '${t}' is not supported`,F.ERR_NOT_SUPPORT,r)})})})(new Response);const pk=async e=>{if(e==null)return 0;if(S.isBlob(e))return e.size;if(S.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(S.isArrayBufferView(e))return e.byteLength;if(S.isURLSearchParams(e)&&(e=e+""),S.isString(e))return(await _u(e)).byteLength},mk=async(e,t)=>S.toFiniteNumber(e.getContentLength())??pk(t),gk=wl&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:o,onDownloadProgress:s,onUploadProgress:l,responseType:c,headers:u,withCredentials:d="same-origin",fetchOptions:h}=Hb(e);c=c?(c+"").toLowerCase():"text";let[f,m]=i||a||o?uk([i,a],o):[],y,x;const g=()=>{!y&&setTimeout(()=>{f&&f.unsubscribe()}),y=!0};let v;try{if(l&&fk&&n!=="get"&&n!=="head"&&(v=await mk(u,r))!==0){let _=new Request(t,{method:"POST",body:r,duplex:"half"}),C;S.isFormData(r)&&(C=_.headers.get("content-type"))&&u.setContentType(C),_.body&&(r=ip(_.body,op,ap(v,Fs(l)),null,_u))}S.isString(d)||(d=d?"cors":"omit"),x=new Request(t,{...h,signal:f,method:n.toUpperCase(),headers:u.normalize().toJSON(),body:r,duplex:"half",withCredentials:d});let b=await fetch(x);const w=Su&&(c==="stream"||c==="response");if(Su&&(s||w)){const _={};["status","statusText","headers"].forEach(E=>{_[E]=b[E]});const C=S.toFiniteNumber(b.headers.get("content-length"));b=new Response(ip(b.body,op,s&&ap(C,Fs(s,!0)),w&&g,_u),_)}c=c||"text";let k=await Bs[S.findKey(Bs,c)||"text"](b,e);return!w&&g(),m&&m(),await new Promise((_,C)=>{Ub(_,C,{data:k,headers:Je.from(b.headers),status:b.status,statusText:b.statusText,config:e,request:x})})}catch(b){throw g(),b&&b.name==="TypeError"&&/fetch/i.test(b.message)?Object.assign(new F("Network Error",F.ERR_NETWORK,e,x),{cause:b.cause||b}):F.from(b,b&&b.code,e,x)}}),Cu={http:Rw,xhr:ck,fetch:gk};S.forEach(Cu,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const sp=e=>`- ${e}`,bk=e=>S.isFunction(e)||e===null||e===!1,$b={getAdapter:e=>{e=S.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${s} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?a.length>1?`since : +`+a.map(sp).join(` +`):" "+sp(a[0]):"as no adapter specified";throw new F("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:Cu};function lc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new wi(null,e)}function lp(e){return lc(e),e.headers=Je.from(e.headers),e.data=sc.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),$b.getAdapter(e.adapter||Xa.adapter)(e).then(function(t){return lc(e),t.data=sc.call(e,e.transformResponse,t),t.headers=Je.from(t.headers),t},function(t){return Bb(t)||(lc(e),t&&t.response&&(t.response.data=sc.call(e,e.transformResponse,t.response),t.response.headers=Je.from(t.response.headers))),Promise.reject(t)})}const Yb="1.7.2",Zd={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Zd[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const cp={};Zd.transitional=function(e,t,n){function r(i,a){return"[Axios v"+Yb+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,o)=>{if(e===!1)throw new F(r(a," has been removed"+(t?" in "+t:"")),F.ERR_DEPRECATED);return t&&!cp[a]&&(cp[a]=!0,console.warn(r(a," has been deprecated since v"+t+" and will be removed in the near future"))),e?e(i,a,o):!0}};function vk(e,t,n){if(typeof e!="object")throw new F("options must be an object",F.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],o=t[a];if(o){const s=e[a],l=s===void 0||o(s,a,e);if(l!==!0)throw new F("option "+a+" must be "+l,F.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new F("Unknown option "+a,F.ERR_BAD_OPTION)}}const Eu={assertOptions:vk,validators:Zd},hn=Eu.validators;class hr{constructor(t){this.defaults=t,this.interceptors={request:new tp,response:new tp}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=wr(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&Eu.assertOptions(r,{silentJSONParsing:hn.transitional(hn.boolean),forcedJSONParsing:hn.transitional(hn.boolean),clarifyTimeoutError:hn.transitional(hn.boolean)},!1),i!=null&&(S.isFunction(i)?n.paramsSerializer={serialize:i}:Eu.assertOptions(i,{encode:hn.function,serialize:hn.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let o=a&&S.merge(a.common,a[n.method]);a&&S.forEach(["delete","get","head","post","put","patch","common"],m=>{delete a[m]}),n.headers=Je.concat(o,a);const s=[];let l=!0;this.interceptors.request.forEach(function(m){typeof m.runWhen=="function"&&m.runWhen(n)===!1||(l=l&&m.synchronous,s.unshift(m.fulfilled,m.rejected))});const c=[];this.interceptors.response.forEach(function(m){c.push(m.fulfilled,m.rejected)});let u,d=0,h;if(!l){const m=[lp.bind(this),void 0];for(m.unshift.apply(m,s),m.push.apply(m,c),h=m.length,u=Promise.resolve(n);d{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const o=new Promise(s=>{r.subscribe(s),a=s}).then(i);return o.cancel=function(){r.unsubscribe(a)},o},t(function(i,a,o){r.reason||(r.reason=new wi(i,a,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new eh(function(n){t=n}),cancel:t}}}function yk(e){return function(t){return e.apply(null,t)}}function xk(e){return S.isObject(e)&&e.isAxiosError===!0}const Nu={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(Nu).forEach(([e,t])=>{Nu[t]=e});function qb(e){const t=new hr(e),n=Cb(hr.prototype.request,t);return S.extend(n,hr.prototype,t,{allOwnKeys:!0}),S.extend(n,t,null,{allOwnKeys:!0}),n.create=function(r){return qb(wr(e,r))},n}const ee=qb(Xa);ee.Axios=hr;ee.CanceledError=wi;ee.CancelToken=eh;ee.isCancel=Bb;ee.VERSION=Yb;ee.toFormData=xl;ee.AxiosError=F;ee.Cancel=ee.CanceledError;ee.all=function(e){return Promise.all(e)};ee.spread=yk;ee.isAxiosError=xk;ee.mergeConfig=wr;ee.AxiosHeaders=Je;ee.formToJSON=e=>Fb(S.isHTMLForm(e)?new FormData(e):e);ee.getAdapter=$b.getAdapter;ee.HttpStatusCode=Nu;ee.default=ee;const wk="http://localhost:8000",kr=ee.create({baseURL:wk});kr.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.headers["xi-api-key"]="u2",e.data instanceof FormData?e.headers["Content-Type"]="multipart/form-data":typeof e.data=="object"&&(e.headers["Content-Type"]="application/json"),e},e=>Promise.reject(e));kr.interceptors.response.use(e=>e,e=>Promise.reject(e));const In="http://localhost:8000",kk=async(e,t,n,r,i,a,o)=>{const s=new URLSearchParams;s.append("first_name",e),s.append("surname",t),s.append("email",n),s.append("phone",r),s.append("country",i),s.append("address",a),s.append("password",o);try{return console.log("data",s),(await ee.post(`${In}/api/v1/user/`,s,{headers:{"Content-Type":"application/x-www-form-urlencoded",accept:"application/json"}})).data}catch(l){throw console.error("Registration failed:",l),l}},_k=async(e,t)=>{const n=new URLSearchParams;n.append("username",e),n.append("password",t);try{return await ee.post(`${In}/token`,n,{headers:{"Content-Type":"application/x-www-form-urlencoded",accept:"application/json"}})}catch(r){throw console.error("Login failed:",r),r}},Kb=async e=>{try{return(await kr.get(`${In}/api/v1/ocrtemplate/`,{params:{template_name:e}})).data}catch(t){throw console.error("Error fetching templates:",t),t}},up=async(e,t,n,r)=>{const i={template_name:e,fields:t,user_id:n};try{let a;return console.log(r),r?a=await kr.put(`${In}/api/v1/ocrtemplate/templates/`,i):a=await kr.post(`${In}/api/v1/ocrtemplate/`,i),a.data}catch(a){throw console.error("Error creating/updating template:",a),a}},Sk=async e=>{try{return(await kr.delete(`${In}/api/v1/ocrtemplate/${e}`)).data}catch(t){throw console.error("Error deleting template:",t),t}},Ck=async e=>{try{for(let[r,i]of e.entries())console.log(`${r}: ${i.name||i}`);const t=await kr.post(`${In}/api/v1/ocr/process`,e);if(t.status!==200)throw new Error(`Error: ${t.statusText}`);const n=t.data;return console.log("Success:",n),n}catch(t){throw console.error("Error:",t),alert("There was an error processing the files."),t}},Ek=async(e,t,n,r,i,a,o)=>{const s={text:e,language_code:t,ssml_gender:n,name:r,pitch:i,speaking_rate:a,volume_gain_db:o},l={"xi-api-key":"u2","Content-Type":"application/json",Authorization:`Bearer ${localStorage.getItem("token")}`};try{console.log(s);const c=(await ee.post(`${In}/api/v1/text-to-speech/generate`,s,{headers:l})).data.data.key;return console.log(c),c}catch(c){throw c.response?(console.error("Error response data:",c.response.data),console.error("Error response status:",c.response.status),console.error("Error response headers:",c.response.headers)):c.request?console.error("Error request data:",c.request):console.error("Error message:",c.message),console.error("Error config:",c.config),c}},Nk=()=>{const[e,t]=N.useState({first_name:"",surname:"",email:"",phone:"",country:"",address:"",password:"",confirm_password:""}),[n,r]=N.useState(null),i=yi(),a=s=>{t({...e,[s.target.name]:s.target.value})},o=async s=>{s.preventDefault();const{first_name:l,surname:c,email:u,phone:d,country:h,address:f,password:m,confirm_password:y}=e;if(m!==y){r("Passwords do not match");return}try{console.log("Form Data:",e);const x=await kk(l,c,u,d,h,f,m);console.log("Response:",x.data),i("/login")}catch(x){console.error("Registration failed",x),x.response&&x.response.status===400?r(x.response.data.detail||"Registration failed"):r("An unexpected error occurred")}};return p.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-purple-400 via-pink-500 to-blue-500",children:p.jsxs("div",{className:"flex flex-col md:flex-row bg-white rounded-lg shadow-md overflow-hidden w-full max-w-7xl",children:[p.jsx("div",{className:"md:w-1/2 flex justify-center items-center bg-gray-100",children:p.jsx("img",{src:"/public/HiDigiH.jpg",alt:"HiDigi Logo",style:{height:"250px",width:"250px"}})}),p.jsxs("div",{className:"md:w-1/2 p-8",children:[p.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Sign Up"}),p.jsxs("form",{onSubmit:o,children:[n&&p.jsx("div",{className:"mb-4 text-center text-red-500",children:n}),p.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"First Name"}),p.jsx("input",{type:"text",name:"first_name",value:e.first_name,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"First Name",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Surname"}),p.jsx("input",{type:"text",name:"surname",value:e.surname,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Surname",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Phone Number"}),p.jsx("input",{type:"text",name:"phone",value:e.phone,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Phone Number",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Country"}),p.jsx("input",{type:"text",name:"country",value:e.country,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Country",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Address"}),p.jsx("input",{type:"text",name:"address",value:e.address,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Address",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"E-Mail"}),p.jsx("input",{type:"email",name:"email",value:e.email,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"E-Mail",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Password"}),p.jsx("input",{type:"password",name:"password",value:e.password,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Password",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Confirm Password"}),p.jsx("input",{type:"password",name:"confirm_password",value:e.confirm_password,onChange:a,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Confirm Password",required:!0})]})]}),p.jsx("button",{type:"submit",className:"w-full bg-blue-500 text-white py-3 px-4 rounded mt-4 hover:bg-blue-600",children:"Register"})]}),p.jsxs("div",{className:"text-center text-gray-500 text-sm mt-6",children:["Already have an account? ",p.jsx("a",{href:"/login",className:"text-blue-500 hover:underline",children:"Sign in"})]})]})]})})};function Pk(e,t){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"}))}const Mk=N.forwardRef(Pk);function Ok(e,t){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01"}))}const jk=N.forwardRef(Ok);function Tk(e,t){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z"}),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}))}const Rk=N.forwardRef(Tk);function Lk(e,t){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"}))}const Ak=N.forwardRef(Lk);function Dk(e,t){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M15 7a2 2 0 012 2m4 0a6 6 0 01-7.743 5.743L11 17H9v2H7v2H4a1 1 0 01-1-1v-2.586a1 1 0 01.293-.707l5.964-5.964A6 6 0 1121 9z"}))}const zk=N.forwardRef(Dk);function Ik(e,t){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"}))}const Fk=N.forwardRef(Ik);function Bk(e,t){return N.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor","aria-hidden":"true",ref:t},e),N.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4 5a1 1 0 011-1h14a1 1 0 011 1v2a1 1 0 01-1 1H5a1 1 0 01-1-1V5zM4 13a1 1 0 011-1h6a1 1 0 011 1v6a1 1 0 01-1 1H5a1 1 0 01-1-1v-6zM16 13a1 1 0 011-1h2a1 1 0 011 1v6a1 1 0 01-1 1h-2a1 1 0 01-1-1v-6z"}))}const Uk=N.forwardRef(Bk);function kl(){return yi(),p.jsxs("div",{className:"bg-gray-800 text-white w-64 p-4 space-y-6",children:[p.jsx("h2",{className:"text-2xl font-bold",children:"HiDigi"}),p.jsx("nav",{children:p.jsxs("ul",{className:"space-y-4",children:[p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(wt,{to:"/ocrdashboard",className:"flex items-center space-x-2",children:[p.jsx(Ak,{className:"h-6 w-6"}),p.jsx("span",{children:"Home"})]})}),p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(wt,{to:"/ocrtemplate",className:"flex items-center space-x-2",children:[p.jsx(Uk,{className:"h-6 w-6"}),p.jsx("span",{children:"Application Template"})]})}),p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(wt,{to:"/erpcredential",className:"flex items-center space-x-2",children:[p.jsx(zk,{className:"h-6 w-6"}),p.jsx("span",{children:"Manage Credentials"})]})}),p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(wt,{to:"/summary",className:"flex items-center space-x-2",children:[p.jsx(Mk,{className:"h-6 w-6"}),p.jsx("span",{children:"Summary"})]})}),p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(wt,{to:"/transaction-detail",className:"flex items-center space-x-2",children:[p.jsx(jk,{className:"h-6 w-6"}),p.jsx("span",{children:"Transaction Detail"})]})}),p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(wt,{to:"/settings",className:"flex items-center space-x-2",children:[p.jsx(Rk,{className:"h-6 w-6"}),p.jsx("span",{children:"Settings"})]})}),p.jsx("li",{className:"hover:bg-gray-700 p-2 rounded-lg",children:p.jsxs(wt,{to:"/logout",className:"flex items-center space-x-2",children:[p.jsx(Fk,{className:"h-6 w-6"}),p.jsx("span",{children:"Logout"})]})})]})})]})}function Qb(){return p.jsxs("div",{className:"flex justify-between items-center mb-4",children:[p.jsx("h1",{className:"text-2xl font-semibold text-gray-700",children:"OCR Dashboard"}),p.jsxs("div",{className:"flex space-x-4",children:[p.jsx("button",{className:"bg-blue-500 text-white py-2 px-4 rounded-lg hover:bg-blue-600 transition duration-200",children:"Contact us"}),p.jsx("button",{className:"bg-green-500 text-white py-2 px-4 rounded-lg hover:bg-green-600 transition duration-200",children:"Get Your Free Trial"})]})]})}const Vk=()=>{const[e,t]=N.useState({MONGO_DETAILS:"",MongoDB_NAME:"",COLLECTION_NAMES:"",SECRET_KEY:"",ALGORITHM:"",ACCESS_TOKEN_EXPIRE_MINUTES:0});N.useEffect(()=>{ee.get("http://localhost:8000/config").then(i=>t(i.data)).catch(i=>console.error("Error fetching config:",i))},[]);const n=i=>{const{name:a,value:o}=i.target;t({...e,[a]:o})},r=i=>{i.preventDefault(),ee.patch("http://localhost:8000/config",e).then(a=>{t(a.data),alert("Config updated successfully!")}).catch(a=>console.error("Error updating config:",a))};return p.jsxs("div",{className:"min-h-screen bg-gray-100 flex",children:[p.jsx(kl,{}),p.jsxs("div",{className:"flex-1 p-6",children:[p.jsx(Qb,{}),p.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg w-full max-w-4xl mx-auto",children:[p.jsx("h2",{className:"text-2xl font-bold mb-6",children:"Manage Credentials"}),p.jsxs("form",{className:"space-y-4",onSubmit:r,children:[p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"ERP details"}),p.jsx("input",{type:"text",name:"MONGO_DETAILS",value:e.MONGO_DETAILS,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"Client ID"}),p.jsx("input",{type:"text",name:"MongoDB_NAME",value:e.MongoDB_NAME,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"Client Secret"}),p.jsx("input",{type:"text",name:"COLLECTION_NAMES",value:e.COLLECTION_NAMES,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"Username"}),p.jsx("input",{type:"text",name:"SECRET_KEY",value:e.SECRET_KEY,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"Password"}),p.jsx("input",{type:"password",name:"ALGORITHM",value:e.ALGORITHM,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"Company Code"}),p.jsx("input",{type:"text",name:"ACCESS_TOKEN_EXPIRE_MINUTES",value:e.ACCESS_TOKEN_EXPIRE_MINUTES,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-gray-700",children:"API Key (Optional)"}),p.jsx("input",{type:"text",name:"API_KEY",value:e.API_KEY,onChange:n,className:"w-full px-4 py-2 border rounded-md"})]}),p.jsx("button",{type:"submit",className:"w-full bg-blue-500 text-white px-4 py-2 rounded-md",children:"Save Credentials"})]})]})]})]})},cc={"en-US":[{name:"en-US-Standard-A",label:"Alex"},{name:"en-US-Standard-B",label:"Bob"},{name:"en-US-Standard-C",label:"Charlie"},{name:"en-US-Standard-D",label:"Dave"}],"en-GB":[{name:"en-GB-Standard-A",label:"David"},{name:"en-GB-Standard-B",label:"Emma"},{name:"en-GB-Standard-C",label:"Geraint"},{name:"en-GB-Standard-D",label:"Brian"}],"id-ID":[{name:"id-ID-Standard-A",label:"Indra"},{name:"id-ID-Standard-B",label:"Kartika"},{name:"id-ID-Standard-C",label:"Kusuma"},{name:"id-ID-Standard-D",label:"Nadia"}]};function Hk(){const[e,t]=N.useState(""),[n,r]=N.useState("en-US"),[i,a]=N.useState("NEUTRAL"),[o,s]=N.useState("en-US-Standard-C"),[l,c]=N.useState(0),[u,d]=N.useState(1),[h,f]=N.useState(0),[m,y]=N.useState(null),x="http://localhost:8000",g=async()=>{try{const b=await Ek(e,n,i,o,l,u,h),w=`${new URL(x).origin}/static/storage/audio/${b}`;console.log(w),y(w)}catch(b){console.error("Text-to-Speech failed:",b)}},v=()=>{y(null)};return p.jsx("div",{className:"flex justify-center items-center min-h-screen bg-gray-100 p-4",children:p.jsxs("div",{className:"w-full max-w-3xl p-6 bg-white rounded-lg shadow-md",children:[p.jsx("h2",{className:"text-3xl font-bold mb-6 text-center text-blue-500",children:"Text-to-Speech AI"}),p.jsx("div",{className:"mb-6",children:p.jsx("textarea",{value:e,onChange:b=>t(b.target.value),className:"w-full h-32 p-3 border rounded",placeholder:"Enter some text here..."})}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 font-bold mb-2",children:"Volume"}),p.jsx("input",{type:"range",min:"-96.0",max:"16.0",step:"0.1",value:h,onChange:b=>f(parseFloat(b.target.value)),className:"w-full"}),p.jsx("span",{className:"block text-right text-gray-600",children:h.toFixed(1)})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 font-bold mb-2",children:"Rate"}),p.jsx("input",{type:"range",min:"0.25",max:"4.0",step:"0.01",value:u,onChange:b=>d(parseFloat(b.target.value)),className:"w-full"}),p.jsx("span",{className:"block text-right text-gray-600",children:u.toFixed(2)})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 font-bold mb-2",children:"Pitch"}),p.jsx("input",{type:"range",min:"-20.0",max:"20.0",step:"0.1",value:l,onChange:b=>c(parseFloat(b.target.value)),className:"w-full"}),p.jsx("span",{className:"block text-right text-gray-600",children:l.toFixed(1)})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 font-bold mb-2",children:"Language"}),p.jsx("select",{value:n,onChange:b=>{r(b.target.value),s(cc[b.target.value][0].name)},className:"w-full p-2 border rounded",children:Object.keys(cc).map(b=>p.jsx("option",{value:b,children:b},b))})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 font-bold mb-2",children:"Voice"}),p.jsx("select",{value:o,onChange:b=>s(b.target.value),className:"w-full p-2 border rounded",children:cc[n].map(b=>p.jsx("option",{value:b.name,children:b.label},b.name))})]}),p.jsx("div",{className:"flex justify-between mt-6",children:p.jsx("button",{onClick:g,className:"w-fit px-4 py-2 bg-blue-500 text-white rounded hover:shadow-lg hover:bg-blue-700 transition duration-200",children:"Generate"})}),m&&p.jsx("div",{className:"mt-6",children:p.jsxs("div",{className:"flex items-center",children:[p.jsx("audio",{controls:!0,src:m,className:"w-full",children:"Your browser does not support the audio element."}),p.jsx("button",{onClick:v,className:"ml-4 px-4 py-2 bg-red-500 text-white rounded hover:bg-red-700 transition duration-200",children:"Delete"})]})})]})})}function Wk(){return p.jsx(Hk,{})}ee.defaults.withCredentials=!0;function $k(){const[e,t]=N.useState({usernameOrEmail:"",password:""}),n=yi(),r=a=>{t({...e,[a.target.name]:a.target.value})},i=async a=>{a.preventDefault();const{usernameOrEmail:o,password:s}=e;try{const l=await _k(o,s);console.log(l.data),localStorage.setItem("token",l.data.access_token),console.log("Token stored in localStorage:",localStorage.getItem("token")),n("/ocrdashboard")}catch(l){console.error("Login failed",l)}};return p.jsx("div",{className:"min-h-screen flex items-center justify-center bg-gradient-to-r from-purple-400 via-pink-500 to-blue-500",children:p.jsxs("div",{className:"flex flex-col md:flex-row bg-white rounded-lg shadow-md overflow-hidden w-full max-w-4xl",children:[p.jsx("div",{className:"md:w-1/2 flex justify-center items-center bg-gray-100",children:p.jsx("img",{src:"/public/HiDigiH.jpg",alt:"HiDigi Logo",style:{height:"250px",width:"250px"}})}),p.jsxs("div",{className:"md:w-1/2 p-8",children:[p.jsx("h2",{className:"text-2xl font-bold mb-6 text-center",children:"Sign in"}),p.jsxs("form",{onSubmit:i,children:[p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Username or Email"}),p.jsx("input",{type:"text",name:"usernameOrEmail",value:e.usernameOrEmail,onChange:r,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Type your username or email",required:!0})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 mb-2",children:"Password"}),p.jsx("input",{type:"password",name:"password",value:e.password,onChange:r,className:"w-full p-3 border border-gray-300 rounded",placeholder:"Type your password",required:!0}),p.jsx("div",{className:"text-right mt-2",children:p.jsx("a",{href:"/forgot-password",className:"text-blue-500 hover:underline",children:"Forgot Password?"})})]}),p.jsx("button",{type:"submit",className:"w-full bg-blue-500 text-white py-3 px-4 rounded mt-4 hover:bg-blue-600",children:"Sign in"})]}),p.jsxs("div",{className:"text-center text-gray-500 text-sm mt-6",children:['By clicking "Sign in", you agree to our ',p.jsx("a",{href:"/terms",className:"text-blue-500 hover:underline",children:"Terms and Conditions"})," and ",p.jsx("a",{href:"/privacy",className:"text-blue-500 hover:underline",children:"Privacy Policy"}),"."]}),p.jsxs("div",{className:"text-center text-gray-500 text-sm mt-4",children:["Don't have an account? ",p.jsx("a",{href:"/register",className:"text-blue-500 hover:underline",children:"Register"})]})]})]})})}function Yk(){return p.jsx($k,{})}class Ui extends Error{}Ui.prototype.name="InvalidTokenError";function qk(e){return decodeURIComponent(atob(e).replace(/(.)/g,(t,n)=>{let r=n.charCodeAt(0).toString(16).toUpperCase();return r.length<2&&(r="0"+r),"%"+r}))}function Kk(e){let t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("base64 string is not of the correct length")}try{return qk(t)}catch{return atob(t)}}function Qk(e,t){if(typeof e!="string")throw new Ui("Invalid token specified: must be a string");t||(t={});const n=t.header===!0?0:1,r=e.split(".")[n];if(typeof r!="string")throw new Ui(`Invalid token specified: missing part #${n+1}`);let i;try{i=Kk(r)}catch(a){throw new Ui(`Invalid token specified: invalid base64 for part #${n+1} (${a.message})`)}try{return JSON.parse(i)}catch(a){throw new Ui(`Invalid token specified: invalid json for part #${n+1} (${a.message})`)}}const Xk=e=>{try{const t=Qk(e),n=Date.now()/1e3;return!(t.exp{try{const b=await Kb();console.log("fetchTemplates Response:",b);const w=b.map(k=>({template_name:k.template_name,variables:Object.values(k.fields||{}),user_id:k.user_id}));t(w)}catch(b){console.error("Error fetching templates:",b)}},d=b=>{const w=b.target.value;if(w==="new")r(null),a(""),s(!1);else{const k=e.find(_=>_.template_name===w);r(k||null),s(!!k)}},h=()=>{const b={...n,variables:[...n.variables||[],""]};r(b)},f=b=>{const w={...n,template_name:b};r(w)},m=(b,w)=>{const k={...n};k.variables[b]=w,r(k)},y=()=>{r({template_name:i,variables:[""]}),s(!0)},x=async()=>{const b=n,w={};b.variables.forEach((k,_)=>{w[`additionalProp${_+1}`]=k});try{console.log(b);const k=e.find(_=>_.template_name===b.template_name);if(k)console.log("existingTemplate",k.template_name),await up(b.template_name,w,b.user_id,!0),c("Template updated successfully!");else{console.log("Creating new template");const _=await up(b.template_name,w,b.user_id,!1);c("Template created successfully!")}u()}catch{c("Handle submit Error creating/updating template.")}},g=async()=>{const b=n.template_name;try{await Sk(b),t(e.filter(w=>w.template_name!==b)),r(null),c("Template deleted successfully!")}catch{c("Error deleting template.")}},v=b=>{const w={...n};w.variables.splice(b,1),r(w)};return N.useEffect(()=>{u()},[]),p.jsxs("div",{className:"min-h-screen bg-gray-100 flex",children:[p.jsx(kl,{}),p.jsx("div",{className:"flex-1 p-6",children:p.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg w-full max-w-4xl mx-auto",children:[p.jsx("h2",{className:"text-xl font-semibold text-gray-700",children:"Application Template"}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Select Template"}),p.jsxs("select",{value:n?n.template_name:"new",onChange:d,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 mb-2",children:[p.jsx("option",{value:"new",children:"Create New Template"}),e.map((b,w)=>p.jsx("option",{value:b.template_name,children:b.template_name},w))]})]}),!n&&p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Template Name"}),p.jsx("input",{type:"text",value:i,onChange:b=>a(b.target.value),className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 mb-2"}),p.jsx("button",{onClick:y,className:"bg-green-500 text-white py-2 px-4 rounded-lg hover:bg-green-600 transition duration-200",children:"Add Template"})]}),n&&p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Template Name"}),p.jsx("input",{type:"text",value:n.template_name,onChange:b=>f(b.target.value),className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 mb-2"}),n.variables.map((b,w)=>p.jsxs("div",{className:"mb-2 flex items-center",children:[p.jsxs("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:["Variable ",w+1]}),p.jsx("input",{type:"text",value:b,onChange:k=>m(w,k.target.value),className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600 mx-2"}),p.jsx("button",{onClick:()=>v(w),className:"bg-red-500 text-white py-2 px-4 rounded-lg hover:bg-red-600 transition duration-200",children:"Delete Variable"})]},w)),p.jsxs("div",{className:"flex items-center",children:[p.jsx("button",{onClick:h,className:"bg-blue-500 text-white py-2 px-4 rounded-lg hover:bg-blue-600 transition duration-200 mr-2",children:"Add Variable"}),p.jsx("button",{onClick:x,className:"bg-green-500 text-white py-2 px-4 rounded-lg hover:bg-green-600 transition duration-200 mr-2",children:"Submit Template"}),p.jsx("button",{onClick:g,className:"bg-red-500 text-white py-2 px-4 rounded-lg hover:bg-red-600 transition duration-200",children:"Delete Template"})]})]}),l&&p.jsx("p",{className:"mt-4 text-gray-700",children:l})]})})]})}function Jk({onSave:e}){const[t,n]=N.useState({sapUrl:"",clientId:"",clientSecret:"",username:"",password:"",companyCode:"",apiKey:""}),r=a=>{const{name:o,value:s}=a.target;n({...t,[o]:s})},i=a=>{a.preventDefault(),e(t)};return p.jsxs("div",{className:"min-h-screen bg-gray-100 flex",children:[p.jsx(kl,{}),p.jsx("div",{className:"flex-1 p-6",children:p.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg w-full max-w-4xl mx-auto",children:[p.jsx("h2",{className:"text-xl font-semibold text-gray-700 mb-4",children:"Manage Credentials"}),p.jsxs("form",{onSubmit:i,children:[p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"SAP System URL"}),p.jsx("input",{type:"text",name:"sapUrl",value:t.sapUrl,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Client ID"}),p.jsx("input",{type:"text",name:"clientId",value:t.clientId,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Client Secret"}),p.jsx("input",{type:"text",name:"clientSecret",value:t.clientSecret,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Username"}),p.jsx("input",{type:"text",name:"username",value:t.username,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Password"}),p.jsx("input",{type:"password",name:"password",value:t.password,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Company Code"}),p.jsx("input",{type:"text",name:"companyCode",value:t.companyCode,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"API Key (Optional)"}),p.jsx("input",{type:"text",name:"apiKey",value:t.apiKey,onChange:r,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})]}),p.jsx("button",{type:"submit",className:"w-full bg-blue-500 text-white py-2 rounded-lg hover:bg-blue-600 transition duration-200",children:"Save Credentials"})]})]})})]})}const Zk=()=>{const[e,t]=N.useState([]),[n,r]=N.useState([]),[i,a]=N.useState("");N.useState({sapUrl:"",clientId:"",clientSecret:"",username:"",password:"",companyCode:"",apiKey:""});const o=async(u=!1)=>{try{const d=await Kb(u);r(d)}catch(d){console.error("Error fetching templates:",d)}},s=u=>{const d=Array.from(u.target.files),h=["application/pdf","image/png","image/jpeg","image/jpg","image/PNG","image/JPEG"],f=d.filter(m=>h.includes(m.type));t(f)},l=u=>{const d=u.target.value;a(d),console.log("selectedTemplate:",d)},c=async u=>{if(u.preventDefault(),e.length===0){alert("Please select files containing PDF, PNG, or JPG files.");return}if(!i){alert("Please select a template.");return}const d=new FormData;e.forEach(h=>d.append("files",h)),d.append("template_name",i);for(let[h,f]of d.entries())console.log(`${h}: ${f.name||f}`);try{const h=await Ck(d);console.log("Response:",h),alert("Files processed successfully!")}catch(h){console.error("Error:",h),alert("There was an error processing the files.")}};return N.useEffect(()=>{o()},[]),p.jsxs("div",{className:"min-h-screen bg-gray-100 flex",children:[p.jsx(kl,{}),p.jsxs("div",{className:"flex-1 p-6",children:[p.jsx(Qb,{}),p.jsxs("div",{className:"bg-white p-6 rounded-lg shadow-lg w-full max-w-4xl mx-auto",children:[p.jsx("h1",{className:"text-2xl font-semibold text-gray-700 mb-4",children:"Automate Data Input & OCR"}),p.jsx("p",{className:"text-gray-600 mb-4",children:"AI services that allow you to extract information from any documents and automate data input to external applications."}),p.jsxs("div",{className:"border-t border-gray-200 pt-4",children:[p.jsx("h2",{className:"text-xl font-semibold text-gray-700 mb-4",children:"Upload PDF Folder"}),p.jsx("div",{className:"mb-4",children:p.jsx("input",{type:"file",onChange:s,multiple:!0,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600"})}),e.length>0&&p.jsxs("div",{className:"mb-4",children:[p.jsx("h3",{className:"text-lg font-semibold text-gray-700",children:"Detected PDF Files:"}),p.jsx("ul",{className:"list-disc pl-5",children:e.map((u,d)=>p.jsx("li",{className:"text-gray-600",children:u.name},d))})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("label",{className:"block text-gray-700 text-sm font-bold mb-2",children:"Select Template"}),p.jsxs("select",{value:i,onChange:l,className:"w-full px-3 py-2 border rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-600",children:[p.jsx("option",{value:"",children:"Select a template"}),n.map((u,d)=>p.jsx("option",{value:u.template_name,children:u.template_name},d))]})]}),p.jsx("button",{onClick:c,className:"w-full bg-blue-500 text-white py-2 rounded-lg hover:bg-blue-600 transition duration-200 mb-4",children:"Process Files"})]})]})]})]})};function e_(){return p.jsx(Zk,{})}function t_(){return p.jsx(Jk,{})}function n_(){return p.jsx(Gk,{})}function r_(){const e=yi();return N.useEffect(()=>{localStorage.removeItem("token"),e("/login")},[e]),null}function dp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function j(e){for(var t=1;te.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1;i--){var a=n[i],o=(a.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(r=a)}return ae.head.insertBefore(t,r),e}}var M_="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function La(){for(var e=12,t="";e-- >0;)t+=M_[Math.random()*62|0];return t}function ki(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function oh(e){return e.classList?ki(e.classList):(e.getAttribute("class")||"").split(" ").filter(function(t){return t})}function sv(e){return"".concat(e).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function O_(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,'="').concat(sv(e[n]),'" ')},"").trim()}function _l(e){return Object.keys(e||{}).reduce(function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")},"")}function sh(e){return e.size!==It.size||e.x!==It.x||e.y!==It.y||e.rotate!==It.rotate||e.flipX||e.flipY}function j_(e){var t=e.transform,n=e.containerWidth,r=e.iconWidth,i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(t.x*32,", ").concat(t.y*32,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)"),l={transform:"".concat(a," ").concat(o," ").concat(s)},c={transform:"translate(".concat(r/2*-1," -256)")};return{outer:i,inner:l,path:c}}function T_(e){var t=e.transform,n=e.width,r=n===void 0?Mu:n,i=e.height,a=i===void 0?Mu:i,o=e.startCentered,s=o===void 0?!1:o,l="";return s&&ev?l+="translate(".concat(t.x/fn-r/2,"em, ").concat(t.y/fn-a/2,"em) "):s?l+="translate(calc(-50% + ".concat(t.x/fn,"em), calc(-50% + ").concat(t.y/fn,"em)) "):l+="translate(".concat(t.x/fn,"em, ").concat(t.y/fn,"em) "),l+="scale(".concat(t.size/fn*(t.flipX?-1:1),", ").concat(t.size/fn*(t.flipY?-1:1),") "),l+="rotate(".concat(t.rotate,"deg) "),l}var R_=`:root, :host { + --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid"; + --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular"; + --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light"; + --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin"; + --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone"; + --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp"; + --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp"; + --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands"; +} + +svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa { + overflow: visible; + box-sizing: content-box; +} + +.svg-inline--fa { + display: var(--fa-display, inline-block); + height: 1em; + overflow: visible; + vertical-align: -0.125em; +} +.svg-inline--fa.fa-2xs { + vertical-align: 0.1em; +} +.svg-inline--fa.fa-xs { + vertical-align: 0em; +} +.svg-inline--fa.fa-sm { + vertical-align: -0.0714285705em; +} +.svg-inline--fa.fa-lg { + vertical-align: -0.2em; +} +.svg-inline--fa.fa-xl { + vertical-align: -0.25em; +} +.svg-inline--fa.fa-2xl { + vertical-align: -0.3125em; +} +.svg-inline--fa.fa-pull-left { + margin-right: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-pull-right { + margin-left: var(--fa-pull-margin, 0.3em); + width: auto; +} +.svg-inline--fa.fa-li { + width: var(--fa-li-width, 2em); + top: 0.25em; +} +.svg-inline--fa.fa-fw { + width: var(--fa-fw-width, 1.25em); +} + +.fa-layers svg.svg-inline--fa { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; +} + +.fa-layers-counter, .fa-layers-text { + display: inline-block; + position: absolute; + text-align: center; +} + +.fa-layers { + display: inline-block; + height: 1em; + position: relative; + text-align: center; + vertical-align: -0.125em; + width: 1em; +} +.fa-layers svg.svg-inline--fa { + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-text { + left: 50%; + top: 50%; + -webkit-transform: translate(-50%, -50%); + transform: translate(-50%, -50%); + -webkit-transform-origin: center center; + transform-origin: center center; +} + +.fa-layers-counter { + background-color: var(--fa-counter-background-color, #ff253a); + border-radius: var(--fa-counter-border-radius, 1em); + box-sizing: border-box; + color: var(--fa-inverse, #fff); + line-height: var(--fa-counter-line-height, 1); + max-width: var(--fa-counter-max-width, 5em); + min-width: var(--fa-counter-min-width, 1.5em); + overflow: hidden; + padding: var(--fa-counter-padding, 0.25em 0.5em); + right: var(--fa-right, 0); + text-overflow: ellipsis; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-counter-scale, 0.25)); + transform: scale(var(--fa-counter-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-bottom-right { + bottom: var(--fa-bottom, 0); + right: var(--fa-right, 0); + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom right; + transform-origin: bottom right; +} + +.fa-layers-bottom-left { + bottom: var(--fa-bottom, 0); + left: var(--fa-left, 0); + right: auto; + top: auto; + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: bottom left; + transform-origin: bottom left; +} + +.fa-layers-top-right { + top: var(--fa-top, 0); + right: var(--fa-right, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top right; + transform-origin: top right; +} + +.fa-layers-top-left { + left: var(--fa-left, 0); + right: auto; + top: var(--fa-top, 0); + -webkit-transform: scale(var(--fa-layers-scale, 0.25)); + transform: scale(var(--fa-layers-scale, 0.25)); + -webkit-transform-origin: top left; + transform-origin: top left; +} + +.fa-1x { + font-size: 1em; +} + +.fa-2x { + font-size: 2em; +} + +.fa-3x { + font-size: 3em; +} + +.fa-4x { + font-size: 4em; +} + +.fa-5x { + font-size: 5em; +} + +.fa-6x { + font-size: 6em; +} + +.fa-7x { + font-size: 7em; +} + +.fa-8x { + font-size: 8em; +} + +.fa-9x { + font-size: 9em; +} + +.fa-10x { + font-size: 10em; +} + +.fa-2xs { + font-size: 0.625em; + line-height: 0.1em; + vertical-align: 0.225em; +} + +.fa-xs { + font-size: 0.75em; + line-height: 0.0833333337em; + vertical-align: 0.125em; +} + +.fa-sm { + font-size: 0.875em; + line-height: 0.0714285718em; + vertical-align: 0.0535714295em; +} + +.fa-lg { + font-size: 1.25em; + line-height: 0.05em; + vertical-align: -0.075em; +} + +.fa-xl { + font-size: 1.5em; + line-height: 0.0416666682em; + vertical-align: -0.125em; +} + +.fa-2xl { + font-size: 2em; + line-height: 0.03125em; + vertical-align: -0.1875em; +} + +.fa-fw { + text-align: center; + width: 1.25em; +} + +.fa-ul { + list-style-type: none; + margin-left: var(--fa-li-margin, 2.5em); + padding-left: 0; +} +.fa-ul > li { + position: relative; +} + +.fa-li { + left: calc(var(--fa-li-width, 2em) * -1); + position: absolute; + text-align: center; + width: var(--fa-li-width, 2em); + line-height: inherit; +} + +.fa-border { + border-color: var(--fa-border-color, #eee); + border-radius: var(--fa-border-radius, 0.1em); + border-style: var(--fa-border-style, solid); + border-width: var(--fa-border-width, 0.08em); + padding: var(--fa-border-padding, 0.2em 0.25em 0.15em); +} + +.fa-pull-left { + float: left; + margin-right: var(--fa-pull-margin, 0.3em); +} + +.fa-pull-right { + float: right; + margin-left: var(--fa-pull-margin, 0.3em); +} + +.fa-beat { + -webkit-animation-name: fa-beat; + animation-name: fa-beat; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-bounce { + -webkit-animation-name: fa-bounce; + animation-name: fa-bounce; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1)); +} + +.fa-fade { + -webkit-animation-name: fa-fade; + animation-name: fa-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-beat-fade { + -webkit-animation-name: fa-beat-fade; + animation-name: fa-beat-fade; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); + animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1)); +} + +.fa-flip { + -webkit-animation-name: fa-flip; + animation-name: fa-flip; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out); + animation-timing-function: var(--fa-animation-timing, ease-in-out); +} + +.fa-shake { + -webkit-animation-name: fa-shake; + animation-name: fa-shake; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-delay: var(--fa-animation-delay, 0s); + animation-delay: var(--fa-animation-delay, 0s); + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 2s); + animation-duration: var(--fa-animation-duration, 2s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, linear); + animation-timing-function: var(--fa-animation-timing, linear); +} + +.fa-spin-reverse { + --fa-animation-direction: reverse; +} + +.fa-pulse, +.fa-spin-pulse { + -webkit-animation-name: fa-spin; + animation-name: fa-spin; + -webkit-animation-direction: var(--fa-animation-direction, normal); + animation-direction: var(--fa-animation-direction, normal); + -webkit-animation-duration: var(--fa-animation-duration, 1s); + animation-duration: var(--fa-animation-duration, 1s); + -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite); + animation-iteration-count: var(--fa-animation-iteration-count, infinite); + -webkit-animation-timing-function: var(--fa-animation-timing, steps(8)); + animation-timing-function: var(--fa-animation-timing, steps(8)); +} + +@media (prefers-reduced-motion: reduce) { + .fa-beat, +.fa-bounce, +.fa-fade, +.fa-beat-fade, +.fa-flip, +.fa-pulse, +.fa-shake, +.fa-spin, +.fa-spin-pulse { + -webkit-animation-delay: -1ms; + animation-delay: -1ms; + -webkit-animation-duration: 1ms; + animation-duration: 1ms; + -webkit-animation-iteration-count: 1; + animation-iteration-count: 1; + -webkit-transition-delay: 0s; + transition-delay: 0s; + -webkit-transition-duration: 0s; + transition-duration: 0s; + } +} +@-webkit-keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@keyframes fa-beat { + 0%, 90% { + -webkit-transform: scale(1); + transform: scale(1); + } + 45% { + -webkit-transform: scale(var(--fa-beat-scale, 1.25)); + transform: scale(var(--fa-beat-scale, 1.25)); + } +} +@-webkit-keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@keyframes fa-bounce { + 0% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 10% { + -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0); + } + 30% { + -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em)); + } + 50% { + -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0); + } + 57% { + -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em)); + } + 64% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } + 100% { + -webkit-transform: scale(1, 1) translateY(0); + transform: scale(1, 1) translateY(0); + } +} +@-webkit-keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@keyframes fa-fade { + 50% { + opacity: var(--fa-fade-opacity, 0.4); + } +} +@-webkit-keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@keyframes fa-beat-fade { + 0%, 100% { + opacity: var(--fa-beat-fade-opacity, 0.4); + -webkit-transform: scale(1); + transform: scale(1); + } + 50% { + opacity: 1; + -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125)); + transform: scale(var(--fa-beat-fade-scale, 1.125)); + } +} +@-webkit-keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@keyframes fa-flip { + 50% { + -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg)); + } +} +@-webkit-keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@keyframes fa-shake { + 0% { + -webkit-transform: rotate(-15deg); + transform: rotate(-15deg); + } + 4% { + -webkit-transform: rotate(15deg); + transform: rotate(15deg); + } + 8%, 24% { + -webkit-transform: rotate(-18deg); + transform: rotate(-18deg); + } + 12%, 28% { + -webkit-transform: rotate(18deg); + transform: rotate(18deg); + } + 16% { + -webkit-transform: rotate(-22deg); + transform: rotate(-22deg); + } + 20% { + -webkit-transform: rotate(22deg); + transform: rotate(22deg); + } + 32% { + -webkit-transform: rotate(-12deg); + transform: rotate(-12deg); + } + 36% { + -webkit-transform: rotate(12deg); + transform: rotate(12deg); + } + 40%, 100% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } +} +@-webkit-keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +@keyframes fa-spin { + 0% { + -webkit-transform: rotate(0deg); + transform: rotate(0deg); + } + 100% { + -webkit-transform: rotate(360deg); + transform: rotate(360deg); + } +} +.fa-rotate-90 { + -webkit-transform: rotate(90deg); + transform: rotate(90deg); +} + +.fa-rotate-180 { + -webkit-transform: rotate(180deg); + transform: rotate(180deg); +} + +.fa-rotate-270 { + -webkit-transform: rotate(270deg); + transform: rotate(270deg); +} + +.fa-flip-horizontal { + -webkit-transform: scale(-1, 1); + transform: scale(-1, 1); +} + +.fa-flip-vertical { + -webkit-transform: scale(1, -1); + transform: scale(1, -1); +} + +.fa-flip-both, +.fa-flip-horizontal.fa-flip-vertical { + -webkit-transform: scale(-1, -1); + transform: scale(-1, -1); +} + +.fa-rotate-by { + -webkit-transform: rotate(var(--fa-rotate-angle, 0)); + transform: rotate(var(--fa-rotate-angle, 0)); +} + +.fa-stack { + display: inline-block; + vertical-align: middle; + height: 2em; + position: relative; + width: 2.5em; +} + +.fa-stack-1x, +.fa-stack-2x { + bottom: 0; + left: 0; + margin: auto; + position: absolute; + right: 0; + top: 0; + z-index: var(--fa-stack-z-index, auto); +} + +.svg-inline--fa.fa-stack-1x { + height: 1em; + width: 1.25em; +} +.svg-inline--fa.fa-stack-2x { + height: 2em; + width: 2.5em; +} + +.fa-inverse { + color: var(--fa-inverse, #fff); +} + +.sr-only, +.fa-sr-only { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.sr-only-focusable:not(:focus), +.fa-sr-only-focusable:not(:focus) { + position: absolute; + width: 1px; + height: 1px; + padding: 0; + margin: -1px; + overflow: hidden; + clip: rect(0, 0, 0, 0); + white-space: nowrap; + border-width: 0; +} + +.svg-inline--fa .fa-primary { + fill: var(--fa-primary-color, currentColor); + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa .fa-secondary { + fill: var(--fa-secondary-color, currentColor); + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-primary { + opacity: var(--fa-secondary-opacity, 0.4); +} + +.svg-inline--fa.fa-swap-opacity .fa-secondary { + opacity: var(--fa-primary-opacity, 1); +} + +.svg-inline--fa mask .fa-primary, +.svg-inline--fa mask .fa-secondary { + fill: black; +} + +.fad.fa-inverse, +.fa-duotone.fa-inverse { + color: var(--fa-inverse, #fff); +}`;function lv(){var e=tv,t=nv,n=A.cssPrefix,r=A.replacementClass,i=R_;if(n!==e||r!==t){var a=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");i=i.replace(a,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(r))}return i}var bp=!1;function uc(){A.autoAddCss&&!bp&&(P_(lv()),bp=!0)}var L_={mixout:function(){return{dom:{css:lv,insertCss:uc}}},hooks:function(){return{beforeDOMElementCreation:function(){uc()},beforeI2svg:function(){uc()}}}},sn=Fn||{};sn[on]||(sn[on]={});sn[on].styles||(sn[on].styles={});sn[on].hooks||(sn[on].hooks={});sn[on].shims||(sn[on].shims=[]);var St=sn[on],cv=[],A_=function e(){ae.removeEventListener("DOMContentLoaded",e),Vs=1,cv.map(function(t){return t()})},Vs=!1;un&&(Vs=(ae.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ae.readyState),Vs||ae.addEventListener("DOMContentLoaded",A_));function D_(e){un&&(Vs?setTimeout(e,0):cv.push(e))}function Za(e){var t=e.tag,n=e.attributes,r=n===void 0?{}:n,i=e.children,a=i===void 0?[]:i;return typeof e=="string"?sv(e):"<".concat(t," ").concat(O_(r),">").concat(a.map(Za).join(""),"")}function vp(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var dc=function(e,t,n,r){var i=Object.keys(e),a=i.length,o=t,s,l,c;for(n===void 0?(s=1,c=e[i[0]]):(s=0,c=n);s=55296&&i<=56319&&n=55296&&r<=56319&&n>t+1&&(i=e.charCodeAt(t+1),i>=56320&&i<=57343)?(r-55296)*1024+i-56320+65536:r}function yp(e){return Object.keys(e).reduce(function(t,n){var r=e[n],i=!!r.icon;return i?t[r.iconName]=r.icon:t[n]=r,t},{})}function ju(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.skipHooks,i=r===void 0?!1:r,a=yp(t);typeof St.hooks.addPack=="function"&&!i?St.hooks.addPack(e,yp(t)):St.styles[e]=j(j({},St.styles[e]||{}),a),e==="fas"&&ju("fa",t)}var No,Po,Mo,Yr=St.styles,F_=St.shims,B_=(No={},Se(No,re,Object.values(Ta[re])),Se(No,pe,Object.values(Ta[pe])),No),lh=null,dv={},hv={},fv={},pv={},mv={},U_=(Po={},Se(Po,re,Object.keys(Oa[re])),Se(Po,pe,Object.keys(Oa[pe])),Po);function V_(e){return~__.indexOf(e)}function H_(e,t){var n=t.split("-"),r=n[0],i=n.slice(1).join("-");return r===e&&i!==""&&!V_(i)?i:null}var gv=function(){var e=function(r){return dc(Yr,function(i,a,o){return i[o]=dc(a,r,{}),i},{})};dv=e(function(r,i,a){if(i[3]&&(r[i[3]]=a),i[2]){var o=i[2].filter(function(s){return typeof s=="number"});o.forEach(function(s){r[s.toString(16)]=a})}return r}),hv=e(function(r,i,a){if(r[a]=a,i[2]){var o=i[2].filter(function(s){return typeof s=="string"});o.forEach(function(s){r[s]=a})}return r}),mv=e(function(r,i,a){var o=i[2];return r[a]=a,o.forEach(function(s){r[s]=a}),r});var t="far"in Yr||A.autoFetchSvg,n=dc(F_,function(r,i){var a=i[0],o=i[1],s=i[2];return o==="far"&&!t&&(o="fas"),typeof a=="string"&&(r.names[a]={prefix:o,iconName:s}),typeof a=="number"&&(r.unicodes[a.toString(16)]={prefix:o,iconName:s}),r},{names:{},unicodes:{}});fv=n.names,pv=n.unicodes,lh=Sl(A.styleDefault,{family:A.familyDefault})};N_(function(e){lh=Sl(e.styleDefault,{family:A.familyDefault})});gv();function ch(e,t){return(dv[e]||{})[t]}function W_(e,t){return(hv[e]||{})[t]}function lr(e,t){return(mv[e]||{})[t]}function bv(e){return fv[e]||{prefix:null,iconName:null}}function $_(e){var t=pv[e],n=ch("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Bn(){return lh}var uh=function(){return{prefix:null,iconName:null,rest:[]}};function Sl(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.family,r=n===void 0?re:n,i=Oa[r][e],a=ja[r][e]||ja[r][i],o=e in St.styles?e:null;return a||o||null}var xp=(Mo={},Se(Mo,re,Object.keys(Ta[re])),Se(Mo,pe,Object.keys(Ta[pe])),Mo);function Cl(e){var t,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=n.skipLookups,i=r===void 0?!1:r,a=(t={},Se(t,re,"".concat(A.cssPrefix,"-").concat(re)),Se(t,pe,"".concat(A.cssPrefix,"-").concat(pe)),t),o=null,s=re;(e.includes(a[re])||e.some(function(c){return xp[re].includes(c)}))&&(s=re),(e.includes(a[pe])||e.some(function(c){return xp[pe].includes(c)}))&&(s=pe);var l=e.reduce(function(c,u){var d=H_(A.cssPrefix,u);if(Yr[u]?(u=B_[s].includes(u)?b_[s][u]:u,o=u,c.prefix=u):U_[s].indexOf(u)>-1?(o=u,c.prefix=Sl(u,{family:s})):d?c.iconName=d:u!==A.replacementClass&&u!==a[re]&&u!==a[pe]&&c.rest.push(u),!i&&c.prefix&&c.iconName){var h=o==="fa"?bv(c.iconName):{},f=lr(c.prefix,c.iconName);h.prefix&&(o=null),c.iconName=h.iconName||f||c.iconName,c.prefix=h.prefix||c.prefix,c.prefix==="far"&&!Yr.far&&Yr.fas&&!A.autoFetchSvg&&(c.prefix="fas")}return c},uh());return(e.includes("fa-brands")||e.includes("fab"))&&(l.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(l.prefix="fad"),!l.prefix&&s===pe&&(Yr.fass||A.autoFetchSvg)&&(l.prefix="fass",l.iconName=lr(l.prefix,l.iconName)||l.iconName),(l.prefix==="fa"||o==="fa")&&(l.prefix=Bn()||"fas"),l}var Y_=function(){function e(){i_(this,e),this.definitions={}}return o_(e,[{key:"add",value:function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i0&&c.forEach(function(u){typeof u=="string"&&(t[o][u]=l)}),t[o][s]=l}),t}}]),e}(),wp=[],qr={},ti={},q_=Object.keys(ti);function K_(e,t){var n=t.mixoutsTo;return wp=e,qr={},Object.keys(ti).forEach(function(r){q_.indexOf(r)===-1&&delete ti[r]}),wp.forEach(function(r){var i=r.mixout?r.mixout():{};if(Object.keys(i).forEach(function(o){typeof i[o]=="function"&&(n[o]=i[o]),Us(i[o])==="object"&&Object.keys(i[o]).forEach(function(s){n[o]||(n[o]={}),n[o][s]=i[o][s]})}),r.hooks){var a=r.hooks();Object.keys(a).forEach(function(o){qr[o]||(qr[o]=[]),qr[o].push(a[o])})}r.provides&&r.provides(ti)}),n}function Tu(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i1?t-1:0),r=1;r0&&arguments[0]!==void 0?arguments[0]:{};return un?(Sr("beforeI2svg",e),ln("pseudoElements2svg",e),ln("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot;A.autoReplaceSvg===!1&&(A.autoReplaceSvg=!0),A.observeMutations=!0,D_(function(){J_({autoReplaceSvgRoot:t}),Sr("watch",e)})}},G_={icon:function(e){if(e===null)return null;if(Us(e)==="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:lr(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){var t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=Sl(e[0]);return{prefix:n,iconName:lr(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(A.cssPrefix,"-"))>-1||e.match(v_))){var r=Cl(e.split(" "),{skipLookups:!0});return{prefix:r.prefix||Bn(),iconName:lr(r.prefix,r.iconName)||r.iconName}}if(typeof e=="string"){var i=Bn();return{prefix:i,iconName:lr(i,e)||e}}}},lt={noAuto:Q_,config:A,dom:X_,parse:G_,library:vv,findIconDefinition:Ru,toHtml:Za},J_=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.autoReplaceSvgRoot,n=t===void 0?ae:t;(Object.keys(St.styles).length>0||A.autoFetchSvg)&&un&&A.autoReplaceSvg&<.dom.i2svg({node:n})};function El(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(function(n){return Za(n)})}}),Object.defineProperty(e,"node",{get:function(){if(un){var n=ae.createElement("div");return n.innerHTML=e.html,n.children}}}),e}function Z_(e){var t=e.children,n=e.main,r=e.mask,i=e.attributes,a=e.styles,o=e.transform;if(sh(o)&&n.found&&!r.found){var s=n.width,l=n.height,c={x:s/l/2,y:.5};i.style=_l(j(j({},a),{},{"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")}))}return[{tag:"svg",attributes:i,children:t}]}function eS(e){var t=e.prefix,n=e.iconName,r=e.children,i=e.attributes,a=e.symbol,o=a===!0?"".concat(t,"-").concat(A.cssPrefix,"-").concat(n):a;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:j(j({},i),{},{id:o}),children:r}]}]}function dh(e){var t=e.icons,n=t.main,r=t.mask,i=e.prefix,a=e.iconName,o=e.transform,s=e.symbol,l=e.title,c=e.maskId,u=e.titleId,d=e.extra,h=e.watchable,f=h===void 0?!1:h,m=r.found?r:n,y=m.width,x=m.height,g=i==="fak",v=[A.replacementClass,a?"".concat(A.cssPrefix,"-").concat(a):""].filter(function(L){return d.classes.indexOf(L)===-1}).filter(function(L){return L!==""||!!L}).concat(d.classes).join(" "),b={children:[],attributes:j(j({},d.attributes),{},{"data-prefix":i,"data-icon":a,class:v,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(y," ").concat(x)})},w=g&&!~d.classes.indexOf("fa-fw")?{width:"".concat(y/x*16*.0625,"em")}:{};f&&(b.attributes[_r]=""),l&&(b.children.push({tag:"title",attributes:{id:b.attributes["aria-labelledby"]||"title-".concat(u||La())},children:[l]}),delete b.attributes.title);var k=j(j({},b),{},{prefix:i,iconName:a,main:n,mask:r,maskId:c,transform:o,symbol:s,styles:j(j({},w),d.styles)}),_=r.found&&n.found?ln("generateAbstractMask",k)||{children:[],attributes:{}}:ln("generateAbstractIcon",k)||{children:[],attributes:{}},C=_.children,E=_.attributes;return k.children=C,k.attributes=E,s?eS(k):Z_(k)}function kp(e){var t=e.content,n=e.width,r=e.height,i=e.transform,a=e.title,o=e.extra,s=e.watchable,l=s===void 0?!1:s,c=j(j(j({},o.attributes),a?{title:a}:{}),{},{class:o.classes.join(" ")});l&&(c[_r]="");var u=j({},o.styles);sh(i)&&(u.transform=T_({transform:i,startCentered:!0,width:n,height:r}),u["-webkit-transform"]=u.transform);var d=_l(u);d.length>0&&(c.style=d);var h=[];return h.push({tag:"span",attributes:c,children:[t]}),a&&h.push({tag:"span",attributes:{class:"sr-only"},children:[a]}),h}function tS(e){var t=e.content,n=e.title,r=e.extra,i=j(j(j({},r.attributes),n?{title:n}:{}),{},{class:r.classes.join(" ")}),a=_l(r.styles);a.length>0&&(i.style=a);var o=[];return o.push({tag:"span",attributes:i,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}var hc=St.styles;function Lu(e){var t=e[0],n=e[1],r=e.slice(4),i=th(r,1),a=i[0],o=null;return Array.isArray(a)?o={tag:"g",attributes:{class:"".concat(A.cssPrefix,"-").concat(sr.GROUP)},children:[{tag:"path",attributes:{class:"".concat(A.cssPrefix,"-").concat(sr.SECONDARY),fill:"currentColor",d:a[0]}},{tag:"path",attributes:{class:"".concat(A.cssPrefix,"-").concat(sr.PRIMARY),fill:"currentColor",d:a[1]}}]}:o={tag:"path",attributes:{fill:"currentColor",d:a}},{found:!0,width:t,height:n,icon:o}}var nS={found:!1,width:512,height:512};function rS(e,t){!rv&&!A.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function Au(e,t){var n=t;return t==="fa"&&A.styleDefault!==null&&(t=Bn()),new Promise(function(r,i){if(ln("missingIconAbstract"),n==="fa"){var a=bv(e)||{};e=a.iconName||e,t=a.prefix||t}if(e&&t&&hc[t]&&hc[t][e]){var o=hc[t][e];return r(Lu(o))}rS(e,t),r(j(j({},nS),{},{icon:A.showMissingIcons&&e?ln("missingIconAbstract")||{}:{}}))})}var _p=function(){},Du=A.measurePerformance&&wo&&wo.mark&&wo.measure?wo:{mark:_p,measure:_p},Vi='FA "6.5.2"',iS=function(e){return Du.mark("".concat(Vi," ").concat(e," begins")),function(){return yv(e)}},yv=function(e){Du.mark("".concat(Vi," ").concat(e," ends")),Du.measure("".concat(Vi," ").concat(e),"".concat(Vi," ").concat(e," begins"),"".concat(Vi," ").concat(e," ends"))},hh={begin:iS,end:yv},as=function(){};function Sp(e){var t=e.getAttribute?e.getAttribute(_r):null;return typeof t=="string"}function aS(e){var t=e.getAttribute?e.getAttribute(rh):null,n=e.getAttribute?e.getAttribute(ih):null;return t&&n}function oS(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(A.replacementClass)}function sS(){if(A.autoReplaceSvg===!0)return os.replace;var e=os[A.autoReplaceSvg];return e||os.replace}function lS(e){return ae.createElementNS("http://www.w3.org/2000/svg",e)}function cS(e){return ae.createElement(e)}function xv(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.ceFn,r=n===void 0?e.tag==="svg"?lS:cS:n;if(typeof e=="string")return ae.createTextNode(e);var i=r(e.tag);Object.keys(e.attributes||[]).forEach(function(o){i.setAttribute(o,e.attributes[o])});var a=e.children||[];return a.forEach(function(o){i.appendChild(xv(o,{ceFn:r}))}),i}function uS(e){var t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}var os={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach(function(r){t.parentNode.insertBefore(xv(r),t)}),t.getAttribute(_r)===null&&A.keepOriginalSource){var n=ae.createComment(uS(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~oh(t).indexOf(A.replacementClass))return os.replace(e);var r=new RegExp("".concat(A.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var i=n[0].attributes.class.split(" ").reduce(function(o,s){return s===A.replacementClass||s.match(r)?o.toSvg.push(s):o.toNode.push(s),o},{toNode:[],toSvg:[]});n[0].attributes.class=i.toSvg.join(" "),i.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",i.toNode.join(" "))}var a=n.map(function(o){return Za(o)}).join(` +`);t.setAttribute(_r,""),t.innerHTML=a}};function Cp(e){e()}function wv(e,t){var n=typeof t=="function"?t:as;if(e.length===0)n();else{var r=Cp;A.mutateApproach===m_&&(r=Fn.requestAnimationFrame||Cp),r(function(){var i=sS(),a=hh.begin("mutate");e.map(i),a(),n()})}}var fh=!1;function kv(){fh=!0}function zu(){fh=!1}var Hs=null;function Ep(e){if(mp&&A.observeMutations){var t=e.treeCallback,n=t===void 0?as:t,r=e.nodeCallback,i=r===void 0?as:r,a=e.pseudoElementsCallback,o=a===void 0?as:a,s=e.observeMutationsRoot,l=s===void 0?ae:s;Hs=new mp(function(c){if(!fh){var u=Bn();ki(c).forEach(function(d){if(d.type==="childList"&&d.addedNodes.length>0&&!Sp(d.addedNodes[0])&&(A.searchPseudoElements&&o(d.target),n(d.target)),d.type==="attributes"&&d.target.parentNode&&A.searchPseudoElements&&o(d.target.parentNode),d.type==="attributes"&&Sp(d.target)&&~k_.indexOf(d.attributeName))if(d.attributeName==="class"&&aS(d.target)){var h=Cl(oh(d.target)),f=h.prefix,m=h.iconName;d.target.setAttribute(rh,f||u),m&&d.target.setAttribute(ih,m)}else oS(d.target)&&i(d.target)})}}),un&&Hs.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function dS(){Hs&&Hs.disconnect()}function hS(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce(function(r,i){var a=i.split(":"),o=a[0],s=a.slice(1);return o&&s.length>0&&(r[o]=s.join(":").trim()),r},{})),n}function fS(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),r=e.innerText!==void 0?e.innerText.trim():"",i=Cl(oh(e));return i.prefix||(i.prefix=Bn()),t&&n&&(i.prefix=t,i.iconName=n),i.iconName&&i.prefix||(i.prefix&&r.length>0&&(i.iconName=W_(i.prefix,e.innerText)||ch(i.prefix,uv(e.innerText))),!i.iconName&&A.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(i.iconName=e.firstChild.data)),i}function pS(e){var t=ki(e.attributes).reduce(function(i,a){return i.name!=="class"&&i.name!=="style"&&(i[a.name]=a.value),i},{}),n=e.getAttribute("title"),r=e.getAttribute("data-fa-title-id");return A.autoA11y&&(n?t["aria-labelledby"]="".concat(A.replacementClass,"-title-").concat(r||La()):(t["aria-hidden"]="true",t.focusable="false")),t}function mS(){return{iconName:null,title:null,titleId:null,prefix:null,transform:It,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Np(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0},n=fS(e),r=n.iconName,i=n.prefix,a=n.rest,o=pS(e),s=Tu("parseNodeAttributes",{},e),l=t.styleParser?hS(e):[];return j({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:i,transform:It,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:a,styles:l,attributes:o}},s)}var gS=St.styles;function _v(e){var t=A.autoReplaceSvg==="nest"?Np(e,{styleParser:!1}):Np(e);return~t.extra.classes.indexOf(iv)?ln("generateLayersText",e,t):ln("generateSvgReplacementMutation",e,t)}var Un=new Set;ah.map(function(e){Un.add("fa-".concat(e))});Object.keys(Oa[re]).map(Un.add.bind(Un));Object.keys(Oa[pe]).map(Un.add.bind(Un));Un=Ga(Un);function Pp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!un)return Promise.resolve();var n=ae.documentElement.classList,r=function(u){return n.add("".concat(gp,"-").concat(u))},i=function(u){return n.remove("".concat(gp,"-").concat(u))},a=A.autoFetchSvg?Un:ah.map(function(u){return"fa-".concat(u)}).concat(Object.keys(gS));a.includes("fa")||a.push("fa");var o=[".".concat(iv,":not([").concat(_r,"])")].concat(a.map(function(u){return".".concat(u,":not([").concat(_r,"])")})).join(", ");if(o.length===0)return Promise.resolve();var s=[];try{s=ki(e.querySelectorAll(o))}catch{}if(s.length>0)r("pending"),i("complete");else return Promise.resolve();var l=hh.begin("onTree"),c=s.reduce(function(u,d){try{var h=_v(d);h&&u.push(h)}catch(f){rv||f.name==="MissingIcon"&&console.error(f)}return u},[]);return new Promise(function(u,d){Promise.all(c).then(function(h){wv(h,function(){r("active"),r("complete"),i("pending"),typeof t=="function"&&t(),l(),u()})}).catch(function(h){l(),d(h)})})}function bS(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;_v(e).then(function(n){n&&wv([n],t)})}function vS(e){return function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=(t||{}).icon?t:Ru(t||{}),i=n.mask;return i&&(i=(i||{}).icon?i:Ru(i||{})),e(r,j(j({},n),{},{mask:i}))}}var yS=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?It:n,i=t.symbol,a=i===void 0?!1:i,o=t.mask,s=o===void 0?null:o,l=t.maskId,c=l===void 0?null:l,u=t.title,d=u===void 0?null:u,h=t.titleId,f=h===void 0?null:h,m=t.classes,y=m===void 0?[]:m,x=t.attributes,g=x===void 0?{}:x,v=t.styles,b=v===void 0?{}:v;if(e){var w=e.prefix,k=e.iconName,_=e.icon;return El(j({type:"icon"},e),function(){return Sr("beforeDOMElementCreation",{iconDefinition:e,params:t}),A.autoA11y&&(d?g["aria-labelledby"]="".concat(A.replacementClass,"-title-").concat(f||La()):(g["aria-hidden"]="true",g.focusable="false")),dh({icons:{main:Lu(_),mask:s?Lu(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:w,iconName:k,transform:j(j({},It),r),symbol:a,title:d,maskId:c,titleId:f,extra:{attributes:g,styles:b,classes:y}})})}},xS={mixout:function(){return{icon:vS(yS)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=Pp,e.nodeCallback=bS,e}}},provides:function(e){e.i2svg=function(t){var n=t.node,r=n===void 0?ae:n,i=t.callback,a=i===void 0?function(){}:i;return Pp(r,a)},e.generateSvgReplacementMutation=function(t,n){var r=n.iconName,i=n.title,a=n.titleId,o=n.prefix,s=n.transform,l=n.symbol,c=n.mask,u=n.maskId,d=n.extra;return new Promise(function(h,f){Promise.all([Au(r,o),c.iconName?Au(c.iconName,c.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(m){var y=th(m,2),x=y[0],g=y[1];h([t,dh({icons:{main:x,mask:g},prefix:o,iconName:r,transform:s,symbol:l,maskId:u,title:i,titleId:a,extra:d,watchable:!0})])}).catch(f)})},e.generateAbstractIcon=function(t){var n=t.children,r=t.attributes,i=t.main,a=t.transform,o=t.styles,s=_l(o);s.length>0&&(r.style=s);var l;return sh(a)&&(l=ln("generateAbstractTransformGrouping",{main:i,transform:a,containerWidth:i.width,iconWidth:i.width})),n.push(l||i.icon),{children:n,attributes:r}}}},wS={mixout:function(){return{layer:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.classes,r=n===void 0?[]:n;return El({type:"layer"},function(){Sr("beforeDOMElementCreation",{assembler:e,params:t});var i=[];return e(function(a){Array.isArray(a)?a.map(function(o){i=i.concat(o.abstract)}):i=i.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(A.cssPrefix,"-layers")].concat(Ga(r)).join(" ")},children:i}]})}}}},kS={mixout:function(){return{counter:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.title,r=n===void 0?null:n,i=t.classes,a=i===void 0?[]:i,o=t.attributes,s=o===void 0?{}:o,l=t.styles,c=l===void 0?{}:l;return El({type:"counter",content:e},function(){return Sr("beforeDOMElementCreation",{content:e,params:t}),tS({content:e.toString(),title:r,extra:{attributes:s,styles:c,classes:["".concat(A.cssPrefix,"-layers-counter")].concat(Ga(a))}})})}}}},_S={mixout:function(){return{text:function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.transform,r=n===void 0?It:n,i=t.title,a=i===void 0?null:i,o=t.classes,s=o===void 0?[]:o,l=t.attributes,c=l===void 0?{}:l,u=t.styles,d=u===void 0?{}:u;return El({type:"text",content:e},function(){return Sr("beforeDOMElementCreation",{content:e,params:t}),kp({content:e,transform:j(j({},It),r),title:a,extra:{attributes:c,styles:d,classes:["".concat(A.cssPrefix,"-layers-text")].concat(Ga(s))}})})}}},provides:function(e){e.generateLayersText=function(t,n){var r=n.title,i=n.transform,a=n.extra,o=null,s=null;if(ev){var l=parseInt(getComputedStyle(t).fontSize,10),c=t.getBoundingClientRect();o=c.width/l,s=c.height/l}return A.autoA11y&&!r&&(a.attributes["aria-hidden"]="true"),Promise.resolve([t,kp({content:t.innerHTML,width:o,height:s,transform:i,title:r,extra:a,watchable:!0})])}}},SS=new RegExp('"',"ug"),Mp=[1105920,1112319];function CS(e){var t=e.replace(SS,""),n=I_(t,0),r=n>=Mp[0]&&n<=Mp[1],i=t.length===2?t[0]===t[1]:!1;return{value:uv(i?t[0]:t),isSecondary:r||i}}function Op(e,t){var n="".concat(p_).concat(t.replace(":","-"));return new Promise(function(r,i){if(e.getAttribute(n)!==null)return r();var a=ki(e.children),o=a.filter(function(C){return C.getAttribute(Ou)===t})[0],s=Fn.getComputedStyle(e,t),l=s.getPropertyValue("font-family").match(y_),c=s.getPropertyValue("font-weight"),u=s.getPropertyValue("content");if(o&&!l)return e.removeChild(o),r();if(l&&u!=="none"&&u!==""){var d=s.getPropertyValue("content"),h=~["Sharp"].indexOf(l[2])?pe:re,f=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?ja[h][l[2].toLowerCase()]:x_[h][c],m=CS(d),y=m.value,x=m.isSecondary,g=l[0].startsWith("FontAwesome"),v=ch(f,y),b=v;if(g){var w=$_(y);w.iconName&&w.prefix&&(v=w.iconName,f=w.prefix)}if(v&&!x&&(!o||o.getAttribute(rh)!==f||o.getAttribute(ih)!==b)){e.setAttribute(n,b),o&&e.removeChild(o);var k=mS(),_=k.extra;_.attributes[Ou]=t,Au(v,f).then(function(C){var E=dh(j(j({},k),{},{icons:{main:C,mask:uh()},prefix:f,iconName:b,extra:_,watchable:!0})),L=ae.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(L,e.firstChild):e.appendChild(L),L.outerHTML=E.map(function(M){return Za(M)}).join(` +`),e.removeAttribute(n),r()}).catch(i)}else r()}else r()})}function ES(e){return Promise.all([Op(e,"::before"),Op(e,"::after")])}function NS(e){return e.parentNode!==document.head&&!~g_.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(Ou)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function jp(e){if(un)return new Promise(function(t,n){var r=ki(e.querySelectorAll("*")).filter(NS).map(ES),i=hh.begin("searchPseudoElements");kv(),Promise.all(r).then(function(){i(),zu(),t()}).catch(function(){i(),zu(),n()})})}var PS={hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=jp,e}}},provides:function(e){e.pseudoElements2svg=function(t){var n=t.node,r=n===void 0?ae:n;A.searchPseudoElements&&jp(r)}}},Tp=!1,MS={mixout:function(){return{dom:{unwatch:function(){kv(),Tp=!0}}}},hooks:function(){return{bootstrap:function(){Ep(Tu("mutationObserverCallbacks",{}))},noAuto:function(){dS()},watch:function(e){var t=e.observeMutationsRoot;Tp?zu():Ep(Tu("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},Rp=function(e){var t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce(function(n,r){var i=r.toLowerCase().split("-"),a=i[0],o=i.slice(1).join("-");if(a&&o==="h")return n.flipX=!0,n;if(a&&o==="v")return n.flipY=!0,n;if(o=parseFloat(o),isNaN(o))return n;switch(a){case"grow":n.size=n.size+o;break;case"shrink":n.size=n.size-o;break;case"left":n.x=n.x-o;break;case"right":n.x=n.x+o;break;case"up":n.y=n.y-o;break;case"down":n.y=n.y+o;break;case"rotate":n.rotate=n.rotate+o;break}return n},t)},OS={mixout:function(){return{parse:{transform:function(e){return Rp(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=Rp(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(t){var n=t.main,r=t.transform,i=t.containerWidth,a=t.iconWidth,o={transform:"translate(".concat(i/2," 256)")},s="translate(".concat(r.x*32,", ").concat(r.y*32,") "),l="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),c="rotate(".concat(r.rotate," 0 0)"),u={transform:"".concat(s," ").concat(l," ").concat(c)},d={transform:"translate(".concat(a/2*-1," -256)")},h={outer:o,inner:u,path:d};return{tag:"g",attributes:j({},h.outer),children:[{tag:"g",attributes:j({},h.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:j(j({},n.icon.attributes),h.path)}]}]}}}},fc={x:0,y:0,width:"100%",height:"100%"};function Lp(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function jS(e){return e.tag==="g"?e.children:[e]}var TS={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),r=n?Cl(n.split(" ").map(function(i){return i.trim()})):uh();return r.prefix||(r.prefix=Bn()),e.mask=r,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(t){var n=t.children,r=t.attributes,i=t.main,a=t.mask,o=t.maskId,s=t.transform,l=i.width,c=i.icon,u=a.width,d=a.icon,h=j_({transform:s,containerWidth:u,iconWidth:l}),f={tag:"rect",attributes:j(j({},fc),{},{fill:"white"})},m=c.children?{children:c.children.map(Lp)}:{},y={tag:"g",attributes:j({},h.inner),children:[Lp(j({tag:c.tag,attributes:j(j({},c.attributes),h.path)},m))]},x={tag:"g",attributes:j({},h.outer),children:[y]},g="mask-".concat(o||La()),v="clip-".concat(o||La()),b={tag:"mask",attributes:j(j({},fc),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,x]},w={tag:"defs",children:[{tag:"clipPath",attributes:{id:v},children:jS(d)},b]};return n.push(w,{tag:"rect",attributes:j({fill:"currentColor","clip-path":"url(#".concat(v,")"),mask:"url(#".concat(g,")")},fc)}),{children:n,attributes:r}}}},RS={provides:function(e){var t=!1;Fn.matchMedia&&(t=Fn.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var n=[],r={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:j(j({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=j(j({},i),{},{attributeName:"opacity"}),o={tag:"circle",attributes:j(j({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||o.children.push({tag:"animate",attributes:j(j({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:j(j({},a),{},{values:"1;0;1;1;0;1;"})}),n.push(o),n.push({tag:"path",attributes:j(j({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:j(j({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:j(j({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:j(j({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},LS={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),r=n===null?!1:n===""?!0:n;return e.symbol=r,e}}}},AS=[L_,xS,wS,kS,_S,PS,MS,OS,TS,RS,LS];K_(AS,{mixoutsTo:lt});lt.noAuto;lt.config;lt.library;lt.dom;var Iu=lt.parse;lt.findIconDefinition;lt.toHtml;var DS=lt.icon;lt.layer;lt.text;lt.counter;var Sv={exports:{}},zS="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",IS=zS,FS=IS;function Cv(){}function Ev(){}Ev.resetWarningCache=Cv;var BS=function(){function e(r,i,a,o,s,l){if(l!==FS){var c=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Ev,resetWarningCache:Cv};return n.PropTypes=n,n};Sv.exports=BS();var US=Sv.exports;const H=tg(US);function Ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function HS(e,t){if(e==null)return{};var n=VS(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Fu(e){return WS(e)||$S(e)||YS(e)||qS()}function WS(e){if(Array.isArray(e))return Bu(e)}function $S(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function YS(e,t){if(e){if(typeof e=="string")return Bu(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bu(e,t)}}function Bu(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n2&&arguments[2]!==void 0?arguments[2]:{};if(typeof t=="string")return t;var r=(t.children||[]).map(function(l){return Pv(e,l)}),i=Object.keys(t.attributes||{}).reduce(function(l,c){var u=t.attributes[c];switch(c){case"class":l.attrs.className=u,delete t.attributes.class;break;case"style":l.attrs.style=JS(u);break;default:c.indexOf("aria-")===0||c.indexOf("data-")===0?l.attrs[c.toLowerCase()]=u:l.attrs[Nv(c)]=u}return l},{attrs:{}}),a=n.style,o=a===void 0?{}:a,s=HS(n,XS);return i.attrs.style=Dt(Dt({},i.attrs.style),o),e.apply(void 0,[t.tag,Dt(Dt({},i.attrs),s)].concat(Fu(r)))}var Mv=!1;try{Mv=!0}catch{}function ZS(){if(!Mv&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function Dp(e){if(e&&Ws(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(Iu.icon)return Iu.icon(e);if(e===null)return null;if(e&&Ws(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}function pc(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?Kr({},e,t):{}}var zp={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},rr=pi.forwardRef(function(e,t){var n=Dt(Dt({},zp),e),r=n.icon,i=n.mask,a=n.symbol,o=n.className,s=n.title,l=n.titleId,c=n.maskId,u=Dp(r),d=pc("classes",[].concat(Fu(KS(n)),Fu((o||"").split(" ")))),h=pc("transform",typeof n.transform=="string"?Iu.transform(n.transform):n.transform),f=pc("mask",Dp(i)),m=DS(u,Dt(Dt(Dt(Dt({},d),h),f),{},{symbol:a,title:s,titleId:l,maskId:c}));if(!m)return ZS("Could not find icon",u),null;var y=m.abstract,x={ref:t};return Object.keys(n).forEach(function(g){zp.hasOwnProperty(g)||(x[g]=n[g])}),e5(y[0],x)});rr.displayName="FontAwesomeIcon";rr.propTypes={beat:H.bool,border:H.bool,beatFade:H.bool,bounce:H.bool,className:H.string,fade:H.bool,flash:H.bool,mask:H.oneOfType([H.object,H.array,H.string]),maskId:H.string,fixedWidth:H.bool,inverse:H.bool,flip:H.oneOf([!0,!1,"horizontal","vertical","both"]),icon:H.oneOfType([H.object,H.array,H.string]),listItem:H.bool,pull:H.oneOf(["right","left"]),pulse:H.bool,rotation:H.oneOf([0,90,180,270]),shake:H.bool,size:H.oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:H.bool,spinPulse:H.bool,spinReverse:H.bool,symbol:H.oneOfType([H.bool,H.string]),title:H.string,titleId:H.string,transform:H.oneOfType([H.string,H.object]),swapOpacity:H.bool};var e5=Pv.bind(null,pi.createElement),t5={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},n5={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160H352c-17.7 0-32 14.3-32 32s14.3 32 32 32H463.5c0 0 0 0 0 0h.4c17.7 0 32-14.3 32-32V80c0-17.7-14.3-32-32-32s-32 14.3-32 32v35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1V432c0 17.7 14.3 32 32 32s32-14.3 32-32V396.9l17.6 17.5 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.7c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352H160c17.7 0 32-14.3 32-32s-14.3-32-32-32H48.4c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},r5=n5,i5={prefix:"fas",iconName:"volume-high",icon:[640,512,[128266,"volume-up"],"f028","M533.6 32.5C598.5 85.2 640 165.8 640 256s-41.5 170.7-106.4 223.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C557.5 398.2 592 331.2 592 256s-34.5-142.2-88.7-186.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM473.1 107c43.2 35.2 70.9 88.9 70.9 149s-27.7 113.8-70.9 149c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C475.3 341.3 496 301.1 496 256s-20.7-85.3-53.2-111.8c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zm-60.5 74.5C434.1 199.1 448 225.9 448 256s-13.9 56.9-35.4 74.5c-10.3 8.4-25.4 6.8-33.8-3.5s-6.8-25.4 3.5-33.8C393.1 284.4 400 271 400 256s-6.9-28.4-17.7-37.3c-10.3-8.4-11.8-23.5-3.5-33.8s23.5-11.8 33.8-3.5zM301.1 34.8C312.6 40 320 51.4 320 64V448c0 12.6-7.4 24-18.9 29.2s-25 3.1-34.4-5.3L131.8 352H64c-35.3 0-64-28.7-64-64V224c0-35.3 28.7-64 64-64h67.8L266.7 40.1c9.4-8.4 22.9-10.4 34.4-5.3z"]},a5=i5,o5={prefix:"fas",iconName:"copy",icon:[448,512,[],"f0c5","M208 0H332.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H208c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128h80v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z"]},s5={prefix:"fas",iconName:"gears",icon:[640,512,["cogs"],"f085","M308.5 135.3c7.1-6.3 9.9-16.2 6.2-25c-2.3-5.3-4.8-10.5-7.6-15.5L304 89.4c-3-5-6.3-9.9-9.8-14.6c-5.7-7.6-15.7-10.1-24.7-7.1l-28.2 9.3c-10.7-8.8-23-16-36.2-20.9L199 27.1c-1.9-9.3-9.1-16.7-18.5-17.8C173.9 8.4 167.2 8 160.4 8h-.7c-6.8 0-13.5 .4-20.1 1.2c-9.4 1.1-16.6 8.6-18.5 17.8L115 56.1c-13.3 5-25.5 12.1-36.2 20.9L50.5 67.8c-9-3-19-.5-24.7 7.1c-3.5 4.7-6.8 9.6-9.9 14.6l-3 5.3c-2.8 5-5.3 10.2-7.6 15.6c-3.7 8.7-.9 18.6 6.2 25l22.2 19.8C32.6 161.9 32 168.9 32 176s.6 14.1 1.7 20.9L11.5 216.7c-7.1 6.3-9.9 16.2-6.2 25c2.3 5.3 4.8 10.5 7.6 15.6l3 5.2c3 5.1 6.3 9.9 9.9 14.6c5.7 7.6 15.7 10.1 24.7 7.1l28.2-9.3c10.7 8.8 23 16 36.2 20.9l6.1 29.1c1.9 9.3 9.1 16.7 18.5 17.8c6.7 .8 13.5 1.2 20.4 1.2s13.7-.4 20.4-1.2c9.4-1.1 16.6-8.6 18.5-17.8l6.1-29.1c13.3-5 25.5-12.1 36.2-20.9l28.2 9.3c9 3 19 .5 24.7-7.1c3.5-4.7 6.8-9.5 9.8-14.6l3.1-5.4c2.8-5 5.3-10.2 7.6-15.5c3.7-8.7 .9-18.6-6.2-25l-22.2-19.8c1.1-6.8 1.7-13.8 1.7-20.9s-.6-14.1-1.7-20.9l22.2-19.8zM112 176a48 48 0 1 1 96 0 48 48 0 1 1 -96 0zM504.7 500.5c6.3 7.1 16.2 9.9 25 6.2c5.3-2.3 10.5-4.8 15.5-7.6l5.4-3.1c5-3 9.9-6.3 14.6-9.8c7.6-5.7 10.1-15.7 7.1-24.7l-9.3-28.2c8.8-10.7 16-23 20.9-36.2l29.1-6.1c9.3-1.9 16.7-9.1 17.8-18.5c.8-6.7 1.2-13.5 1.2-20.4s-.4-13.7-1.2-20.4c-1.1-9.4-8.6-16.6-17.8-18.5L583.9 307c-5-13.3-12.1-25.5-20.9-36.2l9.3-28.2c3-9 .5-19-7.1-24.7c-4.7-3.5-9.6-6.8-14.6-9.9l-5.3-3c-5-2.8-10.2-5.3-15.6-7.6c-8.7-3.7-18.6-.9-25 6.2l-19.8 22.2c-6.8-1.1-13.8-1.7-20.9-1.7s-14.1 .6-20.9 1.7l-19.8-22.2c-6.3-7.1-16.2-9.9-25-6.2c-5.3 2.3-10.5 4.8-15.6 7.6l-5.2 3c-5.1 3-9.9 6.3-14.6 9.9c-7.6 5.7-10.1 15.7-7.1 24.7l9.3 28.2c-8.8 10.7-16 23-20.9 36.2L315.1 313c-9.3 1.9-16.7 9.1-17.8 18.5c-.8 6.7-1.2 13.5-1.2 20.4s.4 13.7 1.2 20.4c1.1 9.4 8.6 16.6 17.8 18.5l29.1 6.1c5 13.3 12.1 25.5 20.9 36.2l-9.3 28.2c-3 9-.5 19 7.1 24.7c4.7 3.5 9.5 6.8 14.6 9.8l5.4 3.1c5 2.8 10.2 5.3 15.5 7.6c8.7 3.7 18.6 .9 25-6.2l19.8-22.2c6.8 1.1 13.8 1.7 20.9 1.7s14.1-.6 20.9-1.7l19.8 22.2zM464 304a48 48 0 1 1 0 96 48 48 0 1 1 0-96z"]},l5=s5;const c5=({message:e,isUser:t})=>p.jsx("div",{className:`flex ${t?"justify-end":"justify-start"} mb-2`,children:p.jsxs("div",{className:`flex items-end ${t?"flex-row-reverse":"flex-row"}`,children:[p.jsxs("div",{className:"flex flex-col items-center",children:[p.jsx("div",{className:"w-10 h-10 rounded-full overflow-hidden",children:p.jsx("img",{src:t?"/public/you.png":"/public/bot.png",alt:t?"You":"AI Bot",className:"w-full h-full object-cover"})}),p.jsx("p",{className:"text-xs mt-1",children:t?"You":"AI Bot"})]}),p.jsxs("div",{className:`p-3 rounded-lg ml-2 max-w-lg ${t?"bg-blue-600 text-white":"bg-gray-300 text-black"}`,children:[p.jsx("p",{className:"text-sm whitespace-pre-wrap",dangerouslySetInnerHTML:{__html:e.text}}),p.jsx("p",{className:"text-xs mt-1",children:e.timestamp}),!t&&p.jsxs("div",{className:"flex mt-2 space-x-2",children:[p.jsx("button",{className:"p-1 text-sm bg-white rounded-full hover:bg-gray-200",children:p.jsx(rr,{icon:a5})}),p.jsx("button",{className:"p-1 text-sm bg-white rounded-full hover:bg-gray-200",children:p.jsx(rr,{icon:o5})}),p.jsx("button",{className:"p-1 text-sm bg-white rounded-full hover:bg-gray-200",children:p.jsx(rr,{icon:r5})}),p.jsx("button",{className:"p-1 text-sm bg-white rounded-full hover:bg-gray-200",children:p.jsx(rr,{icon:t5})}),p.jsx("button",{className:"p-1 text-sm bg-white rounded-full hover:bg-gray-200",children:p.jsx(rr,{icon:l5})})]})]})]})}),ph=()=>p.jsxs("div",{className:"h-screen w-64 bg-gray-800 text-white flex flex-col fixed",children:[p.jsx("div",{className:"p-4 text-2xl font-bold",children:"Dashboard"}),p.jsxs("nav",{className:"mt-4 flex flex-col space-y-2",children:[p.jsx(wt,{to:"/",className:"px-4 py-2 hover:bg-gray-700",children:"Chat"}),p.jsx(wt,{to:"/analytics",className:"px-4 py-2 hover:bg-gray-700",children:"Analytics"}),p.jsx(wt,{to:"/models",className:"px-4 py-2 hover:bg-gray-700",children:"Models"}),p.jsx(wt,{to:"/settings",className:"px-4 py-2 hover:bg-gray-700",children:"Settings"})]})]}),u5=()=>{const[e,t]=N.useState([]),[n,r]=N.useState(""),i=()=>{if(n.trim()){const a={text:n,timestamp:new Date().toLocaleTimeString(),isUser:!0};t([...e,a]),setTimeout(()=>{const o={text:"Onboarding clients is a critical process that sets the tone for your relationship and ensures that the client understands and is comfortable with your services. Here's a detailed procedure for onboarding clients, tailored to a technology or software development company:",timestamp:new Date().toLocaleTimeString(),isUser:!1};t(s=>[...s,o])},1e3),r("")}};return p.jsxs("div",{className:"flex",children:[p.jsx(ph,{}),p.jsx("div",{className:"ml-64 flex-1 p-6 bg-gray-100",children:p.jsxs("div",{className:"p-4 bg-white rounded-lg shadow",children:[p.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Chat"}),p.jsxs("div",{className:"flex flex-col h-96 bg-gray-100 rounded-lg overflow-hidden",children:[p.jsx("div",{className:"flex-1 p-4 overflow-y-auto",children:e.map((a,o)=>p.jsx(c5,{message:a,isUser:a.isUser},o))}),p.jsxs("div",{className:"flex p-4 border-t",children:[p.jsx("input",{type:"text",className:"flex-1 p-2 border rounded-lg",value:n,onChange:a=>r(a.target.value),placeholder:"Type a message..."}),p.jsx("button",{onClick:i,className:"ml-4 px-4 py-2 bg-blue-600 text-white rounded-lg",children:"Send"})]})]})]})})]})};/*! +* @kurkle/color v0.3.2 +* https://github.com/kurkle/color#readme +* (c) 2023 Jukka Kurkela +* Released under the MIT License +*/function eo(e){return e+.5|0}const kn=(e,t,n)=>Math.max(Math.min(e,n),t);function Hi(e){return kn(eo(e*2.55),0,255)}function An(e){return kn(eo(e*255),0,255)}function Xt(e){return kn(eo(e/2.55)/100,0,1)}function Ip(e){return kn(eo(e*100),0,100)}const ct={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},Uu=[..."0123456789ABCDEF"],d5=e=>Uu[e&15],h5=e=>Uu[(e&240)>>4]+Uu[e&15],Oo=e=>(e&240)>>4===(e&15),f5=e=>Oo(e.r)&&Oo(e.g)&&Oo(e.b)&&Oo(e.a);function p5(e){var t=e.length,n;return e[0]==="#"&&(t===4||t===5?n={r:255&ct[e[1]]*17,g:255&ct[e[2]]*17,b:255&ct[e[3]]*17,a:t===5?ct[e[4]]*17:255}:(t===7||t===9)&&(n={r:ct[e[1]]<<4|ct[e[2]],g:ct[e[3]]<<4|ct[e[4]],b:ct[e[5]]<<4|ct[e[6]],a:t===9?ct[e[7]]<<4|ct[e[8]]:255})),n}const m5=(e,t)=>e<255?t(e):"";function g5(e){var t=f5(e)?d5:h5;return e?"#"+t(e.r)+t(e.g)+t(e.b)+m5(e.a,t):void 0}const b5=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Ov(e,t,n){const r=t*Math.min(n,1-n),i=(a,o=(a+e/30)%12)=>n-r*Math.max(Math.min(o-3,9-o,1),-1);return[i(0),i(8),i(4)]}function v5(e,t,n){const r=(i,a=(i+e/60)%6)=>n-n*t*Math.max(Math.min(a,4-a,1),0);return[r(5),r(3),r(1)]}function y5(e,t,n){const r=Ov(e,1,.5);let i;for(t+n>1&&(i=1/(t+n),t*=i,n*=i),i=0;i<3;i++)r[i]*=1-t-n,r[i]+=t;return r}function x5(e,t,n,r,i){return e===i?(t-n)/r+(t.5?c/(2-i-a):c/(i+a),s=x5(t,n,r,c,i),s=s*60+.5),[s|0,l||0,o]}function gh(e,t,n,r){return(Array.isArray(t)?e(t[0],t[1],t[2]):e(t,n,r)).map(An)}function bh(e,t,n){return gh(Ov,e,t,n)}function w5(e,t,n){return gh(y5,e,t,n)}function k5(e,t,n){return gh(v5,e,t,n)}function jv(e){return(e%360+360)%360}function _5(e){const t=b5.exec(e);let n=255,r;if(!t)return;t[5]!==r&&(n=t[6]?Hi(+t[5]):An(+t[5]));const i=jv(+t[2]),a=+t[3]/100,o=+t[4]/100;return t[1]==="hwb"?r=w5(i,a,o):t[1]==="hsv"?r=k5(i,a,o):r=bh(i,a,o),{r:r[0],g:r[1],b:r[2],a:n}}function S5(e,t){var n=mh(e);n[0]=jv(n[0]+t),n=bh(n),e.r=n[0],e.g=n[1],e.b=n[2]}function C5(e){if(!e)return;const t=mh(e),n=t[0],r=Ip(t[1]),i=Ip(t[2]);return e.a<255?`hsla(${n}, ${r}%, ${i}%, ${Xt(e.a)})`:`hsl(${n}, ${r}%, ${i}%)`}const Fp={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"},Bp={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 E5(){const e={},t=Object.keys(Bp),n=Object.keys(Fp);let r,i,a,o,s;for(r=0;r>16&255,a>>8&255,a&255]}return e}let jo;function N5(e){jo||(jo=E5(),jo.transparent=[0,0,0,0]);const t=jo[e.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}const P5=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function M5(e){const t=P5.exec(e);let n=255,r,i,a;if(t){if(t[7]!==r){const o=+t[7];n=t[8]?Hi(o):kn(o*255,0,255)}return r=+t[1],i=+t[3],a=+t[5],r=255&(t[2]?Hi(r):kn(r,0,255)),i=255&(t[4]?Hi(i):kn(i,0,255)),a=255&(t[6]?Hi(a):kn(a,0,255)),{r,g:i,b:a,a:n}}}function O5(e){return e&&(e.a<255?`rgba(${e.r}, ${e.g}, ${e.b}, ${Xt(e.a)})`:`rgb(${e.r}, ${e.g}, ${e.b})`)}const mc=e=>e<=.0031308?e*12.92:Math.pow(e,1/2.4)*1.055-.055,Tr=e=>e<=.04045?e/12.92:Math.pow((e+.055)/1.055,2.4);function j5(e,t,n){const r=Tr(Xt(e.r)),i=Tr(Xt(e.g)),a=Tr(Xt(e.b));return{r:An(mc(r+n*(Tr(Xt(t.r))-r))),g:An(mc(i+n*(Tr(Xt(t.g))-i))),b:An(mc(a+n*(Tr(Xt(t.b))-a))),a:e.a+n*(t.a-e.a)}}function To(e,t,n){if(e){let r=mh(e);r[t]=Math.max(0,Math.min(r[t]+r[t]*n,t===0?360:1)),r=bh(r),e.r=r[0],e.g=r[1],e.b=r[2]}}function Tv(e,t){return e&&Object.assign(t||{},e)}function Up(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=An(e[3]))):(t=Tv(e,{r:0,g:0,b:0,a:1}),t.a=An(t.a)),t}function T5(e){return e.charAt(0)==="r"?M5(e):_5(e)}class Aa{constructor(t){if(t instanceof Aa)return t;const n=typeof t;let r;n==="object"?r=Up(t):n==="string"&&(r=p5(t)||N5(t)||T5(t)),this._rgb=r,this._valid=!!r}get valid(){return this._valid}get rgb(){var t=Tv(this._rgb);return t&&(t.a=Xt(t.a)),t}set rgb(t){this._rgb=Up(t)}rgbString(){return this._valid?O5(this._rgb):void 0}hexString(){return this._valid?g5(this._rgb):void 0}hslString(){return this._valid?C5(this._rgb):void 0}mix(t,n){if(t){const r=this.rgb,i=t.rgb;let a;const o=n===a?.5:n,s=2*o-1,l=r.a-i.a,c=((s*l===-1?s:(s+l)/(1+s*l))+1)/2;a=1-c,r.r=255&c*r.r+a*i.r+.5,r.g=255&c*r.g+a*i.g+.5,r.b=255&c*r.b+a*i.b+.5,r.a=o*r.a+(1-o)*i.a,this.rgb=r}return this}interpolate(t,n){return t&&(this._rgb=j5(this._rgb,t._rgb,n)),this}clone(){return new Aa(this.rgb)}alpha(t){return this._rgb.a=An(t),this}clearer(t){const n=this._rgb;return n.a*=1-t,this}greyscale(){const t=this._rgb,n=eo(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=n,this}opaquer(t){const n=this._rgb;return n.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return To(this._rgb,2,t),this}darken(t){return To(this._rgb,2,-t),this}saturate(t){return To(this._rgb,1,t),this}desaturate(t){return To(this._rgb,1,-t),this}rotate(t){return S5(this._rgb,t),this}}/*! +* Chart.js v4.4.3 +* https://www.chartjs.org +* (c) 2024 Chart.js Contributors +* Released under the MIT License +*/function $t(){}const R5=(()=>{let e=0;return()=>e++})();function K(e){return e===null||typeof e>"u"}function ue(e){if(Array.isArray&&Array.isArray(e))return!0;const t=Object.prototype.toString.call(e);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function Y(e){return e!==null&&Object.prototype.toString.call(e)==="[object Object]"}function Ee(e){return(typeof e=="number"||e instanceof Number)&&isFinite(+e)}function tt(e,t){return Ee(e)?e:t}function U(e,t){return typeof e>"u"?t:e}const L5=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100:+e/t,Rv=(e,t)=>typeof e=="string"&&e.endsWith("%")?parseFloat(e)/100*t:+e;function J(e,t,n){if(e&&typeof e.call=="function")return e.apply(n,t)}function q(e,t,n,r){let i,a,o;if(ue(e))for(a=e.length,i=0;ie,x:e=>e.x,y:e=>e.y};function z5(e){const t=e.split("."),n=[];let r="";for(const i of t)r+=i,r.endsWith("\\")?r=r.slice(0,-1)+".":(n.push(r),r="");return n}function I5(e){const t=z5(e);return n=>{for(const r of t){if(r==="")break;n=n&&n[r]}return n}}function Cr(e,t){return(Vp[t]||(Vp[t]=I5(t)))(e)}function vh(e){return e.charAt(0).toUpperCase()+e.slice(1)}const za=e=>typeof e<"u",Vn=e=>typeof e=="function",Hp=(e,t)=>{if(e.size!==t.size)return!1;for(const n of e)if(!t.has(n))return!1;return!0};function F5(e){return e.type==="mouseup"||e.type==="click"||e.type==="contextmenu"}const le=Math.PI,se=2*le,B5=se+le,qs=Number.POSITIVE_INFINITY,U5=le/180,be=le/2,Qn=le/4,Wp=le*2/3,_n=Math.log10,Vt=Math.sign;function oa(e,t,n){return Math.abs(e-t)i-a).pop(),t}function Ia(e){return!isNaN(parseFloat(e))&&isFinite(e)}function H5(e,t){const n=Math.round(e);return n-t<=e&&n+t>=e}function Av(e,t,n){let r,i,a;for(r=0,i=e.length;rl&&c=Math.min(t,n)-r&&e<=Math.max(t,n)+r}function xh(e,t,n){n=n||(o=>e[o]1;)a=i+r>>1,n(a)?i=a:r=a;return{lo:i,hi:r}}const cr=(e,t,n,r)=>xh(e,n,r?i=>{const a=e[i][t];return ae[i][t]xh(e,n,r=>e[r][t]>=n);function q5(e,t,n){let r=0,i=e.length;for(;rr&&e[i-1]>n;)i--;return r>0||i{const r="_onData"+vh(n),i=e[n];Object.defineProperty(e,n,{configurable:!0,enumerable:!1,value(...a){const o=i.apply(this,a);return e._chartjs.listeners.forEach(s=>{typeof s[r]=="function"&&s[r](...a)}),o}})})}function qp(e,t){const n=e._chartjs;if(!n)return;const r=n.listeners,i=r.indexOf(t);i!==-1&&r.splice(i,1),!(r.length>0)&&(zv.forEach(a=>{delete e[a]}),delete e._chartjs)}function Iv(e){const t=new Set(e);return t.size===e.length?e:Array.from(t)}const Fv=function(){return typeof window>"u"?function(e){return e()}:window.requestAnimationFrame}();function Bv(e,t){let n=[],r=!1;return function(...i){n=i,r||(r=!0,Fv.call(window,()=>{r=!1,e.apply(t,n)}))}}function Q5(e,t){let n;return function(...r){return t?(clearTimeout(n),n=setTimeout(e,t,r)):e.apply(this,r),t}}const wh=e=>e==="start"?"left":e==="end"?"right":"center",Ae=(e,t,n)=>e==="start"?t:e==="end"?n:(t+n)/2,X5=(e,t,n,r)=>e===(r?"left":"right")?n:e==="center"?(t+n)/2:t;function G5(e,t,n){const r=t.length;let i=0,a=r;if(e._sorted){const{iScale:o,_parsed:s}=e,l=o.axis,{min:c,max:u,minDefined:d,maxDefined:h}=o.getUserBounds();d&&(i=ze(Math.min(cr(s,l,c).lo,n?r:cr(t,l,o.getPixelForValue(c)).lo),0,r-1)),h?a=ze(Math.max(cr(s,o.axis,u,!0).hi+1,n?0:cr(t,l,o.getPixelForValue(u),!0).hi+1),i,r)-i:a=r-i}return{start:i,count:a}}function J5(e){const{xScale:t,yScale:n,_scaleRanges:r}=e,i={xmin:t.min,xmax:t.max,ymin:n.min,ymax:n.max};if(!r)return e._scaleRanges=i,!0;const a=r.xmin!==t.min||r.xmax!==t.max||r.ymin!==n.min||r.ymax!==n.max;return Object.assign(r,i),a}const Ro=e=>e===0||e===1,Kp=(e,t,n)=>-(Math.pow(2,10*(e-=1))*Math.sin((e-t)*se/n)),Qp=(e,t,n)=>Math.pow(2,-10*e)*Math.sin((e-t)*se/n)+1,sa={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*be)+1,easeOutSine:e=>Math.sin(e*be),easeInOutSine:e=>-.5*(Math.cos(le*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=>Ro(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=>Ro(e)?e:Kp(e,.075,.3),easeOutElastic:e=>Ro(e)?e:Qp(e,.075,.3),easeInOutElastic(e){return Ro(e)?e:e<.5?.5*Kp(e*2,.1125,.45):.5+.5*Qp(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-sa.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?sa.easeInBounce(e*2)*.5:sa.easeOutBounce(e*2-1)*.5+.5};function kh(e){if(e&&typeof e=="object"){const t=e.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function Xp(e){return kh(e)?e:new Aa(e)}function gc(e){return kh(e)?e:new Aa(e).saturate(.5).darken(.1).hexString()}const Z5=["x","y","borderWidth","radius","tension"],e4=["color","borderColor","backgroundColor"];function t4(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:e4},numbers:{type:"number",properties:Z5}}),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 n4(e){e.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}const Gp=new Map;function r4(e,t){t=t||{};const n=e+JSON.stringify(t);let r=Gp.get(n);return r||(r=new Intl.NumberFormat(e,t),Gp.set(n,r)),r}function Nl(e,t,n){return r4(t,n).format(e)}const Uv={values(e){return ue(e)?e:""+e},numeric(e,t,n){if(e===0)return"0";const r=this.chart.options.locale;let i,a=e;if(n.length>1){const c=Math.max(Math.abs(n[0].value),Math.abs(n[n.length-1].value));(c<1e-4||c>1e15)&&(i="scientific"),a=i4(e,n)}const o=_n(Math.abs(a)),s=isNaN(o)?1:Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:i,minimumFractionDigits:s,maximumFractionDigits:s};return Object.assign(l,this.options.ticks.format),Nl(e,r,l)},logarithmic(e,t,n){if(e===0)return"0";const r=n[t].significand||e/Math.pow(10,Math.floor(_n(e)));return[1,2,3,5,10,15].includes(r)||t>.8*n.length?Uv.numeric.call(this,e,t,n):""}};function i4(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 Pl={formatters:Uv};function a4(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:Pl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),e.route("scale.ticks","color","","color"),e.route("scale.grid","color","","borderColor"),e.route("scale.border","color","","borderColor"),e.route("scale.title","color","","color"),e.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),e.describe("scales",{_fallback:"scale"}),e.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}const Er=Object.create(null),Hu=Object.create(null);function la(e,t){if(!t)return e;const n=t.split(".");for(let r=0,i=n.length;rr.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=(r,i)=>gc(i.backgroundColor),this.hoverBorderColor=(r,i)=>gc(i.borderColor),this.hoverColor=(r,i)=>gc(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 bc(this,t,n)}get(t){return la(this,t)}describe(t,n){return bc(Hu,t,n)}override(t,n){return bc(Er,t,n)}route(t,n,r,i){const a=la(this,t),o=la(this,r),s="_"+n;Object.defineProperties(a,{[s]:{value:a[n],writable:!0},[n]:{enumerable:!0,get(){const l=this[s],c=o[i];return Y(l)?Object.assign({},c,l):U(l,c)},set(l){this[s]=l}}})}apply(t){t.forEach(n=>n(this))}}var me=new o4({_scriptable:e=>!e.startsWith("on"),_indexable:e=>e!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[t4,n4,a4]);function s4(e){return!e||K(e.size)||K(e.family)?null:(e.style?e.style+" ":"")+(e.weight?e.weight+" ":"")+e.size+"px "+e.family}function Ks(e,t,n,r,i){let a=t[i];return a||(a=t[i]=e.measureText(i).width,n.push(i)),a>r&&(r=a),r}function l4(e,t,n,r){r=r||{};let i=r.data=r.data||{},a=r.garbageCollect=r.garbageCollect||[];r.font!==t&&(i=r.data={},a=r.garbageCollect=[],r.font=t),e.save(),e.font=t;let o=0;const s=n.length;let l,c,u,d,h;for(l=0;ln.length){for(l=0;l0&&e.stroke()}}function Zt(e,t,n){return n=n||.5,!t||e&&e.x>t.left-n&&e.xt.top-n&&e.y0&&a.strokeColor!=="";let l,c;for(e.save(),e.font=i.string,d4(e,a),l=0;l+e||0;function Ch(e,t){const n={},r=Y(t),i=r?Object.keys(t):t,a=Y(e)?r?o=>U(e[o],e[t[o]]):o=>e[o]:()=>e;for(const o of i)n[o]=b4(a(o));return n}function Hv(e){return Ch(e,{top:"y",right:"x",bottom:"y",left:"x"})}function fr(e){return Ch(e,["topLeft","topRight","bottomLeft","bottomRight"])}function Fe(e){const t=Hv(e);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function _e(e,t){e=e||{},t=t||me.font;let n=U(e.size,t.size);typeof n=="string"&&(n=parseInt(n,10));let r=U(e.style,t.style);r&&!(""+r).match(m4)&&(console.warn('Invalid font style specified: "'+r+'"'),r=void 0);const i={family:U(e.family,t.family),lineHeight:g4(U(e.lineHeight,t.lineHeight),n),size:n,style:r,weight:U(e.weight,t.weight),string:""};return i.string=s4(i),i}function Lo(e,t,n,r){let i,a,o;for(i=0,a=e.length;in&&s===0?0:s+l;return{min:o(r,-Math.abs(a)),max:o(i,a)}}function Kn(e,t){return Object.assign(Object.create(e),t)}function Eh(e,t=[""],n,r,i=()=>e[0]){const a=n||e;typeof r>"u"&&(r=qv("_fallback",e));const o={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:e,_rootScopes:a,_fallback:r,_getTarget:i,override:s=>Eh([s,...e],t,a,r)};return new Proxy(o,{deleteProperty(s,l){return delete s[l],delete s._keys,delete e[0][l],!0},get(s,l){return $v(s,l,()=>E4(l,t,e,s))},getOwnPropertyDescriptor(s,l){return Reflect.getOwnPropertyDescriptor(s._scopes[0],l)},getPrototypeOf(){return Reflect.getPrototypeOf(e[0])},has(s,l){return em(s).includes(l)},ownKeys(s){return em(s)},set(s,l,c){const u=s._storage||(s._storage=i());return s[l]=u[l]=c,delete s._keys,!0}})}function di(e,t,n,r){const i={_cacheable:!1,_proxy:e,_context:t,_subProxy:n,_stack:new Set,_descriptors:Wv(e,r),setContext:a=>di(e,a,n,r),override:a=>di(e.override(a),t,n,r)};return new Proxy(i,{deleteProperty(a,o){return delete a[o],delete e[o],!0},get(a,o,s){return $v(a,o,()=>x4(a,o,s))},getOwnPropertyDescriptor(a,o){return a._descriptors.allKeys?Reflect.has(e,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(e,o)},getPrototypeOf(){return Reflect.getPrototypeOf(e)},has(a,o){return Reflect.has(e,o)},ownKeys(){return Reflect.ownKeys(e)},set(a,o,s){return e[o]=s,delete a[o],!0}})}function Wv(e,t={scriptable:!0,indexable:!0}){const{_scriptable:n=t.scriptable,_indexable:r=t.indexable,_allKeys:i=t.allKeys}=e;return{allKeys:i,scriptable:n,indexable:r,isScriptable:Vn(n)?n:()=>n,isIndexable:Vn(r)?r:()=>r}}const y4=(e,t)=>e?e+vh(t):t,Nh=(e,t)=>Y(t)&&e!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function $v(e,t,n){if(Object.prototype.hasOwnProperty.call(e,t)||t==="constructor")return e[t];const r=n();return e[t]=r,r}function x4(e,t,n){const{_proxy:r,_context:i,_subProxy:a,_descriptors:o}=e;let s=r[t];return Vn(s)&&o.isScriptable(t)&&(s=w4(t,s,e,n)),ue(s)&&s.length&&(s=k4(t,s,e,o.isIndexable)),Nh(t,s)&&(s=di(s,i,a&&a[t],o)),s}function w4(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_stack:s}=n;if(s.has(e))throw new Error("Recursion detected: "+Array.from(s).join("->")+"->"+e);s.add(e);let l=t(a,o||r);return s.delete(e),Nh(e,l)&&(l=Ph(i._scopes,i,e,l)),l}function k4(e,t,n,r){const{_proxy:i,_context:a,_subProxy:o,_descriptors:s}=n;if(typeof a.index<"u"&&r(e))return t[a.index%t.length];if(Y(t[0])){const l=t,c=i._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=Ph(c,i,e,u);t.push(di(d,a,o&&o[e],s))}}return t}function Yv(e,t,n){return Vn(e)?e(t,n):e}const _4=(e,t)=>e===!0?t:typeof e=="string"?Cr(t,e):void 0;function S4(e,t,n,r,i){for(const a of t){const o=_4(n,a);if(o){e.add(o);const s=Yv(o._fallback,n,i);if(typeof s<"u"&&s!==n&&s!==r)return s}else if(o===!1&&typeof r<"u"&&n!==r)return null}return!1}function Ph(e,t,n,r){const i=t._rootScopes,a=Yv(t._fallback,n,r),o=[...e,...i],s=new Set;s.add(r);let l=Zp(s,o,n,a||n,r);return l===null||typeof a<"u"&&a!==n&&(l=Zp(s,o,a,l,r),l===null)?!1:Eh(Array.from(s),[""],i,a,()=>C4(t,n,r))}function Zp(e,t,n,r,i){for(;n;)n=S4(e,t,n,r,i);return n}function C4(e,t,n){const r=e._getTarget();t in r||(r[t]={});const i=r[t];return ue(i)&&Y(n)?n:i||{}}function E4(e,t,n,r){let i;for(const a of t)if(i=qv(y4(a,e),n),typeof i<"u")return Nh(e,i)?Ph(n,r,e,i):i}function qv(e,t){for(const n of t){if(!n)continue;const r=n[e];if(typeof r<"u")return r}}function em(e){let t=e._keys;return t||(t=e._keys=N4(e._scopes)),t}function N4(e){const t=new Set;for(const n of e)for(const r of Object.keys(n).filter(i=>!i.startsWith("_")))t.add(r);return Array.from(t)}const P4=Number.EPSILON||1e-14,hi=(e,t)=>te==="x"?"y":"x";function M4(e,t,n,r){const i=e.skip?t:e,a=t,o=n.skip?t:n,s=Vu(a,i),l=Vu(o,a);let c=s/(s+l),u=l/(s+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=r*c,h=r*u;return{previous:{x:a.x-d*(o.x-i.x),y:a.y-d*(o.y-i.y)},next:{x:a.x+h*(o.x-i.x),y:a.y+h*(o.y-i.y)}}}function O4(e,t,n){const r=e.length;let i,a,o,s,l,c=hi(e,0);for(let u=0;u!c.skip)),t.cubicInterpolationMode==="monotone")T4(e,i);else{let c=r?e[e.length-1]:e[0];for(a=0,o=e.length;ae.ownerDocument.defaultView.getComputedStyle(e,null);function A4(e,t){return Ml(e).getPropertyValue(t)}const D4=["top","right","bottom","left"];function pr(e,t,n){const r={};n=n?"-"+n:"";for(let i=0;i<4;i++){const a=D4[i];r[a]=parseFloat(e[t+"-"+a+n])||0}return r.width=r.left+r.right,r.height=r.top+r.bottom,r}const z4=(e,t,n)=>(e>0||t>0)&&(!n||!n.shadowRoot);function I4(e,t){const n=e.touches,r=n&&n.length?n[0]:e,{offsetX:i,offsetY:a}=r;let o=!1,s,l;if(z4(i,a,e.target))s=i,l=a;else{const c=t.getBoundingClientRect();s=r.clientX-c.left,l=r.clientY-c.top,o=!0}return{x:s,y:l,box:o}}function tr(e,t){if("native"in e)return e;const{canvas:n,currentDevicePixelRatio:r}=t,i=Ml(n),a=i.boxSizing==="border-box",o=pr(i,"padding"),s=pr(i,"border","width"),{x:l,y:c,box:u}=I4(e,n),d=o.left+(u&&s.left),h=o.top+(u&&s.top);let{width:f,height:m}=t;return a&&(f-=o.width+s.width,m-=o.height+s.height),{x:Math.round((l-d)/f*n.width/r),y:Math.round((c-h)/m*n.height/r)}}function F4(e,t,n){let r,i;if(t===void 0||n===void 0){const a=e&&Oh(e);if(!a)t=e.clientWidth,n=e.clientHeight;else{const o=a.getBoundingClientRect(),s=Ml(a),l=pr(s,"border","width"),c=pr(s,"padding");t=o.width-c.width-l.width,n=o.height-c.height-l.height,r=Qs(s.maxWidth,a,"clientWidth"),i=Qs(s.maxHeight,a,"clientHeight")}}return{width:t,height:n,maxWidth:r||qs,maxHeight:i||qs}}const Do=e=>Math.round(e*10)/10;function B4(e,t,n,r){const i=Ml(e),a=pr(i,"margin"),o=Qs(i.maxWidth,e,"clientWidth")||qs,s=Qs(i.maxHeight,e,"clientHeight")||qs,l=F4(e,t,n);let{width:c,height:u}=l;if(i.boxSizing==="content-box"){const d=pr(i,"border","width"),h=pr(i,"padding");c-=h.width+d.width,u-=h.height+d.height}return c=Math.max(0,c-a.width),u=Math.max(0,r?c/r:u-a.height),c=Do(Math.min(c,o,l.maxWidth)),u=Do(Math.min(u,s,l.maxHeight)),c&&!u&&(u=Do(c/2)),(t!==void 0||n!==void 0)&&r&&l.height&&u>l.height&&(u=l.height,c=Do(Math.floor(u*r))),{width:c,height:u}}function tm(e,t,n){const r=t||1,i=Math.floor(e.height*r),a=Math.floor(e.width*r);e.height=Math.floor(e.height),e.width=Math.floor(e.width);const o=e.canvas;return o.style&&(n||!o.style.height&&!o.style.width)&&(o.style.height=`${e.height}px`,o.style.width=`${e.width}px`),e.currentDevicePixelRatio!==r||o.height!==i||o.width!==a?(e.currentDevicePixelRatio=r,o.height=i,o.width=a,e.ctx.setTransform(r,0,0,r,0,0),!0):!1}const U4=function(){let e=!1;try{const t={get passive(){return e=!0,!1}};Mh()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return e}();function nm(e,t){const n=A4(e,t),r=n&&n.match(/^(\d+)(\.\d+)?px$/);return r?+r[1]:void 0}function nr(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:e.y+n*(t.y-e.y)}}function V4(e,t,n,r){return{x:e.x+n*(t.x-e.x),y:r==="middle"?n<.5?e.y:t.y:r==="after"?n<1?e.y:t.y:n>0?t.y:e.y}}function H4(e,t,n,r){const i={x:e.cp2x,y:e.cp2y},a={x:t.cp1x,y:t.cp1y},o=nr(e,i,n),s=nr(i,a,n),l=nr(a,t,n),c=nr(o,s,n),u=nr(s,l,n);return nr(c,u,n)}const W4=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,r){return n-r},leftForLtr(n,r){return n-r}}},$4=function(){return{x(e){return e},setWidth(e){},textAlign(e){return e},xPlus(e,t){return e+t},leftForLtr(e,t){return e}}};function ni(e,t,n){return e?W4(t,n):$4()}function Qv(e,t){let n,r;(t==="ltr"||t==="rtl")&&(n=e.canvas.style,r=[n.getPropertyValue("direction"),n.getPropertyPriority("direction")],n.setProperty("direction",t,"important"),e.prevTextDirection=r)}function Xv(e,t){t!==void 0&&(delete e.prevTextDirection,e.canvas.style.setProperty("direction",t[0],t[1]))}function Gv(e){return e==="angle"?{between:Fa,compare:W5,normalize:kt}:{between:Sn,compare:(t,n)=>t-n,normalize:t=>t}}function rm({start:e,end:t,count:n,loop:r,style:i}){return{start:e%n,end:t%n,loop:r&&(t-e+1)%n===0,style:i}}function Y4(e,t,n){const{property:r,start:i,end:a}=n,{between:o,normalize:s}=Gv(r),l=t.length;let{start:c,end:u,loop:d}=e,h,f;if(d){for(c+=l,u+=l,h=0,f=l;hl(i,b,g)&&s(i,b)!==0,k=()=>s(a,g)===0||l(a,b,g),_=()=>y||w(),C=()=>!y||k();for(let E=u,L=u;E<=d;++E)v=t[E%o],!v.skip&&(g=c(v[r]),g!==b&&(y=l(g,i,a),x===null&&_()&&(x=s(g,i)===0?E:L),x!==null&&C()&&(m.push(rm({start:x,end:E,loop:h,count:o,style:f})),x=null),L=E,b=g));return x!==null&&m.push(rm({start:x,end:d,loop:h,count:o,style:f})),m}function K4(e,t){const n=[],r=e.segments;for(let i=0;ii&&e[a%t].skip;)a--;return a%=t,{start:i,end:a}}function X4(e,t,n,r){const i=e.length,a=[];let o=t,s=e[t],l;for(l=t+1;l<=n;++l){const c=e[l%i];c.skip||c.stop?s.skip||(r=!1,a.push({start:t%i,end:(l-1)%i,loop:r}),t=o=c.stop?l:null):(o=l,s.skip&&(t=l)),s=c}return o!==null&&a.push({start:t%i,end:o%i,loop:r}),a}function G4(e,t){const n=e.points,r=e.options.spanGaps,i=n.length;if(!i)return[];const a=!!e._loop,{start:o,end:s}=Q4(n,i,a,r);if(r===!0)return im(e,[{start:o,end:s,loop:a}],n,t);const l=ss({chart:t,initial:n.initial,numSteps:o,currentStep:Math.min(r-n.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=Fv.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let n=0;this._charts.forEach((r,i)=>{if(!r.running||!r.items.length)return;const a=r.items;let o=a.length-1,s=!1,l;for(;o>=0;--o)l=a[o],l._active?(l._total>r.duration&&(r.duration=l._total),l.tick(t),s=!0):(a[o]=a[a.length-1],a.pop());s&&(i.draw(),this._notify(i,r,t,"progress")),a.length||(r.running=!1,this._notify(i,r,t,"complete"),r.initial=!1),n+=a.length}),this._lastDate=t,n===0&&(this._running=!1)}_getAnims(t){const n=this._charts;let r=n.get(t);return r||(r={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},n.set(t,r)),r}listen(t,n,r){this._getAnims(t).listeners[n].push(r)}add(t,n){!n||!n.length||this._getAnims(t).items.push(...n)}has(t){return this._getAnims(t).items.length>0}start(t){const n=this._charts.get(t);n&&(n.running=!0,n.start=Date.now(),n.duration=n.items.reduce((r,i)=>Math.max(r,i._duration),0),this._refresh())}running(t){if(!this._running)return!1;const n=this._charts.get(t);return!(!n||!n.running||!n.items.length)}stop(t){const n=this._charts.get(t);if(!n||!n.items.length)return;const r=n.items;let i=r.length-1;for(;i>=0;--i)r[i].cancel();n.items=[],this._notify(t,n,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Yt=new e3;const om="transparent",t3={boolean(e,t,n){return n>.5?t:e},color(e,t,n){const r=Xp(e||om),i=r.valid&&Xp(t||om);return i&&i.valid?i.mix(r,n).hexString():t},number(e,t,n){return e+(t-e)*n}};class n3{constructor(t,n,r,i){const a=n[r];i=Lo([t.to,i,a,t.from]);const o=Lo([t.from,a,i]);this._active=!0,this._fn=t.fn||t3[t.type||typeof o],this._easing=sa[t.easing]||sa.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=r,this._from=o,this._to=i,this._promises=void 0}active(){return this._active}update(t,n,r){if(this._active){this._notify(!1);const i=this._target[this._prop],a=r-this._start,o=this._duration-a;this._start=r,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=a,this._loop=!!t.loop,this._to=Lo([t.to,n,i,t.from]),this._from=Lo([t.from,i,n])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const n=t-this._start,r=this._duration,i=this._prop,a=this._from,o=this._loop,s=this._to;let l;if(this._active=a!==s&&(o||n1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[i]=this._fn(a,s,l)}wait(){const t=this._promises||(this._promises=[]);return new Promise((n,r)=>{t.push({res:n,rej:r})})}_notify(t){const n=t?"res":"rej",r=this._promises||[];for(let i=0;i{const a=t[i];if(!Y(a))return;const o={};for(const s of n)o[s]=a[s];(ue(a.properties)&&a.properties||[i]).forEach(s=>{(s===i||!r.has(s))&&r.set(s,o)})})}_animateOptions(t,n){const r=n.options,i=i3(t,r);if(!i)return[];const a=this._createAnimations(i,r);return r.$shared&&r3(t.options.$animations,r).then(()=>{t.options=r},()=>{}),a}_createAnimations(t,n){const r=this._properties,i=[],a=t.$animations||(t.$animations={}),o=Object.keys(n),s=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if(c.charAt(0)==="$")continue;if(c==="options"){i.push(...this._animateOptions(t,n));continue}const u=n[c];let d=a[c];const h=r.get(c);if(d)if(h&&d.active()){d.update(h,u,s);continue}else d.cancel();if(!h||!h.duration){t[c]=u;continue}a[c]=d=new n3(h,t,c,u),i.push(d)}return i}update(t,n){if(this._properties.size===0){Object.assign(t,n);return}const r=this._createAnimations(t,n);if(r.length)return Yt.add(this._chart,r),!0}}function r3(e,t){const n=[],r=Object.keys(t);for(let i=0;i0||!n&&a<0)return i.index}return null}function dm(e,t){const{chart:n,_cachedMeta:r}=e,i=n._stacks||(n._stacks={}),{iScale:a,vScale:o,index:s}=r,l=a.axis,c=o.axis,u=l3(a,o,r),d=t.length;let h;for(let f=0;fn[r].axis===t).shift()}function d3(e,t){return Kn(e,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function h3(e,t,n){return Kn(e,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:n,index:t,mode:"default",type:"data"})}function Ti(e,t){const n=e.controller.index,r=e.vScale&&e.vScale.axis;if(r){t=t||e._parsed;for(const i of t){const a=i._stacks;if(!a||a[r]===void 0||a[r][n]===void 0)return;delete a[r][n],a[r]._visualValues!==void 0&&a[r]._visualValues[n]!==void 0&&delete a[r]._visualValues[n]}}}const yc=e=>e==="reset"||e==="none",hm=(e,t)=>t?e:Object.assign({},e),f3=(e,t,n)=>e&&!t.hidden&&t._stacked&&{keys:Zv(n,!0),values:null};class mr{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(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=cm(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&&Ti(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,n=this._cachedMeta,r=this.getDataset(),i=(d,h,f,m)=>d==="x"?h:d==="r"?m:f,a=n.xAxisID=U(r.xAxisID,vc(t,"x")),o=n.yAxisID=U(r.yAxisID,vc(t,"y")),s=n.rAxisID=U(r.rAxisID,vc(t,"r")),l=n.indexAxis,c=n.iAxisID=i(l,a,o,s),u=n.vAxisID=i(l,o,a,s);n.xScale=this.getScaleForId(a),n.yScale=this.getScaleForId(o),n.rScale=this.getScaleForId(s),n.iScale=this.getScaleForId(c),n.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const n=this._cachedMeta;return t===n.iScale?n.vScale:n.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&qp(this._data,this),t._stacked&&Ti(t)}_dataCheck(){const t=this.getDataset(),n=t.data||(t.data=[]),r=this._data;if(Y(n)){const i=this._cachedMeta;this._data=s3(n,i)}else if(r!==n){if(r){qp(r,this);const i=this._cachedMeta;Ti(i),i._parsed=[]}n&&Object.isExtensible(n)&&K5(n,this),this._syncList=[],this._data=n}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const n=this._cachedMeta,r=this.getDataset();let i=!1;this._dataCheck();const a=n._stacked;n._stacked=cm(n.vScale,n),n.stack!==r.stack&&(i=!0,Ti(n),n.stack=r.stack),this._resyncElements(t),(i||a!==n._stacked)&&dm(this,n._parsed)}configure(){const t=this.chart.config,n=t.datasetScopeKeys(this._type),r=t.getOptionScopes(this.getDataset(),n,!0);this.options=t.createResolver(r,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,n){const{_cachedMeta:r,_data:i}=this,{iScale:a,_stacked:o}=r,s=a.axis;let l=t===0&&n===i.length?!0:r._sorted,c=t>0&&r._parsed[t-1],u,d,h;if(this._parsing===!1)r._parsed=i,r._sorted=!0,h=i;else{ue(i[t])?h=this.parseArrayData(r,i,t,n):Y(i[t])?h=this.parseObjectData(r,i,t,n):h=this.parsePrimitiveData(r,i,t,n);const f=()=>d[s]===null||c&&d[s]y||d=0;--h)if(!m()){this.updateRangeFromParsed(c,t,f,l);break}}return c}getAllParsedValues(t){const n=this._cachedMeta._parsed,r=[];let i,a,o;for(i=0,a=n.length;i=0&&tthis.getContext(r,i,n),y=c.resolveNamedOptions(h,f,m,d);return y.$shared&&(y.$shared=l,a[o]=Object.freeze(hm(y,l))),y}_resolveAnimations(t,n,r){const i=this.chart,a=this._cachedDataOpts,o=`animation-${n}`,s=a[o];if(s)return s;let l;if(i.options.animation!==!1){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,n),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(t,r,n))}const c=new Jv(i,l&&l.animations);return l&&l._cacheable&&(a[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,n){return!n||yc(t)||this.chart._animationsDisabled}_getSharedOptions(t,n){const r=this.resolveDataElementOptions(t,n),i=this._sharedOptions,a=this.getSharedOptions(r),o=this.includeOptions(n,a)||a!==i;return this.updateSharedOptions(a,n,r),{sharedOptions:a,includeOptions:o}}updateElement(t,n,r,i){yc(i)?Object.assign(t,r):this._resolveAnimations(n,i).update(t,r)}updateSharedOptions(t,n,r){t&&!yc(n)&&this._resolveAnimations(void 0,n).update(t,r)}_setStyle(t,n,r,i){t.active=i;const a=this.getStyle(n,i);this._resolveAnimations(n,r,i).update(t,{options:!i&&this.getSharedOptions(a)||a})}removeHoverStyle(t,n,r){this._setStyle(t,r,"active",!1)}setHoverStyle(t,n,r){this._setStyle(t,r,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const n=this._data,r=this._cachedMeta.data;for(const[s,l,c]of this._syncList)this[s](l,c);this._syncList=[];const i=r.length,a=n.length,o=Math.min(a,i);o&&this.parse(0,o),a>i?this._insertElements(i,a-i,t):a{for(c.length+=n,s=c.length-1;s>=o;s--)c[s]=c[s-n]};for(l(a),s=t;si-a))}return e._cache.$bar}function m3(e){const t=e.iScale,n=p3(t,e.type);let r=t._length,i,a,o,s;const l=()=>{o===32767||o===-32768||(za(s)&&(r=Math.min(r,Math.abs(o-s)||r)),s=o)};for(i=0,a=n.length;i0?i[e-1]:null,s=eMath.abs(s)&&(l=s,c=o),t[n.axis]=c,t._custom={barStart:l,barEnd:c,start:i,end:a,min:o,max:s}}function e1(e,t,n,r){return ue(e)?v3(e,t,n,r):t[n.axis]=n.parse(e,r),t}function fm(e,t,n,r){const i=e.iScale,a=e.vScale,o=i.getLabels(),s=i===a,l=[];let c,u,d,h;for(c=n,u=n+r;c=n?1:-1)}function x3(e){let t,n,r,i,a;return e.horizontal?(t=e.base>e.x,n="left",r="right"):(t=e.basel.controller.options.grouped),a=r.options.stacked,o=[],s=l=>{const c=l.controller.getParsed(n),u=c&&c[l.vScale.axis];if(K(u)||isNaN(u))return!0};for(const l of i)if(!(n!==void 0&&s(l))&&((a===!1||o.indexOf(l.stack)===-1||a===void 0&&l.stack===void 0)&&o.push(l.stack),l.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,n,r){const i=this._getStacks(t,r),a=n!==void 0?i.indexOf(n):-1;return a===-1?i.length-1:a}_getRuler(){const t=this.options,n=this._cachedMeta,r=n.iScale,i=[];let a,o;for(a=0,o=n.data.length;aFa(b,s,l,!0)?1:Math.max(w,w*n,k,k*n),m=(b,w,k)=>Fa(b,s,l,!0)?-1:Math.min(w,w*n,k,k*n),y=f(0,c,d),x=f(be,u,h),g=m(le,c,d),v=m(le+be,u,h);r=(y-g)/2,i=(x-v)/2,a=-(y+g)/2,o=-(x+v)/2}return{ratioX:r,ratioY:i,offsetX:a,offsetY:o}}class Wi extends mr{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){const r=this.getDataset().data,i=this._cachedMeta;if(this._parsing===!1)i._parsed=r;else{let a=l=>+r[l];if(Y(r[t])){const{key:l="value"}=this._parsing;a=c=>+Cr(r[c],l)}let o,s;for(o=t,s=t+n;o0&&!isNaN(t)?se*(Math.abs(t)/n):0}getLabelAndValue(t){const n=this._cachedMeta,r=this.chart,i=r.data.labels||[],a=Nl(n._parsed[t],r.options.locale);return{label:i[t]||"",value:a}}getMaxBorderWidth(t){let n=0;const r=this.chart;let i,a,o,s,l;if(!t){for(i=0,a=r.data.datasets.length;ie!=="spacing",_indexable:e=>e!=="spacing"&&!e.startsWith("borderDash")&&!e.startsWith("hoverBorderDash")}),R(Wi,"overrides",{aspectRatio:1,plugins:{legend:{labels:{generateLabels(e){const t=e.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:n,color:r}}=e.legend.options;return t.labels.map((i,a)=>{const o=e.getDatasetMeta(0).controller.getStyle(a);return{text:i,fillStyle:o.backgroundColor,strokeStyle:o.borderColor,fontColor:r,lineWidth:o.borderWidth,pointStyle:n,hidden:!e.getDataVisibility(a),index:a}})}return[]}},onClick(e,t,n){n.chart.toggleDataVisibility(t.index),n.chart.update()}}}});class ls extends mr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const n=this._cachedMeta,{dataset:r,data:i=[],_dataset:a}=n,o=this.chart._animationsDisabled;let{start:s,count:l}=G5(n,i,o);this._drawStart=s,this._drawCount=l,J5(n)&&(s=0,l=i.length),r._chart=this.chart,r._datasetIndex=this.index,r._decimated=!!a._decimated,r.points=i;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(r,void 0,{animated:!o,options:c},t),this.updateElements(i,s,l,t)}updateElements(t,n,r,i){const a=i==="reset",{iScale:o,vScale:s,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(n,i),h=o.axis,f=s.axis,{spanGaps:m,segment:y}=this.options,x=Ia(m)?m:Number.POSITIVE_INFINITY,g=this.chart._animationsDisabled||a||i==="none",v=n+r,b=t.length;let w=n>0&&this.getParsed(n-1);for(let k=0;k=v){C.skip=!0;continue}const E=this.getParsed(k),L=K(E[f]),M=C[h]=o.getPixelForValue(E[h],k),z=C[f]=a||L?s.getBasePixel():s.getPixelForValue(l?this.applyStack(s,E,l):E[f],k);C.skip=isNaN(M)||isNaN(z)||L,C.stop=k>0&&Math.abs(E[h]-w[h])>x,y&&(C.parsed=E,C.raw=c.data[k]),d&&(C.options=u||this.resolveDataElementOptions(k,_.active?"active":i)),g||this.updateElement(_,k,C,i),w=E}}getMaxOverflow(){const t=this._cachedMeta,n=t.dataset,r=n.options&&n.options.borderWidth||0,i=t.data||[];if(!i.length)return r;const a=i[0].size(this.resolveDataElementOptions(0)),o=i[i.length-1].size(this.resolveDataElementOptions(i.length-1));return Math.max(r,a,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}R(ls,"id","line"),R(ls,"defaults",{datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1}),R(ls,"overrides",{scales:{_index_:{type:"category"},_value_:{type:"linear"}}});function Gn(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class jh{constructor(t){R(this,"options"),this.options=t||{}}static override(t){Object.assign(jh.prototype,t)}init(){}formats(){return Gn()}parse(){return Gn()}format(){return Gn()}add(){return Gn()}diff(){return Gn()}startOf(){return Gn()}endOf(){return Gn()}}var C3={_date:jh};function E3(e,t,n,r){const{controller:i,data:a,_sorted:o}=e,s=i._cachedMeta.iScale;if(s&&t===s.axis&&t!=="r"&&o&&a.length){const l=s._reversePixels?Y5:cr;if(r){if(i._sharedOptions){const c=a[0],u=typeof c.getRange=="function"&&c.getRange(t);if(u){const d=l(a,t,n-u),h=l(a,t,n+u);return{lo:d.lo,hi:h.hi}}}}else return l(a,t,n)}return{lo:0,hi:a.length-1}}function to(e,t,n,r,i){const a=e.getSortedVisibleDatasetMetas(),o=n[t];for(let s=0,l=a.length;s{l[o](t[n],i)&&(a.push({element:l,datasetIndex:c,index:u}),s=s||l.inRange(t.x,t.y,i))}),r&&!s?[]:a}var O3={evaluateInteractionItems:to,modes:{index(e,t,n,r){const i=tr(t,e),a=n.axis||"x",o=n.includeInvisible||!1,s=n.intersect?wc(e,i,a,r,o):kc(e,i,a,!1,r,o),l=[];return s.length?(e.getSortedVisibleDatasetMetas().forEach(c=>{const u=s[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(e,t,n,r){const i=tr(t,e),a=n.axis||"xy",o=n.includeInvisible||!1;let s=n.intersect?wc(e,i,a,r,o):kc(e,i,a,!1,r,o);if(s.length>0){const l=s[0].datasetIndex,c=e.getDatasetMeta(l).data;s=[];for(let u=0;un.pos===t)}function bm(e,t){return e.filter(n=>t1.indexOf(n.pos)===-1&&n.box.axis===t)}function Li(e,t){return e.sort((n,r)=>{const i=t?r:n,a=t?n:r;return i.weight===a.weight?i.index-a.index:i.weight-a.weight})}function j3(e){const t=[];let n,r,i,a,o,s;for(n=0,r=(e||[]).length;nc.box.fullSize),!0),r=Li(Ri(t,"left"),!0),i=Li(Ri(t,"right")),a=Li(Ri(t,"top"),!0),o=Li(Ri(t,"bottom")),s=bm(t,"x"),l=bm(t,"y");return{fullSize:n,leftAndTop:r.concat(a),rightAndBottom:i.concat(l).concat(o).concat(s),chartArea:Ri(t,"chartArea"),vertical:r.concat(i).concat(l),horizontal:a.concat(o).concat(s)}}function vm(e,t,n,r){return Math.max(e[n],t[n])+Math.max(e[r],t[r])}function n1(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 A3(e,t,n,r){const{pos:i,box:a}=n,o=e.maxPadding;if(!Y(i)){n.size&&(e[i]-=n.size);const d=r[n.stack]||{size:0,count:1};d.size=Math.max(d.size,n.horizontal?a.height:a.width),n.size=d.size/d.count,e[i]+=n.size}a.getPadding&&n1(o,a.getPadding());const s=Math.max(0,t.outerWidth-vm(o,e,"left","right")),l=Math.max(0,t.outerHeight-vm(o,e,"top","bottom")),c=s!==e.w,u=l!==e.h;return e.w=s,e.h=l,n.horizontal?{same:c,other:u}:{same:u,other:c}}function D3(e){const t=e.maxPadding;function n(r){const i=Math.max(t[r]-e[r],0);return e[r]+=i,i}e.y+=n("top"),e.x+=n("left"),n("right"),n("bottom")}function z3(e,t){const n=t.maxPadding;function r(i){const a={left:0,top:0,right:0,bottom:0};return i.forEach(o=>{a[o]=Math.max(t[o],n[o])}),a}return r(e?["left","right"]:["top","bottom"])}function $i(e,t,n,r){const i=[];let a,o,s,l,c,u;for(a=0,o=e.length,c=0;a{typeof y.beforeLayout=="function"&&y.beforeLayout()});const u=l.reduce((y,x)=>x.box.options&&x.box.options.display===!1?y:y+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:n,padding:i,availableWidth:a,availableHeight:o,vBoxMaxWidth:a/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},i);n1(h,Fe(r));const f=Object.assign({maxPadding:h,w:a,h:o,x:i.left,y:i.top},i),m=R3(l.concat(c),d);$i(s.fullSize,f,d,m),$i(l,f,d,m),$i(c,f,d,m)&&$i(l,f,d,m),D3(f),ym(s.leftAndTop,f,d,m),f.x+=f.w,f.y+=f.h,ym(s.rightAndBottom,f,d,m),e.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},q(s.chartArea,y=>{const x=y.box;Object.assign(x,e.chartArea),x.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class r1{acquireContext(t,n){}releaseContext(t){return!1}addEventListener(t,n,r){}removeEventListener(t,n,r){}getDevicePixelRatio(){return 1}getMaximumSize(t,n,r,i){return n=Math.max(0,n||t.width),r=r||t.height,{width:n,height:Math.max(0,i?Math.floor(n/i):r)}}isAttached(t){return!0}updateConfig(t){}}class I3 extends r1{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const cs="$chartjs",F3={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},xm=e=>e===null||e==="";function B3(e,t){const n=e.style,r=e.getAttribute("height"),i=e.getAttribute("width");if(e[cs]={initial:{height:r,width:i,style:{display:n.display,height:n.height,width:n.width}}},n.display=n.display||"block",n.boxSizing=n.boxSizing||"border-box",xm(i)){const a=nm(e,"width");a!==void 0&&(e.width=a)}if(xm(r))if(e.style.height==="")e.height=e.width/(t||2);else{const a=nm(e,"height");a!==void 0&&(e.height=a)}return e}const i1=U4?{passive:!0}:!1;function U3(e,t,n){e&&e.addEventListener(t,n,i1)}function V3(e,t,n){e&&e.canvas&&e.canvas.removeEventListener(t,n,i1)}function H3(e,t){const n=F3[e.type]||e.type,{x:r,y:i}=tr(e,t);return{type:n,chart:t,native:e,x:r!==void 0?r:null,y:i!==void 0?i:null}}function Xs(e,t){for(const n of e)if(n===t||n.contains(t))return!0}function W3(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Xs(s.addedNodes,r),o=o&&!Xs(s.removedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}function $3(e,t,n){const r=e.canvas,i=new MutationObserver(a=>{let o=!1;for(const s of a)o=o||Xs(s.removedNodes,r),o=o&&!Xs(s.addedNodes,r);o&&n()});return i.observe(document,{childList:!0,subtree:!0}),i}const Ua=new Map;let wm=0;function a1(){const e=window.devicePixelRatio;e!==wm&&(wm=e,Ua.forEach((t,n)=>{n.currentDevicePixelRatio!==e&&t()}))}function Y3(e,t){Ua.size||window.addEventListener("resize",a1),Ua.set(e,t)}function q3(e){Ua.delete(e),Ua.size||window.removeEventListener("resize",a1)}function K3(e,t,n){const r=e.canvas,i=r&&Oh(r);if(!i)return;const a=Bv((s,l)=>{const c=i.clientWidth;n(s,l),c{const l=s[0],c=l.contentRect.width,u=l.contentRect.height;c===0&&u===0||a(c,u)});return o.observe(i),Y3(e,a),o}function _c(e,t,n){n&&n.disconnect(),t==="resize"&&q3(e)}function Q3(e,t,n){const r=e.canvas,i=Bv(a=>{e.ctx!==null&&n(H3(a,e))},e);return U3(r,t,i),i}class X3 extends r1{acquireContext(t,n){const r=t&&t.getContext&&t.getContext("2d");return r&&r.canvas===t?(B3(t,n),r):null}releaseContext(t){const n=t.canvas;if(!n[cs])return!1;const r=n[cs].initial;["height","width"].forEach(a=>{const o=r[a];K(o)?n.removeAttribute(a):n.setAttribute(a,o)});const i=r.style||{};return Object.keys(i).forEach(a=>{n.style[a]=i[a]}),n.width=n.width,delete n[cs],!0}addEventListener(t,n,r){this.removeEventListener(t,n);const i=t.$proxies||(t.$proxies={}),a={attach:W3,detach:$3,resize:K3}[n]||Q3;i[n]=a(t,n,r)}removeEventListener(t,n){const r=t.$proxies||(t.$proxies={}),i=r[n];i&&(({attach:_c,detach:_c,resize:_c}[n]||V3)(t,n,i),r[n]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,n,r,i){return B4(t,n,r,i)}isAttached(t){const n=t&&Oh(t);return!!(n&&n.isConnected)}}function G3(e){return!Mh()||typeof OffscreenCanvas<"u"&&e instanceof OffscreenCanvas?I3:X3}class Mt{constructor(){R(this,"x"),R(this,"y"),R(this,"active",!1),R(this,"options"),R(this,"$animations")}tooltipPosition(t){const{x:n,y:r}=this.getProps(["x","y"],t);return{x:n,y:r}}hasValue(){return Ia(this.x)&&Ia(this.y)}getProps(t,n){const r=this.$animations;if(!n||!r)return this;const i={};return t.forEach(a=>{i[a]=r[a]&&r[a].active()?r[a]._to:this[a]}),i}}R(Mt,"defaults",{}),R(Mt,"defaultRoutes");function J3(e,t){const n=e.options.ticks,r=Z3(e),i=Math.min(n.maxTicksLimit||r,r),a=n.major.enabled?tC(t):[],o=a.length,s=a[0],l=a[o-1],c=[];if(o>i)return nC(t,c,a,o/i),c;const u=eC(a,t,i);if(o>0){let d,h;const f=o>1?Math.round((l-s)/(o-1)):null;for(Io(t,c,u,K(f)?0:s-f,s),d=0,h=o-1;di)return l}return Math.max(i,1)}function tC(e){const t=[];let n,r;for(n=0,r=e.length;ne==="left"?"right":e==="right"?"left":e,km=(e,t,n)=>t==="top"||t==="left"?e[t]+n:e[t]-n,_m=(e,t)=>Math.min(t||e,e);function Sm(e,t){const n=[],r=e.length/t,i=e.length;let a=0;for(;ao+s)))return l}function oC(e,t){q(e,n=>{const r=n.gc,i=r.length/2;let a;if(i>t){for(a=0;ar?r:n,r=i&&n>r?n:r,{min:tt(n,tt(r,n)),max:tt(r,tt(n,r))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){J(this.options.beforeUpdate,[this])}update(t,n,r){const{beginAtZero:i,grace:a,ticks:o}=this.options,s=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=n,this._margins=r=Object.assign({left:0,right:0,top:0,bottom:0},r),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+r.left+r.right:this.height+r.top+r.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=v4(this,a,i),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=s=a||r<=1||!this.isHorizontal()){this.labelRotation=i;return}const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,f=ze(this.chart.width-d,0,this.maxWidth);s=t.offset?this.maxWidth/r:f/(r-1),d+6>s&&(s=f/(r-(t.offset?.5:1)),l=this.maxHeight-Ai(t.grid)-n.padding-Cm(t.title,this.chart.options.font),c=Math.sqrt(d*d+h*h),o=yh(Math.min(Math.asin(ze((u.highest.height+6)/s,-1,1)),Math.asin(ze(l/c,-1,1))-Math.asin(ze(h/c,-1,1)))),o=Math.max(i,Math.min(a,o))),this.labelRotation=o}afterCalculateLabelRotation(){J(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){J(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:n,options:{ticks:r,title:i,grid:a}}=this,o=this._isVisible(),s=this.isHorizontal();if(o){const l=Cm(i,n.options.font);if(s?(t.width=this.maxWidth,t.height=Ai(a)+l):(t.height=this.maxHeight,t.width=Ai(a)+l),r.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:h}=this._getLabelSizes(),f=r.padding*2,m=Ft(this.labelRotation),y=Math.cos(m),x=Math.sin(m);if(s){const g=r.mirror?0:x*d.width+y*h.height;t.height=Math.min(this.maxHeight,t.height+g+f)}else{const g=r.mirror?0:y*d.width+x*h.height;t.width=Math.min(this.maxWidth,t.width+g+f)}this._calculatePadding(c,u,x,y)}}this._handleMargins(),s?(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,r,i){const{ticks:{align:a,padding:o},position:s}=this.options,l=this.labelRotation!==0,c=s!=="top"&&this.axis==="x";if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?c?(h=i*t.width,f=r*n.height):(h=r*t.height,f=i*n.width):a==="start"?f=n.width:a==="end"?h=t.width:a!=="inner"&&(h=t.width/2,f=n.width/2),this.paddingLeft=Math.max((h-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-d+o)*this.width/(this.width-d),0)}else{let u=n.height/2,d=t.height/2;a==="start"?(u=0,d=t.height):a==="end"&&(u=n.height,d=0),this.paddingTop=u+o,this.paddingBottom=d+o}}_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(){J(this.options.afterFit,[this])}isHorizontal(){const{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,r;for(n=0,r=t.length;n({width:o[L]||0,height:s[L]||0});return{first:E(0),last:E(n-1),widest:E(_),highest:E(C),widths:o,heights:s}}getLabelForValue(t){return t}getPixelForValue(t,n){return NaN}getValueForPixel(t){}getPixelForTick(t){const n=this.ticks;return t<0||t>n.length-1?null:this.getPixelForValue(n[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const n=this._startPixel+t*this._length;return $5(this._alignToPixels?Xn(this.chart,n,0):n)}getDecimalForPixel(t){const n=(t-this._startPixel)/this._length;return this._reversePixels?1-n:n}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:n}=this;return t<0&&n<0?n:t>0&&n>0?t:0}getContext(t){const n=this.ticks||[];if(t>=0&&ts*i?s/r:l/i:l*i0}_computeGridLineItems(t){const n=this.axis,r=this.chart,i=this.options,{grid:a,position:o,border:s}=i,l=a.offset,c=this.isHorizontal(),u=this.ticks.length+(l?1:0),d=Ai(a),h=[],f=s.setContext(this.getContext()),m=f.display?f.width:0,y=m/2,x=function(B){return Xn(r,B,m)};let g,v,b,w,k,_,C,E,L,M,z,V;if(o==="top")g=x(this.bottom),_=this.bottom-d,E=g-y,M=x(t.top)+y,V=t.bottom;else if(o==="bottom")g=x(this.top),M=t.top,V=x(t.bottom)-y,_=g+y,E=this.top+d;else if(o==="left")g=x(this.right),k=this.right-d,C=g-y,L=x(t.left)+y,z=t.right;else if(o==="right")g=x(this.left),L=t.left,z=x(t.right)-y,k=g+y,C=this.left+d;else if(n==="x"){if(o==="center")g=x((t.top+t.bottom)/2+.5);else if(Y(o)){const B=Object.keys(o)[0],X=o[B];g=x(this.chart.scales[B].getPixelForValue(X))}M=t.top,V=t.bottom,_=g+y,E=_+d}else if(n==="y"){if(o==="center")g=x((t.left+t.right)/2);else if(Y(o)){const B=Object.keys(o)[0],X=o[B];g=x(this.chart.scales[B].getPixelForValue(X))}k=g-y,C=k-d,L=t.left,z=t.right}const xe=U(i.ticks.maxTicksLimit,u),Te=Math.max(1,Math.ceil(u/xe));for(v=0;v0&&(Ze-=Be/2);break}G={left:Ze,top:Ht,width:Be+te.width,height:jt+te.height,color:B.backdropColor}}x.push({label:w,font:L,textOffset:V,options:{rotation:y,color:Pe,strokeColor:O,strokeWidth:D,textAlign:I,textBaseline:xe,translation:[k,_],backdrop:G}})}return x}_getXAxisLabelAlignment(){const{position:t,ticks:n}=this.options;if(-Ft(this.labelRotation))return t==="top"?"left":"right";let r="center";return n.align==="start"?r="left":n.align==="end"?r="right":n.align==="inner"&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:n,ticks:{crossAlign:r,mirror:i,padding:a}}=this.options,o=this._getLabelSizes(),s=t+a,l=o.widest.width;let c,u;return n==="left"?i?(u=this.right+a,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-s,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u=this.left)):n==="right"?i?(u=this.left+a,r==="near"?c="right":r==="center"?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+s,r==="near"?c="left":r==="center"?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const 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(){const{ctx:t,options:{backgroundColor:n},left:r,top:i,width:a,height:o}=this;n&&(t.save(),t.fillStyle=n,t.fillRect(r,i,a,o),t.restore())}getLineWidthForValue(t){const n=this.options.grid;if(!this._isVisible()||!n.display)return 0;const r=this.ticks.findIndex(i=>i.value===t);return r>=0?n.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const n=this.options.grid,r=this.ctx,i=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let a,o;const s=(l,c,u)=>{!u.width||!u.color||(r.save(),r.lineWidth=u.width,r.strokeStyle=u.color,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset,r.beginPath(),r.moveTo(l.x,l.y),r.lineTo(c.x,c.y),r.stroke(),r.restore())};if(n.display)for(a=0,o=i.length;a{this.draw(a)}}]:[{z:r,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:i,draw:()=>{this.drawBorder()}},{z:n,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const n=this.chart.getSortedVisibleDatasetMetas(),r=this.axis+"AxisID",i=[];let a,o;for(a=0,o=n.length;a{const r=n.split("."),i=r.pop(),a=[e].concat(r).join("."),o=t[n].split("."),s=o.pop(),l=o.join(".");me.route(a,i,l,s)})}function fC(e){return"id"in e&&"defaults"in e}class pC{constructor(){this.controllers=new Fo(mr,"datasets",!0),this.elements=new Fo(Mt,"elements"),this.plugins=new Fo(Object,"plugins"),this.scales=new Fo(Or,"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,r){[...n].forEach(i=>{const a=r||this._getRegistryForType(i);r||a.isForType(i)||a===this.plugins&&i.id?this._exec(t,a,i):q(i,o=>{const s=r||this._getRegistryForType(o);this._exec(t,s,o)})})}_exec(t,n,r){const i=vh(t);J(r["before"+i],[],r),n[t](r),J(r["after"+i],[],r)}_getRegistryForType(t){for(let n=0;na.filter(s=>!o.some(l=>s.plugin.id===l.plugin.id));this._notify(i(n,r),t,"stop"),this._notify(i(r,n),t,"start")}}function gC(e){const t={},n=[],r=Object.keys(At.plugins.items);for(let a=0;a1&&Em(e[0].toLowerCase());if(r)return r}throw new Error(`Cannot determine type of '${e}' axis. Please provide 'axis' or 'position' option.`)}function Nm(e,t,n){if(n[t+"AxisID"]===e)return{axis:t}}function _C(e,t){if(t.data&&t.data.datasets){const n=t.data.datasets.filter(r=>r.xAxisID===e||r.yAxisID===e);if(n.length)return Nm(e,"x",n[0])||Nm(e,"y",n[0])}return{}}function SC(e,t){const n=Er[e.type]||{scales:{}},r=t.scales||{},i=$u(e.type,t),a=Object.create(null);return Object.keys(r).forEach(o=>{const s=r[o];if(!Y(s))return console.error(`Invalid scale configuration for scale: ${o}`);if(s._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=Yu(o,s,_C(o,e),me.scales[s.type]),c=wC(l,i),u=n.scales||{};a[o]=aa(Object.create(null),[{axis:l},s,u[l],u[c]])}),e.data.datasets.forEach(o=>{const s=o.type||e.type,l=o.indexAxis||$u(s,t),c=(Er[s]||{}).scales||{};Object.keys(c).forEach(u=>{const d=xC(u,l),h=o[d+"AxisID"]||d;a[h]=a[h]||Object.create(null),aa(a[h],[{axis:d},r[h],c[u]])})}),Object.keys(a).forEach(o=>{const s=a[o];aa(s,[me.scales[s.type],me.scale])}),a}function o1(e){const t=e.options||(e.options={});t.plugins=U(t.plugins,{}),t.scales=SC(e,t)}function s1(e){return e=e||{},e.datasets=e.datasets||[],e.labels=e.labels||[],e}function CC(e){return e=e||{},e.data=s1(e.data),o1(e),e}const Pm=new Map,l1=new Set;function Bo(e,t){let n=Pm.get(e);return n||(n=t(),Pm.set(e,n),l1.add(n)),n}const Di=(e,t,n)=>{const r=Cr(t,n);r!==void 0&&e.add(r)};class EC{constructor(t){this._config=CC(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=s1(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),o1(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Bo(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,n){return Bo(`${t}.transition.${n}`,()=>[[`datasets.${t}.transitions.${n}`,`transitions.${n}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,n){return Bo(`${t}-${n}`,()=>[[`datasets.${t}.elements.${n}`,`datasets.${t}`,`elements.${n}`,""]])}pluginScopeKeys(t){const n=t.id,r=this.type;return Bo(`${r}-plugin-${n}`,()=>[[`plugins.${n}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,n){const r=this._scopeCache;let i=r.get(t);return(!i||n)&&(i=new Map,r.set(t,i)),i}getOptionScopes(t,n,r){const{options:i,type:a}=this,o=this._cachedScopes(t,r),s=o.get(n);if(s)return s;const l=new Set;n.forEach(u=>{t&&(l.add(t),u.forEach(d=>Di(l,t,d))),u.forEach(d=>Di(l,i,d)),u.forEach(d=>Di(l,Er[a]||{},d)),u.forEach(d=>Di(l,me,d)),u.forEach(d=>Di(l,Hu,d))});const c=Array.from(l);return c.length===0&&c.push(Object.create(null)),l1.has(n)&&o.set(n,c),c}chartOptionScopes(){const{options:t,type:n}=this;return[t,Er[n]||{},me.datasets[n]||{},{type:n},me,Hu]}resolveNamedOptions(t,n,r,i=[""]){const a={$shared:!0},{resolver:o,subPrefixes:s}=Mm(this._resolverCache,t,i);let l=o;if(PC(o,n)){a.$shared=!1,r=Vn(r)?r():r;const c=this.createResolver(t,r,s);l=di(o,r,c)}for(const c of n)a[c]=l[c];return a}createResolver(t,n,r=[""],i){const{resolver:a}=Mm(this._resolverCache,t,r);return Y(n)?di(a,n,void 0,i):a}}function Mm(e,t,n){let r=e.get(t);r||(r=new Map,e.set(t,r));const i=n.join();let a=r.get(i);return a||(a={resolver:Eh(t,n),subPrefixes:n.filter(o=>!o.toLowerCase().includes("hover"))},r.set(i,a)),a}const NC=e=>Y(e)&&Object.getOwnPropertyNames(e).some(t=>Vn(e[t]));function PC(e,t){const{isScriptable:n,isIndexable:r}=Wv(e);for(const i of t){const a=n(i),o=r(i),s=(o||a)&&e[i];if(a&&(Vn(s)||NC(s))||o&&ue(s))return!0}return!1}var MC="4.4.3";const OC=["top","bottom","left","right","chartArea"];function Om(e,t){return e==="top"||e==="bottom"||OC.indexOf(e)===-1&&t==="x"}function jm(e,t){return function(n,r){return n[e]===r[e]?n[t]-r[t]:n[e]-r[e]}}function Tm(e){const t=e.chart,n=t.options.animation;t.notifyPlugins("afterRender"),J(n&&n.onComplete,[e],t)}function jC(e){const t=e.chart,n=t.options.animation;J(n&&n.onProgress,[e],t)}function c1(e){return Mh()&&typeof e=="string"?e=document.getElementById(e):e&&e.length&&(e=e[0]),e&&e.canvas&&(e=e.canvas),e}const us={},Rm=e=>{const t=c1(e);return Object.values(us).filter(n=>n.canvas===t).pop()};function TC(e,t,n){const r=Object.keys(e);for(const i of r){const a=+i;if(a>=t){const o=e[i];delete e[i],(n>0||a>t)&&(e[a+n]=o)}}}function RC(e,t,n,r){return!n||e.type==="mouseout"?null:r?t:e}function Uo(e,t,n){return e.options.clip?e[n]:t[n]}function LC(e,t){const{xScale:n,yScale:r}=e;return n&&r?{left:Uo(n,t,"left"),right:Uo(n,t,"right"),top:Uo(r,t,"top"),bottom:Uo(r,t,"bottom")}:t}var pn;let Ol=(pn=class{static register(...e){At.add(...e),Lm()}static unregister(...e){At.remove(...e),Lm()}constructor(e,t){const n=this.config=new EC(t),r=c1(e),i=Rm(r);if(i)throw new Error("Canvas is already in use. Chart with ID '"+i.id+"' must be destroyed before the canvas with ID '"+i.canvas.id+"' can be reused.");const a=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||G3(r)),this.platform.updateConfig(n);const o=this.platform.acquireContext(r,a.aspectRatio),s=o&&o.canvas,l=s&&s.height,c=s&&s.width;if(this.id=R5(),this.ctx=o,this.canvas=s,this.width=c,this.height=l,this._options=a,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 mC,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=Q5(u=>this.update(u),a.resizeDelay||0),this._dataChanges=[],us[this.id]=this,!o||!s){console.error("Failed to create chart: can't acquire context from the given item");return}Yt.listen(this,"complete",Tm),Yt.listen(this,"progress",jC),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:e,maintainAspectRatio:t},width:n,height:r,_aspectRatio:i}=this;return K(e)?t&&i?i:r?n/r:null:e}get data(){return this.config.data}set data(e){this.config.data=e}get options(){return this._options}set options(e){this.config.options=e}get registry(){return At}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():tm(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Jp(this.canvas,this.ctx),this}stop(){return Yt.stop(this),this}resize(e,t){Yt.running(this)?this._resizeBeforeDraw={width:e,height:t}:this._resize(e,t)}_resize(e,t){const n=this.options,r=this.canvas,i=n.maintainAspectRatio&&this.aspectRatio,a=this.platform.getMaximumSize(r,e,t,i),o=n.devicePixelRatio||this.platform.getDevicePixelRatio(),s=this.width?"resize":"attach";this.width=a.width,this.height=a.height,this._aspectRatio=this.aspectRatio,tm(this,o,!0)&&(this.notifyPlugins("resize",{size:a}),J(n.onResize,[this,a],this),this.attached&&this._doResize(s)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};q(e,(t,n)=>{t.id=n})}buildOrUpdateScales(){const e=this.options,t=e.scales,n=this.scales,r=Object.keys(n).reduce((a,o)=>(a[o]=!1,a),{});let i=[];t&&(i=i.concat(Object.keys(t).map(a=>{const o=t[a],s=Yu(a,o),l=s==="r",c=s==="x";return{options:o,dposition:l?"chartArea":c?"bottom":"left",dtype:l?"radialLinear":c?"category":"linear"}}))),q(i,a=>{const o=a.options,s=o.id,l=Yu(s,o),c=U(o.type,a.dtype);(o.position===void 0||Om(o.position,l)!==Om(a.dposition))&&(o.position=a.dposition),r[s]=!0;let u=null;if(s in n&&n[s].type===c)u=n[s];else{const d=At.getScale(c);u=new d({id:s,type:c,ctx:this.ctx,chart:this}),n[u.id]=u}u.init(o,e)}),q(r,(a,o)=>{a||delete n[o]}),q(n,a=>{ft.configure(this,a,a.options),ft.addBox(this,a)})}_updateMetasets(){const e=this._metasets,t=this.data.datasets.length,n=e.length;if(e.sort((r,i)=>r.index-i.index),n>t){for(let r=t;rt.length&&delete this._stacks,e.forEach((n,r)=>{t.filter(i=>i===n._dataset).length===0&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const e=[],t=this.data.datasets;let n,r;for(this._removeUnreferencedMetasets(),n=0,r=t.length;n{this.getDatasetMeta(t).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(e){const t=this.config;t.update();const n=this._options=t.createResolver(t.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:e,cancelable:!0})===!1)return;const i=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let a=0;for(let l=0,c=this.data.datasets.length;l{l.reset()}),this._updateDatasets(e),this.notifyPlugins("afterUpdate",{mode:e}),this._layers.sort(jm("z","_idx"));const{_active:o,_lastEvent:s}=this;s?this._eventHandler(s,!0):o.length&&this._updateHoverStyles(o,o,!0),this.render()}_updateScales(){q(this.scales,e=>{ft.removeBox(this,e)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const e=this.options,t=new Set(Object.keys(this._listeners)),n=new Set(e.events);(!Hp(t,n)||!!this._responsiveListeners!==e.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:e}=this,t=this._getUniformDataChanges()||[];for(const{method:n,start:r,count:i}of t){const a=n==="_removeElements"?-i:i;TC(e,r,a)}}_getUniformDataChanges(){const e=this._dataChanges;if(!e||!e.length)return;this._dataChanges=[];const t=this.data.datasets.length,n=i=>new Set(e.filter(a=>a[0]===i).map((a,o)=>o+","+a.splice(1).join(","))),r=n(0);for(let i=1;ii.split(",")).map(i=>({method:i[1],start:+i[2],count:+i[3]}))}_updateLayout(e){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;ft.update(this,this.width,this.height,e);const t=this.chartArea,n=t.width<=0||t.height<=0;this._layers=[],q(this.boxes,r=>{n&&r.position==="chartArea"||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,i)=>{r._idx=i}),this.notifyPlugins("afterLayout")}_updateDatasets(e){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:e,cancelable:!0})!==!1){for(let t=0,n=this.data.datasets.length;t=0;--t)this._drawDataset(e[t]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(e){const t=this.ctx,n=e._clip,r=!n.disabled,i=LC(e,this.chartArea),a={meta:e,index:e.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",a)!==!1&&(r&&_h(t,{left:n.left===!1?0:i.left-n.left,right:n.right===!1?this.width:i.right+n.right,top:n.top===!1?0:i.top-n.top,bottom:n.bottom===!1?this.height:i.bottom+n.bottom}),e.controller.draw(),r&&Sh(t),a.cancelable=!1,this.notifyPlugins("afterDatasetDraw",a))}isPointInArea(e){return Zt(e,this.chartArea,this._minPadding)}getElementsAtEventForMode(e,t,n,r){const i=O3.modes[t];return typeof i=="function"?i(this,e,n,r):[]}getDatasetMeta(e){const t=this.data.datasets[e],n=this._metasets;let r=n.filter(i=>i&&i._dataset===t).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:t&&t.order||0,index:e,_dataset:t,_parsed:[],_sorted:!1},n.push(r)),r}getContext(){return this.$context||(this.$context=Kn(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(e){const t=this.data.datasets[e];if(!t)return!1;const n=this.getDatasetMeta(e);return typeof n.hidden=="boolean"?!n.hidden:!t.hidden}setDatasetVisibility(e,t){const n=this.getDatasetMeta(e);n.hidden=!t}toggleDataVisibility(e){this._hiddenIndices[e]=!this._hiddenIndices[e]}getDataVisibility(e){return!this._hiddenIndices[e]}_updateVisibility(e,t,n){const r=n?"show":"hide",i=this.getDatasetMeta(e),a=i.controller._resolveAnimations(void 0,r);za(t)?(i.data[t].hidden=!n,this.update()):(this.setDatasetVisibility(e,n),a.update(i,{visible:n}),this.update(o=>o.datasetIndex===e?r:void 0))}hide(e,t){this._updateVisibility(e,t,!1)}show(e,t){this._updateVisibility(e,t,!0)}_destroyDatasetMeta(e){const t=this._metasets[e];t&&t.controller&&t.controller._destroy(),delete this._metasets[e]}_stop(){let e,t;for(this.stop(),Yt.remove(this),e=0,t=this.data.datasets.length;e{t.addEventListener(this,i,a),e[i]=a},r=(i,a,o)=>{i.offsetX=a,i.offsetY=o,this._eventHandler(i)};q(this.options.events,i=>n(i,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const e=this._responsiveListeners,t=this.platform,n=(s,l)=>{t.addEventListener(this,s,l),e[s]=l},r=(s,l)=>{e[s]&&(t.removeEventListener(this,s,l),delete e[s])},i=(s,l)=>{this.canvas&&this.resize(s,l)};let a;const o=()=>{r("attach",o),this.attached=!0,this.resize(),n("resize",i),n("detach",a)};a=()=>{this.attached=!1,r("resize",i),this._stop(),this._resize(0,0),n("attach",o)},t.isAttached(this.canvas)?o():a()}unbindEvents(){q(this._listeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._listeners={},q(this._responsiveListeners,(e,t)=>{this.platform.removeEventListener(this,t,e)}),this._responsiveListeners=void 0}updateHoverStyle(e,t,n){const r=n?"set":"remove";let i,a,o,s;for(t==="dataset"&&(i=this.getDatasetMeta(e[0].datasetIndex),i.controller["_"+r+"DatasetHoverStyle"]()),o=0,s=e.length;o{const a=this.getDatasetMeta(r);if(!a)throw new Error("No dataset found at index "+r);return{datasetIndex:r,element:a.data[i],index:i}});!$s(n,t)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,t))}notifyPlugins(e,t,n){return this._plugins.notify(this,e,t,n)}isPluginEnabled(e){return this._plugins._cache.filter(t=>t.plugin.id===e).length===1}_updateHoverStyles(e,t,n){const r=this.options.hover,i=(s,l)=>s.filter(c=>!l.some(u=>c.datasetIndex===u.datasetIndex&&c.index===u.index)),a=i(t,e),o=n?e:i(e,t);a.length&&this.updateHoverStyle(a,r.mode,!1),o.length&&r.mode&&this.updateHoverStyle(o,r.mode,!0)}_eventHandler(e,t){const n={event:e,replay:t,cancelable:!0,inChartArea:this.isPointInArea(e)},r=a=>(a.options.events||this.options.events).includes(e.native.type);if(this.notifyPlugins("beforeEvent",n,r)===!1)return;const i=this._handleEvent(e,t,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,r),(i||n.changed)&&this.render(),this}_handleEvent(e,t,n){const{_active:r=[],options:i}=this,a=t,o=this._getActiveElements(e,r,n,a),s=F5(e),l=RC(e,this._lastEvent,n,s);n&&(this._lastEvent=null,J(i.onHover,[e,o,this],this),s&&J(i.onClick,[e,o,this],this));const c=!$s(o,r);return(c||t)&&(this._active=o,this._updateHoverStyles(o,r,t)),this._lastEvent=l,c}_getActiveElements(e,t,n,r){if(e.type==="mouseout")return[];if(!n)return t;const i=this.options.hover;return this.getElementsAtEventForMode(e,i.mode,i,r)}},R(pn,"defaults",me),R(pn,"instances",us),R(pn,"overrides",Er),R(pn,"registry",At),R(pn,"version",MC),R(pn,"getChart",Rm),pn);function Lm(){return q(Ol.instances,e=>e._plugins.invalidate())}function AC(e,t,n){const{startAngle:r,pixelMargin:i,x:a,y:o,outerRadius:s,innerRadius:l}=t;let c=i/s;e.beginPath(),e.arc(a,o,s,r-c,n+c),l>i?(c=i/l,e.arc(a,o,l,n+c,r-c,!0)):e.arc(a,o,i,n+be,r-be),e.closePath(),e.clip()}function DC(e){return Ch(e,["outerStart","outerEnd","innerStart","innerEnd"])}function zC(e,t,n,r){const i=DC(e.options.borderRadius),a=(n-t)/2,o=Math.min(a,r*t/2),s=l=>{const c=(n-Math.min(a,l))*r/2;return ze(l,0,Math.min(a,c))};return{outerStart:s(i.outerStart),outerEnd:s(i.outerEnd),innerStart:ze(i.innerStart,0,o),innerEnd:ze(i.innerEnd,0,o)}}function Rr(e,t,n,r){return{x:n+e*Math.cos(t),y:r+e*Math.sin(t)}}function Gs(e,t,n,r,i,a){const{x:o,y:s,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+r+n-c,0),h=u>0?u+r+n+c:0;let f=0;const m=i-l;if(r){const B=u>0?u-r:0,X=d>0?d-r:0,Pe=(B+X)/2,O=Pe!==0?m*Pe/(Pe+r):m;f=(m-O)/2}const y=Math.max(.001,m*d-n/le)/d,x=(m-y)/2,g=l+x+f,v=i-x-f,{outerStart:b,outerEnd:w,innerStart:k,innerEnd:_}=zC(t,h,d,v-g),C=d-b,E=d-w,L=g+b/C,M=v-w/E,z=h+k,V=h+_,xe=g+k/z,Te=v-_/V;if(e.beginPath(),a){const B=(L+M)/2;if(e.arc(o,s,d,L,B),e.arc(o,s,d,B,M),w>0){const D=Rr(E,M,o,s);e.arc(D.x,D.y,w,M,v+be)}const X=Rr(V,v,o,s);if(e.lineTo(X.x,X.y),_>0){const D=Rr(V,Te,o,s);e.arc(D.x,D.y,_,v+be,Te+Math.PI)}const Pe=(v-_/h+(g+k/h))/2;if(e.arc(o,s,h,v-_/h,Pe,!0),e.arc(o,s,h,Pe,g+k/h,!0),k>0){const D=Rr(z,xe,o,s);e.arc(D.x,D.y,k,xe+Math.PI,g-be)}const O=Rr(C,g,o,s);if(e.lineTo(O.x,O.y),b>0){const D=Rr(C,L,o,s);e.arc(D.x,D.y,b,g-be,L)}}else{e.moveTo(o,s);const B=Math.cos(L)*d+o,X=Math.sin(L)*d+s;e.lineTo(B,X);const Pe=Math.cos(M)*d+o,O=Math.sin(M)*d+s;e.lineTo(Pe,O)}e.closePath()}function IC(e,t,n,r,i){const{fullCircles:a,startAngle:o,circumference:s}=t;let l=t.endAngle;if(a){Gs(e,t,n,r,l,i);for(let c=0;c=se||Fa(a,s,l),m=Sn(o,c+h,u+h);return f&&m}getCenterPoint(t){const{x:n,y:r,startAngle:i,endAngle:a,innerRadius:o,outerRadius:s}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius"],t),{offset:l,spacing:c}=this.options,u=(i+a)/2,d=(o+s+c+l)/2;return{x:n+Math.cos(u)*d,y:r+Math.sin(u)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:n,circumference:r}=this,i=(n.offset||0)/4,a=(n.spacing||0)/2,o=n.circular;if(this.pixelMargin=n.borderAlign==="inner"?.33:0,this.fullCircles=r>se?Math.floor(r/se):0,r===0||this.innerRadius<0||this.outerRadius<0)return;t.save();const s=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(s)*i,Math.sin(s)*i);const l=1-Math.sin(Math.min(le,r||0)),c=i*l;t.fillStyle=n.backgroundColor,t.strokeStyle=n.borderColor,IC(t,this,c,a,o),FC(t,this,c,a,o),t.restore()}}R(Yi,"id","arc"),R(Yi,"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(Yi,"defaultRoutes",{backgroundColor:"backgroundColor"}),R(Yi,"descriptors",{_scriptable:!0,_indexable:e=>e!=="borderDash"});function u1(e,t,n=t){e.lineCap=U(n.borderCapStyle,t.borderCapStyle),e.setLineDash(U(n.borderDash,t.borderDash)),e.lineDashOffset=U(n.borderDashOffset,t.borderDashOffset),e.lineJoin=U(n.borderJoinStyle,t.borderJoinStyle),e.lineWidth=U(n.borderWidth,t.borderWidth),e.strokeStyle=U(n.borderColor,t.borderColor)}function BC(e,t,n){e.lineTo(n.x,n.y)}function UC(e){return e.stepped?c4:e.tension||e.cubicInterpolationMode==="monotone"?u4:BC}function d1(e,t,n={}){const r=e.length,{start:i=0,end:a=r-1}=n,{start:o,end:s}=t,l=Math.max(i,o),c=Math.min(a,s),u=is&&a>s;return{count:r,start:l,loop:t.loop,ilen:c(o+(c?s-w:w))%a,b=()=>{y!==x&&(e.lineTo(u,x),e.lineTo(u,y),e.lineTo(u,g))};for(l&&(f=i[v(0)],e.moveTo(f.x,f.y)),h=0;h<=s;++h){if(f=i[v(h)],f.skip)continue;const w=f.x,k=f.y,_=w|0;_===m?(kx&&(x=k),u=(d*u+w)/++d):(b(),e.lineTo(w,k),m=_,d=0,y=x=k),g=k}b()}function qu(e){const t=e.options,n=t.borderDash&&t.borderDash.length;return!e._decimated&&!e._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!n?HC:VC}function WC(e){return e.stepped?V4:e.tension||e.cubicInterpolationMode==="monotone"?H4:nr}function $C(e,t,n,r){let i=t._path;i||(i=t._path=new Path2D,t.path(i,n,r)&&i.closePath()),u1(e,t.options),e.stroke(i)}function YC(e,t,n,r){const{segments:i,options:a}=t,o=qu(t);for(const s of i)u1(e,a,s.style),e.beginPath(),o(e,t,s,{start:n,end:n+r-1})&&e.closePath(),e.stroke()}const qC=typeof Path2D=="function";function KC(e,t,n,r){qC&&!t.options.segment?$C(e,t,n,r):YC(e,t,n,r)}class qi extends Mt{constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,n){const r=this.options;if((r.tension||r.cubicInterpolationMode==="monotone")&&!r.stepped&&!this._pointsUpdated){const i=r.spanGaps?this._loop:this._fullLoop;L4(this._points,r,t,i,n),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=G4(this,this.options.segment))}first(){const t=this.segments,n=this.points;return t.length&&n[t[0].start]}last(){const t=this.segments,n=this.points,r=t.length;return r&&n[t[r-1].end]}interpolate(t,n){const r=this.options,i=t[n],a=this.points,o=K4(this,{property:n,start:i,end:i});if(!o.length)return;const s=[],l=WC(r);let c,u;for(c=0,u=o.length;ce!=="borderDash"&&e!=="fill"});function Am(e,t,n,r){const i=e.options,{[n]:a}=e.getProps([n],r);return Math.abs(t-a){let{boxHeight:n=t,boxWidth:r=t}=e;return e.usePointStyle&&(n=Math.min(n,t),r=e.pointStyleWidth||Math.min(r,t)),{boxWidth:r,boxHeight:n,itemHeight:Math.max(t,n)}},eE=(e,t)=>e!==null&&t!==null&&e.datasetIndex===t.datasetIndex&&e.index===t.index;class zm extends Mt{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,r){this.maxWidth=t,this.maxHeight=n,this._margins=r,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let n=J(t.generateLabels,[this.chart],this)||[];t.filter&&(n=n.filter(r=>t.filter(r,this.chart.data))),t.sort&&(n=n.sort((r,i)=>t.sort(r,i,this.chart.data))),this.options.reverse&&n.reverse(),this.legendItems=n}fit(){const{options:t,ctx:n}=this;if(!t.display){this.width=this.height=0;return}const r=t.labels,i=_e(r.font),a=i.size,o=this._computeTitleHeight(),{boxWidth:s,itemHeight:l}=Dm(r,a);let c,u;n.font=i.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,a,s,l)+10):(u=this.maxHeight,c=this._fitCols(o,i,s,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,n,r,i){const{ctx:a,maxWidth:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=i+s;let d=t;a.textAlign="left",a.textBaseline="middle";let h=-1,f=-u;return this.legendItems.forEach((m,y)=>{const x=r+n/2+a.measureText(m.text).width;(y===0||c[c.length-1]+x+2*s>o)&&(d+=u,c[c.length-(y>0?0:1)]=0,f+=u,h++),l[y]={left:0,top:f,row:h,width:x,height:i},c[c.length-1]+=x+s}),d}_fitCols(t,n,r,i){const{ctx:a,maxHeight:o,options:{labels:{padding:s}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-t;let d=s,h=0,f=0,m=0,y=0;return this.legendItems.forEach((x,g)=>{const{itemWidth:v,itemHeight:b}=tE(r,n,a,x,i);g>0&&f+b+2*s>u&&(d+=h+s,c.push({width:h,height:f}),m+=h+s,y++,h=f=0),l[g]={left:m,top:f,col:y,width:v,height:b},h=Math.max(h,v),f+=b+s}),d+=h,c.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:n,options:{align:r,labels:{padding:i},rtl:a}}=this,o=ni(a,this.left,this.width);if(this.isHorizontal()){let s=0,l=Ae(r,this.left+i,this.right-this.lineWidths[s]);for(const c of n)s!==c.row&&(s=c.row,l=Ae(r,this.left+i,this.right-this.lineWidths[s])),c.top+=this.top+t+i,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+i}else{let s=0,l=Ae(r,this.top+t+i,this.bottom-this.columnSizes[s].height);for(const c of n)c.col!==s&&(s=c.col,l=Ae(r,this.top+t+i,this.bottom-this.columnSizes[s].height)),c.top=l,c.left+=this.left+i,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+i}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;_h(t,this),this._draw(),Sh(t)}}_draw(){const{options:t,columnSizes:n,lineWidths:r,ctx:i}=this,{align:a,labels:o}=t,s=me.color,l=ni(t.rtl,this.left,this.width),c=_e(o.font),{padding:u}=o,d=c.size,h=d/2;let f;this.drawTitle(),i.textAlign=l.textAlign("left"),i.textBaseline="middle",i.lineWidth=.5,i.font=c.string;const{boxWidth:m,boxHeight:y,itemHeight:x}=Dm(o,d),g=function(_,C,E){if(isNaN(m)||m<=0||isNaN(y)||y<0)return;i.save();const L=U(E.lineWidth,1);if(i.fillStyle=U(E.fillStyle,s),i.lineCap=U(E.lineCap,"butt"),i.lineDashOffset=U(E.lineDashOffset,0),i.lineJoin=U(E.lineJoin,"miter"),i.lineWidth=L,i.strokeStyle=U(E.strokeStyle,s),i.setLineDash(U(E.lineDash,[])),o.usePointStyle){const M={radius:y*Math.SQRT2/2,pointStyle:E.pointStyle,rotation:E.rotation,borderWidth:L},z=l.xPlus(_,m/2),V=C+h;Vv(i,M,z,V,o.pointStyleWidth&&m)}else{const M=C+Math.max((d-y)/2,0),z=l.leftForLtr(_,m),V=fr(E.borderRadius);i.beginPath(),Object.values(V).some(xe=>xe!==0)?Ba(i,{x:z,y:M,w:m,h:y,radius:V}):i.rect(z,M,m,y),i.fill(),L!==0&&i.stroke()}i.restore()},v=function(_,C,E){Nr(i,E.text,_,C+x/2,c,{strikethrough:E.hidden,textAlign:l.textAlign(E.textAlign)})},b=this.isHorizontal(),w=this._computeTitleHeight();b?f={x:Ae(a,this.left+u,this.right-r[0]),y:this.top+u+w,line:0}:f={x:this.left+u,y:Ae(a,this.top+w+u,this.bottom-n[0].height),line:0},Qv(this.ctx,t.textDirection);const k=x+u;this.legendItems.forEach((_,C)=>{i.strokeStyle=_.fontColor,i.fillStyle=_.fontColor;const E=i.measureText(_.text).width,L=l.textAlign(_.textAlign||(_.textAlign=o.textAlign)),M=m+h+E;let z=f.x,V=f.y;l.setWidth(this.width),b?C>0&&z+M+u>this.right&&(V=f.y+=k,f.line++,z=f.x=Ae(a,this.left+u,this.right-r[f.line])):C>0&&V+k>this.bottom&&(z=f.x=z+n[f.line].width+u,f.line++,V=f.y=Ae(a,this.top+w+u,this.bottom-n[f.line].height));const xe=l.x(z);if(g(xe,V,_),z=X5(L,z+m+h,b?z+M:this.right,t.rtl),v(l.x(z),V,_),b)f.x+=M+u;else if(typeof _.text!="string"){const Te=c.lineHeight;f.y+=f1(_,Te)+u}else f.y+=k}),Xv(this.ctx,t.textDirection)}drawTitle(){const t=this.options,n=t.title,r=_e(n.font),i=Fe(n.padding);if(!n.display)return;const a=ni(t.rtl,this.left,this.width),o=this.ctx,s=n.position,l=r.size/2,c=i.top+l;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=Ae(t.align,d,this.right-h);else{const m=this.columnSizes.reduce((y,x)=>Math.max(y,x.height),0);u=c+Ae(t.align,this.top,this.bottom-m-t.labels.padding-this._computeTitleHeight())}const f=Ae(s,d,d+h);o.textAlign=a.textAlign(wh(s)),o.textBaseline="middle",o.strokeStyle=n.color,o.fillStyle=n.color,o.font=r.string,Nr(o,n.text,f,u,r)}_computeTitleHeight(){const t=this.options.title,n=_e(t.font),r=Fe(t.padding);return t.display?n.lineHeight+r.height:0}_getLegendItemAt(t,n){let r,i,a;if(Sn(t,this.left,this.right)&&Sn(n,this.top,this.bottom)){for(a=this.legendHitBoxes,r=0;ra.length>o.length?a:o)),t+n.size/2+r.measureText(i).width}function rE(e,t,n){let r=e;return typeof t.text!="string"&&(r=f1(t,n)),r}function f1(e,t){const n=e.text?e.text.length:0;return t*n}function iE(e,t){return!!((e==="mousemove"||e==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(e==="click"||e==="mouseup"))}var aE={id:"legend",_element:zm,start(e,t,n){const r=e.legend=new zm({ctx:e.ctx,options:n,chart:e});ft.configure(e,r,n),ft.addBox(e,r)},stop(e){ft.removeBox(e,e.legend),delete e.legend},beforeUpdate(e,t,n){const r=e.legend;ft.configure(e,r,n),r.options=n},afterUpdate(e){const t=e.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(e,t){t.replay||e.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(e,t,n){const r=t.datasetIndex,i=n.chart;i.isDatasetVisible(r)?(i.hide(r),t.hidden=!0):(i.show(r),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:e=>e.chart.options.color,boxWidth:40,padding:10,generateLabels(e){const t=e.data.datasets,{labels:{usePointStyle:n,pointStyle:r,textAlign:i,color:a,useBorderRadius:o,borderRadius:s}}=e.legend.options;return e._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(n?0:void 0),u=Fe(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:a,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:r||c.pointStyle,rotation:c.rotation,textAlign:i||c.textAlign,borderRadius:o&&(s||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:e=>e.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:e=>!e.startsWith("on"),labels:{_scriptable:e=>!["generateLabels","filter","sort"].includes(e)}}};class p1 extends Mt{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,n){const r=this.options;if(this.left=0,this.top=0,!r.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=n;const i=ue(r.text)?r.text.length:1;this._padding=Fe(r.padding);const a=i*_e(r.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=a:this.width=a}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:n,left:r,bottom:i,right:a,options:o}=this,s=o.align;let l=0,c,u,d;return this.isHorizontal()?(u=Ae(s,r,a),d=n+t,c=a-r):(o.position==="left"?(u=r+t,d=Ae(s,i,n),l=le*-.5):(u=a-t,d=Ae(s,n,i),l=le*.5),c=i-n),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,n=this.options;if(!n.display)return;const r=_e(n.font),i=r.lineHeight/2+this._padding.top,{titleX:a,titleY:o,maxWidth:s,rotation:l}=this._drawArgs(i);Nr(t,n.text,0,0,r,{color:n.color,maxWidth:s,rotation:l,textAlign:wh(n.align),textBaseline:"middle",translation:[a,o]})}}function oE(e,t){const n=new p1({ctx:e.ctx,options:t,chart:e});ft.configure(e,n,t),ft.addBox(e,n),e.titleBlock=n}var sE={id:"title",_element:p1,start(e,t,n){oE(e,n)},stop(e){const t=e.titleBlock;ft.removeBox(e,t),delete e.titleBlock},beforeUpdate(e,t,n){const r=e.titleBlock;ft.configure(e,r,n),r.options=n},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const ca={average(e){if(!e.length)return!1;let t,n,r=new Set,i=0,a=0;for(t=0,n=e.length;to+s)/r.size,y:i/a}},nearest(e,t){if(!e.length)return!1;let n=t.x,r=t.y,i=Number.POSITIVE_INFINITY,a,o,s;for(a=0,o=e.length;a-1?e.split(` +`):e}function lE(e,t){const{element:n,datasetIndex:r,index:i}=t,a=e.getDatasetMeta(r).controller,{label:o,value:s}=a.getLabelAndValue(i);return{chart:e,label:o,parsed:a.getParsed(i),raw:e.data.datasets[r].data[i],formattedValue:s,dataset:a.getDataset(),dataIndex:i,datasetIndex:r,element:n}}function Im(e,t){const n=e.chart.ctx,{body:r,footer:i,title:a}=e,{boxWidth:o,boxHeight:s}=t,l=_e(t.bodyFont),c=_e(t.titleFont),u=_e(t.footerFont),d=a.length,h=i.length,f=r.length,m=Fe(t.padding);let y=m.height,x=0,g=r.reduce((w,k)=>w+k.before.length+k.lines.length+k.after.length,0);if(g+=e.beforeBody.length+e.afterBody.length,d&&(y+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),g){const w=t.displayColors?Math.max(s,l.lineHeight):l.lineHeight;y+=f*w+(g-f)*l.lineHeight+(g-1)*t.bodySpacing}h&&(y+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let v=0;const b=function(w){x=Math.max(x,n.measureText(w).width+v)};return n.save(),n.font=c.string,q(e.title,b),n.font=l.string,q(e.beforeBody.concat(e.afterBody),b),v=t.displayColors?o+2+t.boxPadding:0,q(r,w=>{q(w.before,b),q(w.lines,b),q(w.after,b)}),v=0,n.font=u.string,q(e.footer,b),n.restore(),x+=m.width,{width:x,height:y}}function cE(e,t){const{y:n,height:r}=t;return ne.height-r/2?"bottom":"center"}function uE(e,t,n,r){const{x:i,width:a}=r,o=n.caretSize+n.caretPadding;if(e==="left"&&i+a+o>t.width||e==="right"&&i-a-o<0)return!0}function dE(e,t,n,r){const{x:i,width:a}=n,{width:o,chartArea:{left:s,right:l}}=e;let c="center";return r==="center"?c=i<=(s+l)/2?"left":"right":i<=a/2?c="left":i>=o-a/2&&(c="right"),uE(c,e,t,n)&&(c="center"),c}function Fm(e,t,n){const r=n.yAlign||t.yAlign||cE(e,n);return{xAlign:n.xAlign||t.xAlign||dE(e,t,n,r),yAlign:r}}function hE(e,t){let{x:n,width:r}=e;return t==="right"?n-=r:t==="center"&&(n-=r/2),n}function fE(e,t,n){let{y:r,height:i}=e;return t==="top"?r+=n:t==="bottom"?r-=i+n:r-=i/2,r}function Bm(e,t,n,r){const{caretSize:i,caretPadding:a,cornerRadius:o}=e,{xAlign:s,yAlign:l}=n,c=i+a,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=fr(o);let m=hE(t,s);const y=fE(t,l,c);return l==="center"?s==="left"?m+=c:s==="right"&&(m-=c):s==="left"?m-=Math.max(u,h)+i:s==="right"&&(m+=Math.max(d,f)+i),{x:ze(m,0,r.width-t.width),y:ze(y,0,r.height-t.height)}}function Vo(e,t,n){const r=Fe(n.padding);return t==="center"?e.x+e.width/2:t==="right"?e.x+e.width-r.right:e.x+r.left}function Um(e){return Rt([],qt(e))}function pE(e,t,n){return Kn(e,{tooltip:t,tooltipItems:n,type:"tooltip"})}function Vm(e,t){const n=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return n?e.override(n):e}const m1={beforeTitle:$t,title(e){if(e.length>0){const t=e[0],n=t.chart.data.labels,r=n?n.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(r>0&&t.dataIndex"u"?m1[t].call(n,r):i}class Ku extends Mt{constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const n=this.chart,r=this.options.setContext(this.getContext()),i=r.enabled&&n.options.animation&&r.animations,a=new Jv(this.chart,i);return i._cacheable&&(this._cachedAnimations=Object.freeze(a)),a}getContext(){return this.$context||(this.$context=pE(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,n){const{callbacks:r}=n,i=$e(r,"beforeTitle",this,t),a=$e(r,"title",this,t),o=$e(r,"afterTitle",this,t);let s=[];return s=Rt(s,qt(i)),s=Rt(s,qt(a)),s=Rt(s,qt(o)),s}getBeforeBody(t,n){return Um($e(n.callbacks,"beforeBody",this,t))}getBody(t,n){const{callbacks:r}=n,i=[];return q(t,a=>{const o={before:[],lines:[],after:[]},s=Vm(r,a);Rt(o.before,qt($e(s,"beforeLabel",this,a))),Rt(o.lines,$e(s,"label",this,a)),Rt(o.after,qt($e(s,"afterLabel",this,a))),i.push(o)}),i}getAfterBody(t,n){return Um($e(n.callbacks,"afterBody",this,t))}getFooter(t,n){const{callbacks:r}=n,i=$e(r,"beforeFooter",this,t),a=$e(r,"footer",this,t),o=$e(r,"afterFooter",this,t);let s=[];return s=Rt(s,qt(i)),s=Rt(s,qt(a)),s=Rt(s,qt(o)),s}_createItems(t){const n=this._active,r=this.chart.data,i=[],a=[],o=[];let s=[],l,c;for(l=0,c=n.length;lt.filter(u,d,h,r))),t.itemSort&&(s=s.sort((u,d)=>t.itemSort(u,d,r))),q(s,u=>{const d=Vm(t.callbacks,u);i.push($e(d,"labelColor",this,u)),a.push($e(d,"labelPointStyle",this,u)),o.push($e(d,"labelTextColor",this,u))}),this.labelColors=i,this.labelPointStyles=a,this.labelTextColors=o,this.dataPoints=s,s}update(t,n){const r=this.options.setContext(this.getContext()),i=this._active;let a,o=[];if(!i.length)this.opacity!==0&&(a={opacity:0});else{const s=ca[r.position].call(this,i,this._eventPosition);o=this._createItems(r),this.title=this.getTitle(o,r),this.beforeBody=this.getBeforeBody(o,r),this.body=this.getBody(o,r),this.afterBody=this.getAfterBody(o,r),this.footer=this.getFooter(o,r);const l=this._size=Im(this,r),c=Object.assign({},s,l),u=Fm(this.chart,r,c),d=Bm(r,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,a={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:s.x,caretY:s.y}}this._tooltipItems=o,this.$context=void 0,a&&this._resolveAnimations().update(this,a),t&&r.external&&r.external.call(this,{chart:this.chart,tooltip:this,replay:n})}drawCaret(t,n,r,i){const a=this.getCaretPosition(t,r,i);n.lineTo(a.x1,a.y1),n.lineTo(a.x2,a.y2),n.lineTo(a.x3,a.y3)}getCaretPosition(t,n,r){const{xAlign:i,yAlign:a}=this,{caretSize:o,cornerRadius:s}=r,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=fr(s),{x:h,y:f}=t,{width:m,height:y}=n;let x,g,v,b,w,k;return a==="center"?(w=f+y/2,i==="left"?(x=h,g=x-o,b=w+o,k=w-o):(x=h+m,g=x+o,b=w-o,k=w+o),v=x):(i==="left"?g=h+Math.max(l,u)+o:i==="right"?g=h+m-Math.max(c,d)-o:g=this.caretX,a==="top"?(b=f,w=b-o,x=g-o,v=g+o):(b=f+y,w=b+o,x=g+o,v=g-o),k=b),{x1:x,x2:g,x3:v,y1:b,y2:w,y3:k}}drawTitle(t,n,r){const i=this.title,a=i.length;let o,s,l;if(a){const c=ni(r.rtl,this.x,this.width);for(t.x=Vo(this,r.titleAlign,r),n.textAlign=c.textAlign(r.titleAlign),n.textBaseline="middle",o=_e(r.titleFont),s=r.titleSpacing,n.fillStyle=r.titleColor,n.font=o.string,l=0;lv!==0)?(t.beginPath(),t.fillStyle=a.multiKeyBackground,Ba(t,{x:y,y:m,w:c,h:l,radius:g}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),Ba(t,{x,y:m+1,w:c-2,h:l-2,radius:g}),t.fill()):(t.fillStyle=a.multiKeyBackground,t.fillRect(y,m,c,l),t.strokeRect(y,m,c,l),t.fillStyle=o.backgroundColor,t.fillRect(x,m+1,c-2,l-2))}t.fillStyle=this.labelTextColors[r]}drawBody(t,n,r){const{body:i}=this,{bodySpacing:a,bodyAlign:o,displayColors:s,boxHeight:l,boxWidth:c,boxPadding:u}=r,d=_e(r.bodyFont);let h=d.lineHeight,f=0;const m=ni(r.rtl,this.x,this.width),y=function(E){n.fillText(E,m.x(t.x+f),t.y+h/2),t.y+=h+a},x=m.textAlign(o);let g,v,b,w,k,_,C;for(n.textAlign=o,n.textBaseline="middle",n.font=d.string,t.x=Vo(this,x,r),n.fillStyle=r.bodyColor,q(this.beforeBody,y),f=s&&x!=="right"?o==="center"?c/2+u:c+2+u:0,w=0,_=i.length;w<_;++w){for(g=i[w],v=this.labelTextColors[w],n.fillStyle=v,q(g.before,y),b=g.lines,s&&b.length&&(this._drawColorBox(n,t,w,m,r),h=Math.max(d.lineHeight,l)),k=0,C=b.length;k0&&n.stroke()}_updateAnimationTarget(t){const n=this.chart,r=this.$animations,i=r&&r.x,a=r&&r.y;if(i||a){const o=ca[t.position].call(this,this._active,this._eventPosition);if(!o)return;const s=this._size=Im(this,t),l=Object.assign({},o,this._size),c=Fm(n,t,l),u=Bm(t,l,c,n);(i._to!==u.x||a._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=s.width,this.height=s.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const n=this.options.setContext(this.getContext());let r=this.opacity;if(!r)return;this._updateAnimationTarget(n);const i={width:this.width,height:this.height},a={x:this.x,y:this.y};r=Math.abs(r)<.001?0:r;const o=Fe(n.padding),s=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;n.enabled&&s&&(t.save(),t.globalAlpha=r,this.drawBackground(a,t,i,n),Qv(t,n.textDirection),a.y+=o.top,this.drawTitle(a,t,n),this.drawBody(a,t,n),this.drawFooter(a,t,n),Xv(t,n.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,n){const r=this._active,i=t.map(({datasetIndex:s,index:l})=>{const c=this.chart.getDatasetMeta(s);if(!c)throw new Error("Cannot find a dataset at index "+s);return{datasetIndex:s,element:c.data[l],index:l}}),a=!$s(r,i),o=this._positionChanged(i,n);(a||o)&&(this._active=i,this._eventPosition=n,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,n,r=!0){if(n&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const i=this.options,a=this._active||[],o=this._getActiveElements(t,a,n,r),s=this._positionChanged(o,t),l=n||!$s(o,a)||s;return l&&(this._active=o,(i.enabled||i.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,n))),l}_getActiveElements(t,n,r,i){const a=this.options;if(t.type==="mouseout")return[];if(!i)return n.filter(s=>this.chart.data.datasets[s.datasetIndex]&&this.chart.getDatasetMeta(s.datasetIndex).controller.getParsed(s.index)!==void 0);const o=this.chart.getElementsAtEventForMode(t,a.mode,a,r);return a.reverse&&o.reverse(),o}_positionChanged(t,n){const{caretX:r,caretY:i,options:a}=this,o=ca[a.position].call(this,t,n);return o!==!1&&(r!==o.x||i!==o.y)}}R(Ku,"positioners",ca);var mE={id:"tooltip",_element:Ku,positioners:ca,afterInit(e,t,n){n&&(e.tooltip=new Ku({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){const t=e.tooltip;if(t&&t._willRender()){const 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){const 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:m1},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"]};const gE=(e,t,n,r)=>(typeof t=="string"?(n=e.push(t)-1,r.unshift({index:n,label:t})):isNaN(t)&&(n=null),n);function bE(e,t,n,r){const i=e.indexOf(t);if(i===-1)return gE(e,t,n,r);const a=e.lastIndexOf(t);return i!==a?n:i}const vE=(e,t)=>e===null?null:ze(Math.round(e),0,t);function g1(e){const t=this.getLabels();return e>=0&&en.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(Qu,"id","category"),R(Qu,"defaults",{ticks:{callback:g1}});function yE(e,t){const n=[],{bounds:r,step:i,min:a,max:o,precision:s,count:l,maxTicks:c,maxDigits:u,includeBounds:d}=e,h=i||1,f=c-1,{min:m,max:y}=t,x=!K(a),g=!K(o),v=!K(l),b=(y-m)/(u+1);let w=$p((y-m)/f/h)*h,k,_,C,E;if(w<1e-14&&!x&&!g)return[{value:m},{value:y}];E=Math.ceil(y/w)-Math.floor(m/w),E>f&&(w=$p(E*w/f/h)*h),K(s)||(k=Math.pow(10,s),w=Math.ceil(w*k)/k),r==="ticks"?(_=Math.floor(m/w)*w,C=Math.ceil(y/w)*w):(_=m,C=y),x&&g&&i&&H5((o-a)/i,w/1e3)?(E=Math.round(Math.min((o-a)/w,c)),w=(o-a)/E,_=a,C=o):v?(_=x?a:_,C=g?o:C,E=l-1,w=(C-_)/E):(E=(C-_)/w,oa(E,Math.round(E),w/1e3)?E=Math.round(E):E=Math.ceil(E));const L=Math.max(Yp(w),Yp(_));k=Math.pow(10,K(s)?L:s),_=Math.round(_*k)/k,C=Math.round(C*k)/k;let M=0;for(x&&(d&&_!==a?(n.push({value:a}),_o)break;n.push({value:z})}return g&&d&&C!==o?n.length&&oa(n[n.length-1].value,o,Hm(o,b,e))?n[n.length-1].value=o:n.push({value:o}):(!g||C===o)&&n.push({value:C}),n}function Hm(e,t,{horizontal:n,minRotation:r}){const i=Ft(r),a=(n?Math.sin(i):Math.cos(i))||.001,o=.75*t*(""+e).length;return Math.min(t/a,o)}class Js extends Or{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 K(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:n,maxDefined:r}=this.getUserBounds();let{min:i,max:a}=this;const o=l=>i=n?i:l,s=l=>a=r?a:l;if(t){const l=Vt(i),c=Vt(a);l<0&&c<0?s(0):l>0&&c>0&&o(0)}if(i===a){let l=a===0?1:Math.abs(a*.05);s(a+l),t||o(i-l)}this.min=i,this.max=a}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:n,stepSize:r}=t,i;return r?(i=Math.ceil(this.max/r)-Math.floor(this.min/r)+1,i>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${r} 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(){const t=this.options,n=t.ticks;let r=this.getTickLimit();r=Math.max(2,r);const i={maxTicks:r,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},a=this._range||this,o=yE(i,a);return t.bounds==="ticks"&&Av(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let n=this.min,r=this.max;if(super.configure(),this.options.offset&&t.length){const i=(r-n)/Math.max(t.length-1,1)/2;n-=i,r+=i}this._startValue=n,this._endValue=r,this._valueRange=r-n}getLabelForValue(t){return Nl(t,this.chart.options.locale,this.options.ticks.format)}}class Xu extends Js{determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ee(t)?t:0,this.max=Ee(n)?n:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),n=t?this.width:this.height,r=Ft(this.options.ticks.minRotation),i=(t?Math.sin(r):Math.cos(r))||.001,a=this._resolveTickFontOptions(0);return Math.ceil(n/Math.min(40,a.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(Xu,"id","linear"),R(Xu,"defaults",{ticks:{callback:Pl.formatters.numeric}});const Va=e=>Math.floor(_n(e)),Jn=(e,t)=>Math.pow(10,Va(e)+t);function Wm(e){return e/Math.pow(10,Va(e))===1}function $m(e,t,n){const r=Math.pow(10,n),i=Math.floor(e/r);return Math.ceil(t/r)-i}function xE(e,t){const n=t-e;let r=Va(n);for(;$m(e,t,r)>10;)r++;for(;$m(e,t,r)<10;)r--;return Math.min(r,Va(e))}function wE(e,{min:t,max:n}){t=tt(e.min,t);const r=[],i=Va(t);let a=xE(t,n),o=a<0?Math.pow(10,Math.abs(a)):1;const s=Math.pow(10,a),l=i>a?Math.pow(10,i):0,c=Math.round((t-l)*o)/o,u=Math.floor((t-l)/s/10)*s*10;let d=Math.floor((c-u)/Math.pow(10,a)),h=tt(e.min,Math.round((l+u+d*Math.pow(10,a))*o)/o);for(;h=10?d=d<15?15:20:d++,d>=20&&(a++,d=2,o=a>=0?1:o),h=Math.round((l+u+d*Math.pow(10,a))*o)/o;const f=tt(e.max,h);return r.push({value:f,major:Wm(f),significand:d}),r}class Ym extends Or{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,n){const r=Js.prototype.parse.apply(this,[t,n]);if(r===0){this._zero=!0;return}return Ee(r)&&r>0?r:null}determineDataLimits(){const{min:t,max:n}=this.getMinMax(!0);this.min=Ee(t)?Math.max(0,t):null,this.max=Ee(n)?Math.max(0,n):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Ee(this._userMin)&&(this.min=t===Jn(this.min,0)?Jn(this.min,-1):Jn(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:n}=this.getUserBounds();let r=this.min,i=this.max;const a=s=>r=t?r:s,o=s=>i=n?i:s;r===i&&(r<=0?(a(1),o(10)):(a(Jn(r,-1)),o(Jn(i,1)))),r<=0&&a(Jn(i,-1)),i<=0&&o(Jn(r,1)),this.min=r,this.max=i}buildTicks(){const t=this.options,n={min:this._userMin,max:this._userMax},r=wE(n,this);return t.bounds==="ticks"&&Av(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}getLabelForValue(t){return t===void 0?"0":Nl(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=_n(t),this._valueRange=_n(this.max)-_n(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(_n(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const n=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+n*this._valueRange)}}R(Ym,"id","logarithmic"),R(Ym,"defaults",{ticks:{callback:Pl.formatters.logarithmic,major:{enabled:!0}}});function Gu(e){const t=e.ticks;if(t.display&&e.display){const n=Fe(t.backdropPadding);return U(t.font&&t.font.size,me.font.size)+n.height}return 0}function kE(e,t,n){return n=ue(n)?n:[n],{w:l4(e,t.string,n),h:n.length*t.lineHeight}}function qm(e,t,n,r,i){return e===r||e===i?{start:t-n/2,end:t+n/2}:ei?{start:t-n,end:t}:{start:t,end:t+n}}function _E(e){const t={l:e.left+e._padding.left,r:e.right-e._padding.right,t:e.top+e._padding.top,b:e.bottom-e._padding.bottom},n=Object.assign({},t),r=[],i=[],a=e._pointLabels.length,o=e.options.pointLabels,s=o.centerPointLabels?le/a:0;for(let l=0;lt.r&&(s=(r.end-t.r)/a,e.r=Math.max(e.r,t.r+s)),i.startt.b&&(l=(i.end-t.b)/o,e.b=Math.max(e.b,t.b+l))}function CE(e,t,n){const r=e.drawingArea,{extra:i,additionalAngle:a,padding:o,size:s}=n,l=e.getPointPosition(t,r+i+o,a),c=Math.round(yh(kt(l.angle+be))),u=OE(l.y,s.h,c),d=PE(c),h=ME(l.x,s.w,d);return{visible:!0,x:l.x,y:u,textAlign:d,left:h,top:u,right:h+s.w,bottom:u+s.h}}function EE(e,t){if(!t)return!0;const{left:n,top:r,right:i,bottom:a}=e;return!(Zt({x:n,y:r},t)||Zt({x:n,y:a},t)||Zt({x:i,y:r},t)||Zt({x:i,y:a},t))}function NE(e,t,n){const r=[],i=e._pointLabels.length,a=e.options,{centerPointLabels:o,display:s}=a.pointLabels,l={extra:Gu(a)/2,additionalAngle:o?le/i:0};let c;for(let u=0;u270||n<90)&&(e-=t),e}function jE(e,t,n){const{left:r,top:i,right:a,bottom:o}=n,{backdropColor:s}=t;if(!K(s)){const l=fr(t.borderRadius),c=Fe(t.backdropPadding);e.fillStyle=s;const u=r-c.left,d=i-c.top,h=a-r+c.width,f=o-i+c.height;Object.values(l).some(m=>m!==0)?(e.beginPath(),Ba(e,{x:u,y:d,w:h,h:f,radius:l}),e.fill()):e.fillRect(u,d,h,f)}}function TE(e,t){const{ctx:n,options:{pointLabels:r}}=e;for(let i=t-1;i>=0;i--){const a=e._pointLabelItems[i];if(!a.visible)continue;const o=r.setContext(e.getPointLabelContext(i));jE(n,o,a);const s=_e(o.font),{x:l,y:c,textAlign:u}=a;Nr(n,e._pointLabels[i],l,c+s.lineHeight/2,s,{color:o.color,textAlign:u,textBaseline:"middle"})}}function b1(e,t,n,r){const{ctx:i}=e;if(n)i.arc(e.xCenter,e.yCenter,t,0,se);else{let a=e.getPointPosition(0,t);i.moveTo(a.x,a.y);for(let o=1;o{const i=J(this.options.pointLabels.callback,[n,r],this);return i||i===0?i:""}).filter((n,r)=>this.chart.getDataVisibility(r))}fit(){const t=this.options;t.display&&t.pointLabels.display?_E(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,n,r,i){this.xCenter+=Math.floor((t-n)/2),this.yCenter+=Math.floor((r-i)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,n,r,i))}getIndexAngle(t){const n=se/(this._pointLabels.length||1),r=this.options.startAngle||0;return kt(t*n+Ft(r))}getDistanceFromCenterForValue(t){if(K(t))return NaN;const n=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*n:(t-this.min)*n}getValueForDistanceFromCenter(t){if(K(t))return NaN;const n=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-n:this.min+n}getPointLabelContext(t){const n=this._pointLabels||[];if(t>=0&&t{if(d!==0||d===0&&this.min<0){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),f=i.setContext(h),m=a.setContext(h);RE(this,f,l,o,m)}}),r.display){for(t.save(),s=o-1;s>=0;s--){const u=r.setContext(this.getPointLabelContext(s)),{color:d,lineWidth:h}=u;!h||!d||(t.lineWidth=h,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(n.ticks.reverse?this.min:this.max),c=this.getPointPosition(s,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,n=this.options,r=n.ticks;if(!r.display)return;const i=this.getIndexAngle(0);let a,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(i),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((s,l)=>{if(l===0&&this.min>=0&&!n.reverse)return;const c=r.setContext(this.getContext(l)),u=_e(c.font);if(a=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,o=t.measureText(s.label).width,t.fillStyle=c.backdropColor;const d=Fe(c.backdropPadding);t.fillRect(-o/2-d.left,-a-u.size/2-d.top,o+d.width,u.size+d.height)}Nr(t,s.label,0,-a,u,{color:c.color,strokeColor:c.textStrokeColor,strokeWidth:c.textStrokeWidth})}),t.restore()}drawTitle(){}}R(Ho,"id","radialLinear"),R(Ho,"defaults",{display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Pl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(e){return e},padding:5,centerPointLabels:!1}}),R(Ho,"defaultRoutes",{"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"}),R(Ho,"descriptors",{angleLines:{_fallback:"grid"}});const jl={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}},qe=Object.keys(jl);function Km(e,t){return e-t}function Qm(e,t){if(K(t))return null;const n=e._adapter,{parser:r,round:i,isoWeekday:a}=e._parseOpts;let o=t;return typeof r=="function"&&(o=r(o)),Ee(o)||(o=typeof r=="string"?n.parse(o,r):n.parse(o)),o===null?null:(i&&(o=i==="week"&&(Ia(a)||a===!0)?n.startOf(o,"isoWeek",a):n.startOf(o,i)),+o)}function Xm(e,t,n,r){const i=qe.length;for(let a=qe.indexOf(e);a=qe.indexOf(n);a--){const o=qe[a];if(jl[o].common&&e._adapter.diff(i,r,o)>=t-1)return o}return qe[n?qe.indexOf(n):0]}function DE(e){for(let t=qe.indexOf(e)+1,n=qe.length;t=t?n[r]:n[i];e[a]=!0}}function zE(e,t,n,r){const i=e._adapter,a=+i.startOf(t[0].value,r),o=t[t.length-1].value;let s,l;for(s=a;s<=o;s=+i.add(s,1,r))l=n[s],l>=0&&(t[l].major=!0);return t}function Jm(e,t,n){const r=[],i={},a=t.length;let o,s;for(o=0;o+t.value))}initOffsets(t=[]){let n=0,r=0,i,a;this.options.offset&&t.length&&(i=this.getDecimalForValue(t[0]),t.length===1?n=1-i:n=(this.getDecimalForValue(t[1])-i)/2,a=this.getDecimalForValue(t[t.length-1]),t.length===1?r=a:r=(a-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;n=ze(n,0,o),r=ze(r,0,o),this._offsets={start:n,end:r,factor:1/(n+1+r)}}_generate(){const t=this._adapter,n=this.min,r=this.max,i=this.options,a=i.time,o=a.unit||Xm(a.minUnit,n,r,this._getLabelCapacity(n)),s=U(i.ticks.stepSize,1),l=o==="week"?a.isoWeekday:!1,c=Ia(l)||l===!0,u={};let d=n,h,f;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":o),t.diff(r,n,o)>1e5*s)throw new Error(n+" and "+r+" are too far apart with stepSize of "+s+" "+o);const m=i.ticks.source==="data"&&this.getDataTimestamps();for(h=d,f=0;h+y)}getLabelForValue(t){const n=this._adapter,r=this.options.time;return r.tooltipFormat?n.format(t,r.tooltipFormat):n.format(t,r.displayFormats.datetime)}format(t,n){const r=this.options.time.displayFormats,i=this._unit,a=n||r[i];return this._adapter.format(t,a)}_tickFormatFunction(t,n,r,i){const a=this.options,o=a.ticks.callback;if(o)return J(o,[t,n,r],this);const s=a.time.displayFormats,l=this._unit,c=this._majorUnit,u=l&&s[l],d=c&&s[c],h=r[n],f=c&&d&&h&&h.major;return this._adapter.format(t,i||(f?d:u))}generateTickLabels(t){let n,r,i;for(n=0,r=t.length;n0?s:1}getDataTimestamps(){let t=this._cache.data||[],n,r;if(t.length)return t;const i=this.getMatchingVisibleMetas();if(this._normalized&&i.length)return this._cache.data=i[0].controller.getAllParsedValues(this);for(n=0,r=i.length;n=e[r].pos&&t<=e[i].pos&&({lo:r,hi:i}=cr(e,"pos",t)),{pos:a,time:s}=e[r],{pos:o,time:l}=e[i]):(t>=e[r].time&&t<=e[i].time&&({lo:r,hi:i}=cr(e,"time",t)),{time:a,pos:s}=e[r],{time:o,pos:l}=e[i]);const c=o-a;return c?s+(l-s)*(t-a)/c:s}class Zm extends Zs{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),n=this._table=this.buildLookupTable(t);this._minPos=Wo(n,this.min),this._tableRange=Wo(n,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:n,max:r}=this,i=[],a=[];let o,s,l,c,u;for(o=0,s=t.length;o=n&&c<=r&&i.push(c);if(i.length<2)return[{time:n,pos:0},{time:r,pos:1}];for(o=0,s=i.length;oi-a)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const n=this.getDataTimestamps(),r=this.getLabelTimestamps();return n.length&&r.length?t=this.normalize(n.concat(r)):t=n.length?n:r,t=this._cache.all=t,t}getDecimalForValue(t){return(Wo(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const n=this._offsets,r=this.getDecimalForPixel(t)/n.factor-n.end;return Wo(this._table,r*this._tableRange+this._minPos,!0)}}R(Zm,"id","timeseries"),R(Zm,"defaults",Zs.defaults);const v1="label";function eg(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function IE(e,t){const n=e.options;n&&t&&Object.assign(n,t)}function y1(e,t){e.labels=t}function x1(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:v1;const r=[];e.datasets=t.map(i=>{const a=e.datasets.find(o=>o[n]===i[n]);return!a||!i.data||r.includes(a)?{...i}:(r.push(a),Object.assign(a,i),a)})}function FE(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:v1;const n={labels:[],datasets:[]};return y1(n,e.labels),x1(n,e.datasets,t),n}function BE(e,t){const{height:n=150,width:r=300,redraw:i=!1,datasetIdKey:a,type:o,data:s,options:l,plugins:c=[],fallbackContent:u,updateMode:d,...h}=e,f=N.useRef(null),m=N.useRef(),y=()=>{f.current&&(m.current=new Ol(f.current,{type:o,data:FE(s,a),options:l&&{...l},plugins:c}),eg(t,m.current))},x=()=>{eg(t,null),m.current&&(m.current.destroy(),m.current=null)};return N.useEffect(()=>{!i&&m.current&&l&&IE(m.current,l)},[i,l]),N.useEffect(()=>{!i&&m.current&&y1(m.current.config.data,s.labels)},[i,s.labels]),N.useEffect(()=>{!i&&m.current&&s.datasets&&x1(m.current.config.data,s.datasets,a)},[i,s.datasets]),N.useEffect(()=>{m.current&&(i?(x(),setTimeout(y)):m.current.update(d))},[i,l,s.labels,s.datasets,d]),N.useEffect(()=>{m.current&&(x(),setTimeout(y))},[o]),N.useEffect(()=>(y(),()=>x()),[]),pi.createElement("canvas",Object.assign({ref:f,role:"img",height:n,width:r},h),u)}const UE=N.forwardRef(BE);function Th(e,t){return Ol.register(t),N.forwardRef((n,r)=>pi.createElement(UE,Object.assign({},n,{ref:r,type:e})))}const VE=Th("line",ls),HE=Th("bar",ss),WE=Th("doughnut",Wi),$E=()=>{const e={labels:["January","February","March","April","May","June"],datasets:[{label:"Messages",data:[65,59,80,81,56,55],fill:!1,backgroundColor:"rgba(75,192,192,0.2)",borderColor:"rgba(75,192,192,1)"}]},t={labels:["User","Bot"],datasets:[{label:"Messages",data:[300,450],backgroundColor:["#36A2EB","#FF6384"]}]},n={labels:["<1s","1-2s","2-3s",">3s"],datasets:[{label:"Response Time",data:[50,100,75,25],backgroundColor:["rgba(255, 99, 132, 0.2)","rgba(54, 162, 235, 0.2)","rgba(255, 206, 86, 0.2)","rgba(75, 192, 192, 0.2)"],borderColor:["rgba(255, 99, 132, 1)","rgba(54, 162, 235, 1)","rgba(255, 206, 86, 1)","rgba(75, 192, 192, 1)"],borderWidth:1}]};return p.jsxs("div",{className:"flex",children:[p.jsx(ph,{}),p.jsx("div",{className:"ml-64 flex-1 p-6 bg-gray-100",children:p.jsxs("div",{className:"p-4 bg-white rounded-lg shadow",children:[p.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Analytics"}),p.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-4",children:[p.jsxs("div",{className:"p-4 bg-gray-100 rounded-lg",children:[p.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Messages Over Time"}),p.jsx(VE,{data:e})]}),p.jsxs("div",{className:"p-4 bg-gray-100 rounded-lg",children:[p.jsx("h3",{className:"text-xl font-semibold mb-2",children:"User vs Bot Messages"}),p.jsx(WE,{data:t})]}),p.jsxs("div",{className:"p-4 bg-gray-100 rounded-lg",children:[p.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Response Time Distribution"}),p.jsx(HE,{data:n})]})]})]})})]})},YE=()=>p.jsxs("div",{className:"flex",children:[p.jsx(ph,{}),p.jsx("div",{className:"ml-64 flex-1 p-6 bg-gray-100",children:p.jsxs("div",{className:"p-4 bg-white rounded-lg shadow",children:[p.jsx("h2",{className:"text-2xl font-bold mb-4",children:"Selected MDL List"}),p.jsxs("div",{className:"space-y-4",children:[p.jsx("div",{className:"p-4 bg-blue-50 rounded-lg",children:p.jsx("h3",{className:"font-semibold",children:"Project Details"})}),p.jsx("div",{className:"p-4 bg-blue-50 rounded-lg",children:p.jsx("h3",{className:"font-semibold",children:"SO Details"})}),p.jsxs("div",{className:"p-4 bg-blue-50 rounded-lg",children:[p.jsx("h3",{className:"font-semibold",children:"Master Document List"}),p.jsxs("table",{className:"min-w-full bg-white rounded-lg",children:[p.jsx("thead",{className:"bg-gray-200",children:p.jsxs("tr",{children:[p.jsx("th",{className:"py-2 px-4",children:"Document Title"}),p.jsx("th",{className:"py-2 px-4",children:"Planned Date"}),p.jsx("th",{className:"py-2 px-4",children:"Doc. No"}),p.jsx("th",{className:"py-2 px-4",children:"Latest Rev No"}),p.jsx("th",{className:"py-2 px-4",children:"Submission Dt"}),p.jsx("th",{className:"py-2 px-4",children:"Commented Dt"}),p.jsx("th",{className:"py-2 px-4",children:"Approved Dt"}),p.jsx("th",{className:"py-2 px-4",children:"Approval Status"}),p.jsx("th",{className:"py-2 px-4",children:"Options For Enquiry"})]})}),p.jsxs("tbody",{children:[p.jsxs("tr",{children:[p.jsx("td",{className:"border px-4 py-2",children:"Strainer Drawing"}),p.jsx("td",{className:"border px-4 py-2",children:"06/17/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"15201"}),p.jsx("td",{className:"border px-4 py-2",children:"R1"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"APPROVED"}),p.jsx("td",{className:"border px-4 py-2",children:p.jsx("button",{className:"bg-blue-500 text-white px-2 py-1 rounded",children:"Options"})})]}),p.jsxs("tr",{children:[p.jsx("td",{className:"border px-4 py-2",children:"Strainer QCP"}),p.jsx("td",{className:"border px-4 py-2",children:"08/20/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"EC5024"}),p.jsx("td",{className:"border px-4 py-2",children:"R4"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"APPROVED"}),p.jsx("td",{className:"border px-4 py-2",children:p.jsx("button",{className:"bg-blue-500 text-white px-2 py-1 rounded",children:"Options"})})]}),p.jsxs("tr",{children:[p.jsx("td",{className:"border px-4 py-2",children:"Motor GA Drawing"}),p.jsx("td",{className:"border px-4 py-2",children:"08/30/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"EC4121"}),p.jsx("td",{className:"border px-4 py-2",children:"R2"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"05/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"APPROVED"}),p.jsx("td",{className:"border px-4 py-2",children:p.jsx("button",{className:"bg-blue-500 text-white px-2 py-1 rounded",children:"Options"})})]})]})]})]}),p.jsxs("div",{className:"p-4 bg-blue-50 rounded-lg",children:[p.jsx("h3",{className:"font-semibold",children:"Revision History: Strainer Drawing"}),p.jsxs("table",{className:"min-w-full bg-white rounded-lg",children:[p.jsx("thead",{className:"bg-gray-200",children:p.jsxs("tr",{children:[p.jsx("th",{className:"py-2 px-4",children:"SR. No"}),p.jsx("th",{className:"py-2 px-4",children:"Document Title"}),p.jsx("th",{className:"py-2 px-4",children:"Doc. No"}),p.jsx("th",{className:"py-2 px-4",children:"Latest Rev No"}),p.jsx("th",{className:"py-2 px-4",children:"Submission Dt"}),p.jsx("th",{className:"py-2 px-4",children:"Commented Dt"}),p.jsx("th",{className:"py-2 px-4",children:"Approved Dt"}),p.jsx("th",{className:"py-2 px-4",children:"Approval Status"}),p.jsx("th",{className:"py-2 px-4",children:"Options For Enquiry"})]})}),p.jsx("tbody",{children:p.jsxs("tr",{children:[p.jsx("td",{className:"border px-4 py-2",children:"1"}),p.jsx("td",{className:"border px-4 py-2",children:"Strainer Drawing"}),p.jsx("td",{className:"border px-4 py-2",children:"15201"}),p.jsx("td",{className:"border px-4 py-2",children:"R0"}),p.jsx("td",{className:"border px-4 py-2",children:"02/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"02/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"02/07/2017"}),p.jsx("td",{className:"border px-4 py-2",children:"Enquiry"}),p.jsx("td",{className:"border px-4 py-2",children:p.jsx("button",{className:"bg-blue-500 text-white px-2 py-1 rounded",children:"Options"})})]})})]})]})]})]})})]});function qE(){const[e,t]=N.useState(localStorage.getItem("token"));return p.jsx($2,{children:p.jsx("div",{className:"min-h-screen flex flex-col",children:p.jsxs(I2,{children:[p.jsx(et,{path:"/",element:p.jsx(Sb,{to:"/ocrdashboard",replace:!0})}),p.jsx(et,{path:"/text-to-speech",element:p.jsx(Wt,{token:e,children:p.jsx(Wk,{})})}),p.jsx(et,{path:"/login",element:p.jsx(Yk,{setToken:t})}),p.jsx(et,{path:"/logout",element:p.jsx(Wt,{token:e,children:p.jsx(r_,{setToken:t})})}),p.jsx(et,{path:"/register",element:p.jsx(Nk,{})}),p.jsx(et,{path:"/ocrdashboard",element:p.jsx(Wt,{token:e,children:p.jsx(e_,{})})}),p.jsx(et,{path:"/ocrtemplate",element:p.jsx(Wt,{token:e,children:p.jsx(n_,{})})}),p.jsx(et,{path:"/erpcredential",element:p.jsx(Wt,{token:e,children:p.jsx(t_,{})})}),p.jsx(et,{path:"/chat",element:p.jsx(Wt,{token:e,children:p.jsx(u5,{})})}),p.jsx(et,{path:"/analytics",element:p.jsx(Wt,{token:e,children:p.jsx($E,{})})}),p.jsx(et,{path:"/models",element:p.jsx(Wt,{token:e,children:p.jsx(YE,{})})}),p.jsx(et,{path:"/config",element:p.jsx(Wt,{token:e,children:p.jsx(Vk,{})})})]})})})}Ol.register(Qu,Xu,ds,qi,hs,Yi,sE,mE,aE);Ec.createRoot(document.getElementById("root")).render(p.jsx(pi.StrictMode,{children:p.jsx(qE,{})}));