pat-shared-components 0.2.0-beta.17 → 0.2.0-beta.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +4 -4
- package/dist/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -22482,7 +22482,7 @@ var vu = function(n) {
|
|
|
22482
22482
|
return "function ResizeObserver () { [polyfill code] }";
|
|
22483
22483
|
}, n;
|
|
22484
22484
|
}();
|
|
22485
|
-
const tE = (n) => (Xu("data-v-
|
|
22485
|
+
const tE = (n) => (Xu("data-v-8a6cf4c9"), n = n(), Zu(), n), hP = { class: "trend-detail" }, fP = { class: "chart-wrapper psc-p-4 psc-rounded-xl" }, dP = { class: "psc-flex psc-items-center" }, pP = { class: "psc-w-1/2 psc-text-black/[0.85]" }, _P = { class: "psc-text-xl psc-font-semibold" }, gP = { class: "psc-w-1/2 psc-flex psc-justify-end psc-space-x-3" }, mP = /* @__PURE__ */ tE(() => /* @__PURE__ */ tt("i", { class: "dgic-expand-left psc-text-2xl -psc-ml-0.5 psc-text-black/[0.85]" }, null, -1)), vP = /* @__PURE__ */ tE(() => /* @__PURE__ */ tt("i", { class: "dgic-expand-right psc-text-2xl -psc-mr-0.5 psc-text-black/[0.85]" }, null, -1)), yP = { class: "psc-px-6 psc-mt-6" }, bP = { class: "test-explaination psc-bg-[#e6f0fe] psc-p-4 psc-rounded-lg psc-mt-8" }, kP = { class: "psc-font-semibold psc-text-black/[0.85]" }, xP = { class: "psc-text-sm psc-text-black/[0.85] psc-mt-2" }, wP = /* @__PURE__ */ De({
|
|
22486
22486
|
__name: "TestResultHistoryDetail",
|
|
22487
22487
|
props: {
|
|
22488
22488
|
historyData: null
|
|
@@ -22626,7 +22626,7 @@ ${K(it.order_date)}`;
|
|
|
22626
22626
|
Me(dt(Wu), {
|
|
22627
22627
|
size: "sm",
|
|
22628
22628
|
type: "icon",
|
|
22629
|
-
class: "psc-rounded-full psc-w-8 psc-h-8 !psc-p-0 psc-border psc-border-black/[0.1]",
|
|
22629
|
+
class: "psc-rounded-full psc-w-8 psc-h-8 !psc-p-0 psc-border psc-border-black/[0.1] psc-bg-transparent",
|
|
22630
22630
|
disabled: d.value.no === 0,
|
|
22631
22631
|
onClick: U
|
|
22632
22632
|
}, {
|
|
@@ -22638,7 +22638,7 @@ ${K(it.order_date)}`;
|
|
|
22638
22638
|
Me(dt(Wu), {
|
|
22639
22639
|
size: "sm",
|
|
22640
22640
|
type: "icon",
|
|
22641
|
-
class: "psc-rounded-full psc-w-8 psc-h-8 !psc-p-0 psc-border psc-border-black/[0.1]",
|
|
22641
|
+
class: "psc-rounded-full psc-w-8 psc-h-8 !psc-p-0 psc-border psc-border-black/[0.1] psc-bg-transparent",
|
|
22642
22642
|
disabled: d.value.no >= dt(f) - 1,
|
|
22643
22643
|
onClick: P
|
|
22644
22644
|
}, {
|
|
@@ -22665,7 +22665,7 @@ ${K(it.order_date)}`;
|
|
|
22665
22665
|
]));
|
|
22666
22666
|
}
|
|
22667
22667
|
});
|
|
22668
|
-
const SP = /* @__PURE__ */ Jr(wP, [["__scopeId", "data-v-
|
|
22668
|
+
const SP = /* @__PURE__ */ Jr(wP, [["__scopeId", "data-v-8a6cf4c9"]]), EP = /* @__PURE__ */ tt("div", null, null, -1), DP = {
|
|
22669
22669
|
key: 0,
|
|
22670
22670
|
class: "history-content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"
|
|
22671
22671
|
}, TP = { class: "psc-animate-spin" }, MP = {
|
package/dist/index.umd.js
CHANGED
|
@@ -94,10 +94,10 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
94
94
|
* Released under the MIT License
|
|
95
95
|
*/class aO{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,s,a){const o=e.listeners[a],u=e.duration;o.forEach(d=>d({chart:t,initial:e.initial,numSteps:u,currentStep:Math.min(s-e.start,u)}))}_refresh(){this._request||(this._running=!0,this._request=dx.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((s,a)=>{if(!s.running||!s.items.length)return;const o=s.items;let u=o.length-1,d=!1,f;for(;u>=0;--u)f=o[u],f._active?(f._total>s.duration&&(s.duration=f._total),f.tick(t),d=!0):(o[u]=o[o.length-1],o.pop());d&&(a.draw(),this._notify(a,s,t,"progress")),o.length||(s.running=!1,this._notify(a,s,t,"complete"),s.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){const e=this._charts;let s=e.get(t);return s||(s={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,s)),s}listen(t,e,s){this._getAnims(t).listeners[e].push(s)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);!e||(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((s,a)=>Math.max(s,a._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const s=e.items;let a=s.length-1;for(;a>=0;--a)s[a].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var _a=new aO;const Zx="transparent",oO={boolean(n,t,e){return e>.5?t:n},color(n,t,e){const s=Cx(n||Zx),a=s.valid&&Cx(t||Zx);return a&&a.valid?a.mix(s,e).hexString():t},number(n,t,e){return n+(t-n)*e}};class lO{constructor(t,e,s,a){const o=e[s];a=cu([t.to,a,o,t.from]);const u=cu([t.from,o,a]);this._active=!0,this._fn=t.fn||oO[t.type||typeof u],this._easing=iu[t.easing]||iu.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=s,this._from=u,this._to=a,this._promises=void 0}active(){return this._active}update(t,e,s){if(this._active){this._notify(!1);const a=this._target[this._prop],o=s-this._start,u=this._duration-o;this._start=s,this._duration=Math.floor(Math.max(u,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=cu([t.to,e,a,t.from]),this._from=cu([t.from,a,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,s=this._duration,a=this._prop,o=this._from,u=this._loop,d=this._to;let f;if(this._active=o!==d&&(u||e<s),!this._active){this._target[a]=d,this._notify(!0);return}if(e<0){this._target[a]=o;return}f=e/s%2,f=u&&f>1?2-f:f,f=this._easing(Math.min(1,Math.max(0,f))),this._target[a]=this._fn(o,d,f)}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,s)=>{t.push({res:e,rej:s})})}_notify(t){const e=t?"res":"rej",s=this._promises||[];for(let a=0;a<s.length;a++)s[a][e]()}}const cO=["x","y","borderWidth","radius","tension"],uO=["color","borderColor","backgroundColor"];Be.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const hO=Object.keys(Be.animation);Be.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:n=>n!=="onProgress"&&n!=="onComplete"&&n!=="fn"}),Be.set("animations",{colors:{type:"color",properties:uO},numbers:{type:"number",properties:cO}}),Be.describe("animations",{_fallback:"animation"}),Be.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:n=>n|0}}}});class Jx{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Re(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{const a=t[s];if(!Re(a))return;const o={};for(const u of hO)o[u]=a[u];(mn(a.properties)&&a.properties||[s]).forEach(u=>{(u===s||!e.has(u))&&e.set(u,o)})})}_animateOptions(t,e){const s=e.options,a=fO(t,s);if(!a)return[];const o=this._createAnimations(a,s);return s.$shared&&dO(t.options.$animations,s).then(()=>{t.options=s},()=>{}),o}_createAnimations(t,e){const s=this._properties,a=[],o=t.$animations||(t.$animations={}),u=Object.keys(e),d=Date.now();let f;for(f=u.length-1;f>=0;--f){const g=u[f];if(g.charAt(0)==="$")continue;if(g==="options"){a.push(...this._animateOptions(t,e));continue}const v=e[g];let D=o[g];const T=s.get(g);if(D)if(T&&D.active()){D.update(T,v,d);continue}else D.cancel();if(!T||!T.duration){t[g]=v;continue}o[g]=D=new lO(T,t,g,v),a.push(D)}return a}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}const s=this._createAnimations(t,e);if(s.length)return _a.add(this._chart,s),!0}}function dO(n,t){const e=[],s=Object.keys(t);for(let a=0;a<s.length;a++){const o=n[s[a]];o&&o.active()&&e.push(o.wait())}return Promise.all(e)}function fO(n,t){if(!t)return;let e=n.options;if(!e){n.options=t;return}return e.$shared&&(n.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function Qx(n,t){const e=n&&n.options||{},s=e.reverse,a=e.min===void 0?t:0,o=e.max===void 0?t:0;return{start:s?o:a,end:s?a:o}}function pO(n,t,e){if(e===!1)return!1;const s=Qx(n,e),a=Qx(t,e);return{top:a.end,right:s.end,bottom:a.start,left:s.start}}function mO(n){let t,e,s,a;return Re(n)?(t=n.top,e=n.right,s=n.bottom,a=n.left):t=e=s=a=n,{top:t,right:e,bottom:s,left:a,disabled:n===!1}}function tw(n,t){const e=[],s=n._getSortedDatasetMetas(t);let a,o;for(a=0,o=s.length;a<o;++a)e.push(s[a].index);return e}function ew(n,t,e,s={}){const a=n.keys,o=s.mode==="single";let u,d,f,g;if(t!==null){for(u=0,d=a.length;u<d;++u){if(f=+a[u],f===e){if(s.all)continue;break}g=n.values[f],Un(g)&&(o||t===0||jr(t)===jr(g))&&(t+=g)}return t}}function _O(n){const t=Object.keys(n),e=new Array(t.length);let s,a,o;for(s=0,a=t.length;s<a;++s)o=t[s],e[s]={x:o,y:n[o]};return e}function nw(n,t){const e=n&&n.options.stacked;return e||e===void 0&&t.stack!==void 0}function gO(n,t,e){return`${n.id}.${t.id}.${e.stack||e.type}`}function yO(n){const{min:t,max:e,minDefined:s,maxDefined:a}=n.getUserBounds();return{min:s?t:Number.NEGATIVE_INFINITY,max:a?e:Number.POSITIVE_INFINITY}}function bO(n,t,e){const s=n[t]||(n[t]={});return s[e]||(s[e]={})}function iw(n,t,e,s){for(const a of t.getMatchingVisibleMetas(s).reverse()){const o=n[a.index];if(e&&o>0||!e&&o<0)return a.index}return null}function sw(n,t){const{chart:e,_cachedMeta:s}=n,a=e._stacks||(e._stacks={}),{iScale:o,vScale:u,index:d}=s,f=o.axis,g=u.axis,v=gO(o,u,s),D=t.length;let T;for(let A=0;A<D;++A){const M=t[A],{[f]:W,[g]:U}=M,O=M._stacks||(M._stacks={});T=O[g]=bO(a,v,W),T[d]=U,T._top=iw(T,u,!0,s.type),T._bottom=iw(T,u,!1,s.type)}}function Up(n,t){const e=n.scales;return Object.keys(e).filter(s=>e[s].axis===t).shift()}function vO(n,t){return $o(n,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function kO(n,t,e){return $o(n,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function hu(n,t){const e=n.controller.index,s=n.vScale&&n.vScale.axis;if(!!s){t=t||n._parsed;for(const a of t){const o=a._stacks;if(!o||o[s]===void 0||o[s][e]===void 0)return;delete o[s][e]}}}const Hp=n=>n==="reset"||n==="none",rw=(n,t)=>t?n:Object.assign({},n),xO=(n,t,e)=>n&&!t.hidden&&t._stacked&&{keys:tw(e,!0),values:null};class nr{constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,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.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=nw(t.vScale,t),this.addElements()}updateIndex(t){this.index!==t&&hu(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,s=this.getDataset(),a=(D,T,A,M)=>D==="x"?T:D==="r"?M:A,o=e.xAxisID=De(s.xAxisID,Up(t,"x")),u=e.yAxisID=De(s.yAxisID,Up(t,"y")),d=e.rAxisID=De(s.rAxisID,Up(t,"r")),f=e.indexAxis,g=e.iAxisID=a(f,o,u,d),v=e.vAxisID=a(f,u,o,d);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(u),e.rScale=this.getScaleForId(d),e.iScale=this.getScaleForId(g),e.vScale=this.getScaleForId(v)}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 e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&ux(this._data,this),t._stacked&&hu(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),s=this._data;if(Re(e))this._data=_O(e);else if(s!==e){if(s){ux(s,this);const a=this._cachedMeta;hu(a),a._parsed=[]}e&&Object.isExtensible(e)&&UN(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,s=this.getDataset();let a=!1;this._dataCheck();const o=e._stacked;e._stacked=nw(e.vScale,e),e.stack!==s.stack&&(a=!0,hu(e),e.stack=s.stack),this._resyncElements(t),(a||o!==e._stacked)&&sw(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),s=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(s,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:s,_data:a}=this,{iScale:o,_stacked:u}=s,d=o.axis;let f=t===0&&e===a.length?!0:s._sorted,g=t>0&&s._parsed[t-1],v,D,T;if(this._parsing===!1)s._parsed=a,s._sorted=!0,T=a;else{mn(a[t])?T=this.parseArrayData(s,a,t,e):Re(a[t])?T=this.parseObjectData(s,a,t,e):T=this.parsePrimitiveData(s,a,t,e);const A=()=>D[d]===null||g&&D[d]<g[d];for(v=0;v<e;++v)s._parsed[v+t]=D=T[v],f&&(A()&&(f=!1),g=D);s._sorted=f}u&&sw(this,T)}parsePrimitiveData(t,e,s,a){const{iScale:o,vScale:u}=t,d=o.axis,f=u.axis,g=o.getLabels(),v=o===u,D=new Array(a);let T,A,M;for(T=0,A=a;T<A;++T)M=T+s,D[T]={[d]:v||o.parse(g[M],M),[f]:u.parse(e[M],M)};return D}parseArrayData(t,e,s,a){const{xScale:o,yScale:u}=t,d=new Array(a);let f,g,v,D;for(f=0,g=a;f<g;++f)v=f+s,D=e[v],d[f]={x:o.parse(D[0],v),y:u.parse(D[1],v)};return d}parseObjectData(t,e,s,a){const{xScale:o,yScale:u}=t,{xAxisKey:d="x",yAxisKey:f="y"}=this._parsing,g=new Array(a);let v,D,T,A;for(v=0,D=a;v<D;++v)T=v+s,A=e[T],g[v]={x:o.parse(Ro(A,d),T),y:u.parse(Ro(A,f),T)};return g}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,s){const a=this.chart,o=this._cachedMeta,u=e[t.axis],d={keys:tw(a,!0),values:e._stacks[t.axis]};return ew(d,u,o.index,{mode:s})}updateRangeFromParsed(t,e,s,a){const o=s[e.axis];let u=o===null?NaN:o;const d=a&&s._stacks[e.axis];a&&d&&(a.values=d,u=ew(a,o,this._cachedMeta.index)),t.min=Math.min(t.min,u),t.max=Math.max(t.max,u)}getMinMax(t,e){const s=this._cachedMeta,a=s._parsed,o=s._sorted&&t===s.iScale,u=a.length,d=this._getOtherScale(t),f=xO(e,s,this.chart),g={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:v,max:D}=yO(d);let T,A;function M(){A=a[T];const W=A[d.axis];return!Un(A[t.axis])||v>W||D<W}for(T=0;T<u&&!(!M()&&(this.updateRangeFromParsed(g,t,A,f),o));++T);if(o){for(T=u-1;T>=0;--T)if(!M()){this.updateRangeFromParsed(g,t,A,f);break}}return g}getAllParsedValues(t){const e=this._cachedMeta._parsed,s=[];let a,o,u;for(a=0,o=e.length;a<o;++a)u=e[a][t.axis],Un(u)&&s.push(u);return s}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,s=e.iScale,a=e.vScale,o=this.getParsed(t);return{label:s?""+s.getLabelForValue(o[s.axis]):"",value:a?""+a.getLabelForValue(o[a.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=mO(De(this.options.clip,pO(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,e=this.chart,s=this._cachedMeta,a=s.data||[],o=e.chartArea,u=[],d=this._drawStart||0,f=this._drawCount||a.length-d,g=this.options.drawActiveElementsOnTop;let v;for(s.dataset&&s.dataset.draw(t,o,d,f),v=d;v<d+f;++v){const D=a[v];D.hidden||(D.active&&g?u.push(D):D.draw(t,o))}for(v=0;v<u.length;++v)u[v].draw(t,o)}getStyle(t,e){const s=e?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(s):this.resolveDataElementOptions(t||0,s)}getContext(t,e,s){const a=this.getDataset();let o;if(t>=0&&t<this._cachedMeta.data.length){const u=this._cachedMeta.data[t];o=u.$context||(u.$context=kO(this.getContext(),t,u)),o.parsed=this.getParsed(t),o.raw=a.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=vO(this.chart.getContext(),this.index)),o.dataset=a,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=s,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",s){const a=e==="active",o=this._cachedDataOpts,u=t+"-"+e,d=o[u],f=this.enableOptionSharing&&Xs(s);if(d)return rw(d,f);const g=this.chart.config,v=g.datasetElementScopeKeys(this._type,t),D=a?[`${t}Hover`,"hover",t,""]:[t,""],T=g.getOptionScopes(this.getDataset(),v),A=Object.keys(Be.elements[t]),M=()=>this.getContext(s,a),W=g.resolveNamedOptions(T,A,M,D);return W.$shared&&(W.$shared=f,o[u]=Object.freeze(rw(W,f))),W}_resolveAnimations(t,e,s){const a=this.chart,o=this._cachedDataOpts,u=`animation-${e}`,d=o[u];if(d)return d;let f;if(a.options.animation!==!1){const v=this.chart.config,D=v.datasetAnimationScopeKeys(this._type,e),T=v.getOptionScopes(this.getDataset(),D);f=v.createResolver(T,this.getContext(t,s,e))}const g=new Jx(a,f&&f.animations);return f&&f._cacheable&&(o[u]=Object.freeze(g)),g}getSharedOptions(t){if(!!t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Hp(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const s=this.resolveDataElementOptions(t,e),a=this._sharedOptions,o=this.getSharedOptions(s),u=this.includeOptions(e,o)||o!==a;return this.updateSharedOptions(o,e,s),{sharedOptions:o,includeOptions:u}}updateElement(t,e,s,a){Hp(a)?Object.assign(t,s):this._resolveAnimations(e,a).update(t,s)}updateSharedOptions(t,e,s){t&&!Hp(e)&&this._resolveAnimations(void 0,e).update(t,s)}_setStyle(t,e,s,a){t.active=a;const o=this.getStyle(e,a);this._resolveAnimations(e,s,a).update(t,{options:!a&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,s){this._setStyle(t,s,"active",!1)}setHoverStyle(t,e,s){this._setStyle(t,s,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,s=this._cachedMeta.data;for(const[d,f,g]of this._syncList)this[d](f,g);this._syncList=[];const a=s.length,o=e.length,u=Math.min(o,a);u&&this.parse(0,u),o>a?this._insertElements(a,o-a,t):o<a&&this._removeElements(o,a-o)}_insertElements(t,e,s=!0){const a=this._cachedMeta,o=a.data,u=t+e;let d;const f=g=>{for(g.length+=e,d=g.length-1;d>=u;d--)g[d]=g[d-e]};for(f(o),d=t;d<u;++d)o[d]=new this.dataElementType;this._parsing&&f(a._parsed),this.parse(t,e),s&&this.updateElements(o,t,e,"reset")}updateElements(t,e,s,a){}_removeElements(t,e){const s=this._cachedMeta;if(this._parsing){const a=s._parsed.splice(t,e);s._stacked&&hu(s,a)}s.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,s,a]=t;this[e](s,a)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const s=arguments.length-2;s&&this._sync(["_insertElements",t,s])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}nr.defaults={},nr.prototype.datasetElementType=null,nr.prototype.dataElementType=null;function wO(n,t){if(!n._cache.$bar){const e=n.getMatchingVisibleMetas(t);let s=[];for(let a=0,o=e.length;a<o;a++)s=s.concat(e[a].controller.getAllParsedValues(n));n._cache.$bar=hx(s.sort((a,o)=>a-o))}return n._cache.$bar}function EO(n){const t=n.iScale,e=wO(t,n.type);let s=t._length,a,o,u,d;const f=()=>{u===32767||u===-32768||(Xs(d)&&(s=Math.min(s,Math.abs(u-d)||s)),d=u)};for(a=0,o=e.length;a<o;++a)u=t.getPixelForValue(e[a]),f();for(d=void 0,a=0,o=t.ticks.length;a<o;++a)u=t.getPixelForTick(a),f();return s}function SO(n,t,e,s){const a=e.barThickness;let o,u;return Ye(a)?(o=t.min*e.categoryPercentage,u=e.barPercentage):(o=a*s,u=1),{chunk:o/s,ratio:u,start:t.pixels[n]-o/2}}function DO(n,t,e,s){const a=t.pixels,o=a[n];let u=n>0?a[n-1]:null,d=n<a.length-1?a[n+1]:null;const f=e.categoryPercentage;u===null&&(u=o-(d===null?t.end-t.start:d-o)),d===null&&(d=o+o-u);const g=o-(o-Math.min(u,d))/2*f;return{chunk:Math.abs(d-u)/2*f/s,ratio:e.barPercentage,start:g}}function CO(n,t,e,s){const a=e.parse(n[0],s),o=e.parse(n[1],s),u=Math.min(a,o),d=Math.max(a,o);let f=u,g=d;Math.abs(u)>Math.abs(d)&&(f=d,g=u),t[e.axis]=g,t._custom={barStart:f,barEnd:g,start:a,end:o,min:u,max:d}}function aw(n,t,e,s){return mn(n)?CO(n,t,e,s):t[e.axis]=e.parse(n,s),t}function ow(n,t,e,s){const a=n.iScale,o=n.vScale,u=a.getLabels(),d=a===o,f=[];let g,v,D,T;for(g=e,v=e+s;g<v;++g)T=t[g],D={},D[a.axis]=d||a.parse(u[g],g),f.push(aw(T,D,o,g));return f}function zp(n){return n&&n.barStart!==void 0&&n.barEnd!==void 0}function TO(n,t,e){return n!==0?jr(n):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}function MO(n){let t,e,s,a,o;return n.horizontal?(t=n.base>n.x,e="left",s="right"):(t=n.base<n.y,e="bottom",s="top"),t?(a="end",o="start"):(a="start",o="end"),{start:e,end:s,reverse:t,top:a,bottom:o}}function NO(n,t,e,s){let a=t.borderSkipped;const o={};if(!a){n.borderSkipped=o;return}if(a===!0){n.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:u,end:d,reverse:f,top:g,bottom:v}=MO(n);a==="middle"&&e&&(n.enableBorderRadius=!0,(e._top||0)===s?a=g:(e._bottom||0)===s?a=v:(o[lw(v,u,d,f)]=!0,a=g)),o[lw(a,u,d,f)]=!0,n.borderSkipped=o}function lw(n,t,e,s){return s?(n=AO(n,t,e),n=cw(n,e,t)):n=cw(n,t,e),n}function AO(n,t,e){return n===t?e:n===e?t:n}function cw(n,t,e){return n==="start"?t:n==="end"?e:n}function OO(n,{inflateAmount:t},e){n.inflateAmount=t==="auto"?e===1?.33:0:t}class nf extends nr{parsePrimitiveData(t,e,s,a){return ow(t,e,s,a)}parseArrayData(t,e,s,a){return ow(t,e,s,a)}parseObjectData(t,e,s,a){const{iScale:o,vScale:u}=t,{xAxisKey:d="x",yAxisKey:f="y"}=this._parsing,g=o.axis==="x"?d:f,v=u.axis==="x"?d:f,D=[];let T,A,M,W;for(T=s,A=s+a;T<A;++T)W=e[T],M={},M[o.axis]=o.parse(Ro(W,g),T),D.push(aw(Ro(W,v),M,u,T));return D}updateRangeFromParsed(t,e,s,a){super.updateRangeFromParsed(t,e,s,a);const o=s._custom;o&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,o.min),t.max=Math.max(t.max,o.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:s,vScale:a}=e,o=this.getParsed(t),u=o._custom,d=zp(u)?"["+u.start+", "+u.end+"]":""+a.getLabelForValue(o[a.axis]);return{label:""+s.getLabelForValue(o[s.axis]),value:d}}initialize(){this.enableOptionSharing=!0,super.initialize();const t=this._cachedMeta;t.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,s,a){const o=a==="reset",{index:u,_cachedMeta:{vScale:d}}=this,f=d.getBasePixel(),g=d.isHorizontal(),v=this._getRuler(),{sharedOptions:D,includeOptions:T}=this._getSharedOptions(e,a);for(let A=e;A<e+s;A++){const M=this.getParsed(A),W=o||Ye(M[d.axis])?{base:f,head:f}:this._calculateBarValuePixels(A),U=this._calculateBarIndexPixels(A,v),O=(M._stacks||{})[d.axis],R={horizontal:g,base:W.base,enableBorderRadius:!O||zp(M._custom)||u===O._top||u===O._bottom,x:g?W.head:U.center,y:g?U.center:W.head,height:g?U.size:Math.abs(W.size),width:g?Math.abs(W.size):U.size};T&&(R.options=D||this.resolveDataElementOptions(A,t[A].active?"active":a));const H=R.options||t[A].options;NO(R,H,O,u),OO(R,H,v.ratio),this.updateElement(t[A],A,R,a)}}_getStacks(t,e){const{iScale:s}=this._cachedMeta,a=s.getMatchingVisibleMetas(this._type).filter(f=>f.controller.options.grouped),o=s.options.stacked,u=[],d=f=>{const g=f.controller.getParsed(e),v=g&&g[f.vScale.axis];if(Ye(v)||isNaN(v))return!0};for(const f of a)if(!(e!==void 0&&d(f))&&((o===!1||u.indexOf(f.stack)===-1||o===void 0&&f.stack===void 0)&&u.push(f.stack),f.index===t))break;return u.length||u.push(void 0),u}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,s){const a=this._getStacks(t,s),o=e!==void 0?a.indexOf(e):-1;return o===-1?a.length-1:o}_getRuler(){const t=this.options,e=this._cachedMeta,s=e.iScale,a=[];let o,u;for(o=0,u=e.data.length;o<u;++o)a.push(s.getPixelForValue(this.getParsed(o)[s.axis],o));const d=t.barThickness;return{min:d||EO(e),pixels:a,start:s._startPixel,end:s._endPixel,stackCount:this._getStackCount(),scale:s,grouped:t.grouped,ratio:d?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:s},options:{base:a,minBarLength:o}}=this,u=a||0,d=this.getParsed(t),f=d._custom,g=zp(f);let v=d[e.axis],D=0,T=s?this.applyStack(e,d,s):v,A,M;T!==v&&(D=T-v,T=v),g&&(v=f.barStart,T=f.barEnd-f.barStart,v!==0&&jr(v)!==jr(f.barEnd)&&(D=0),D+=v);const W=!Ye(a)&&!g?a:D;let U=e.getPixelForValue(W);if(this.chart.getDataVisibility(t)?A=e.getPixelForValue(D+T):A=U,M=A-U,Math.abs(M)<o){M=TO(M,e,u)*o,v===u&&(U-=M/2);const O=e.getPixelForDecimal(0),R=e.getPixelForDecimal(1),H=Math.min(O,R),Y=Math.max(O,R);U=Math.max(Math.min(U,Y),H),A=U+M}if(U===e.getPixelForValue(u)){const O=jr(M)*e.getLineWidthForValue(u)/2;U+=O,M-=O}return{size:M,base:U,head:A,center:A+M/2}}_calculateBarIndexPixels(t,e){const s=e.scale,a=this.options,o=a.skipNull,u=De(a.maxBarThickness,1/0);let d,f;if(e.grouped){const g=o?this._getStackCount(t):e.stackCount,v=a.barThickness==="flex"?DO(t,e,a,g):SO(t,e,a,g),D=this._getStackIndex(this.index,this._cachedMeta.stack,o?t:void 0);d=v.start+v.chunk*D+v.chunk/2,f=Math.min(u,v.chunk*v.ratio)}else d=s.getPixelForValue(this.getParsed(t)[s.axis],t),f=Math.min(u,e.min*e.ratio);return{base:d-f/2,head:d+f/2,center:d,size:f}}draw(){const t=this._cachedMeta,e=t.vScale,s=t.data,a=s.length;let o=0;for(;o<a;++o)this.getParsed(o)[e.axis]!==null&&s[o].draw(this._ctx)}}nf.id="bar",nf.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}},nf.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class sf extends nr{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,s,a){const o=super.parsePrimitiveData(t,e,s,a);for(let u=0;u<o.length;u++)o[u]._custom=this.resolveDataElementOptions(u+s).radius;return o}parseArrayData(t,e,s,a){const o=super.parseArrayData(t,e,s,a);for(let u=0;u<o.length;u++){const d=e[s+u];o[u]._custom=De(d[2],this.resolveDataElementOptions(u+s).radius)}return o}parseObjectData(t,e,s,a){const o=super.parseObjectData(t,e,s,a);for(let u=0;u<o.length;u++){const d=e[s+u];o[u]._custom=De(d&&d.r&&+d.r,this.resolveDataElementOptions(u+s).radius)}return o}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let s=t.length-1;s>=0;--s)e=Math.max(e,t[s].size(this.resolveDataElementOptions(s))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,{xScale:s,yScale:a}=e,o=this.getParsed(t),u=s.getLabelForValue(o.x),d=a.getLabelForValue(o.y),f=o._custom;return{label:e.label,value:"("+u+", "+d+(f?", "+f:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,s,a){const o=a==="reset",{iScale:u,vScale:d}=this._cachedMeta,{sharedOptions:f,includeOptions:g}=this._getSharedOptions(e,a),v=u.axis,D=d.axis;for(let T=e;T<e+s;T++){const A=t[T],M=!o&&this.getParsed(T),W={},U=W[v]=o?u.getPixelForDecimal(.5):u.getPixelForValue(M[v]),O=W[D]=o?d.getBasePixel():d.getPixelForValue(M[D]);W.skip=isNaN(U)||isNaN(O),g&&(W.options=f||this.resolveDataElementOptions(T,A.active?"active":a),o&&(W.options.radius=0)),this.updateElement(A,T,W,a)}}resolveDataElementOptions(t,e){const s=this.getParsed(t);let a=super.resolveDataElementOptions(t,e);a.$shared&&(a=Object.assign({},a,{$shared:!1}));const o=a.radius;return e!=="active"&&(a.radius=0),a.radius+=De(s&&s._custom,o),a}}sf.id="bubble",sf.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}},sf.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};function LO(n,t,e){let s=1,a=1,o=0,u=0;if(t<an){const d=n,f=d+t,g=Math.cos(d),v=Math.sin(d),D=Math.cos(f),T=Math.sin(f),A=(H,Y,I)=>nu(H,d,f,!0)?1:Math.max(Y,Y*e,I,I*e),M=(H,Y,I)=>nu(H,d,f,!0)?-1:Math.min(Y,Y*e,I,I*e),W=A(0,g,D),U=A(Yn,v,T),O=M(An,g,D),R=M(An+Yn,v,T);s=(W-O)/2,a=(U-R)/2,o=-(W+O)/2,u=-(U+R)/2}return{ratioX:s,ratioY:a,offsetX:o,offsetY:u}}class Nc extends nr{constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const s=this.getDataset().data,a=this._cachedMeta;if(this._parsing===!1)a._parsed=s;else{let o=f=>+s[f];if(Re(s[t])){const{key:f="value"}=this._parsing;o=g=>+Ro(s[g],f)}let u,d;for(u=t,d=t+e;u<d;++u)a._parsed[u]=o(u)}}_getRotation(){return er(this.options.rotation-90)}_getCircumference(){return er(this.options.circumference)}_getRotationExtents(){let t=an,e=-an;for(let s=0;s<this.chart.data.datasets.length;++s)if(this.chart.isDatasetVisible(s)){const a=this.chart.getDatasetMeta(s).controller,o=a._getRotation(),u=a._getCircumference();t=Math.min(t,o),e=Math.max(e,o+u)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:s}=e,a=this._cachedMeta,o=a.data,u=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,d=Math.max((Math.min(s.width,s.height)-u)/2,0),f=Math.min(MN(this.options.cutout,d),1),g=this._getRingWeight(this.index),{circumference:v,rotation:D}=this._getRotationExtents(),{ratioX:T,ratioY:A,offsetX:M,offsetY:W}=LO(D,v,f),U=(s.width-u)/T,O=(s.height-u)/A,R=Math.max(Math.min(U,O)/2,0),H=tx(this.options.radius,R),Y=Math.max(H*f,0),I=(H-Y)/this._getVisibleDatasetWeightTotal();this.offsetX=M*H,this.offsetY=W*H,a.total=this.calculateTotal(),this.outerRadius=H-I*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-I*g,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){const s=this.options,a=this._cachedMeta,o=this._getCircumference();return e&&s.animation.animateRotate||!this.chart.getDataVisibility(t)||a._parsed[t]===null||a.data[t].hidden?0:this.calculateCircumference(a._parsed[t]*o/an)}updateElements(t,e,s,a){const o=a==="reset",u=this.chart,d=u.chartArea,g=u.options.animation,v=(d.left+d.right)/2,D=(d.top+d.bottom)/2,T=o&&g.animateScale,A=T?0:this.innerRadius,M=T?0:this.outerRadius,{sharedOptions:W,includeOptions:U}=this._getSharedOptions(e,a);let O=this._getRotation(),R;for(R=0;R<e;++R)O+=this._circumference(R,o);for(R=e;R<e+s;++R){const H=this._circumference(R,o),Y=t[R],I={x:v+this.offsetX,y:D+this.offsetY,startAngle:O,endAngle:O+H,circumference:H,outerRadius:M,innerRadius:A};U&&(I.options=W||this.resolveDataElementOptions(R,Y.active?"active":a)),O+=H,this.updateElement(Y,R,I,a)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let s=0,a;for(a=0;a<e.length;a++){const o=t._parsed[a];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(a)&&!e[a].hidden&&(s+=Math.abs(o))}return s}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?an*(Math.abs(t)/e):0}getLabelAndValue(t){const e=this._cachedMeta,s=this.chart,a=s.data.labels||[],o=uu(e._parsed[t],s.options.locale);return{label:a[t]||"",value:o}}getMaxBorderWidth(t){let e=0;const s=this.chart;let a,o,u,d,f;if(!t){for(a=0,o=s.data.datasets.length;a<o;++a)if(s.isDatasetVisible(a)){u=s.getDatasetMeta(a),t=u.data,d=u.controller;break}}if(!t)return 0;for(a=0,o=t.length;a<o;++a)f=d.resolveDataElementOptions(a),f.borderAlign!=="inner"&&(e=Math.max(e,f.borderWidth||0,f.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let s=0,a=t.length;s<a;++s){const o=this.resolveDataElementOptions(s);e=Math.max(e,o.offset||0,o.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let s=0;s<t;++s)this.chart.isDatasetVisible(s)&&(e+=this._getRingWeight(s));return e}_getRingWeight(t){return Math.max(De(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}Nc.id="doughnut",Nc.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"},Nc.descriptors={_scriptable:n=>n!=="spacing",_indexable:n=>n!=="spacing"},Nc.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(n){const t=n.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:e}}=n.legend.options;return t.labels.map((s,a)=>{const u=n.getDatasetMeta(0).controller.getStyle(a);return{text:s,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,lineWidth:u.borderWidth,pointStyle:e,hidden:!n.getDataVisibility(a),index:a}})}return[]}},onClick(n,t,e){e.chart.toggleDataVisibility(t.index),e.chart.update()}},tooltip:{callbacks:{title(){return""},label(n){let t=n.label;const e=": "+n.formattedValue;return mn(t)?(t=t.slice(),t[0]+=e):t+=e,t}}}}};class rf extends nr{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:s,data:a=[],_dataset:o}=e,u=this.chart._animationsDisabled;let{start:d,count:f}=px(e,a,u);this._drawStart=d,this._drawCount=f,mx(e)&&(d=0,f=a.length),s._chart=this.chart,s._datasetIndex=this.index,s._decimated=!!o._decimated,s.points=a;const g=this.resolveDatasetElementOptions(t);this.options.showLine||(g.borderWidth=0),g.segment=this.options.segment,this.updateElement(s,void 0,{animated:!u,options:g},t),this.updateElements(a,d,f,t)}updateElements(t,e,s,a){const o=a==="reset",{iScale:u,vScale:d,_stacked:f,_dataset:g}=this._cachedMeta,{sharedOptions:v,includeOptions:D}=this._getSharedOptions(e,a),T=u.axis,A=d.axis,{spanGaps:M,segment:W}=this.options,U=Sc(M)?M:Number.POSITIVE_INFINITY,O=this.chart._animationsDisabled||o||a==="none";let R=e>0&&this.getParsed(e-1);for(let H=e;H<e+s;++H){const Y=t[H],I=this.getParsed(H),j=O?Y:{},q=Ye(I[A]),lt=j[T]=u.getPixelForValue(I[T],H),st=j[A]=o||q?d.getBasePixel():d.getPixelForValue(f?this.applyStack(d,I,f):I[A],H);j.skip=isNaN(lt)||isNaN(st)||q,j.stop=H>0&&Math.abs(I[T]-R[T])>U,W&&(j.parsed=I,j.raw=g.data[H]),D&&(j.options=v||this.resolveDataElementOptions(H,Y.active?"active":a)),O||this.updateElement(Y,H,j,a),R=I}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,s=e.options&&e.options.borderWidth||0,a=t.data||[];if(!a.length)return s;const o=a[0].size(this.resolveDataElementOptions(0)),u=a[a.length-1].size(this.resolveDataElementOptions(a.length-1));return Math.max(s,o,u)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}}rf.id="line",rf.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1},rf.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class af extends nr{constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const e=this._cachedMeta,s=this.chart,a=s.data.labels||[],o=uu(e._parsed[t].r,s.options.locale);return{label:a[t]||"",value:o}}parseObjectData(t,e,s,a){return Fx.bind(this)(t,e,s,a)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((s,a)=>{const o=this.getParsed(a).r;!isNaN(o)&&this.chart.getDataVisibility(a)&&(o<e.min&&(e.min=o),o>e.max&&(e.max=o))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,s=t.options,a=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(a/2,0),u=Math.max(s.cutoutPercentage?o/100*s.cutoutPercentage:1,0),d=(o-u)/t.getVisibleDatasetCount();this.outerRadius=o-d*this.index,this.innerRadius=this.outerRadius-d}updateElements(t,e,s,a){const o=a==="reset",u=this.chart,f=u.options.animation,g=this._cachedMeta.rScale,v=g.xCenter,D=g.yCenter,T=g.getIndexAngle(0)-.5*An;let A=T,M;const W=360/this.countVisibleElements();for(M=0;M<e;++M)A+=this._computeAngle(M,a,W);for(M=e;M<e+s;M++){const U=t[M];let O=A,R=A+this._computeAngle(M,a,W),H=u.getDataVisibility(M)?g.getDistanceFromCenterForValue(this.getParsed(M).r):0;A=R,o&&(f.animateScale&&(H=0),f.animateRotate&&(O=R=T));const Y={x:v,y:D,innerRadius:0,outerRadius:H,startAngle:O,endAngle:R,options:this.resolveDataElementOptions(M,U.active?"active":a)};this.updateElement(U,M,Y,a)}}countVisibleElements(){const t=this._cachedMeta;let e=0;return t.data.forEach((s,a)=>{!isNaN(this.getParsed(a).r)&&this.chart.getDataVisibility(a)&&e++}),e}_computeAngle(t,e,s){return this.chart.getDataVisibility(t)?er(this.resolveDataElementOptions(t,e).angle||s):0}}af.id="polarArea",af.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0},af.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(n){const t=n.data;if(t.labels.length&&t.datasets.length){const{labels:{pointStyle:e}}=n.legend.options;return t.labels.map((s,a)=>{const u=n.getDatasetMeta(0).controller.getStyle(a);return{text:s,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,lineWidth:u.borderWidth,pointStyle:e,hidden:!n.getDataVisibility(a),index:a}})}return[]}},onClick(n,t,e){e.chart.toggleDataVisibility(t.index),e.chart.update()}},tooltip:{callbacks:{title(){return""},label(n){return n.chart.data.labels[n.dataIndex]+": "+n.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class jp extends Nc{}jp.id="pie",jp.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class of extends nr{getLabelAndValue(t){const e=this._cachedMeta.vScale,s=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(s[e.axis])}}parseObjectData(t,e,s,a){return Fx.bind(this)(t,e,s,a)}update(t){const e=this._cachedMeta,s=e.dataset,a=e.data||[],o=e.iScale.getLabels();if(s.points=a,t!=="resize"){const u=this.resolveDatasetElementOptions(t);this.options.showLine||(u.borderWidth=0);const d={_loop:!0,_fullLoop:o.length===a.length,options:u};this.updateElement(s,void 0,d,t)}this.updateElements(a,0,a.length,t)}updateElements(t,e,s,a){const o=this._cachedMeta.rScale,u=a==="reset";for(let d=e;d<e+s;d++){const f=t[d],g=this.resolveDataElementOptions(d,f.active?"active":a),v=o.getPointPositionForValue(d,this.getParsed(d).r),D=u?o.xCenter:v.x,T=u?o.yCenter:v.y,A={x:D,y:T,angle:v.angle,skip:isNaN(D)||isNaN(T),options:g};this.updateElement(f,d,A,a)}}}of.id="radar",of.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}},of.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class ir{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(t){const{x:e,y:s}=this.getProps(["x","y"],t);return{x:e,y:s}}hasValue(){return Sc(this.x)&&Sc(this.y)}getProps(t,e){const s=this.$animations;if(!e||!s)return this;const a={};return t.forEach(o=>{a[o]=s[o]&&s[o].active()?s[o]._to:this[o]}),a}}ir.defaults={},ir.defaultRoutes=void 0;const uw={values(n){return mn(n)?n:""+n},numeric(n,t,e){if(n===0)return"0";const s=this.chart.options.locale;let a,o=n;if(e.length>1){const g=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(g<1e-4||g>1e15)&&(a="scientific"),o=IO(n,e)}const u=Zs(Math.abs(o)),d=Math.max(Math.min(-1*Math.floor(u),20),0),f={notation:a,minimumFractionDigits:d,maximumFractionDigits:d};return Object.assign(f,this.options.ticks.format),uu(n,s,f)},logarithmic(n,t,e){if(n===0)return"0";const s=n/Math.pow(10,Math.floor(Zs(n)));return s===1||s===2||s===5?uw.numeric.call(this,n,t,e):""}};function IO(n,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),e}var lf={formatters:uw};Be.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(n,t)=>t.lineWidth,tickColor:(n,t)=>t.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth: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:lf.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),Be.route("scale.ticks","color","","color"),Be.route("scale.grid","color","","borderColor"),Be.route("scale.grid","borderColor","","borderColor"),Be.route("scale.title","color","","color"),Be.describe("scale",{_fallback:!1,_scriptable:n=>!n.startsWith("before")&&!n.startsWith("after")&&n!=="callback"&&n!=="parser",_indexable:n=>n!=="borderDash"&&n!=="tickBorderDash"}),Be.describe("scales",{_fallback:"scale"}),Be.describe("scale.ticks",{_scriptable:n=>n!=="backdropPadding"&&n!=="callback",_indexable:n=>n!=="backdropPadding"});function PO(n,t){const e=n.options.ticks,s=e.maxTicksLimit||RO(n),a=e.major.enabled?BO(t):[],o=a.length,u=a[0],d=a[o-1],f=[];if(o>s)return VO(t,f,a,o/s),f;const g=FO(a,t,s);if(o>0){let v,D;const T=o>1?Math.round((d-u)/(o-1)):null;for(cf(t,f,g,Ye(T)?0:u-T,u),v=0,D=o-1;v<D;v++)cf(t,f,g,a[v],a[v+1]);return cf(t,f,g,d,Ye(T)?t.length:d+T),f}return cf(t,f,g),f}function RO(n){const t=n.options.offset,e=n._tickSize(),s=n._length/e+(t?0:1),a=n._maxLength/e;return Math.floor(Math.min(s,a))}function FO(n,t,e){const s=$O(n),a=t.length/e;if(!s)return Math.max(a,1);const o=FN(s);for(let u=0,d=o.length-1;u<d;u++){const f=o[u];if(f>a)return f}return Math.max(a,1)}function BO(n){const t=[];let e,s;for(e=0,s=n.length;e<s;e++)n[e].major&&t.push(e);return t}function VO(n,t,e,s){let a=0,o=e[0],u;for(s=Math.ceil(s),u=0;u<n.length;u++)u===o&&(t.push(n[u]),a++,o=e[a*s])}function cf(n,t,e,s,a){const o=De(s,0),u=Math.min(De(a,n.length),n.length);let d=0,f,g,v;for(e=Math.ceil(e),a&&(f=a-s,e=f/Math.floor(f/e)),v=o;v<0;)d++,v=Math.round(o+d*e);for(g=Math.max(o,0);g<u;g++)g===v&&(t.push(n[g]),d++,v=Math.round(o+d*e))}function $O(n){const t=n.length;let e,s;if(t<2)return!1;for(s=n[0],e=1;e<t;++e)if(n[e]-n[e-1]!==s)return!1;return s}const YO=n=>n==="left"?"right":n==="right"?"left":n,hw=(n,t,e)=>t==="top"||t==="left"?n[t]+e:n[t]-e;function dw(n,t){const e=[],s=n.length/t,a=n.length;let o=0;for(;o<a;o+=s)e.push(n[Math.floor(o)]);return e}function WO(n,t,e){const s=n.ticks.length,a=Math.min(t,s-1),o=n._startPixel,u=n._endPixel,d=1e-6;let f=n.getPixelForTick(a),g;if(!(e&&(s===1?g=Math.max(f-o,u-f):t===0?g=(n.getPixelForTick(1)-f)/2:g=(f-n.getPixelForTick(a-1))/2,f+=a<t?g:-g,f<o-d||f>u+d)))return f}function UO(n,t){Qe(n,e=>{const s=e.gc,a=s.length/2;let o;if(a>t){for(o=0;o<a;++o)delete e.data[s[o]];s.splice(0,a)}})}function du(n){return n.drawTicks?n.tickLength:0}function fw(n,t){if(!n.display)return 0;const e=ei(n.font,t),s=Ri(n.padding);return(mn(n.text)?n.text.length:1)*e.lineHeight+s.height}function HO(n,t){return $o(n,{scale:t,type:"scale"})}function zO(n,t,e){return $o(n,{tick:e,index:t,type:"tick"})}function jO(n,t,e){let s=Cp(n);return(e&&t!=="right"||!e&&t==="right")&&(s=YO(s)),s}function GO(n,t,e,s){const{top:a,left:o,bottom:u,right:d,chart:f}=n,{chartArea:g,scales:v}=f;let D=0,T,A,M;const W=u-a,U=d-o;if(n.isHorizontal()){if(A=Pi(s,o,d),Re(e)){const O=Object.keys(e)[0],R=e[O];M=v[O].getPixelForValue(R)+W-t}else e==="center"?M=(g.bottom+g.top)/2+W-t:M=hw(n,e,t);T=d-o}else{if(Re(e)){const O=Object.keys(e)[0],R=e[O];A=v[O].getPixelForValue(R)-U+t}else e==="center"?A=(g.left+g.right)/2-U+t:A=hw(n,e,t);M=Pi(s,u,a),D=e==="left"?-Yn:Yn}return{titleX:A,titleY:M,maxWidth:T,rotation:D}}class el extends ir{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:s,_suggestedMax:a}=this;return t=qs(t,Number.POSITIVE_INFINITY),e=qs(e,Number.NEGATIVE_INFINITY),s=qs(s,Number.POSITIVE_INFINITY),a=qs(a,Number.NEGATIVE_INFINITY),{min:qs(t,s),max:qs(e,a),minDefined:Un(t),maxDefined:Un(e)}}getMinMax(t){let{min:e,max:s,minDefined:a,maxDefined:o}=this.getUserBounds(),u;if(a&&o)return{min:e,max:s};const d=this.getMatchingVisibleMetas();for(let f=0,g=d.length;f<g;++f)u=d[f].controller.getMinMax(this,t),a||(e=Math.min(e,u.min)),o||(s=Math.max(s,u.max));return e=o&&e>s?s:e,s=a&&e>s?e:s,{min:qs(e,qs(s,e)),max:qs(s,qs(e,s))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){_n(this.options.beforeUpdate,[this])}update(t,e,s){const{beginAtZero:a,grace:o,ticks:u}=this.options,d=u.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=s=Object.assign({left:0,right:0,top:0,bottom:0},s),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+s.left+s.right:this.height+s.top+s.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=SA(this,o,a),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const f=d<this.ticks.length;this._convertTicksToLabels(f?dw(this.ticks,d):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),u.display&&(u.autoSkip||u.source==="auto")&&(this.ticks=PO(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),f&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,e,s;this.isHorizontal()?(e=this.left,s=this.right):(e=this.top,s=this.bottom,t=!t),this._startPixel=e,this._endPixel=s,this._reversePixels=t,this._length=s-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){_n(this.options.afterUpdate,[this])}beforeSetDimensions(){_n(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){_n(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),_n(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){_n(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let s,a,o;for(s=0,a=t.length;s<a;s++)o=t[s],o.label=_n(e.callback,[o.value,s,t],this)}afterTickToLabelConversion(){_n(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){_n(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,s=this.ticks.length,a=e.minRotation||0,o=e.maxRotation;let u=a,d,f,g;if(!this._isVisible()||!e.display||a>=o||s<=1||!this.isHorizontal()){this.labelRotation=a;return}const v=this._getLabelSizes(),D=v.widest.width,T=v.highest.height,A=yi(this.chart.width-D,0,this.maxWidth);d=t.offset?this.maxWidth/s:A/(s-1),D+6>d&&(d=A/(s-(t.offset?.5:1)),f=this.maxHeight-du(t.grid)-e.padding-fw(t.title,this.chart.options.font),g=Math.sqrt(D*D+T*T),u=Ep(Math.min(Math.asin(yi((v.highest.height+6)/d,-1,1)),Math.asin(yi(f/g,-1,1))-Math.asin(yi(T/g,-1,1)))),u=Math.max(a,Math.min(o,u))),this.labelRotation=u}afterCalculateLabelRotation(){_n(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){_n(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:s,title:a,grid:o}}=this,u=this._isVisible(),d=this.isHorizontal();if(u){const f=fw(a,e.options.font);if(d?(t.width=this.maxWidth,t.height=du(o)+f):(t.height=this.maxHeight,t.width=du(o)+f),s.display&&this.ticks.length){const{first:g,last:v,widest:D,highest:T}=this._getLabelSizes(),A=s.padding*2,M=er(this.labelRotation),W=Math.cos(M),U=Math.sin(M);if(d){const O=s.mirror?0:U*D.width+W*T.height;t.height=Math.min(this.maxHeight,t.height+O+A)}else{const O=s.mirror?0:W*D.width+U*T.height;t.width=Math.min(this.maxWidth,t.width+O+A)}this._calculatePadding(g,v,U,W)}}this._handleMargins(),d?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,s,a){const{ticks:{align:o,padding:u},position:d}=this.options,f=this.labelRotation!==0,g=d!=="top"&&this.axis==="x";if(this.isHorizontal()){const v=this.getPixelForTick(0)-this.left,D=this.right-this.getPixelForTick(this.ticks.length-1);let T=0,A=0;f?g?(T=a*t.width,A=s*e.height):(T=s*t.height,A=a*e.width):o==="start"?A=e.width:o==="end"?T=t.width:o!=="inner"&&(T=t.width/2,A=e.width/2),this.paddingLeft=Math.max((T-v+u)*this.width/(this.width-v),0),this.paddingRight=Math.max((A-D+u)*this.width/(this.width-D),0)}else{let v=e.height/2,D=t.height/2;o==="start"?(v=0,D=t.height):o==="end"&&(v=e.height,D=0),this.paddingTop=v+u,this.paddingBottom=D+u}}_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(){_n(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,s;for(e=0,s=t.length;e<s;e++)Ye(t[e].label)&&(t.splice(e,1),s--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let s=this.ticks;e<s.length&&(s=dw(s,e)),this._labelSizes=t=this._computeLabelSizes(s,s.length)}return t}_computeLabelSizes(t,e){const{ctx:s,_longestTextCache:a}=this,o=[],u=[];let d=0,f=0,g,v,D,T,A,M,W,U,O,R,H;for(g=0;g<e;++g){if(T=t[g].label,A=this._resolveTickFontOptions(g),s.font=M=A.string,W=a[M]=a[M]||{data:{},gc:[]},U=A.lineHeight,O=R=0,!Ye(T)&&!mn(T))O=Xd(s,W.data,W.gc,O,T),R=U;else if(mn(T))for(v=0,D=T.length;v<D;++v)H=T[v],!Ye(H)&&!mn(H)&&(O=Xd(s,W.data,W.gc,O,H),R+=U);o.push(O),u.push(R),d=Math.max(O,d),f=Math.max(R,f)}UO(a,e);const Y=o.indexOf(d),I=u.indexOf(f),j=q=>({width:o[q]||0,height:u[q]||0});return{first:j(0),last:j(e-1),widest:j(Y),highest:j(I),widths:o,heights:u}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return $N(this._alignToPixels?qo(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const s=e[t];return s.$context||(s.$context=zO(this.getContext(),t,s))}return this.$context||(this.$context=HO(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=er(this.labelRotation),s=Math.abs(Math.cos(e)),a=Math.abs(Math.sin(e)),o=this._getLabelSizes(),u=t.autoSkipPadding||0,d=o?o.widest.width+u:0,f=o?o.highest.height+u:0;return this.isHorizontal()?f*s>d*a?d/s:f/a:f*a<d*s?f/s:d/a}_isVisible(){const t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,s=this.chart,a=this.options,{grid:o,position:u}=a,d=o.offset,f=this.isHorizontal(),v=this.ticks.length+(d?1:0),D=du(o),T=[],A=o.setContext(this.getContext()),M=A.drawBorder?A.borderWidth:0,W=M/2,U=function(Ct){return qo(s,Ct,M)};let O,R,H,Y,I,j,q,lt,st,yt,mt,wt;if(u==="top")O=U(this.bottom),j=this.bottom-D,lt=O-W,yt=U(t.top)+W,wt=t.bottom;else if(u==="bottom")O=U(this.top),yt=t.top,wt=U(t.bottom)-W,j=O+W,lt=this.top+D;else if(u==="left")O=U(this.right),I=this.right-D,q=O-W,st=U(t.left)+W,mt=t.right;else if(u==="right")O=U(this.left),st=t.left,mt=U(t.right)-W,I=O+W,q=this.left+D;else if(e==="x"){if(u==="center")O=U((t.top+t.bottom)/2+.5);else if(Re(u)){const Ct=Object.keys(u)[0],Wt=u[Ct];O=U(this.chart.scales[Ct].getPixelForValue(Wt))}yt=t.top,wt=t.bottom,j=O+W,lt=j+D}else if(e==="y"){if(u==="center")O=U((t.left+t.right)/2);else if(Re(u)){const Ct=Object.keys(u)[0],Wt=u[Ct];O=U(this.chart.scales[Ct].getPixelForValue(Wt))}I=O-W,q=I-D,st=t.left,mt=t.right}const Ot=De(a.ticks.maxTicksLimit,v),ae=Math.max(1,Math.ceil(v/Ot));for(R=0;R<v;R+=ae){const Ct=o.setContext(this.getContext(R)),Wt=Ct.lineWidth,Vt=Ct.color,ee=Ct.borderDash||[],ve=Ct.borderDashOffset,dt=Ct.tickWidth,Qt=Ct.tickColor,Ze=Ct.tickBorderDash||[],Ve=Ct.tickBorderDashOffset;H=WO(this,R,d),H!==void 0&&(Y=qo(s,H,Wt),f?I=q=st=mt=Y:j=lt=yt=wt=Y,T.push({tx1:I,ty1:j,tx2:q,ty2:lt,x1:st,y1:yt,x2:mt,y2:wt,width:Wt,color:Vt,borderDash:ee,borderDashOffset:ve,tickWidth:dt,tickColor:Qt,tickBorderDash:Ze,tickBorderDashOffset:Ve}))}return this._ticksLength=v,this._borderValue=O,T}_computeLabelItems(t){const e=this.axis,s=this.options,{position:a,ticks:o}=s,u=this.isHorizontal(),d=this.ticks,{align:f,crossAlign:g,padding:v,mirror:D}=o,T=du(s.grid),A=T+v,M=D?-v:A,W=-er(this.labelRotation),U=[];let O,R,H,Y,I,j,q,lt,st,yt,mt,wt,Ot="middle";if(a==="top")j=this.bottom-M,q=this._getXAxisLabelAlignment();else if(a==="bottom")j=this.top+M,q=this._getXAxisLabelAlignment();else if(a==="left"){const Ct=this._getYAxisLabelAlignment(T);q=Ct.textAlign,I=Ct.x}else if(a==="right"){const Ct=this._getYAxisLabelAlignment(T);q=Ct.textAlign,I=Ct.x}else if(e==="x"){if(a==="center")j=(t.top+t.bottom)/2+A;else if(Re(a)){const Ct=Object.keys(a)[0],Wt=a[Ct];j=this.chart.scales[Ct].getPixelForValue(Wt)+A}q=this._getXAxisLabelAlignment()}else if(e==="y"){if(a==="center")I=(t.left+t.right)/2-A;else if(Re(a)){const Ct=Object.keys(a)[0],Wt=a[Ct];I=this.chart.scales[Ct].getPixelForValue(Wt)}q=this._getYAxisLabelAlignment(T).textAlign}e==="y"&&(f==="start"?Ot="top":f==="end"&&(Ot="bottom"));const ae=this._getLabelSizes();for(O=0,R=d.length;O<R;++O){H=d[O],Y=H.label;const Ct=o.setContext(this.getContext(O));lt=this.getPixelForTick(O)+o.labelOffset,st=this._resolveTickFontOptions(O),yt=st.lineHeight,mt=mn(Y)?Y.length:1;const Wt=mt/2,Vt=Ct.color,ee=Ct.textStrokeColor,ve=Ct.textStrokeWidth;let dt=q;u?(I=lt,q==="inner"&&(O===R-1?dt=this.options.reverse?"left":"right":O===0?dt=this.options.reverse?"right":"left":dt="center"),a==="top"?g==="near"||W!==0?wt=-mt*yt+yt/2:g==="center"?wt=-ae.highest.height/2-Wt*yt+yt:wt=-ae.highest.height+yt/2:g==="near"||W!==0?wt=yt/2:g==="center"?wt=ae.highest.height/2-Wt*yt:wt=ae.highest.height-mt*yt,D&&(wt*=-1)):(j=lt,wt=(1-mt)*yt/2);let Qt;if(Ct.showLabelBackdrop){const Ze=Ri(Ct.backdropPadding),Ve=ae.heights[O],Mt=ae.widths[O];let Kt=j+wt-Ze.top,Ae=I-Ze.left;switch(Ot){case"middle":Kt-=Ve/2;break;case"bottom":Kt-=Ve;break}switch(q){case"center":Ae-=Mt/2;break;case"right":Ae-=Mt;break}Qt={left:Ae,top:Kt,width:Mt+Ze.width,height:Ve+Ze.height,color:Ct.backdropColor}}U.push({rotation:W,label:Y,font:st,color:Vt,strokeColor:ee,strokeWidth:ve,textOffset:wt,textAlign:dt,textBaseline:Ot,translation:[I,j],backdrop:Qt})}return U}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-er(this.labelRotation))return t==="top"?"left":"right";let a="center";return e.align==="start"?a="left":e.align==="end"?a="right":e.align==="inner"&&(a="inner"),a}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:s,mirror:a,padding:o}}=this.options,u=this._getLabelSizes(),d=t+o,f=u.widest.width;let g,v;return e==="left"?a?(v=this.right+o,s==="near"?g="left":s==="center"?(g="center",v+=f/2):(g="right",v+=f)):(v=this.right-d,s==="near"?g="right":s==="center"?(g="center",v-=f/2):(g="left",v=this.left)):e==="right"?a?(v=this.left+o,s==="near"?g="right":s==="center"?(g="center",v-=f/2):(g="left",v-=f)):(v=this.left+d,s==="near"?g="left":s==="center"?(g="center",v+=f/2):(g="right",v=this.right)):g="right",{textAlign:g,x:v}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:s,top:a,width:o,height:u}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(s,a,o,u),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const a=this.ticks.findIndex(o=>o.value===t);return a>=0?e.setContext(this.getContext(a)).lineWidth:0}drawGrid(t){const e=this.options.grid,s=this.ctx,a=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let o,u;const d=(f,g,v)=>{!v.width||!v.color||(s.save(),s.lineWidth=v.width,s.strokeStyle=v.color,s.setLineDash(v.borderDash||[]),s.lineDashOffset=v.borderDashOffset,s.beginPath(),s.moveTo(f.x,f.y),s.lineTo(g.x,g.y),s.stroke(),s.restore())};if(e.display)for(o=0,u=a.length;o<u;++o){const f=a[o];e.drawOnChartArea&&d({x:f.x1,y:f.y1},{x:f.x2,y:f.y2},f),e.drawTicks&&d({x:f.tx1,y:f.ty1},{x:f.tx2,y:f.ty2},{color:f.tickColor,width:f.tickWidth,borderDash:f.tickBorderDash,borderDashOffset:f.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{grid:s}}=this,a=s.setContext(this.getContext()),o=s.drawBorder?a.borderWidth:0;if(!o)return;const u=s.setContext(this.getContext(0)).lineWidth,d=this._borderValue;let f,g,v,D;this.isHorizontal()?(f=qo(t,this.left,o)-o/2,g=qo(t,this.right,u)+u/2,v=D=d):(v=qo(t,this.top,o)-o/2,D=qo(t,this.bottom,u)+u/2,f=g=d),e.save(),e.lineWidth=a.borderWidth,e.strokeStyle=a.borderColor,e.beginPath(),e.moveTo(f,v),e.lineTo(g,D),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const s=this.ctx,a=this._computeLabelArea();a&&Zd(s,a);const o=this._labelItems||(this._labelItems=this._computeLabelItems(t));let u,d;for(u=0,d=o.length;u<d;++u){const f=o[u],g=f.font,v=f.label;f.backdrop&&(s.fillStyle=f.backdrop.color,s.fillRect(f.backdrop.left,f.backdrop.top,f.backdrop.width,f.backdrop.height));let D=f.textOffset;Xo(s,v,0,D,g,f)}a&&Jd(s)}drawTitle(){const{ctx:t,options:{position:e,title:s,reverse:a}}=this;if(!s.display)return;const o=ei(s.font),u=Ri(s.padding),d=s.align;let f=o.lineHeight/2;e==="bottom"||e==="center"||Re(e)?(f+=u.bottom,mn(s.text)&&(f+=o.lineHeight*(s.text.length-1))):f+=u.top;const{titleX:g,titleY:v,maxWidth:D,rotation:T}=GO(this,f,e,d);Xo(t,s.text,0,0,o,{color:s.color,maxWidth:D,rotation:T,textAlign:jO(d,e,a),textBaseline:"middle",translation:[g,v]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,s=De(t.grid&&t.grid.z,-1);return!this._isVisible()||this.draw!==el.prototype.draw?[{z:e,draw:a=>{this.draw(a)}}]:[{z:s,draw:a=>{this.drawBackground(),this.drawGrid(a),this.drawTitle()}},{z:s+1,draw:()=>{this.drawBorder()}},{z:e,draw:a=>{this.drawLabels(a)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),s=this.axis+"AxisID",a=[];let o,u;for(o=0,u=e.length;o<u;++o){const d=e[o];d[s]===this.id&&(!t||d.type===t)&&a.push(d)}return a}_resolveTickFontOptions(t){const e=this.options.ticks.setContext(this.getContext(t));return ei(e.font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class uf{constructor(t,e,s){this.type=t,this.scope=e,this.override=s,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let s;XO(e)&&(s=this.register(e));const a=this.items,o=t.id,u=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in a||(a[o]=t,KO(t,u,s),this.override&&Be.override(t.id,t.overrides)),u}get(t){return this.items[t]}unregister(t){const e=this.items,s=t.id,a=this.scope;s in e&&delete e[s],a&&s in Be[a]&&(delete Be[a][s],this.override&&delete Ko[s])}}function KO(n,t,e){const s=Jc(Object.create(null),[e?Be.get(e):{},Be.get(t),n.defaults]);Be.set(t,s),n.defaultRoutes&&qO(t,n.defaultRoutes),n.descriptors&&Be.describe(t,n.descriptors)}function qO(n,t){Object.keys(t).forEach(e=>{const s=e.split("."),a=s.pop(),o=[n].concat(s).join("."),u=t[e].split("."),d=u.pop(),f=u.join(".");Be.route(o,a,f,d)})}function XO(n){return"id"in n&&"defaults"in n}class ZO{constructor(){this.controllers=new uf(nr,"datasets",!0),this.elements=new uf(ir,"elements"),this.plugins=new uf(Object,"plugins"),this.scales=new uf(el,"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,e,s){[...e].forEach(a=>{const o=s||this._getRegistryForType(a);s||o.isForType(a)||o===this.plugins&&a.id?this._exec(t,o,a):Qe(a,u=>{const d=s||this._getRegistryForType(u);this._exec(t,d,u)})})}_exec(t,e,s){const a=wp(t);_n(s["before"+a],[],s),e[t](s),_n(s["after"+a],[],s)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const s=this._typedRegistries[e];if(s.isForType(t))return s}return this.plugins}_get(t,e,s){const a=e.get(t);if(a===void 0)throw new Error('"'+t+'" is not a registered '+s+".");return a}}var Gr=new ZO;class hf extends nr{update(t){const e=this._cachedMeta,{data:s=[]}=e,a=this.chart._animationsDisabled;let{start:o,count:u}=px(e,s,a);if(this._drawStart=o,this._drawCount=u,mx(e)&&(o=0,u=s.length),this.options.showLine){const{dataset:d,_dataset:f}=e;d._chart=this.chart,d._datasetIndex=this.index,d._decimated=!!f._decimated,d.points=s;const g=this.resolveDatasetElementOptions(t);g.segment=this.options.segment,this.updateElement(d,void 0,{animated:!a,options:g},t)}this.updateElements(s,o,u,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=Gr.getElement("line")),super.addElements()}updateElements(t,e,s,a){const o=a==="reset",{iScale:u,vScale:d,_stacked:f,_dataset:g}=this._cachedMeta,v=this.resolveDataElementOptions(e,a),D=this.getSharedOptions(v),T=this.includeOptions(a,D),A=u.axis,M=d.axis,{spanGaps:W,segment:U}=this.options,O=Sc(W)?W:Number.POSITIVE_INFINITY,R=this.chart._animationsDisabled||o||a==="none";let H=e>0&&this.getParsed(e-1);for(let Y=e;Y<e+s;++Y){const I=t[Y],j=this.getParsed(Y),q=R?I:{},lt=Ye(j[M]),st=q[A]=u.getPixelForValue(j[A],Y),yt=q[M]=o||lt?d.getBasePixel():d.getPixelForValue(f?this.applyStack(d,j,f):j[M],Y);q.skip=isNaN(st)||isNaN(yt)||lt,q.stop=Y>0&&Math.abs(j[A]-H[A])>O,U&&(q.parsed=j,q.raw=g.data[Y]),T&&(q.options=D||this.resolveDataElementOptions(Y,I.active?"active":a)),R||this.updateElement(I,Y,q,a),H=j}this.updateSharedOptions(D,a,v)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let d=0;for(let f=e.length-1;f>=0;--f)d=Math.max(d,e[f].size(this.resolveDataElementOptions(f))/2);return d>0&&d}const s=t.dataset,a=s.options&&s.options.borderWidth||0;if(!e.length)return a;const o=e[0].size(this.resolveDataElementOptions(0)),u=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(a,o,u)/2}}hf.id="scatter",hf.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1},hf.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(n){return"("+n.label+", "+n.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};var JO=Object.freeze({__proto__:null,BarController:nf,BubbleController:sf,DoughnutController:Nc,LineController:rf,PolarAreaController:af,PieController:jp,RadarController:of,ScatterController:hf});function nl(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Gp{constructor(t){this.options=t||{}}init(t){}formats(){return nl()}parse(t,e){return nl()}format(t,e){return nl()}add(t,e,s){return nl()}diff(t,e,s){return nl()}startOf(t,e,s){return nl()}endOf(t,e){return nl()}}Gp.override=function(n){Object.assign(Gp.prototype,n)};var QO={_date:Gp};function tL(n,t,e,s){const{controller:a,data:o,_sorted:u}=n,d=a._cachedMeta.iScale;if(d&&t===d.axis&&t!=="r"&&u&&o.length){const f=d._reversePixels?YN:pa;if(s){if(a._sharedOptions){const g=o[0],v=typeof g.getRange=="function"&&g.getRange(t);if(v){const D=f(o,t,e-v),T=f(o,t,e+v);return{lo:D.lo,hi:T.hi}}}}else return f(o,t,e)}return{lo:0,hi:o.length-1}}function fu(n,t,e,s,a){const o=n.getSortedVisibleDatasetMetas(),u=e[t];for(let d=0,f=o.length;d<f;++d){const{index:g,data:v}=o[d],{lo:D,hi:T}=tL(o[d],t,u,a);for(let A=D;A<=T;++A){const M=v[A];M.skip||s(M,g,A)}}}function eL(n){const t=n.indexOf("x")!==-1,e=n.indexOf("y")!==-1;return function(s,a){const o=t?Math.abs(s.x-a.x):0,u=e?Math.abs(s.y-a.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(u,2))}}function Kp(n,t,e,s,a){const o=[];return!a&&!n.isPointInArea(t)||fu(n,e,t,function(d,f,g){!a&&!ou(d,n.chartArea,0)||d.inRange(t.x,t.y,s)&&o.push({element:d,datasetIndex:f,index:g})},!0),o}function nL(n,t,e,s){let a=[];function o(u,d,f){const{startAngle:g,endAngle:v}=u.getProps(["startAngle","endAngle"],s),{angle:D}=lx(u,{x:t.x,y:t.y});nu(D,g,v)&&a.push({element:u,datasetIndex:d,index:f})}return fu(n,e,t,o),a}function iL(n,t,e,s,a,o){let u=[];const d=eL(e);let f=Number.POSITIVE_INFINITY;function g(v,D,T){const A=v.inRange(t.x,t.y,a);if(s&&!A)return;const M=v.getCenterPoint(a);if(!(!!o||n.isPointInArea(M))&&!A)return;const U=d(t,M);U<f?(u=[{element:v,datasetIndex:D,index:T}],f=U):U===f&&u.push({element:v,datasetIndex:D,index:T})}return fu(n,e,t,g),u}function qp(n,t,e,s,a,o){return!o&&!n.isPointInArea(t)?[]:e==="r"&&!s?nL(n,t,e,a):iL(n,t,e,s,a,o)}function pw(n,t,e,s,a){const o=[],u=e==="x"?"inXRange":"inYRange";let d=!1;return fu(n,e,t,(f,g,v)=>{f[u](t[e],a)&&(o.push({element:f,datasetIndex:g,index:v}),d=d||f.inRange(t.x,t.y,a))}),s&&!d?[]:o}var sL={evaluateInteractionItems:fu,modes:{index(n,t,e,s){const a=Qo(t,n),o=e.axis||"x",u=e.includeInvisible||!1,d=e.intersect?Kp(n,a,o,s,u):qp(n,a,o,!1,s,u),f=[];return d.length?(n.getSortedVisibleDatasetMetas().forEach(g=>{const v=d[0].index,D=g.data[v];D&&!D.skip&&f.push({element:D,datasetIndex:g.index,index:v})}),f):[]},dataset(n,t,e,s){const a=Qo(t,n),o=e.axis||"xy",u=e.includeInvisible||!1;let d=e.intersect?Kp(n,a,o,s,u):qp(n,a,o,!1,s,u);if(d.length>0){const f=d[0].datasetIndex,g=n.getDatasetMeta(f).data;d=[];for(let v=0;v<g.length;++v)d.push({element:g[v],datasetIndex:f,index:v})}return d},point(n,t,e,s){const a=Qo(t,n),o=e.axis||"xy",u=e.includeInvisible||!1;return Kp(n,a,o,s,u)},nearest(n,t,e,s){const a=Qo(t,n),o=e.axis||"xy",u=e.includeInvisible||!1;return qp(n,a,o,e.intersect,s,u)},x(n,t,e,s){const a=Qo(t,n);return pw(n,a,"x",e.intersect,s)},y(n,t,e,s){const a=Qo(t,n);return pw(n,a,"y",e.intersect,s)}}};const mw=["left","top","right","bottom"];function pu(n,t){return n.filter(e=>e.pos===t)}function _w(n,t){return n.filter(e=>mw.indexOf(e.pos)===-1&&e.box.axis===t)}function mu(n,t){return n.sort((e,s)=>{const a=t?s:e,o=t?e:s;return a.weight===o.weight?a.index-o.index:a.weight-o.weight})}function rL(n){const t=[];let e,s,a,o,u,d;for(e=0,s=(n||[]).length;e<s;++e)a=n[e],{position:o,options:{stack:u,stackWeight:d=1}}=a,t.push({index:e,box:a,pos:o,horizontal:a.isHorizontal(),weight:a.weight,stack:u&&o+u,stackWeight:d});return t}function aL(n){const t={};for(const e of n){const{stack:s,pos:a,stackWeight:o}=e;if(!s||!mw.includes(a))continue;const u=t[s]||(t[s]={count:0,placed:0,weight:0,size:0});u.count++,u.weight+=o}return t}function oL(n,t){const e=aL(n),{vBoxMaxWidth:s,hBoxMaxHeight:a}=t;let o,u,d;for(o=0,u=n.length;o<u;++o){d=n[o];const{fullSize:f}=d.box,g=e[d.stack],v=g&&d.stackWeight/g.weight;d.horizontal?(d.width=v?v*s:f&&t.availableWidth,d.height=a):(d.width=s,d.height=v?v*a:f&&t.availableHeight)}return e}function lL(n){const t=rL(n),e=mu(t.filter(g=>g.box.fullSize),!0),s=mu(pu(t,"left"),!0),a=mu(pu(t,"right")),o=mu(pu(t,"top"),!0),u=mu(pu(t,"bottom")),d=_w(t,"x"),f=_w(t,"y");return{fullSize:e,leftAndTop:s.concat(o),rightAndBottom:a.concat(f).concat(u).concat(d),chartArea:pu(t,"chartArea"),vertical:s.concat(a).concat(f),horizontal:o.concat(u).concat(d)}}function gw(n,t,e,s){return Math.max(n[e],t[e])+Math.max(n[s],t[s])}function yw(n,t){n.top=Math.max(n.top,t.top),n.left=Math.max(n.left,t.left),n.bottom=Math.max(n.bottom,t.bottom),n.right=Math.max(n.right,t.right)}function cL(n,t,e,s){const{pos:a,box:o}=e,u=n.maxPadding;if(!Re(a)){e.size&&(n[a]-=e.size);const D=s[e.stack]||{size:0,count:1};D.size=Math.max(D.size,e.horizontal?o.height:o.width),e.size=D.size/D.count,n[a]+=e.size}o.getPadding&&yw(u,o.getPadding());const d=Math.max(0,t.outerWidth-gw(u,n,"left","right")),f=Math.max(0,t.outerHeight-gw(u,n,"top","bottom")),g=d!==n.w,v=f!==n.h;return n.w=d,n.h=f,e.horizontal?{same:g,other:v}:{same:v,other:g}}function uL(n){const t=n.maxPadding;function e(s){const a=Math.max(t[s]-n[s],0);return n[s]+=a,a}n.y+=e("top"),n.x+=e("left"),e("right"),e("bottom")}function hL(n,t){const e=t.maxPadding;function s(a){const o={left:0,top:0,right:0,bottom:0};return a.forEach(u=>{o[u]=Math.max(t[u],e[u])}),o}return s(n?["left","right"]:["top","bottom"])}function _u(n,t,e,s){const a=[];let o,u,d,f,g,v;for(o=0,u=n.length,g=0;o<u;++o){d=n[o],f=d.box,f.update(d.width||t.w,d.height||t.h,hL(d.horizontal,t));const{same:D,other:T}=cL(t,e,d,s);g|=D&&a.length,v=v||T,f.fullSize||a.push(d)}return g&&_u(a,t,e,s)||v}function df(n,t,e,s,a){n.top=e,n.left=t,n.right=t+s,n.bottom=e+a,n.width=s,n.height=a}function bw(n,t,e,s){const a=e.padding;let{x:o,y:u}=t;for(const d of n){const f=d.box,g=s[d.stack]||{count:1,placed:0,weight:1},v=d.stackWeight/g.weight||1;if(d.horizontal){const D=t.w*v,T=g.size||f.height;Xs(g.start)&&(u=g.start),f.fullSize?df(f,a.left,u,e.outerWidth-a.right-a.left,T):df(f,t.left+g.placed,u,D,T),g.start=u,g.placed+=D,u=f.bottom}else{const D=t.h*v,T=g.size||f.width;Xs(g.start)&&(o=g.start),f.fullSize?df(f,o,a.top,T,e.outerHeight-a.bottom-a.top):df(f,o,t.top+g.placed,T,D),g.start=o,g.placed+=D,o=f.right}}t.x=o,t.y=u}Be.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var Fi={addBox(n,t){n.boxes||(n.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},n.boxes.push(t)},removeBox(n,t){const e=n.boxes?n.boxes.indexOf(t):-1;e!==-1&&n.boxes.splice(e,1)},configure(n,t,e){t.fullSize=e.fullSize,t.position=e.position,t.weight=e.weight},update(n,t,e,s){if(!n)return;const a=Ri(n.options.layout.padding),o=Math.max(t-a.width,0),u=Math.max(e-a.height,0),d=lL(n.boxes),f=d.vertical,g=d.horizontal;Qe(n.boxes,W=>{typeof W.beforeLayout=="function"&&W.beforeLayout()});const v=f.reduce((W,U)=>U.box.options&&U.box.options.display===!1?W:W+1,0)||1,D=Object.freeze({outerWidth:t,outerHeight:e,padding:a,availableWidth:o,availableHeight:u,vBoxMaxWidth:o/2/v,hBoxMaxHeight:u/2}),T=Object.assign({},a);yw(T,Ri(s));const A=Object.assign({maxPadding:T,w:o,h:u,x:a.left,y:a.top},a),M=oL(f.concat(g),D);_u(d.fullSize,A,D,M),_u(f,A,D,M),_u(g,A,D,M)&&_u(f,A,D,M),uL(A),bw(d.leftAndTop,A,D,M),A.x+=A.w,A.y+=A.h,bw(d.rightAndBottom,A,D,M),n.chartArea={left:A.left,top:A.top,right:A.left+A.w,bottom:A.top+A.h,height:A.h,width:A.w},Qe(d.chartArea,W=>{const U=W.box;Object.assign(U,n.chartArea),U.update(A.w,A.h,{left:0,top:0,right:0,bottom:0})})}};class vw{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,s){}removeEventListener(t,e,s){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,s,a){return e=Math.max(0,e||t.width),s=s||t.height,{width:e,height:Math.max(0,a?Math.floor(e/a):s)}}isAttached(t){return!0}updateConfig(t){}}class dL extends vw{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const ff="$chartjs",fL={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},kw=n=>n===null||n==="";function pL(n,t){const e=n.style,s=n.getAttribute("height"),a=n.getAttribute("width");if(n[ff]={initial:{height:s,width:a,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",kw(a)){const o=Yx(n,"width");o!==void 0&&(n.width=o)}if(kw(s))if(n.style.height==="")n.height=n.width/(t||2);else{const o=Yx(n,"height");o!==void 0&&(n.height=o)}return n}const xw=KA?{passive:!0}:!1;function mL(n,t,e){n.addEventListener(t,e,xw)}function _L(n,t,e){n.canvas.removeEventListener(t,e,xw)}function gL(n,t){const e=fL[n.type]||n.type,{x:s,y:a}=Qo(n,t);return{type:e,chart:t,native:n,x:s!==void 0?s:null,y:a!==void 0?a:null}}function pf(n,t){for(const e of n)if(e===t||e.contains(t))return!0}function yL(n,t,e){const s=n.canvas,a=new MutationObserver(o=>{let u=!1;for(const d of o)u=u||pf(d.addedNodes,s),u=u&&!pf(d.removedNodes,s);u&&e()});return a.observe(document,{childList:!0,subtree:!0}),a}function bL(n,t,e){const s=n.canvas,a=new MutationObserver(o=>{let u=!1;for(const d of o)u=u||pf(d.removedNodes,s),u=u&&!pf(d.addedNodes,s);u&&e()});return a.observe(document,{childList:!0,subtree:!0}),a}const gu=new Map;let ww=0;function Ew(){const n=window.devicePixelRatio;n!==ww&&(ww=n,gu.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function vL(n,t){gu.size||window.addEventListener("resize",Ew),gu.set(n,t)}function kL(n){gu.delete(n),gu.size||window.removeEventListener("resize",Ew)}function xL(n,t,e){const s=n.canvas,a=s&&Yp(s);if(!a)return;const o=fx((d,f)=>{const g=a.clientWidth;e(d,f),g<a.clientWidth&&e()},window),u=new ResizeObserver(d=>{const f=d[0],g=f.contentRect.width,v=f.contentRect.height;g===0&&v===0||o(g,v)});return u.observe(a),vL(n,o),u}function Xp(n,t,e){e&&e.disconnect(),t==="resize"&&kL(n)}function wL(n,t,e){const s=n.canvas,a=fx(o=>{n.ctx!==null&&e(gL(o,n))},n,o=>{const u=o[0];return[u,u.offsetX,u.offsetY]});return mL(s,t,a),a}class EL extends vw{acquireContext(t,e){const s=t&&t.getContext&&t.getContext("2d");return s&&s.canvas===t?(pL(t,e),s):null}releaseContext(t){const e=t.canvas;if(!e[ff])return!1;const s=e[ff].initial;["height","width"].forEach(o=>{const u=s[o];Ye(u)?e.removeAttribute(o):e.setAttribute(o,u)});const a=s.style||{};return Object.keys(a).forEach(o=>{e.style[o]=a[o]}),e.width=e.width,delete e[ff],!0}addEventListener(t,e,s){this.removeEventListener(t,e);const a=t.$proxies||(t.$proxies={}),u={attach:yL,detach:bL,resize:xL}[e]||wL;a[e]=u(t,e,s)}removeEventListener(t,e){const s=t.$proxies||(t.$proxies={}),a=s[e];if(!a)return;({attach:Xp,detach:Xp,resize:Xp}[e]||_L)(t,e,a),s[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,s,a){return GA(t,e,s,a)}isAttached(t){const e=Yp(t);return!!(e&&e.isConnected)}}function SL(n){return!Vx()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?dL:EL}class DL{constructor(){this._init=[]}notify(t,e,s,a){e==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const o=a?this._descriptors(t).filter(a):this._descriptors(t),u=this._notify(o,t,e,s);return e==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),u}_notify(t,e,s,a){a=a||{};for(const o of t){const u=o.plugin,d=u[s],f=[e,a,o.options];if(_n(d,f,u)===!1&&a.cancelable)return!1}return!0}invalidate(){Ye(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const s=t&&t.config,a=De(s.options&&s.options.plugins,{}),o=CL(s);return a===!1&&!e?[]:ML(t,o,a,e)}_notifyStateChanges(t){const e=this._oldCache||[],s=this._cache,a=(o,u)=>o.filter(d=>!u.some(f=>d.plugin.id===f.plugin.id));this._notify(a(e,s),t,"stop"),this._notify(a(s,e),t,"start")}}function CL(n){const t={},e=[],s=Object.keys(Gr.plugins.items);for(let o=0;o<s.length;o++)e.push(Gr.getPlugin(s[o]));const a=n.plugins||[];for(let o=0;o<a.length;o++){const u=a[o];e.indexOf(u)===-1&&(e.push(u),t[u.id]=!0)}return{plugins:e,localIds:t}}function TL(n,t){return!t&&n===!1?null:n===!0?{}:n}function ML(n,{plugins:t,localIds:e},s,a){const o=[],u=n.getContext();for(const d of t){const f=d.id,g=TL(s[f],a);g!==null&&o.push({plugin:d,options:NL(n.config,{plugin:d,local:e[f]},g,u)})}return o}function NL(n,{plugin:t,local:e},s,a){const o=n.pluginScopeKeys(t),u=n.getOptionScopes(s,o);return e&&t.defaults&&u.push(t.defaults),n.createResolver(u,a,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Zp(n,t){const e=Be.datasets[n]||{};return((t.datasets||{})[n]||{}).indexAxis||t.indexAxis||e.indexAxis||"x"}function AL(n,t){let e=n;return n==="_index_"?e=t:n==="_value_"&&(e=t==="x"?"y":"x"),e}function OL(n,t){return n===t?"_index_":"_value_"}function LL(n){if(n==="top"||n==="bottom")return"x";if(n==="left"||n==="right")return"y"}function Jp(n,t){return n==="x"||n==="y"?n:t.axis||LL(t.position)||n.charAt(0).toLowerCase()}function IL(n,t){const e=Ko[n.type]||{scales:{}},s=t.scales||{},a=Zp(n.type,t),o=Object.create(null),u=Object.create(null);return Object.keys(s).forEach(d=>{const f=s[d];if(!Re(f))return console.error(`Invalid scale configuration for scale: ${d}`);if(f._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${d}`);const g=Jp(d,f),v=OL(g,a),D=e.scales||{};o[g]=o[g]||d,u[d]=Qc(Object.create(null),[{axis:g},f,D[g],D[v]])}),n.data.datasets.forEach(d=>{const f=d.type||n.type,g=d.indexAxis||Zp(f,t),D=(Ko[f]||{}).scales||{};Object.keys(D).forEach(T=>{const A=AL(T,g),M=d[A+"AxisID"]||o[A]||A;u[M]=u[M]||Object.create(null),Qc(u[M],[{axis:A},s[M],D[T]])})}),Object.keys(u).forEach(d=>{const f=u[d];Qc(f,[Be.scales[f.type],Be.scale])}),u}function Sw(n){const t=n.options||(n.options={});t.plugins=De(t.plugins,{}),t.scales=IL(n,t)}function Dw(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function PL(n){return n=n||{},n.data=Dw(n.data),Sw(n),n}const Cw=new Map,Tw=new Set;function mf(n,t){let e=Cw.get(n);return e||(e=t(),Cw.set(n,e),Tw.add(e)),e}const yu=(n,t,e)=>{const s=Ro(t,e);s!==void 0&&n.add(s)};class RL{constructor(t){this._config=PL(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=Dw(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(),Sw(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return mf(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return mf(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return mf(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id,s=this.type;return mf(`${s}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const s=this._scopeCache;let a=s.get(t);return(!a||e)&&(a=new Map,s.set(t,a)),a}getOptionScopes(t,e,s){const{options:a,type:o}=this,u=this._cachedScopes(t,s),d=u.get(e);if(d)return d;const f=new Set;e.forEach(v=>{t&&(f.add(t),v.forEach(D=>yu(f,t,D))),v.forEach(D=>yu(f,a,D)),v.forEach(D=>yu(f,Ko[o]||{},D)),v.forEach(D=>yu(f,Be,D)),v.forEach(D=>yu(f,Ip,D))});const g=Array.from(f);return g.length===0&&g.push(Object.create(null)),Tw.has(e)&&u.set(e,g),g}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ko[e]||{},Be.datasets[e]||{},{type:e},Be,Ip]}resolveNamedOptions(t,e,s,a=[""]){const o={$shared:!0},{resolver:u,subPrefixes:d}=Mw(this._resolverCache,t,a);let f=u;if(BL(u,e)){o.$shared=!1,s=Fo(s)?s():s;const g=this.createResolver(t,s,d);f=Cc(u,s,g)}for(const g of e)o[g]=f[g];return o}createResolver(t,e,s=[""],a){const{resolver:o}=Mw(this._resolverCache,t,s);return Re(e)?Cc(o,e,void 0,a):o}}function Mw(n,t,e){let s=n.get(t);s||(s=new Map,n.set(t,s));const a=e.join();let o=s.get(a);return o||(o={resolver:Bp(t,e),subPrefixes:e.filter(d=>!d.toLowerCase().includes("hover"))},s.set(a,o)),o}const FL=n=>Re(n)&&Object.getOwnPropertyNames(n).reduce((t,e)=>t||Fo(n[e]),!1);function BL(n,t){const{isScriptable:e,isIndexable:s}=Ax(n);for(const a of t){const o=e(a),u=s(a),d=(u||o)&&n[a];if(o&&(Fo(d)||FL(d))||u&&mn(d))return!0}return!1}var VL="3.9.1";const $L=["top","bottom","left","right","chartArea"];function Nw(n,t){return n==="top"||n==="bottom"||$L.indexOf(n)===-1&&t==="x"}function Aw(n,t){return function(e,s){return e[n]===s[n]?e[t]-s[t]:e[n]-s[n]}}function Ow(n){const t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),_n(e&&e.onComplete,[n],t)}function YL(n){const t=n.chart,e=t.options.animation;_n(e&&e.onProgress,[n],t)}function Lw(n){return Vx()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const _f={},Iw=n=>{const t=Lw(n);return Object.values(_f).filter(e=>e.canvas===t).pop()};function WL(n,t,e){const s=Object.keys(n);for(const a of s){const o=+a;if(o>=t){const u=n[a];delete n[a],(e>0||o>t)&&(n[o+e]=u)}}}function UL(n,t,e,s){return!e||n.type==="mouseout"?null:s?t:n}class gf{constructor(t,e){const s=this.config=new RL(e),a=Lw(t),o=Iw(a);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");const u=s.createResolver(s.chartOptionScopes(),this.getContext());this.platform=new(s.platform||SL(a)),this.platform.updateConfig(s);const d=this.platform.acquireContext(a,u.aspectRatio),f=d&&d.canvas,g=f&&f.height,v=f&&f.width;if(this.id=TN(),this.ctx=d,this.canvas=f,this.width=v,this.height=g,this._options=u,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 DL,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=HN(D=>this.update(D),u.resizeDelay||0),this._dataChanges=[],_f[this.id]=this,!d||!f){console.error("Failed to create chart: can't acquire context from the given item");return}_a.listen(this,"complete",Ow),_a.listen(this,"progress",YL),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:s,height:a,_aspectRatio:o}=this;return Ye(t)?e&&o?o:a?s/a:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():$x(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return Tx(this.canvas,this.ctx),this}stop(){return _a.stop(this),this}resize(t,e){_a.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const s=this.options,a=this.canvas,o=s.maintainAspectRatio&&this.aspectRatio,u=this.platform.getMaximumSize(a,t,e,o),d=s.devicePixelRatio||this.platform.getDevicePixelRatio(),f=this.width?"resize":"attach";this.width=u.width,this.height=u.height,this._aspectRatio=this.aspectRatio,$x(this,d,!0)&&(this.notifyPlugins("resize",{size:u}),_n(s.onResize,[this,u],this),this.attached&&this._doResize(f)&&this.render())}ensureScalesHaveIDs(){const e=this.options.scales||{};Qe(e,(s,a)=>{s.id=a})}buildOrUpdateScales(){const t=this.options,e=t.scales,s=this.scales,a=Object.keys(s).reduce((u,d)=>(u[d]=!1,u),{});let o=[];e&&(o=o.concat(Object.keys(e).map(u=>{const d=e[u],f=Jp(u,d),g=f==="r",v=f==="x";return{options:d,dposition:g?"chartArea":v?"bottom":"left",dtype:g?"radialLinear":v?"category":"linear"}}))),Qe(o,u=>{const d=u.options,f=d.id,g=Jp(f,d),v=De(d.type,u.dtype);(d.position===void 0||Nw(d.position,g)!==Nw(u.dposition))&&(d.position=u.dposition),a[f]=!0;let D=null;if(f in s&&s[f].type===v)D=s[f];else{const T=Gr.getScale(v);D=new T({id:f,type:v,ctx:this.ctx,chart:this}),s[D.id]=D}D.init(d,t)}),Qe(a,(u,d)=>{u||delete s[d]}),Qe(s,u=>{Fi.configure(this,u,u.options),Fi.addBox(this,u)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,s=t.length;if(t.sort((a,o)=>a.index-o.index),s>e){for(let a=e;a<s;++a)this._destroyDatasetMeta(a);t.splice(e,s-e)}this._sortedMetasets=t.slice(0).sort(Aw("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((s,a)=>{e.filter(o=>o===s._dataset).length===0&&this._destroyDatasetMeta(a)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let s,a;for(this._removeUnreferencedMetasets(),s=0,a=e.length;s<a;s++){const o=e[s];let u=this.getDatasetMeta(s);const d=o.type||this.config.type;if(u.type&&u.type!==d&&(this._destroyDatasetMeta(s),u=this.getDatasetMeta(s)),u.type=d,u.indexAxis=o.indexAxis||Zp(d,this.options),u.order=o.order||0,u.index=s,u.label=""+o.label,u.visible=this.isDatasetVisible(s),u.controller)u.controller.updateIndex(s),u.controller.linkScales();else{const f=Gr.getController(d),{datasetElementType:g,dataElementType:v}=Be.datasets[d];Object.assign(f.prototype,{dataElementType:Gr.getElement(v),datasetElementType:g&&Gr.getElement(g)}),u.controller=new f(this,s),t.push(u.controller)}}return this._updateMetasets(),t}_resetElements(){Qe(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const s=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),a=this._animationsDisabled=!s.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;const o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let u=0;for(let g=0,v=this.data.datasets.length;g<v;g++){const{controller:D}=this.getDatasetMeta(g),T=!a&&o.indexOf(D)===-1;D.buildOrUpdateElements(T),u=Math.max(+D.getMaxOverflow(),u)}u=this._minPadding=s.layout.autoPadding?u:0,this._updateLayout(u),a||Qe(o,g=>{g.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(Aw("z","_idx"));const{_active:d,_lastEvent:f}=this;f?this._eventHandler(f,!0):d.length&&this._updateHoverStyles(d,d,!0),this.render()}_updateScales(){Qe(this.scales,t=>{Fi.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),s=new Set(t.events);(!ix(e,s)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:s,start:a,count:o}of e){const u=s==="_removeElements"?-o:o;WL(t,a,u)}}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,s=o=>new Set(t.filter(u=>u[0]===o).map((u,d)=>d+","+u.splice(1).join(","))),a=s(0);for(let o=1;o<e;o++)if(!ix(a,s(o)))return;return Array.from(a).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;Fi.update(this,this.width,this.height,t);const e=this.chartArea,s=e.width<=0||e.height<=0;this._layers=[],Qe(this.boxes,a=>{s&&a.position==="chartArea"||(a.configure&&a.configure(),this._layers.push(...a._layers()))},this),this._layers.forEach((a,o)=>{a._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,s=this.data.datasets.length;e<s;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,s=this.data.datasets.length;e<s;++e)this._updateDataset(e,Fo(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const s=this.getDatasetMeta(t),a={meta:s,index:t,mode:e,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",a)!==!1&&(s.controller._update(e),a.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",a))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(_a.has(this)?this.attached&&!_a.running(this)&&_a.start(this):(this.draw(),Ow({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:s,height:a}=this._resizeBeforeDraw;this._resize(s,a),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,s=[];let a,o;for(a=0,o=e.length;a<o;++a){const u=e[a];(!t||u.visible)&&s.push(u)}return s}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,s=t._clip,a=!s.disabled,o=this.chartArea,u={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",u)!==!1&&(a&&Zd(e,{left:s.left===!1?0:o.left-s.left,right:s.right===!1?this.width:o.right+s.right,top:s.top===!1?0:o.top-s.top,bottom:s.bottom===!1?this.height:o.bottom+s.bottom}),t.controller.draw(),a&&Jd(e),u.cancelable=!1,this.notifyPlugins("afterDatasetDraw",u))}isPointInArea(t){return ou(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,s,a){const o=sL.modes[e];return typeof o=="function"?o(this,t,s,a):[]}getDatasetMeta(t){const e=this.data.datasets[t],s=this._metasets;let a=s.filter(o=>o&&o._dataset===e).pop();return a||(a={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},s.push(a)),a}getContext(){return this.$context||(this.$context=$o(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const s=this.getDatasetMeta(t);return typeof s.hidden=="boolean"?!s.hidden:!e.hidden}setDatasetVisibility(t,e){const s=this.getDatasetMeta(t);s.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,s){const a=s?"show":"hide",o=this.getDatasetMeta(t),u=o.controller._resolveAnimations(void 0,a);Xs(e)?(o.data[e].hidden=!s,this.update()):(this.setDatasetVisibility(t,s),u.update(o,{visible:s}),this.update(d=>d.datasetIndex===t?a:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),_a.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),Tx(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete _f[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,s=(o,u)=>{e.addEventListener(this,o,u),t[o]=u},a=(o,u,d)=>{o.offsetX=u,o.offsetY=d,this._eventHandler(o)};Qe(this.options.events,o=>s(o,a))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,s=(f,g)=>{e.addEventListener(this,f,g),t[f]=g},a=(f,g)=>{t[f]&&(e.removeEventListener(this,f,g),delete t[f])},o=(f,g)=>{this.canvas&&this.resize(f,g)};let u;const d=()=>{a("attach",d),this.attached=!0,this.resize(),s("resize",o),s("detach",u)};u=()=>{this.attached=!1,a("resize",o),this._stop(),this._resize(0,0),s("attach",d)},e.isAttached(this.canvas)?d():u()}unbindEvents(){Qe(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Qe(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,s){const a=s?"set":"remove";let o,u,d,f;for(e==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+a+"DatasetHoverStyle"]()),d=0,f=t.length;d<f;++d){u=t[d];const g=u&&this.getDatasetMeta(u.datasetIndex).controller;g&&g[a+"HoverStyle"](u.element,u.datasetIndex,u.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],s=t.map(({datasetIndex:o,index:u})=>{const d=this.getDatasetMeta(o);if(!d)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:d.data[u],index:u}});!Wd(s,e)&&(this._active=s,this._lastEvent=null,this._updateHoverStyles(s,e))}notifyPlugins(t,e,s){return this._plugins.notify(this,t,e,s)}_updateHoverStyles(t,e,s){const a=this.options.hover,o=(f,g)=>f.filter(v=>!g.some(D=>v.datasetIndex===D.datasetIndex&&v.index===D.index)),u=o(e,t),d=s?t:o(t,e);u.length&&this.updateHoverStyle(u,a.mode,!1),d.length&&a.mode&&this.updateHoverStyle(d,a.mode,!0)}_eventHandler(t,e){const s={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},a=u=>(u.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",s,a)===!1)return;const o=this._handleEvent(t,e,s.inChartArea);return s.cancelable=!1,this.notifyPlugins("afterEvent",s,a),(o||s.changed)&&this.render(),this}_handleEvent(t,e,s){const{_active:a=[],options:o}=this,u=e,d=this._getActiveElements(t,a,s,u),f=IN(t),g=UL(t,this._lastEvent,s,f);s&&(this._lastEvent=null,_n(o.onHover,[t,d,this],this),f&&_n(o.onClick,[t,d,this],this));const v=!Wd(d,a);return(v||e)&&(this._active=d,this._updateHoverStyles(d,a,e)),this._lastEvent=g,v}_getActiveElements(t,e,s,a){if(t.type==="mouseout")return[];if(!s)return e;const o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,a)}}const Pw=()=>Qe(gf.instances,n=>n._plugins.invalidate()),Yo=!0;Object.defineProperties(gf,{defaults:{enumerable:Yo,value:Be},instances:{enumerable:Yo,value:_f},overrides:{enumerable:Yo,value:Ko},registry:{enumerable:Yo,value:Gr},version:{enumerable:Yo,value:VL},getChart:{enumerable:Yo,value:Iw},register:{enumerable:Yo,value:(...n)=>{Gr.add(...n),Pw()}},unregister:{enumerable:Yo,value:(...n)=>{Gr.remove(...n),Pw()}}});function Rw(n,t,e){const{startAngle:s,pixelMargin:a,x:o,y:u,outerRadius:d,innerRadius:f}=t;let g=a/d;n.beginPath(),n.arc(o,u,d,s-g,e+g),f>a?(g=a/f,n.arc(o,u,f,e+g,s-g,!0)):n.arc(o,u,a,e+Yn,s-Yn),n.closePath(),n.clip()}function HL(n){return Fp(n,["outerStart","outerEnd","innerStart","innerEnd"])}function zL(n,t,e,s){const a=HL(n.options.borderRadius),o=(e-t)/2,u=Math.min(o,s*t/2),d=f=>{const g=(e-Math.min(o,f))*s/2;return yi(f,0,Math.min(o,g))};return{outerStart:d(a.outerStart),outerEnd:d(a.outerEnd),innerStart:yi(a.innerStart,0,u),innerEnd:yi(a.innerEnd,0,u)}}function Ac(n,t,e,s){return{x:e+n*Math.cos(t),y:s+n*Math.sin(t)}}function Qp(n,t,e,s,a,o){const{x:u,y:d,startAngle:f,pixelMargin:g,innerRadius:v}=t,D=Math.max(t.outerRadius+s+e-g,0),T=v>0?v+s+e+g:0;let A=0;const M=a-f;if(s){const Ct=v>0?v-s:0,Wt=D>0?D-s:0,Vt=(Ct+Wt)/2,ee=Vt!==0?M*Vt/(Vt+s):M;A=(M-ee)/2}const W=Math.max(.001,M*D-e/An)/D,U=(M-W)/2,O=f+U+A,R=a-U-A,{outerStart:H,outerEnd:Y,innerStart:I,innerEnd:j}=zL(t,T,D,R-O),q=D-H,lt=D-Y,st=O+H/q,yt=R-Y/lt,mt=T+I,wt=T+j,Ot=O+I/mt,ae=R-j/wt;if(n.beginPath(),o){if(n.arc(u,d,D,st,yt),Y>0){const Vt=Ac(lt,yt,u,d);n.arc(Vt.x,Vt.y,Y,yt,R+Yn)}const Ct=Ac(wt,R,u,d);if(n.lineTo(Ct.x,Ct.y),j>0){const Vt=Ac(wt,ae,u,d);n.arc(Vt.x,Vt.y,j,R+Yn,ae+Math.PI)}if(n.arc(u,d,T,R-j/T,O+I/T,!0),I>0){const Vt=Ac(mt,Ot,u,d);n.arc(Vt.x,Vt.y,I,Ot+Math.PI,O-Yn)}const Wt=Ac(q,O,u,d);if(n.lineTo(Wt.x,Wt.y),H>0){const Vt=Ac(q,st,u,d);n.arc(Vt.x,Vt.y,H,O-Yn,st)}}else{n.moveTo(u,d);const Ct=Math.cos(st)*D+u,Wt=Math.sin(st)*D+d;n.lineTo(Ct,Wt);const Vt=Math.cos(yt)*D+u,ee=Math.sin(yt)*D+d;n.lineTo(Vt,ee)}n.closePath()}function jL(n,t,e,s,a){const{fullCircles:o,startAngle:u,circumference:d}=t;let f=t.endAngle;if(o){Qp(n,t,e,s,u+an,a);for(let g=0;g<o;++g)n.fill();isNaN(d)||(f=u+d%an,d%an===0&&(f+=an))}return Qp(n,t,e,s,f,a),n.fill(),f}function GL(n,t,e){const{x:s,y:a,startAngle:o,pixelMargin:u,fullCircles:d}=t,f=Math.max(t.outerRadius-u,0),g=t.innerRadius+u;let v;for(e&&Rw(n,t,o+an),n.beginPath(),n.arc(s,a,g,o+an,o,!0),v=0;v<d;++v)n.stroke();for(n.beginPath(),n.arc(s,a,f,o,o+an),v=0;v<d;++v)n.stroke()}function KL(n,t,e,s,a,o){const{options:u}=t,{borderWidth:d,borderJoinStyle:f}=u,g=u.borderAlign==="inner";!d||(g?(n.lineWidth=d*2,n.lineJoin=f||"round"):(n.lineWidth=d,n.lineJoin=f||"bevel"),t.fullCircles&&GL(n,t,g),g&&Rw(n,t,a),Qp(n,t,e,s,a,o),n.stroke())}class yf extends ir{constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,s){const a=this.getProps(["x","y"],s),{angle:o,distance:u}=lx(a,{x:t,y:e}),{startAngle:d,endAngle:f,innerRadius:g,outerRadius:v,circumference:D}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],s),T=this.options.spacing/2,M=De(D,f-d)>=an||nu(o,d,f),W=fa(u,g+T,v+T);return M&&W}getCenterPoint(t){const{x:e,y:s,startAngle:a,endAngle:o,innerRadius:u,outerRadius:d}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:f,spacing:g}=this.options,v=(a+o)/2,D=(u+d+g+f)/2;return{x:e+Math.cos(v)*D,y:s+Math.sin(v)*D}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:s}=this,a=(e.offset||0)/2,o=(e.spacing||0)/2,u=e.circular;if(this.pixelMargin=e.borderAlign==="inner"?.33:0,this.fullCircles=s>an?Math.floor(s/an):0,s===0||this.innerRadius<0||this.outerRadius<0)return;t.save();let d=0;if(a){d=a/2;const g=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(g)*d,Math.sin(g)*d),this.circumference>=An&&(d=a)}t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor;const f=jL(t,this,d,o,u);KL(t,this,d,o,f,u),t.restore()}}yf.id="arc",yf.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0},yf.defaultRoutes={backgroundColor:"backgroundColor"};function Fw(n,t,e=t){n.lineCap=De(e.borderCapStyle,t.borderCapStyle),n.setLineDash(De(e.borderDash,t.borderDash)),n.lineDashOffset=De(e.borderDashOffset,t.borderDashOffset),n.lineJoin=De(e.borderJoinStyle,t.borderJoinStyle),n.lineWidth=De(e.borderWidth,t.borderWidth),n.strokeStyle=De(e.borderColor,t.borderColor)}function qL(n,t,e){n.lineTo(e.x,e.y)}function XL(n){return n.stepped?gA:n.tension||n.cubicInterpolationMode==="monotone"?yA:qL}function Bw(n,t,e={}){const s=n.length,{start:a=0,end:o=s-1}=e,{start:u,end:d}=t,f=Math.max(a,u),g=Math.min(o,d),v=a<u&&o<u||a>d&&o>d;return{count:s,start:f,loop:t.loop,ilen:g<f&&!v?s+g-f:g-f}}function ZL(n,t,e,s){const{points:a,options:o}=t,{count:u,start:d,loop:f,ilen:g}=Bw(a,e,s),v=XL(o);let{move:D=!0,reverse:T}=s||{},A,M,W;for(A=0;A<=g;++A)M=a[(d+(T?g-A:A))%u],!M.skip&&(D?(n.moveTo(M.x,M.y),D=!1):v(n,W,M,T,o.stepped),W=M);return f&&(M=a[(d+(T?g:0))%u],v(n,W,M,T,o.stepped)),!!f}function JL(n,t,e,s){const a=t.points,{count:o,start:u,ilen:d}=Bw(a,e,s),{move:f=!0,reverse:g}=s||{};let v=0,D=0,T,A,M,W,U,O;const R=Y=>(u+(g?d-Y:Y))%o,H=()=>{W!==U&&(n.lineTo(v,U),n.lineTo(v,W),n.lineTo(v,O))};for(f&&(A=a[R(0)],n.moveTo(A.x,A.y)),T=0;T<=d;++T){if(A=a[R(T)],A.skip)continue;const Y=A.x,I=A.y,j=Y|0;j===M?(I<W?W=I:I>U&&(U=I),v=(D*v+Y)/++D):(H(),n.lineTo(Y,I),M=j,D=0,W=U=I),O=I}H()}function tm(n){const t=n.options,e=t.borderDash&&t.borderDash.length;return!n._decimated&&!n._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?JL:ZL}function QL(n){return n.stepped?qA:n.tension||n.cubicInterpolationMode==="monotone"?XA:tl}function tI(n,t,e,s){let a=t._path;a||(a=t._path=new Path2D,t.path(a,e,s)&&a.closePath()),Fw(n,t.options),n.stroke(a)}function eI(n,t,e,s){const{segments:a,options:o}=t,u=tm(t);for(const d of a)Fw(n,o,d.style),n.beginPath(),u(n,t,d,{start:e,end:e+s-1})&&n.closePath(),n.stroke()}const nI=typeof Path2D=="function";function iI(n,t,e,s){nI&&!t.options.segment?tI(n,t,e,s):eI(n,t,e,s)}class Wo extends ir{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,e){const s=this.options;if((s.tension||s.cubicInterpolationMode==="monotone")&&!s.stepped&&!this._pointsUpdated){const a=s.spanGaps?this._loop:this._fullLoop;YA(this._points,s,t,a,e),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=iO(this,this.options.segment))}first(){const t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){const t=this.segments,e=this.points,s=t.length;return s&&e[t[s-1].end]}interpolate(t,e){const s=this.options,a=t[e],o=this.points,u=Kx(this,{property:e,start:a,end:a});if(!u.length)return;const d=[],f=QL(s);let g,v;for(g=0,v=u.length;g<v;++g){const{start:D,end:T}=u[g],A=o[D],M=o[T];if(A===M){d.push(A);continue}const W=Math.abs((a-A[e])/(M[e]-A[e])),U=f(A,M,W,s.stepped);U[e]=t[e],d.push(U)}return d.length===1?d[0]:d}pathSegment(t,e,s){return tm(this)(t,this,e,s)}path(t,e,s){const a=this.segments,o=tm(this);let u=this._loop;e=e||0,s=s||this.points.length-e;for(const d of a)u&=o(t,this,d,{start:e,end:e+s-1});return!!u}draw(t,e,s,a){const o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),iI(t,this,s,a),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}Wo.id="line",Wo.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0},Wo.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"},Wo.descriptors={_scriptable:!0,_indexable:n=>n!=="borderDash"&&n!=="fill"};function Vw(n,t,e,s){const a=n.options,{[e]:o}=n.getProps([e],s);return Math.abs(t-o)<a.radius+a.hitRadius}class bf extends ir{constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,s){const a=this.options,{x:o,y:u}=this.getProps(["x","y"],s);return Math.pow(t-o,2)+Math.pow(e-u,2)<Math.pow(a.hitRadius+a.radius,2)}inXRange(t,e){return Vw(this,t,"x",e)}inYRange(t,e){return Vw(this,t,"y",e)}getCenterPoint(t){const{x:e,y:s}=this.getProps(["x","y"],t);return{x:e,y:s}}size(t){t=t||this.options||{};let e=t.radius||0;e=Math.max(e,e&&t.hoverRadius||0);const s=e&&t.borderWidth||0;return(e+s)*2}draw(t,e){const s=this.options;this.skip||s.radius<.1||!ou(this,e,this.size(s)/2)||(t.strokeStyle=s.borderColor,t.lineWidth=s.borderWidth,t.fillStyle=s.backgroundColor,Rp(t,s,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}}bf.id="point",bf.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0},bf.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function $w(n,t){const{x:e,y:s,base:a,width:o,height:u}=n.getProps(["x","y","base","width","height"],t);let d,f,g,v,D;return n.horizontal?(D=u/2,d=Math.min(e,a),f=Math.max(e,a),g=s-D,v=s+D):(D=o/2,d=e-D,f=e+D,g=Math.min(s,a),v=Math.max(s,a)),{left:d,top:g,right:f,bottom:v}}function Uo(n,t,e,s){return n?0:yi(t,e,s)}function sI(n,t,e){const s=n.options.borderWidth,a=n.borderSkipped,o=Nx(s);return{t:Uo(a.top,o.top,0,e),r:Uo(a.right,o.right,0,t),b:Uo(a.bottom,o.bottom,0,e),l:Uo(a.left,o.left,0,t)}}function rI(n,t,e){const{enableBorderRadius:s}=n.getProps(["enableBorderRadius"]),a=n.options.borderRadius,o=Zo(a),u=Math.min(t,e),d=n.borderSkipped,f=s||Re(a);return{topLeft:Uo(!f||d.top||d.left,o.topLeft,0,u),topRight:Uo(!f||d.top||d.right,o.topRight,0,u),bottomLeft:Uo(!f||d.bottom||d.left,o.bottomLeft,0,u),bottomRight:Uo(!f||d.bottom||d.right,o.bottomRight,0,u)}}function aI(n){const t=$w(n),e=t.right-t.left,s=t.bottom-t.top,a=sI(n,e/2,s/2),o=rI(n,e/2,s/2);return{outer:{x:t.left,y:t.top,w:e,h:s,radius:o},inner:{x:t.left+a.l,y:t.top+a.t,w:e-a.l-a.r,h:s-a.t-a.b,radius:{topLeft:Math.max(0,o.topLeft-Math.max(a.t,a.l)),topRight:Math.max(0,o.topRight-Math.max(a.t,a.r)),bottomLeft:Math.max(0,o.bottomLeft-Math.max(a.b,a.l)),bottomRight:Math.max(0,o.bottomRight-Math.max(a.b,a.r))}}}}function em(n,t,e,s){const a=t===null,o=e===null,d=n&&!(a&&o)&&$w(n,s);return d&&(a||fa(t,d.left,d.right))&&(o||fa(e,d.top,d.bottom))}function oI(n){return n.topLeft||n.topRight||n.bottomLeft||n.bottomRight}function lI(n,t){n.rect(t.x,t.y,t.w,t.h)}function nm(n,t,e={}){const s=n.x!==e.x?-t:0,a=n.y!==e.y?-t:0,o=(n.x+n.w!==e.x+e.w?t:0)-s,u=(n.y+n.h!==e.y+e.h?t:0)-a;return{x:n.x+s,y:n.y+a,w:n.w+o,h:n.h+u,radius:n.radius}}class vf extends ir{constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:s,backgroundColor:a}}=this,{inner:o,outer:u}=aI(this),d=oI(u.radius)?lu:lI;t.save(),(u.w!==o.w||u.h!==o.h)&&(t.beginPath(),d(t,nm(u,e,o)),t.clip(),d(t,nm(o,-e,u)),t.fillStyle=s,t.fill("evenodd")),t.beginPath(),d(t,nm(o,e)),t.fillStyle=a,t.fill(),t.restore()}inRange(t,e,s){return em(this,t,e,s)}inXRange(t,e){return em(this,t,null,e)}inYRange(t,e){return em(this,null,t,e)}getCenterPoint(t){const{x:e,y:s,base:a,horizontal:o}=this.getProps(["x","y","base","horizontal"],t);return{x:o?(e+a)/2:e,y:o?s:(s+a)/2}}getRange(t){return t==="x"?this.width/2:this.height/2}}vf.id="bar",vf.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0},vf.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};var cI=Object.freeze({__proto__:null,ArcElement:yf,LineElement:Wo,PointElement:bf,BarElement:vf});function uI(n,t,e,s,a){const o=a.samples||s;if(o>=e)return n.slice(t,t+e);const u=[],d=(e-2)/(o-2);let f=0;const g=t+e-1;let v=t,D,T,A,M,W;for(u[f++]=n[v],D=0;D<o-2;D++){let U=0,O=0,R;const H=Math.floor((D+1)*d)+1+t,Y=Math.min(Math.floor((D+2)*d)+1,e)+t,I=Y-H;for(R=H;R<Y;R++)U+=n[R].x,O+=n[R].y;U/=I,O/=I;const j=Math.floor(D*d)+1+t,q=Math.min(Math.floor((D+1)*d)+1,e)+t,{x:lt,y:st}=n[v];for(A=M=-1,R=j;R<q;R++)M=.5*Math.abs((lt-U)*(n[R].y-st)-(lt-n[R].x)*(O-st)),M>A&&(A=M,T=n[R],W=R);u[f++]=T,v=W}return u[f++]=n[g],u}function hI(n,t,e,s){let a=0,o=0,u,d,f,g,v,D,T,A,M,W;const U=[],O=t+e-1,R=n[t].x,Y=n[O].x-R;for(u=t;u<t+e;++u){d=n[u],f=(d.x-R)/Y*s,g=d.y;const I=f|0;if(I===v)g<M?(M=g,D=u):g>W&&(W=g,T=u),a=(o*a+d.x)/++o;else{const j=u-1;if(!Ye(D)&&!Ye(T)){const q=Math.min(D,T),lt=Math.max(D,T);q!==A&&q!==j&&U.push({...n[q],x:a}),lt!==A&<!==j&&U.push({...n[lt],x:a})}u>0&&j!==A&&U.push(n[j]),U.push(d),v=I,o=0,M=W=g,D=T=A=u}}return U}function Yw(n){if(n._decimated){const t=n._data;delete n._decimated,delete n._data,Object.defineProperty(n,"data",{value:t})}}function Ww(n){n.data.datasets.forEach(t=>{Yw(t)})}function dI(n,t){const e=t.length;let s=0,a;const{iScale:o}=n,{min:u,max:d,minDefined:f,maxDefined:g}=o.getUserBounds();return f&&(s=yi(pa(t,o.axis,u).lo,0,e-1)),g?a=yi(pa(t,o.axis,d).hi+1,s,e)-s:a=e-s,{start:s,count:a}}var fI={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,t,e)=>{if(!e.enabled){Ww(n);return}const s=n.width;n.data.datasets.forEach((a,o)=>{const{_data:u,indexAxis:d}=a,f=n.getDatasetMeta(o),g=u||a.data;if(cu([d,n.options.indexAxis])==="y"||!f.controller.supportsDecimation)return;const v=n.scales[f.xAxisID];if(v.type!=="linear"&&v.type!=="time"||n.options.parsing)return;let{start:D,count:T}=dI(f,g);const A=e.threshold||4*s;if(T<=A){Yw(a);return}Ye(u)&&(a._data=g,delete a.data,Object.defineProperty(a,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(W){this._data=W}}));let M;switch(e.algorithm){case"lttb":M=uI(g,D,T,s,e);break;case"min-max":M=hI(g,D,T,s);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}a._decimated=M})},destroy(n){Ww(n)}};function pI(n,t,e){const s=n.segments,a=n.points,o=t.points,u=[];for(const d of s){let{start:f,end:g}=d;g=sm(f,g,a);const v=im(e,a[f],a[g],d.loop);if(!t.segments){u.push({source:d,target:v,start:a[f],end:a[g]});continue}const D=Kx(t,v);for(const T of D){const A=im(e,o[T.start],o[T.end],T.loop),M=Gx(d,a,A);for(const W of M)u.push({source:W,target:T,start:{[e]:Uw(v,A,"start",Math.max)},end:{[e]:Uw(v,A,"end",Math.min)}})}}return u}function im(n,t,e,s){if(s)return;let a=t[n],o=e[n];return n==="angle"&&(a=ks(a),o=ks(o)),{property:n,start:a,end:o}}function mI(n,t){const{x:e=null,y:s=null}=n||{},a=t.points,o=[];return t.segments.forEach(({start:u,end:d})=>{d=sm(u,d,a);const f=a[u],g=a[d];s!==null?(o.push({x:f.x,y:s}),o.push({x:g.x,y:s})):e!==null&&(o.push({x:e,y:f.y}),o.push({x:e,y:g.y}))}),o}function sm(n,t,e){for(;t>n;t--){const s=e[t];if(!isNaN(s.x)&&!isNaN(s.y))break}return t}function Uw(n,t,e,s){return n&&t?s(n[e],t[e]):n?n[e]:t?t[e]:0}function Hw(n,t){let e=[],s=!1;return mn(n)?(s=!0,e=n):e=mI(n,t),e.length?new Wo({points:e,options:{tension:0},_loop:s,_fullLoop:s}):null}function zw(n){return n&&n.fill!==!1}function _I(n,t,e){let a=n[t].fill;const o=[t];let u;if(!e)return a;for(;a!==!1&&o.indexOf(a)===-1;){if(!Un(a))return a;if(u=n[a],!u)return!1;if(u.visible)return a;o.push(a),a=u.fill}return!1}function gI(n,t,e){const s=kI(n);if(Re(s))return isNaN(s.value)?!1:s;let a=parseFloat(s);return Un(a)&&Math.floor(a)===a?yI(s[0],t,a,e):["origin","start","end","stack","shape"].indexOf(s)>=0&&s}function yI(n,t,e,s){return(n==="-"||n==="+")&&(e=t+e),e===t||e<0||e>=s?!1:e}function bI(n,t){let e=null;return n==="start"?e=t.bottom:n==="end"?e=t.top:Re(n)?e=t.getPixelForValue(n.value):t.getBasePixel&&(e=t.getBasePixel()),e}function vI(n,t,e){let s;return n==="start"?s=e:n==="end"?s=t.options.reverse?t.min:t.max:Re(n)?s=n.value:s=t.getBaseValue(),s}function kI(n){const t=n.options,e=t.fill;let s=De(e&&e.target,e);return s===void 0&&(s=!!t.backgroundColor),s===!1||s===null?!1:s===!0?"origin":s}function xI(n){const{scale:t,index:e,line:s}=n,a=[],o=s.segments,u=s.points,d=wI(t,e);d.push(Hw({x:null,y:t.bottom},s));for(let f=0;f<o.length;f++){const g=o[f];for(let v=g.start;v<=g.end;v++)EI(a,u[v],d)}return new Wo({points:a,options:{}})}function wI(n,t){const e=[],s=n.getMatchingVisibleMetas("line");for(let a=0;a<s.length;a++){const o=s[a];if(o.index===t)break;o.hidden||e.unshift(o.dataset)}return e}function EI(n,t,e){const s=[];for(let a=0;a<e.length;a++){const o=e[a],{first:u,last:d,point:f}=SI(o,t,"x");if(!(!f||u&&d)){if(u)s.unshift(f);else if(n.push(f),!d)break}}n.push(...s)}function SI(n,t,e){const s=n.interpolate(t,e);if(!s)return{};const a=s[e],o=n.segments,u=n.points;let d=!1,f=!1;for(let g=0;g<o.length;g++){const v=o[g],D=u[v.start][e],T=u[v.end][e];if(fa(a,D,T)){d=a===D,f=a===T;break}}return{first:d,last:f,point:s}}class jw{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,s){const{x:a,y:o,radius:u}=this;return e=e||{start:0,end:an},t.arc(a,o,u,e.end,e.start,!0),!s.bounds}interpolate(t){const{x:e,y:s,radius:a}=this,o=t.angle;return{x:e+Math.cos(o)*a,y:s+Math.sin(o)*a,angle:o}}}function DI(n){const{chart:t,fill:e,line:s}=n;if(Un(e))return CI(t,e);if(e==="stack")return xI(n);if(e==="shape")return!0;const a=TI(n);return a instanceof jw?a:Hw(a,s)}function CI(n,t){const e=n.getDatasetMeta(t);return e&&n.isDatasetVisible(t)?e.dataset:null}function TI(n){return(n.scale||{}).getPointPositionForValue?NI(n):MI(n)}function MI(n){const{scale:t={},fill:e}=n,s=bI(e,t);if(Un(s)){const a=t.isHorizontal();return{x:a?s:null,y:a?null:s}}return null}function NI(n){const{scale:t,fill:e}=n,s=t.options,a=t.getLabels().length,o=s.reverse?t.max:t.min,u=vI(e,t,o),d=[];if(s.grid.circular){const f=t.getPointPositionForValue(0,o);return new jw({x:f.x,y:f.y,radius:t.getDistanceFromCenterForValue(u)})}for(let f=0;f<a;++f)d.push(t.getPointPositionForValue(f,u));return d}function rm(n,t,e){const s=DI(t),{line:a,scale:o,axis:u}=t,d=a.options,f=d.fill,g=d.backgroundColor,{above:v=g,below:D=g}=f||{};s&&a.points.length&&(Zd(n,e),AI(n,{line:a,target:s,above:v,below:D,area:e,scale:o,axis:u}),Jd(n))}function AI(n,t){const{line:e,target:s,above:a,below:o,area:u,scale:d}=t,f=e._loop?"angle":t.axis;n.save(),f==="x"&&o!==a&&(Gw(n,s,u.top),Kw(n,{line:e,target:s,color:a,scale:d,property:f}),n.restore(),n.save(),Gw(n,s,u.bottom)),Kw(n,{line:e,target:s,color:o,scale:d,property:f}),n.restore()}function Gw(n,t,e){const{segments:s,points:a}=t;let o=!0,u=!1;n.beginPath();for(const d of s){const{start:f,end:g}=d,v=a[f],D=a[sm(f,g,a)];o?(n.moveTo(v.x,v.y),o=!1):(n.lineTo(v.x,e),n.lineTo(v.x,v.y)),u=!!t.pathSegment(n,d,{move:u}),u?n.closePath():n.lineTo(D.x,e)}n.lineTo(t.first().x,e),n.closePath(),n.clip()}function Kw(n,t){const{line:e,target:s,property:a,color:o,scale:u}=t,d=pI(e,s,a);for(const{source:f,target:g,start:v,end:D}of d){const{style:{backgroundColor:T=o}={}}=f,A=s!==!0;n.save(),n.fillStyle=T,OI(n,u,A&&im(a,v,D)),n.beginPath();const M=!!e.pathSegment(n,f);let W;if(A){M?n.closePath():qw(n,s,D,a);const U=!!s.pathSegment(n,g,{move:M,reverse:!0});W=M&&U,W||qw(n,s,v,a)}n.closePath(),n.fill(W?"evenodd":"nonzero"),n.restore()}}function OI(n,t,e){const{top:s,bottom:a}=t.chart.chartArea,{property:o,start:u,end:d}=e||{};o==="x"&&(n.beginPath(),n.rect(u,s,d-u,a-s),n.clip())}function qw(n,t,e,s){const a=t.interpolate(e,s);a&&n.lineTo(a.x,a.y)}var LI={id:"filler",afterDatasetsUpdate(n,t,e){const s=(n.data.datasets||[]).length,a=[];let o,u,d,f;for(u=0;u<s;++u)o=n.getDatasetMeta(u),d=o.dataset,f=null,d&&d.options&&d instanceof Wo&&(f={visible:n.isDatasetVisible(u),index:u,fill:gI(d,u,s),chart:n,axis:o.controller.options.indexAxis,scale:o.vScale,line:d}),o.$filler=f,a.push(f);for(u=0;u<s;++u)f=a[u],!(!f||f.fill===!1)&&(f.fill=_I(a,u,e.propagate))},beforeDraw(n,t,e){const s=e.drawTime==="beforeDraw",a=n.getSortedVisibleDatasetMetas(),o=n.chartArea;for(let u=a.length-1;u>=0;--u){const d=a[u].$filler;!d||(d.line.updateControlPoints(o,d.axis),s&&d.fill&&rm(n.ctx,d,o))}},beforeDatasetsDraw(n,t,e){if(e.drawTime!=="beforeDatasetsDraw")return;const s=n.getSortedVisibleDatasetMetas();for(let a=s.length-1;a>=0;--a){const o=s[a].$filler;zw(o)&&rm(n.ctx,o,n.chartArea)}},beforeDatasetDraw(n,t,e){const s=t.meta.$filler;!zw(s)||e.drawTime!=="beforeDatasetDraw"||rm(n.ctx,s,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Xw=(n,t)=>{let{boxHeight:e=t,boxWidth:s=t}=n;return n.usePointStyle&&(e=Math.min(e,t),s=n.pointStyleWidth||Math.min(s,t)),{boxWidth:s,boxHeight:e,itemHeight:Math.max(t,e)}},II=(n,t)=>n!==null&&t!==null&&n.datasetIndex===t.datasetIndex&&n.index===t.index;class Zw extends ir{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,e,s){this.maxWidth=t,this.maxHeight=e,this._margins=s,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=_n(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(s=>t.filter(s,this.chart.data))),t.sort&&(e=e.sort((s,a)=>t.sort(s,a,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display){this.width=this.height=0;return}const s=t.labels,a=ei(s.font),o=a.size,u=this._computeTitleHeight(),{boxWidth:d,itemHeight:f}=Xw(s,o);let g,v;e.font=a.string,this.isHorizontal()?(g=this.maxWidth,v=this._fitRows(u,o,d,f)+10):(v=this.maxHeight,g=this._fitCols(u,o,d,f)+10),this.width=Math.min(g,t.maxWidth||this.maxWidth),this.height=Math.min(v,t.maxHeight||this.maxHeight)}_fitRows(t,e,s,a){const{ctx:o,maxWidth:u,options:{labels:{padding:d}}}=this,f=this.legendHitBoxes=[],g=this.lineWidths=[0],v=a+d;let D=t;o.textAlign="left",o.textBaseline="middle";let T=-1,A=-v;return this.legendItems.forEach((M,W)=>{const U=s+e/2+o.measureText(M.text).width;(W===0||g[g.length-1]+U+2*d>u)&&(D+=v,g[g.length-(W>0?0:1)]=0,A+=v,T++),f[W]={left:0,top:A,row:T,width:U,height:a},g[g.length-1]+=U+d}),D}_fitCols(t,e,s,a){const{ctx:o,maxHeight:u,options:{labels:{padding:d}}}=this,f=this.legendHitBoxes=[],g=this.columnSizes=[],v=u-t;let D=d,T=0,A=0,M=0,W=0;return this.legendItems.forEach((U,O)=>{const R=s+e/2+o.measureText(U.text).width;O>0&&A+a+2*d>v&&(D+=T+d,g.push({width:T,height:A}),M+=T+d,W++,T=A=0),f[O]={left:M,top:A,col:W,width:R,height:a},T=Math.max(T,R),A+=a+d}),D+=T,g.push({width:T,height:A}),D}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:s,labels:{padding:a},rtl:o}}=this,u=Mc(o,this.left,this.width);if(this.isHorizontal()){let d=0,f=Pi(s,this.left+a,this.right-this.lineWidths[d]);for(const g of e)d!==g.row&&(d=g.row,f=Pi(s,this.left+a,this.right-this.lineWidths[d])),g.top+=this.top+t+a,g.left=u.leftForLtr(u.x(f),g.width),f+=g.width+a}else{let d=0,f=Pi(s,this.top+t+a,this.bottom-this.columnSizes[d].height);for(const g of e)g.col!==d&&(d=g.col,f=Pi(s,this.top+t+a,this.bottom-this.columnSizes[d].height)),g.top=f,g.left+=this.left+a,g.left=u.leftForLtr(u.x(g.left),g.width),f+=g.height+a}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const t=this.ctx;Zd(t,this),this._draw(),Jd(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:s,ctx:a}=this,{align:o,labels:u}=t,d=Be.color,f=Mc(t.rtl,this.left,this.width),g=ei(u.font),{color:v,padding:D}=u,T=g.size,A=T/2;let M;this.drawTitle(),a.textAlign=f.textAlign("left"),a.textBaseline="middle",a.lineWidth=.5,a.font=g.string;const{boxWidth:W,boxHeight:U,itemHeight:O}=Xw(u,T),R=function(q,lt,st){if(isNaN(W)||W<=0||isNaN(U)||U<0)return;a.save();const yt=De(st.lineWidth,1);if(a.fillStyle=De(st.fillStyle,d),a.lineCap=De(st.lineCap,"butt"),a.lineDashOffset=De(st.lineDashOffset,0),a.lineJoin=De(st.lineJoin,"miter"),a.lineWidth=yt,a.strokeStyle=De(st.strokeStyle,d),a.setLineDash(De(st.lineDash,[])),u.usePointStyle){const mt={radius:U*Math.SQRT2/2,pointStyle:st.pointStyle,rotation:st.rotation,borderWidth:yt},wt=f.xPlus(q,W/2),Ot=lt+A;Mx(a,mt,wt,Ot,u.pointStyleWidth&&W)}else{const mt=lt+Math.max((T-U)/2,0),wt=f.leftForLtr(q,W),Ot=Zo(st.borderRadius);a.beginPath(),Object.values(Ot).some(ae=>ae!==0)?lu(a,{x:wt,y:mt,w:W,h:U,radius:Ot}):a.rect(wt,mt,W,U),a.fill(),yt!==0&&a.stroke()}a.restore()},H=function(q,lt,st){Xo(a,st.text,q,lt+O/2,g,{strikethrough:st.hidden,textAlign:f.textAlign(st.textAlign)})},Y=this.isHorizontal(),I=this._computeTitleHeight();Y?M={x:Pi(o,this.left+D,this.right-s[0]),y:this.top+D+I,line:0}:M={x:this.left+D,y:Pi(o,this.top+I+D,this.bottom-e[0].height),line:0},Ux(this.ctx,t.textDirection);const j=O+D;this.legendItems.forEach((q,lt)=>{a.strokeStyle=q.fontColor||v,a.fillStyle=q.fontColor||v;const st=a.measureText(q.text).width,yt=f.textAlign(q.textAlign||(q.textAlign=u.textAlign)),mt=W+A+st;let wt=M.x,Ot=M.y;f.setWidth(this.width),Y?lt>0&&wt+mt+D>this.right&&(Ot=M.y+=j,M.line++,wt=M.x=Pi(o,this.left+D,this.right-s[M.line])):lt>0&&Ot+j>this.bottom&&(wt=M.x=wt+e[M.line].width+D,M.line++,Ot=M.y=Pi(o,this.top+I+D,this.bottom-e[M.line].height));const ae=f.x(wt);R(ae,Ot,q),wt=zN(yt,wt+W+A,Y?wt+mt:this.right,t.rtl),H(f.x(wt),Ot,q),Y?M.x+=mt+D:M.y+=j}),Hx(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,s=ei(e.font),a=Ri(e.padding);if(!e.display)return;const o=Mc(t.rtl,this.left,this.width),u=this.ctx,d=e.position,f=s.size/2,g=a.top+f;let v,D=this.left,T=this.width;if(this.isHorizontal())T=Math.max(...this.lineWidths),v=this.top+g,D=Pi(t.align,D,this.right-T);else{const M=this.columnSizes.reduce((W,U)=>Math.max(W,U.height),0);v=g+Pi(t.align,this.top,this.bottom-M-t.labels.padding-this._computeTitleHeight())}const A=Pi(d,D,D+T);u.textAlign=o.textAlign(Cp(d)),u.textBaseline="middle",u.strokeStyle=e.color,u.fillStyle=e.color,u.font=s.string,Xo(u,e.text,A,v,s)}_computeTitleHeight(){const t=this.options.title,e=ei(t.font),s=Ri(t.padding);return t.display?e.lineHeight+s.height:0}_getLegendItemAt(t,e){let s,a,o;if(fa(t,this.left,this.right)&&fa(e,this.top,this.bottom)){for(o=this.legendHitBoxes,s=0;s<o.length;++s)if(a=o[s],fa(t,a.left,a.left+a.width)&&fa(e,a.top,a.top+a.height))return this.legendItems[s]}return null}handleEvent(t){const e=this.options;if(!PI(t.type,e))return;const s=this._getLegendItemAt(t.x,t.y);if(t.type==="mousemove"||t.type==="mouseout"){const a=this._hoveredItem,o=II(a,s);a&&!o&&_n(e.onLeave,[t,a,this],this),this._hoveredItem=s,s&&!o&&_n(e.onHover,[t,s,this],this)}else s&&_n(e.onClick,[t,s,this],this)}}function PI(n,t){return!!((n==="mousemove"||n==="mouseout")&&(t.onHover||t.onLeave)||t.onClick&&(n==="click"||n==="mouseup"))}var RI={id:"legend",_element:Zw,start(n,t,e){const s=n.legend=new Zw({ctx:n.ctx,options:e,chart:n});Fi.configure(n,s,e),Fi.addBox(n,s)},stop(n){Fi.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,t,e){const s=n.legend;Fi.configure(n,s,e),s.options=e},afterUpdate(n){const t=n.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(n,t){t.replay||n.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,t,e){const s=t.datasetIndex,a=e.chart;a.isDatasetVisible(s)?(a.hide(s),t.hidden=!0):(a.show(s),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){const t=n.data.datasets,{labels:{usePointStyle:e,pointStyle:s,textAlign:a,color:o}}=n.legend.options;return n._getSortedDatasetMetas().map(u=>{const d=u.controller.getStyle(e?0:void 0),f=Ri(d.borderWidth);return{text:t[u.index].label,fillStyle:d.backgroundColor,fontColor:o,hidden:!u.visible,lineCap:d.borderCapStyle,lineDash:d.borderDash,lineDashOffset:d.borderDashOffset,lineJoin:d.borderJoinStyle,lineWidth:(f.width+f.height)/4,strokeStyle:d.borderColor,pointStyle:s||d.pointStyle,rotation:d.rotation,textAlign:a||d.textAlign,borderRadius:0,datasetIndex:u.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}};class am extends ir{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,e){const s=this.options;if(this.left=0,this.top=0,!s.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=t,this.height=this.bottom=e;const a=mn(s.text)?s.text.length:1;this._padding=Ri(s.padding);const o=a*ei(s.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=o:this.width=o}isHorizontal(){const t=this.options.position;return t==="top"||t==="bottom"}_drawArgs(t){const{top:e,left:s,bottom:a,right:o,options:u}=this,d=u.align;let f=0,g,v,D;return this.isHorizontal()?(v=Pi(d,s,o),D=e+t,g=o-s):(u.position==="left"?(v=s+t,D=Pi(d,a,e),f=An*-.5):(v=o-t,D=Pi(d,e,a),f=An*.5),g=a-e),{titleX:v,titleY:D,maxWidth:g,rotation:f}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const s=ei(e.font),o=s.lineHeight/2+this._padding.top,{titleX:u,titleY:d,maxWidth:f,rotation:g}=this._drawArgs(o);Xo(t,e.text,0,0,s,{color:e.color,maxWidth:f,rotation:g,textAlign:Cp(e.align),textBaseline:"middle",translation:[u,d]})}}function FI(n,t){const e=new am({ctx:n.ctx,options:t,chart:n});Fi.configure(n,e,t),Fi.addBox(n,e),n.titleBlock=e}var BI={id:"title",_element:am,start(n,t,e){FI(n,e)},stop(n){const t=n.titleBlock;Fi.removeBox(n,t),delete n.titleBlock},beforeUpdate(n,t,e){const s=n.titleBlock;Fi.configure(n,s,e),s.options=e},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 kf=new WeakMap;var VI={id:"subtitle",start(n,t,e){const s=new am({ctx:n.ctx,options:e,chart:n});Fi.configure(n,s,e),Fi.addBox(n,s),kf.set(n,s)},stop(n){Fi.removeBox(n,kf.get(n)),kf.delete(n)},beforeUpdate(n,t,e){const s=kf.get(n);Fi.configure(n,s,e),s.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const bu={average(n){if(!n.length)return!1;let t,e,s=0,a=0,o=0;for(t=0,e=n.length;t<e;++t){const u=n[t].element;if(u&&u.hasValue()){const d=u.tooltipPosition();s+=d.x,a+=d.y,++o}}return{x:s/o,y:a/o}},nearest(n,t){if(!n.length)return!1;let e=t.x,s=t.y,a=Number.POSITIVE_INFINITY,o,u,d;for(o=0,u=n.length;o<u;++o){const f=n[o].element;if(f&&f.hasValue()){const g=f.getCenterPoint(),v=Sp(t,g);v<a&&(a=v,d=f)}}if(d){const f=d.tooltipPosition();e=f.x,s=f.y}return{x:e,y:s}}};function Kr(n,t){return t&&(mn(t)?Array.prototype.push.apply(n,t):n.push(t)),n}function ga(n){return(typeof n=="string"||n instanceof String)&&n.indexOf(`
|
|
96
96
|
`)>-1?n.split(`
|
|
97
|
-
`):n}function $I(n,t){const{element:e,datasetIndex:s,index:a}=t,o=n.getDatasetMeta(s).controller,{label:u,value:d}=o.getLabelAndValue(a);return{chart:n,label:u,parsed:o.getParsed(a),raw:n.data.datasets[s].data[a],formattedValue:d,dataset:o.getDataset(),dataIndex:a,datasetIndex:s,element:e}}function Jw(n,t){const e=n.chart.ctx,{body:s,footer:a,title:o}=n,{boxWidth:u,boxHeight:d}=t,f=ei(t.bodyFont),g=ei(t.titleFont),v=ei(t.footerFont),D=o.length,T=a.length,A=s.length,M=Ri(t.padding);let W=M.height,U=0,O=s.reduce((Y,I)=>Y+I.before.length+I.lines.length+I.after.length,0);if(O+=n.beforeBody.length+n.afterBody.length,D&&(W+=D*g.lineHeight+(D-1)*t.titleSpacing+t.titleMarginBottom),O){const Y=t.displayColors?Math.max(d,f.lineHeight):f.lineHeight;W+=A*Y+(O-A)*f.lineHeight+(O-1)*t.bodySpacing}T&&(W+=t.footerMarginTop+T*v.lineHeight+(T-1)*t.footerSpacing);let R=0;const H=function(Y){U=Math.max(U,e.measureText(Y).width+R)};return e.save(),e.font=g.string,Qe(n.title,H),e.font=f.string,Qe(n.beforeBody.concat(n.afterBody),H),R=t.displayColors?u+2+t.boxPadding:0,Qe(s,Y=>{Qe(Y.before,H),Qe(Y.lines,H),Qe(Y.after,H)}),R=0,e.font=v.string,Qe(n.footer,H),e.restore(),U+=M.width,{width:U,height:W}}function YI(n,t){const{y:e,height:s}=t;return e<s/2?"top":e>n.height-s/2?"bottom":"center"}function WI(n,t,e,s){const{x:a,width:o}=s,u=e.caretSize+e.caretPadding;if(n==="left"&&a+o+u>t.width||n==="right"&&a-o-u<0)return!0}function UI(n,t,e,s){const{x:a,width:o}=e,{width:u,chartArea:{left:d,right:f}}=n;let g="center";return s==="center"?g=a<=(d+f)/2?"left":"right":a<=o/2?g="left":a>=u-o/2&&(g="right"),WI(g,n,t,e)&&(g="center"),g}function Qw(n,t,e){const s=e.yAlign||t.yAlign||YI(n,e);return{xAlign:e.xAlign||t.xAlign||UI(n,t,e,s),yAlign:s}}function HI(n,t){let{x:e,width:s}=n;return t==="right"?e-=s:t==="center"&&(e-=s/2),e}function zI(n,t,e){let{y:s,height:a}=n;return t==="top"?s+=e:t==="bottom"?s-=a+e:s-=a/2,s}function tE(n,t,e,s){const{caretSize:a,caretPadding:o,cornerRadius:u}=n,{xAlign:d,yAlign:f}=e,g=a+o,{topLeft:v,topRight:D,bottomLeft:T,bottomRight:A}=Zo(u);let M=HI(t,d);const W=zI(t,f,g);return f==="center"?d==="left"?M+=g:d==="right"&&(M-=g):d==="left"?M-=Math.max(v,T)+a:d==="right"&&(M+=Math.max(D,A)+a),{x:yi(M,0,s.width-t.width),y:yi(W,0,s.height-t.height)}}function xf(n,t,e){const s=Ri(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-s.right:n.x+s.left}function eE(n){return Kr([],ga(n))}function jI(n,t,e){return $o(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function nE(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}class om extends ir{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||t._chart,this._chart=this.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 e=this.chart,s=this.options.setContext(this.getContext()),a=s.enabled&&e.options.animation&&s.animations,o=new Jx(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=jI(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:s}=e,a=s.beforeTitle.apply(this,[t]),o=s.title.apply(this,[t]),u=s.afterTitle.apply(this,[t]);let d=[];return d=Kr(d,ga(a)),d=Kr(d,ga(o)),d=Kr(d,ga(u)),d}getBeforeBody(t,e){return eE(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:s}=e,a=[];return Qe(t,o=>{const u={before:[],lines:[],after:[]},d=nE(s,o);Kr(u.before,ga(d.beforeLabel.call(this,o))),Kr(u.lines,d.label.call(this,o)),Kr(u.after,ga(d.afterLabel.call(this,o))),a.push(u)}),a}getAfterBody(t,e){return eE(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:s}=e,a=s.beforeFooter.apply(this,[t]),o=s.footer.apply(this,[t]),u=s.afterFooter.apply(this,[t]);let d=[];return d=Kr(d,ga(a)),d=Kr(d,ga(o)),d=Kr(d,ga(u)),d}_createItems(t){const e=this._active,s=this.chart.data,a=[],o=[],u=[];let d=[],f,g;for(f=0,g=e.length;f<g;++f)d.push($I(this.chart,e[f]));return t.filter&&(d=d.filter((v,D,T)=>t.filter(v,D,T,s))),t.itemSort&&(d=d.sort((v,D)=>t.itemSort(v,D,s))),Qe(d,v=>{const D=nE(t.callbacks,v);a.push(D.labelColor.call(this,v)),o.push(D.labelPointStyle.call(this,v)),u.push(D.labelTextColor.call(this,v))}),this.labelColors=a,this.labelPointStyles=o,this.labelTextColors=u,this.dataPoints=d,d}update(t,e){const s=this.options.setContext(this.getContext()),a=this._active;let o,u=[];if(!a.length)this.opacity!==0&&(o={opacity:0});else{const d=bu[s.position].call(this,a,this._eventPosition);u=this._createItems(s),this.title=this.getTitle(u,s),this.beforeBody=this.getBeforeBody(u,s),this.body=this.getBody(u,s),this.afterBody=this.getAfterBody(u,s),this.footer=this.getFooter(u,s);const f=this._size=Jw(this,s),g=Object.assign({},d,f),v=Qw(this.chart,s,g),D=tE(s,g,v,this.chart);this.xAlign=v.xAlign,this.yAlign=v.yAlign,o={opacity:1,x:D.x,y:D.y,width:f.width,height:f.height,caretX:d.x,caretY:d.y}}this._tooltipItems=u,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,s,a){const o=this.getCaretPosition(t,s,a);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,s){const{xAlign:a,yAlign:o}=this,{caretSize:u,cornerRadius:d}=s,{topLeft:f,topRight:g,bottomLeft:v,bottomRight:D}=Zo(d),{x:T,y:A}=t,{width:M,height:W}=e;let U,O,R,H,Y,I;return o==="center"?(Y=A+W/2,a==="left"?(U=T,O=U-u,H=Y+u,I=Y-u):(U=T+M,O=U+u,H=Y-u,I=Y+u),R=U):(a==="left"?O=T+Math.max(f,v)+u:a==="right"?O=T+M-Math.max(g,D)-u:O=this.caretX,o==="top"?(H=A,Y=H-u,U=O-u,R=O+u):(H=A+W,Y=H+u,U=O+u,R=O-u),I=H),{x1:U,x2:O,x3:R,y1:H,y2:Y,y3:I}}drawTitle(t,e,s){const a=this.title,o=a.length;let u,d,f;if(o){const g=Mc(s.rtl,this.x,this.width);for(t.x=xf(this,s.titleAlign,s),e.textAlign=g.textAlign(s.titleAlign),e.textBaseline="middle",u=ei(s.titleFont),d=s.titleSpacing,e.fillStyle=s.titleColor,e.font=u.string,f=0;f<o;++f)e.fillText(a[f],g.x(t.x),t.y+u.lineHeight/2),t.y+=u.lineHeight+d,f+1===o&&(t.y+=s.titleMarginBottom-d)}}_drawColorBox(t,e,s,a,o){const u=this.labelColors[s],d=this.labelPointStyles[s],{boxHeight:f,boxWidth:g,boxPadding:v}=o,D=ei(o.bodyFont),T=xf(this,"left",o),A=a.x(T),M=f<D.lineHeight?(D.lineHeight-f)/2:0,W=e.y+M;if(o.usePointStyle){const U={radius:Math.min(g,f)/2,pointStyle:d.pointStyle,rotation:d.rotation,borderWidth:1},O=a.leftForLtr(A,g)+g/2,R=W+f/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Rp(t,U,O,R),t.strokeStyle=u.borderColor,t.fillStyle=u.backgroundColor,Rp(t,U,O,R)}else{t.lineWidth=Re(u.borderWidth)?Math.max(...Object.values(u.borderWidth)):u.borderWidth||1,t.strokeStyle=u.borderColor,t.setLineDash(u.borderDash||[]),t.lineDashOffset=u.borderDashOffset||0;const U=a.leftForLtr(A,g-v),O=a.leftForLtr(a.xPlus(A,1),g-v-2),R=Zo(u.borderRadius);Object.values(R).some(H=>H!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,lu(t,{x:U,y:W,w:g,h:f,radius:R}),t.fill(),t.stroke(),t.fillStyle=u.backgroundColor,t.beginPath(),lu(t,{x:O,y:W+1,w:g-2,h:f-2,radius:R}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(U,W,g,f),t.strokeRect(U,W,g,f),t.fillStyle=u.backgroundColor,t.fillRect(O,W+1,g-2,f-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,e,s){const{body:a}=this,{bodySpacing:o,bodyAlign:u,displayColors:d,boxHeight:f,boxWidth:g,boxPadding:v}=s,D=ei(s.bodyFont);let T=D.lineHeight,A=0;const M=Mc(s.rtl,this.x,this.width),W=function(lt){e.fillText(lt,M.x(t.x+A),t.y+T/2),t.y+=T+o},U=M.textAlign(u);let O,R,H,Y,I,j,q;for(e.textAlign=u,e.textBaseline="middle",e.font=D.string,t.x=xf(this,U,s),e.fillStyle=s.bodyColor,Qe(this.beforeBody,W),A=d&&U!=="right"?u==="center"?g/2+v:g+2+v:0,Y=0,j=a.length;Y<j;++Y){for(O=a[Y],R=this.labelTextColors[Y],e.fillStyle=R,Qe(O.before,W),H=O.lines,d&&H.length&&(this._drawColorBox(e,t,Y,M,s),T=Math.max(D.lineHeight,f)),I=0,q=H.length;I<q;++I)W(H[I]),T=D.lineHeight;Qe(O.after,W)}A=0,T=D.lineHeight,Qe(this.afterBody,W),t.y-=o}drawFooter(t,e,s){const a=this.footer,o=a.length;let u,d;if(o){const f=Mc(s.rtl,this.x,this.width);for(t.x=xf(this,s.footerAlign,s),t.y+=s.footerMarginTop,e.textAlign=f.textAlign(s.footerAlign),e.textBaseline="middle",u=ei(s.footerFont),e.fillStyle=s.footerColor,e.font=u.string,d=0;d<o;++d)e.fillText(a[d],f.x(t.x),t.y+u.lineHeight/2),t.y+=u.lineHeight+s.footerSpacing}}drawBackground(t,e,s,a){const{xAlign:o,yAlign:u}=this,{x:d,y:f}=t,{width:g,height:v}=s,{topLeft:D,topRight:T,bottomLeft:A,bottomRight:M}=Zo(a.cornerRadius);e.fillStyle=a.backgroundColor,e.strokeStyle=a.borderColor,e.lineWidth=a.borderWidth,e.beginPath(),e.moveTo(d+D,f),u==="top"&&this.drawCaret(t,e,s,a),e.lineTo(d+g-T,f),e.quadraticCurveTo(d+g,f,d+g,f+T),u==="center"&&o==="right"&&this.drawCaret(t,e,s,a),e.lineTo(d+g,f+v-M),e.quadraticCurveTo(d+g,f+v,d+g-M,f+v),u==="bottom"&&this.drawCaret(t,e,s,a),e.lineTo(d+A,f+v),e.quadraticCurveTo(d,f+v,d,f+v-A),u==="center"&&o==="left"&&this.drawCaret(t,e,s,a),e.lineTo(d,f+D),e.quadraticCurveTo(d,f,d+D,f),e.closePath(),e.fill(),a.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,s=this.$animations,a=s&&s.x,o=s&&s.y;if(a||o){const u=bu[t.position].call(this,this._active,this._eventPosition);if(!u)return;const d=this._size=Jw(this,t),f=Object.assign({},u,this._size),g=Qw(e,t,f),v=tE(t,f,g,e);(a._to!==v.x||o._to!==v.y)&&(this.xAlign=g.xAlign,this.yAlign=g.yAlign,this.width=d.width,this.height=d.height,this.caretX=u.x,this.caretY=u.y,this._resolveAnimations().update(this,v))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(e);const a={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const u=Ri(e.padding),d=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&d&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,a,e),Ux(t,e.textDirection),o.y+=u.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Hx(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const s=this._active,a=t.map(({datasetIndex:d,index:f})=>{const g=this.chart.getDatasetMeta(d);if(!g)throw new Error("Cannot find a dataset at index "+d);return{datasetIndex:d,element:g.data[f],index:f}}),o=!Wd(s,a),u=this._positionChanged(a,e);(o||u)&&(this._active=a,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,s=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,o=this._active||[],u=this._getActiveElements(t,o,e,s),d=this._positionChanged(u,t),f=e||!Wd(u,o)||d;return f&&(this._active=u,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),f}_getActiveElements(t,e,s,a){const o=this.options;if(t.type==="mouseout")return[];if(!a)return e;const u=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&u.reverse(),u}_positionChanged(t,e){const{caretX:s,caretY:a,options:o}=this,u=bu[o.position].call(this,t,e);return u!==!1&&(s!==u.x||a!==u.y)}}om.positioners=bu;var GI={id:"tooltip",_element:om,positioners:bu,afterInit(n,t,e){e&&(n.tooltip=new om({chart:n,options:e}))},beforeUpdate(n,t,e){n.tooltip&&n.tooltip.initialize(e)},reset(n,t,e){n.tooltip&&n.tooltip.initialize(e)},afterDraw(n){const t=n.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(n.notifyPlugins("beforeTooltipDraw",e)===!1)return;t.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",e)}},afterEvent(n,t){if(n.tooltip){const e=t.replay;n.tooltip.handleEvent(t.event,e,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:(n,t)=>t.bodyFont.size,boxWidth:(n,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:{beforeTitle:da,title(n){if(n.length>0){const t=n[0],e=t.chart.data.labels,s=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex<s)return e[t.dataIndex]}return""},afterTitle:da,beforeBody:da,beforeLabel:da,label(n){if(this&&this.options&&this.options.mode==="dataset")return n.label+": "+n.formattedValue||n.formattedValue;let t=n.dataset.label||"";t&&(t+=": ");const e=n.formattedValue;return Ye(e)||(t+=e),t},labelColor(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:da,afterBody:da,beforeFooter:da,footer:da,afterFooter:da}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>n!=="filter"&&n!=="itemSort"&&n!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},KI=Object.freeze({__proto__:null,Decimation:fI,Filler:LI,Legend:RI,SubTitle:VI,Title:BI,Tooltip:GI});const qI=(n,t,e,s)=>(typeof t=="string"?(e=n.push(t)-1,s.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function XI(n,t,e,s){const a=n.indexOf(t);if(a===-1)return qI(n,t,e,s);const o=n.lastIndexOf(t);return a!==o?e:a}const ZI=(n,t)=>n===null?null:yi(Math.round(n),0,t);class wf extends el{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const s=this.getLabels();for(const{index:a,label:o}of e)s[a]===o&&s.splice(a,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Ye(t))return null;const s=this.getLabels();return e=isFinite(e)&&s[e]===t?e:XI(s,t,De(e,t),this._addedLabels),ZI(e,s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:s,max:a}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),e||(a=this.getLabels().length-1)),this.min=s,this.max=a}buildTicks(){const t=this.min,e=this.max,s=this.options.offset,a=[];let o=this.getLabels();o=t===0&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let u=t;u<=e;u++)a.push({value:u});return a}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}wf.id="category",wf.defaults={ticks:{callback:wf.prototype.getLabelForValue}};function JI(n,t){const e=[],{bounds:a,step:o,min:u,max:d,precision:f,count:g,maxTicks:v,maxDigits:D,includeBounds:T}=n,A=o||1,M=v-1,{min:W,max:U}=t,O=!Ye(u),R=!Ye(d),H=!Ye(g),Y=(U-W)/(D+1);let I=rx((U-W)/M/A)*A,j,q,lt,st;if(I<1e-14&&!O&&!R)return[{value:W},{value:U}];st=Math.ceil(U/I)-Math.floor(W/I),st>M&&(I=rx(st*I/M/A)*A),Ye(f)||(j=Math.pow(10,f),I=Math.ceil(I*j)/j),a==="ticks"?(q=Math.floor(W/I)*I,lt=Math.ceil(U/I)*I):(q=W,lt=U),O&&R&&o&&BN((d-u)/o,I/1e3)?(st=Math.round(Math.min((d-u)/I,v)),I=(d-u)/st,q=u,lt=d):H?(q=O?u:q,lt=R?d:lt,st=g-1,I=(lt-q)/st):(st=(lt-q)/I,eu(st,Math.round(st),I/1e3)?st=Math.round(st):st=Math.ceil(st));const yt=Math.max(ox(I),ox(q));j=Math.pow(10,Ye(f)?yt:f),q=Math.round(q*j)/j,lt=Math.round(lt*j)/j;let mt=0;for(O&&(T&&q!==u?(e.push({value:u}),q<u&&mt++,eu(Math.round((q+mt*I)*j)/j,u,iE(u,Y,n))&&mt++):q<u&&mt++);mt<st;++mt)e.push({value:Math.round((q+mt*I)*j)/j});return R&&T&<!==d?e.length&&eu(e[e.length-1].value,d,iE(d,Y,n))?e[e.length-1].value=d:e.push({value:d}):(!R||lt===d)&&e.push({value:lt}),e}function iE(n,t,{horizontal:e,minRotation:s}){const a=er(s),o=(e?Math.sin(a):Math.cos(a))||.001,u=.75*t*(""+n).length;return Math.min(t/o,u)}class Ef extends el{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,e){return Ye(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:s}=this.getUserBounds();let{min:a,max:o}=this;const u=f=>a=e?a:f,d=f=>o=s?o:f;if(t){const f=jr(a),g=jr(o);f<0&&g<0?d(0):f>0&&g>0&&u(0)}if(a===o){let f=1;(o>=Number.MAX_SAFE_INTEGER||a<=Number.MIN_SAFE_INTEGER)&&(f=Math.abs(o*.05)),d(o+f),t||u(a-f)}this.min=a,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:s}=t,a;return s?(a=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),e=e||11),e&&(a=Math.min(e,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const a={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,u=JI(a,o);return t.bounds==="ticks"&&ax(u,this,"value"),t.reverse?(u.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),u}configure(){const t=this.ticks;let e=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const a=(s-e)/Math.max(t.length-1,1)/2;e-=a,s+=a}this._startValue=e,this._endValue=s,this._valueRange=s-e}getLabelForValue(t){return uu(t,this.chart.options.locale,this.options.ticks.format)}}class lm extends Ef{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Un(t)?t:0,this.max=Un(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,s=er(this.options.ticks.minRotation),a=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/a))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}lm.id="linear",lm.defaults={ticks:{callback:lf.formatters.numeric}};function sE(n){return n/Math.pow(10,Math.floor(Zs(n)))===1}function QI(n,t){const e=Math.floor(Zs(t.max)),s=Math.ceil(t.max/Math.pow(10,e)),a=[];let o=qs(n.min,Math.pow(10,Math.floor(Zs(t.min)))),u=Math.floor(Zs(o)),d=Math.floor(o/Math.pow(10,u)),f=u<0?Math.pow(10,Math.abs(u)):1;do a.push({value:o,major:sE(o)}),++d,d===10&&(d=1,++u,f=u>=0?1:f),o=Math.round(d*Math.pow(10,u)*f)/f;while(u<e||u===e&&d<s);const g=qs(n.max,o);return a.push({value:g,major:sE(o)}),a}class cm extends el{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const s=Ef.prototype.parse.apply(this,[t,e]);if(s===0){this._zero=!0;return}return Un(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Un(t)?Math.max(0,t):null,this.max=Un(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let s=this.min,a=this.max;const o=f=>s=t?s:f,u=f=>a=e?a:f,d=(f,g)=>Math.pow(10,Math.floor(Zs(f))+g);s===a&&(s<=0?(o(1),u(10)):(o(d(s,-1)),u(d(a,1)))),s<=0&&o(d(a,-1)),a<=0&&u(d(s,1)),this._zero&&this.min!==this._suggestedMin&&s===d(this.min,0)&&o(d(s,-1)),this.min=s,this.max=a}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},s=QI(e,this);return t.bounds==="ticks"&&ax(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":uu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Zs(t),this._valueRange=Zs(this.max)-Zs(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Zs(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}cm.id="logarithmic",cm.defaults={ticks:{callback:lf.formatters.logarithmic,major:{enabled:!0}}};function um(n){const t=n.ticks;if(t.display&&n.display){const e=Ri(t.backdropPadding);return De(t.font&&t.font.size,Be.font.size)+e.height}return 0}function t2(n,t,e){return e=mn(e)?e:[e],{w:_A(n,t.string,e),h:e.length*t.lineHeight}}function rE(n,t,e,s,a){return n===s||n===a?{start:t-e/2,end:t+e/2}:n<s||n>a?{start:t-e,end:t}:{start:t,end:t+e}}function e2(n){const t={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},e=Object.assign({},t),s=[],a=[],o=n._pointLabels.length,u=n.options.pointLabels,d=u.centerPointLabels?An/o:0;for(let f=0;f<o;f++){const g=u.setContext(n.getPointLabelContext(f));a[f]=g.padding;const v=n.getPointPosition(f,n.drawingArea+a[f],d),D=ei(g.font),T=t2(n.ctx,D,n._pointLabels[f]);s[f]=T;const A=ks(n.getIndexAngle(f)+d),M=Math.round(Ep(A)),W=rE(M,v.x,T.w,0,180),U=rE(M,v.y,T.h,90,270);n2(e,t,A,W,U)}n.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),n._pointLabelItems=i2(n,s,a)}function n2(n,t,e,s,a){const o=Math.abs(Math.sin(e)),u=Math.abs(Math.cos(e));let d=0,f=0;s.start<t.l?(d=(t.l-s.start)/o,n.l=Math.min(n.l,t.l-d)):s.end>t.r&&(d=(s.end-t.r)/o,n.r=Math.max(n.r,t.r+d)),a.start<t.t?(f=(t.t-a.start)/u,n.t=Math.min(n.t,t.t-f)):a.end>t.b&&(f=(a.end-t.b)/u,n.b=Math.max(n.b,t.b+f))}function i2(n,t,e){const s=[],a=n._pointLabels.length,o=n.options,u=um(o)/2,d=n.drawingArea,f=o.pointLabels.centerPointLabels?An/a:0;for(let g=0;g<a;g++){const v=n.getPointPosition(g,d+u+e[g],f),D=Math.round(Ep(ks(v.angle+Yn))),T=t[g],A=a2(v.y,T.h,D),M=s2(D),W=r2(v.x,T.w,M);s.push({x:v.x,y:A,textAlign:M,left:W,top:A,right:W+T.w,bottom:A+T.h})}return s}function s2(n){return n===0||n===180?"center":n<180?"left":"right"}function r2(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function a2(n,t,e){return e===90||e===270?n-=t/2:(e>270||e<90)&&(n-=t),n}function o2(n,t){const{ctx:e,options:{pointLabels:s}}=n;for(let a=t-1;a>=0;a--){const o=s.setContext(n.getPointLabelContext(a)),u=ei(o.font),{x:d,y:f,textAlign:g,left:v,top:D,right:T,bottom:A}=n._pointLabelItems[a],{backdropColor:M}=o;if(!Ye(M)){const W=Zo(o.borderRadius),U=Ri(o.backdropPadding);e.fillStyle=M;const O=v-U.left,R=D-U.top,H=T-v+U.width,Y=A-D+U.height;Object.values(W).some(I=>I!==0)?(e.beginPath(),lu(e,{x:O,y:R,w:H,h:Y,radius:W}),e.fill()):e.fillRect(O,R,H,Y)}Xo(e,n._pointLabels[a],d,f+u.lineHeight/2,u,{color:o.color,textAlign:g,textBaseline:"middle"})}}function aE(n,t,e,s){const{ctx:a}=n;if(e)a.arc(n.xCenter,n.yCenter,t,0,an);else{let o=n.getPointPosition(0,t);a.moveTo(o.x,o.y);for(let u=1;u<s;u++)o=n.getPointPosition(u,t),a.lineTo(o.x,o.y)}}function l2(n,t,e,s){const a=n.ctx,o=t.circular,{color:u,lineWidth:d}=t;!o&&!s||!u||!d||e<0||(a.save(),a.strokeStyle=u,a.lineWidth=d,a.setLineDash(t.borderDash),a.lineDashOffset=t.borderDashOffset,a.beginPath(),aE(n,e,o,s),a.closePath(),a.stroke(),a.restore())}function c2(n,t,e){return $o(n,{label:e,index:t,type:"pointLabel"})}class vu extends Ef{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Ri(um(this.options)/2),e=this.width=this.maxWidth-t.width,s=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+s/2+t.top),this.drawingArea=Math.floor(Math.min(e,s)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Un(t)&&!isNaN(t)?t:0,this.max=Un(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/um(this.options))}generateTickLabels(t){Ef.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,s)=>{const a=_n(this.options.pointLabels.callback,[e,s],this);return a||a===0?a:""}).filter((e,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?e2(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,s,a){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((s-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,s,a))}getIndexAngle(t){const e=an/(this._pointLabels.length||1),s=this.options.startAngle||0;return ks(t*e+er(s))}getDistanceFromCenterForValue(t){if(Ye(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Ye(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const s=e[t];return c2(this.getContext(),t,s)}}getPointPosition(t,e,s=0){const a=this.getIndexAngle(t)-Yn+s;return{x:Math.cos(a)*e+this.xCenter,y:Math.sin(a)*e+this.yCenter,angle:a}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:s,right:a,bottom:o}=this._pointLabelItems[t];return{left:e,top:s,right:a,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const s=this.ctx;s.save(),s.beginPath(),aE(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),s.closePath(),s.fillStyle=t,s.fill(),s.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:s,grid:a}=e,o=this._pointLabels.length;let u,d,f;if(e.pointLabels.display&&o2(this,o),a.display&&this.ticks.forEach((g,v)=>{if(v!==0){d=this.getDistanceFromCenterForValue(g.value);const D=a.setContext(this.getContext(v-1));l2(this,D,d,o)}}),s.display){for(t.save(),u=o-1;u>=0;u--){const g=s.setContext(this.getPointLabelContext(u)),{color:v,lineWidth:D}=g;!D||!v||(t.lineWidth=D,t.strokeStyle=v,t.setLineDash(g.borderDash),t.lineDashOffset=g.borderDashOffset,d=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),f=this.getPointPosition(u,d),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(f.x,f.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,s=e.ticks;if(!s.display)return;const a=this.getIndexAngle(0);let o,u;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((d,f)=>{if(f===0&&!e.reverse)return;const g=s.setContext(this.getContext(f)),v=ei(g.font);if(o=this.getDistanceFromCenterForValue(this.ticks[f].value),g.showLabelBackdrop){t.font=v.string,u=t.measureText(d.label).width,t.fillStyle=g.backdropColor;const D=Ri(g.backdropPadding);t.fillRect(-u/2-D.left,-o-v.size/2-D.top,u+D.width,v.size+D.height)}Xo(t,d.label,0,-o,v,{color:g.color})}),t.restore()}drawTitle(){}}vu.id="radialLinear",vu.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:lf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(n){return n},padding:5,centerPointLabels:!1}},vu.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},vu.descriptors={angleLines:{_fallback:"grid"}};const Sf={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}},ms=Object.keys(Sf);function u2(n,t){return n-t}function oE(n,t){if(Ye(t))return null;const e=n._adapter,{parser:s,round:a,isoWeekday:o}=n._parseOpts;let u=t;return typeof s=="function"&&(u=s(u)),Un(u)||(u=typeof s=="string"?e.parse(u,s):e.parse(u)),u===null?null:(a&&(u=a==="week"&&(Sc(o)||o===!0)?e.startOf(u,"isoWeek",o):e.startOf(u,a)),+u)}function lE(n,t,e,s){const a=ms.length;for(let o=ms.indexOf(n);o<a-1;++o){const u=Sf[ms[o]],d=u.steps?u.steps:Number.MAX_SAFE_INTEGER;if(u.common&&Math.ceil((e-t)/(d*u.size))<=s)return ms[o]}return ms[a-1]}function h2(n,t,e,s,a){for(let o=ms.length-1;o>=ms.indexOf(e);o--){const u=ms[o];if(Sf[u].common&&n._adapter.diff(a,s,u)>=t-1)return u}return ms[e?ms.indexOf(e):0]}function d2(n){for(let t=ms.indexOf(n)+1,e=ms.length;t<e;++t)if(Sf[ms[t]].common)return ms[t]}function cE(n,t,e){if(!e)n[t]=!0;else if(e.length){const{lo:s,hi:a}=Dp(e,t),o=e[s]>=t?e[s]:e[a];n[o]=!0}}function f2(n,t,e,s){const a=n._adapter,o=+a.startOf(t[0].value,s),u=t[t.length-1].value;let d,f;for(d=o;d<=u;d=+a.add(d,1,s))f=e[d],f>=0&&(t[f].major=!0);return t}function uE(n,t,e){const s=[],a={},o=t.length;let u,d;for(u=0;u<o;++u)d=t[u],a[d]=u,s.push({value:d,major:!1});return o===0||!e?s:f2(n,s,a,e)}class ku extends el{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const s=t.time||(t.time={}),a=this._adapter=new QO._date(t.adapters.date);a.init(e),Qc(s.displayFormats,a.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:oE(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,s=t.time.unit||"day";let{min:a,max:o,minDefined:u,maxDefined:d}=this.getUserBounds();function f(g){!u&&!isNaN(g.min)&&(a=Math.min(a,g.min)),!d&&!isNaN(g.max)&&(o=Math.max(o,g.max))}(!u||!d)&&(f(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&f(this.getMinMax(!1))),a=Un(a)&&!isNaN(a)?a:+e.startOf(Date.now(),s),o=Un(o)&&!isNaN(o)?o:+e.endOf(Date.now(),s)+1,this.min=Math.min(a,o-1),this.max=Math.max(a+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],s=t[t.length-1]),{min:e,max:s}}buildTicks(){const t=this.options,e=t.time,s=t.ticks,a=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const o=this.min,u=this.max,d=WN(a,o,u);return this._unit=e.unit||(s.autoSkip?lE(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):h2(this,d.length,e.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:d2(this._unit),this.initOffsets(a),t.reverse&&d.reverse(),uE(this,d,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e=0,s=0,a,o;this.options.offset&&t.length&&(a=this.getDecimalForValue(t[0]),t.length===1?e=1-a:e=(this.getDecimalForValue(t[1])-a)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const u=t.length<3?.5:.25;e=yi(e,0,u),s=yi(s,0,u),this._offsets={start:e,end:s,factor:1/(e+1+s)}}_generate(){const t=this._adapter,e=this.min,s=this.max,a=this.options,o=a.time,u=o.unit||lE(o.minUnit,e,s,this._getLabelCapacity(e)),d=De(o.stepSize,1),f=u==="week"?o.isoWeekday:!1,g=Sc(f)||f===!0,v={};let D=e,T,A;if(g&&(D=+t.startOf(D,"isoWeek",f)),D=+t.startOf(D,g?"day":u),t.diff(s,e,u)>1e5*d)throw new Error(e+" and "+s+" are too far apart with stepSize of "+d+" "+u);const M=a.ticks.source==="data"&&this.getDataTimestamps();for(T=D,A=0;T<s;T=+t.add(T,d,u),A++)cE(v,T,M);return(T===s||a.bounds==="ticks"||A===1)&&cE(v,T,M),Object.keys(v).sort((W,U)=>W-U).map(W=>+W)}getLabelForValue(t){const e=this._adapter,s=this.options.time;return s.tooltipFormat?e.format(t,s.tooltipFormat):e.format(t,s.displayFormats.datetime)}_tickFormatFunction(t,e,s,a){const o=this.options,u=o.time.displayFormats,d=this._unit,f=this._majorUnit,g=d&&u[d],v=f&&u[f],D=s[e],T=f&&v&&D&&D.major,A=this._adapter.format(t,a||(T?v:g)),M=o.ticks.callback;return M?_n(M,[A,e,s],this):A}generateTickLabels(t){let e,s,a;for(e=0,s=t.length;e<s;++e)a=t[e],a.label=this._tickFormatFunction(a.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+s)*e.factor)}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,s=this.ctx.measureText(t).width,a=er(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(a),u=Math.sin(a),d=this._resolveTickFontOptions(0).size;return{w:s*o+d*u,h:s*u+d*o}}_getLabelCapacity(t){const e=this.options.time,s=e.displayFormats,a=s[e.unit]||s.millisecond,o=this._tickFormatFunction(t,0,uE(this,[t],this._majorUnit),a),u=this._getLabelSize(o),d=Math.floor(this.isHorizontal()?this.width/u.w:this.height/u.h)-1;return d>0?d:1}getDataTimestamps(){let t=this._cache.data||[],e,s;if(t.length)return t;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(e=0,s=a.length;e<s;++e)t=t.concat(a[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let e,s;if(t.length)return t;const a=this.getLabels();for(e=0,s=a.length;e<s;++e)t.push(oE(this,a[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return hx(t.sort(u2))}}ku.id="time",ku.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function Df(n,t,e){let s=0,a=n.length-1,o,u,d,f;e?(t>=n[s].pos&&t<=n[a].pos&&({lo:s,hi:a}=pa(n,"pos",t)),{pos:o,time:d}=n[s],{pos:u,time:f}=n[a]):(t>=n[s].time&&t<=n[a].time&&({lo:s,hi:a}=pa(n,"time",t)),{time:o,pos:d}=n[s],{time:u,pos:f}=n[a]);const g=u-o;return g?d+(f-d)*(t-o)/g:d}class hm extends ku{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Df(e,this.min),this._tableRange=Df(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:s}=this,a=[],o=[];let u,d,f,g,v;for(u=0,d=t.length;u<d;++u)g=t[u],g>=e&&g<=s&&a.push(g);if(a.length<2)return[{time:e,pos:0},{time:s,pos:1}];for(u=0,d=a.length;u<d;++u)v=a[u+1],f=a[u-1],g=a[u],Math.round((v+f)/2)!==g&&o.push({time:g,pos:u/(d-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),s=this.getLabelTimestamps();return e.length&&s.length?t=this.normalize(e.concat(s)):t=e.length?e:s,t=this._cache.all=t,t}getDecimalForValue(t){return(Df(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return Df(this._table,s*this._tableRange+this._minPos,!0)}}hm.id="timeseries",hm.defaults=ku.defaults;var p2=Object.freeze({__proto__:null,CategoryScale:wf,LinearScale:lm,LogarithmicScale:cm,RadialLinearScale:vu,TimeScale:ku,TimeSeriesScale:hm});const m2=[JO,cI,KI,p2];var xu=(n=>(n.Pending="pending",n.Canceled="canceled",n.Processed="processed",n))(xu||{}),wu=(n=>(n.Finished="finished",n.Refunded="refunded",n.Unpaid="unpaid",n))(wu||{}),bi=(n=>(n.Ordered="ordered",n.Ready="ready",n.PartiallyComplete="partial",n.InProgress="in-progress",n.Canceled="canceled",n.Rejected="rejected",n))(bi||{}),hE=(n=>(n.Default="default",n.GXNT1="GXNT1",n.HPV="HPV",n.STD="STD",n))(hE||{}),qr=(n=>(n.Abnormal="A",n.LowerAbnormal="L",n.Panic="P",n.Normal="N",n))(qr||{}),dE=(n=>(n.SampleCollected="SampleCollected",n.SampleReceived="SampleReceived",n.YetToTransfer="Yet to Transfer",n.Completed="Completed",n.Cancel="Cancel",n.Approve="Approve",n))(dE||{}),fE=(n=>(n.Numberic="numeric",n.Text="text",n.XML="XML",n))(fE||{}),pE=(n=>(n.Normal="normal",n.Attention="attention",n.Critical="critical",n))(pE||{}),mE=(n=>(n.GreaterThan=">",n.GreaterThanOrEqualTo="\u2265",n.LessThan="<",n.LessThanOrEqualTo="\u2264",n.BTW="btw",n.Txt="txt",n))(mE||{}),Oc=(n=>(n.Male="Male",n.Female="Female",n))(Oc||{}),_s=(n=>(n.Morning="morning",n.Afternoon="afternoon",n.Evening="evening",n))(_s||{}),il=[],_2=function(){return il.some(function(n){return n.activeTargets.length>0})},g2=function(){return il.some(function(n){return n.skippedTargets.length>0})},_E="ResizeObserver loop completed with undelivered notifications.",y2=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:_E}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=_E),window.dispatchEvent(n)},Eu;(function(n){n.BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Eu||(Eu={}));var sl=function(n){return Object.freeze(n)},b2=function(){function n(t,e){this.inlineSize=t,this.blockSize=e,sl(this)}return n}(),gE=function(){function n(t,e,s,a){return this.x=t,this.y=e,this.width=s,this.height=a,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,sl(this)}return n.prototype.toJSON=function(){var t=this,e=t.x,s=t.y,a=t.top,o=t.right,u=t.bottom,d=t.left,f=t.width,g=t.height;return{x:e,y:s,top:a,right:o,bottom:u,left:d,width:f,height:g}},n.fromRect=function(t){return new n(t.x,t.y,t.width,t.height)},n}(),dm=function(n){return n instanceof SVGElement&&"getBBox"in n},yE=function(n){if(dm(n)){var t=n.getBBox(),e=t.width,s=t.height;return!e&&!s}var a=n,o=a.offsetWidth,u=a.offsetHeight;return!(o||u||n.getClientRects().length)},bE=function(n){var t;if(n instanceof Element)return!0;var e=(t=n==null?void 0:n.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(e&&n instanceof e.Element)},v2=function(n){switch(n.tagName){case"INPUT":if(n.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Su=typeof window<"u"?window:{},Cf=new WeakMap,vE=/auto|scroll/,k2=/^tb|vertical/,x2=/msie|trident/i.test(Su.navigator&&Su.navigator.userAgent),Xr=function(n){return parseFloat(n||"0")},Lc=function(n,t,e){return n===void 0&&(n=0),t===void 0&&(t=0),e===void 0&&(e=!1),new b2((e?t:n)||0,(e?n:t)||0)},kE=sl({devicePixelContentBoxSize:Lc(),borderBoxSize:Lc(),contentBoxSize:Lc(),contentRect:new gE(0,0,0,0)}),xE=function(n,t){if(t===void 0&&(t=!1),Cf.has(n)&&!t)return Cf.get(n);if(yE(n))return Cf.set(n,kE),kE;var e=getComputedStyle(n),s=dm(n)&&n.ownerSVGElement&&n.getBBox(),a=!x2&&e.boxSizing==="border-box",o=k2.test(e.writingMode||""),u=!s&&vE.test(e.overflowY||""),d=!s&&vE.test(e.overflowX||""),f=s?0:Xr(e.paddingTop),g=s?0:Xr(e.paddingRight),v=s?0:Xr(e.paddingBottom),D=s?0:Xr(e.paddingLeft),T=s?0:Xr(e.borderTopWidth),A=s?0:Xr(e.borderRightWidth),M=s?0:Xr(e.borderBottomWidth),W=s?0:Xr(e.borderLeftWidth),U=D+g,O=f+v,R=W+A,H=T+M,Y=d?n.offsetHeight-H-n.clientHeight:0,I=u?n.offsetWidth-R-n.clientWidth:0,j=a?U+R:0,q=a?O+H:0,lt=s?s.width:Xr(e.width)-j-I,st=s?s.height:Xr(e.height)-q-Y,yt=lt+U+I+R,mt=st+O+Y+H,wt=sl({devicePixelContentBoxSize:Lc(Math.round(lt*devicePixelRatio),Math.round(st*devicePixelRatio),o),borderBoxSize:Lc(yt,mt,o),contentBoxSize:Lc(lt,st,o),contentRect:new gE(D,f,lt,st)});return Cf.set(n,wt),wt},wE=function(n,t,e){var s=xE(n,e),a=s.borderBoxSize,o=s.contentBoxSize,u=s.devicePixelContentBoxSize;switch(t){case Eu.DEVICE_PIXEL_CONTENT_BOX:return u;case Eu.BORDER_BOX:return a;default:return o}},w2=function(){function n(t){var e=xE(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=sl([e.borderBoxSize]),this.contentBoxSize=sl([e.contentBoxSize]),this.devicePixelContentBoxSize=sl([e.devicePixelContentBoxSize])}return n}(),EE=function(n){if(yE(n))return 1/0;for(var t=0,e=n.parentNode;e;)t+=1,e=e.parentNode;return t},E2=function(){var n=1/0,t=[];il.forEach(function(u){if(u.activeTargets.length!==0){var d=[];u.activeTargets.forEach(function(g){var v=new w2(g.target),D=EE(g.target);d.push(v),g.lastReportedSize=wE(g.target,g.observedBox),D<n&&(n=D)}),t.push(function(){u.callback.call(u.observer,d,u.observer)}),u.activeTargets.splice(0,u.activeTargets.length)}});for(var e=0,s=t;e<s.length;e++){var a=s[e];a()}return n},SE=function(n){il.forEach(function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach(function(a){a.isActive()&&(EE(a.target)>n?e.activeTargets.push(a):e.skippedTargets.push(a))})})},S2=function(){var n=0;for(SE(n);_2();)n=E2(),SE(n);return g2()&&y2(),n>0},fm,DE=[],D2=function(){return DE.splice(0).forEach(function(n){return n()})},C2=function(n){if(!fm){var t=0,e=document.createTextNode(""),s={characterData:!0};new MutationObserver(function(){return D2()}).observe(e,s),fm=function(){e.textContent="".concat(t?t--:t++)}}DE.push(n),fm()},T2=function(n){C2(function(){requestAnimationFrame(n)})},Tf=0,M2=function(){return!!Tf},N2=250,A2={attributes:!0,characterData:!0,childList:!0,subtree:!0},CE=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],TE=function(n){return n===void 0&&(n=0),Date.now()+n},pm=!1,O2=function(){function n(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return n.prototype.run=function(t){var e=this;if(t===void 0&&(t=N2),!pm){pm=!0;var s=TE(t);T2(function(){var a=!1;try{a=S2()}finally{if(pm=!1,t=s-TE(),!M2())return;a?e.run(1e3):t>0?e.run(t):e.start()}})}},n.prototype.schedule=function(){this.stop(),this.run()},n.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,A2)};document.body?e():Su.addEventListener("DOMContentLoaded",e)},n.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),CE.forEach(function(e){return Su.addEventListener(e,t.listener,!0)}))},n.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),CE.forEach(function(e){return Su.removeEventListener(e,t.listener,!0)}),this.stopped=!0)},n}(),mm=new O2,ME=function(n){!Tf&&n>0&&mm.start(),Tf+=n,!Tf&&mm.stop()},L2=function(n){return!dm(n)&&!v2(n)&&getComputedStyle(n).display==="inline"},I2=function(){function n(t,e){this.target=t,this.observedBox=e||Eu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var t=wE(this.target,this.observedBox,!0);return L2(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},n}(),P2=function(){function n(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e}return n}(),Mf=new WeakMap,NE=function(n,t){for(var e=0;e<n.length;e+=1)if(n[e].target===t)return e;return-1},Nf=function(){function n(){}return n.connect=function(t,e){var s=new P2(t,e);Mf.set(t,s)},n.observe=function(t,e,s){var a=Mf.get(t),o=a.observationTargets.length===0;NE(a.observationTargets,e)<0&&(o&&il.push(a),a.observationTargets.push(new I2(e,s&&s.box)),ME(1),mm.schedule())},n.unobserve=function(t,e){var s=Mf.get(t),a=NE(s.observationTargets,e),o=s.observationTargets.length===1;a>=0&&(o&&il.splice(il.indexOf(s),1),s.observationTargets.splice(a,1),ME(-1))},n.disconnect=function(t){var e=this,s=Mf.get(t);s.observationTargets.slice().forEach(function(a){return e.unobserve(t,a.target)}),s.activeTargets.splice(0,s.activeTargets.length)},n}(),R2=function(){function n(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Nf.connect(this,t)}return n.prototype.observe=function(t,e){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bE(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Nf.observe(this,t,e)},n.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bE(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Nf.unobserve(this,t)},n.prototype.disconnect=function(){Nf.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}();const AE=n=>(m.pushScopeId("data-v-887ae7b1"),n=n(),m.popScopeId(),n),F2={class:"trend-detail"},B2={class:"chart-wrapper psc-p-4 psc-rounded-xl"},V2={class:"psc-flex psc-items-center"},$2={class:"psc-w-1/2 psc-text-black/[0.85]"},Y2={class:"psc-text-xl psc-font-semibold"},W2={class:"psc-w-1/2 psc-flex psc-justify-end psc-space-x-3"},U2=AE(()=>m.createElementVNode("i",{class:"dgic-expand-left psc-text-2xl -psc-ml-0.5 psc-text-black/[0.85]"},null,-1)),H2=AE(()=>m.createElementVNode("i",{class:"dgic-expand-right psc-text-2xl -psc-mr-0.5 psc-text-black/[0.85]"},null,-1)),z2={class:"psc-px-6 psc-mt-6"},j2={class:"test-explaination psc-bg-[#e6f0fe] psc-p-4 psc-rounded-lg psc-mt-8"},G2={class:"psc-font-semibold psc-text-black/[0.85]"},K2={class:"psc-text-sm psc-text-black/[0.85] psc-mt-2"},q2=m.defineComponent({__name:"TestResultHistoryDetail",props:{historyData:null},setup(n){const t=n,{t:e}=Xn(),{formatMonthYear:s}=Zc();let a;gf.register(...m2);const o=m.ref(null),u=m.computed(()=>Array.isArray(t.historyData.charts)?t.historyData.charts:Object.keys(t.historyData.charts).map(st=>t.historyData.charts[+st])),d=m.computed(()=>Math.ceil(u.value.length/f.value.size)),f=m.ref({no:0,size:6}),g=m.computed(()=>({type:"line",borderColor:"rgba(0, 0, 0, 0.6)",borderWidth:2,data:v.value,pointRadius:4,pointHitRadius:4,pointBackgroundColor:D.value,pointBorderColor:D.value,tension:.4})),v=m.computed(()=>T.value.map(st=>st.value)),D=m.computed(()=>T.value.map(st=>U(st))),T=m.ref([]),A=m.ref([]),M=m.computed(()=>d.value>1),W=st=>st.slice(f.value.no*f.value.size,f.value.no*f.value.size+f.value.size),U=st=>({[qr.LowerAbnormal]:"#d6a700",[qr.Abnormal]:"#e16c00",[qr.Panic]:"#ec3741",[qr.Normal]:"#00a86b"})[st.is_abnormal]||"#d2dee8",O=st=>{const yt={[qr.LowerAbnormal]:e("psc.test_result_low"),[qr.Abnormal]:e("psc.test_result_high"),[qr.Panic]:e("psc.test_result_critical"),[qr.Normal]:e("psc.test_result_normal")};return yt[st.is_abnormal]?`${st.original_test_value} ${t.historyData.uom_code}
|
|
97
|
+
`):n}function $I(n,t){const{element:e,datasetIndex:s,index:a}=t,o=n.getDatasetMeta(s).controller,{label:u,value:d}=o.getLabelAndValue(a);return{chart:n,label:u,parsed:o.getParsed(a),raw:n.data.datasets[s].data[a],formattedValue:d,dataset:o.getDataset(),dataIndex:a,datasetIndex:s,element:e}}function Jw(n,t){const e=n.chart.ctx,{body:s,footer:a,title:o}=n,{boxWidth:u,boxHeight:d}=t,f=ei(t.bodyFont),g=ei(t.titleFont),v=ei(t.footerFont),D=o.length,T=a.length,A=s.length,M=Ri(t.padding);let W=M.height,U=0,O=s.reduce((Y,I)=>Y+I.before.length+I.lines.length+I.after.length,0);if(O+=n.beforeBody.length+n.afterBody.length,D&&(W+=D*g.lineHeight+(D-1)*t.titleSpacing+t.titleMarginBottom),O){const Y=t.displayColors?Math.max(d,f.lineHeight):f.lineHeight;W+=A*Y+(O-A)*f.lineHeight+(O-1)*t.bodySpacing}T&&(W+=t.footerMarginTop+T*v.lineHeight+(T-1)*t.footerSpacing);let R=0;const H=function(Y){U=Math.max(U,e.measureText(Y).width+R)};return e.save(),e.font=g.string,Qe(n.title,H),e.font=f.string,Qe(n.beforeBody.concat(n.afterBody),H),R=t.displayColors?u+2+t.boxPadding:0,Qe(s,Y=>{Qe(Y.before,H),Qe(Y.lines,H),Qe(Y.after,H)}),R=0,e.font=v.string,Qe(n.footer,H),e.restore(),U+=M.width,{width:U,height:W}}function YI(n,t){const{y:e,height:s}=t;return e<s/2?"top":e>n.height-s/2?"bottom":"center"}function WI(n,t,e,s){const{x:a,width:o}=s,u=e.caretSize+e.caretPadding;if(n==="left"&&a+o+u>t.width||n==="right"&&a-o-u<0)return!0}function UI(n,t,e,s){const{x:a,width:o}=e,{width:u,chartArea:{left:d,right:f}}=n;let g="center";return s==="center"?g=a<=(d+f)/2?"left":"right":a<=o/2?g="left":a>=u-o/2&&(g="right"),WI(g,n,t,e)&&(g="center"),g}function Qw(n,t,e){const s=e.yAlign||t.yAlign||YI(n,e);return{xAlign:e.xAlign||t.xAlign||UI(n,t,e,s),yAlign:s}}function HI(n,t){let{x:e,width:s}=n;return t==="right"?e-=s:t==="center"&&(e-=s/2),e}function zI(n,t,e){let{y:s,height:a}=n;return t==="top"?s+=e:t==="bottom"?s-=a+e:s-=a/2,s}function tE(n,t,e,s){const{caretSize:a,caretPadding:o,cornerRadius:u}=n,{xAlign:d,yAlign:f}=e,g=a+o,{topLeft:v,topRight:D,bottomLeft:T,bottomRight:A}=Zo(u);let M=HI(t,d);const W=zI(t,f,g);return f==="center"?d==="left"?M+=g:d==="right"&&(M-=g):d==="left"?M-=Math.max(v,T)+a:d==="right"&&(M+=Math.max(D,A)+a),{x:yi(M,0,s.width-t.width),y:yi(W,0,s.height-t.height)}}function xf(n,t,e){const s=Ri(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-s.right:n.x+s.left}function eE(n){return Kr([],ga(n))}function jI(n,t,e){return $o(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function nE(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}class om extends ir{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||t._chart,this._chart=this.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 e=this.chart,s=this.options.setContext(this.getContext()),a=s.enabled&&e.options.animation&&s.animations,o=new Jx(this.chart,a);return a._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=jI(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:s}=e,a=s.beforeTitle.apply(this,[t]),o=s.title.apply(this,[t]),u=s.afterTitle.apply(this,[t]);let d=[];return d=Kr(d,ga(a)),d=Kr(d,ga(o)),d=Kr(d,ga(u)),d}getBeforeBody(t,e){return eE(e.callbacks.beforeBody.apply(this,[t]))}getBody(t,e){const{callbacks:s}=e,a=[];return Qe(t,o=>{const u={before:[],lines:[],after:[]},d=nE(s,o);Kr(u.before,ga(d.beforeLabel.call(this,o))),Kr(u.lines,d.label.call(this,o)),Kr(u.after,ga(d.afterLabel.call(this,o))),a.push(u)}),a}getAfterBody(t,e){return eE(e.callbacks.afterBody.apply(this,[t]))}getFooter(t,e){const{callbacks:s}=e,a=s.beforeFooter.apply(this,[t]),o=s.footer.apply(this,[t]),u=s.afterFooter.apply(this,[t]);let d=[];return d=Kr(d,ga(a)),d=Kr(d,ga(o)),d=Kr(d,ga(u)),d}_createItems(t){const e=this._active,s=this.chart.data,a=[],o=[],u=[];let d=[],f,g;for(f=0,g=e.length;f<g;++f)d.push($I(this.chart,e[f]));return t.filter&&(d=d.filter((v,D,T)=>t.filter(v,D,T,s))),t.itemSort&&(d=d.sort((v,D)=>t.itemSort(v,D,s))),Qe(d,v=>{const D=nE(t.callbacks,v);a.push(D.labelColor.call(this,v)),o.push(D.labelPointStyle.call(this,v)),u.push(D.labelTextColor.call(this,v))}),this.labelColors=a,this.labelPointStyles=o,this.labelTextColors=u,this.dataPoints=d,d}update(t,e){const s=this.options.setContext(this.getContext()),a=this._active;let o,u=[];if(!a.length)this.opacity!==0&&(o={opacity:0});else{const d=bu[s.position].call(this,a,this._eventPosition);u=this._createItems(s),this.title=this.getTitle(u,s),this.beforeBody=this.getBeforeBody(u,s),this.body=this.getBody(u,s),this.afterBody=this.getAfterBody(u,s),this.footer=this.getFooter(u,s);const f=this._size=Jw(this,s),g=Object.assign({},d,f),v=Qw(this.chart,s,g),D=tE(s,g,v,this.chart);this.xAlign=v.xAlign,this.yAlign=v.yAlign,o={opacity:1,x:D.x,y:D.y,width:f.width,height:f.height,caretX:d.x,caretY:d.y}}this._tooltipItems=u,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&s.external&&s.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,s,a){const o=this.getCaretPosition(t,s,a);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,s){const{xAlign:a,yAlign:o}=this,{caretSize:u,cornerRadius:d}=s,{topLeft:f,topRight:g,bottomLeft:v,bottomRight:D}=Zo(d),{x:T,y:A}=t,{width:M,height:W}=e;let U,O,R,H,Y,I;return o==="center"?(Y=A+W/2,a==="left"?(U=T,O=U-u,H=Y+u,I=Y-u):(U=T+M,O=U+u,H=Y-u,I=Y+u),R=U):(a==="left"?O=T+Math.max(f,v)+u:a==="right"?O=T+M-Math.max(g,D)-u:O=this.caretX,o==="top"?(H=A,Y=H-u,U=O-u,R=O+u):(H=A+W,Y=H+u,U=O+u,R=O-u),I=H),{x1:U,x2:O,x3:R,y1:H,y2:Y,y3:I}}drawTitle(t,e,s){const a=this.title,o=a.length;let u,d,f;if(o){const g=Mc(s.rtl,this.x,this.width);for(t.x=xf(this,s.titleAlign,s),e.textAlign=g.textAlign(s.titleAlign),e.textBaseline="middle",u=ei(s.titleFont),d=s.titleSpacing,e.fillStyle=s.titleColor,e.font=u.string,f=0;f<o;++f)e.fillText(a[f],g.x(t.x),t.y+u.lineHeight/2),t.y+=u.lineHeight+d,f+1===o&&(t.y+=s.titleMarginBottom-d)}}_drawColorBox(t,e,s,a,o){const u=this.labelColors[s],d=this.labelPointStyles[s],{boxHeight:f,boxWidth:g,boxPadding:v}=o,D=ei(o.bodyFont),T=xf(this,"left",o),A=a.x(T),M=f<D.lineHeight?(D.lineHeight-f)/2:0,W=e.y+M;if(o.usePointStyle){const U={radius:Math.min(g,f)/2,pointStyle:d.pointStyle,rotation:d.rotation,borderWidth:1},O=a.leftForLtr(A,g)+g/2,R=W+f/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,Rp(t,U,O,R),t.strokeStyle=u.borderColor,t.fillStyle=u.backgroundColor,Rp(t,U,O,R)}else{t.lineWidth=Re(u.borderWidth)?Math.max(...Object.values(u.borderWidth)):u.borderWidth||1,t.strokeStyle=u.borderColor,t.setLineDash(u.borderDash||[]),t.lineDashOffset=u.borderDashOffset||0;const U=a.leftForLtr(A,g-v),O=a.leftForLtr(a.xPlus(A,1),g-v-2),R=Zo(u.borderRadius);Object.values(R).some(H=>H!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,lu(t,{x:U,y:W,w:g,h:f,radius:R}),t.fill(),t.stroke(),t.fillStyle=u.backgroundColor,t.beginPath(),lu(t,{x:O,y:W+1,w:g-2,h:f-2,radius:R}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(U,W,g,f),t.strokeRect(U,W,g,f),t.fillStyle=u.backgroundColor,t.fillRect(O,W+1,g-2,f-2))}t.fillStyle=this.labelTextColors[s]}drawBody(t,e,s){const{body:a}=this,{bodySpacing:o,bodyAlign:u,displayColors:d,boxHeight:f,boxWidth:g,boxPadding:v}=s,D=ei(s.bodyFont);let T=D.lineHeight,A=0;const M=Mc(s.rtl,this.x,this.width),W=function(lt){e.fillText(lt,M.x(t.x+A),t.y+T/2),t.y+=T+o},U=M.textAlign(u);let O,R,H,Y,I,j,q;for(e.textAlign=u,e.textBaseline="middle",e.font=D.string,t.x=xf(this,U,s),e.fillStyle=s.bodyColor,Qe(this.beforeBody,W),A=d&&U!=="right"?u==="center"?g/2+v:g+2+v:0,Y=0,j=a.length;Y<j;++Y){for(O=a[Y],R=this.labelTextColors[Y],e.fillStyle=R,Qe(O.before,W),H=O.lines,d&&H.length&&(this._drawColorBox(e,t,Y,M,s),T=Math.max(D.lineHeight,f)),I=0,q=H.length;I<q;++I)W(H[I]),T=D.lineHeight;Qe(O.after,W)}A=0,T=D.lineHeight,Qe(this.afterBody,W),t.y-=o}drawFooter(t,e,s){const a=this.footer,o=a.length;let u,d;if(o){const f=Mc(s.rtl,this.x,this.width);for(t.x=xf(this,s.footerAlign,s),t.y+=s.footerMarginTop,e.textAlign=f.textAlign(s.footerAlign),e.textBaseline="middle",u=ei(s.footerFont),e.fillStyle=s.footerColor,e.font=u.string,d=0;d<o;++d)e.fillText(a[d],f.x(t.x),t.y+u.lineHeight/2),t.y+=u.lineHeight+s.footerSpacing}}drawBackground(t,e,s,a){const{xAlign:o,yAlign:u}=this,{x:d,y:f}=t,{width:g,height:v}=s,{topLeft:D,topRight:T,bottomLeft:A,bottomRight:M}=Zo(a.cornerRadius);e.fillStyle=a.backgroundColor,e.strokeStyle=a.borderColor,e.lineWidth=a.borderWidth,e.beginPath(),e.moveTo(d+D,f),u==="top"&&this.drawCaret(t,e,s,a),e.lineTo(d+g-T,f),e.quadraticCurveTo(d+g,f,d+g,f+T),u==="center"&&o==="right"&&this.drawCaret(t,e,s,a),e.lineTo(d+g,f+v-M),e.quadraticCurveTo(d+g,f+v,d+g-M,f+v),u==="bottom"&&this.drawCaret(t,e,s,a),e.lineTo(d+A,f+v),e.quadraticCurveTo(d,f+v,d,f+v-A),u==="center"&&o==="left"&&this.drawCaret(t,e,s,a),e.lineTo(d,f+D),e.quadraticCurveTo(d,f,d+D,f),e.closePath(),e.fill(),a.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,s=this.$animations,a=s&&s.x,o=s&&s.y;if(a||o){const u=bu[t.position].call(this,this._active,this._eventPosition);if(!u)return;const d=this._size=Jw(this,t),f=Object.assign({},u,this._size),g=Qw(e,t,f),v=tE(t,f,g,e);(a._to!==v.x||o._to!==v.y)&&(this.xAlign=g.xAlign,this.yAlign=g.yAlign,this.width=d.width,this.height=d.height,this.caretX=u.x,this.caretY=u.y,this._resolveAnimations().update(this,v))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let s=this.opacity;if(!s)return;this._updateAnimationTarget(e);const a={width:this.width,height:this.height},o={x:this.x,y:this.y};s=Math.abs(s)<.001?0:s;const u=Ri(e.padding),d=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&d&&(t.save(),t.globalAlpha=s,this.drawBackground(o,t,a,e),Ux(t,e.textDirection),o.y+=u.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Hx(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const s=this._active,a=t.map(({datasetIndex:d,index:f})=>{const g=this.chart.getDatasetMeta(d);if(!g)throw new Error("Cannot find a dataset at index "+d);return{datasetIndex:d,element:g.data[f],index:f}}),o=!Wd(s,a),u=this._positionChanged(a,e);(o||u)&&(this._active=a,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,s=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const a=this.options,o=this._active||[],u=this._getActiveElements(t,o,e,s),d=this._positionChanged(u,t),f=e||!Wd(u,o)||d;return f&&(this._active=u,(a.enabled||a.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),f}_getActiveElements(t,e,s,a){const o=this.options;if(t.type==="mouseout")return[];if(!a)return e;const u=this.chart.getElementsAtEventForMode(t,o.mode,o,s);return o.reverse&&u.reverse(),u}_positionChanged(t,e){const{caretX:s,caretY:a,options:o}=this,u=bu[o.position].call(this,t,e);return u!==!1&&(s!==u.x||a!==u.y)}}om.positioners=bu;var GI={id:"tooltip",_element:om,positioners:bu,afterInit(n,t,e){e&&(n.tooltip=new om({chart:n,options:e}))},beforeUpdate(n,t,e){n.tooltip&&n.tooltip.initialize(e)},reset(n,t,e){n.tooltip&&n.tooltip.initialize(e)},afterDraw(n){const t=n.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(n.notifyPlugins("beforeTooltipDraw",e)===!1)return;t.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",e)}},afterEvent(n,t){if(n.tooltip){const e=t.replay;n.tooltip.handleEvent(t.event,e,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:(n,t)=>t.bodyFont.size,boxWidth:(n,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:{beforeTitle:da,title(n){if(n.length>0){const t=n[0],e=t.chart.data.labels,s=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(s>0&&t.dataIndex<s)return e[t.dataIndex]}return""},afterTitle:da,beforeBody:da,beforeLabel:da,label(n){if(this&&this.options&&this.options.mode==="dataset")return n.label+": "+n.formattedValue||n.formattedValue;let t=n.dataset.label||"";t&&(t+=": ");const e=n.formattedValue;return Ye(e)||(t+=e),t},labelColor(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:da,afterBody:da,beforeFooter:da,footer:da,afterFooter:da}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>n!=="filter"&&n!=="itemSort"&&n!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]},KI=Object.freeze({__proto__:null,Decimation:fI,Filler:LI,Legend:RI,SubTitle:VI,Title:BI,Tooltip:GI});const qI=(n,t,e,s)=>(typeof t=="string"?(e=n.push(t)-1,s.unshift({index:e,label:t})):isNaN(t)&&(e=null),e);function XI(n,t,e,s){const a=n.indexOf(t);if(a===-1)return qI(n,t,e,s);const o=n.lastIndexOf(t);return a!==o?e:a}const ZI=(n,t)=>n===null?null:yi(Math.round(n),0,t);class wf extends el{constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const s=this.getLabels();for(const{index:a,label:o}of e)s[a]===o&&s.splice(a,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(Ye(t))return null;const s=this.getLabels();return e=isFinite(e)&&s[e]===t?e:XI(s,t,De(e,t),this._addedLabels),ZI(e,s.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:s,max:a}=this.getMinMax(!0);this.options.bounds==="ticks"&&(t||(s=0),e||(a=this.getLabels().length-1)),this.min=s,this.max=a}buildTicks(){const t=this.min,e=this.max,s=this.options.offset,a=[];let o=this.getLabels();o=t===0&&e===o.length-1?o:o.slice(t,e+1),this._valueRange=Math.max(o.length-(s?0:1),1),this._startValue=this.min-(s?.5:0);for(let u=t;u<=e;u++)a.push({value:u});return a}getLabelForValue(t){const e=this.getLabels();return t>=0&&t<e.length?e[t]:t}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return typeof t!="number"&&(t=this.parse(t)),t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}}wf.id="category",wf.defaults={ticks:{callback:wf.prototype.getLabelForValue}};function JI(n,t){const e=[],{bounds:a,step:o,min:u,max:d,precision:f,count:g,maxTicks:v,maxDigits:D,includeBounds:T}=n,A=o||1,M=v-1,{min:W,max:U}=t,O=!Ye(u),R=!Ye(d),H=!Ye(g),Y=(U-W)/(D+1);let I=rx((U-W)/M/A)*A,j,q,lt,st;if(I<1e-14&&!O&&!R)return[{value:W},{value:U}];st=Math.ceil(U/I)-Math.floor(W/I),st>M&&(I=rx(st*I/M/A)*A),Ye(f)||(j=Math.pow(10,f),I=Math.ceil(I*j)/j),a==="ticks"?(q=Math.floor(W/I)*I,lt=Math.ceil(U/I)*I):(q=W,lt=U),O&&R&&o&&BN((d-u)/o,I/1e3)?(st=Math.round(Math.min((d-u)/I,v)),I=(d-u)/st,q=u,lt=d):H?(q=O?u:q,lt=R?d:lt,st=g-1,I=(lt-q)/st):(st=(lt-q)/I,eu(st,Math.round(st),I/1e3)?st=Math.round(st):st=Math.ceil(st));const yt=Math.max(ox(I),ox(q));j=Math.pow(10,Ye(f)?yt:f),q=Math.round(q*j)/j,lt=Math.round(lt*j)/j;let mt=0;for(O&&(T&&q!==u?(e.push({value:u}),q<u&&mt++,eu(Math.round((q+mt*I)*j)/j,u,iE(u,Y,n))&&mt++):q<u&&mt++);mt<st;++mt)e.push({value:Math.round((q+mt*I)*j)/j});return R&&T&<!==d?e.length&&eu(e[e.length-1].value,d,iE(d,Y,n))?e[e.length-1].value=d:e.push({value:d}):(!R||lt===d)&&e.push({value:lt}),e}function iE(n,t,{horizontal:e,minRotation:s}){const a=er(s),o=(e?Math.sin(a):Math.cos(a))||.001,u=.75*t*(""+n).length;return Math.min(t/o,u)}class Ef extends el{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,e){return Ye(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:s}=this.getUserBounds();let{min:a,max:o}=this;const u=f=>a=e?a:f,d=f=>o=s?o:f;if(t){const f=jr(a),g=jr(o);f<0&&g<0?d(0):f>0&&g>0&&u(0)}if(a===o){let f=1;(o>=Number.MAX_SAFE_INTEGER||a<=Number.MIN_SAFE_INTEGER)&&(f=Math.abs(o*.05)),d(o+f),t||u(a-f)}this.min=a,this.max=o}getTickLimit(){const t=this.options.ticks;let{maxTicksLimit:e,stepSize:s}=t,a;return s?(a=Math.ceil(this.max/s)-Math.floor(this.min/s)+1,a>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${s} would result generating up to ${a} ticks. Limiting to 1000.`),a=1e3)):(a=this.computeTickLimit(),e=e||11),e&&(a=Math.min(e,a)),a}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let s=this.getTickLimit();s=Math.max(2,s);const a={maxTicks:s,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,u=JI(a,o);return t.bounds==="ticks"&&ax(u,this,"value"),t.reverse?(u.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),u}configure(){const t=this.ticks;let e=this.min,s=this.max;if(super.configure(),this.options.offset&&t.length){const a=(s-e)/Math.max(t.length-1,1)/2;e-=a,s+=a}this._startValue=e,this._endValue=s,this._valueRange=s-e}getLabelForValue(t){return uu(t,this.chart.options.locale,this.options.ticks.format)}}class lm extends Ef{determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Un(t)?t:0,this.max=Un(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,s=er(this.options.ticks.minRotation),a=(t?Math.sin(s):Math.cos(s))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/a))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}}lm.id="linear",lm.defaults={ticks:{callback:lf.formatters.numeric}};function sE(n){return n/Math.pow(10,Math.floor(Zs(n)))===1}function QI(n,t){const e=Math.floor(Zs(t.max)),s=Math.ceil(t.max/Math.pow(10,e)),a=[];let o=qs(n.min,Math.pow(10,Math.floor(Zs(t.min)))),u=Math.floor(Zs(o)),d=Math.floor(o/Math.pow(10,u)),f=u<0?Math.pow(10,Math.abs(u)):1;do a.push({value:o,major:sE(o)}),++d,d===10&&(d=1,++u,f=u>=0?1:f),o=Math.round(d*Math.pow(10,u)*f)/f;while(u<e||u===e&&d<s);const g=qs(n.max,o);return a.push({value:g,major:sE(o)}),a}class cm extends el{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const s=Ef.prototype.parse.apply(this,[t,e]);if(s===0){this._zero=!0;return}return Un(s)&&s>0?s:null}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Un(t)?Math.max(0,t):null,this.max=Un(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let s=this.min,a=this.max;const o=f=>s=t?s:f,u=f=>a=e?a:f,d=(f,g)=>Math.pow(10,Math.floor(Zs(f))+g);s===a&&(s<=0?(o(1),u(10)):(o(d(s,-1)),u(d(a,1)))),s<=0&&o(d(a,-1)),a<=0&&u(d(s,1)),this._zero&&this.min!==this._suggestedMin&&s===d(this.min,0)&&o(d(s,-1)),this.min=s,this.max=a}buildTicks(){const t=this.options,e={min:this._userMin,max:this._userMax},s=QI(e,this);return t.bounds==="ticks"&&ax(s,this,"value"),t.reverse?(s.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),s}getLabelForValue(t){return t===void 0?"0":uu(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=Zs(t),this._valueRange=Zs(this.max)-Zs(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(Zs(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}}cm.id="logarithmic",cm.defaults={ticks:{callback:lf.formatters.logarithmic,major:{enabled:!0}}};function um(n){const t=n.ticks;if(t.display&&n.display){const e=Ri(t.backdropPadding);return De(t.font&&t.font.size,Be.font.size)+e.height}return 0}function t2(n,t,e){return e=mn(e)?e:[e],{w:_A(n,t.string,e),h:e.length*t.lineHeight}}function rE(n,t,e,s,a){return n===s||n===a?{start:t-e/2,end:t+e/2}:n<s||n>a?{start:t-e,end:t}:{start:t,end:t+e}}function e2(n){const t={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},e=Object.assign({},t),s=[],a=[],o=n._pointLabels.length,u=n.options.pointLabels,d=u.centerPointLabels?An/o:0;for(let f=0;f<o;f++){const g=u.setContext(n.getPointLabelContext(f));a[f]=g.padding;const v=n.getPointPosition(f,n.drawingArea+a[f],d),D=ei(g.font),T=t2(n.ctx,D,n._pointLabels[f]);s[f]=T;const A=ks(n.getIndexAngle(f)+d),M=Math.round(Ep(A)),W=rE(M,v.x,T.w,0,180),U=rE(M,v.y,T.h,90,270);n2(e,t,A,W,U)}n.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),n._pointLabelItems=i2(n,s,a)}function n2(n,t,e,s,a){const o=Math.abs(Math.sin(e)),u=Math.abs(Math.cos(e));let d=0,f=0;s.start<t.l?(d=(t.l-s.start)/o,n.l=Math.min(n.l,t.l-d)):s.end>t.r&&(d=(s.end-t.r)/o,n.r=Math.max(n.r,t.r+d)),a.start<t.t?(f=(t.t-a.start)/u,n.t=Math.min(n.t,t.t-f)):a.end>t.b&&(f=(a.end-t.b)/u,n.b=Math.max(n.b,t.b+f))}function i2(n,t,e){const s=[],a=n._pointLabels.length,o=n.options,u=um(o)/2,d=n.drawingArea,f=o.pointLabels.centerPointLabels?An/a:0;for(let g=0;g<a;g++){const v=n.getPointPosition(g,d+u+e[g],f),D=Math.round(Ep(ks(v.angle+Yn))),T=t[g],A=a2(v.y,T.h,D),M=s2(D),W=r2(v.x,T.w,M);s.push({x:v.x,y:A,textAlign:M,left:W,top:A,right:W+T.w,bottom:A+T.h})}return s}function s2(n){return n===0||n===180?"center":n<180?"left":"right"}function r2(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function a2(n,t,e){return e===90||e===270?n-=t/2:(e>270||e<90)&&(n-=t),n}function o2(n,t){const{ctx:e,options:{pointLabels:s}}=n;for(let a=t-1;a>=0;a--){const o=s.setContext(n.getPointLabelContext(a)),u=ei(o.font),{x:d,y:f,textAlign:g,left:v,top:D,right:T,bottom:A}=n._pointLabelItems[a],{backdropColor:M}=o;if(!Ye(M)){const W=Zo(o.borderRadius),U=Ri(o.backdropPadding);e.fillStyle=M;const O=v-U.left,R=D-U.top,H=T-v+U.width,Y=A-D+U.height;Object.values(W).some(I=>I!==0)?(e.beginPath(),lu(e,{x:O,y:R,w:H,h:Y,radius:W}),e.fill()):e.fillRect(O,R,H,Y)}Xo(e,n._pointLabels[a],d,f+u.lineHeight/2,u,{color:o.color,textAlign:g,textBaseline:"middle"})}}function aE(n,t,e,s){const{ctx:a}=n;if(e)a.arc(n.xCenter,n.yCenter,t,0,an);else{let o=n.getPointPosition(0,t);a.moveTo(o.x,o.y);for(let u=1;u<s;u++)o=n.getPointPosition(u,t),a.lineTo(o.x,o.y)}}function l2(n,t,e,s){const a=n.ctx,o=t.circular,{color:u,lineWidth:d}=t;!o&&!s||!u||!d||e<0||(a.save(),a.strokeStyle=u,a.lineWidth=d,a.setLineDash(t.borderDash),a.lineDashOffset=t.borderDashOffset,a.beginPath(),aE(n,e,o,s),a.closePath(),a.stroke(),a.restore())}function c2(n,t,e){return $o(n,{label:e,index:t,type:"pointLabel"})}class vu extends Ef{constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Ri(um(this.options)/2),e=this.width=this.maxWidth-t.width,s=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+s/2+t.top),this.drawingArea=Math.floor(Math.min(e,s)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Un(t)&&!isNaN(t)?t:0,this.max=Un(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/um(this.options))}generateTickLabels(t){Ef.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,s)=>{const a=_n(this.options.pointLabels.callback,[e,s],this);return a||a===0?a:""}).filter((e,s)=>this.chart.getDataVisibility(s))}fit(){const t=this.options;t.display&&t.pointLabels.display?e2(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,s,a){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((s-a)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,s,a))}getIndexAngle(t){const e=an/(this._pointLabels.length||1),s=this.options.startAngle||0;return ks(t*e+er(s))}getDistanceFromCenterForValue(t){if(Ye(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(Ye(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const s=e[t];return c2(this.getContext(),t,s)}}getPointPosition(t,e,s=0){const a=this.getIndexAngle(t)-Yn+s;return{x:Math.cos(a)*e+this.xCenter,y:Math.sin(a)*e+this.yCenter,angle:a}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:s,right:a,bottom:o}=this._pointLabelItems[t];return{left:e,top:s,right:a,bottom:o}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const s=this.ctx;s.save(),s.beginPath(),aE(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),s.closePath(),s.fillStyle=t,s.fill(),s.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:s,grid:a}=e,o=this._pointLabels.length;let u,d,f;if(e.pointLabels.display&&o2(this,o),a.display&&this.ticks.forEach((g,v)=>{if(v!==0){d=this.getDistanceFromCenterForValue(g.value);const D=a.setContext(this.getContext(v-1));l2(this,D,d,o)}}),s.display){for(t.save(),u=o-1;u>=0;u--){const g=s.setContext(this.getPointLabelContext(u)),{color:v,lineWidth:D}=g;!D||!v||(t.lineWidth=D,t.strokeStyle=v,t.setLineDash(g.borderDash),t.lineDashOffset=g.borderDashOffset,d=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),f=this.getPointPosition(u,d),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(f.x,f.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,s=e.ticks;if(!s.display)return;const a=this.getIndexAngle(0);let o,u;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(a),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((d,f)=>{if(f===0&&!e.reverse)return;const g=s.setContext(this.getContext(f)),v=ei(g.font);if(o=this.getDistanceFromCenterForValue(this.ticks[f].value),g.showLabelBackdrop){t.font=v.string,u=t.measureText(d.label).width,t.fillStyle=g.backdropColor;const D=Ri(g.backdropPadding);t.fillRect(-u/2-D.left,-o-v.size/2-D.top,u+D.width,v.size+D.height)}Xo(t,d.label,0,-o,v,{color:g.color})}),t.restore()}drawTitle(){}}vu.id="radialLinear",vu.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:lf.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(n){return n},padding:5,centerPointLabels:!1}},vu.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"},vu.descriptors={angleLines:{_fallback:"grid"}};const Sf={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}},ms=Object.keys(Sf);function u2(n,t){return n-t}function oE(n,t){if(Ye(t))return null;const e=n._adapter,{parser:s,round:a,isoWeekday:o}=n._parseOpts;let u=t;return typeof s=="function"&&(u=s(u)),Un(u)||(u=typeof s=="string"?e.parse(u,s):e.parse(u)),u===null?null:(a&&(u=a==="week"&&(Sc(o)||o===!0)?e.startOf(u,"isoWeek",o):e.startOf(u,a)),+u)}function lE(n,t,e,s){const a=ms.length;for(let o=ms.indexOf(n);o<a-1;++o){const u=Sf[ms[o]],d=u.steps?u.steps:Number.MAX_SAFE_INTEGER;if(u.common&&Math.ceil((e-t)/(d*u.size))<=s)return ms[o]}return ms[a-1]}function h2(n,t,e,s,a){for(let o=ms.length-1;o>=ms.indexOf(e);o--){const u=ms[o];if(Sf[u].common&&n._adapter.diff(a,s,u)>=t-1)return u}return ms[e?ms.indexOf(e):0]}function d2(n){for(let t=ms.indexOf(n)+1,e=ms.length;t<e;++t)if(Sf[ms[t]].common)return ms[t]}function cE(n,t,e){if(!e)n[t]=!0;else if(e.length){const{lo:s,hi:a}=Dp(e,t),o=e[s]>=t?e[s]:e[a];n[o]=!0}}function f2(n,t,e,s){const a=n._adapter,o=+a.startOf(t[0].value,s),u=t[t.length-1].value;let d,f;for(d=o;d<=u;d=+a.add(d,1,s))f=e[d],f>=0&&(t[f].major=!0);return t}function uE(n,t,e){const s=[],a={},o=t.length;let u,d;for(u=0;u<o;++u)d=t[u],a[d]=u,s.push({value:d,major:!1});return o===0||!e?s:f2(n,s,a,e)}class ku extends el{constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e){const s=t.time||(t.time={}),a=this._adapter=new QO._date(t.adapters.date);a.init(e),Qc(s.displayFormats,a.formats()),this._parseOpts={parser:s.parser,round:s.round,isoWeekday:s.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:oE(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,s=t.time.unit||"day";let{min:a,max:o,minDefined:u,maxDefined:d}=this.getUserBounds();function f(g){!u&&!isNaN(g.min)&&(a=Math.min(a,g.min)),!d&&!isNaN(g.max)&&(o=Math.max(o,g.max))}(!u||!d)&&(f(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&f(this.getMinMax(!1))),a=Un(a)&&!isNaN(a)?a:+e.startOf(Date.now(),s),o=Un(o)&&!isNaN(o)?o:+e.endOf(Date.now(),s)+1,this.min=Math.min(a,o-1),this.max=Math.max(a+1,o)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,s=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],s=t[t.length-1]),{min:e,max:s}}buildTicks(){const t=this.options,e=t.time,s=t.ticks,a=s.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&a.length&&(this.min=this._userMin||a[0],this.max=this._userMax||a[a.length-1]);const o=this.min,u=this.max,d=WN(a,o,u);return this._unit=e.unit||(s.autoSkip?lE(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):h2(this,d.length,e.minUnit,this.min,this.max)),this._majorUnit=!s.major.enabled||this._unit==="year"?void 0:d2(this._unit),this.initOffsets(a),t.reverse&&d.reverse(),uE(this,d,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t){let e=0,s=0,a,o;this.options.offset&&t.length&&(a=this.getDecimalForValue(t[0]),t.length===1?e=1-a:e=(this.getDecimalForValue(t[1])-a)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?s=o:s=(o-this.getDecimalForValue(t[t.length-2]))/2);const u=t.length<3?.5:.25;e=yi(e,0,u),s=yi(s,0,u),this._offsets={start:e,end:s,factor:1/(e+1+s)}}_generate(){const t=this._adapter,e=this.min,s=this.max,a=this.options,o=a.time,u=o.unit||lE(o.minUnit,e,s,this._getLabelCapacity(e)),d=De(o.stepSize,1),f=u==="week"?o.isoWeekday:!1,g=Sc(f)||f===!0,v={};let D=e,T,A;if(g&&(D=+t.startOf(D,"isoWeek",f)),D=+t.startOf(D,g?"day":u),t.diff(s,e,u)>1e5*d)throw new Error(e+" and "+s+" are too far apart with stepSize of "+d+" "+u);const M=a.ticks.source==="data"&&this.getDataTimestamps();for(T=D,A=0;T<s;T=+t.add(T,d,u),A++)cE(v,T,M);return(T===s||a.bounds==="ticks"||A===1)&&cE(v,T,M),Object.keys(v).sort((W,U)=>W-U).map(W=>+W)}getLabelForValue(t){const e=this._adapter,s=this.options.time;return s.tooltipFormat?e.format(t,s.tooltipFormat):e.format(t,s.displayFormats.datetime)}_tickFormatFunction(t,e,s,a){const o=this.options,u=o.time.displayFormats,d=this._unit,f=this._majorUnit,g=d&&u[d],v=f&&u[f],D=s[e],T=f&&v&&D&&D.major,A=this._adapter.format(t,a||(T?v:g)),M=o.ticks.callback;return M?_n(M,[A,e,s],this):A}generateTickLabels(t){let e,s,a;for(e=0,s=t.length;e<s;++e)a=t[e],a.label=this._tickFormatFunction(a.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,s=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+s)*e.factor)}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+s*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,s=this.ctx.measureText(t).width,a=er(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(a),u=Math.sin(a),d=this._resolveTickFontOptions(0).size;return{w:s*o+d*u,h:s*u+d*o}}_getLabelCapacity(t){const e=this.options.time,s=e.displayFormats,a=s[e.unit]||s.millisecond,o=this._tickFormatFunction(t,0,uE(this,[t],this._majorUnit),a),u=this._getLabelSize(o),d=Math.floor(this.isHorizontal()?this.width/u.w:this.height/u.h)-1;return d>0?d:1}getDataTimestamps(){let t=this._cache.data||[],e,s;if(t.length)return t;const a=this.getMatchingVisibleMetas();if(this._normalized&&a.length)return this._cache.data=a[0].controller.getAllParsedValues(this);for(e=0,s=a.length;e<s;++e)t=t.concat(a[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let e,s;if(t.length)return t;const a=this.getLabels();for(e=0,s=a.length;e<s;++e)t.push(oE(this,a[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return hx(t.sort(u2))}}ku.id="time",ku.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function Df(n,t,e){let s=0,a=n.length-1,o,u,d,f;e?(t>=n[s].pos&&t<=n[a].pos&&({lo:s,hi:a}=pa(n,"pos",t)),{pos:o,time:d}=n[s],{pos:u,time:f}=n[a]):(t>=n[s].time&&t<=n[a].time&&({lo:s,hi:a}=pa(n,"time",t)),{time:o,pos:d}=n[s],{time:u,pos:f}=n[a]);const g=u-o;return g?d+(f-d)*(t-o)/g:d}class hm extends ku{constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Df(e,this.min),this._tableRange=Df(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:s}=this,a=[],o=[];let u,d,f,g,v;for(u=0,d=t.length;u<d;++u)g=t[u],g>=e&&g<=s&&a.push(g);if(a.length<2)return[{time:e,pos:0},{time:s,pos:1}];for(u=0,d=a.length;u<d;++u)v=a[u+1],f=a[u-1],g=a[u],Math.round((v+f)/2)!==g&&o.push({time:g,pos:u/(d-1)});return o}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),s=this.getLabelTimestamps();return e.length&&s.length?t=this.normalize(e.concat(s)):t=e.length?e:s,t=this._cache.all=t,t}getDecimalForValue(t){return(Df(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,s=this.getDecimalForPixel(t)/e.factor-e.end;return Df(this._table,s*this._tableRange+this._minPos,!0)}}hm.id="timeseries",hm.defaults=ku.defaults;var p2=Object.freeze({__proto__:null,CategoryScale:wf,LinearScale:lm,LogarithmicScale:cm,RadialLinearScale:vu,TimeScale:ku,TimeSeriesScale:hm});const m2=[JO,cI,KI,p2];var xu=(n=>(n.Pending="pending",n.Canceled="canceled",n.Processed="processed",n))(xu||{}),wu=(n=>(n.Finished="finished",n.Refunded="refunded",n.Unpaid="unpaid",n))(wu||{}),bi=(n=>(n.Ordered="ordered",n.Ready="ready",n.PartiallyComplete="partial",n.InProgress="in-progress",n.Canceled="canceled",n.Rejected="rejected",n))(bi||{}),hE=(n=>(n.Default="default",n.GXNT1="GXNT1",n.HPV="HPV",n.STD="STD",n))(hE||{}),qr=(n=>(n.Abnormal="A",n.LowerAbnormal="L",n.Panic="P",n.Normal="N",n))(qr||{}),dE=(n=>(n.SampleCollected="SampleCollected",n.SampleReceived="SampleReceived",n.YetToTransfer="Yet to Transfer",n.Completed="Completed",n.Cancel="Cancel",n.Approve="Approve",n))(dE||{}),fE=(n=>(n.Numberic="numeric",n.Text="text",n.XML="XML",n))(fE||{}),pE=(n=>(n.Normal="normal",n.Attention="attention",n.Critical="critical",n))(pE||{}),mE=(n=>(n.GreaterThan=">",n.GreaterThanOrEqualTo="\u2265",n.LessThan="<",n.LessThanOrEqualTo="\u2264",n.BTW="btw",n.Txt="txt",n))(mE||{}),Oc=(n=>(n.Male="Male",n.Female="Female",n))(Oc||{}),_s=(n=>(n.Morning="morning",n.Afternoon="afternoon",n.Evening="evening",n))(_s||{}),il=[],_2=function(){return il.some(function(n){return n.activeTargets.length>0})},g2=function(){return il.some(function(n){return n.skippedTargets.length>0})},_E="ResizeObserver loop completed with undelivered notifications.",y2=function(){var n;typeof ErrorEvent=="function"?n=new ErrorEvent("error",{message:_E}):(n=document.createEvent("Event"),n.initEvent("error",!1,!1),n.message=_E),window.dispatchEvent(n)},Eu;(function(n){n.BORDER_BOX="border-box",n.CONTENT_BOX="content-box",n.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Eu||(Eu={}));var sl=function(n){return Object.freeze(n)},b2=function(){function n(t,e){this.inlineSize=t,this.blockSize=e,sl(this)}return n}(),gE=function(){function n(t,e,s,a){return this.x=t,this.y=e,this.width=s,this.height=a,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,sl(this)}return n.prototype.toJSON=function(){var t=this,e=t.x,s=t.y,a=t.top,o=t.right,u=t.bottom,d=t.left,f=t.width,g=t.height;return{x:e,y:s,top:a,right:o,bottom:u,left:d,width:f,height:g}},n.fromRect=function(t){return new n(t.x,t.y,t.width,t.height)},n}(),dm=function(n){return n instanceof SVGElement&&"getBBox"in n},yE=function(n){if(dm(n)){var t=n.getBBox(),e=t.width,s=t.height;return!e&&!s}var a=n,o=a.offsetWidth,u=a.offsetHeight;return!(o||u||n.getClientRects().length)},bE=function(n){var t;if(n instanceof Element)return!0;var e=(t=n==null?void 0:n.ownerDocument)===null||t===void 0?void 0:t.defaultView;return!!(e&&n instanceof e.Element)},v2=function(n){switch(n.tagName){case"INPUT":if(n.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Su=typeof window<"u"?window:{},Cf=new WeakMap,vE=/auto|scroll/,k2=/^tb|vertical/,x2=/msie|trident/i.test(Su.navigator&&Su.navigator.userAgent),Xr=function(n){return parseFloat(n||"0")},Lc=function(n,t,e){return n===void 0&&(n=0),t===void 0&&(t=0),e===void 0&&(e=!1),new b2((e?t:n)||0,(e?n:t)||0)},kE=sl({devicePixelContentBoxSize:Lc(),borderBoxSize:Lc(),contentBoxSize:Lc(),contentRect:new gE(0,0,0,0)}),xE=function(n,t){if(t===void 0&&(t=!1),Cf.has(n)&&!t)return Cf.get(n);if(yE(n))return Cf.set(n,kE),kE;var e=getComputedStyle(n),s=dm(n)&&n.ownerSVGElement&&n.getBBox(),a=!x2&&e.boxSizing==="border-box",o=k2.test(e.writingMode||""),u=!s&&vE.test(e.overflowY||""),d=!s&&vE.test(e.overflowX||""),f=s?0:Xr(e.paddingTop),g=s?0:Xr(e.paddingRight),v=s?0:Xr(e.paddingBottom),D=s?0:Xr(e.paddingLeft),T=s?0:Xr(e.borderTopWidth),A=s?0:Xr(e.borderRightWidth),M=s?0:Xr(e.borderBottomWidth),W=s?0:Xr(e.borderLeftWidth),U=D+g,O=f+v,R=W+A,H=T+M,Y=d?n.offsetHeight-H-n.clientHeight:0,I=u?n.offsetWidth-R-n.clientWidth:0,j=a?U+R:0,q=a?O+H:0,lt=s?s.width:Xr(e.width)-j-I,st=s?s.height:Xr(e.height)-q-Y,yt=lt+U+I+R,mt=st+O+Y+H,wt=sl({devicePixelContentBoxSize:Lc(Math.round(lt*devicePixelRatio),Math.round(st*devicePixelRatio),o),borderBoxSize:Lc(yt,mt,o),contentBoxSize:Lc(lt,st,o),contentRect:new gE(D,f,lt,st)});return Cf.set(n,wt),wt},wE=function(n,t,e){var s=xE(n,e),a=s.borderBoxSize,o=s.contentBoxSize,u=s.devicePixelContentBoxSize;switch(t){case Eu.DEVICE_PIXEL_CONTENT_BOX:return u;case Eu.BORDER_BOX:return a;default:return o}},w2=function(){function n(t){var e=xE(t);this.target=t,this.contentRect=e.contentRect,this.borderBoxSize=sl([e.borderBoxSize]),this.contentBoxSize=sl([e.contentBoxSize]),this.devicePixelContentBoxSize=sl([e.devicePixelContentBoxSize])}return n}(),EE=function(n){if(yE(n))return 1/0;for(var t=0,e=n.parentNode;e;)t+=1,e=e.parentNode;return t},E2=function(){var n=1/0,t=[];il.forEach(function(u){if(u.activeTargets.length!==0){var d=[];u.activeTargets.forEach(function(g){var v=new w2(g.target),D=EE(g.target);d.push(v),g.lastReportedSize=wE(g.target,g.observedBox),D<n&&(n=D)}),t.push(function(){u.callback.call(u.observer,d,u.observer)}),u.activeTargets.splice(0,u.activeTargets.length)}});for(var e=0,s=t;e<s.length;e++){var a=s[e];a()}return n},SE=function(n){il.forEach(function(e){e.activeTargets.splice(0,e.activeTargets.length),e.skippedTargets.splice(0,e.skippedTargets.length),e.observationTargets.forEach(function(a){a.isActive()&&(EE(a.target)>n?e.activeTargets.push(a):e.skippedTargets.push(a))})})},S2=function(){var n=0;for(SE(n);_2();)n=E2(),SE(n);return g2()&&y2(),n>0},fm,DE=[],D2=function(){return DE.splice(0).forEach(function(n){return n()})},C2=function(n){if(!fm){var t=0,e=document.createTextNode(""),s={characterData:!0};new MutationObserver(function(){return D2()}).observe(e,s),fm=function(){e.textContent="".concat(t?t--:t++)}}DE.push(n),fm()},T2=function(n){C2(function(){requestAnimationFrame(n)})},Tf=0,M2=function(){return!!Tf},N2=250,A2={attributes:!0,characterData:!0,childList:!0,subtree:!0},CE=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],TE=function(n){return n===void 0&&(n=0),Date.now()+n},pm=!1,O2=function(){function n(){var t=this;this.stopped=!0,this.listener=function(){return t.schedule()}}return n.prototype.run=function(t){var e=this;if(t===void 0&&(t=N2),!pm){pm=!0;var s=TE(t);T2(function(){var a=!1;try{a=S2()}finally{if(pm=!1,t=s-TE(),!M2())return;a?e.run(1e3):t>0?e.run(t):e.start()}})}},n.prototype.schedule=function(){this.stop(),this.run()},n.prototype.observe=function(){var t=this,e=function(){return t.observer&&t.observer.observe(document.body,A2)};document.body?e():Su.addEventListener("DOMContentLoaded",e)},n.prototype.start=function(){var t=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),CE.forEach(function(e){return Su.addEventListener(e,t.listener,!0)}))},n.prototype.stop=function(){var t=this;this.stopped||(this.observer&&this.observer.disconnect(),CE.forEach(function(e){return Su.removeEventListener(e,t.listener,!0)}),this.stopped=!0)},n}(),mm=new O2,ME=function(n){!Tf&&n>0&&mm.start(),Tf+=n,!Tf&&mm.stop()},L2=function(n){return!dm(n)&&!v2(n)&&getComputedStyle(n).display==="inline"},I2=function(){function n(t,e){this.target=t,this.observedBox=e||Eu.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return n.prototype.isActive=function(){var t=wE(this.target,this.observedBox,!0);return L2(this.target)&&(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},n}(),P2=function(){function n(t,e){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=t,this.callback=e}return n}(),Mf=new WeakMap,NE=function(n,t){for(var e=0;e<n.length;e+=1)if(n[e].target===t)return e;return-1},Nf=function(){function n(){}return n.connect=function(t,e){var s=new P2(t,e);Mf.set(t,s)},n.observe=function(t,e,s){var a=Mf.get(t),o=a.observationTargets.length===0;NE(a.observationTargets,e)<0&&(o&&il.push(a),a.observationTargets.push(new I2(e,s&&s.box)),ME(1),mm.schedule())},n.unobserve=function(t,e){var s=Mf.get(t),a=NE(s.observationTargets,e),o=s.observationTargets.length===1;a>=0&&(o&&il.splice(il.indexOf(s),1),s.observationTargets.splice(a,1),ME(-1))},n.disconnect=function(t){var e=this,s=Mf.get(t);s.observationTargets.slice().forEach(function(a){return e.unobserve(t,a.target)}),s.activeTargets.splice(0,s.activeTargets.length)},n}(),R2=function(){function n(t){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof t!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Nf.connect(this,t)}return n.prototype.observe=function(t,e){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bE(t))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Nf.observe(this,t,e)},n.prototype.unobserve=function(t){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!bE(t))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Nf.unobserve(this,t)},n.prototype.disconnect=function(){Nf.disconnect(this)},n.toString=function(){return"function ResizeObserver () { [polyfill code] }"},n}();const AE=n=>(m.pushScopeId("data-v-8a6cf4c9"),n=n(),m.popScopeId(),n),F2={class:"trend-detail"},B2={class:"chart-wrapper psc-p-4 psc-rounded-xl"},V2={class:"psc-flex psc-items-center"},$2={class:"psc-w-1/2 psc-text-black/[0.85]"},Y2={class:"psc-text-xl psc-font-semibold"},W2={class:"psc-w-1/2 psc-flex psc-justify-end psc-space-x-3"},U2=AE(()=>m.createElementVNode("i",{class:"dgic-expand-left psc-text-2xl -psc-ml-0.5 psc-text-black/[0.85]"},null,-1)),H2=AE(()=>m.createElementVNode("i",{class:"dgic-expand-right psc-text-2xl -psc-mr-0.5 psc-text-black/[0.85]"},null,-1)),z2={class:"psc-px-6 psc-mt-6"},j2={class:"test-explaination psc-bg-[#e6f0fe] psc-p-4 psc-rounded-lg psc-mt-8"},G2={class:"psc-font-semibold psc-text-black/[0.85]"},K2={class:"psc-text-sm psc-text-black/[0.85] psc-mt-2"},q2=m.defineComponent({__name:"TestResultHistoryDetail",props:{historyData:null},setup(n){const t=n,{t:e}=Xn(),{formatMonthYear:s}=Zc();let a;gf.register(...m2);const o=m.ref(null),u=m.computed(()=>Array.isArray(t.historyData.charts)?t.historyData.charts:Object.keys(t.historyData.charts).map(st=>t.historyData.charts[+st])),d=m.computed(()=>Math.ceil(u.value.length/f.value.size)),f=m.ref({no:0,size:6}),g=m.computed(()=>({type:"line",borderColor:"rgba(0, 0, 0, 0.6)",borderWidth:2,data:v.value,pointRadius:4,pointHitRadius:4,pointBackgroundColor:D.value,pointBorderColor:D.value,tension:.4})),v=m.computed(()=>T.value.map(st=>st.value)),D=m.computed(()=>T.value.map(st=>U(st))),T=m.ref([]),A=m.ref([]),M=m.computed(()=>d.value>1),W=st=>st.slice(f.value.no*f.value.size,f.value.no*f.value.size+f.value.size),U=st=>({[qr.LowerAbnormal]:"#d6a700",[qr.Abnormal]:"#e16c00",[qr.Panic]:"#ec3741",[qr.Normal]:"#00a86b"})[st.is_abnormal]||"#d2dee8",O=st=>{const yt={[qr.LowerAbnormal]:e("psc.test_result_low"),[qr.Abnormal]:e("psc.test_result_high"),[qr.Panic]:e("psc.test_result_critical"),[qr.Normal]:e("psc.test_result_normal")};return yt[st.is_abnormal]?`${st.original_test_value} ${t.historyData.uom_code}
|
|
98
98
|
${q(st.order_date)}
|
|
99
99
|
${yt[st.is_abnormal]}`:`${st.original_test_value} ${t.historyData.uom_code}
|
|
100
|
-
${q(st.order_date)}`},R=()=>{f.value.no++,Y()},H=()=>{f.value.no--,Y()},Y=()=>{T.value=W(u.value),A.value=T.value.map(st=>O(st)),a.data.datasets=[g.value],a.data.labels=A.value,a.update()},I=st=>{var mt,wt;let yt=(mt=st.canvas.parentNode)==null?void 0:mt.querySelector("div");if(!yt){yt=document.createElement("div"),yt.classList.add("chart-tooltip");const Ot=document.createElement("span");Ot.classList.add("chart-tooltip__caret"),yt.appendChild(Ot);const ae=document.createElement("ul");ae.classList.add("chart-tooltip__ul"),yt.appendChild(ae),(wt=st.canvas.parentNode)==null||wt.appendChild(yt)}return yt},j=st=>{const yt=st.chart,mt=st.tooltip,wt=I(yt);if(mt.opacity===0){wt.style.opacity="0";return}if(mt.body){const Ot=mt.title||[],ae=document.createElement("li"),Ct=wt.querySelector("ul");Ot.forEach(ve=>{Ct==null||Ct.appendChild(ae);const dt=document.createElement("div");ae.appendChild(dt);const Qt=document.createTextNode(ve);dt.appendChild(Qt)});const Wt=wt.querySelector("ul");for(;Wt!=null&&Wt.firstChild;)Wt.firstChild.remove();Wt==null||Wt.appendChild(ae),wt.style.opacity="1";const{offsetLeft:Vt,offsetTop:ee}=yt.canvas;wt.style.left=`${Vt+mt.caretX}px`,wt.style.top=`${ee+mt.caretY}px`,wt.style.padding=`${mt.options.padding}px ${mt.options.padding}px`}},q=st=>s(new Date(st)),lt=()=>{window&&(window.ResizeObserver=window.ResizeObserver||R2),f.value.no=d.value-1>0?d.value-1:0,T.value=W(u.value),A.value=T.value.map(st=>O(st)),o.value&&(a=new gf(o.value,{type:"line",options:{responsive:!0,maintainAspectRatio:!0,scales:{x:{grid:{display:!1,drawBorder:!1},ticks:{display:!1}},y:{grid:{display:!1,drawBorder:!1},ticks:{display:!1}}},plugins:{legend:{display:!1},tooltip:{enabled:!1,external:j,padding:12}}},data:{datasets:[g.value],labels:A.value}}))};return m.onMounted(()=>{lt()}),(st,yt)=>(m.openBlock(),m.createElementBlock("div",F2,[m.createElementVNode("div",B2,[m.createElementVNode("div",V2,[m.createElementVNode("div",$2,[m.createElementVNode("div",Y2,m.toDisplayString(t.historyData.test_name),1),m.createElementVNode("div",null,m.toDisplayString(`${st.$t("psc.test_result_measured_in")} ${t.historyData.uom_code}`),1)]),m.withDirectives(m.createElementVNode("div",W2,[m.createVNode(m.unref(gc),{size:"sm",type:"icon",class:"psc-rounded-full psc-w-8 psc-h-8 !psc-p-0 psc-border psc-border-black/[0.1]",disabled:f.value.no===0,onClick:H},{default:m.withCtx(()=>[U2]),_:1},8,["disabled"]),m.createVNode(m.unref(gc),{size:"sm",type:"icon",class:"psc-rounded-full psc-w-8 psc-h-8 !psc-p-0 psc-border psc-border-black/[0.1]",disabled:f.value.no>=m.unref(d)-1,onClick:R},{default:m.withCtx(()=>[H2]),_:1},8,["disabled"])],512),[[m.vShow,m.unref(M)]])]),m.createElementVNode("div",z2,[m.createElementVNode("canvas",{ref_key:"chartRef",ref:o},null,512)])]),m.createElementVNode("div",j2,[m.createElementVNode("div",G2,m.toDisplayString(`${st.$t("psc.test_result_about")} ${t.historyData.test_name}`),1),m.createElementVNode("div",K2,m.toDisplayString(t.historyData.purpose),1)])]))}}),EB="",SB="",OE=Qs(q2,[["__scopeId","data-v-887ae7b1"]]),X2=m.createElementVNode("div",null,null,-1),Z2={key:0,class:"history-content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"},J2={class:"psc-animate-spin"},Q2={key:1,class:"history-content"},tP=m.defineComponent({__name:"TestResultHistoryDetailModal",props:{modelValue:{type:Boolean},historyData:null,loading:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:t}){const e=n,s=m.computed({get(){return e.modelValue},set(o){t("update:modelValue",o)}}),a=()=>{s.value=!1};return(o,u)=>(m.openBlock(),m.createBlock(m.unref(jk),{modelValue:m.unref(s),"onUpdate:modelValue":u[1]||(u[1]=d=>m.isRef(s)?s.value=d:null),class:"test-result-history-detail-modal",fullscreen:""},{default:m.withCtx(()=>[m.createVNode(m.unref(Gk),{class:"psc-pb-0"},{default:m.withCtx(()=>[X2,m.createElementVNode("div",null,[m.createElementVNode("i",{class:"dgic-chevron-down-thin psc-text-3xl psc-cursor-pointer psc-text-black/[0.85]",onClick:u[0]||(u[0]=d=>a())})])]),_:1}),m.createVNode(m.unref(Kk),{class:"modal-body psc-py-0 psc-px-4"},{default:m.withCtx(()=>[e.loading?(m.openBlock(),m.createElementBlock("div",Z2,[m.createElementVNode("div",J2,[m.createVNode(m.unref(na),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(m.openBlock(),m.createElementBlock("div",Q2,[m.createVNode(OE,{class:"psc-pb-4","history-data":e.historyData},null,8,["history-data"])]))]),_:1})]),_:1},8,["modelValue"]))}}),DB="",eP=m.defineComponent({__name:"DateItem",props:{value:null,disabled:{type:Boolean},selected:{type:Boolean}},setup(n){const t=n,{dayShortNames:e}=Zc();return(s,a)=>(m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass([{"psc-cursor-pointer":!t.disabled},"psc-max-w-[38px]"])},[m.createElementVNode("div",{class:m.normalizeClass(["psc-w-[38px] psc-h-[38px] psc-rounded-full psc-p-2.5 psc-flex psc-items-center psc-justify-center",{"psc-text-black/[0.4] psc-border psc-border-black/[0.1]":t.disabled,"psc-text-black/[0.85] psc-bg-[#e6f0fe]":!t.disabled,"psc-text-white !psc-bg-primary psc-font-semibold":t.selected}])},[m.createElementVNode("span",null,m.toDisplayString(t.value.getDate()),1)],2),m.createElementVNode("div",{class:m.normalizeClass(["psc-text-center psc-mt-1",{"psc-text-black/[0.4]":t.disabled,"psc-text-black/[0.6]":!t.disabled,"psc-font-semibold psc-text-black/[0.85]":t.selected}])},m.toDisplayString(m.unref(e)[t.value.getDay()]),3)],2))}}),nP=m.defineComponent({__name:"DayPartItem",props:{text:null,disabled:{type:Boolean},selected:{type:Boolean}},setup(n){const t=n;return(e,s)=>(m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass(["psc-py-3 psc-rounded-lg psc-font-semibold psc-border psc-text-center",{"psc-text-black/[0.4] psc-border-black/[0.1]":t.disabled,"psc-text-black/[0.85] psc-border-black/[0.25] psc-cursor-pointer":!t.disabled,"!psc-text-primary psc-border-primary psc-bg-[#e6f0fe]":t.selected}])},m.toDisplayString(t.text),3))}}),LE=(n,t)=>{let e=n.toString();for(;e.length<t;)e="0"+e;return e},iP=m.defineComponent({__name:"TimeSlotItem",props:{timeSlot:null,selected:{type:Boolean},icon:{default:""}},setup(n){const t=n,e=s=>`${LE(s.getHours(),2)}:${LE(s.getMinutes(),2)}`;return(s,a)=>(m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass(["psc-py-3 psc-rounded-lg psc-text-black/[0.85] psc-font-semibold psc-border psc-border-black/[0.25] psc-flex psc-items-center psc-justify-center psc-cursor-pointer",{"!psc-text-primary psc-border-primary psc-bg-[#e6f0fe]":t.selected}])},[t.icon?(m.openBlock(),m.createElementBlock("i",{key:0,class:m.normalizeClass([t.icon,"psc-text-xl psc-mr-2"])},null,2)):m.createCommentVNode("",!0),m.createElementVNode("span",null,m.toDisplayString(e(t.timeSlot)),1)],2))}}),sP={class:"book-appointment psc-space-y-8"},rP={class:"psc-flex"},aP={key:0},oP={class:"psc-pb-6 psc-font-semibold psc-text-black/[0.85]"},lP={class:"psc-flex -psc-mx-2"},cP=m.defineComponent({__name:"BookAppointment",props:{timeSlots:null,disabled:{type:Boolean,default:!1}},emits:["book"],setup(n,{expose:t,emit:e}){const s=n,{t:a}=Xn(),{formatDateHuge:o}=Zc(),u=m.computed(()=>s.timeSlots.map(j=>new Date(j))),d=m.ref([]),f=m.ref(),g=m.ref(),v=m.ref(),D=m.computed(()=>{var q;const j={[_s.Morning]:"dgic-morning-thin",[_s.Afternoon]:"dgic-afternoon-thin",[_s.Evening]:"dgic-evening-thin"};return(q=g.value)!=null&&q.value?j[g.value.value]:""}),T=m.computed(()=>({[_s.Morning]:a("psc.date_time.day_parts.morning"),[_s.Afternoon]:a("psc.date_time.day_parts.afternoon"),[_s.Evening]:a("psc.date_time.day_parts.evening")})),A=()=>{var j;e("book",(j=v.value)==null?void 0:j.toISOString())},M=()=>{H(),g.value=void 0,v.value=void 0},W=j=>{j.disabled||s.disabled||(f.value=j,g.value=void 0,v.value=void 0)},U=j=>{j.disabled||s.disabled||(g.value=j,v.value=void 0)},O=j=>{s.disabled||(v.value=j)},R=(j,q,lt)=>{const st=j.split(":");let yt=new Date(lt).getTime();yt=new Date(yt).setHours(+st[0]),yt=new Date(yt).setMinutes(+st[1]),yt=new Date(yt).setSeconds(0),yt=new Date(yt).setMilliseconds(0);const mt=q.split(":");let wt=new Date(lt).getTime();return wt=new Date(wt).setHours(+mt[0]),wt=new Date(wt).setMinutes(+mt[1]),wt=new Date(wt).setSeconds(0),wt=new Date(wt).setMilliseconds(0),u.value.filter(Ot=>new Date(yt)<=Ot&&Ot<=new Date(wt))},H=()=>{const j=d.value.find(q=>!q.disabled);j&&(f.value=j)},Y=()=>{for(let j=0;j<7;j++){const q=new Date,lt=new Date(q.setDate(q.getDate()+j)),st=R("07:00","12:50",lt),yt=R("13:00","18:50",lt),mt=R("19:00","21:00",lt),wt=[{text:T.value[_s.Morning],value:_s.Morning,start:"07:00",end:"12:50",timeSlots:st,disabled:st.length===0},{text:T.value[_s.Afternoon],value:_s.Afternoon,start:"13:00",end:"18:50",timeSlots:yt,disabled:yt.length===0},{text:T.value[_s.Evening],value:_s.Evening,start:"19:00",end:"21:00",timeSlots:mt,disabled:mt.length===0}];d.value.push({value:lt,disabled:wt.every(Ot=>Ot.disabled),dayParts:wt})}};return(()=>{Y(),H()})(),t({resetAll:M}),(j,q)=>{var lt,st,yt;return m.openBlock(),m.createElementBlock("div",sP,[m.createElementVNode("div",rP,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(d.value,(mt,wt)=>{var Ot;return m.openBlock(),m.createElementBlock("div",{key:`date${wt}`,class:"book-appointment__date"},[m.createVNode(eP,{value:mt.value,disabled:mt.disabled,selected:((Ot=f.value)==null?void 0:Ot.value)===mt.value,onClick:ae=>W(mt)},null,8,["value","disabled","selected","onClick"])])}),128))]),f.value?(m.openBlock(),m.createElementBlock("div",aP,[m.createElementVNode("div",oP,m.toDisplayString(m.unref(o)(f.value.value)),1),m.createElementVNode("div",lP,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(f.value.dayParts,(mt,wt)=>{var Ot;return m.openBlock(),m.createElementBlock("div",{key:`dayPart${wt}`,class:"psc-w-1/3 psc-px-2"},[m.createVNode(nP,{text:mt.text,disabled:mt.disabled,selected:((Ot=g.value)==null?void 0:Ot.value)===mt.value,onClick:ae=>U(mt)},null,8,["text","disabled","selected","onClick"])])}),128))])])):m.createCommentVNode("",!0),m.createElementVNode("div",null,[m.withDirectives(m.createElementVNode("div",{class:"psc-pb-6 psc-font-semibold psc-text-black/[0.85]"},m.toDisplayString(j.$t("psc.test_result_opening_slots")),513),[[m.vShow,g.value]]),m.createElementVNode("div",{class:m.normalizeClass(["psc-flex psc-flex-wrap -psc-mx-2 -psc-my-2 psc-overflow-y-auto psc-max-h-[20vh] psc-h-[20vh] psc-transition-[max-height]",{"!psc-max-h-0":!g.value,"!psc-max-h-[11vh]":((st=(lt=g.value)==null?void 0:lt.timeSlots)==null?void 0:st.length)&&g.value.timeSlots.length<=3}])},[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList((yt=g.value)==null?void 0:yt.timeSlots,(mt,wt)=>(m.openBlock(),m.createElementBlock("div",{key:`timeSlot${wt}`,class:"psc-w-1/3 psc-px-2 psc-py-2"},[m.createVNode(iP,{"time-slot":mt,selected:v.value===mt,icon:m.unref(D),onClick:Ot=>O(mt)},null,8,["time-slot","selected","icon","onClick"])]))),128))],2)]),m.createVNode(m.unref(gc),{type:"primary",class:"psc-w-full",disabled:!v.value||s.disabled,onClick:A},{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString(j.$t("psc.test_result_book_appointment")),1)]),_:1},8,["disabled"])])}}}),CB="",IE=Qs(cP,[["__scopeId","data-v-94386939"]]),uP={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-pb-8"},hP={class:"psc-w-full psc-text-center"},dP={class:"psc-w-full psc-text-center psc-text-xl psc-font-semibold psc-text-black/[0.85]"},fP={class:"psc-w-full psc-text-center psc-text-black/[0.6]"},pP=m.defineComponent({__name:"ErrorMessage",setup(n){return(t,e)=>(m.openBlock(),m.createElementBlock("div",uP,[m.createElementVNode("div",hP,[m.createVNode(m.unref(na),{icon:"dgic-circle-error-fill",class:"psc-text-[80px] psc-text-error"})]),m.createElementVNode("div",dP,m.toDisplayString(t.$t("psc.test_result_book_appointment_error_title")),1),m.createElementVNode("div",fP,m.toDisplayString(t.$t("psc.test_result_book_appointment_error_description")),1)]))}}),mP={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-pb-8"},_P={class:"psc-w-full psc-text-center"},gP={class:"psc-w-full psc-text-center psc-text-xl psc-font-semibold psc-text-black/[0.85]"},yP={class:"psc-w-full psc-text-center psc-text-black/[0.6]"},bP=m.defineComponent({__name:"SuccessMessage",props:{timeSlot:null},setup(n){const t=n,{formatTime:e,formatDate:s}=Zc(),a=m.computed(()=>e(new Date(t.timeSlot))),o=m.computed(()=>s(new Date(t.timeSlot)));return(u,d)=>(m.openBlock(),m.createElementBlock("div",mP,[m.createElementVNode("div",_P,[m.createVNode(m.unref(na),{icon:"dgic-circle-check",class:"psc-text-[80px] psc-text-success"})]),m.createElementVNode("div",gP,m.toDisplayString(u.$t("psc.test_result_successfully_booked")),1),m.createElementVNode("div",yP,m.toDisplayString(u.$t("psc.test_result_have_an_appointment_with_doctor",{time:m.unref(a),date:m.unref(o)})),1)]))}}),vP={class:"psc-flex-1 psc-text-center psc-font-semibold psc-text-black/[0.85]"},kP={class:"psc-flex-1 psc-text-right"},xP={key:0,class:"modal-body__content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"},wP={class:"psc-animate-spin"},EP={key:1,class:"modal-body__content"},SP=m.defineComponent({__name:"BookAppointmentModal",props:{modelValue:{type:Boolean},timeSlots:null,loading:{type:Boolean},disabled:{type:Boolean},showSuccess:{type:Boolean,default:!1},showError:{type:Boolean,default:!1}},emits:["update:modelValue","book"],setup(n,{emit:t}){const e=n,s=m.ref(null),a=m.computed({get(){return e.modelValue},set(g){t("update:modelValue",g)}}),o=m.ref(""),u=g=>{o.value=g,t("book",g)},d=()=>{var g;(g=s.value)==null||g.resetAll()},f=()=>{a.value=!1};return(g,v)=>(m.openBlock(),m.createBlock(m.unref(jk),{modelValue:m.unref(a),"onUpdate:modelValue":v[1]||(v[1]=D=>m.isRef(a)?a.value=D:null),class:"book-appointment-modal",fullscreen:""},{default:m.withCtx(()=>[m.createVNode(m.unref(Gk),{class:"!psc-items-center"},{default:m.withCtx(()=>[!e.showSuccess&&!e.showError?(m.openBlock(),m.createElementBlock(m.Fragment,{key:0},[m.createElementVNode("div",{class:"psc-flex-1 psc-text-primary psc-text-sm psc-cursor-pointer hover:psc-text-primary/[0.9]",onClick:d},m.toDisplayString(g.$t("psc.test_result_reset_all")),1),m.createElementVNode("div",vP,m.toDisplayString(g.$t("psc.test_result_choose_time")),1)],64)):m.createCommentVNode("",!0),m.createElementVNode("div",kP,[m.createElementVNode("i",{class:"dgic-close-round psc-text-2xl psc-cursor-pointer psc-text-[#6a6b7a]",onClick:v[0]||(v[0]=D=>f())})])]),_:1}),m.createVNode(m.unref(Kk),{class:"modal-body !psc-py-0 !psc-px-4"},{default:m.withCtx(()=>[e.loading?(m.openBlock(),m.createElementBlock("div",xP,[m.createElementVNode("div",wP,[m.createVNode(m.unref(na),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(m.openBlock(),m.createElementBlock("div",EP,[!e.showSuccess&&!e.showError?(m.openBlock(),m.createBlock(IE,{key:0,ref_key:"bookAppointmentRef",ref:s,class:"psc-pb-4","time-slots":e.timeSlots,disabled:e.disabled,onBook:u},null,8,["time-slots","disabled"])):m.createCommentVNode("",!0),e.showSuccess?(m.openBlock(),m.createBlock(bP,{key:1,"time-slot":o.value},null,8,["time-slot"])):m.createCommentVNode("",!0),e.showError?(m.openBlock(),m.createBlock(pP,{key:2})):m.createCommentVNode("",!0)]))]),_:1})]),_:1},8,["modelValue"]))}}),TB="";var Ic=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DP(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var PE={exports:{}};(function(n,t){(function(e,s){n.exports=s()})(Ic,function(){var e;function s(){return e.apply(null,arguments)}function a(l){return l instanceof Array||Object.prototype.toString.call(l)==="[object Array]"}function o(l){return l!=null&&Object.prototype.toString.call(l)==="[object Object]"}function u(l,h){return Object.prototype.hasOwnProperty.call(l,h)}function d(l){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(l).length===0;for(var h in l)if(u(l,h))return;return 1}function f(l){return l===void 0}function g(l){return typeof l=="number"||Object.prototype.toString.call(l)==="[object Number]"}function v(l){return l instanceof Date||Object.prototype.toString.call(l)==="[object Date]"}function D(l,h){for(var _=[],b=l.length,C=0;C<b;++C)_.push(h(l[C],C));return _}function T(l,h){for(var _ in h)u(h,_)&&(l[_]=h[_]);return u(h,"toString")&&(l.toString=h.toString),u(h,"valueOf")&&(l.valueOf=h.valueOf),l}function A(l,h,_,b){return Ds(l,h,_,b,!0).utc()}function M(l){return l._pf==null&&(l._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),l._pf}function W(l){if(l._isValid==null){var h=M(l),_=O.call(h.parsedDateParts,function(b){return b!=null}),_=!isNaN(l._d.getTime())&&h.overflow<0&&!h.empty&&!h.invalidEra&&!h.invalidMonth&&!h.invalidWeekday&&!h.weekdayMismatch&&!h.nullInput&&!h.invalidFormat&&!h.userInvalidated&&(!h.meridiem||h.meridiem&&_);if(l._strict&&(_=_&&h.charsLeftOver===0&&h.unusedTokens.length===0&&h.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(l))return _;l._isValid=_}return l._isValid}function U(l){var h=A(NaN);return l!=null?T(M(h),l):M(h).userInvalidated=!0,h}var O=Array.prototype.some||function(l){for(var h=Object(this),_=h.length>>>0,b=0;b<_;b++)if(b in h&&l.call(this,h[b],b,h))return!0;return!1},R=s.momentProperties=[],H=!1;function Y(l,h){var _,b,C,P=R.length;if(f(h._isAMomentObject)||(l._isAMomentObject=h._isAMomentObject),f(h._i)||(l._i=h._i),f(h._f)||(l._f=h._f),f(h._l)||(l._l=h._l),f(h._strict)||(l._strict=h._strict),f(h._tzm)||(l._tzm=h._tzm),f(h._isUTC)||(l._isUTC=h._isUTC),f(h._offset)||(l._offset=h._offset),f(h._pf)||(l._pf=M(h)),f(h._locale)||(l._locale=h._locale),0<P)for(_=0;_<P;_++)f(C=h[b=R[_]])||(l[b]=C);return l}function I(l){Y(this,l),this._d=new Date(l._d!=null?l._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),H===!1&&(H=!0,s.updateOffset(this),H=!1)}function j(l){return l instanceof I||l!=null&&l._isAMomentObject!=null}function q(l){s.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+l)}function lt(l,h){var _=!0;return T(function(){if(s.deprecationHandler!=null&&s.deprecationHandler(null,l),_){for(var b,C,P=[],K=arguments.length,Q=0;Q<K;Q++){if(b="",typeof arguments[Q]=="object"){for(C in b+=`
|
|
100
|
+
${q(st.order_date)}`},R=()=>{f.value.no++,Y()},H=()=>{f.value.no--,Y()},Y=()=>{T.value=W(u.value),A.value=T.value.map(st=>O(st)),a.data.datasets=[g.value],a.data.labels=A.value,a.update()},I=st=>{var mt,wt;let yt=(mt=st.canvas.parentNode)==null?void 0:mt.querySelector("div");if(!yt){yt=document.createElement("div"),yt.classList.add("chart-tooltip");const Ot=document.createElement("span");Ot.classList.add("chart-tooltip__caret"),yt.appendChild(Ot);const ae=document.createElement("ul");ae.classList.add("chart-tooltip__ul"),yt.appendChild(ae),(wt=st.canvas.parentNode)==null||wt.appendChild(yt)}return yt},j=st=>{const yt=st.chart,mt=st.tooltip,wt=I(yt);if(mt.opacity===0){wt.style.opacity="0";return}if(mt.body){const Ot=mt.title||[],ae=document.createElement("li"),Ct=wt.querySelector("ul");Ot.forEach(ve=>{Ct==null||Ct.appendChild(ae);const dt=document.createElement("div");ae.appendChild(dt);const Qt=document.createTextNode(ve);dt.appendChild(Qt)});const Wt=wt.querySelector("ul");for(;Wt!=null&&Wt.firstChild;)Wt.firstChild.remove();Wt==null||Wt.appendChild(ae),wt.style.opacity="1";const{offsetLeft:Vt,offsetTop:ee}=yt.canvas;wt.style.left=`${Vt+mt.caretX}px`,wt.style.top=`${ee+mt.caretY}px`,wt.style.padding=`${mt.options.padding}px ${mt.options.padding}px`}},q=st=>s(new Date(st)),lt=()=>{window&&(window.ResizeObserver=window.ResizeObserver||R2),f.value.no=d.value-1>0?d.value-1:0,T.value=W(u.value),A.value=T.value.map(st=>O(st)),o.value&&(a=new gf(o.value,{type:"line",options:{responsive:!0,maintainAspectRatio:!0,scales:{x:{grid:{display:!1,drawBorder:!1},ticks:{display:!1}},y:{grid:{display:!1,drawBorder:!1},ticks:{display:!1}}},plugins:{legend:{display:!1},tooltip:{enabled:!1,external:j,padding:12}}},data:{datasets:[g.value],labels:A.value}}))};return m.onMounted(()=>{lt()}),(st,yt)=>(m.openBlock(),m.createElementBlock("div",F2,[m.createElementVNode("div",B2,[m.createElementVNode("div",V2,[m.createElementVNode("div",$2,[m.createElementVNode("div",Y2,m.toDisplayString(t.historyData.test_name),1),m.createElementVNode("div",null,m.toDisplayString(`${st.$t("psc.test_result_measured_in")} ${t.historyData.uom_code}`),1)]),m.withDirectives(m.createElementVNode("div",W2,[m.createVNode(m.unref(gc),{size:"sm",type:"icon",class:"psc-rounded-full psc-w-8 psc-h-8 !psc-p-0 psc-border psc-border-black/[0.1] psc-bg-transparent",disabled:f.value.no===0,onClick:H},{default:m.withCtx(()=>[U2]),_:1},8,["disabled"]),m.createVNode(m.unref(gc),{size:"sm",type:"icon",class:"psc-rounded-full psc-w-8 psc-h-8 !psc-p-0 psc-border psc-border-black/[0.1] psc-bg-transparent",disabled:f.value.no>=m.unref(d)-1,onClick:R},{default:m.withCtx(()=>[H2]),_:1},8,["disabled"])],512),[[m.vShow,m.unref(M)]])]),m.createElementVNode("div",z2,[m.createElementVNode("canvas",{ref_key:"chartRef",ref:o},null,512)])]),m.createElementVNode("div",j2,[m.createElementVNode("div",G2,m.toDisplayString(`${st.$t("psc.test_result_about")} ${t.historyData.test_name}`),1),m.createElementVNode("div",K2,m.toDisplayString(t.historyData.purpose),1)])]))}}),EB="",SB="",OE=Qs(q2,[["__scopeId","data-v-8a6cf4c9"]]),X2=m.createElementVNode("div",null,null,-1),Z2={key:0,class:"history-content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"},J2={class:"psc-animate-spin"},Q2={key:1,class:"history-content"},tP=m.defineComponent({__name:"TestResultHistoryDetailModal",props:{modelValue:{type:Boolean},historyData:null,loading:{type:Boolean}},emits:["update:modelValue"],setup(n,{emit:t}){const e=n,s=m.computed({get(){return e.modelValue},set(o){t("update:modelValue",o)}}),a=()=>{s.value=!1};return(o,u)=>(m.openBlock(),m.createBlock(m.unref(jk),{modelValue:m.unref(s),"onUpdate:modelValue":u[1]||(u[1]=d=>m.isRef(s)?s.value=d:null),class:"test-result-history-detail-modal",fullscreen:""},{default:m.withCtx(()=>[m.createVNode(m.unref(Gk),{class:"psc-pb-0"},{default:m.withCtx(()=>[X2,m.createElementVNode("div",null,[m.createElementVNode("i",{class:"dgic-chevron-down-thin psc-text-3xl psc-cursor-pointer psc-text-black/[0.85]",onClick:u[0]||(u[0]=d=>a())})])]),_:1}),m.createVNode(m.unref(Kk),{class:"modal-body psc-py-0 psc-px-4"},{default:m.withCtx(()=>[e.loading?(m.openBlock(),m.createElementBlock("div",Z2,[m.createElementVNode("div",J2,[m.createVNode(m.unref(na),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(m.openBlock(),m.createElementBlock("div",Q2,[m.createVNode(OE,{class:"psc-pb-4","history-data":e.historyData},null,8,["history-data"])]))]),_:1})]),_:1},8,["modelValue"]))}}),DB="",eP=m.defineComponent({__name:"DateItem",props:{value:null,disabled:{type:Boolean},selected:{type:Boolean}},setup(n){const t=n,{dayShortNames:e}=Zc();return(s,a)=>(m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass([{"psc-cursor-pointer":!t.disabled},"psc-max-w-[38px]"])},[m.createElementVNode("div",{class:m.normalizeClass(["psc-w-[38px] psc-h-[38px] psc-rounded-full psc-p-2.5 psc-flex psc-items-center psc-justify-center",{"psc-text-black/[0.4] psc-border psc-border-black/[0.1]":t.disabled,"psc-text-black/[0.85] psc-bg-[#e6f0fe]":!t.disabled,"psc-text-white !psc-bg-primary psc-font-semibold":t.selected}])},[m.createElementVNode("span",null,m.toDisplayString(t.value.getDate()),1)],2),m.createElementVNode("div",{class:m.normalizeClass(["psc-text-center psc-mt-1",{"psc-text-black/[0.4]":t.disabled,"psc-text-black/[0.6]":!t.disabled,"psc-font-semibold psc-text-black/[0.85]":t.selected}])},m.toDisplayString(m.unref(e)[t.value.getDay()]),3)],2))}}),nP=m.defineComponent({__name:"DayPartItem",props:{text:null,disabled:{type:Boolean},selected:{type:Boolean}},setup(n){const t=n;return(e,s)=>(m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass(["psc-py-3 psc-rounded-lg psc-font-semibold psc-border psc-text-center",{"psc-text-black/[0.4] psc-border-black/[0.1]":t.disabled,"psc-text-black/[0.85] psc-border-black/[0.25] psc-cursor-pointer":!t.disabled,"!psc-text-primary psc-border-primary psc-bg-[#e6f0fe]":t.selected}])},m.toDisplayString(t.text),3))}}),LE=(n,t)=>{let e=n.toString();for(;e.length<t;)e="0"+e;return e},iP=m.defineComponent({__name:"TimeSlotItem",props:{timeSlot:null,selected:{type:Boolean},icon:{default:""}},setup(n){const t=n,e=s=>`${LE(s.getHours(),2)}:${LE(s.getMinutes(),2)}`;return(s,a)=>(m.openBlock(),m.createElementBlock("div",{class:m.normalizeClass(["psc-py-3 psc-rounded-lg psc-text-black/[0.85] psc-font-semibold psc-border psc-border-black/[0.25] psc-flex psc-items-center psc-justify-center psc-cursor-pointer",{"!psc-text-primary psc-border-primary psc-bg-[#e6f0fe]":t.selected}])},[t.icon?(m.openBlock(),m.createElementBlock("i",{key:0,class:m.normalizeClass([t.icon,"psc-text-xl psc-mr-2"])},null,2)):m.createCommentVNode("",!0),m.createElementVNode("span",null,m.toDisplayString(e(t.timeSlot)),1)],2))}}),sP={class:"book-appointment psc-space-y-8"},rP={class:"psc-flex"},aP={key:0},oP={class:"psc-pb-6 psc-font-semibold psc-text-black/[0.85]"},lP={class:"psc-flex -psc-mx-2"},cP=m.defineComponent({__name:"BookAppointment",props:{timeSlots:null,disabled:{type:Boolean,default:!1}},emits:["book"],setup(n,{expose:t,emit:e}){const s=n,{t:a}=Xn(),{formatDateHuge:o}=Zc(),u=m.computed(()=>s.timeSlots.map(j=>new Date(j))),d=m.ref([]),f=m.ref(),g=m.ref(),v=m.ref(),D=m.computed(()=>{var q;const j={[_s.Morning]:"dgic-morning-thin",[_s.Afternoon]:"dgic-afternoon-thin",[_s.Evening]:"dgic-evening-thin"};return(q=g.value)!=null&&q.value?j[g.value.value]:""}),T=m.computed(()=>({[_s.Morning]:a("psc.date_time.day_parts.morning"),[_s.Afternoon]:a("psc.date_time.day_parts.afternoon"),[_s.Evening]:a("psc.date_time.day_parts.evening")})),A=()=>{var j;e("book",(j=v.value)==null?void 0:j.toISOString())},M=()=>{H(),g.value=void 0,v.value=void 0},W=j=>{j.disabled||s.disabled||(f.value=j,g.value=void 0,v.value=void 0)},U=j=>{j.disabled||s.disabled||(g.value=j,v.value=void 0)},O=j=>{s.disabled||(v.value=j)},R=(j,q,lt)=>{const st=j.split(":");let yt=new Date(lt).getTime();yt=new Date(yt).setHours(+st[0]),yt=new Date(yt).setMinutes(+st[1]),yt=new Date(yt).setSeconds(0),yt=new Date(yt).setMilliseconds(0);const mt=q.split(":");let wt=new Date(lt).getTime();return wt=new Date(wt).setHours(+mt[0]),wt=new Date(wt).setMinutes(+mt[1]),wt=new Date(wt).setSeconds(0),wt=new Date(wt).setMilliseconds(0),u.value.filter(Ot=>new Date(yt)<=Ot&&Ot<=new Date(wt))},H=()=>{const j=d.value.find(q=>!q.disabled);j&&(f.value=j)},Y=()=>{for(let j=0;j<7;j++){const q=new Date,lt=new Date(q.setDate(q.getDate()+j)),st=R("07:00","12:50",lt),yt=R("13:00","18:50",lt),mt=R("19:00","21:00",lt),wt=[{text:T.value[_s.Morning],value:_s.Morning,start:"07:00",end:"12:50",timeSlots:st,disabled:st.length===0},{text:T.value[_s.Afternoon],value:_s.Afternoon,start:"13:00",end:"18:50",timeSlots:yt,disabled:yt.length===0},{text:T.value[_s.Evening],value:_s.Evening,start:"19:00",end:"21:00",timeSlots:mt,disabled:mt.length===0}];d.value.push({value:lt,disabled:wt.every(Ot=>Ot.disabled),dayParts:wt})}};return(()=>{Y(),H()})(),t({resetAll:M}),(j,q)=>{var lt,st,yt;return m.openBlock(),m.createElementBlock("div",sP,[m.createElementVNode("div",rP,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(d.value,(mt,wt)=>{var Ot;return m.openBlock(),m.createElementBlock("div",{key:`date${wt}`,class:"book-appointment__date"},[m.createVNode(eP,{value:mt.value,disabled:mt.disabled,selected:((Ot=f.value)==null?void 0:Ot.value)===mt.value,onClick:ae=>W(mt)},null,8,["value","disabled","selected","onClick"])])}),128))]),f.value?(m.openBlock(),m.createElementBlock("div",aP,[m.createElementVNode("div",oP,m.toDisplayString(m.unref(o)(f.value.value)),1),m.createElementVNode("div",lP,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(f.value.dayParts,(mt,wt)=>{var Ot;return m.openBlock(),m.createElementBlock("div",{key:`dayPart${wt}`,class:"psc-w-1/3 psc-px-2"},[m.createVNode(nP,{text:mt.text,disabled:mt.disabled,selected:((Ot=g.value)==null?void 0:Ot.value)===mt.value,onClick:ae=>U(mt)},null,8,["text","disabled","selected","onClick"])])}),128))])])):m.createCommentVNode("",!0),m.createElementVNode("div",null,[m.withDirectives(m.createElementVNode("div",{class:"psc-pb-6 psc-font-semibold psc-text-black/[0.85]"},m.toDisplayString(j.$t("psc.test_result_opening_slots")),513),[[m.vShow,g.value]]),m.createElementVNode("div",{class:m.normalizeClass(["psc-flex psc-flex-wrap -psc-mx-2 -psc-my-2 psc-overflow-y-auto psc-max-h-[20vh] psc-h-[20vh] psc-transition-[max-height]",{"!psc-max-h-0":!g.value,"!psc-max-h-[11vh]":((st=(lt=g.value)==null?void 0:lt.timeSlots)==null?void 0:st.length)&&g.value.timeSlots.length<=3}])},[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList((yt=g.value)==null?void 0:yt.timeSlots,(mt,wt)=>(m.openBlock(),m.createElementBlock("div",{key:`timeSlot${wt}`,class:"psc-w-1/3 psc-px-2 psc-py-2"},[m.createVNode(iP,{"time-slot":mt,selected:v.value===mt,icon:m.unref(D),onClick:Ot=>O(mt)},null,8,["time-slot","selected","icon","onClick"])]))),128))],2)]),m.createVNode(m.unref(gc),{type:"primary",class:"psc-w-full",disabled:!v.value||s.disabled,onClick:A},{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString(j.$t("psc.test_result_book_appointment")),1)]),_:1},8,["disabled"])])}}}),CB="",IE=Qs(cP,[["__scopeId","data-v-94386939"]]),uP={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-pb-8"},hP={class:"psc-w-full psc-text-center"},dP={class:"psc-w-full psc-text-center psc-text-xl psc-font-semibold psc-text-black/[0.85]"},fP={class:"psc-w-full psc-text-center psc-text-black/[0.6]"},pP=m.defineComponent({__name:"ErrorMessage",setup(n){return(t,e)=>(m.openBlock(),m.createElementBlock("div",uP,[m.createElementVNode("div",hP,[m.createVNode(m.unref(na),{icon:"dgic-circle-error-fill",class:"psc-text-[80px] psc-text-error"})]),m.createElementVNode("div",dP,m.toDisplayString(t.$t("psc.test_result_book_appointment_error_title")),1),m.createElementVNode("div",fP,m.toDisplayString(t.$t("psc.test_result_book_appointment_error_description")),1)]))}}),mP={class:"psc-flex psc-flex-wrap psc-space-y-4 psc-pb-8"},_P={class:"psc-w-full psc-text-center"},gP={class:"psc-w-full psc-text-center psc-text-xl psc-font-semibold psc-text-black/[0.85]"},yP={class:"psc-w-full psc-text-center psc-text-black/[0.6]"},bP=m.defineComponent({__name:"SuccessMessage",props:{timeSlot:null},setup(n){const t=n,{formatTime:e,formatDate:s}=Zc(),a=m.computed(()=>e(new Date(t.timeSlot))),o=m.computed(()=>s(new Date(t.timeSlot)));return(u,d)=>(m.openBlock(),m.createElementBlock("div",mP,[m.createElementVNode("div",_P,[m.createVNode(m.unref(na),{icon:"dgic-circle-check",class:"psc-text-[80px] psc-text-success"})]),m.createElementVNode("div",gP,m.toDisplayString(u.$t("psc.test_result_successfully_booked")),1),m.createElementVNode("div",yP,m.toDisplayString(u.$t("psc.test_result_have_an_appointment_with_doctor",{time:m.unref(a),date:m.unref(o)})),1)]))}}),vP={class:"psc-flex-1 psc-text-center psc-font-semibold psc-text-black/[0.85]"},kP={class:"psc-flex-1 psc-text-right"},xP={key:0,class:"modal-body__content psc-flex psc-justify-center psc-items-center psc-pb-[53px]"},wP={class:"psc-animate-spin"},EP={key:1,class:"modal-body__content"},SP=m.defineComponent({__name:"BookAppointmentModal",props:{modelValue:{type:Boolean},timeSlots:null,loading:{type:Boolean},disabled:{type:Boolean},showSuccess:{type:Boolean,default:!1},showError:{type:Boolean,default:!1}},emits:["update:modelValue","book"],setup(n,{emit:t}){const e=n,s=m.ref(null),a=m.computed({get(){return e.modelValue},set(g){t("update:modelValue",g)}}),o=m.ref(""),u=g=>{o.value=g,t("book",g)},d=()=>{var g;(g=s.value)==null||g.resetAll()},f=()=>{a.value=!1};return(g,v)=>(m.openBlock(),m.createBlock(m.unref(jk),{modelValue:m.unref(a),"onUpdate:modelValue":v[1]||(v[1]=D=>m.isRef(a)?a.value=D:null),class:"book-appointment-modal",fullscreen:""},{default:m.withCtx(()=>[m.createVNode(m.unref(Gk),{class:"!psc-items-center"},{default:m.withCtx(()=>[!e.showSuccess&&!e.showError?(m.openBlock(),m.createElementBlock(m.Fragment,{key:0},[m.createElementVNode("div",{class:"psc-flex-1 psc-text-primary psc-text-sm psc-cursor-pointer hover:psc-text-primary/[0.9]",onClick:d},m.toDisplayString(g.$t("psc.test_result_reset_all")),1),m.createElementVNode("div",vP,m.toDisplayString(g.$t("psc.test_result_choose_time")),1)],64)):m.createCommentVNode("",!0),m.createElementVNode("div",kP,[m.createElementVNode("i",{class:"dgic-close-round psc-text-2xl psc-cursor-pointer psc-text-[#6a6b7a]",onClick:v[0]||(v[0]=D=>f())})])]),_:1}),m.createVNode(m.unref(Kk),{class:"modal-body !psc-py-0 !psc-px-4"},{default:m.withCtx(()=>[e.loading?(m.openBlock(),m.createElementBlock("div",xP,[m.createElementVNode("div",wP,[m.createVNode(m.unref(na),{icon:"dgic-spinner-8",class:"psc-text-4xl"})])])):(m.openBlock(),m.createElementBlock("div",EP,[!e.showSuccess&&!e.showError?(m.openBlock(),m.createBlock(IE,{key:0,ref_key:"bookAppointmentRef",ref:s,class:"psc-pb-4","time-slots":e.timeSlots,disabled:e.disabled,onBook:u},null,8,["time-slots","disabled"])):m.createCommentVNode("",!0),e.showSuccess?(m.openBlock(),m.createBlock(bP,{key:1,"time-slot":o.value},null,8,["time-slot"])):m.createCommentVNode("",!0),e.showError?(m.openBlock(),m.createBlock(pP,{key:2})):m.createCommentVNode("",!0)]))]),_:1})]),_:1},8,["modelValue"]))}}),TB="";var Ic=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function DP(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var PE={exports:{}};(function(n,t){(function(e,s){n.exports=s()})(Ic,function(){var e;function s(){return e.apply(null,arguments)}function a(l){return l instanceof Array||Object.prototype.toString.call(l)==="[object Array]"}function o(l){return l!=null&&Object.prototype.toString.call(l)==="[object Object]"}function u(l,h){return Object.prototype.hasOwnProperty.call(l,h)}function d(l){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(l).length===0;for(var h in l)if(u(l,h))return;return 1}function f(l){return l===void 0}function g(l){return typeof l=="number"||Object.prototype.toString.call(l)==="[object Number]"}function v(l){return l instanceof Date||Object.prototype.toString.call(l)==="[object Date]"}function D(l,h){for(var _=[],b=l.length,C=0;C<b;++C)_.push(h(l[C],C));return _}function T(l,h){for(var _ in h)u(h,_)&&(l[_]=h[_]);return u(h,"toString")&&(l.toString=h.toString),u(h,"valueOf")&&(l.valueOf=h.valueOf),l}function A(l,h,_,b){return Ds(l,h,_,b,!0).utc()}function M(l){return l._pf==null&&(l._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),l._pf}function W(l){if(l._isValid==null){var h=M(l),_=O.call(h.parsedDateParts,function(b){return b!=null}),_=!isNaN(l._d.getTime())&&h.overflow<0&&!h.empty&&!h.invalidEra&&!h.invalidMonth&&!h.invalidWeekday&&!h.weekdayMismatch&&!h.nullInput&&!h.invalidFormat&&!h.userInvalidated&&(!h.meridiem||h.meridiem&&_);if(l._strict&&(_=_&&h.charsLeftOver===0&&h.unusedTokens.length===0&&h.bigHour===void 0),Object.isFrozen!=null&&Object.isFrozen(l))return _;l._isValid=_}return l._isValid}function U(l){var h=A(NaN);return l!=null?T(M(h),l):M(h).userInvalidated=!0,h}var O=Array.prototype.some||function(l){for(var h=Object(this),_=h.length>>>0,b=0;b<_;b++)if(b in h&&l.call(this,h[b],b,h))return!0;return!1},R=s.momentProperties=[],H=!1;function Y(l,h){var _,b,C,P=R.length;if(f(h._isAMomentObject)||(l._isAMomentObject=h._isAMomentObject),f(h._i)||(l._i=h._i),f(h._f)||(l._f=h._f),f(h._l)||(l._l=h._l),f(h._strict)||(l._strict=h._strict),f(h._tzm)||(l._tzm=h._tzm),f(h._isUTC)||(l._isUTC=h._isUTC),f(h._offset)||(l._offset=h._offset),f(h._pf)||(l._pf=M(h)),f(h._locale)||(l._locale=h._locale),0<P)for(_=0;_<P;_++)f(C=h[b=R[_]])||(l[b]=C);return l}function I(l){Y(this,l),this._d=new Date(l._d!=null?l._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),H===!1&&(H=!0,s.updateOffset(this),H=!1)}function j(l){return l instanceof I||l!=null&&l._isAMomentObject!=null}function q(l){s.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+l)}function lt(l,h){var _=!0;return T(function(){if(s.deprecationHandler!=null&&s.deprecationHandler(null,l),_){for(var b,C,P=[],K=arguments.length,Q=0;Q<K;Q++){if(b="",typeof arguments[Q]=="object"){for(C in b+=`
|
|
101
101
|
[`+Q+"] ",arguments[0])u(arguments[0],C)&&(b+=C+": "+arguments[0][C]+", ");b=b.slice(0,-2)}else b=arguments[Q];P.push(b)}q(l+`
|
|
102
102
|
Arguments: `+Array.prototype.slice.call(P).join("")+`
|
|
103
103
|
`+new Error().stack),_=!1}return h.apply(this,arguments)},h)}var st={};function yt(l,h){s.deprecationHandler!=null&&s.deprecationHandler(l,h),st[l]||(q(h),st[l]=!0)}function mt(l){return typeof Function<"u"&&l instanceof Function||Object.prototype.toString.call(l)==="[object Function]"}function wt(l,h){var _,b=T({},l);for(_ in h)u(h,_)&&(o(l[_])&&o(h[_])?(b[_]={},T(b[_],l[_]),T(b[_],h[_])):h[_]!=null?b[_]=h[_]:delete b[_]);for(_ in l)u(l,_)&&!u(h,_)&&o(l[_])&&(b[_]=T({},b[_]));return b}function Ot(l){l!=null&&this.set(l)}s.suppressDeprecationWarnings=!1,s.deprecationHandler=null;var ae=Object.keys||function(l){var h,_=[];for(h in l)u(l,h)&&_.push(h);return _};function Ct(l,h,_){var b=""+Math.abs(l);return(0<=l?_?"+":"":"-")+Math.pow(10,Math.max(0,h-b.length)).toString().substr(1)+b}var Wt=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,Vt=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,ee={},ve={};function dt(l,h,_,b){var C=typeof b=="string"?function(){return this[b]()}:b;l&&(ve[l]=C),h&&(ve[h[0]]=function(){return Ct(C.apply(this,arguments),h[1],h[2])}),_&&(ve[_]=function(){return this.localeData().ordinal(C.apply(this,arguments),l)})}function Qt(l,h){return l.isValid()?(h=Ze(h,l.localeData()),ee[h]=ee[h]||function(_){for(var b,C=_.match(Wt),P=0,K=C.length;P<K;P++)ve[C[P]]?C[P]=ve[C[P]]:C[P]=(b=C[P]).match(/\[[\s\S]/)?b.replace(/^\[|\]$/g,""):b.replace(/\\/g,"");return function(Q){for(var ut="",at=0;at<K;at++)ut+=mt(C[at])?C[at].call(Q,_):C[at];return ut}}(h),ee[h](l)):l.localeData().invalidDate()}function Ze(l,h){var _=5;function b(C){return h.longDateFormat(C)||C}for(Vt.lastIndex=0;0<=_&&Vt.test(l);)l=l.replace(Vt,b),Vt.lastIndex=0,--_;return l}var Ve={};function Mt(l,h){var _=l.toLowerCase();Ve[_]=Ve[_+"s"]=Ve[h]=l}function Kt(l){return typeof l=="string"?Ve[l]||Ve[l.toLowerCase()]:void 0}function Ae(l){var h,_,b={};for(_ in l)u(l,_)&&(h=Kt(_))&&(b[h]=l[_]);return b}var je={};function Ut(l,h){je[l]=h}function ke(l){return l%4==0&&l%100!=0||l%400==0}function de(l){return l<0?Math.ceil(l)||0:Math.floor(l)}function Z(h){var h=+h,_=0;return _=h!=0&&isFinite(h)?de(h):_}function B(l,h){return function(_){return _!=null?(k(this,l,_),s.updateOffset(this,h),this):E(this,l)}}function E(l,h){return l.isValid()?l._d["get"+(l._isUTC?"UTC":"")+h]():NaN}function k(l,h,_){l.isValid()&&!isNaN(_)&&(h==="FullYear"&&ke(l.year())&&l.month()===1&&l.date()===29?(_=Z(_),l._d["set"+(l._isUTC?"UTC":"")+h](_,l.month(),xs(_,l.month()))):l._d["set"+(l._isUTC?"UTC":"")+h](_))}var w=/\d/,vt=/\d\d/,z=/\d{3}/,oe=/\d{4}/,we=/[+-]?\d{6}/,V=/\d\d?/,et=/\d\d\d\d?/,gt=/\d\d\d\d\d\d?/,ft=/\d{1,3}/,zn=/\d{1,4}/,bn=/[+-]?\d{1,6}/,nt=/\d+/,ot=/[+-]?\d+/,rt=/Z|[+-]\d\d:?\d\d/gi,pt=/Z|[+-]\d\d(?::?\d\d)?/gi,Ht=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function ct(l,h,_){Je[l]=mt(h)?h:function(b,C){return b&&_?_:h}}function We(l,h){return u(Je,l)?Je[l](h._strict,h._locale):new RegExp(Gt(l.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(_,b,C,P,K){return b||C||P||K})))}function Gt(l){return l.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}var Je={},Ue={};function Bt(l,h){var _,b,C=h;for(typeof l=="string"&&(l=[l]),g(h)&&(C=function(P,K){K[h]=Z(P)}),b=l.length,_=0;_<b;_++)Ue[l[_]]=C}function On(l,h){Bt(l,function(_,b,C,P){C._w=C._w||{},h(_,C._w,C,P)})}var re,Ce=0,ln=1,tn=2,pe=3,cn=4,Ln=5,ni=6,ya=7,ba=8;function xs(l,h){if(isNaN(l)||isNaN(h))return NaN;var _=(h%(_=12)+_)%_;return l+=(h-_)/12,_==1?ke(l)?29:28:31-_%7%2}re=Array.prototype.indexOf||function(l){for(var h=0;h<this.length;++h)if(this[h]===l)return h;return-1},dt("M",["MM",2],"Mo",function(){return this.month()+1}),dt("MMM",0,0,function(l){return this.localeData().monthsShort(this,l)}),dt("MMMM",0,0,function(l){return this.localeData().months(this,l)}),Mt("month","M"),Ut("month",8),ct("M",V),ct("MM",V,vt),ct("MMM",function(l,h){return h.monthsShortRegex(l)}),ct("MMMM",function(l,h){return h.monthsRegex(l)}),Bt(["M","MM"],function(l,h){h[ln]=Z(l)-1}),Bt(["MMM","MMMM"],function(l,h,_,b){b=_._locale.monthsParse(l,b,_._strict),b!=null?h[ln]=b:M(_).invalidMonth=l});var $i="January_February_March_April_May_June_July_August_September_October_November_December".split("_"),va="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),ka=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/,xa=Ht,rl=Ht;function wa(l,h){var _;if(l.isValid()){if(typeof h=="string"){if(/^\d+$/.test(h))h=Z(h);else if(!g(h=l.localeData().monthsParse(h)))return}_=Math.min(l.date(),xs(l.year(),h)),l._d["set"+(l._isUTC?"UTC":"")+"Month"](h,_)}}function Ea(l){return l!=null?(wa(this,l),s.updateOffset(this,!0),this):E(this,"Month")}function ws(){function l(K,Q){return Q.length-K.length}for(var h,_=[],b=[],C=[],P=0;P<12;P++)h=A([2e3,P]),_.push(this.monthsShort(h,"")),b.push(this.months(h,"")),C.push(this.months(h,"")),C.push(this.monthsShort(h,""));for(_.sort(l),b.sort(l),C.sort(l),P=0;P<12;P++)_[P]=Gt(_[P]),b[P]=Gt(b[P]);for(P=0;P<24;P++)C[P]=Gt(C[P]);this._monthsRegex=new RegExp("^("+C.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=new RegExp("^("+b.join("|")+")","i"),this._monthsShortStrictRegex=new RegExp("^("+_.join("|")+")","i")}function Yi(l){return ke(l)?366:365}dt("Y",0,0,function(){var l=this.year();return l<=9999?Ct(l,4):"+"+l}),dt(0,["YY",2],0,function(){return this.year()%100}),dt(0,["YYYY",4],0,"year"),dt(0,["YYYYY",5],0,"year"),dt(0,["YYYYYY",6,!0],0,"year"),Mt("year","y"),Ut("year",1),ct("Y",ot),ct("YY",V,vt),ct("YYYY",zn,oe),ct("YYYYY",bn,we),ct("YYYYYY",bn,we),Bt(["YYYYY","YYYYYY"],Ce),Bt("YYYY",function(l,h){h[Ce]=l.length===2?s.parseTwoDigitYear(l):Z(l)}),Bt("YY",function(l,h){h[Ce]=s.parseTwoDigitYear(l)}),Bt("Y",function(l,h){h[Ce]=parseInt(l,10)}),s.parseTwoDigitYear=function(l){return Z(l)+(68<Z(l)?1900:2e3)};var es=B("FullYear",!0);function sr(l,h,_,b,C,P,K){var Q;return l<100&&0<=l?(Q=new Date(l+400,h,_,b,C,P,K),isFinite(Q.getFullYear())&&Q.setFullYear(l)):Q=new Date(l,h,_,b,C,P,K),Q}function Wi(l){var h;return l<100&&0<=l?((h=Array.prototype.slice.call(arguments))[0]=l+400,h=new Date(Date.UTC.apply(null,h)),isFinite(h.getUTCFullYear())&&h.setUTCFullYear(l)):h=new Date(Date.UTC.apply(null,arguments)),h}function Es(l,h,_){return _=7+h-_,_-(7+Wi(l,0,_).getUTCDay()-h)%7-1}function Sa(l,K,Q,b,C){var P,K=1+7*(K-1)+(7+Q-b)%7+Es(l,b,C),Q=K<=0?Yi(P=l-1)+K:K>Yi(l)?(P=l+1,K-Yi(l)):(P=l,K);return{year:P,dayOfYear:Q}}function Ui(l,h,_){var b,C,P=Es(l.year(),h,_),P=Math.floor((l.dayOfYear()-P-1)/7)+1;return P<1?b=P+In(C=l.year()-1,h,_):P>In(l.year(),h,_)?(b=P-In(l.year(),h,_),C=l.year()+1):(C=l.year(),b=P),{week:b,year:C}}function In(l,C,_){var b=Es(l,C,_),C=Es(l+1,C,_);return(Yi(l)-b+C)/7}dt("w",["ww",2],"wo","week"),dt("W",["WW",2],"Wo","isoWeek"),Mt("week","w"),Mt("isoWeek","W"),Ut("week",5),Ut("isoWeek",5),ct("w",V),ct("ww",V,vt),ct("W",V),ct("WW",V,vt),On(["w","ww","W","WW"],function(l,h,_,b){h[b.substr(0,1)]=Z(l)});function rr(l,h){return l.slice(h,7).concat(l.slice(0,h))}dt("d",0,"do","day"),dt("dd",0,0,function(l){return this.localeData().weekdaysMin(this,l)}),dt("ddd",0,0,function(l){return this.localeData().weekdaysShort(this,l)}),dt("dddd",0,0,function(l){return this.localeData().weekdays(this,l)}),dt("e",0,0,"weekday"),dt("E",0,0,"isoWeekday"),Mt("day","d"),Mt("weekday","e"),Mt("isoWeekday","E"),Ut("day",11),Ut("weekday",11),Ut("isoWeekday",11),ct("d",V),ct("e",V),ct("E",V),ct("dd",function(l,h){return h.weekdaysMinRegex(l)}),ct("ddd",function(l,h){return h.weekdaysShortRegex(l)}),ct("dddd",function(l,h){return h.weekdaysRegex(l)}),On(["dd","ddd","dddd"],function(l,h,_,b){b=_._locale.weekdaysParse(l,b,_._strict),b!=null?h.d=b:M(_).invalidWeekday=l}),On(["d","e","E"],function(l,h,_,b){h[b]=Z(l)});var Hi="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Da="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),zi="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),al=Ht,ol=Ht,ll=Ht;function ar(){function l(at,xt){return xt.length-at.length}for(var h,_,b,C=[],P=[],K=[],Q=[],ut=0;ut<7;ut++)b=A([2e3,1]).day(ut),h=Gt(this.weekdaysMin(b,"")),_=Gt(this.weekdaysShort(b,"")),b=Gt(this.weekdays(b,"")),C.push(h),P.push(_),K.push(b),Q.push(h),Q.push(_),Q.push(b);C.sort(l),P.sort(l),K.sort(l),Q.sort(l),this._weekdaysRegex=new RegExp("^("+Q.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+K.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+P.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+C.join("|")+")","i")}function or(){return this.hours()%12||12}function Ca(l,h){dt(l,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),h)})}function ji(l,h){return h._meridiemParse}dt("H",["HH",2],0,"hour"),dt("h",["hh",2],0,or),dt("k",["kk",2],0,function(){return this.hours()||24}),dt("hmm",0,0,function(){return""+or.apply(this)+Ct(this.minutes(),2)}),dt("hmmss",0,0,function(){return""+or.apply(this)+Ct(this.minutes(),2)+Ct(this.seconds(),2)}),dt("Hmm",0,0,function(){return""+this.hours()+Ct(this.minutes(),2)}),dt("Hmmss",0,0,function(){return""+this.hours()+Ct(this.minutes(),2)+Ct(this.seconds(),2)}),Ca("a",!0),Ca("A",!1),Mt("hour","h"),Ut("hour",13),ct("a",ji),ct("A",ji),ct("H",V),ct("h",V),ct("k",V),ct("HH",V,vt),ct("hh",V,vt),ct("kk",V,vt),ct("hmm",et),ct("hmmss",gt),ct("Hmm",et),ct("Hmmss",gt),Bt(["H","HH"],pe),Bt(["k","kk"],function(l,h,_){l=Z(l),h[pe]=l===24?0:l}),Bt(["a","A"],function(l,h,_){_._isPm=_._locale.isPM(l),_._meridiem=l}),Bt(["h","hh"],function(l,h,_){h[pe]=Z(l),M(_).bigHour=!0}),Bt("hmm",function(l,h,_){var b=l.length-2;h[pe]=Z(l.substr(0,b)),h[cn]=Z(l.substr(b)),M(_).bigHour=!0}),Bt("hmmss",function(l,h,_){var b=l.length-4,C=l.length-2;h[pe]=Z(l.substr(0,b)),h[cn]=Z(l.substr(b,2)),h[Ln]=Z(l.substr(C)),M(_).bigHour=!0}),Bt("Hmm",function(l,h,_){var b=l.length-2;h[pe]=Z(l.substr(0,b)),h[cn]=Z(l.substr(b))}),Bt("Hmmss",function(l,h,_){var b=l.length-4,C=l.length-2;h[pe]=Z(l.substr(0,b)),h[cn]=Z(l.substr(b,2)),h[Ln]=Z(l.substr(C))}),Ht=B("Hours",!0);var Gi,Ki={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:$i,monthsShort:va,week:{dow:0,doy:6},weekdays:Hi,weekdaysMin:zi,weekdaysShort:Da,meridiemParse:/[ap]\.?m?\.?/i},ie={},qi={};function Ta(l){return l&&l.toLowerCase().replace("_","-")}function Ma(l){for(var h,_,b,C,P=0;P<l.length;){for(h=(C=Ta(l[P]).split("-")).length,_=(_=Ta(l[P+1]))?_.split("-"):null;0<h;){if(b=Xi(C.slice(0,h).join("-")))return b;if(_&&_.length>=h&&function(K,Q){for(var ut=Math.min(K.length,Q.length),at=0;at<ut;at+=1)if(K[at]!==Q[at])return at;return ut}(C,_)>=h-1)break;h--}P++}return Gi}function Xi(l){var h;if(ie[l]===void 0&&!0&&n&&n.exports&&l.match("^[^/\\\\]*$")!=null)try{h=Gi._abbr,DP("./locale/"+l),Pn(h)}catch{ie[l]=null}return ie[l]}function Pn(l,h){return l&&((h=f(h)?Rn(l):lr(l,h))?Gi=h:typeof console<"u"&&console.warn&&console.warn("Locale "+l+" not found. Did you forget to load it?")),Gi._abbr}function lr(l,h){if(h===null)return delete ie[l],null;var _,b=Ki;if(h.abbr=l,ie[l]!=null)yt("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),b=ie[l]._config;else if(h.parentLocale!=null)if(ie[h.parentLocale]!=null)b=ie[h.parentLocale]._config;else{if((_=Xi(h.parentLocale))==null)return qi[h.parentLocale]||(qi[h.parentLocale]=[]),qi[h.parentLocale].push({name:l,config:h}),null;b=_._config}return ie[l]=new Ot(wt(b,h)),qi[l]&&qi[l].forEach(function(C){lr(C.name,C.config)}),Pn(l),ie[l]}function Rn(l){var h;if(!(l=l&&l._locale&&l._locale._abbr?l._locale._abbr:l))return Gi;if(!a(l)){if(h=Xi(l))return h;l=[l]}return Ma(l)}function cr(l){var h=l._a;return h&&M(l).overflow===-2&&(h=h[ln]<0||11<h[ln]?ln:h[tn]<1||h[tn]>xs(h[Ce],h[ln])?tn:h[pe]<0||24<h[pe]||h[pe]===24&&(h[cn]!==0||h[Ln]!==0||h[ni]!==0)?pe:h[cn]<0||59<h[cn]?cn:h[Ln]<0||59<h[Ln]?Ln:h[ni]<0||999<h[ni]?ni:-1,M(l)._overflowDayOfYear&&(h<Ce||tn<h)&&(h=tn),M(l)._overflowWeeks&&h===-1&&(h=ya),M(l)._overflowWeekday&&h===-1&&(h=ba),M(l).overflow=h),l}var cl=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Na=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,Aa=/Z|[+-]\d\d(?::?\d\d)?/,Zi=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],Ji=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],ul=/^\/?Date\((-?\d+)/i,Oa=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,Ss={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function ur(l){var h,_,b,C,P,K,ut=l._i,Q=cl.exec(ut)||Na.exec(ut),ut=Zi.length,at=Ji.length;if(Q){for(M(l).iso=!0,h=0,_=ut;h<_;h++)if(Zi[h][1].exec(Q[1])){C=Zi[h][0],b=Zi[h][2]!==!1;break}if(C==null)l._isValid=!1;else{if(Q[3]){for(h=0,_=at;h<_;h++)if(Ji[h][1].exec(Q[3])){P=(Q[2]||" ")+Ji[h][0];break}if(P==null)return void(l._isValid=!1)}if(b||P==null){if(Q[4]){if(!Aa.exec(Q[4]))return void(l._isValid=!1);K="Z"}l._f=C+(P||"")+(K||""),dr(l)}else l._isValid=!1}}else l._isValid=!1}function hl(l,h,_,b,C,P){return l=[function(K){K=parseInt(K,10);{if(K<=49)return 2e3+K;if(K<=999)return 1900+K}return K}(l),va.indexOf(h),parseInt(_,10),parseInt(b,10),parseInt(C,10)],P&&l.push(parseInt(P,10)),l}function hr(l){var h,_,b,C,P=Oa.exec(l._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));P?(h=hl(P[4],P[3],P[2],P[5],P[6],P[7]),_=P[1],b=h,C=l,_&&Da.indexOf(_)!==new Date(b[0],b[1],b[2]).getDay()?(M(C).weekdayMismatch=!0,C._isValid=!1):(l._a=h,l._tzm=(_=P[8],b=P[9],C=P[10],_?Ss[_]:b?0:60*(((_=parseInt(C,10))-(b=_%100))/100)+b),l._d=Wi.apply(null,l._a),l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),M(l).rfc2822=!0)):l._isValid=!1}function ii(l,h,_){return l!=null?l:h!=null?h:_}function Qi(l){var h,_,b,C,P,K,Q,ut,at,xt,kt,le=[];if(!l._d){for(b=l,C=new Date(s.now()),_=b._useUTC?[C.getUTCFullYear(),C.getUTCMonth(),C.getUTCDate()]:[C.getFullYear(),C.getMonth(),C.getDate()],l._w&&l._a[tn]==null&&l._a[ln]==null&&((C=(b=l)._w).GG!=null||C.W!=null||C.E!=null?(ut=1,at=4,P=ii(C.GG,b._a[Ce],Ui(qt(),1,4).year),K=ii(C.W,1),((Q=ii(C.E,1))<1||7<Q)&&(xt=!0)):(ut=b._locale._week.dow,at=b._locale._week.doy,kt=Ui(qt(),ut,at),P=ii(C.gg,b._a[Ce],kt.year),K=ii(C.w,kt.week),C.d!=null?((Q=C.d)<0||6<Q)&&(xt=!0):C.e!=null?(Q=C.e+ut,(C.e<0||6<C.e)&&(xt=!0)):Q=ut),K<1||K>In(P,ut,at)?M(b)._overflowWeeks=!0:xt!=null?M(b)._overflowWeekday=!0:(kt=Sa(P,K,Q,ut,at),b._a[Ce]=kt.year,b._dayOfYear=kt.dayOfYear)),l._dayOfYear!=null&&(C=ii(l._a[Ce],_[Ce]),(l._dayOfYear>Yi(C)||l._dayOfYear===0)&&(M(l)._overflowDayOfYear=!0),xt=Wi(C,0,l._dayOfYear),l._a[ln]=xt.getUTCMonth(),l._a[tn]=xt.getUTCDate()),h=0;h<3&&l._a[h]==null;++h)l._a[h]=le[h]=_[h];for(;h<7;h++)l._a[h]=le[h]=l._a[h]==null?h===2?1:0:l._a[h];l._a[pe]===24&&l._a[cn]===0&&l._a[Ln]===0&&l._a[ni]===0&&(l._nextDay=!0,l._a[pe]=0),l._d=(l._useUTC?Wi:sr).apply(null,le),P=l._useUTC?l._d.getUTCDay():l._d.getDay(),l._tzm!=null&&l._d.setUTCMinutes(l._d.getUTCMinutes()-l._tzm),l._nextDay&&(l._a[pe]=24),l._w&&l._w.d!==void 0&&l._w.d!==P&&(M(l).weekdayMismatch=!0)}}function dr(l){if(l._f===s.ISO_8601)ur(l);else if(l._f===s.RFC_2822)hr(l);else{l._a=[],M(l).empty=!0;for(var h,_,b,C,P,K=""+l._i,Q=K.length,ut=0,at=Ze(l._f,l._locale).match(Wt)||[],xt=at.length,kt=0;kt<xt;kt++)_=at[kt],(h=(K.match(We(_,l))||[])[0])&&(0<(b=K.substr(0,K.indexOf(h))).length&&M(l).unusedInput.push(b),K=K.slice(K.indexOf(h)+h.length),ut+=h.length),ve[_]?(h?M(l).empty=!1:M(l).unusedTokens.push(_),b=_,P=l,(C=h)!=null&&u(Ue,b)&&Ue[b](C,P._a,P,b)):l._strict&&!h&&M(l).unusedTokens.push(_);M(l).charsLeftOver=Q-ut,0<K.length&&M(l).unusedInput.push(K),l._a[pe]<=12&&M(l).bigHour===!0&&0<l._a[pe]&&(M(l).bigHour=void 0),M(l).parsedDateParts=l._a.slice(0),M(l).meridiem=l._meridiem,l._a[pe]=function(le,_e,ce){return ce==null?_e:le.meridiemHour!=null?le.meridiemHour(_e,ce):le.isPM!=null?((le=le.isPM(ce))&&_e<12&&(_e+=12),_e=le||_e!==12?_e:0):_e}(l._locale,l._a[pe],l._meridiem),(Q=M(l).era)!==null&&(l._a[Ce]=l._locale.erasConvertYear(Q,l._a[Ce])),Qi(l),cr(l)}}function fr(l){var h,_,b,C=l._i,P=l._f;return l._locale=l._locale||Rn(l._l),C===null||P===void 0&&C===""?U({nullInput:!0}):(typeof C=="string"&&(l._i=C=l._locale.preparse(C)),j(C)?new I(cr(C)):(v(C)?l._d=C:a(P)?function(K){var Q,ut,at,xt,kt,le,_e=!1,ce=K._f.length;if(ce===0)return M(K).invalidFormat=!0,K._d=new Date(NaN);for(xt=0;xt<ce;xt++)kt=0,le=!1,Q=Y({},K),K._useUTC!=null&&(Q._useUTC=K._useUTC),Q._f=K._f[xt],dr(Q),W(Q)&&(le=!0),kt=(kt+=M(Q).charsLeftOver)+10*M(Q).unusedTokens.length,M(Q).score=kt,_e?kt<at&&(at=kt,ut=Q):(at==null||kt<at||le)&&(at=kt,ut=Q,le&&(_e=!0));T(K,ut||Q)}(l):P?dr(l):f(P=(C=l)._i)?C._d=new Date(s.now()):v(P)?C._d=new Date(P.valueOf()):typeof P=="string"?(_=C,(h=ul.exec(_._i))!==null?_._d=new Date(+h[1]):(ur(_),_._isValid===!1&&(delete _._isValid,hr(_),_._isValid===!1&&(delete _._isValid,_._strict?_._isValid=!1:s.createFromInputFallback(_))))):a(P)?(C._a=D(P.slice(0),function(K){return parseInt(K,10)}),Qi(C)):o(P)?(h=C)._d||(b=(_=Ae(h._i)).day===void 0?_.date:_.day,h._a=D([_.year,_.month,b,_.hour,_.minute,_.second,_.millisecond],function(K){return K&&parseInt(K,10)}),Qi(h)):g(P)?C._d=new Date(P):s.createFromInputFallback(C),W(l)||(l._d=null),l))}function Ds(l,h,_,b,C){var P={};return h!==!0&&h!==!1||(b=h,h=void 0),_!==!0&&_!==!1||(b=_,_=void 0),(o(l)&&d(l)||a(l)&&l.length===0)&&(l=void 0),P._isAMomentObject=!0,P._useUTC=P._isUTC=C,P._l=_,P._i=l,P._f=h,P._strict=b,(C=new I(cr(fr(C=P))))._nextDay&&(C.add(1,"d"),C._nextDay=void 0),C}function qt(l,h,_,b){return Ds(l,h,_,b,!1)}s.createFromInputFallback=lt("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(l){l._d=new Date(l._i+(l._useUTC?" UTC":""))}),s.ISO_8601=function(){},s.RFC_2822=function(){},et=lt("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var l=qt.apply(null,arguments);return this.isValid()&&l.isValid()?l<this?this:l:U()}),gt=lt("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var l=qt.apply(null,arguments);return this.isValid()&&l.isValid()?this<l?this:l:U()});function si(l,h){var _,b;if(!(h=h.length===1&&a(h[0])?h[0]:h).length)return qt();for(_=h[0],b=1;b<h.length;++b)h[b].isValid()&&!h[b][l](_)||(_=h[b]);return _}var xi=["year","quarter","month","week","day","hour","minute","second","millisecond"];function ts(h){var h=Ae(h),_=h.year||0,b=h.quarter||0,C=h.month||0,P=h.week||h.isoWeek||0,K=h.day||0,Q=h.hour||0,ut=h.minute||0,at=h.second||0,xt=h.millisecond||0;this._isValid=function(kt){var le,_e,ce=!1,is=xi.length;for(le in kt)if(u(kt,le)&&(re.call(xi,le)===-1||kt[le]!=null&&isNaN(kt[le])))return!1;for(_e=0;_e<is;++_e)if(kt[xi[_e]]){if(ce)return!1;parseFloat(kt[xi[_e]])!==Z(kt[xi[_e]])&&(ce=!0)}return!0}(h),this._milliseconds=+xt+1e3*at+6e4*ut+1e3*Q*60*60,this._days=+K+7*P,this._months=+C+3*b+12*_,this._data={},this._locale=Rn(),this._bubble()}function Cs(l){return l instanceof ts}function Ts(l){return l<0?-1*Math.round(-1*l):Math.round(l)}function pr(l,h){dt(l,0,0,function(){var _=this.utcOffset(),b="+";return _<0&&(_=-_,b="-"),b+Ct(~~(_/60),2)+h+Ct(~~_%60,2)})}pr("Z",":"),pr("ZZ",""),ct("Z",pt),ct("ZZ",pt),Bt(["Z","ZZ"],function(l,h,_){_._useUTC=!0,_._tzm=Ms(pt,l)});var La=/([\+\-]|\d\d)/gi;function Ms(l,_){var _=(_||"").match(l);return _===null?null:(_=60*(l=((_[_.length-1]||[])+"").match(La)||["-",0,0])[1]+Z(l[2]))===0?0:l[0]==="+"?_:-_}function mr(l,h){var _;return h._isUTC?(h=h.clone(),_=(j(l)||v(l)?l:qt(l)).valueOf()-h.valueOf(),h._d.setTime(h._d.valueOf()+_),s.updateOffset(h,!1),h):qt(l).local()}function _r(l){return-Math.round(l._d.getTimezoneOffset())}function Ia(){return!!this.isValid()&&this._isUTC&&this._offset===0}s.updateOffset=function(){};var Pa=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,dl=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function un(l,h){var _,b=l,C=null;return Cs(l)?b={ms:l._milliseconds,d:l._days,M:l._months}:g(l)||!isNaN(+l)?(b={},h?b[h]=+l:b.milliseconds=+l):(C=Pa.exec(l))?(_=C[1]==="-"?-1:1,b={y:0,d:Z(C[tn])*_,h:Z(C[pe])*_,m:Z(C[cn])*_,s:Z(C[Ln])*_,ms:Z(Ts(1e3*C[ni]))*_}):(C=dl.exec(l))?(_=C[1]==="-"?-1:1,b={y:ri(C[2],_),M:ri(C[3],_),w:ri(C[4],_),d:ri(C[5],_),h:ri(C[6],_),m:ri(C[7],_),s:ri(C[8],_)}):b==null?b={}:typeof b=="object"&&("from"in b||"to"in b)&&(h=function(P,K){var Q;return!P.isValid()||!K.isValid()?{milliseconds:0,months:0}:(K=mr(K,P),P.isBefore(K)?Q=Ra(P,K):((Q=Ra(K,P)).milliseconds=-Q.milliseconds,Q.months=-Q.months),Q)}(qt(b.from),qt(b.to)),(b={}).ms=h.milliseconds,b.M=h.months),C=new ts(b),Cs(l)&&u(l,"_locale")&&(C._locale=l._locale),Cs(l)&&u(l,"_isValid")&&(C._isValid=l._isValid),C}function ri(l,h){return l=l&&parseFloat(l.replace(",",".")),(isNaN(l)?0:l)*h}function Ra(l,h){var _={};return _.months=h.month()-l.month()+12*(h.year()-l.year()),l.clone().add(_.months,"M").isAfter(h)&&--_.months,_.milliseconds=+h-+l.clone().add(_.months,"M"),_}function Ns(l,h){return function(_,b){var C;return b===null||isNaN(+b)||(yt(h,"moment()."+h+"(period, number) is deprecated. Please use moment()."+h+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),C=_,_=b,b=C),Fa(this,un(_,b),l),this}}function Fa(l,K,_,b){var C=K._milliseconds,P=Ts(K._days),K=Ts(K._months);l.isValid()&&(b=b==null||b,K&&wa(l,E(l,"Month")+K*_),P&&k(l,"Date",E(l,"Date")+P*_),C&&l._d.setTime(l._d.valueOf()+C*_),b&&s.updateOffset(l,P||K))}un.fn=ts.prototype,un.invalid=function(){return un(NaN)},$i=Ns(1,"add"),Hi=Ns(-1,"subtract");function Ba(l){return typeof l=="string"||l instanceof String}function fl(l){return j(l)||v(l)||Ba(l)||g(l)||function(h){var _=a(h),b=!1;return _&&(b=h.filter(function(C){return!g(C)&&Ba(h)}).length===0),_&&b}(l)||function(h){var _,b,C=o(h)&&!d(h),P=!1,K=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],Q=K.length;for(_=0;_<Q;_+=1)b=K[_],P=P||u(h,b);return C&&P}(l)||l==null}function As(l,C){if(l.date()<C.date())return-As(C,l);var _=12*(C.year()-l.year())+(C.month()-l.month()),b=l.clone().add(_,"months"),C=C-b<0?(C-b)/(b-l.clone().add(_-1,"months")):(C-b)/(l.clone().add(1+_,"months")-b);return-(_+C)||0}function Va(l){return l===void 0?this._locale._abbr:((l=Rn(l))!=null&&(this._locale=l),this)}s.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",s.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]",zi=lt("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(l){return l===void 0?this.localeData():this.locale(l)});function te(){return this._locale}var Xt=126227808e5;function wi(l,h){return(l%h+h)%h}function $a(l,h,_){return l<100&&0<=l?new Date(l+400,h,_)-Xt:new Date(l,h,_).valueOf()}function Ya(l,h,_){return l<100&&0<=l?Date.UTC(l+400,h,_)-Xt:Date.UTC(l,h,_)}function gr(l,h){return h.erasAbbrRegex(l)}function yr(){for(var l=[],h=[],_=[],b=[],C=this.eras(),P=0,K=C.length;P<K;++P)h.push(Gt(C[P].name)),l.push(Gt(C[P].abbr)),_.push(Gt(C[P].narrow)),b.push(Gt(C[P].name)),b.push(Gt(C[P].abbr)),b.push(Gt(C[P].narrow));this._erasRegex=new RegExp("^("+b.join("|")+")","i"),this._erasNameRegex=new RegExp("^("+h.join("|")+")","i"),this._erasAbbrRegex=new RegExp("^("+l.join("|")+")","i"),this._erasNarrowRegex=new RegExp("^("+_.join("|")+")","i")}function Os(l,h){dt(0,[l,l.length],0,h)}function br(l,h,_,b,C){var P;return l==null?Ui(this,b,C).year:(P=In(l,b,C),function(K,Q,ut,at,xt){return K=Sa(K,Q,ut,at,xt),Q=Wi(K.year,0,K.dayOfYear),this.year(Q.getUTCFullYear()),this.month(Q.getUTCMonth()),this.date(Q.getUTCDate()),this}.call(this,l,h=P<h?P:h,_,b,C))}dt("N",0,0,"eraAbbr"),dt("NN",0,0,"eraAbbr"),dt("NNN",0,0,"eraAbbr"),dt("NNNN",0,0,"eraName"),dt("NNNNN",0,0,"eraNarrow"),dt("y",["y",1],"yo","eraYear"),dt("y",["yy",2],0,"eraYear"),dt("y",["yyy",3],0,"eraYear"),dt("y",["yyyy",4],0,"eraYear"),ct("N",gr),ct("NN",gr),ct("NNN",gr),ct("NNNN",function(l,h){return h.erasNameRegex(l)}),ct("NNNNN",function(l,h){return h.erasNarrowRegex(l)}),Bt(["N","NN","NNN","NNNN","NNNNN"],function(l,h,_,b){b=_._locale.erasParse(l,b,_._strict),b?M(_).era=b:M(_).invalidEra=l}),ct("y",nt),ct("yy",nt),ct("yyy",nt),ct("yyyy",nt),ct("yo",function(l,h){return h._eraYearOrdinalRegex||nt}),Bt(["y","yy","yyy","yyyy"],Ce),Bt(["yo"],function(l,h,_,b){var C;_._locale._eraYearOrdinalRegex&&(C=l.match(_._locale._eraYearOrdinalRegex)),_._locale.eraYearOrdinalParse?h[Ce]=_._locale.eraYearOrdinalParse(l,C):h[Ce]=parseInt(l,10)}),dt(0,["gg",2],0,function(){return this.weekYear()%100}),dt(0,["GG",2],0,function(){return this.isoWeekYear()%100}),Os("gggg","weekYear"),Os("ggggg","weekYear"),Os("GGGG","isoWeekYear"),Os("GGGGG","isoWeekYear"),Mt("weekYear","gg"),Mt("isoWeekYear","GG"),Ut("weekYear",1),Ut("isoWeekYear",1),ct("G",ot),ct("g",ot),ct("GG",V,vt),ct("gg",V,vt),ct("GGGG",zn,oe),ct("gggg",zn,oe),ct("GGGGG",bn,we),ct("ggggg",bn,we),On(["gggg","ggggg","GGGG","GGGGG"],function(l,h,_,b){h[b.substr(0,2)]=Z(l)}),On(["gg","GG"],function(l,h,_,b){h[b]=s.parseTwoDigitYear(l)}),dt("Q",0,"Qo","quarter"),Mt("quarter","Q"),Ut("quarter",7),ct("Q",w),Bt("Q",function(l,h){h[ln]=3*(Z(l)-1)}),dt("D",["DD",2],"Do","date"),Mt("date","D"),Ut("date",9),ct("D",V),ct("DD",V,vt),ct("Do",function(l,h){return l?h._dayOfMonthOrdinalParse||h._ordinalParse:h._dayOfMonthOrdinalParseLenient}),Bt(["D","DD"],tn),Bt("Do",function(l,h){h[tn]=Z(l.match(V)[0])}),zn=B("Date",!0),dt("DDD",["DDDD",3],"DDDo","dayOfYear"),Mt("dayOfYear","DDD"),Ut("dayOfYear",4),ct("DDD",ft),ct("DDDD",z),Bt(["DDD","DDDD"],function(l,h,_){_._dayOfYear=Z(l)}),dt("m",["mm",2],0,"minute"),Mt("minute","m"),Ut("minute",14),ct("m",V),ct("mm",V,vt),Bt(["m","mm"],cn);var Hn,oe=B("Minutes",!1),bn=(dt("s",["ss",2],0,"second"),Mt("second","s"),Ut("second",15),ct("s",V),ct("ss",V,vt),Bt(["s","ss"],Ln),B("Seconds",!1));for(dt("S",0,0,function(){return~~(this.millisecond()/100)}),dt(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),dt(0,["SSS",3],0,"millisecond"),dt(0,["SSSS",4],0,function(){return 10*this.millisecond()}),dt(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),dt(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),dt(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),dt(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),dt(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),Mt("millisecond","ms"),Ut("millisecond",16),ct("S",ft,w),ct("SS",ft,vt),ct("SSS",ft,z),Hn="SSSS";Hn.length<=9;Hn+="S")ct(Hn,nt);function ai(l,h){h[ni]=Z(1e3*("0."+l))}for(Hn="S";Hn.length<=9;Hn+="S")Bt(Hn,ai);we=B("Milliseconds",!1),dt("z",0,0,"zoneAbbr"),dt("zz",0,0,"zoneName"),w=I.prototype;function vr(l){return l}w.add=$i,w.calendar=function(_,C){arguments.length===1&&(arguments[0]?fl(arguments[0])?(_=arguments[0],C=void 0):function(P){for(var K=o(P)&&!d(P),Q=!1,ut=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"],at=0;at<ut.length;at+=1)Q=Q||u(P,ut[at]);return K&&Q}(arguments[0])&&(C=arguments[0],_=void 0):C=_=void 0);var _=_||qt(),b=mr(_,this).startOf("day"),b=s.calendarFormat(this,b)||"sameElse",C=C&&(mt(C[b])?C[b].call(this,_):C[b]);return this.format(C||this.localeData().calendar(b,this,qt(_)))},w.clone=function(){return new I(this)},w.diff=function(l,h,_){var b,C,P;if(!this.isValid())return NaN;if(!(b=mr(l,this)).isValid())return NaN;switch(C=6e4*(b.utcOffset()-this.utcOffset()),h=Kt(h)){case"year":P=As(this,b)/12;break;case"month":P=As(this,b);break;case"quarter":P=As(this,b)/3;break;case"second":P=(this-b)/1e3;break;case"minute":P=(this-b)/6e4;break;case"hour":P=(this-b)/36e5;break;case"day":P=(this-b-C)/864e5;break;case"week":P=(this-b-C)/6048e5;break;default:P=this-b}return _?P:de(P)},w.endOf=function(l){var h,_;if((l=Kt(l))===void 0||l==="millisecond"||!this.isValid())return this;switch(_=this._isUTC?Ya:$a,l){case"year":h=_(this.year()+1,0,1)-1;break;case"quarter":h=_(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":h=_(this.year(),this.month()+1,1)-1;break;case"week":h=_(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":h=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":h=_(this.year(),this.month(),this.date()+1)-1;break;case"hour":h=this._d.valueOf(),h+=36e5-wi(h+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":h=this._d.valueOf(),h+=6e4-wi(h,6e4)-1;break;case"second":h=this._d.valueOf(),h+=1e3-wi(h,1e3)-1;break}return this._d.setTime(h),s.updateOffset(this,!0),this},w.format=function(l){return l=l||(this.isUtc()?s.defaultFormatUtc:s.defaultFormat),l=Qt(this,l),this.localeData().postformat(l)},w.from=function(l,h){return this.isValid()&&(j(l)&&l.isValid()||qt(l).isValid())?un({to:this,from:l}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()},w.fromNow=function(l){return this.from(qt(),l)},w.to=function(l,h){return this.isValid()&&(j(l)&&l.isValid()||qt(l).isValid())?un({from:this,to:l}).locale(this.locale()).humanize(!h):this.localeData().invalidDate()},w.toNow=function(l){return this.to(qt(),l)},w.get=function(l){return mt(this[l=Kt(l)])?this[l]():this},w.invalidAt=function(){return M(this).overflow},w.isAfter=function(l,h){return l=j(l)?l:qt(l),!(!this.isValid()||!l.isValid())&&((h=Kt(h)||"millisecond")==="millisecond"?this.valueOf()>l.valueOf():l.valueOf()<this.clone().startOf(h).valueOf())},w.isBefore=function(l,h){return l=j(l)?l:qt(l),!(!this.isValid()||!l.isValid())&&((h=Kt(h)||"millisecond")==="millisecond"?this.valueOf()<l.valueOf():this.clone().endOf(h).valueOf()<l.valueOf())},w.isBetween=function(l,h,_,b){return l=j(l)?l:qt(l),h=j(h)?h:qt(h),!!(this.isValid()&&l.isValid()&&h.isValid())&&((b=b||"()")[0]==="("?this.isAfter(l,_):!this.isBefore(l,_))&&(b[1]===")"?this.isBefore(h,_):!this.isAfter(h,_))},w.isSame=function(_,h){var _=j(_)?_:qt(_);return!(!this.isValid()||!_.isValid())&&((h=Kt(h)||"millisecond")==="millisecond"?this.valueOf()===_.valueOf():(_=_.valueOf(),this.clone().startOf(h).valueOf()<=_&&_<=this.clone().endOf(h).valueOf()))},w.isSameOrAfter=function(l,h){return this.isSame(l,h)||this.isAfter(l,h)},w.isSameOrBefore=function(l,h){return this.isSame(l,h)||this.isBefore(l,h)},w.isValid=function(){return W(this)},w.lang=zi,w.locale=Va,w.localeData=te,w.max=gt,w.min=et,w.parsingFlags=function(){return T({},M(this))},w.set=function(l,h){if(typeof l=="object")for(var _=function(P){var K,Q=[];for(K in P)u(P,K)&&Q.push({unit:K,priority:je[K]});return Q.sort(function(ut,at){return ut.priority-at.priority}),Q}(l=Ae(l)),b=_.length,C=0;C<b;C++)this[_[C].unit](l[_[C].unit]);else if(mt(this[l=Kt(l)]))return this[l](h);return this},w.startOf=function(l){var h,_;if((l=Kt(l))===void 0||l==="millisecond"||!this.isValid())return this;switch(_=this._isUTC?Ya:$a,l){case"year":h=_(this.year(),0,1);break;case"quarter":h=_(this.year(),this.month()-this.month()%3,1);break;case"month":h=_(this.year(),this.month(),1);break;case"week":h=_(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":h=_(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":h=_(this.year(),this.month(),this.date());break;case"hour":h=this._d.valueOf(),h-=wi(h+(this._isUTC?0:6e4*this.utcOffset()),36e5);break;case"minute":h=this._d.valueOf(),h-=wi(h,6e4);break;case"second":h=this._d.valueOf(),h-=wi(h,1e3);break}return this._d.setTime(h),s.updateOffset(this,!0),this},w.subtract=Hi,w.toArray=function(){var l=this;return[l.year(),l.month(),l.date(),l.hour(),l.minute(),l.second(),l.millisecond()]},w.toObject=function(){var l=this;return{years:l.year(),months:l.month(),date:l.date(),hours:l.hours(),minutes:l.minutes(),seconds:l.seconds(),milliseconds:l.milliseconds()}},w.toDate=function(){return new Date(this.valueOf())},w.toISOString=function(l){if(!this.isValid())return null;var h=(l=l!==!0)?this.clone().utc():this;return h.year()<0||9999<h.year()?Qt(h,l?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):mt(Date.prototype.toISOString)?l?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",Qt(h,"Z")):Qt(h,l?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},w.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var l,h="moment",_="";return this.isLocal()||(h=this.utcOffset()===0?"moment.utc":"moment.parseZone",_="Z"),h="["+h+'("]',l=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",this.format(h+l+"-MM-DD[T]HH:mm:ss.SSS"+(_+'[")]'))},typeof Symbol<"u"&&Symbol.for!=null&&(w[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),w.toJSON=function(){return this.isValid()?this.toISOString():null},w.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},w.unix=function(){return Math.floor(this.valueOf()/1e3)},w.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},w.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},w.eraName=function(){for(var l,h=this.localeData().eras(),_=0,b=h.length;_<b;++_)if(l=this.clone().startOf("day").valueOf(),h[_].since<=l&&l<=h[_].until||h[_].until<=l&&l<=h[_].since)return h[_].name;return""},w.eraNarrow=function(){for(var l,h=this.localeData().eras(),_=0,b=h.length;_<b;++_)if(l=this.clone().startOf("day").valueOf(),h[_].since<=l&&l<=h[_].until||h[_].until<=l&&l<=h[_].since)return h[_].narrow;return""},w.eraAbbr=function(){for(var l,h=this.localeData().eras(),_=0,b=h.length;_<b;++_)if(l=this.clone().startOf("day").valueOf(),h[_].since<=l&&l<=h[_].until||h[_].until<=l&&l<=h[_].since)return h[_].abbr;return""},w.eraYear=function(){for(var l,h,_=this.localeData().eras(),b=0,C=_.length;b<C;++b)if(l=_[b].since<=_[b].until?1:-1,h=this.clone().startOf("day").valueOf(),_[b].since<=h&&h<=_[b].until||_[b].until<=h&&h<=_[b].since)return(this.year()-s(_[b].since).year())*l+_[b].offset;return this.year()},w.year=es,w.isLeapYear=function(){return ke(this.year())},w.weekYear=function(l){return br.call(this,l,this.week(),this.weekday(),this.localeData()._week.dow,this.localeData()._week.doy)},w.isoWeekYear=function(l){return br.call(this,l,this.isoWeek(),this.isoWeekday(),1,4)},w.quarter=w.quarters=function(l){return l==null?Math.ceil((this.month()+1)/3):this.month(3*(l-1)+this.month()%3)},w.month=Ea,w.daysInMonth=function(){return xs(this.year(),this.month())},w.week=w.weeks=function(l){var h=this.localeData().week(this);return l==null?h:this.add(7*(l-h),"d")},w.isoWeek=w.isoWeeks=function(l){var h=Ui(this,1,4).week;return l==null?h:this.add(7*(l-h),"d")},w.weeksInYear=function(){var l=this.localeData()._week;return In(this.year(),l.dow,l.doy)},w.weeksInWeekYear=function(){var l=this.localeData()._week;return In(this.weekYear(),l.dow,l.doy)},w.isoWeeksInYear=function(){return In(this.year(),1,4)},w.isoWeeksInISOWeekYear=function(){return In(this.isoWeekYear(),1,4)},w.date=zn,w.day=w.days=function(l){if(!this.isValid())return l!=null?this:NaN;var h,_,b=this._isUTC?this._d.getUTCDay():this._d.getDay();return l!=null?(h=l,_=this.localeData(),l=typeof h!="string"?h:isNaN(h)?typeof(h=_.weekdaysParse(h))=="number"?h:null:parseInt(h,10),this.add(l-b,"d")):b},w.weekday=function(l){if(!this.isValid())return l!=null?this:NaN;var h=(this.day()+7-this.localeData()._week.dow)%7;return l==null?h:this.add(l-h,"d")},w.isoWeekday=function(l){return this.isValid()?l!=null?(h=l,_=this.localeData(),_=typeof h=="string"?_.weekdaysParse(h)%7||7:isNaN(h)?null:h,this.day(this.day()%7?_:_-7)):this.day()||7:l!=null?this:NaN;var h,_},w.dayOfYear=function(l){var h=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return l==null?h:this.add(l-h,"d")},w.hour=w.hours=Ht,w.minute=w.minutes=oe,w.second=w.seconds=bn,w.millisecond=w.milliseconds=we,w.utcOffset=function(l,h,_){var b,C=this._offset||0;if(!this.isValid())return l!=null?this:NaN;if(l==null)return this._isUTC?C:_r(this);if(typeof l=="string"){if((l=Ms(pt,l))===null)return this}else Math.abs(l)<16&&!_&&(l*=60);return!this._isUTC&&h&&(b=_r(this)),this._offset=l,this._isUTC=!0,b!=null&&this.add(b,"m"),C!==l&&(!h||this._changeInProgress?Fa(this,un(l-C,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,s.updateOffset(this,!0),this._changeInProgress=null)),this},w.utc=function(l){return this.utcOffset(0,l)},w.local=function(l){return this._isUTC&&(this.utcOffset(0,l),this._isUTC=!1,l&&this.subtract(_r(this),"m")),this},w.parseZone=function(){var l;return this._tzm!=null?this.utcOffset(this._tzm,!1,!0):typeof this._i=="string"&&((l=Ms(rt,this._i))!=null?this.utcOffset(l):this.utcOffset(0,!0)),this},w.hasAlignedHourOffset=function(l){return!!this.isValid()&&(l=l?qt(l).utcOffset():0,(this.utcOffset()-l)%60==0)},w.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},w.isLocal=function(){return!!this.isValid()&&!this._isUTC},w.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},w.isUtc=Ia,w.isUTC=Ia,w.zoneAbbr=function(){return this._isUTC?"UTC":""},w.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},w.dates=lt("dates accessor is deprecated. Use date instead.",zn),w.months=lt("months accessor is deprecated. Use month instead",Ea),w.years=lt("years accessor is deprecated. Use year instead",es),w.zone=lt("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(l,h){return l!=null?(this.utcOffset(l=typeof l!="string"?-l:l,h),this):-this.utcOffset()}),w.isDSTShifted=lt("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!f(this._isDSTShifted))return this._isDSTShifted;var l,h={};return Y(h,this),(h=fr(h))._a?(l=(h._isUTC?A:qt)(h._a),this._isDSTShifted=this.isValid()&&0<function(_,b,C){for(var P=Math.min(_.length,b.length),K=Math.abs(_.length-b.length),Q=0,ut=0;ut<P;ut++)(C&&_[ut]!==b[ut]||!C&&Z(_[ut])!==Z(b[ut]))&&Q++;return Q+K}(h._a,l.toArray())):this._isDSTShifted=!1,this._isDSTShifted}),vt=Ot.prototype;function Ei(l,h,_,P){var C=Rn(),P=A().set(P,h);return C[_](P,l)}function Ge(l,h,_){if(g(l)&&(h=l,l=void 0),l=l||"",h!=null)return Ei(l,h,_,"month");for(var b=[],C=0;C<12;C++)b[C]=Ei(l,C,_,"month");return b}function Ls(l,h,_,b){h=(typeof l=="boolean"?g(h)&&(_=h,h=void 0):(h=l,l=!1,g(_=h)&&(_=h,h=void 0)),h||"");var C,P=Rn(),K=l?P._week.dow:0,Q=[];if(_!=null)return Ei(h,(_+K)%7,b,"day");for(C=0;C<7;C++)Q[C]=Ei(h,(C+K)%7,b,"day");return Q}vt.calendar=function(l,h,_){return mt(l=this._calendar[l]||this._calendar.sameElse)?l.call(h,_):l},vt.longDateFormat=function(l){var h=this._longDateFormat[l],_=this._longDateFormat[l.toUpperCase()];return h||!_?h:(this._longDateFormat[l]=_.match(Wt).map(function(b){return b==="MMMM"||b==="MM"||b==="DD"||b==="dddd"?b.slice(1):b}).join(""),this._longDateFormat[l])},vt.invalidDate=function(){return this._invalidDate},vt.ordinal=function(l){return this._ordinal.replace("%d",l)},vt.preparse=vr,vt.postformat=vr,vt.relativeTime=function(l,h,_,b){var C=this._relativeTime[_];return mt(C)?C(l,h,_,b):C.replace(/%d/i,l)},vt.pastFuture=function(l,h){return mt(l=this._relativeTime[0<l?"future":"past"])?l(h):l.replace(/%s/i,h)},vt.set=function(l){var h,_;for(_ in l)u(l,_)&&(mt(h=l[_])?this[_]=h:this["_"+_]=h);this._config=l,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},vt.eras=function(l,h){for(var _,b=this._eras||Rn("en")._eras,C=0,P=b.length;C<P;++C){switch(typeof b[C].since){case"string":_=s(b[C].since).startOf("day"),b[C].since=_.valueOf();break}switch(typeof b[C].until){case"undefined":b[C].until=1/0;break;case"string":_=s(b[C].until).startOf("day").valueOf(),b[C].until=_.valueOf();break}}return b},vt.erasParse=function(l,h,_){var b,C,P,K,Q,ut=this.eras();for(l=l.toUpperCase(),b=0,C=ut.length;b<C;++b)if(P=ut[b].name.toUpperCase(),K=ut[b].abbr.toUpperCase(),Q=ut[b].narrow.toUpperCase(),_)switch(h){case"N":case"NN":case"NNN":if(K===l)return ut[b];break;case"NNNN":if(P===l)return ut[b];break;case"NNNNN":if(Q===l)return ut[b];break}else if(0<=[P,K,Q].indexOf(l))return ut[b]},vt.erasConvertYear=function(l,h){var _=l.since<=l.until?1:-1;return h===void 0?s(l.since).year():s(l.since).year()+(h-l.offset)*_},vt.erasAbbrRegex=function(l){return u(this,"_erasAbbrRegex")||yr.call(this),l?this._erasAbbrRegex:this._erasRegex},vt.erasNameRegex=function(l){return u(this,"_erasNameRegex")||yr.call(this),l?this._erasNameRegex:this._erasRegex},vt.erasNarrowRegex=function(l){return u(this,"_erasNarrowRegex")||yr.call(this),l?this._erasNarrowRegex:this._erasRegex},vt.months=function(l,h){return l?(a(this._months)?this._months:this._months[(this._months.isFormat||ka).test(h)?"format":"standalone"])[l.month()]:a(this._months)?this._months:this._months.standalone},vt.monthsShort=function(l,h){return l?(a(this._monthsShort)?this._monthsShort:this._monthsShort[ka.test(h)?"format":"standalone"])[l.month()]:a(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},vt.monthsParse=function(l,h,_){var b,C;if(this._monthsParseExact)return function(kt,K,Q){var ut,at,xt,kt=kt.toLocaleLowerCase();if(!this._monthsParse)for(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[],ut=0;ut<12;++ut)xt=A([2e3,ut]),this._shortMonthsParse[ut]=this.monthsShort(xt,"").toLocaleLowerCase(),this._longMonthsParse[ut]=this.months(xt,"").toLocaleLowerCase();return Q?K==="MMM"?(at=re.call(this._shortMonthsParse,kt))!==-1?at:null:(at=re.call(this._longMonthsParse,kt))!==-1?at:null:K==="MMM"?(at=re.call(this._shortMonthsParse,kt))!==-1||(at=re.call(this._longMonthsParse,kt))!==-1?at:null:(at=re.call(this._longMonthsParse,kt))!==-1||(at=re.call(this._shortMonthsParse,kt))!==-1?at:null}.call(this,l,h,_);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),b=0;b<12;b++)if(C=A([2e3,b]),_&&!this._longMonthsParse[b]&&(this._longMonthsParse[b]=new RegExp("^"+this.months(C,"").replace(".","")+"$","i"),this._shortMonthsParse[b]=new RegExp("^"+this.monthsShort(C,"").replace(".","")+"$","i")),_||this._monthsParse[b]||(C="^"+this.months(C,"")+"|^"+this.monthsShort(C,""),this._monthsParse[b]=new RegExp(C.replace(".",""),"i")),_&&h==="MMMM"&&this._longMonthsParse[b].test(l)||_&&h==="MMM"&&this._shortMonthsParse[b].test(l)||!_&&this._monthsParse[b].test(l))return b},vt.monthsRegex=function(l){return this._monthsParseExact?(u(this,"_monthsRegex")||ws.call(this),l?this._monthsStrictRegex:this._monthsRegex):(u(this,"_monthsRegex")||(this._monthsRegex=rl),this._monthsStrictRegex&&l?this._monthsStrictRegex:this._monthsRegex)},vt.monthsShortRegex=function(l){return this._monthsParseExact?(u(this,"_monthsRegex")||ws.call(this),l?this._monthsShortStrictRegex:this._monthsShortRegex):(u(this,"_monthsShortRegex")||(this._monthsShortRegex=xa),this._monthsShortStrictRegex&&l?this._monthsShortStrictRegex:this._monthsShortRegex)},vt.week=function(l){return Ui(l,this._week.dow,this._week.doy).week},vt.firstDayOfYear=function(){return this._week.doy},vt.firstDayOfWeek=function(){return this._week.dow},vt.weekdays=function(l,h){return h=a(this._weekdays)?this._weekdays:this._weekdays[l&&l!==!0&&this._weekdays.isFormat.test(h)?"format":"standalone"],l===!0?rr(h,this._week.dow):l?h[l.day()]:h},vt.weekdaysMin=function(l){return l===!0?rr(this._weekdaysMin,this._week.dow):l?this._weekdaysMin[l.day()]:this._weekdaysMin},vt.weekdaysShort=function(l){return l===!0?rr(this._weekdaysShort,this._week.dow):l?this._weekdaysShort[l.day()]:this._weekdaysShort},vt.weekdaysParse=function(l,h,_){var b,C;if(this._weekdaysParseExact)return function(kt,K,Q){var ut,at,xt,kt=kt.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],ut=0;ut<7;++ut)xt=A([2e3,1]).day(ut),this._minWeekdaysParse[ut]=this.weekdaysMin(xt,"").toLocaleLowerCase(),this._shortWeekdaysParse[ut]=this.weekdaysShort(xt,"").toLocaleLowerCase(),this._weekdaysParse[ut]=this.weekdays(xt,"").toLocaleLowerCase();return Q?K==="dddd"?(at=re.call(this._weekdaysParse,kt))!==-1?at:null:K==="ddd"?(at=re.call(this._shortWeekdaysParse,kt))!==-1?at:null:(at=re.call(this._minWeekdaysParse,kt))!==-1?at:null:K==="dddd"?(at=re.call(this._weekdaysParse,kt))!==-1||(at=re.call(this._shortWeekdaysParse,kt))!==-1||(at=re.call(this._minWeekdaysParse,kt))!==-1?at:null:K==="ddd"?(at=re.call(this._shortWeekdaysParse,kt))!==-1||(at=re.call(this._weekdaysParse,kt))!==-1||(at=re.call(this._minWeekdaysParse,kt))!==-1?at:null:(at=re.call(this._minWeekdaysParse,kt))!==-1||(at=re.call(this._weekdaysParse,kt))!==-1||(at=re.call(this._shortWeekdaysParse,kt))!==-1?at:null}.call(this,l,h,_);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),b=0;b<7;b++)if(C=A([2e3,1]).day(b),_&&!this._fullWeekdaysParse[b]&&(this._fullWeekdaysParse[b]=new RegExp("^"+this.weekdays(C,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[b]=new RegExp("^"+this.weekdaysShort(C,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[b]=new RegExp("^"+this.weekdaysMin(C,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[b]||(C="^"+this.weekdays(C,"")+"|^"+this.weekdaysShort(C,"")+"|^"+this.weekdaysMin(C,""),this._weekdaysParse[b]=new RegExp(C.replace(".",""),"i")),_&&h==="dddd"&&this._fullWeekdaysParse[b].test(l)||_&&h==="ddd"&&this._shortWeekdaysParse[b].test(l)||_&&h==="dd"&&this._minWeekdaysParse[b].test(l)||!_&&this._weekdaysParse[b].test(l))return b},vt.weekdaysRegex=function(l){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ar.call(this),l?this._weekdaysStrictRegex:this._weekdaysRegex):(u(this,"_weekdaysRegex")||(this._weekdaysRegex=al),this._weekdaysStrictRegex&&l?this._weekdaysStrictRegex:this._weekdaysRegex)},vt.weekdaysShortRegex=function(l){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ar.call(this),l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(u(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ol),this._weekdaysShortStrictRegex&&l?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},vt.weekdaysMinRegex=function(l){return this._weekdaysParseExact?(u(this,"_weekdaysRegex")||ar.call(this),l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(u(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ll),this._weekdaysMinStrictRegex&&l?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},vt.isPM=function(l){return(l+"").toLowerCase().charAt(0)==="p"},vt.meridiem=function(l,h,_){return 11<l?_?"pm":"PM":_?"am":"AM"},Pn("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(l){var h=l%10;return l+(Z(l%100/10)===1?"th":h==1?"st":h==2?"nd":h==3?"rd":"th")}}),s.lang=lt("moment.lang is deprecated. Use moment.locale instead.",Pn),s.langData=lt("moment.langData is deprecated. Use moment.localeData instead.",Rn);var vn=Math.abs;function kr(l,h,_,b){return h=un(h,_),l._milliseconds+=b*h._milliseconds,l._days+=b*h._days,l._months+=b*h._months,l._bubble()}function xr(l){return l<0?Math.floor(l):Math.ceil(l)}function wr(l){return 4800*l/146097}function Is(l){return 146097*l/4800}function me(l){return function(){return this.as(l)}}ft=me("ms"),z=me("s"),$i=me("m"),gt=me("h"),et=me("d"),Hi=me("w"),Ht=me("M"),oe=me("Q"),bn=me("y");function oi(l){return function(){return this.isValid()?this._data[l]:NaN}}var we=oi("milliseconds"),zn=oi("seconds"),es=oi("minutes"),vt=oi("hours"),Ps=oi("days"),Er=oi("months"),se=oi("years"),Oe=Math.round,jn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function pl(l,h,_,b){var at=un(l).abs(),xt=Oe(at.as("s")),C=Oe(at.as("m")),P=Oe(at.as("h")),K=Oe(at.as("d")),Q=Oe(at.as("M")),ut=Oe(at.as("w")),at=Oe(at.as("y")),xt=(xt<=_.ss?["s",xt]:xt<_.s&&["ss",xt])||C<=1&&["m"]||C<_.m&&["mm",C]||P<=1&&["h"]||P<_.h&&["hh",P]||K<=1&&["d"]||K<_.d&&["dd",K];return(xt=(xt=_.w!=null?xt||ut<=1&&["w"]||ut<_.w&&["ww",ut]:xt)||Q<=1&&["M"]||Q<_.M&&["MM",Q]||at<=1&&["y"]||["yy",at])[2]=h,xt[3]=0<+l,xt[4]=b,function(kt,le,_e,ce,is){return is.relativeTime(le||1,!!_e,kt,ce)}.apply(null,xt)}var ns=Math.abs;function Si(l){return(0<l)-(l<0)||+l}function Rs(){if(!this.isValid())return this.localeData().invalidDate();var l,h,_,b,C,P,K,Q=ns(this._milliseconds)/1e3,ut=ns(this._days),at=ns(this._months),xt=this.asSeconds();return xt?(l=de(Q/60),h=de(l/60),Q%=60,l%=60,_=de(at/12),at%=12,b=Q?Q.toFixed(3).replace(/\.?0+$/,""):"",C=Si(this._months)!==Si(xt)?"-":"",P=Si(this._days)!==Si(xt)?"-":"",K=Si(this._milliseconds)!==Si(xt)?"-":"",(xt<0?"-":"")+"P"+(_?C+_+"Y":"")+(at?C+at+"M":"")+(ut?P+ut+"D":"")+(h||l||Q?"T":"")+(h?K+h+"H":"")+(l?K+l+"M":"")+(Q?K+b+"S":"")):"P0D"}var Rt=ts.prototype;return Rt.isValid=function(){return this._isValid},Rt.abs=function(){var l=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),l.milliseconds=vn(l.milliseconds),l.seconds=vn(l.seconds),l.minutes=vn(l.minutes),l.hours=vn(l.hours),l.months=vn(l.months),l.years=vn(l.years),this},Rt.add=function(l,h){return kr(this,l,h,1)},Rt.subtract=function(l,h){return kr(this,l,h,-1)},Rt.as=function(l){if(!this.isValid())return NaN;var h,_,b=this._milliseconds;if((l=Kt(l))==="month"||l==="quarter"||l==="year")switch(h=this._days+b/864e5,_=this._months+wr(h),l){case"month":return _;case"quarter":return _/3;case"year":return _/12}else switch(h=this._days+Math.round(Is(this._months)),l){case"week":return h/7+b/6048e5;case"day":return h+b/864e5;case"hour":return 24*h+b/36e5;case"minute":return 1440*h+b/6e4;case"second":return 86400*h+b/1e3;case"millisecond":return Math.floor(864e5*h)+b;default:throw new Error("Unknown unit "+l)}},Rt.asMilliseconds=ft,Rt.asSeconds=z,Rt.asMinutes=$i,Rt.asHours=gt,Rt.asDays=et,Rt.asWeeks=Hi,Rt.asMonths=Ht,Rt.asQuarters=oe,Rt.asYears=bn,Rt.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*Z(this._months/12):NaN},Rt._bubble=function(){var l=this._milliseconds,h=this._days,_=this._months,b=this._data;return 0<=l&&0<=h&&0<=_||l<=0&&h<=0&&_<=0||(l+=864e5*xr(Is(_)+h),_=h=0),b.milliseconds=l%1e3,l=de(l/1e3),b.seconds=l%60,l=de(l/60),b.minutes=l%60,l=de(l/60),b.hours=l%24,h+=de(l/24),_+=l=de(wr(h)),h-=xr(Is(l)),l=de(_/12),_%=12,b.days=h,b.months=_,b.years=l,this},Rt.clone=function(){return un(this)},Rt.get=function(l){return l=Kt(l),this.isValid()?this[l+"s"]():NaN},Rt.milliseconds=we,Rt.seconds=zn,Rt.minutes=es,Rt.hours=vt,Rt.days=Ps,Rt.weeks=function(){return de(this.days()/7)},Rt.months=Er,Rt.years=se,Rt.humanize=function(l,h){if(!this.isValid())return this.localeData().invalidDate();var _=!1,b=jn;return typeof l=="object"&&(h=l,l=!1),typeof l=="boolean"&&(_=l),typeof h=="object"&&(b=Object.assign({},jn,h),h.s!=null&&h.ss==null&&(b.ss=h.s-1)),l=this.localeData(),h=pl(this,!_,b,l),_&&(h=l.pastFuture(+this,h)),l.postformat(h)},Rt.toISOString=Rs,Rt.toString=Rs,Rt.toJSON=Rs,Rt.locale=Va,Rt.localeData=te,Rt.toIsoString=lt("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Rs),Rt.lang=zi,dt("X",0,0,"unix"),dt("x",0,0,"valueOf"),ct("x",ot),ct("X",/[+-]?\d+(\.\d{1,3})?/),Bt("X",function(l,h,_){_._d=new Date(1e3*parseFloat(l))}),Bt("x",function(l,h,_){_._d=new Date(Z(l))}),s.version="2.29.4",e=qt,s.fn=w,s.min=function(){return si("isBefore",[].slice.call(arguments,0))},s.max=function(){return si("isAfter",[].slice.call(arguments,0))},s.now=function(){return Date.now?Date.now():+new Date},s.utc=A,s.unix=function(l){return qt(1e3*l)},s.months=function(l,h){return Ge(l,h,"months")},s.isDate=v,s.locale=Pn,s.invalid=U,s.duration=un,s.isMoment=j,s.weekdays=function(l,h,_){return Ls(l,h,_,"weekdays")},s.parseZone=function(){return qt.apply(null,arguments).parseZone()},s.localeData=Rn,s.isDuration=Cs,s.monthsShort=function(l,h){return Ge(l,h,"monthsShort")},s.weekdaysMin=function(l,h,_){return Ls(l,h,_,"weekdaysMin")},s.defineLocale=lr,s.updateLocale=function(l,h){var _,b;return h!=null?(b=Ki,ie[l]!=null&&ie[l].parentLocale!=null?ie[l].set(wt(ie[l]._config,h)):(h=wt(b=(_=Xi(l))!=null?_._config:b,h),_==null&&(h.abbr=l),(b=new Ot(h)).parentLocale=ie[l],ie[l]=b),Pn(l)):ie[l]!=null&&(ie[l].parentLocale!=null?(ie[l]=ie[l].parentLocale,l===Pn()&&Pn(l)):ie[l]!=null&&delete ie[l]),ie[l]},s.locales=function(){return ae(ie)},s.weekdaysShort=function(l,h,_){return Ls(l,h,_,"weekdaysShort")},s.normalizeUnits=Kt,s.relativeTimeRounding=function(l){return l===void 0?Oe:typeof l=="function"&&(Oe=l,!0)},s.relativeTimeThreshold=function(l,h){return jn[l]!==void 0&&(h===void 0?jn[l]:(jn[l]=h,l==="s"&&(jn.ss=h-1),!0))},s.calendarFormat=function(l,h){return(l=l.diff(h,"days",!0))<-6?"sameElse":l<-1?"lastWeek":l<0?"lastDay":l<1?"sameDay":l<2?"nextDay":l<7?"nextWeek":"sameElse"},s.prototype=w,s.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},s})})(PE);const CP=PE.exports,TP={xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"100%",viewBox:"0 0 60 28"},MP=["fill"],NP=[m.createElementVNode("path",{d:"M18.264 11.026c-.093 5.512-4.717 9.88-10.242 9.88H3.569a.42.42 0 0 1-.42-.42v-2.931a.42.42 0 0 1 .42-.419h4.488c3.431 0 6.332-2.684 6.427-6.106.098-3.55-2.759-6.46-6.296-6.46H3.569a.42.42 0 0 1-.42-.42V1.22A.42.42 0 0 1 3.57.8h4.619c5.623 0 10.17 4.596 10.076 10.226M24.176 5.826h-3.004a.387.387 0 0 0-.387.387v14.306c0 .214.173.387.387.387h3.004a.387.387 0 0 0 .388-.387V6.213a.387.387 0 0 0-.388-.387"},null,-1),m.createElementVNode("path",{d:"M6.54 5.826H3.538a.387.387 0 0 0-.388.387v9.28c0 .213.174.386.388.386H6.54a.387.387 0 0 0 .387-.386v-9.28a.387.387 0 0 0-.387-.387"},null,-1),m.createElementVNode("path",{d:"M0 9.354v2.997c0 .214.173.387.387.387H9.69a.387.387 0 0 0 .387-.387V9.354a.387.387 0 0 0-.387-.386H.387A.387.387 0 0 0 0 9.354M24.564 2.685a1.887 1.887 0 0 1-1.89 1.885 1.887 1.887 0 0 1-1.89-1.885c0-1.041.847-1.885 1.89-1.885 1.044 0 1.89.844 1.89 1.885M34.64 17.136a3.775 3.775 0 0 1-3.778-3.77 3.775 3.775 0 0 1 3.779-3.77 3.775 3.775 0 0 1 3.779 3.77 3.775 3.775 0 0 1-3.78 3.77m4.092-11.051l-.312.75a7.554 7.554 0 0 0-4.062-1.003c-3.958.144-7.177 3.397-7.273 7.347-.103 4.249 3.32 7.727 7.556 7.727a7.545 7.545 0 0 0 3.779-1.008l.312.75a.42.42 0 0 0 .388.258h2.659a.42.42 0 0 0 .42-.42V6.247a.42.42 0 0 0-.42-.42H39.12a.42.42 0 0 0-.388.259M56.045 13.693a3.786 3.786 0 0 1-3.368 3.371 3.774 3.774 0 0 1-4.152-4.135 3.778 3.778 0 0 1 7.52.765m3.377-7.919h-2.66a.42.42 0 0 0-.386.257l-.312.75a7.553 7.553 0 0 0-4.063-1.003c-3.958.145-7.176 3.398-7.273 7.348-.103 4.248 3.321 7.727 7.556 7.727a7.54 7.54 0 0 0 3.772-1.006c-.12 1.931-1.666 3.443-3.633 3.513-.24.008-1.593.01-2.177.01-.161.001-.306.101-.362.252l-1.121 3.01a.386.386 0 0 0 .365.52l3.156-.02c.966 0 1.889-.077 2.737-.405a7.554 7.554 0 0 0 4.717-5.773c.067-.41.104-.829.104-1.257V6.194a.42.42 0 0 0-.42-.419"},null,-1)],AP=m.defineComponent({__name:"DiagLogo",props:{color:{default:"#222428"}},setup(n){const t=n;return(e,s)=>(m.openBlock(),m.createElementBlock("div",null,[(m.openBlock(),m.createElementBlock("svg",TP,[m.createElementVNode("g",{fill:t.color,"fill-rule":"evenodd"},NP,8,MP)]))]))}}),RE=n=>(m.pushScopeId("data-v-69afa921"),n=n(),m.popScopeId(),n),OP={class:"patient-info-wrapper psc-grid psc-grid-cols-12 psc-mx-0 psc-p-[16px]"},LP={class:"psc-col-span-12 psc-p-0 md:psc-pr-[4px] md:psc-col-span-12"},IP={class:"psc-text-white psc-text-[16px] psc-font-[600]"},PP={class:"psc-text-white psc-text-[14px]"},RP={class:"psc-flex psc-items-center psc-mr-[62px] psc-mt-[8px]"},FP=RE(()=>m.createElementVNode("i",{class:"psc-mr-[5px] dgic-user-fill"},null,-1)),BP={class:"psc-flex psc-items-center psc-mt-[8px]"},VP=RE(()=>m.createElementVNode("i",{class:"psc-mr-[5px] dgic-phone-fill"},null,-1)),$P=m.defineComponent({__name:"PatientInfo",props:{bookingDetail:null},setup(n){const t=n,{t:e}=Xn(),s=m.computed(()=>{var d;return t.bookingDetail&&((d=t.bookingDetail)==null?void 0:d.first_name)||""}),a=m.computed(()=>t.bookingDetail&&{[Oc.Male]:e("psc.male"),[Oc.Female]:e("psc.female")}[t.bookingDetail.gender]||""),o=m.computed(()=>{var d;if((d=t.bookingDetail)!=null&&d.date_of_birth)try{return CP(t.bookingDetail.date_of_birth).format(V1)}catch{return"--/--/--"}return"--/--/--"}),u=m.computed(()=>{var d;return((d=t.bookingDetail)==null?void 0:d.phone_number)||""});return(d,f)=>(m.openBlock(),m.createElementBlock("div",OP,[m.createVNode(AP,{color:"#EBF2FF",class:"diag-header-logo"}),m.createElementVNode("div",LP,[m.createElementVNode("div",IP,m.toDisplayString(m.unref(s)||"Nguyen Hoang Thuy Ngan"),1),m.createElementVNode("div",PP,[m.createElementVNode("div",RP,[FP,m.createTextVNode(" "+m.toDisplayString(`${m.unref(o)}${m.unref(a)&&" - "+m.unref(a)}`),1)]),m.createElementVNode("div",BP,[VP,m.createTextVNode(" "+m.toDisplayString(m.unref(u)),1)])])])]))}}),OB="",YP=Qs($P,[["__scopeId","data-v-69afa921"]]),WP=n=>(m.pushScopeId("data-v-7aeb0d64"),n=n(),m.popScopeId(),n),UP={class:"psc-mb-[16px]"},HP={class:"psc-font-[700] psc-text-[20px]"},zP={class:"psc-mb-[16px] psc-text-[16px]"},jP=WP(()=>m.createElementVNode("i",{class:"psc-ml-[9px] psc-mb-[3px]"},[m.createElementVNode("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[m.createElementVNode("path",{d:"M6.13398 2.66675H4.33398C2.67713 2.66675 1.33398 4.00989 1.33398 5.66675V11.6667C1.33398 13.3236 2.67713 14.6667 4.33398 14.6667H10.334C11.9908 14.6667 13.334 13.3236 13.334 11.6667V9.86675",stroke:"white","stroke-width":"2","stroke-linecap":"round"}),m.createElementVNode("path",{d:"M8 7.99992L14.6667 1.33325M14.6667 1.33325V6.7878M14.6667 1.33325H9.21212",stroke:"white","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})])],-1)),GP=m.defineComponent({__name:"GetToDiag",emits:["click:find-branch"],setup(n,{emit:t}){const e=()=>{t("click:find-branch")};return(s,a)=>(m.openBlock(),m.createElementBlock("div",null,[m.createElementVNode("div",UP,[m.createElementVNode("span",HP,m.toDisplayString(s.$t("psc.test_result_booking_detail_get_to_diag")),1)]),m.createElementVNode("div",zP,m.toDisplayString(s.$t("psc.test_result_booking_detail_visit_diag_branch")),1),m.createElementVNode("button",{class:"psc-py-[10px] psc-px-[16px] psc-flex psc-items-center find-branch-btn psc-bg-[#0766f7] psc-text-[#fff] psc-rounded-[8px]",onClick:e},[m.createElementVNode("span",null,m.toDisplayString(s.$t("psc.test_result_find_nearest_diag_branch")),1),jP])]))}}),LB="",KP=Qs(GP,[["__scopeId","data-v-7aeb0d64"]]),qP=n=>(m.pushScopeId("data-v-08e68cf3"),n=n(),m.popScopeId(),n),XP={class:"psc-pb-[24px] psc-px-[16px]"},ZP={class:"psc-text-[14px] psc-font-[700] psc-mt-[12px] psc-text-primary"},JP={key:0},QP={class:"psc-text-[14px] psc-font-[700] psc-mt-[12px]"},tR=qP(()=>m.createElementVNode("i",{class:"psc-mr-[8px] psc-mt-[3px] dgic-test psc-text-[#aeb0bd]"},null,-1)),eR={key:0},nR={class:"psc-text-[14px] psc-font-[700] psc-mt-[12px] psc-text-primary"},iR={class:"psc-mt-[12px] psc-text-[14px] psc-items-start test-name psc-flex test-item psc-font-[600]"},sR={key:0,class:"psc-mt-6"},rR={class:"psc-text-sm psc-font-bold psc-text-primary"},aR={class:"psc-mt-2"},oR={class:"booking-note psc-rounded psc-py-4 psc-px-3"},lR={class:"psc-text-sm"},cR=m.defineComponent({__name:"BookingPrescription",props:{bookingDetail:null},setup(n){const t=n,{t:e,locale:s}=Xn(),a=m.computed(()=>{var f;const d={tests:[],packages:[],imaging_services:[]};return(f=t.bookingDetail)!=null&&f.services&&t.bookingDetail.services.forEach(({service:g})=>{g.is_package||g.is_group?d.packages.push({name_vi:g.test_name_vi,name_en:g.test_name_en}):g.is_imaging?d.imaging_services.push({name_vi:g.test_name_vi,name_en:g.test_name_en}):d.tests.push({name_vi:g.simple_name_vi,name_en:g.simple_name_en})}),d}),o=m.computed(()=>{var d;return(d=t.bookingDetail)!=null&&d.total_amount?t.bookingDetail.total_amount.toLocaleString("vi"):""}),u=m.computed(()=>t.bookingDetail?t.bookingDetail.note:"");return(d,f)=>(m.openBlock(),m.createElementBlock("div",XP,[m.createElementVNode("div",ZP,m.toDisplayString(m.unref(e)("psc.test_result_booking_detail_test_list")),1),(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(Object.keys(m.unref(a)),g=>(m.openBlock(),m.createElementBlock(m.Fragment,{key:g},[m.unref(a)[g].length?(m.openBlock(),m.createElementBlock("div",JP,[m.createElementVNode("div",QP,m.toDisplayString(m.unref(e)(`psc.test_result_booking_detail_${g}`)),1),(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(m.unref(a)[g],(v,D)=>(m.openBlock(),m.createElementBlock("div",{key:`${g}_${D}`,class:"psc-mt-[12px] psc-text-[14px] psc-items-start test-name psc-flex test-item"},[tR,m.createElementVNode("span",null,m.toDisplayString(m.unref(s)==="vi"?v.name_vi:v.name_en),1)]))),128))])):m.createCommentVNode("",!0)],64))),128)),m.unref(o)?(m.openBlock(),m.createElementBlock("div",eR,[m.createElementVNode("div",nR,m.toDisplayString(m.unref(e)("psc.test_result_booking_detail_total_payment")),1),m.createElementVNode("div",iR,m.toDisplayString(m.unref(o)),1),m.unref(u)?(m.openBlock(),m.createElementBlock("div",sR,[m.createElementVNode("div",rR,m.toDisplayString(m.unref(e)("psc.test_result_booking_detail_note")),1),m.createElementVNode("div",aR,[m.createElementVNode("div",oR,[m.createElementVNode("span",lR,m.toDisplayString(m.unref(u)),1)])])])):m.createCommentVNode("",!0)])):m.createCommentVNode("",!0)]))}}),IB="",uR=Qs(cR,[["__scopeId","data-v-08e68cf3"]]),hR={class:"psc-text-[20px] psc-font-[700]"},dR={class:"psc-my-[16px]"},fR={class:"psc-font-[700]"},pR={class:"psc-my-[16px]"},mR={class:"psc-font-[700]"},_R=m.defineComponent({__name:"BookingSupport",setup(n){const{t}=Xn();return(e,s)=>(m.openBlock(),m.createElementBlock("div",null,[m.createElementVNode("div",hR,m.toDisplayString(m.unref(t)("psc.test_result_support")),1),m.createElementVNode("div",dR,[m.createElementVNode("span",fR,m.toDisplayString(m.unref(t)("psc.test_result_booking_detail_support_hotline")+":"),1),m.createTextVNode(" "+m.toDisplayString(m.unref(Rc)),1)]),m.createElementVNode("div",pR,[m.createElementVNode("span",mR,m.toDisplayString(m.unref(t)("psc.test_result_booking_detail_support_email")+":"),1),m.createTextVNode(" "+m.toDisplayString(m.unref(Vv)),1)])]))}});function FE(){const{t:n}=Xn();return{getBookingStatusText:s=>{switch(s){case xu.Pending:return n("psc.test_result_booking_created");case xu.Canceled:return n("psc.test_result_booking_canceled");case xu.Processed:return n("psc.test_result_booking_completed");default:return""}},getPaymentStatusText:s=>{switch(s){case wu.Unpaid:return n("psc.test_result_booking_unpaid");case wu.Finished:return n("psc.test_result_booking_paid");case wu.Refunded:return n("psc.test_result_booking_refunded");default:return""}}}}const gR={class:"psc-p-[16px] psc-rounded booking-number"},yR={class:"psc-mb-[10px] psc-flex psc-items-center psc-justify-between"},bR={class:"psc-text-[14px] psc-text-[#2b2c45]"},vR={class:"psc-flex psc-items-center psc-justify-between"},kR={class:"psc-text-[32px] psc-font-[700] psc-text-[#0766f7]"},xR=m.defineComponent({__name:"BookingNumber",props:{bookingDetail:null},setup(n){const t=n,{getBookingStatusText:e,getPaymentStatusText:s}=FE(),a=m.computed(()=>{var d;return(d=t.bookingDetail)==null?void 0:d.booking_code}),o=m.computed(()=>{var d;return(d=t.bookingDetail)==null?void 0:d.booking_status}),u=m.computed(()=>{var d;return(d=t.bookingDetail)==null?void 0:d.payment_status});return(d,f)=>(m.openBlock(),m.createElementBlock("div",gR,[m.createElementVNode("div",yR,[m.createElementVNode("div",bR,m.toDisplayString(d.$t("psc.test_result_booking_detail_booking_number")),1),m.createElementVNode("div",{class:m.normalizeClass(`booking__status--${m.unref(o)}`)},m.toDisplayString(m.unref(e)(m.unref(o))),3)]),m.createElementVNode("div",vR,[m.createElementVNode("div",kR,m.toDisplayString(m.unref(a)),1),m.createElementVNode("div",{class:m.normalizeClass(`booking__payment__status--${m.unref(u)}`)},m.toDisplayString(m.unref(s)(m.unref(u))),3)])]))}}),PB="",wR=Qs(xR,[["__scopeId","data-v-0bdd0fa9"]]),ER=n=>(m.pushScopeId("data-v-f774394b"),n=n(),m.popScopeId(),n),SR={key:0,class:"psc-px-4 psc-mb-6"},DR=ER(()=>m.createElementVNode("i",{class:"dgic-chevron-left-thin psc-text-lg"},null,-1)),CR={class:"psc-text-sm psc-ml-1"},TR={key:2,class:"psc-px-4 psc-pb-4"},MR={class:"psc-text-[rgba(0, 0, 0, 0.85)] psc-text-[24px] psc-mb-[30px] psc-font-bold"},NR={class:"psc-grid psc-grid-cols-12 2xl:psc-gap-[100px] xl:psc-gap-[100px]"},AR={class:"psc-col-span-12 xl:psc-col-span-7"},OR={class:"booking-left-col psc-relative"},LR={class:"psc-col-span-12 xl:psc-col-span-5 psc-mt-[32px] xl:psc-mt-[0px] psc-divide-y psc-divide-[#e9ecef]"},IR=m.defineComponent({__name:"BookingDetail",props:{bookingDetail:null,loading:{type:Boolean},hideBackToList:{type:Boolean,default:!1}},emits:["switch-to-list","click:find-branch"],setup(n,{emit:t}){const e=n;return(s,a)=>(m.openBlock(),m.createElementBlock("div",null,[m.createVNode(m.unref(Xk),{loading:e.loading},null,8,["loading"]),e.hideBackToList?m.createCommentVNode("",!0):(m.openBlock(),m.createElementBlock("div",SR,[m.createElementVNode("div",{class:"psc-flex psc-items-center psc-cursor-pointer psc-text-primary hover:psc-text-primary/[0.8]",onClick:a[0]||(a[0]=o=>t("switch-to-list"))},[DR,m.createElementVNode("span",CR,m.toDisplayString(s.$t("psc.test_result_booking_detail_back_to_all_bookings")),1)])])),n.bookingDetail.booking_code?(m.openBlock(),m.createElementBlock("div",TR,[m.createElementVNode("div",MR,m.toDisplayString(s.$t("psc.test_result_booking_detail")),1),m.createElementVNode("div",NR,[m.createElementVNode("div",AR,[m.createElementVNode("div",OR,[m.createVNode(YP,{"booking-detail":e.bookingDetail,class:"psc-pb-[123px]"},null,8,["booking-detail"]),m.createVNode(wR,{"booking-detail":e.bookingDetail,class:"psc-absolute psc-booking-number"},null,8,["booking-detail"]),m.createVNode(uR,{"booking-detail":e.bookingDetail,class:"psc-mt-[44px]"},null,8,["booking-detail"])])]),m.createElementVNode("div",LR,[m.createVNode(KP,{class:"psc-pb-[32px]","onClick:findBranch":a[1]||(a[1]=o=>t("click:find-branch"))}),m.createVNode(_R,{class:"psc-pt-[32px]"})])])])):(m.openBlock(),m.createBlock(m.unref(vd),{key:1,title:s.$t("psc.test_result_no_booking_found"),subtitle:s.$t("psc.test_result_message_no_booking_yet"),class:"psc-content-h-full"},null,8,["title","subtitle"]))]))}}),RB="",PR=Qs(IR,[["__scopeId","data-v-f774394b"]]),RR=n=>(m.pushScopeId("data-v-f386ea35"),n=n(),m.popScopeId(),n),FR={class:"booking-item psc-box-shadow hover:psc-bg-slate-100"},BR={class:"psc-flex psc-items-center"},VR={class:"psc-flex-initial psc-font-semibold psc-text-primary"},$R={class:"psc-flex-auto psc-pl-2 psc-text-black/[0.6] psc-text-sm psc-font-normal"},YR=RR(()=>m.createElementVNode("div",{class:"psc-flex psc-justify-end !psc-mt-0"},[m.createElementVNode("i",{class:"dgic-chevron-right-thin psc-text-primary psc-text-2xl"})],-1)),WR={class:"!psc-mt-0"},UR=m.defineComponent({__name:"BookingListItem",props:{item:null},setup(n){const t=n,{getBookingStatusText:e,getPaymentStatusText:s}=FE();return(a,o)=>(m.openBlock(),m.createElementBlock("div",FR,[m.createElementVNode("div",BR,[m.createElementVNode("div",VR,[m.createElementVNode("span",null,m.toDisplayString(t.item.booking_code),1)]),m.createElementVNode("div",$R,m.toDisplayString(m.unref(Po)(t.item.created_at)),1)]),YR,m.createElementVNode("div",WR,[m.createElementVNode("span",{class:m.normalizeClass([`booking__status--${t.item.booking_status}`,"psc-px-[8px] psc-py-[4px] psc-rounded-lg psc-text-xs psc-font-semibold"])},m.toDisplayString(m.unref(e)(t.item.booking_status)),3),m.createElementVNode("span",{class:m.normalizeClass([`booking__payment__status--${t.item.payment_status}`,"psc-px-[8px] psc-py-[4px] psc-rounded-lg psc-ml-2 psc-text-xs psc-font-semibold"])},m.toDisplayString(m.unref(s)(t.item.payment_status)),3)])]))}}),FB="",BE=Qs(UR,[["__scopeId","data-v-f386ea35"]]),HR={key:1},zR={class:"psc-text-2xl psc-font-bold psc-px-4"},jR={class:"psc-px-4"},GR={key:0,class:"psc-px-4 psc-w-full psc-pt-7 psc-text-center"},KR=m.defineComponent({__name:"BookingList",props:{items:null,loading:{type:Boolean},skeletonCount:null,hideLoadMore:{type:Boolean},bookingButtonUrl:{default:""}},emits:["switch-to-detail","click:load-more"],setup(n,{emit:t}){const e=n,{t:s}=Xn(),a=async()=>{t("click:load-more")},o=async u=>{t("switch-to-detail",u)};return(u,d)=>!e.loading&&e.items.length===0?(m.openBlock(),m.createBlock(vd,{key:0,title:u.$t("psc.test_result_no_booking_found"),subtitle:u.$t("psc.test_result_message_no_booking_yet"),"booking-button-url":e.bookingButtonUrl,class:"psc-content-h-full"},null,8,["title","subtitle","booking-button-url"])):(m.openBlock(),m.createElementBlock("div",HR,[m.createElementVNode("p",zR,m.toDisplayString(m.unref(s)("psc.test_result_all_bookings")),1),m.createElementVNode("div",jR,[(m.openBlock(!0),m.createElementBlock(m.Fragment,null,m.renderList(e.items,f=>(m.openBlock(),m.createBlock(BE,{key:f.booking_code,item:f,onClick:g=>o(f)},null,8,["item","onClick"]))),128)),n.loading?(m.openBlock(!0),m.createElementBlock(m.Fragment,{key:0},m.renderList(e.skeletonCount,f=>(m.openBlock(),m.createBlock(bd,{key:`item${f}`}))),128)):m.createCommentVNode("",!0)]),e.hideLoadMore?m.createCommentVNode("",!0):(m.openBlock(),m.createElementBlock("div",GR,[m.createVNode(m.unref(gc),{type:"primary-outline",disabled:e.loading,size:"sm","prepend-icon":"dgic-double-chevron-down-thin",onClick:a},{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString(m.unref(s)("psc.test_result_more_bookings")),1)]),_:1},8,["disabled"])]))]))}}),qR={class:"psc-w-full psc-flex psc-flex-wrap psc-justify-center psc-px-6"},XR={class:"psc-w-full psc-flex psc-flex-wrap"},ZR={class:"psc-w-full psc-text-sm psc-text-black/[0.85] psc-text-left"},JR={key:0,class:"psc-w-full psc-text-sm psc-text-black/[0.85] psc-text-left"},QR=m.defineComponent({__name:"ResultReadyV2",props:{testResult:null},setup(n){const t=n,{t:e}=Xn(),s=m.computed(()=>t.testResult.sample_collected_at&&Po(t.testResult.sample_collected_at)||"-"),a=m.computed(()=>t.testResult.result_at&&Po(t.testResult.result_at)||"-"),o=m.computed(()=>t.testResult.result_status===bi.Ready),u=m.computed(()=>{switch(t.testResult.result_status){case bi.Ready:return{cssClass:"psc-text-ready",text:e("psc.test_result_your_result_ready"),icon:"dgic-check-mark-thick"};case bi.PartiallyComplete:return{cssClass:"psc-text-partially-ready",text:e("psc.test_result_result_partial_completed"),icon:"dgic-partial-thick"};default:return{cssClass:"",text:"",icon:""}}});return(d,f)=>(m.openBlock(),m.createElementBlock("div",qR,[m.createElementVNode("div",{class:m.normalizeClass(["psc-font-semibold psc-w-full psc-pb-5 psc-flex psc-items-center psc-justify-start",m.unref(u).cssClass])},[m.createElementVNode("span",null,m.toDisplayString(m.unref(u).text),1),m.createElementVNode("i",{class:m.normalizeClass(["psc-ml-1 psc-text-xl",m.unref(u).icon])},null,2)],2),m.createElementVNode("div",XR,[m.createElementVNode("div",ZR,m.toDisplayString(m.unref(e)("psc.test_result_sample_collected_on"))+" "+m.toDisplayString(m.unref(s)),1),m.unref(o)?(m.openBlock(),m.createElementBlock("div",JR,m.toDisplayString(m.unref(e)("psc.test_result_result_released_on"))+" "+m.toDisplayString(m.unref(a)),1)):m.createCommentVNode("",!0)])]))}}),tF={class:"psc-w-full"},eF={class:"psc-box-shadow psc-rounded-lg psc-p-3 psc-flex psc-flex-wrap psc-border psc-border-[#e6f0fe]"},nF={class:"psc-flex psc-w-full psc-items-center"},iF={class:"psc-flex-initial psc-px-3"},sF={class:"psc-flex-auto"},rF={class:"psc-flex psc-items-center"},aF={class:"psc-text-black/[0.85] psc-font-semibold"},oF={class:"psc-px-2 psc-py-1 psc-rounded-lg psc-bg-[#e6f0fe] psc-uppercase psc-text-primary psc-font-semibold psc-text-xs psc-ml-2"},lF={class:"psc-text-sm psc-text-black/[0.6] psc-pt-1"},cF={class:"psc-w-full psc-pt-3"},uF=m.defineComponent({__name:"BookAppointmentButton",emits:["book"],setup(n,{emit:t}){return(e,s)=>(m.openBlock(),m.createElementBlock("div",tF,[m.createElementVNode("div",eF,[m.createElementVNode("div",nF,[m.createElementVNode("div",iF,[m.createVNode(m.unref(na),{icon:"dgic-stethoscope-thick",class:"psc-text-2xl psc-text-primary"})]),m.createElementVNode("div",sF,[m.createElementVNode("div",rF,[m.createElementVNode("div",aF,m.toDisplayString(e.$t("psc.test_result_doctor_appointment")),1),m.createElementVNode("div",oF,m.toDisplayString(e.$t("psc.test_result_free")),1)]),m.createElementVNode("div",lF,m.toDisplayString(e.$t("psc.test_result_more_about_your_results")),1)])]),m.createElementVNode("div",cF,[m.createVNode(m.unref(gc),{class:"psc-w-full","prepend-icon":"dgic-date-thick",type:"primary",onClick:s[0]||(s[0]=a=>t("book"))},{default:m.withCtx(()=>[m.createTextVNode(m.toDisplayString(e.$t("psc.test_result_book_appointment")),1)]),_:1})])])]))}});var _m={exports:{}};/**
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,Noto Sans,sans-serif,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-size:100%;font-weight:inherit;line-height:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);--tw-ring-shadow: 0 0 rgba(0,0,0,0);--tw-shadow: 0 0 rgba(0,0,0,0);--tw-shadow-colored: 0 0 rgba(0,0,0,0);--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgba(59, 130, 246, .5);--tw-ring-offset-shadow: 0 0 rgba(0,0,0,0);--tw-ring-shadow: 0 0 rgba(0,0,0,0);--tw-shadow: 0 0 rgba(0,0,0,0);--tw-shadow-colored: 0 0 rgba(0,0,0,0);--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: }.psc-container{width:100%}@media (min-width: 640px){.psc-container{max-width:640px}}@media (min-width: 768px){.psc-container{max-width:768px}}@media (min-width: 1024px){.psc-container{max-width:1024px}}@media (min-width: 1280px){.psc-container{max-width:1280px}}@media (min-width: 1536px){.psc-container{max-width:1536px}}.psc-absolute{position:absolute}.psc-relative{position:relative}.psc-right-\[16px\]{right:16px}.psc-top-\[50\%\]{top:50%}.psc-col-span-12{grid-column:span 12 / span 12}.-psc-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-psc-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.psc-mx-0{margin-left:0;margin-right:0}.psc-mx-auto{margin-left:auto;margin-right:auto}.psc-my-\[16px\]{margin-top:16px;margin-bottom:16px}.\!psc-mt-0{margin-top:0!important}.-psc-ml-0{margin-left:-0px}.-psc-ml-0\.5{margin-left:-.125rem}.-psc-mr-0{margin-right:-0px}.-psc-mr-0\.5{margin-right:-.125rem}.psc-mb-4{margin-bottom:1rem}.psc-mb-6{margin-bottom:1.5rem}.psc-mb-\[10px\]{margin-bottom:10px}.psc-mb-\[12px\]{margin-bottom:12px}.psc-mb-\[16px\]{margin-bottom:16px}.psc-mb-\[20px\]{margin-bottom:20px}.psc-mb-\[24px\]{margin-bottom:24px}.psc-mb-\[30px\]{margin-bottom:30px}.psc-mb-\[35px\]{margin-bottom:35px}.psc-mb-\[3px\]{margin-bottom:3px}.psc-mb-\[8px\]{margin-bottom:8px}.psc-ml-1{margin-left:.25rem}.psc-ml-2{margin-left:.5rem}.psc-ml-\[9px\]{margin-left:9px}.psc-mr-1{margin-right:.25rem}.psc-mr-2{margin-right:.5rem}.psc-mr-\[16px\]{margin-right:16px}.psc-mr-\[24px\]{margin-right:24px}.psc-mr-\[4px\]{margin-right:4px}.psc-mr-\[5px\]{margin-right:5px}.psc-mr-\[62px\]{margin-right:62px}.psc-mr-\[8px\]{margin-right:8px}.psc-mt-1{margin-top:.25rem}.psc-mt-2{margin-top:.5rem}.psc-mt-3{margin-top:.75rem}.psc-mt-4{margin-top:1rem}.psc-mt-6{margin-top:1.5rem}.psc-mt-8{margin-top:2rem}.psc-mt-\[12px\]{margin-top:12px}.psc-mt-\[20px\]{margin-top:20px}.psc-mt-\[24px\]{margin-top:24px}.psc-mt-\[32px\]{margin-top:32px}.psc-mt-\[3px\]{margin-top:3px}.psc-mt-\[44px\]{margin-top:44px}.psc-mt-\[8px\]{margin-top:8px}.psc-flex{display:flex}.psc-grid{display:grid}.psc-h-5{height:1.25rem}.psc-h-8{height:2rem}.psc-h-\[20vh\]{height:20vh}.psc-h-\[38px\]{height:38px}.psc-h-\[60px\]{height:60px}.psc-h-full{height:100%}.\!psc-max-h-0{max-height:0px!important}.\!psc-max-h-\[11vh\]{max-height:11vh!important}.psc-max-h-\[20vh\]{max-height:20vh}.psc-w-1\/2{width:50%}.psc-w-1\/3{width:33.333333%}.psc-w-32{width:8rem}.psc-w-64{width:16rem}.psc-w-8{width:2rem}.psc-w-\[38px\]{width:38px}.psc-w-\[60px\]{width:60px}.psc-w-full{width:100%}.psc-min-w-\[60px\]{min-width:60px}.psc-max-w-\[38px\]{max-width:38px}.psc-max-w-lg{max-width:32rem}.psc-flex-1{flex:1 1 0%}.psc-flex-auto{flex:1 1 auto}.psc-flex-initial{flex:0 1 auto}.-psc-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),-50%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes psc-pulse{50%{opacity:.5}}.psc-animate-pulse{animation:psc-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes psc-spin{to{transform:rotate(360deg)}}.psc-animate-spin{animation:psc-spin 1s linear infinite}.psc-cursor-pointer{cursor:pointer}.psc-grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.psc-flex-col{flex-direction:column}.psc-flex-wrap{flex-wrap:wrap}.psc-items-start{align-items:flex-start}.\!psc-items-center{align-items:center!important}.psc-items-center{align-items:center}.psc-justify-start{justify-content:flex-start}.psc-justify-end{justify-content:flex-end}.psc-justify-center{justify-content:center}.psc-justify-between{justify-content:space-between}.psc-space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * (1 - var(--tw-space-x-reverse)));margin-left:.75rem;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.psc-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * (1 - var(--tw-space-y-reverse)));margin-top:.75rem;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.psc-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * (1 - var(--tw-space-y-reverse)));margin-top:1rem;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.psc-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * (1 - var(--tw-space-y-reverse)));margin-top:1.5rem;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.psc-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * (1 - var(--tw-space-y-reverse)));margin-top:2rem;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.psc-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * (1 - var(--tw-divide-y-reverse)));border-top-width:1px;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:0px;border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.psc-divide-\[\#e9ecef\]>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:#e9ecef;border-color:rgb(233 236 239 / var(--tw-divide-opacity))}.psc-overflow-hidden{overflow:hidden}.psc-overflow-y-auto{overflow-y:auto}.psc-rounded{border-radius:.25rem}.psc-rounded-\[8px\]{border-radius:8px}.psc-rounded-full{border-radius:9999px}.psc-rounded-lg{border-radius:.5rem}.psc-rounded-xl{border-radius:.75rem}.psc-border,.psc-border-\[1px\]{border-width:1px}.psc-border-solid{border-style:solid}.psc-border-\[\#00000019\]{border-color:#00000019}.psc-border-\[\#e6f0fe\]{--tw-border-opacity: 1;border-color:#e6f0fe;border-color:rgb(230 240 254 / var(--tw-border-opacity))}.psc-border-black\/\[0\.1\]{border-color:#0000001a}.psc-border-black\/\[0\.25\]{border-color:#00000040}.psc-border-primary{--tw-border-opacity: 1;border-color:#0766f7;border-color:rgb(7 102 247 / var(--tw-border-opacity))}.\!psc-bg-primary{--tw-bg-opacity: 1 !important;background-color:#0766f7!important;background-color:rgb(7 102 247 / var(--tw-bg-opacity))!important}.psc-bg-\[\#0000\]\/\[0\.1\]{background-color:#0000001a}.psc-bg-\[\#00a86b\]\/\[\.1\],.psc-bg-\[\#00a86b\]\/\[0\.1\]{background-color:#00a86b1a}.psc-bg-\[\#0766f7\]{--tw-bg-opacity: 1;background-color:#0766f7;background-color:rgb(7 102 247 / var(--tw-bg-opacity))}.psc-bg-\[\#0766f7\]\/\[\.1\]{background-color:#0766f71a}.psc-bg-\[\#e6f0fe\]{--tw-bg-opacity: 1;background-color:#e6f0fe;background-color:rgb(230 240 254 / var(--tw-bg-opacity))}.psc-bg-\[\#ec3741\]\/\[\.1\],.psc-bg-\[\#ec3741\]\/\[0\.1\]{background-color:#ec37411a}.psc-bg-gray-100{--tw-bg-opacity: 1;background-color:#f3f4f6;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.psc-bg-gray-200{--tw-bg-opacity: 1;background-color:#e5e7eb;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.psc-bg-primary{--tw-bg-opacity: 1;background-color:#0766f7;background-color:rgb(7 102 247 / var(--tw-bg-opacity))}.\!psc-p-0{padding:0!important}.psc-p-0{padding:0}.psc-p-2{padding:.5rem}.psc-p-2\.5{padding:.625rem}.psc-p-3{padding:.75rem}.psc-p-4{padding:1rem}.psc-p-\[10px_16px\]{padding:10px 16px}.psc-p-\[16px\]{padding:16px}.\!psc-px-4{padding-left:1rem!important;padding-right:1rem!important}.\!psc-py-0{padding-top:0!important;padding-bottom:0!important}.psc-px-1{padding-left:.25rem;padding-right:.25rem}.psc-px-2{padding-left:.5rem;padding-right:.5rem}.psc-px-3{padding-left:.75rem;padding-right:.75rem}.psc-px-4{padding-left:1rem;padding-right:1rem}.psc-px-6{padding-left:1.5rem;padding-right:1.5rem}.psc-px-\[16px\]{padding-left:16px;padding-right:16px}.psc-px-\[8px\]{padding-left:8px;padding-right:8px}.psc-py-0{padding-top:0;padding-bottom:0}.psc-py-1{padding-top:.25rem;padding-bottom:.25rem}.psc-py-2{padding-top:.5rem;padding-bottom:.5rem}.psc-py-3{padding-top:.75rem;padding-bottom:.75rem}.psc-py-4{padding-top:1rem;padding-bottom:1rem}.psc-py-\[10px\]{padding-top:10px;padding-bottom:10px}.psc-py-\[20px\]{padding-top:20px;padding-bottom:20px}.psc-py-\[4px\]{padding-top:4px;padding-bottom:4px}.psc-pb-0{padding-bottom:0}.psc-pb-16{padding-bottom:4rem}.psc-pb-3{padding-bottom:.75rem}.psc-pb-32{padding-bottom:8rem}.psc-pb-4{padding-bottom:1rem}.psc-pb-5{padding-bottom:1.25rem}.psc-pb-6{padding-bottom:1.5rem}.psc-pb-8{padding-bottom:2rem}.psc-pb-\[123px\]{padding-bottom:123px}.psc-pb-\[24px\]{padding-bottom:24px}.psc-pb-\[32px\]{padding-bottom:32px}.psc-pb-\[53px\]{padding-bottom:53px}.psc-pl-2{padding-left:.5rem}.psc-pr-1{padding-right:.25rem}.psc-pt-1{padding-top:.25rem}.psc-pt-3{padding-top:.75rem}.psc-pt-7{padding-top:1.75rem}.psc-pt-\[32px\]{padding-top:32px}.psc-text-left{text-align:left}.psc-text-center{text-align:center}.psc-text-right{text-align:right}.psc-text-2xl{font-size:1.5rem;line-height:2rem}.psc-text-3xl{font-size:1.875rem;line-height:2.25rem}.psc-text-4xl{font-size:2.25rem;line-height:2.5rem}.psc-text-\[12px\]{font-size:12px}.psc-text-\[14px\]{font-size:14px}.psc-text-\[16px\]{font-size:16px}.psc-text-\[18\.8px\]{font-size:18.8px}.psc-text-\[20px\]{font-size:20px}.psc-text-\[22px\]{font-size:22px}.psc-text-\[24px\]{font-size:24px}.psc-text-\[32px\]{font-size:32px}.psc-text-\[60px\]{font-size:60px}.psc-text-\[80px\]{font-size:80px}.psc-text-lg{font-size:1.125rem;line-height:1.375rem}.psc-text-sm{font-size:.875rem;line-height:1.125rem}.psc-text-xl{font-size:1.25rem;line-height:1.625rem}.psc-text-xs{font-size:.75rem;line-height:1rem}.\!psc-font-bold{font-weight:700!important}.psc-font-\[600\]{font-weight:600}.psc-font-\[700\],.psc-font-bold{font-weight:700}.psc-font-medium{font-weight:500}.psc-font-normal{font-weight:400}.psc-font-semibold{font-weight:600}.psc-uppercase{text-transform:uppercase}.psc-capitalize{text-transform:capitalize}.\!psc-text-primary{--tw-text-opacity: 1 !important;color:#0766f7!important;color:rgb(7 102 247 / var(--tw-text-opacity))!important}.psc-text-\[\#00000019\]{color:#00000019}.psc-text-\[\#0000\]\/\[\.6\],.psc-text-\[\#0000\]\/\[0\.6\]{color:#0009}.psc-text-\[\#00a86b\]{--tw-text-opacity: 1;color:#00a86b;color:rgb(0 168 107 / var(--tw-text-opacity))}.psc-text-\[\#0766f7\]{--tw-text-opacity: 1;color:#0766f7;color:rgb(7 102 247 / var(--tw-text-opacity))}.psc-text-\[\#2b2c45\]{--tw-text-opacity: 1;color:#2b2c45;color:rgb(43 44 69 / var(--tw-text-opacity))}.psc-text-\[\#6a6b7a\]{--tw-text-opacity: 1;color:#6a6b7a;color:rgb(106 107 122 / var(--tw-text-opacity))}.psc-text-\[\#aeb0bd\]{--tw-text-opacity: 1;color:#aeb0bd;color:rgb(174 176 189 / var(--tw-text-opacity))}.psc-text-\[\#ec3741\]{--tw-text-opacity: 1;color:#ec3741;color:rgb(236 55 65 / var(--tw-text-opacity))}.psc-text-\[\#fff\]{--tw-text-opacity: 1;color:#fff;color:rgb(255 255 255 / var(--tw-text-opacity))}.psc-text-black\/\[0\.4\]{color:#0006}.psc-text-black\/\[0\.6\]{color:#0009}.psc-text-black\/\[0\.85\]{color:#000000d9}.psc-text-could-not-process,.psc-text-error{--tw-text-opacity: 1;color:#ec3741;color:rgb(236 55 65 / var(--tw-text-opacity))}.psc-text-not-ready{--tw-text-opacity: 1;color:#e16c00;color:rgb(225 108 0 / var(--tw-text-opacity))}.psc-text-partially-ready{--tw-text-opacity: 1;color:#1d1d5c;color:rgb(29 29 92 / var(--tw-text-opacity))}.psc-text-primary{--tw-text-opacity: 1;color:#0766f7;color:rgb(7 102 247 / var(--tw-text-opacity))}.psc-text-ready,.psc-text-success{--tw-text-opacity: 1;color:#00a86b;color:rgb(0 168 107 / var(--tw-text-opacity))}.psc-text-white{--tw-text-opacity: 1;color:#fff;color:rgb(255 255 255 / var(--tw-text-opacity))}.psc-transition-\[max-height\]{transition-property:max-height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:focus-visible{outline-offset:initial;outline:medium none invert;outline:initial}.psc-border-inner-primary{box-shadow:inset 0 0 0 1px #0766f7}.psc-border-inner-primary--disabled{box-shadow:inset 0 0 0 1px #0006}.psc-border-inner-secondary,.psc-border-inner-secondary--disabled{box-shadow:inset 0 0 0 1px #00000040}.psc-content-h-full{height:calc(100vh - 134px)}.psc-box-shadow{box-shadow:0 1px 2px #0000000f,0 5px 10px #0000000a}.before\:psc-absolute:before{content:var(--tw-content);position:absolute}.before\:psc-left-0:before{content:var(--tw-content);left:0px}.before\:psc-h-full:before{content:var(--tw-content);height:100%}.before\:psc-w-\[2px\]:before{content:var(--tw-content);width:2px}.before\:psc-rounded-lg:before{content:var(--tw-content);border-radius:.5rem}.before\:psc-bg-primary:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:#0766f7;background-color:rgb(7 102 247 / var(--tw-bg-opacity))}.before\:psc-content-\[\'\'\]:before{--tw-content: "";content:"";content:var(--tw-content)}.hover\:psc-bg-slate-100:hover{--tw-bg-opacity: 1;background-color:#f1f5f9;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.hover\:psc-text-primary\/\[0\.8\]:hover{color:#0766f7cc}.hover\:psc-text-primary\/\[0\.9\]:hover{color:#0766f7e6}.disabled\:psc-bg-\[\#aeb0bd\]:disabled{--tw-bg-opacity: 1;background-color:#aeb0bd;background-color:rgb(174 176 189 / var(--tw-bg-opacity))}@media (prefers-color-scheme: dark){.dark\:psc-bg-gray-300{--tw-bg-opacity: 1;background-color:#d1d5db;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.dark\:psc-bg-gray-400{--tw-bg-opacity: 1;background-color:#9ca3af;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}}@media (min-width: 768px){.md\:psc-col-span-12{grid-column:span 12 / span 12}.md\:psc-pr-\[4px\]{padding-right:4px}}@media (min-width: 1280px){.xl\:psc-col-span-5{grid-column:span 5 / span 5}.xl\:psc-col-span-7{grid-column:span 7 / span 7}.xl\:psc-mt-\[0px\]{margin-top:0}.xl\:psc-gap-\[100px\]{gap:100px}}@media (min-width: 1536px){.\32xl\:psc-gap-\[100px\]{gap:100px}}.cta-banner-btn[data-v-3bac2bd5]{box-shadow:0 4px 20px #0003;position:relative;display:flex;width:100%;align-items:center;border-radius:8px}.test-result-full-patient-info{text-align:"center"}.test-result-full-patient-info .fullname{font-size:20px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.4;letter-spacing:normal;text-align:center;color:#000000d9;margin-bottom:14px}.test-result-full-patient-info .more-info{font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;text-align:center;color:#000000d9;display:flex;justify-content:space-around;align-items:center;padding:4px 16px 0}.test-result-full-patient-info .more-info i{padding:3px;background-color:#e2e4e8;border-radius:50%;margin-right:4px}:root{--popper-theme-background-color: #fff;--popper-theme-background-color-hover: #fff;--popper-theme-text-color: rgba(0, 0, 0, .85);--popper-theme-border-width: 1px;--popper-theme-border-style: solid;--popper-theme-border-color: #e3e5ed;--popper-theme-border-radius: 6px;--popper-theme-padding: 16px;--popper-theme-box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .2)}.test-result-patient-short-info{text-align:center}.test-result-patient-short-info .patient-name{display:flex;align-items:center;font-size:20px;font-weight:700;color:#000000d9}.test-result-patient-short-info .patient-name i{margin-left:4px;line-height:0}.consumer-pending-result__body .icon{font-size:75px;margin-bottom:24px;color:#0766f7;line-height:0;text-align:center}.consumer-pending-result__body .description{font-size:16px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:#0009}.consumer-rejected-result__body .icon{font-size:87px;margin-bottom:12px;color:#8a8d9e;line-height:0;text-align:center}.consumer-rejected-result__body .description{font-size:16px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:#0009}.trend-detail .chart-wrapper[data-v-887ae7b1],.trend-detail .test-explaination[data-v-887ae7b1]{box-shadow:0 1px 2px #0000000f,0 5px 10px #0000000a}.trend-detail .chart-tooltip{background:white;border-radius:12px;color:#000000d9;opacity:1;pointer-events:none;position:absolute;transform:translate(-50%);transition:all .1s ease;font-size:12px;line-height:18px;margin-top:16px;border:1px solid rgba(0,0,0,.06);box-shadow:0 1px 2px #0000000f,0 5px 10px #0000000a;min-width:118px}.trend-detail .chart-tooltip__ul{list-style:none}.trend-detail .chart-tooltip__ul li div:nth-child(3){font-weight:700}.trend-detail .chart-tooltip__caret{position:absolute;width:10px;height:10px;top:-6px;left:calc(50% - 5px);z-index:-25}.trend-detail .chart-tooltip__caret:after{content:"";position:absolute;background:#fff;border-top:1px solid rgba(0,0,0,.06);border-right:1px solid rgba(0,0,0,.06);border-top-right-radius:2px;width:10px;height:10px;transform:rotate(315deg)}@media only screen and (max-width: 1023.98px){.test-result-history-detail-modal .modal-wrapper{align-items:flex-end}.test-result-history-detail-modal .modal-wrapper-content{height:auto;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.test-result-history-detail-modal .modal-body{overflow-y:auto}.test-result-history-detail-modal .modal-body .history-content{min-height:60vh;max-height:60vh}.test-result-history-detail-modal .modal-body .modal-header{padding-bottom:.5rem}.test-result-history-detail-modal .modal-body .modal-body{padding-top:.5rem}}@media only screen and (min-width: 1024px){.test-result-history-detail-modal .modal-wrapper{max-width:500px}.test-result-history-detail-modal .modal-wrapper-content{height:auto;border-radius:.5rem}.test-result-history-detail-modal .modal-body{overflow-y:auto}.test-result-history-detail-modal .modal-body .history-content{max-height:600px}.test-result-history-detail-modal .modal-body .modal-header{padding:24px 24px 0}.test-result-history-detail-modal .modal-body .modal-body{padding:0 24px 24px}}.book-appointment .book-appointment__date[data-v-94386939]{width:calc(14.2857142857% + (14.2857142857% - 38px) / 6)}.book-appointment .book-appointment__date[data-v-94386939]:last-child{width:38px}@media only screen and (max-width: 1023.98px){.book-appointment-modal .modal-wrapper{align-items:flex-end}.book-appointment-modal .modal-wrapper-content{height:auto;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.book-appointment-modal .modal-body{overflow-y:auto}.book-appointment-modal .modal-body .modal-body__content{min-height:30vh;max-height:calc(100vh - 180px)}.book-appointment-modal .modal-body .modal-header{padding-bottom:.5rem}.book-appointment-modal .modal-body .modal-body{padding-top:.5rem}}@media only screen and (min-width: 1024px){.book-appointment-modal .modal-wrapper{max-width:500px}.book-appointment-modal .modal-wrapper-content{height:auto;border-radius:.5rem}.book-appointment-modal .modal-body{overflow-y:auto}.book-appointment-modal .modal-body .modal-body__content{max-height:calc(100vh - 180px)}.book-appointment-modal .modal-body .modal-header{padding:24px 24px 0}.book-appointment-modal .modal-body .modal-body{padding:0 24px 24px}}.patient-info-wrapper[data-v-69afa921]{background-color:#0766f7;overflow:hidden;position:relative}.patient-info-wrapper .diag-header-logo[data-v-69afa921]{opacity:.3;height:205px;position:absolute;top:-50px;right:-315px}.patient-info-wrapper .role-label[data-v-69afa921]{color:#49fff4}.find-branch-btn svg[data-v-7aeb0d64]{font-size:16px!important}.prescription-header[data-v-08e68cf3],.note-header[data-v-08e68cf3]{color:#0766f7}.booking-note[data-v-08e68cf3]{background-color:#f2f2f2}.booking-note span[data-v-08e68cf3]{color:#6a6b7a;white-space:pre-wrap}.test-name[data-v-08e68cf3]{color:#2b2c45}.tag[data-v-0bdd0fa9],.booking__payment__status--refunded[data-v-0bdd0fa9],.booking__payment__status--unpaid[data-v-0bdd0fa9],.booking__payment__status--finished[data-v-0bdd0fa9],.booking__status--processed[data-v-0bdd0fa9],.booking__status--canceled[data-v-0bdd0fa9],.booking__status--pending[data-v-0bdd0fa9]{border-radius:8px;padding:4px 8px;font-size:12px;font-weight:600}.booking__status--pending[data-v-0bdd0fa9]{background-color:#0766f71a;--tw-text-opacity: 1;color:#0766f7;color:rgb(7 102 247 / var(--tw-text-opacity))}.booking__status--canceled[data-v-0bdd0fa9]{background-color:#ec37411a;--tw-text-opacity: 1;color:#ec3741;color:rgb(236 55 65 / var(--tw-text-opacity))}.booking__status--processed[data-v-0bdd0fa9],.booking__payment__status--finished[data-v-0bdd0fa9]{background-color:#00a86b1a;--tw-text-opacity: 1;color:#00a86b;color:rgb(0 168 107 / var(--tw-text-opacity))}.booking__payment__status--unpaid[data-v-0bdd0fa9]{background-color:#ec37411a;--tw-text-opacity: 1;color:#ec3741;color:rgb(236 55 65 / var(--tw-text-opacity))}.booking__payment__status--refunded[data-v-0bdd0fa9]{background-color:#0000001a;color:#0009}.booking-number[data-v-0bdd0fa9]{background:#ffffff;box-shadow:0 5px 10px #0000000a,0 1px 2px #0000000f}.booking-number .booking-alert[data-v-0bdd0fa9]{color:#6a6b7a}.booking-left-col[data-v-f774394b]{border-radius:8px;overflow-x:hidden;border:thin solid rgba(255,255,255,0);box-shadow:0 10px 20px #0000001a}.booking-left-col .psc-booking-number[data-v-f774394b]{position:absolute;top:128px;width:calc(100% - 32px);left:50%;transform:translate(-50%)}.booking-item[data-v-f386ea35]{margin-top:.75rem;cursor:pointer}.booking-item[data-v-f386ea35]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * (1 - var(--tw-space-y-reverse)));margin-top:.75rem;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.booking-item[data-v-f386ea35]{border-radius:.5rem;padding:.75rem}.dgic-chevron-right-thin[data-v-f386ea35]{line-height:.725rem!important}.booking__status--pending[data-v-f386ea35]{background-color:#0766f71a;--tw-text-opacity: 1;color:#0766f7;color:rgb(7 102 247 / var(--tw-text-opacity))}.booking__status--canceled[data-v-f386ea35]{background-color:#ec37411a;--tw-text-opacity: 1;color:#ec3741;color:rgb(236 55 65 / var(--tw-text-opacity))}.booking__status--processed[data-v-f386ea35],.booking__payment__status--finished[data-v-f386ea35]{background-color:#00a86b1a;--tw-text-opacity: 1;color:#00a86b;color:rgb(0 168 107 / var(--tw-text-opacity))}.booking__payment__status--unpaid[data-v-f386ea35]{background-color:#ec37411a;--tw-text-opacity: 1;color:#ec3741;color:rgb(236 55 65 / var(--tw-text-opacity))}.booking__payment__status--refunded[data-v-f386ea35]{background-color:#0000001a;color:#0009}.contact-support{cursor:pointer;--tw-text-opacity: 1;color:#0766f7;color:rgb(7 102 247 / var(--tw-text-opacity))}.call-us-text-button{display:flex;align-items:center;justify-content:center}.call-us-text-button .diag-phone-number{cursor:pointer;display:flex;align-items:center;font-size:14px;font-weight:700;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;text-align:center;color:#0766f7;margin-right:20px}.call-us-text-button .diag-phone-number i{font-size:20px}.call-us-text-button .diag-opening-time{font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;text-align:left;color:#0009}.result-ready{display:flex;flex-direction:column}.result-ready__title{font-size:16px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:#0009;margin-bottom:20px}.result-ready__date{font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:#0009}
|
|
1
|
+
.psc-container{width:100%}@media (min-width: 640px){.psc-container{max-width:640px}}@media (min-width: 768px){.psc-container{max-width:768px}}@media (min-width: 1024px){.psc-container{max-width:1024px}}@media (min-width: 1280px){.psc-container{max-width:1280px}}@media (min-width: 1536px){.psc-container{max-width:1536px}}.psc-absolute{position:absolute}.psc-relative{position:relative}.psc-right-\[16px\]{right:16px}.psc-top-\[50\%\]{top:50%}.psc-col-span-12{grid-column:span 12 / span 12}.-psc-mx-2{margin-left:-.5rem;margin-right:-.5rem}.-psc-my-2{margin-top:-.5rem;margin-bottom:-.5rem}.psc-mx-0{margin-left:0;margin-right:0}.psc-mx-auto{margin-left:auto;margin-right:auto}.psc-my-\[16px\]{margin-top:16px;margin-bottom:16px}.\!psc-mt-0{margin-top:0!important}.-psc-ml-0{margin-left:-0px}.-psc-ml-0\.5{margin-left:-.125rem}.-psc-mr-0{margin-right:-0px}.-psc-mr-0\.5{margin-right:-.125rem}.psc-mb-4{margin-bottom:1rem}.psc-mb-6{margin-bottom:1.5rem}.psc-mb-\[10px\]{margin-bottom:10px}.psc-mb-\[12px\]{margin-bottom:12px}.psc-mb-\[16px\]{margin-bottom:16px}.psc-mb-\[20px\]{margin-bottom:20px}.psc-mb-\[24px\]{margin-bottom:24px}.psc-mb-\[30px\]{margin-bottom:30px}.psc-mb-\[35px\]{margin-bottom:35px}.psc-mb-\[3px\]{margin-bottom:3px}.psc-mb-\[8px\]{margin-bottom:8px}.psc-ml-1{margin-left:.25rem}.psc-ml-2{margin-left:.5rem}.psc-ml-\[9px\]{margin-left:9px}.psc-mr-1{margin-right:.25rem}.psc-mr-2{margin-right:.5rem}.psc-mr-\[16px\]{margin-right:16px}.psc-mr-\[24px\]{margin-right:24px}.psc-mr-\[4px\]{margin-right:4px}.psc-mr-\[5px\]{margin-right:5px}.psc-mr-\[62px\]{margin-right:62px}.psc-mr-\[8px\]{margin-right:8px}.psc-mt-1{margin-top:.25rem}.psc-mt-2{margin-top:.5rem}.psc-mt-3{margin-top:.75rem}.psc-mt-4{margin-top:1rem}.psc-mt-6{margin-top:1.5rem}.psc-mt-8{margin-top:2rem}.psc-mt-\[12px\]{margin-top:12px}.psc-mt-\[20px\]{margin-top:20px}.psc-mt-\[24px\]{margin-top:24px}.psc-mt-\[32px\]{margin-top:32px}.psc-mt-\[3px\]{margin-top:3px}.psc-mt-\[44px\]{margin-top:44px}.psc-mt-\[8px\]{margin-top:8px}.psc-flex{display:flex}.psc-grid{display:grid}.psc-h-5{height:1.25rem}.psc-h-8{height:2rem}.psc-h-\[20vh\]{height:20vh}.psc-h-\[38px\]{height:38px}.psc-h-\[60px\]{height:60px}.psc-h-full{height:100%}.\!psc-max-h-0{max-height:0px!important}.\!psc-max-h-\[11vh\]{max-height:11vh!important}.psc-max-h-\[20vh\]{max-height:20vh}.psc-w-1\/2{width:50%}.psc-w-1\/3{width:33.333333%}.psc-w-32{width:8rem}.psc-w-64{width:16rem}.psc-w-8{width:2rem}.psc-w-\[38px\]{width:38px}.psc-w-\[60px\]{width:60px}.psc-w-full{width:100%}.psc-min-w-\[60px\]{min-width:60px}.psc-max-w-\[38px\]{max-width:38px}.psc-max-w-lg{max-width:32rem}.psc-flex-1{flex:1 1 0%}.psc-flex-auto{flex:1 1 auto}.psc-flex-initial{flex:0 1 auto}.-psc-translate-y-1\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),-50%) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y));transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes psc-pulse{50%{opacity:.5}}.psc-animate-pulse{animation:psc-pulse 2s cubic-bezier(.4,0,.6,1) infinite}@keyframes psc-spin{to{transform:rotate(360deg)}}.psc-animate-spin{animation:psc-spin 1s linear infinite}.psc-cursor-pointer{cursor:pointer}.psc-grid-cols-12{grid-template-columns:repeat(12,minmax(0,1fr))}.psc-flex-col{flex-direction:column}.psc-flex-wrap{flex-wrap:wrap}.psc-items-start{align-items:flex-start}.\!psc-items-center{align-items:center!important}.psc-items-center{align-items:center}.psc-justify-start{justify-content:flex-start}.psc-justify-end{justify-content:flex-end}.psc-justify-center{justify-content:center}.psc-justify-between{justify-content:space-between}.psc-space-x-3>:not([hidden])~:not([hidden]){--tw-space-x-reverse: 0;margin-right:0rem;margin-right:calc(.75rem * var(--tw-space-x-reverse));margin-left:calc(.75rem * (1 - var(--tw-space-x-reverse)));margin-left:.75rem;margin-left:calc(.75rem * calc(1 - var(--tw-space-x-reverse)))}.psc-space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * (1 - var(--tw-space-y-reverse)));margin-top:.75rem;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.psc-space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1rem * (1 - var(--tw-space-y-reverse)));margin-top:1rem;margin-top:calc(1rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(1rem * var(--tw-space-y-reverse))}.psc-space-y-6>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(1.5rem * (1 - var(--tw-space-y-reverse)));margin-top:1.5rem;margin-top:calc(1.5rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(1.5rem * var(--tw-space-y-reverse))}.psc-space-y-8>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(2rem * (1 - var(--tw-space-y-reverse)));margin-top:2rem;margin-top:calc(2rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(2rem * var(--tw-space-y-reverse))}.psc-divide-y>:not([hidden])~:not([hidden]){--tw-divide-y-reverse: 0;border-top-width:calc(1px * (1 - var(--tw-divide-y-reverse)));border-top-width:1px;border-top-width:calc(1px * calc(1 - var(--tw-divide-y-reverse)));border-bottom-width:0px;border-bottom-width:calc(1px * var(--tw-divide-y-reverse))}.psc-divide-\[\#e9ecef\]>:not([hidden])~:not([hidden]){--tw-divide-opacity: 1;border-color:#e9ecef;border-color:rgb(233 236 239 / var(--tw-divide-opacity))}.psc-overflow-hidden{overflow:hidden}.psc-overflow-y-auto{overflow-y:auto}.psc-rounded{border-radius:.25rem}.psc-rounded-\[8px\]{border-radius:8px}.psc-rounded-full{border-radius:9999px}.psc-rounded-lg{border-radius:.5rem}.psc-rounded-xl{border-radius:.75rem}.psc-border,.psc-border-\[1px\]{border-width:1px}.psc-border-solid{border-style:solid}.psc-border-\[\#00000019\]{border-color:#00000019}.psc-border-\[\#e6f0fe\]{--tw-border-opacity: 1;border-color:#e6f0fe;border-color:rgb(230 240 254 / var(--tw-border-opacity))}.psc-border-black\/\[0\.1\]{border-color:#0000001a}.psc-border-black\/\[0\.25\]{border-color:#00000040}.psc-border-primary{--tw-border-opacity: 1;border-color:#0766f7;border-color:rgb(7 102 247 / var(--tw-border-opacity))}.\!psc-bg-primary{--tw-bg-opacity: 1 !important;background-color:#0766f7!important;background-color:rgb(7 102 247 / var(--tw-bg-opacity))!important}.psc-bg-\[\#0000\]\/\[0\.1\]{background-color:#0000001a}.psc-bg-\[\#00a86b\]\/\[\.1\],.psc-bg-\[\#00a86b\]\/\[0\.1\]{background-color:#00a86b1a}.psc-bg-\[\#0766f7\]{--tw-bg-opacity: 1;background-color:#0766f7;background-color:rgb(7 102 247 / var(--tw-bg-opacity))}.psc-bg-\[\#0766f7\]\/\[\.1\]{background-color:#0766f71a}.psc-bg-\[\#e6f0fe\]{--tw-bg-opacity: 1;background-color:#e6f0fe;background-color:rgb(230 240 254 / var(--tw-bg-opacity))}.psc-bg-\[\#ec3741\]\/\[\.1\],.psc-bg-\[\#ec3741\]\/\[0\.1\]{background-color:#ec37411a}.psc-bg-gray-100{--tw-bg-opacity: 1;background-color:#f3f4f6;background-color:rgb(243 244 246 / var(--tw-bg-opacity))}.psc-bg-gray-200{--tw-bg-opacity: 1;background-color:#e5e7eb;background-color:rgb(229 231 235 / var(--tw-bg-opacity))}.psc-bg-primary{--tw-bg-opacity: 1;background-color:#0766f7;background-color:rgb(7 102 247 / var(--tw-bg-opacity))}.psc-bg-transparent{background-color:transparent}.\!psc-p-0{padding:0!important}.psc-p-0{padding:0}.psc-p-2{padding:.5rem}.psc-p-2\.5{padding:.625rem}.psc-p-3{padding:.75rem}.psc-p-4{padding:1rem}.psc-p-\[10px_16px\]{padding:10px 16px}.psc-p-\[16px\]{padding:16px}.\!psc-px-4{padding-left:1rem!important;padding-right:1rem!important}.\!psc-py-0{padding-top:0!important;padding-bottom:0!important}.psc-px-1{padding-left:.25rem;padding-right:.25rem}.psc-px-2{padding-left:.5rem;padding-right:.5rem}.psc-px-3{padding-left:.75rem;padding-right:.75rem}.psc-px-4{padding-left:1rem;padding-right:1rem}.psc-px-6{padding-left:1.5rem;padding-right:1.5rem}.psc-px-\[16px\]{padding-left:16px;padding-right:16px}.psc-px-\[8px\]{padding-left:8px;padding-right:8px}.psc-py-0{padding-top:0;padding-bottom:0}.psc-py-1{padding-top:.25rem;padding-bottom:.25rem}.psc-py-2{padding-top:.5rem;padding-bottom:.5rem}.psc-py-3{padding-top:.75rem;padding-bottom:.75rem}.psc-py-4{padding-top:1rem;padding-bottom:1rem}.psc-py-\[10px\]{padding-top:10px;padding-bottom:10px}.psc-py-\[20px\]{padding-top:20px;padding-bottom:20px}.psc-py-\[4px\]{padding-top:4px;padding-bottom:4px}.psc-pb-0{padding-bottom:0}.psc-pb-16{padding-bottom:4rem}.psc-pb-3{padding-bottom:.75rem}.psc-pb-32{padding-bottom:8rem}.psc-pb-4{padding-bottom:1rem}.psc-pb-5{padding-bottom:1.25rem}.psc-pb-6{padding-bottom:1.5rem}.psc-pb-8{padding-bottom:2rem}.psc-pb-\[123px\]{padding-bottom:123px}.psc-pb-\[24px\]{padding-bottom:24px}.psc-pb-\[32px\]{padding-bottom:32px}.psc-pb-\[53px\]{padding-bottom:53px}.psc-pl-2{padding-left:.5rem}.psc-pr-1{padding-right:.25rem}.psc-pt-1{padding-top:.25rem}.psc-pt-3{padding-top:.75rem}.psc-pt-7{padding-top:1.75rem}.psc-pt-\[32px\]{padding-top:32px}.psc-text-left{text-align:left}.psc-text-center{text-align:center}.psc-text-right{text-align:right}.psc-text-2xl{font-size:1.5rem;line-height:2rem}.psc-text-3xl{font-size:1.875rem;line-height:2.25rem}.psc-text-4xl{font-size:2.25rem;line-height:2.5rem}.psc-text-\[12px\]{font-size:12px}.psc-text-\[14px\]{font-size:14px}.psc-text-\[16px\]{font-size:16px}.psc-text-\[18\.8px\]{font-size:18.8px}.psc-text-\[20px\]{font-size:20px}.psc-text-\[22px\]{font-size:22px}.psc-text-\[24px\]{font-size:24px}.psc-text-\[32px\]{font-size:32px}.psc-text-\[60px\]{font-size:60px}.psc-text-\[80px\]{font-size:80px}.psc-text-lg{font-size:1.125rem;line-height:1.375rem}.psc-text-sm{font-size:.875rem;line-height:1.125rem}.psc-text-xl{font-size:1.25rem;line-height:1.625rem}.psc-text-xs{font-size:.75rem;line-height:1rem}.\!psc-font-bold{font-weight:700!important}.psc-font-\[600\]{font-weight:600}.psc-font-\[700\],.psc-font-bold{font-weight:700}.psc-font-medium{font-weight:500}.psc-font-normal{font-weight:400}.psc-font-semibold{font-weight:600}.psc-uppercase{text-transform:uppercase}.psc-capitalize{text-transform:capitalize}.\!psc-text-primary{--tw-text-opacity: 1 !important;color:#0766f7!important;color:rgb(7 102 247 / var(--tw-text-opacity))!important}.psc-text-\[\#00000019\]{color:#00000019}.psc-text-\[\#0000\]\/\[\.6\],.psc-text-\[\#0000\]\/\[0\.6\]{color:#0009}.psc-text-\[\#00a86b\]{--tw-text-opacity: 1;color:#00a86b;color:rgb(0 168 107 / var(--tw-text-opacity))}.psc-text-\[\#0766f7\]{--tw-text-opacity: 1;color:#0766f7;color:rgb(7 102 247 / var(--tw-text-opacity))}.psc-text-\[\#2b2c45\]{--tw-text-opacity: 1;color:#2b2c45;color:rgb(43 44 69 / var(--tw-text-opacity))}.psc-text-\[\#6a6b7a\]{--tw-text-opacity: 1;color:#6a6b7a;color:rgb(106 107 122 / var(--tw-text-opacity))}.psc-text-\[\#aeb0bd\]{--tw-text-opacity: 1;color:#aeb0bd;color:rgb(174 176 189 / var(--tw-text-opacity))}.psc-text-\[\#ec3741\]{--tw-text-opacity: 1;color:#ec3741;color:rgb(236 55 65 / var(--tw-text-opacity))}.psc-text-\[\#fff\]{--tw-text-opacity: 1;color:#fff;color:rgb(255 255 255 / var(--tw-text-opacity))}.psc-text-black\/\[0\.4\]{color:#0006}.psc-text-black\/\[0\.6\]{color:#0009}.psc-text-black\/\[0\.85\]{color:#000000d9}.psc-text-could-not-process,.psc-text-error{--tw-text-opacity: 1;color:#ec3741;color:rgb(236 55 65 / var(--tw-text-opacity))}.psc-text-not-ready{--tw-text-opacity: 1;color:#e16c00;color:rgb(225 108 0 / var(--tw-text-opacity))}.psc-text-partially-ready{--tw-text-opacity: 1;color:#1d1d5c;color:rgb(29 29 92 / var(--tw-text-opacity))}.psc-text-primary{--tw-text-opacity: 1;color:#0766f7;color:rgb(7 102 247 / var(--tw-text-opacity))}.psc-text-ready,.psc-text-success{--tw-text-opacity: 1;color:#00a86b;color:rgb(0 168 107 / var(--tw-text-opacity))}.psc-text-white{--tw-text-opacity: 1;color:#fff;color:rgb(255 255 255 / var(--tw-text-opacity))}.psc-transition-\[max-height\]{transition-property:max-height;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}:focus-visible{outline-offset:initial;outline:medium none invert;outline:initial}.psc-border-inner-primary{box-shadow:inset 0 0 0 1px #0766f7}.psc-border-inner-primary--disabled{box-shadow:inset 0 0 0 1px #0006}.psc-border-inner-secondary,.psc-border-inner-secondary--disabled{box-shadow:inset 0 0 0 1px #00000040}.psc-content-h-full{height:calc(100vh - 134px)}.psc-box-shadow{box-shadow:0 1px 2px #0000000f,0 5px 10px #0000000a}.before\:psc-absolute:before{content:var(--tw-content);position:absolute}.before\:psc-left-0:before{content:var(--tw-content);left:0px}.before\:psc-h-full:before{content:var(--tw-content);height:100%}.before\:psc-w-\[2px\]:before{content:var(--tw-content);width:2px}.before\:psc-rounded-lg:before{content:var(--tw-content);border-radius:.5rem}.before\:psc-bg-primary:before{content:var(--tw-content);--tw-bg-opacity: 1;background-color:#0766f7;background-color:rgb(7 102 247 / var(--tw-bg-opacity))}.before\:psc-content-\[\'\'\]:before{--tw-content: "";content:"";content:var(--tw-content)}.hover\:psc-bg-slate-100:hover{--tw-bg-opacity: 1;background-color:#f1f5f9;background-color:rgb(241 245 249 / var(--tw-bg-opacity))}.hover\:psc-text-primary\/\[0\.8\]:hover{color:#0766f7cc}.hover\:psc-text-primary\/\[0\.9\]:hover{color:#0766f7e6}.disabled\:psc-bg-\[\#aeb0bd\]:disabled{--tw-bg-opacity: 1;background-color:#aeb0bd;background-color:rgb(174 176 189 / var(--tw-bg-opacity))}@media (prefers-color-scheme: dark){.dark\:psc-bg-gray-300{--tw-bg-opacity: 1;background-color:#d1d5db;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.dark\:psc-bg-gray-400{--tw-bg-opacity: 1;background-color:#9ca3af;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}}@media (min-width: 768px){.md\:psc-col-span-12{grid-column:span 12 / span 12}.md\:psc-pr-\[4px\]{padding-right:4px}}@media (min-width: 1280px){.xl\:psc-col-span-5{grid-column:span 5 / span 5}.xl\:psc-col-span-7{grid-column:span 7 / span 7}.xl\:psc-mt-\[0px\]{margin-top:0}.xl\:psc-gap-\[100px\]{gap:100px}}@media (min-width: 1536px){.\32xl\:psc-gap-\[100px\]{gap:100px}}.cta-banner-btn[data-v-3bac2bd5]{box-shadow:0 4px 20px #0003;position:relative;display:flex;width:100%;align-items:center;border-radius:8px}.test-result-full-patient-info{text-align:"center"}.test-result-full-patient-info .fullname{font-size:20px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.4;letter-spacing:normal;text-align:center;color:#000000d9;margin-bottom:14px}.test-result-full-patient-info .more-info{font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;text-align:center;color:#000000d9;display:flex;justify-content:space-around;align-items:center;padding:4px 16px 0}.test-result-full-patient-info .more-info i{padding:3px;background-color:#e2e4e8;border-radius:50%;margin-right:4px}:root{--popper-theme-background-color: #fff;--popper-theme-background-color-hover: #fff;--popper-theme-text-color: rgba(0, 0, 0, .85);--popper-theme-border-width: 1px;--popper-theme-border-style: solid;--popper-theme-border-color: #e3e5ed;--popper-theme-border-radius: 6px;--popper-theme-padding: 16px;--popper-theme-box-shadow: 0 4px 20px 0 rgba(0, 0, 0, .2)}.test-result-patient-short-info{text-align:center}.test-result-patient-short-info .patient-name{display:flex;align-items:center;font-size:20px;font-weight:700;color:#000000d9}.test-result-patient-short-info .patient-name i{margin-left:4px;line-height:0}.consumer-pending-result__body .icon{font-size:75px;margin-bottom:24px;color:#0766f7;line-height:0;text-align:center}.consumer-pending-result__body .description{font-size:16px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:#0009}.consumer-rejected-result__body .icon{font-size:87px;margin-bottom:12px;color:#8a8d9e;line-height:0;text-align:center}.consumer-rejected-result__body .description{font-size:16px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:#0009}.trend-detail .chart-wrapper[data-v-8a6cf4c9],.trend-detail .test-explaination[data-v-8a6cf4c9]{box-shadow:0 1px 2px #0000000f,0 5px 10px #0000000a}.trend-detail .chart-tooltip{background:white;border-radius:12px;color:#000000d9;opacity:1;pointer-events:none;position:absolute;transform:translate(-50%);transition:all .1s ease;font-size:12px;line-height:18px;margin-top:16px;border:1px solid rgba(0,0,0,.06);box-shadow:0 1px 2px #0000000f,0 5px 10px #0000000a;min-width:118px}.trend-detail .chart-tooltip__ul{list-style:none}.trend-detail .chart-tooltip__ul li div:nth-child(3){font-weight:700}.trend-detail .chart-tooltip__caret{position:absolute;width:10px;height:10px;top:-6px;left:calc(50% - 5px);z-index:-25}.trend-detail .chart-tooltip__caret:after{content:"";position:absolute;background:#fff;border-top:1px solid rgba(0,0,0,.06);border-right:1px solid rgba(0,0,0,.06);border-top-right-radius:2px;width:10px;height:10px;transform:rotate(315deg)}@media only screen and (max-width: 1023.98px){.test-result-history-detail-modal .modal-wrapper{align-items:flex-end}.test-result-history-detail-modal .modal-wrapper-content{height:auto;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.test-result-history-detail-modal .modal-body{overflow-y:auto}.test-result-history-detail-modal .modal-body .history-content{min-height:60vh;max-height:60vh}.test-result-history-detail-modal .modal-body .modal-header{padding-bottom:.5rem}.test-result-history-detail-modal .modal-body .modal-body{padding-top:.5rem}}@media only screen and (min-width: 1024px){.test-result-history-detail-modal .modal-wrapper{max-width:500px}.test-result-history-detail-modal .modal-wrapper-content{height:auto;border-radius:.5rem}.test-result-history-detail-modal .modal-body{overflow-y:auto}.test-result-history-detail-modal .modal-body .history-content{max-height:600px}.test-result-history-detail-modal .modal-body .modal-header{padding:24px 24px 0}.test-result-history-detail-modal .modal-body .modal-body{padding:0 24px 24px}}.book-appointment .book-appointment__date[data-v-94386939]{width:calc(14.2857142857% + (14.2857142857% - 38px) / 6)}.book-appointment .book-appointment__date[data-v-94386939]:last-child{width:38px}@media only screen and (max-width: 1023.98px){.book-appointment-modal .modal-wrapper{align-items:flex-end}.book-appointment-modal .modal-wrapper-content{height:auto;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.book-appointment-modal .modal-body{overflow-y:auto}.book-appointment-modal .modal-body .modal-body__content{min-height:30vh;max-height:calc(100vh - 180px)}.book-appointment-modal .modal-body .modal-header{padding-bottom:.5rem}.book-appointment-modal .modal-body .modal-body{padding-top:.5rem}}@media only screen and (min-width: 1024px){.book-appointment-modal .modal-wrapper{max-width:500px}.book-appointment-modal .modal-wrapper-content{height:auto;border-radius:.5rem}.book-appointment-modal .modal-body{overflow-y:auto}.book-appointment-modal .modal-body .modal-body__content{max-height:calc(100vh - 180px)}.book-appointment-modal .modal-body .modal-header{padding:24px 24px 0}.book-appointment-modal .modal-body .modal-body{padding:0 24px 24px}}.patient-info-wrapper[data-v-69afa921]{background-color:#0766f7;overflow:hidden;position:relative}.patient-info-wrapper .diag-header-logo[data-v-69afa921]{opacity:.3;height:205px;position:absolute;top:-50px;right:-315px}.patient-info-wrapper .role-label[data-v-69afa921]{color:#49fff4}.find-branch-btn svg[data-v-7aeb0d64]{font-size:16px!important}.prescription-header[data-v-08e68cf3],.note-header[data-v-08e68cf3]{color:#0766f7}.booking-note[data-v-08e68cf3]{background-color:#f2f2f2}.booking-note span[data-v-08e68cf3]{color:#6a6b7a;white-space:pre-wrap}.test-name[data-v-08e68cf3]{color:#2b2c45}.tag[data-v-0bdd0fa9],.booking__payment__status--refunded[data-v-0bdd0fa9],.booking__payment__status--unpaid[data-v-0bdd0fa9],.booking__payment__status--finished[data-v-0bdd0fa9],.booking__status--processed[data-v-0bdd0fa9],.booking__status--canceled[data-v-0bdd0fa9],.booking__status--pending[data-v-0bdd0fa9]{border-radius:8px;padding:4px 8px;font-size:12px;font-weight:600}.booking__status--pending[data-v-0bdd0fa9]{background-color:#0766f71a;--tw-text-opacity: 1;color:#0766f7;color:rgb(7 102 247 / var(--tw-text-opacity))}.booking__status--canceled[data-v-0bdd0fa9]{background-color:#ec37411a;--tw-text-opacity: 1;color:#ec3741;color:rgb(236 55 65 / var(--tw-text-opacity))}.booking__status--processed[data-v-0bdd0fa9],.booking__payment__status--finished[data-v-0bdd0fa9]{background-color:#00a86b1a;--tw-text-opacity: 1;color:#00a86b;color:rgb(0 168 107 / var(--tw-text-opacity))}.booking__payment__status--unpaid[data-v-0bdd0fa9]{background-color:#ec37411a;--tw-text-opacity: 1;color:#ec3741;color:rgb(236 55 65 / var(--tw-text-opacity))}.booking__payment__status--refunded[data-v-0bdd0fa9]{background-color:#0000001a;color:#0009}.booking-number[data-v-0bdd0fa9]{background:#ffffff;box-shadow:0 5px 10px #0000000a,0 1px 2px #0000000f}.booking-number .booking-alert[data-v-0bdd0fa9]{color:#6a6b7a}.booking-left-col[data-v-f774394b]{border-radius:8px;overflow-x:hidden;border:thin solid rgba(255,255,255,0);box-shadow:0 10px 20px #0000001a}.booking-left-col .psc-booking-number[data-v-f774394b]{position:absolute;top:128px;width:calc(100% - 32px);left:50%;transform:translate(-50%)}.booking-item[data-v-f386ea35]{margin-top:.75rem;cursor:pointer}.booking-item[data-v-f386ea35]>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(.75rem * (1 - var(--tw-space-y-reverse)));margin-top:.75rem;margin-top:calc(.75rem * calc(1 - var(--tw-space-y-reverse)));margin-bottom:0rem;margin-bottom:calc(.75rem * var(--tw-space-y-reverse))}.booking-item[data-v-f386ea35]{border-radius:.5rem;padding:.75rem}.dgic-chevron-right-thin[data-v-f386ea35]{line-height:.725rem!important}.booking__status--pending[data-v-f386ea35]{background-color:#0766f71a;--tw-text-opacity: 1;color:#0766f7;color:rgb(7 102 247 / var(--tw-text-opacity))}.booking__status--canceled[data-v-f386ea35]{background-color:#ec37411a;--tw-text-opacity: 1;color:#ec3741;color:rgb(236 55 65 / var(--tw-text-opacity))}.booking__status--processed[data-v-f386ea35],.booking__payment__status--finished[data-v-f386ea35]{background-color:#00a86b1a;--tw-text-opacity: 1;color:#00a86b;color:rgb(0 168 107 / var(--tw-text-opacity))}.booking__payment__status--unpaid[data-v-f386ea35]{background-color:#ec37411a;--tw-text-opacity: 1;color:#ec3741;color:rgb(236 55 65 / var(--tw-text-opacity))}.booking__payment__status--refunded[data-v-f386ea35]{background-color:#0000001a;color:#0009}.contact-support{cursor:pointer;--tw-text-opacity: 1;color:#0766f7;color:rgb(7 102 247 / var(--tw-text-opacity))}.call-us-text-button{display:flex;align-items:center;justify-content:center}.call-us-text-button .diag-phone-number{cursor:pointer;display:flex;align-items:center;font-size:14px;font-weight:700;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;text-align:center;color:#0766f7;margin-right:20px}.call-us-text-button .diag-phone-number i{font-size:20px}.call-us-text-button .diag-opening-time{font-size:14px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.43;letter-spacing:normal;text-align:left;color:#0009}.result-ready{display:flex;flex-direction:column}.result-ready__title{font-size:16px;font-weight:600;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:#0009;margin-bottom:20px}.result-ready__date{font-size:12px;font-weight:400;font-stretch:normal;font-style:normal;line-height:1.5;letter-spacing:normal;text-align:center;color:#0009}
|